diff --git a/nodes/hosts/common/configuration.nix b/nodes/hosts/common/configuration.nix index 9c4dcc4..38dbcce 100644 --- a/nodes/hosts/common/configuration.nix +++ b/nodes/hosts/common/configuration.nix @@ -1,4 +1,4 @@ -{ pkgs, inputs, ... }: +{ pkgs, inputs, config, ... }: { imports = [ inputs.nix-flatpak.nixosModules.nix-flatpak diff --git a/nodes/hosts/common/system/users.nix b/nodes/hosts/common/system/users.nix index d7bceae..d17efce 100644 --- a/nodes/hosts/common/system/users.nix +++ b/nodes/hosts/common/system/users.nix @@ -1,10 +1,17 @@ -{ config, ... }: { +{ config, inputs, ... }: { # Define a user account. Don't forget to set a password with ‘passwd’. - users.users.jay = { - isNormalUser = true; - description = "jay"; - hashedPasswordFile = config.sops.secrets.jay_password_hash.path; - extraGroups = [ "networkmanager" "wheel" ]; + sops.secrets = { + jay_password_hash = { }; + }; + + users = { + mutableUsers = false; + users.jay = { + isNormalUser = true; + description = "jay"; + hashedPasswordFile = config.sops.secrets.jay_password_hash.path; + extraGroups = [ "networkmanager" "wheel" ]; + }; }; }