Profiles only for home manager.

This commit is contained in:
2025-10-25 08:34:21 +01:00
parent a57fc9107b
commit bd5988dfbc
7 changed files with 20 additions and 11 deletions

View File

@@ -66,13 +66,8 @@
mkHost =
system: profile: modules:
let
# Auto-import profile-specific module based on profile parameter
profileModule =
if profile == "server" then ./common/server-node.nix
else if profile == "workstation" then ./common/workstation-node.nix
else if profile == "desktop" then ./common/desktop-node.nix
else if profile == "cloud" then ./common/cloud-node.nix
else null;
# Profile parameter is only used by home-manager for user environment
# NixOS system configuration is handled via explicit imports in host configs
in
nixpkgs.lib.nixosSystem {
system = system;
@@ -105,7 +100,7 @@
};
};
}
] ++ nixpkgs.lib.optional (profileModule != null) profileModule ++ modules;
] ++ modules;
specialArgs = {
inherit inputs self;
};
@@ -136,9 +131,9 @@
in
{
nixosConfigurations = {
c1 = mkHost "x86_64-linux" "server" [ ./hosts/c1 ];
c2 = mkHost "x86_64-linux" "server" [ ./hosts/c2 ];
c3 = mkHost "x86_64-linux" "server" [ ./hosts/c3 ];
c1 = mkHost "x86_64-linux" "minimal" [ ./hosts/c1 ];
c2 = mkHost "x86_64-linux" "minimal" [ ./hosts/c2 ];
c3 = mkHost "x86_64-linux" "minimal" [ ./hosts/c3 ];
alo-cloud-1 = mkHost "aarch64-linux" "cloud" [ ./hosts/alo-cloud-1 ];
zippy = mkHost "x86_64-linux" "minimal" [
ethereum-nix.nixosModules.default