mirror of
https://github.com/divnix/digga.git
synced 2024-12-25 00:55:08 +03:00
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:
parent
4cc03cae50
commit
425f7894a4
@ -27,6 +27,8 @@
|
||||
inherit (pkgs) sddm-chili dejavu_nerdfont purs;
|
||||
};
|
||||
|
||||
nixosModules = import ./modules;
|
||||
nixosModules = (import ./modules) // {
|
||||
profiles = import ./profiles;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -8,6 +8,7 @@ let
|
||||
|
||||
inherit (builtins)
|
||||
attrValues
|
||||
removeAttrs
|
||||
;
|
||||
|
||||
|
||||
@ -31,8 +32,11 @@ let
|
||||
|
||||
local = import "${toString ./.}/${this}.nix";
|
||||
|
||||
flakeModules = removeAttrs self.nixosModules
|
||||
[ "profiles" ];
|
||||
|
||||
in
|
||||
attrValues self.nixosModules ++ [
|
||||
attrValues flakeModules ++ [
|
||||
core
|
||||
global
|
||||
local
|
||||
|
6
profiles/default.nix
Normal file
6
profiles/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
graphical = import ./graphical;
|
||||
develop = import ./develop;
|
||||
misc = import ./misc;
|
||||
games = import ./game;
|
||||
}
|
Loading…
Reference in New Issue
Block a user