refactor(home): consolidate host home modules under home/hosts

This commit is contained in:
Ryan Yin
2026-03-23 12:32:17 +08:00
parent cf7b5a5be7
commit 8207ccbdff
22 changed files with 59 additions and 47 deletions

View File

@@ -29,8 +29,7 @@ let
];
home-modules = map mylib.relativeToRoot [
"home/darwin/hosts/darwin-${name}.nix"
"home/darwin"
"home/hosts/darwin/darwin-${name}.nix"
];
};

View File

@@ -28,8 +28,7 @@ let
}
];
home-modules = map mylib.relativeToRoot [
"home/darwin/hosts/darwin-${name}.nix"
"home/darwin"
"home/hosts/darwin/darwin-${name}.nix"
];
};

View File

@@ -36,19 +36,9 @@ let
modules.desktop.gaming.enable = false;
}
];
home-modules =
(map mylib.relativeToRoot [
# common
"home/linux/gui.nix"
# host specific
"home/linux/hosts/12kingdoms-${name}.nix"
])
++ [
{
# not supported yet
modules.desktop.gaming.enable = false;
}
];
home-modules = map mylib.relativeToRoot [
"home/hosts/linux/12kingdoms-${name}.nix"
];
};
modules-niri = {
@@ -56,10 +46,7 @@ let
{ programs.niri.enable = true; }
]
++ base-modules.nixos-modules;
home-modules = [
{ modules.desktop.niri.enable = true; }
]
++ base-modules.home-modules;
home-modules = base-modules.home-modules;
};
in
{

View File

@@ -36,18 +36,9 @@ let
modules.desktop.gaming.enable = true;
}
];
home-modules =
(map mylib.relativeToRoot [
# common
"home/linux/gui.nix"
# host specific
"home/linux/hosts/idols-${name}.nix"
])
++ [
{
modules.desktop.gaming.enable = true;
}
];
home-modules = map mylib.relativeToRoot [
"home/hosts/linux/idols-${name}.nix"
];
};
modules-niri = {
@@ -55,10 +46,7 @@ let
{ programs.niri.enable = true; }
]
++ base-modules.nixos-modules;
home-modules = [
{ modules.desktop.niri.enable = true; }
]
++ base-modules.home-modules;
home-modules = base-modules.home-modules;
};
in
{

View File

@@ -36,7 +36,7 @@ let
{ modules.secrets.server.storage.enable = true; }
];
home-modules = map mylib.relativeToRoot [
"home/linux/hosts/idols-${name}.nix"
"home/hosts/linux/idols-${name}.nix"
];
};

View File

@@ -33,7 +33,7 @@ let
];
home-modules = map mylib.relativeToRoot [
# host specific
"home/linux/hosts/idols-${name}.nix"
"home/hosts/linux/idols-${name}.nix"
];
};

View File

@@ -33,7 +33,7 @@ let
];
home-modules = map mylib.relativeToRoot [
# host specific
"home/linux/hosts/idols-${name}.nix"
"home/hosts/linux/idols-${name}.nix"
];
};

View File

@@ -29,7 +29,7 @@ let
{ modules.secrets.server.kubernetes.enable = true; }
];
home-modules = map mylib.relativeToRoot [
"home/linux/core.nix"
"home/hosts/linux/${name}.nix"
];
};

View File

@@ -29,7 +29,7 @@ let
{ modules.secrets.server.kubernetes.enable = true; }
];
home-modules = map mylib.relativeToRoot [
"home/linux/core.nix"
"home/hosts/linux/${name}.nix"
];
};