diff --git a/hosts/eustachius/default.nix b/hosts/eustachius/default.nix index 05d2189..aa82713 100644 --- a/hosts/eustachius/default.nix +++ b/hosts/eustachius/default.nix @@ -1,9 +1,10 @@ { - config, pkgs, lib, ... -}: { +}: let + vars = import ../../vars.nix; +in { # NixOS wants to enable GRUB by default boot.loader.grub.enable = false; # Enables the generation of /boot/extlinux/extlinux.conf @@ -55,7 +56,6 @@ neovim curl wget - # docker-compose ]; services.openssh = { @@ -90,27 +90,20 @@ # put your own configuration here, for example ssh keys: users.mutableUsers = true; - users.groups = { - nixos = { - gid = 1000; - name = "nixos"; - }; - }; - users.users = { - nixos = { - uid = 1000; - home = "/home/nixos"; - name = "nixos"; - group = "nixos"; - extraGroups = ["wheel" "docker"]; - }; - }; - users.users.root.openssh.authorizedKeys.keys = [ - #Desktop - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJd6Gut34abkwlZ4tZVBO4Qt7CkIpPm/Z8R6JCisjnYy openpgp:0xBD0CFCA0" + users.users.${vars.user} = { + isNormalUser = true; + password = "changeme"; + extraGroups = ["wheel" "docker"]; + openssh.authorizedKeys.keys = [ + #Adalbert + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJd6Gut34abkwlZ4tZVBO4Qt7CkIpPm/Z8R6JCisjnYy openpgp:0xBD0CFCA0" - #Convertible - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFlRsnLqm6Ap3yKEEhtFiWavo72df/X5Il1ZCmENUqev openpgp:0xDE189CA5" - ]; + #Ludwig + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFlRsnLqm6Ap3yKEEhtFiWavo72df/X5Il1ZCmENUqev openpgp:0xDE189CA5" + + #Franz + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIINCjLoirHMos7c9lRatWtSYAk68xbUGc8vPU0wFxIzj openpgp:0x7430326E" + ]; + }; system.stateVersion = "23.11"; }