add polkit
This commit is contained in:
parent
36a719b7c5
commit
bfee89c04a
2 changed files with 14 additions and 1 deletions
|
@ -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 = [
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue