feat(secrets): allow disabling automatic secret loading
This commit is contained in:
parent
d33e95fb82
commit
c22dfbcefd
3 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
{ lib, config, self, ... }: {
|
||||
users.users.root.passwordFile = config.secrets.root-password;
|
||||
users.users.root.passwordFile = lib.mkIf config.modules.secrets.enable config.secrets.root-password;
|
||||
|
||||
home-manager.users.root = { suites, profiles, ... }: {
|
||||
imports = lib.lists.flatten [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue