From 0e4d790e3039ed63662767873063b728dcf8485d Mon Sep 17 00:00:00 2001 From: jay Date: Thu, 10 Jul 2025 07:45:24 -0400 Subject: [PATCH] Fix password_hash. --- nodes/hosts/common/configuration.nix | 2 +- nodes/hosts/common/system/users.nix | 19 +++++++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) 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" ]; + }; }; }