24
7
Fork 3

Ban root passwords from HQ

Dieser Commit ist enthalten in:
Ehmry - 2020-01-26 17:36:24 +01:00
Ursprung ed3670aeba
Commit 83c0090ab9
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -32,6 +32,7 @@ let
cfg = config.c3d2;
in {
imports = [ ./users ];
@ -118,6 +119,9 @@ in {
# Configuration specific to this machine
assertions = [
{ assertion = cfg.isInHq -> (config.users.users.root.password == null);
message = "Root passwords not allowed in HQ";
}
{
assertion = let
check = hostName: hostName == config.networking.hostName;