export profiles via flake outputs

Export those listed in `profiles/default.nix` to be included in the
flake output `nixosModules` for easy use in other flakes.
This commit is contained in:
Timothy DeHerrera 2020-01-03 20:01:22 -07:00
parent 4cc03cae50
commit 425f7894a4
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
3 changed files with 14 additions and 2 deletions

View File

@ -27,6 +27,8 @@
inherit (pkgs) sddm-chili dejavu_nerdfont purs; inherit (pkgs) sddm-chili dejavu_nerdfont purs;
}; };
nixosModules = import ./modules; nixosModules = (import ./modules) // {
profiles = import ./profiles;
};
}; };
} }

View File

@ -8,6 +8,7 @@ let
inherit (builtins) inherit (builtins)
attrValues attrValues
removeAttrs
; ;
@ -31,8 +32,11 @@ let
local = import "${toString ./.}/${this}.nix"; local = import "${toString ./.}/${this}.nix";
flakeModules = removeAttrs self.nixosModules
[ "profiles" ];
in in
attrValues self.nixosModules ++ [ attrValues flakeModules ++ [
core core
global global
local local

6
profiles/default.nix Normal file
View File

@ -0,0 +1,6 @@
{
graphical = import ./graphical;
develop = import ./develop;
misc = import ./misc;
games = import ./game;
}