initial commit

This commit is contained in:
root 2025-12-22 16:46:52 -03:00
commit 120dbdbc64
No known key found for this signature in database
21 changed files with 2413 additions and 0 deletions

37
users.nix Normal file
View file

@ -0,0 +1,37 @@
{
config,
pkgs,
...
}:
{
sops.secrets."user/password" = {
neededForUsers = true;
sopsFile = ./secrets/home.yaml;
};
sops.secrets."root/password" = {
neededForUsers = true;
sopsFile = ./secrets/home.yaml;
};
users = {
mutableUsers = false;
users = {
root = {
homeMode = "700";
hashedPasswordFile = config.sops.secrets."root/password".path;
};
user = {
uid = 1000;
homeMode = "700";
shell = pkgs.fish;
isNormalUser = true;
group = "user";
extraGroups = [ "libvirt" ];
hashedPasswordFile = config.sops.secrets."user/password".path;
};
};
groups = {
user.gid = 1000;
};
};
}