devos/profiles/suites.nix
Timothy DeHerrera e92283e9d0
suites: fix play
2021-02-03 13:16:21 -07:00

34 lines
707 B
Nix

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