From 33d539ed4fadeb69b1052fd01a7582683f619ccf Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 25 Sep 2021 12:46:58 +0200 Subject: [PATCH] modules: system: users: use agenix secrets --- modules/system/users.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/system/users.nix b/modules/system/users.nix index 32b46ca..b36114f 100644 --- a/modules/system/users.nix +++ b/modules/system/users.nix @@ -1,7 +1,7 @@ # User setup { config, lib, pkgs, ... }: let - secrets = config.my.secrets; + secrets = config.age.secrets; cfg = config.my.system.users; groupExists = grp: builtins.hasAttr grp config.users.groups; groupsIfExist = builtins.filter groupExists; @@ -17,11 +17,11 @@ in users = { root = { - initialHashedPassword = secrets.users.root.hashedPassword; + passwordFile = secrets."users/root/hashed-password".path; }; ${config.my.user.name} = { - initialHashedPassword = secrets.users.ambroisie.hashedPassword; + passwordFile = secrets."users/ambroisie/hashed-password".path; description = "Bruno BELANYI"; isNormalUser = true; shell = pkgs.zsh;