about summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--flake.nix17
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;
       };

Consider giving Nix/NixOS a try! <3