diff options
author | azahi <azat@bahawi.net> | 2025-02-17 02:21:56 +0300 |
---|---|---|
committer | azahi <azat@bahawi.net> | 2025-02-17 02:21:56 +0300 |
commit | 59180328cda59817d71cd58c8f48ead047375064 (patch) | |
tree | 2cdd7d1bfa309839ef624c19daf283f510aacf69 /configurations/default.nix | |
parent | 2025-02-05 (diff) |
2025-02-17
Diffstat (limited to 'configurations/default.nix')
-rw-r--r-- | configurations/default.nix | 29 |
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; [ |