add polkit

This commit is contained in:
LordGrimmauld 2024-03-16 17:48:41 +01:00
parent 36a719b7c5
commit bfee89c04a
2 changed files with 14 additions and 1 deletions

View File

@ -51,6 +51,12 @@ in {
default = false; default = false;
description = "whether to enable sound"; description = "whether to enable sound";
}; };
graphical = mkOption {
type = types.bool;
default = false;
description = "whether to enable graphical components";
}
}; };
imports = [ imports = [

View File

@ -1,6 +1,8 @@
{ pkgs, config, lib, ... }: let { pkgs, config, lib, ... }: let
cfg = config.grimmShared; cfg = config.grimmShared;
in { in {
security.polkit.enable = true;
config = with cfg; lib.mkIf (enable && tooling.enable) { config = with cfg; lib.mkIf (enable && tooling.enable) {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
(writeShellScriptBin "silent-add" "git add --intent-to-add $@ ; git update-index --assume-unchanged $@") (writeShellScriptBin "silent-add" "git add --intent-to-add $@ ; git update-index --assume-unchanged $@")
@ -37,12 +39,17 @@ in {
pypy3 pypy3
hyfetch hyfetch
qdirstat
acpi acpi
lshw lshw
pciutils pciutils
usbutils usbutils
powertop powertop
] ++ lib.optionals cfg.graphical [
qdirstat
lxqt.lxqt-policykit
libva-utils
glxinfo
vulkan-tools
]; ];
programs.git = { programs.git = {