diff options
| author | Freya Murphy <freya@freyacat.org> | 2026-05-26 13:27:07 -0400 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-05-26 13:27:07 -0400 |
| commit | a45de9e2e216cf73e976192814cdbdbb9164be30 (patch) | |
| tree | 4c2cb500b9d568693597a676ef2b8d27a93284d3 /flake.nix | |
| parent | prepare kaworu host for new pc (diff) | |
| download | dotfiles-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.nix | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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; }; |