about summary refs log tree commit diff
path: root/configurations/default.nix
diff options
context:
space:
mode:
authorazahi <azat@bahawi.net>2025-02-17 02:21:56 +0300
committerazahi <azat@bahawi.net>2025-02-17 02:21:56 +0300
commit59180328cda59817d71cd58c8f48ead047375064 (patch)
tree2cdd7d1bfa309839ef624c19daf283f510aacf69 /configurations/default.nix
parent2025-02-05 (diff)
2025-02-17
Diffstat (limited to '')
-rw-r--r--configurations/default.nix29
1 files changed, 15 insertions, 14 deletions
diff --git a/configurations/default.nix b/configurations/default.nix
index 312ca9f..4d60b8e 100644
--- a/configurations/default.nix
+++ b/configurations/default.nix
@@ -1,26 +1,27 @@
 { inputs, lib, ... }:
-with lib;
 let
   mkConfiguration =
     name:
     {
       modules ? [ ],
       configuration ? ./${name},
-      this ? my.configurations.${name},
+      this ? lib.my.configurations.${name},
     }:
-    nameValuePair name (nixosSystem {
-      inherit (this) system;
-      modules =
-        modules
-        ++ attrValues inputs.self.nixosModules
-        ++ attrValues inputs.nix-topology.nixosModules
-        ++ optional (configuration != null) (import configuration);
-      specialArgs = {
-        inherit inputs lib this;
-      };
-    });
+    lib.nameValuePair name (
+      lib.nixosSystem {
+        inherit (this) system;
+        modules =
+          modules
+          ++ lib.attrValues inputs.self.nixosModules
+          ++ lib.attrValues inputs.nix-topology.nixosModules
+          ++ lib.optional (configuration != null) (import configuration);
+        specialArgs = {
+          inherit inputs lib this;
+        };
+      }
+    );
 in
-mapAttrs' mkConfiguration (
+lib.mapAttrs' mkConfiguration (
   let
     mkTest = this: {
       modules = with inputs; [

Consider giving Nix/NixOS a try! <3