mkIf for trusted state

This commit is contained in:
kat witch 2021-09-09 01:32:45 +01:00
parent e881ef59fb
commit b1d470d109
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72

View file

@ -9,8 +9,7 @@
];
shell = pkgs.zsh;
extraGroups = [ "wheel" "video" "systemd-journal" "plugdev" "bird2" "vfio" "input" "uinput" ];
hashedPassword =
removeSuffix "\n" config.kw.secrets.repo.kat-user.text;
hashedPassword = mkIf (config.deploy.profile.trusted) removeSuffix "\n" config.kw.secrets.repo.kat-user.text;
};
systemd.tmpfiles.rules = [