34 lines
626 B
Nix
34 lines
626 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"
|
|
".local/gnupg"
|
|
];
|
|
};
|
|
};
|
|
|
|
users.users.caem = {
|
|
isNormalUser = true;
|
|
shell = pkgs.zsh;
|
|
hashedPasswordFile = config.sops.secrets.upasswd.path;
|
|
extraGroups = [
|
|
"wheel"
|
|
];
|
|
};
|
|
|
|
home-manager.users.caem = import ../../home/caem;
|
|
}
|