From 9b3ebd974bde5c8ebe1f8c8f049f7ee2c6462655 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Thu, 2 May 2024 03:17:48 +0300 Subject: 2024-05-02 --- topology.nix | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'topology.nix') diff --git a/topology.nix b/topology.nix index 8830f12..a9d1501 100644 --- a/topology.nix +++ b/topology.nix @@ -1,8 +1,22 @@ -inputs: self: pkgs: +{ + inputs, + lib, + pkgs, + ... +}: +with lib; import inputs.nix-topology { inherit pkgs; modules = [ - { inherit (self) nixosConfigurations; } - (_: { }) + { + nixosConfigurations = filterAttrs ( + n: _: !(hasPrefix "test" n) && !(hasPrefix "iso" n) + ) inputs.self.nixosConfigurations; + } + (_: { + nodes = mapAttrs (_: v: { inherit (v) deviceIcon; }) ( + filterAttrs (_: v: !v.isOther) my.configurations + ); + }) ]; } -- cgit v1.2.3