diff options
author | Azat Bahawi <azat@bahawi.net> | 2023-11-16 02:16:22 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2023-11-16 02:16:22 +0300 |
commit | 576d4d672d37e490bd5f8dfb4397909600ed68db (patch) | |
tree | 77cc6edfea50f24048f69bf2c54bc6d6f2117e01 /flake.nix | |
parent | 2023-11-16 (diff) |
2023-11-16
Diffstat (limited to '')
-rw-r--r-- | flake.nix | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/flake.nix b/flake.nix index 0a520e0..a70a934 100644 --- a/flake.nix +++ b/flake.nix @@ -249,17 +249,14 @@ }; outputs = inputs: - with inputs; let - lib = nixpkgs.lib.extend (import ./lib); - in - flake-utils.lib.eachDefaultSystem - (system: { + with inputs; + flake-utils.lib.eachDefaultSystem (system: { apps.default = { type = "app"; program = "${self.packages.${system}.default}/bin/nixfiles"; }; - packages = with lib; let + packages = let buildIsoImage = name: self.nixosConfigurations.${name}.config.system.build.isoImage; in { default = self.legacyPackages.${system}.nixfiles; @@ -278,18 +275,18 @@ formatter = self.legacyPackages.${system}.alejandra; - checks = import ./checks.nix {inherit system inputs lib;}; + checks = import ./checks.nix {inherit inputs system;}; }) // { - inherit lib; + lib = nixpkgs.lib.extend (import ./lib); modules.nixfiles = import ./modules/common; nixosModules.nixfiles = import ./modules/nixos; - nixosConfigurations = import ./nixosConfigurations {inherit inputs lib;}; + nixosConfigurations = import ./nixosConfigurations inputs; darwinModules.nixfiles = import ./modules/darwin; - darwinConfigurations = import ./darwinConfigurations {inherit inputs lib;}; + darwinConfigurations = import ./darwinConfigurations inputs; overlays.default = final: prev: import ./overlay.nix final prev; }; |