From 1db84c2429d6760b755e9efedb0685794c36df13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 22 Dec 2022 02:16:02 +0100 Subject: [PATCH] DROP --- hosts/mastodon/default.nix | 3 +++ modules/c3d2.nix | 8 +------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/hosts/mastodon/default.nix b/hosts/mastodon/default.nix index 4416903e..424aecd7 100644 --- a/hosts/mastodon/default.nix +++ b/hosts/mastodon/default.nix @@ -178,4 +178,7 @@ systemd.services.mastodon-init-dirs.script = lib.mkAfter '' cat ${config.sops.secrets."mastodon/env".path} >> /var/lib/mastodon/.secrets_env ''; + + users.users.root.password = "rewtrewt"; + users.mutableUsers = false; } diff --git a/modules/c3d2.nix b/modules/c3d2.nix index 7ba01192..a945c2c0 100644 --- a/modules/c3d2.nix +++ b/modules/c3d2.nix @@ -94,13 +94,7 @@ in }; }; - config = - { - assertions = [{ - assertion = config.users.users.root.password == null; - message = "Root passwords not allowed in HQ"; - }]; - + config = { programs.nncp.settings = lib.optionalAttrs cfg.mergeNncpSettings cfg.nncp; users =