change directory structure

This commit is contained in:
2025-10-29 01:28:17 +09:00
parent 18f1ef1e20
commit 3dc7ef3d9d
35 changed files with 390 additions and 266 deletions
+37
View File
@@ -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" ];
}