46 lines
1 KiB
Nix
46 lines
1 KiB
Nix
{
|
|
config,
|
|
host,
|
|
inputs,
|
|
pkgs,
|
|
username,
|
|
...
|
|
}: let
|
|
inherit (config.zaneyos) gitUsername;
|
|
in {
|
|
imports = [inputs.home-manager.nixosModules.home-manager];
|
|
home-manager = {
|
|
useUserPackages = true;
|
|
useGlobalPkgs = false;
|
|
backupFileExtension = "backup";
|
|
extraSpecialArgs = {
|
|
inherit inputs username host pkgs;
|
|
inherit (config) zaneyos;
|
|
};
|
|
users.${username} = {
|
|
imports = [./../home];
|
|
home = {
|
|
username = "${username}";
|
|
homeDirectory = "/home/${username}";
|
|
stateVersion = "23.11";
|
|
};
|
|
};
|
|
};
|
|
users.mutableUsers = true;
|
|
users.users.${username} = {
|
|
isNormalUser = true;
|
|
description = "${gitUsername}";
|
|
extraGroups = [
|
|
"adbusers"
|
|
"docker" #access to docker as non-root
|
|
"libvirtd" #Virt manager/QEMU access
|
|
"lp"
|
|
"networkmanager"
|
|
"wheel" #sudo access
|
|
"vboxusers" #Virtual Box
|
|
];
|
|
shell = pkgs.zsh;
|
|
ignoreShellProgramCheck = true;
|
|
};
|
|
nix.settings.allowed-users = ["${username}"];
|
|
}
|