pkgs/network-graphs: don't use callPackage as it breaks the flake

This commit is contained in:
Astro 2021-11-07 00:05:55 +01:00
parent 27ff3c4516
commit db4d075af2
2 changed files with 4 additions and 2 deletions

View File

@ -25,7 +25,7 @@ let
) (builtins.attrNames config.site.hosts)
);
network-graphs = pkgs.callPackage ./network-graphs.nix { inherit config; };
network-graphs = import ./network-graphs.nix { inherit config pkgs; };
mkRootfs = hostName:
self.nixosConfigurations.${hostName}.config.system.build.toplevel;

View File

@ -1,5 +1,7 @@
{ lib, config, runCommand, graphviz, ... }:
{ config, pkgs, ... }:
let
inherit (pkgs) lib runCommand graphviz;
netColor = net:
if net == "core"
then "grey"