os/profiles/suites.nix

35 lines
707 B
Nix
Raw Normal View History

{ lib, profiles }:
let
inherit (builtins) mapAttrs isFunction;
2021-02-02 03:57:14 +00:00
allProfiles =
let
filtered = lib.filterAttrs (n: _: n != "core") profiles;
in
lib.collect isFunction filtered;
2021-02-02 03:57:14 +00:00
allUsers = lib.collect isFunction users;
users = lib.flk.defaultImports (toString ../users);
in
with profiles;
mapAttrs (_: v: lib.flk.profileMap v)
2021-02-02 03:57:14 +00:00
# define your own suites below
rec {
2021-02-02 03:57:14 +00:00
work = [ develop virt users.nixos users.root ];
graphics = work ++ [ graphical ];
mobile = graphics ++ [ laptop ];
play = graphics ++ [
graphical.games
2021-02-02 06:37:08 +00:00
network.torrent
misc.disable-mitigations
];
goPlay = play ++ [ laptop ];
} // {
2021-02-02 03:57:14 +00:00
inherit allProfiles allUsers;
}