1
Fork 0
nixos-system-config/modules/nixos/user/caem.nix
2025-01-23 16:22:29 +01:00

33 lines
603 B
Nix

{ config, pkgs, inputs, ... }:
{
sops.secrets.upasswd = {
neededForUsers = true;
sopsFile = inputs.secrets.paths.upasswd;
};
environment.persistence."/nix/persist" = {
users.caem = {
directories = [
"documents"
"download"
"music"
"images"
"videos"
"programming"
".ssh"
];
};
};
users.users.caem = {
isNormalUser = true;
shell = pkgs.zsh;
hashedPasswordFile = config.sops.secrets.upasswd.path;
extraGroups = [
"wheel"
];
};
home-manager.users.caem = import ../../home/caem;
}