Fix password_hash.

This commit is contained in:
jay
2025-07-10 07:45:24 -04:00
parent 9d30869c02
commit 0e4d790e30
2 changed files with 14 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
{ pkgs, inputs, ... }: { pkgs, inputs, config, ... }:
{ {
imports = [ imports = [
inputs.nix-flatpak.nixosModules.nix-flatpak inputs.nix-flatpak.nixosModules.nix-flatpak

View File

@@ -1,10 +1,17 @@
{ config, ... }: { { config, inputs, ... }: {
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
users.users.jay = { sops.secrets = {
jay_password_hash = { };
};
users = {
mutableUsers = false;
users.jay = {
isNormalUser = true; isNormalUser = true;
description = "jay"; description = "jay";
hashedPasswordFile = config.sops.secrets.jay_password_hash.path; hashedPasswordFile = config.sops.secrets.jay_password_hash.path;
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [ "networkmanager" "wheel" ];
}; };
};
} }