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 /topology.nix | |
parent | 2025-02-05 (diff) |
2025-02-17
Diffstat (limited to '')
-rw-r--r-- | topology.nix | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/topology.nix b/topology.nix index a9d1501..d039d38 100644 --- a/topology.nix +++ b/topology.nix @@ -4,19 +4,19 @@ pkgs, ... }: -with lib; import inputs.nix-topology { inherit pkgs; modules = [ { - nixosConfigurations = filterAttrs ( - n: _: !(hasPrefix "test" n) && !(hasPrefix "iso" n) - ) inputs.self.nixosConfigurations; + nixosConfigurations = + inputs.self.nixosConfigurations + |> lib.filterAttrs (n: _: !(lib.hasPrefix "test" n) && !(lib.hasPrefix "iso" n)); } (_: { - nodes = mapAttrs (_: v: { inherit (v) deviceIcon; }) ( - filterAttrs (_: v: !v.isOther) my.configurations - ); + nodes = + lib.my.configurations + |> lib.filterAttrs (_: v: !v.isOther) + |> lib.mapAttrs (_: v: { inherit (v) deviceIcon; }); }) ]; } |