summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorLeonardo Santiago <[email protected]>2025-05-05 23:34:15 -0300
committerLeonardo Santiago <[email protected]>2025-05-05 23:34:15 -0300
commit0ec583d64fb7640611f5e2d440c75a1b8b86f8f5 (patch)
treeb8b644b9ca3b7261f698fe1fc6efc9c92775c1f0 /flake.nix
parent1bd7f83ce366a3d4addf7487af8c8b019320720f (diff)
chore(home-manager): improve home-manager structuring
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix
index 4f08054..3c044a3 100644
--- a/flake.nix
+++ b/flake.nix
@@ -13,7 +13,11 @@
url = "github:nix-community/emacs-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
- zen-browser.url = "github:0xc000022070/zen-browser-flake";
+ zen-browser = {
+ url = "github:0xc000022070/zen-browser-flake";
+ inputs.home-manager.follows = "home-manager";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
mixrank.url = "git+ssh://[email protected]/mixrank/mixrank";
deploy-rs.url = "github:serokell/deploy-rs";
};
@@ -24,13 +28,13 @@
overlays = [ inputs.emacs-overlay.overlays.default ];
system = "x86_64-linux";
};
- modules = map (p: ./modules/${p}) (attrNames (readDir ./modules));
+ mods = map (p: ./modules/${p}) (attrNames (readDir ./modules));
make-config-named = host: nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
./hosts/${host}.nix
inputs.home-manager.nixosModules.default
- ] ++ modules;
+ ] ++ mods;
};
get-basename = n: head (split "\\." n);
hosts-names = map get-basename (attrNames (readDir ./hosts));