feat(secrets): allow disabling automatic secret loading

This commit is contained in:
Infinidoge 2022-04-27 21:08:45 -04:00
parent d33e95fb82
commit c22dfbcefd
3 changed files with 6 additions and 4 deletions

View file

@ -92,7 +92,7 @@ in
user = {
name = "infinidoge";
uid = 1000;
passwordFile = config.secrets.infinidoge-password;
passwordFile = lib.mkIf config.modules.secrets.enable config.secrets.infinidoge-password;
description = "Infinidoge, primary user of the system";
group = "users";
isNormalUser = true;