mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 14:54:08 +09:00
change directory structure
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
{ pkgs, inputs, username, host, profile, ...}:
|
||||
{
|
||||
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||
home-manager = {
|
||||
enable = true;
|
||||
useUserPackages = true;
|
||||
useGlobalPkgs = false;
|
||||
backupFileExtension = "backup";
|
||||
extraSpecialArgs = { inherit inputs username host profile; };
|
||||
users.moons = {
|
||||
imports = [ ./../home ];
|
||||
home = {
|
||||
username = "moons";
|
||||
homeDirectory = "/home/moons";
|
||||
stateVersion = "25.05";
|
||||
};
|
||||
};
|
||||
};
|
||||
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" ];
|
||||
}
|
||||
Reference in New Issue
Block a user