diff --git a/config/common/default.nix b/config/common/default.nix index 0168cab..591951b 100644 --- a/config/common/default.nix +++ b/config/common/default.nix @@ -5,7 +5,7 @@ in { ./kernel.nix ./networking.nix ./openssh.nix - ./users + ./users.nix ../../modules inputs.lix-module.nixosModules.default ]; diff --git a/config/common/users/default.nix b/config/common/users.nix similarity index 62% rename from config/common/users/default.nix rename to config/common/users.nix index 34d379b..60ce336 100644 --- a/config/common/users/default.nix +++ b/config/common/users.nix @@ -1,5 +1,5 @@ { ... }: { imports = [ - ./emily + ../users/emily ]; } diff --git a/config/hosts/crime/configuration.nix b/config/hosts/crime/configuration.nix index edbaa22..5ab41bc 100644 --- a/config/hosts/crime/configuration.nix +++ b/config/hosts/crime/configuration.nix @@ -1,6 +1,7 @@ { ... }: { imports = [ ../../common + ../../users/lucy ../../profiles/headless.nix ../../profiles/kartoffel.nix ../../profiles/lxc.nix diff --git a/config/hosts/seras/configuration.nix b/config/hosts/seras/configuration.nix index 7dd5ee9..97a1b67 100644 --- a/config/hosts/seras/configuration.nix +++ b/config/hosts/seras/configuration.nix @@ -1,6 +1,7 @@ { pkgs, ... }: { imports = [ ../../common + ../../users/nil ../../profiles/builder.nix ../../profiles/headless.nix ../../profiles/kartoffel.nix @@ -18,16 +19,6 @@ ]; }; - users.users.nil = { - isNormalUser = true; - shell = pkgs.fish; - ignoreShellProgramCheck = true; - extraGroups = [ "wheel" ]; - openssh.authorizedKeys.keys = [ - "sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAICczPHRwY9MAwDGlcB0QgMOJjcpLJhVU3covrW9RBS62AAAABHNzaDo=" - ]; - }; - services.postgresql.settings = { max_connections = 200; shared_buffers = "24GB"; diff --git a/config/common/users/emily/default.nix b/config/users/emily/default.nix similarity index 100% rename from config/common/users/emily/default.nix rename to config/users/emily/default.nix diff --git a/config/users/lucy/default.nix b/config/users/lucy/default.nix new file mode 100644 index 0000000..5035c4d --- /dev/null +++ b/config/users/lucy/default.nix @@ -0,0 +1,78 @@ +{ inputs, pkgs, ... }: { + imports = [ + inputs.home-manager.nixosModules.home-manager + ]; + + users.users.lucy = { + isNormalUser = true; + shell = pkgs.fish; + ignoreShellProgramCheck = true; + extraGroups = [ "wheel" ]; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIId7XvwEHtC9KdGg4Bn+XE+yyBp7/dRToJX9T56mM7ln kosaki@kosaki" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAZH8HwE1OxVAArRpc3+c7foYJ/WYjp4BqUyuab9yQyl emilia@emilia" + ]; + }; + + home-manager.useGlobalPkgs = true; + home-manager.users.lucy = { + home.stateVersion = "24.11"; + + home.packages = with pkgs; [ + whois + htop + restic + fend + ]; + fonts.fontconfig.enable = true; + + programs.bat.enable = true; + programs.gpg.enable = true; + programs.ripgrep.enable = true; + + programs.tmux = { + enable = true; + prefix = "M-w"; + clock24 = true; + extraConfig = '' + # unbind keys + unbind-key C-b + + # new prefix + bind-key M-w send-prefix + + # selection via vim keys + bind-key -r h select-pane -L + bind-key -r j select-pane -D + bind-key -r k select-pane -U + bind-key -r l select-pane -R + + # resize aswell + bind-key -r C-h resize-pane -L 5 + bind-key -r C-j resize-pane -D 5 + bind-key -r C-k resize-pane -U 5 + bind-key -r C-l resize-pane -R 5 + + bind-key g split-window + bind-key v split-window -h + ''; + }; + + programs.eza = { + enable = true; + icons = "auto"; + git = true; + extraOptions = [ + "--color-scale=all" + "--color-scale-mode=gradient" + "--group-directories-first" + ]; + }; + programs.fish = { + enable = true; + interactiveShellInit = '' + set -U fish_greeting + ''; + }; + }; +} diff --git a/config/users/nil/default.nix b/config/users/nil/default.nix new file mode 100644 index 0000000..9aac787 --- /dev/null +++ b/config/users/nil/default.nix @@ -0,0 +1,49 @@ +{ inputs, pkgs, ... }: { + imports = [ + inputs.home-manager.nixosModules.home-manager + ]; + + users.users.nil = { + isNormalUser = true; + shell = pkgs.fish; + ignoreShellProgramCheck = true; + extraGroups = [ "wheel" ]; + openssh.authorizedKeys.keys = [ + "sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAICczPHRwY9MAwDGlcB0QgMOJjcpLJhVU3covrW9RBS62AAAABHNzaDo=" + ]; + }; + + home-manager.useGlobalPkgs = true; + home-manager.users.nil = { + home.stateVersion = "24.11"; + + home.packages = with pkgs; [ + whois + htop + restic + fend + ]; + fonts.fontconfig.enable = true; + + programs.bat.enable = true; + programs.gpg.enable = true; + programs.ripgrep.enable = true; + + programs.eza = { + enable = true; + icons = "auto"; + git = true; + extraOptions = [ + "--color-scale=all" + "--color-scale-mode=gradient" + "--group-directories-first" + ]; + }; + programs.fish = { + enable = true; + interactiveShellInit = '' + set -U fish_greeting + ''; + }; + }; +}