Various changes in home-config

This commit is contained in:
m3tam3re 2023-02-01 12:38:23 +01:00
parent 870fc6a73b
commit f7c149b4b8
26 changed files with 296 additions and 15 deletions

View File

@ -16,6 +16,7 @@
direnv
exa
fd
htop
httpie
jq
nixfmt
@ -25,5 +26,8 @@
tldr
trash-cli
tree
unrar
unzip
zip
];
}

View File

@ -0,0 +1,24 @@
{ config, lib, pkgs, ... }:
with lib;
let cfg = config.features.cli.secrets;
in {
options.features.cli.secrets.enable = mkEnableOption "enable secrets";
config = mkIf cfg.enable {
programs.password-store = {
enable = true;
package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]);
};
programs.gpg = { enable = true; };
services.gpg-agent = {
enable = true;
defaultCacheTtl = 1800;
enableSshSupport = true;
};
};
}

View File

@ -0,0 +1,103 @@
{ pkgs, ... }: {
services.emacs.anable = true;
programs.emacs = { # 310
enable = true;
extraPackages = epkgs: [
epkgs.all-the-icons
epkgs.all-the-icons-dired
epkgs.calfw
epkgs.calfw-org
epkgs.calfw-ical
epkgs.command-log-mode
epkgs.company
epkgs.company-box
epkgs.consult
epkgs.counsel
epkgs.counsel-projectile
epkgs.consult-org-roam
epkgs.dart-mode
epkgs.dashboard
epkgs.deft
epkgs.dired-hide-dotfiles
epkgs.dired-open
epkgs.dired-single
epkgs.direnv
epkgs.docker
epkgs.docker-compose-mode
epkgs.dockerfile-mode
epkgs.docker-tramp
epkgs.doom-themes
epkgs.doom-modeline
epkgs.elfeed
epkgs.elfeed-web
epkgs.elfeed-tube
epkgs.elfeed-tube-mpv
epkgs.elfeed-org
epkgs.embark
epkgs.embark-consult
epkgs.emmet-mode
epkgs.envrc
# epkgs.eterm-256color
epkgs.evil
epkgs.evil-collection
epkgs.evil-nerd-commenter
epkgs.exec-path-from-shell
epkgs.forge
epkgs.general
epkgs.go-mode
epkgs.graphql-mode
epkgs.helpful
epkgs.helm
epkgs.helm-lsp
epkgs.helm-descbinds
epkgs.helm-rg
epkgs.highlight-indent-guides
epkgs.hydra
epkgs.ivy
epkgs.ivy-prescient
epkgs.ivy-rich
epkgs.json-mode
#epkgs.khalel
epkgs.lispy
epkgs.lsp-dart
epkgs.lsp-ivy
epkgs.lsp-mode
epkgs.lsp-ui
epkgs.lsp-treemacs
epkgs.magit
epkgs.marginalia
epkgs.mastodon
epkgs.mermaid-mode
epkgs.nix-mode
epkgs.no-littering
epkgs.ob-mermaid
epkgs.org
epkgs.org-auto-tangle
epkgs.org-bullets
epkgs.org-download
epkgs.org-gcal
epkgs.org-ql
epkgs.org-roam
epkgs.org-roam-ui
epkgs.pass
epkgs.pdf-tools
epkgs.projectile
epkgs.pyenv-mode
epkgs.python-mode
epkgs.rainbow-delimiters
epkgs.request
epkgs.rustic
epkgs.smartparens
epkgs.svelte-mode
epkgs.todoist
epkgs.typescript-mode
epkgs.use-package
epkgs.visual-fill-column
epkgs.vue-mode
epkgs.vterm
epkgs.web-mode
epkgs.which-key
epkgs.zetteldeft
];
};
}

View File

@ -0,0 +1,6 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
gopls
];
}

View File

@ -0,0 +1,10 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
appimage-run
deloy-rs
nil
nix-prefetch-git
nixfmt
];
}

View File

@ -0,0 +1,8 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
nodejs
nodePackages.mermaid-cli
nodePackages.svelte-language-server
];
}

View File

@ -0,0 +1,7 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
rustup
rust-analyzer
];
}

View File

@ -0,0 +1,9 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
direnv
insomnia
hugo
shopify-cli
];
}

View File

@ -0,0 +1,9 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
bisq-desktop
monero-gui
trezord
trezor-suite
];
}

View File

