Ban root passwords from HQ

このコミットが含まれているのは:
Ehmry - 2020-01-26 17:36:24 +01:00
コミット 83c0090ab9
1個のファイルの変更4行の追加0行の削除

ファイルの表示

@ -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;