feat(secrets): auto-add secrets, create path shortcut

This commit is contained in:
Infinidoge 2022-04-21 14:18:06 -04:00
parent 44e85b3ee3
commit 56c459e49f
5 changed files with 19 additions and 6 deletions

View file

@ -1,7 +1,5 @@
{ lib, config, self, ... }: {
age.secrets.root-password.file = "${self}/secrets/root-password.age";
users.users.root.passwordFile = config.age.secrets.root-password.path;
users.users.root.passwordFile = config.secrets.root-password;
home-manager.users.root = { suites, profiles, ... }: {
imports = lib.lists.flatten [