refactor nix config a bit

This commit is contained in:
Vivian 2022-12-26 15:13:04 +01:00
parent f91842b292
commit 9bf32cc9b3
9 changed files with 182 additions and 238 deletions

View file

@ -53,13 +53,12 @@
, ... }@inputs:
let
inherit (nixpkgs) lib;
inherit (builtins) mapAttrs;
util = import ./nixos/util.nix inputs;
system = "x86_64-linux";
# import and add realm to list of tags
hosts = mapAttrs util.add_realm_to_tags (import ./nixos/hosts);
hosts = util.add_realm_to_tags (import ./nixos/hosts);
# flatten hosts to single list
flat_hosts = util.flatten_hosts hosts;
# Filter out all non-nixos hosts