mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 08:28:11 +09:00
38 lines
983 B
Nix
38 lines
983 B
Nix
{ pkgs, inputs, username, host, profile, ...}:
|
|
{
|
|
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
|
home-manager = {
|
|
useUserPackages = true;
|
|
useGlobalPkgs = false;
|
|
backupFileExtension = "backup";
|
|
extraSpecialArgs = { inherit inputs username host profile; };
|
|
users.moons = {
|
|
imports = [ ./../home ];
|
|
home = {
|
|
username = "moons";
|
|
homeDirectory = "/home/moons";
|
|
stateVersion = "25.11";
|
|
};
|
|
};
|
|
};
|
|
users.mutableUsers = true;
|
|
users.users.moons = {
|
|
isNormalUser = true;
|
|
description = "moons-14";
|
|
extraGroups = [
|
|
"adbusers"
|
|
"docker" #access to docker as non-root
|
|
"libvirtd" #Virt manager/QEMU access
|
|
"lp"
|
|
"networkmanager"
|
|
"scanner"
|
|
"wheel" #subdo access
|
|
"vboxusers" #Virtual Box
|
|
];
|
|
shell = pkgs.zsh;
|
|
ignoreShellProgramCheck = true;
|
|
};
|
|
nix.settings.allowed-users = [ "moons" ];
|
|
nix.settings.trusted-users = [ "root" "moons" ];
|
|
}
|