diff --git a/default.nix b/default.nix index 4c36956..c311cc0 100644 --- a/default.nix +++ b/default.nix @@ -51,6 +51,12 @@ in { default = false; description = "whether to enable sound"; }; + + graphical = mkOption { + type = types.bool; + default = false; + description = "whether to enable graphical components"; + } }; imports = [ diff --git a/modules/toolchains.nix b/modules/toolchains.nix index 19b6a22..84009f1 100644 --- a/modules/toolchains.nix +++ b/modules/toolchains.nix @@ -1,6 +1,8 @@ { pkgs, config, lib, ... }: let cfg = config.grimmShared; in { + security.polkit.enable = true; + config = with cfg; lib.mkIf (enable && tooling.enable) { environment.systemPackages = with pkgs; [ (writeShellScriptBin "silent-add" "git add --intent-to-add $@ ; git update-index --assume-unchanged $@") @@ -37,12 +39,17 @@ in { pypy3 hyfetch - qdirstat acpi lshw pciutils usbutils powertop + ] ++ lib.optionals cfg.graphical [ + qdirstat + lxqt.lxqt-policykit + libva-utils + glxinfo + vulkan-tools ]; programs.git = {