modules: system: users: use agenix secrets
This commit is contained in:
parent
b6af754199
commit
409e0ef357
|
@ -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