my over complex system configurations
dotfiles.isabelroses.com/
nixos
nix
flake
dotfiles
linux
1{
2 lib,
3 config,
4 osClass,
5 osConfig,
6 ...
7}:
8let
9 inherit (lib) mkEnableOption;
10in
11{
12 options.garden.profiles.media = {
13 creation.enable = mkEnableOption "media creation profile";
14 streaming.enable = mkEnableOption "media streaming profile";
15
16 watching.enable = mkEnableOption "media watching profile" // {
17 default = config.garden.profiles.graphical.enable && osClass == "nixos";
18 };
19 };
20
21 config = {
22 garden.profiles = {
23 inherit (osConfig.garden.profiles)
24 graphical
25 headless
26 workstation
27 laptop
28 server
29 ;
30 };
31 };
32}