diff --git a/hosts/mpl/configuration.nix b/hosts/mpl/configuration.nix index 6c5cf2e..32da140 100644 --- a/hosts/mpl/configuration.nix +++ b/hosts/mpl/configuration.nix @@ -1,6 +1,7 @@ { inputs, - config, pkgs, + config, + pkgs, ... }: { imports = [ @@ -33,20 +34,20 @@ services.libinput.enable = true; # Define a user account. - users = { - defaultUserShell = pkgs.zsh; + users.users = { + root.hashedPasswordFile = config.sops.secrets."root-pw".path; - users = { - root.hashedPasswordFile = config.sops.secrets."root-pw".path; - - min = { - isNormalUser = true; - extraGroups = ["wheel"]; # Enable ‘sudo’ for the user. - hashedPasswordFile = config.sops.secrets."user-pw".path; - }; + min = { + isNormalUser = true; + extraGroups = ["wheel"]; # Enable ‘sudo’ for the user. + hashedPasswordFile = config.sops.secrets."user-pw".path; }; }; + # Use zsh + programs.zsh.enable = true; + users.defaultUserShell = pkgs.zsh; + # Some programs need SUID wrappers, can be configured further or are # started in user sessions. programs.gnupg.agent = {