mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-17 13:08:19 -04:00
32 lines
546 B
Nix
32 lines
546 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
sops.secrets.gaming_password = {
|
|
sopsFile = ../secrets.yaml;
|
|
neededForUsers = true;
|
|
};
|
|
|
|
users = {
|
|
users.gaming = {
|
|
isNormalUser = true;
|
|
hashedPasswordFile = "${config.sops.secrets.gaming_password.path}";
|
|
|
|
shell = pkgs.zsh;
|
|
group = "gaming";
|
|
extraGroups =
|
|
[
|
|
"audio"
|
|
"video"
|
|
"users"
|
|
];
|
|
uid = 1100;
|
|
};
|
|
|
|
groups.gaming.gid = 1100;
|
|
};
|
|
home-manager.users.gaming = import ./systems/${config.networking.hostName}.nix;
|
|
}
|