feat(secrets): auto-add secrets, create path shortcut
This commit is contained in:
parent
44e85b3ee3
commit
56c459e49f
5 changed files with 19 additions and 6 deletions
|
@ -89,12 +89,10 @@ in
|
|||
software.minipro.enable = true;
|
||||
};
|
||||
|
||||
age.secrets.infinidoge-password.file = "${self}/secrets/infinidoge-password.age";
|
||||
|
||||
user = {
|
||||
name = "infinidoge";
|
||||
uid = 1000;
|
||||
passwordFile = config.age.secrets.infinidoge-password.path;
|
||||
passwordFile = config.secrets.infinidoge-password;
|
||||
description = "Infinidoge, primary user of the system";
|
||||
group = "users";
|
||||
isNormalUser = true;
|
||||
|
|
|
@ -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 [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue