.
This commit is contained in:
commit
73ff9ee8ee
31 changed files with 4906 additions and 0 deletions
60
users.nix
Normal file
60
users.nix
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./home/user.nix
|
||||
./home/root.nix
|
||||
];
|
||||
sops.secrets."user/password" = {
|
||||
neededForUsers = true;
|
||||
sopsFile = ./secrets/home.yaml;
|
||||
};
|
||||
sops.secrets."root/password" = {
|
||||
neededForUsers = true;
|
||||
sopsFile = ./secrets/home.yaml;
|
||||
};
|
||||
users = {
|
||||
mutableUsers = true;
|
||||
|
||||
users = {
|
||||
root = {
|
||||
homeMode = "700";
|
||||
hashedPasswordFile = config.sops.secrets."root/password".path;
|
||||
};
|
||||
microvm = {
|
||||
uid = 999;
|
||||
isSystemUser = true;
|
||||
};
|
||||
# agent = {
|
||||
# uid = 1001;
|
||||
# homeMode = "770";
|
||||
# shell = pkgs.fish;
|
||||
# isNormalUser = true;
|
||||
# group = "agents";
|
||||
# extraGroups = [ "user" ];
|
||||
# };
|
||||
user = {
|
||||
uid = 1000;
|
||||
homeMode = "700";
|
||||
home = "/home/user";
|
||||
shell = pkgs.fish;
|
||||
isNormalUser = true;
|
||||
group = "user";
|
||||
extraGroups = [
|
||||
"libvirt"
|
||||
"systemd-journal"
|
||||
"kvm"
|
||||
"agents"
|
||||
];
|
||||
hashedPasswordFile = config.sops.secrets."user/password".path;
|
||||
};
|
||||
};
|
||||
groups = {
|
||||
user.gid = 1000;
|
||||
agents.gid = 777;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue