fix
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
@@ -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; {
|
||||||
|
|||||||
Reference in New Issue
Block a user