aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-04-04 23:08:40 +0200
committerNatasha Moongrave <natasha@256phi.eu>2026-04-04 23:08:40 +0200
commitcf0c9f66c4b5d9e6342c1eac302d0e6bbe9b1587 (patch)
tree906df69461643f32ff2987b6ed60a4641ca4070a /flake.nix
parent34b430244dd21d6fb21bf0463190535574d1a1fc (diff)
Refactor rice system imports to flake level
- Rice system configs now imported in flake mkSystem helper - Removed rice system.nix imports from host configurations - mkSystem now takes hostname and rice name as parameters - Fixes module ordering issue where rice options weren't defined yet
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/flake.nix b/flake.nix
index 96b354b..1ffceff 100644
--- a/flake.nix
+++ b/flake.nix
@@ -76,8 +76,8 @@
};
};
- # Helper to create a NixOS system
- mkSystem = hostname:
+ # Helper to create a NixOS system with rice
+ mkSystem = hostname: rice:
nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {inherit inputs;};
@@ -91,6 +91,7 @@
}
./hosts/${hostname}/configuration.nix
./system
+ ./home/rices/${rice}/system.nix
home-manager.nixosModules.home-manager
nixowos.nixosModules.default
stylix.nixosModules.stylix
@@ -99,9 +100,9 @@
};
in {
nixosConfigurations = {
- kronos = mkSystem "kronos";
- herra = mkSystem "herra";
- mystra = mkSystem "mystra";
+ kronos = mkSystem "kronos" "nord-blue";
+ herra = mkSystem "herra" "cassette-futurism";
+ mystra = mkSystem "mystra" "nord-blue";
};
};
}