This commit is contained in:
mjallen18
2026-01-02 14:45:58 -06:00
parent 56fb195967
commit 579c83164e
2 changed files with 8 additions and 4 deletions

View File

@@ -144,7 +144,7 @@ in
}; };
}; };
firmware = lib.mkIf cfg.firmware.enableFirmware { firmware = lib.mkIf cfg.firmware.enableFirmware {
device = cfg.firmware.firmwareDrive; device = cfg.firmware.firmwareDisk;
type = "disk"; type = "disk";
imageSize = "1G"; imageSize = "1G";
content = { content = {

View File

@@ -8,7 +8,13 @@
with lib; with lib;
let let
inherit (lib.${namespace}) mkOpt mkBoolOpt; inherit (lib.${namespace}) mkOpt mkBoolOpt;
cfg = config.${namespace}.user; cfg = config.${namespace}.user // {
hashedPasswordFile = (if (config.${namespace}.user.hashedPassword == null &&
config.${namespace}.user.hashedPasswordFile == null &&
config.${namespace}.user.password == null) then
defaultPasswordFile else null
);
};
# Common SSH keys used across systems # Common SSH keys used across systems
commonSshKeys = [ commonSshKeys = [
@@ -27,8 +33,6 @@ let
]; ];
defaultPasswordFile = config.sops.secrets."matt_password".path; defaultPasswordFile = config.sops.secrets."matt_password".path;
cfg.hashedPasswordFile = (if (cfg.hashedPassword == null && cfg.hashedPasswordFile == null && cfg.password == null) then defaultPasswordFile else null);
in in
{ {
options.${namespace}.user = with types; { options.${namespace}.user = with types; {