project-wide: Refactored profile system

This commit is contained in:
kat witch 2021-03-28 21:01:01 +01:00
parent dac56f7394
commit 219efa52ba
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
46 changed files with 52 additions and 107 deletions

View file

@ -2,8 +2,9 @@ rec {
sources = import ./nix/sources.nix;
pkgs = import ./pkgs { inherit sources; };
witch = import ./lib/witch.nix { lib = pkgs.lib; };
profiles = witch.modList { modulesDir = ./profiles; defaultFile = "nixos.nix"; };
hosts = import ./lib/hosts.nix { inherit pkgs sources witch; };
hosts = import ./lib/hosts.nix { inherit pkgs sources witch profiles; };
inherit (pkgs) lib;