aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-04-04 23:29:14 +0200
committerNatasha Moongrave <natasha@256phi.eu>2026-04-04 23:29:14 +0200
commit29327f37614667444761d1c2a8f71fe54fddec66 (patch)
tree2b62e0b2cdbe0b28408001dc99be99333d8a1a0e /flake.nix
parentcf0c9f66c4b5d9e6342c1eac302d0e6bbe9b1587 (diff)
Simplify rice selection - single parameter drives all config
- Rice parameter now passed to both system and home-manager - Removed hostname-based rice mapping from home/mun/default.nix - Home config directly imports rice using rice parameter - Now you just specify rice once: mkSystem hostname rice-name
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 1ffceff..454cfb1 100644
--- a/flake.nix
+++ b/flake.nix
@@ -61,13 +61,14 @@
];
# Per-host home-manager configuration
- mkHomeManagerModule = hostname: {
+ mkHomeManagerModule = hostname: rice: {
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {
inherit inputs;
inherit hostname;
+ inherit rice;
};
users.mun = import ./home/mun;
sharedModules = [
@@ -95,7 +96,7 @@
home-manager.nixosModules.home-manager
nixowos.nixosModules.default
stylix.nixosModules.stylix
- (mkHomeManagerModule hostname)
+ (mkHomeManagerModule hostname rice)
];
};
in {