modules: system: users: use agenix secrets
This commit is contained in:
parent
91abacd0f6
commit
33d539ed4f
|
@ -1,7 +1,7 @@
|
||||||
# User setup
|
# User setup
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
secrets = config.my.secrets;
|
secrets = config.age.secrets;
|
||||||
cfg = config.my.system.users;
|
cfg = config.my.system.users;
|
||||||
groupExists = grp: builtins.hasAttr grp config.users.groups;
|
groupExists = grp: builtins.hasAttr grp config.users.groups;
|
||||||
groupsIfExist = builtins.filter groupExists;
|
groupsIfExist = builtins.filter groupExists;
|
||||||
|
@ -17,11 +17,11 @@ in
|
||||||
|
|
||||||
users = {
|
users = {
|
||||||
root = {
|
root = {
|
||||||
initialHashedPassword = secrets.users.root.hashedPassword;
|
passwordFile = secrets."users/root/hashed-password".path;
|
||||||
};
|
};
|
||||||
|
|
||||||
${config.my.user.name} = {
|
${config.my.user.name} = {
|
||||||
initialHashedPassword = secrets.users.ambroisie.hashedPassword;
|
passwordFile = secrets."users/ambroisie/hashed-password".path;
|
||||||
description = "Bruno BELANYI";
|
description = "Bruno BELANYI";
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
|
|
Loading…
Reference in a new issue