summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-05-26 13:27:07 -0400
committerFreya Murphy <freya@freyacat.org>2026-05-26 13:27:07 -0400
commita45de9e2e216cf73e976192814cdbdbb9164be30 (patch)
tree4c2cb500b9d568693597a676ef2b8d27a93284d3 /flake.nix
parentprepare kaworu host for new pc (diff)
downloaddotfiles-nix-a45de9e2e216cf73e976192814cdbdbb9164be30.tar.gz
dotfiles-nix-a45de9e2e216cf73e976192814cdbdbb9164be30.tar.bz2
dotfiles-nix-a45de9e2e216cf73e976192814cdbdbb9164be30.zip
make lib extendable with our additions
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/flake.nix b/flake.nix
index 1f51864..9a6dc80 100644
--- a/flake.nix
+++ b/flake.nix
@@ -55,10 +55,12 @@
}
)
systems);
- mkSystem = hostDir: system:
- nixpkgs.lib.nixosSystem {
+ mkSystem = hostDir: system: let
+ lib = nixpkgs.lib.extend (_: _: self.lib);
+ in
+ lib.nixosSystem {
inherit system;
- specialArgs = {inherit inputs system hostDir;};
+ specialArgs = {inherit inputs system hostDir lib;};
modules = [
./system
./options.nix
@@ -67,10 +69,11 @@
};
mkHome = hostDir: system: let
hostModule = mkSystem hostDir system;
+ lib = nixpkgs.lib.extend (_: _: self.lib);
in
home-manager.lib.homeManagerConfiguration {
inherit (hostModule) pkgs;
- extraSpecialArgs = {inherit inputs system hostDir;};
+ extraSpecialArgs = {inherit inputs system hostDir lib;};
modules = [
./home
./options.nix
@@ -97,7 +100,6 @@
};
lib = import ./lib {
- inherit inputs;
inherit (nixpkgs) lib;
};