about summary refs log tree commit diff
path: root/topology.nix
blob: a9d1501bf2e5388893d958a103c4b90832d21d64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  inputs,
  lib,
  pkgs,
  ...
}:
with lib;
import inputs.nix-topology {
  inherit pkgs;
  modules = [
    {
      nixosConfigurations = filterAttrs (
        n: _: !(hasPrefix "test" n) && !(hasPrefix "iso" n)
      ) inputs.self.nixosConfigurations;
    }
    (_: {
      nodes = mapAttrs (_: v: { inherit (v) deviceIcon; }) (
        filterAttrs (_: v: !v.isOther) my.configurations
      );
    })
  ];
}

Consider giving Nix/NixOS a try! <3