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

1
.gitignore vendored
View File

@@ -2,3 +2,4 @@
.tmp
result
.aider*
.claude

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

View File

@@ -0,0 +1,5 @@
{ pkgs }:
{
# Minimal profile: reuses server.nix for basic package list
packages = (import ./server.nix { inherit pkgs; }).packages;
}

View File

@@ -0,0 +1,5 @@
{ pkgs, ... }:
{
# Minimal profile: reuses server.nix for basic CLI programs
imports = [ ./server.nix ];
}

View File

@@ -2,6 +2,7 @@
{
imports = [
../../common/global
../../common/cloud-node.nix # Minimal system with Consul
./hardware.nix
./reverse-proxy.nix
];

View File

@@ -8,6 +8,7 @@
imports = [
../../common/encrypted-btrfs-layout.nix
../../common/global
../../common/workstation-node.nix # Dev tools (deploy-rs, docker, nix-ld)
../../common/cluster-member.nix # Consul + storage clients
../../common/cluster-tools.nix # Nomad CLI (no service)
./hardware.nix

View File

@@ -3,6 +3,7 @@
imports = [
../../common/encrypted-btrfs-layout.nix
../../common/global
../../common/desktop-node.nix # Hyprland + GUI environment
../../common/cluster-member.nix # Consul + storage clients
../../common/cluster-tools.nix # Nomad CLI (no service)
./hardware.nix