From b1d470d109e40608a8d3156d2cf3255664b0a815 Mon Sep 17 00:00:00 2001 From: kat witch Date: Thu, 9 Sep 2021 01:32:45 +0100 Subject: [PATCH] mkIf for trusted state --- config/users/kat/nixos.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/users/kat/nixos.nix b/config/users/kat/nixos.nix index f91a60eb..97a1660b 100644 --- a/config/users/kat/nixos.nix +++ b/config/users/kat/nixos.nix @@ -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 = [