Make initialRootPassword overrideable in all virtualisation modules, not just virtualbox.
This commit is contained in:
parent
51c9dbc9f3
commit
d5211b0e0e
@ -164,5 +164,5 @@ with pkgs.lib;
|
|||||||
# Prevent logging in as root without a password. This doesn't really matter,
|
# Prevent logging in as root without a password. This doesn't really matter,
|
||||||
# since the only PAM services that allow logging in with a null
|
# since the only PAM services that allow logging in with a null
|
||||||
# password are local ones that are inaccessible on EC2 machines.
|
# password are local ones that are inaccessible on EC2 machines.
|
||||||
security.initialRootPassword = "!";
|
security.initialRootPassword = mkDefault "!";
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ with pkgs.lib;
|
|||||||
modules =
|
modules =
|
||||||
let extraConfig =
|
let extraConfig =
|
||||||
{ boot.isContainer = true;
|
{ boot.isContainer = true;
|
||||||
security.initialRootPassword = "!";
|
security.initialRootPassword = mkDefault "!";
|
||||||
networking.hostName = mkDefault name;
|
networking.hostName = mkDefault name;
|
||||||
};
|
};
|
||||||
in [ extraConfig config.config ];
|
in [ extraConfig config.config ];
|
||||||
@ -134,4 +134,4 @@ with pkgs.lib;
|
|||||||
}) config.systemd.containers;
|
}) config.systemd.containers;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ with pkgs.lib;
|
|||||||
# Prevent logging in as root without a password. This doesn't really matter,
|
# Prevent logging in as root without a password. This doesn't really matter,
|
||||||
# since the only PAM services that allow logging in with a null
|
# since the only PAM services that allow logging in with a null
|
||||||
# password are local ones that are inaccessible on Google Compute machines.
|
# password are local ones that are inaccessible on Google Compute machines.
|
||||||
security.initialRootPassword = "!";
|
security.initialRootPassword = mkDefault "!";
|
||||||
|
|
||||||
# Configure default metadata hostnames
|
# Configure default metadata hostnames
|
||||||
networking.extraHosts = ''
|
networking.extraHosts = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user