Ban root passwords from HQ
Esse commit está contido em:
pai
ed3670aeba
commit
83c0090ab9
|
@ -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;
|
||||
|
|
Carregando…
Referência em uma nova issue