This commit is contained in:
caem 2025-01-19 23:06:17 +01:00
parent 7ebeb89eee
commit c04ce3672a
Signed by: caem
GPG key ID: 69A830D03203405F
4 changed files with 74 additions and 58 deletions

View file

@ -1,4 +1,4 @@
{ ... }:
{ inputs, ... }:
{
programs.gnupg.agent = {
@ -30,5 +30,8 @@
mutableUsers = false;
};
sops.age.keyFile = "/nix/config/secrets/keys.txt";
sops = {
defaultSopsFile = inputs.secrets.path;
age.keyFile = "/nix/config/keys.txt";
};
}

View file

@ -1,15 +1,10 @@
{ config, pkgs, ... }:
{
sops.secrets.user_password = {
sopsFile = ../../../secrets/user_password.yaml;
neededForUsers = true;
};
users.users.caem = {
isNormalUser = true;
shell = pkgs.zsh;
hashedPasswordFile = config.sops.secrets.user_password.path;
hashedPasswordFile = config.sops.secrets.upasswd.path;
extraGroups = [
"wheel"
];