1{ lib, config, user, helpers, ... }:
2
3with lib;
4let
5 cfg = config.modules.desktop;
6in {
7 options.modules.desktop = {
8 enable = mkOption {
9 default = false;
10 example = true;
11 description = "Whether to enable Desktop options.";
12 type = types.bool;
13 };
14 };
15
16 config.modules.desktop = {
17 enable = if helpers.isLinux then (mkDefault false) else (mkForce false);
18 };
19} // helpers.linuxAttrs {
20 imports = [
21 ./session.nix
22 ./affinity.nix
23 ./fonts.nix
24 ./rawaccel.nix
25 ./audio.nix
26 ./networking.nix
27 ./hyprland.nix
28 ];
29
30 config = mkIf cfg.enable {
31 users.users."${user}".extraGroups = [ "video" ];
32 };
33}