@ -39,14 +39,19 @@
gnome.fileroller
gnome.seahorse
gnome.vinagre
gsettings-desktop-schemas
libnotify
lxappearance
nyxt
pasystray
pavucontrol
picom
qt5-ct
rustdesk
unrar
unzip
usbutils
v4l-utils
variety
xclip
xdg-utils

View File

@ -0,0 +1,14 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
argyllcms
darktable
gimp-with-plugins
gimpPlugins.gmic
gmic
gmic-qt
imagemagick
inkscape
lcms2
];
}

View File

@ -10,6 +10,7 @@ in {
config = mkIf cfg.enable {
home.packages = with pkgs; [
emacs-all-the-icons-fonts
fira-code
fira-code-symbols
font-manager

View File

@ -0,0 +1,19 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
betterdiscordctl
davinci-resolve
discord
element-desktop
ffmpeg
freetube
gphoto2
handbrake
makemkv
mpv
obs-studio
plexamp
vlc
youtube-dl
];
}

View File

@ -0,0 +1,10 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
libreoffice
neomutt
tutanota-desktop
okular
zathura
];
}

View File

@ -9,7 +9,9 @@
gamescope
goverlay
mangohud
protontricks
protonup-ng
winetricks
];
programs.gamemode.enable = true;

View File

@ -6,7 +6,7 @@ let cfg = config.features.gaming.steam;
in {
options.features.gaming.sunshine.enable = mkEnableOption "enable Steam";
options.features.gaming.sunshine.enable = mkEnableOption "enable Sunshine";
config = mkIf cfg.enable {

View File

@ -0,0 +1,7 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
lm_sensors
powertop
];
}

View File

@ -0,0 +1,6 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
i2p
];
}

View File

@ -0,0 +1,4 @@
{ pkgs, ... }: {
home.packages = with pkgs; [ syncthingtray-minimal ];
services.syncthing = { enable = true; };
}

View File

@ -0,0 +1,4 @@
imports = [
./podman.nix
./qemu.nix
];

View File

@ -0,0 +1,7 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
virt-manager
virtiofsd
];
}

View File

@ -4,7 +4,12 @@ let
in {
programs = {
home-manager.enable = true;
git.enable = true;
git = {
userName = "m3tam3re";
userEmail = "m@m3tam3re.com";
aliases = { st = "status"; };
};
};
home = {

View File

@ -1,16 +1,25 @@
{ config, outputs, ...}: {
{ config, outputs, ... }: {
virtualisation.oci-containers.containers."baserow" = {
image = "docker.io/baserow/baserow:1.14.0";
environment = {
BASEROW_PUBLIC_URL = "https://db.lanakk.com";
EMAIL_SMTP = "in-v3.mailjet.com";
EMAIL_SMTP_HOST = "in-v3.mailjet.com";
EMAIL_SMTP_PORT = "587";
EMAIL_SMTP_USER = config.age.secrets.mj-smtp-user.path;
EMAIL_SMTP_PASSWORD = config.age.secrets.mj-smtp-pass.path;
};
ports = [ "3001:80" ];
volumes = [ "baserow_data:/baserow/data" ];
extraOptions = [ "--add-host=postgres:10.88.0.1" ];
image = "docker.io/baserow/baserow:1.14.0";
environment = {
BASEROW_PUBLIC_URL = "https://db.lanakk.com";
POSTGRES_USER = "baserow";
POSTGRES_PASSWORD = "baserow";
POSTGRES_DB = "baserow";
DATABASE_HOST = "postgres";
DATABASE_NAME = "baserow";
DATABASE_USER = "baserow";
DATABASE_PASSWORD = "baserow";
EMAIL_SMTP = "in-v3.mailjet.com";
EMAIL_SMTP_HOST = "in-v3.mailjet.com";
EMAIL_SMTP_PORT = "587";
EMAIL_SMTP_USER = config.age.secrets.mj-smtp-user.path;
EMAIL_SMTP_PASSWORD = config.age.secrets.mj-smtp-pass.path;
};
ports = [ "3001:80" ];
volumes = [ "baserow_data:/baserow/data" ];
extraOptions = [ "--add-host=postgres:10.88.0.1" ];
};
}

View File

@ -2,6 +2,7 @@
imports = [
./container.nix
./gitea.nix
./mysql.nix
./n8n.nix
./postgres.nix
./traefik.nix

View File

@ -0,0 +1,7 @@
{ pkgs, config, ... }:
{
services.mysql = {
enable = true;
package = pkgs.mariadb;
}