parent
fb5d4d46f8
commit
6cb66d86d2
153 changed files with 2078 additions and 3094 deletions
32
modules/nixos/user/caem.nix
Normal file
32
modules/nixos/user/caem.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
users.users.caem = {
|
||||
isNormalUser = true;
|
||||
shell = pkgs.zsh;
|
||||
hashedPasswordFile = config.sops.secrets.upasswd.path;
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
];
|
||||
};
|
||||
|
||||
home-manager.users.caem = import ../../home/caem;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue