small changes to polkit and other minor things
This commit is contained in:
@@ -95,6 +95,7 @@ in {
|
||||
wayland_git
|
||||
scx.rustscheds
|
||||
rocmPackages.rocm-smi
|
||||
libGL
|
||||
];
|
||||
})
|
||||
]);
|
||||
|
||||
@@ -32,6 +32,7 @@ in {
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
egl-wayland
|
||||
libGL
|
||||
];
|
||||
hardware = {
|
||||
graphics = {
|
||||
|
||||
@@ -27,14 +27,6 @@ in {
|
||||
default = {};
|
||||
description = "Network interface configurations.";
|
||||
};
|
||||
nm-applet = {
|
||||
enable = mkEnableOption "Enables the nm-applet service.";
|
||||
indicator = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "Enables the nm-applet indicator.";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -59,10 +51,5 @@ in {
|
||||
wants = ["nftables.service"];
|
||||
after = ["nftables.service"];
|
||||
};
|
||||
|
||||
programs.nm-applet = {
|
||||
enable = cfg.nm-applet.enable;
|
||||
indicator = cfg.nm-applet.indicator;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ in {
|
||||
pkgs.nodejs_22
|
||||
pkgs.tree
|
||||
pkgs.gnome-disk-utility
|
||||
pkgs.networkmanagerapplet
|
||||
]
|
||||
(mkIf cfg.desktop.enable [
|
||||
pkgs.protonup
|
||||
|
||||
29
modules/nixos/services/polkit/default.nix
Normal file
29
modules/nixos/services/polkit/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.nixos.services.polkit;
|
||||
in {
|
||||
options = {
|
||||
nixos.services.polkit.enable = mkEnableOption "Enables polkit";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
systemd.user.services.polkit-gnome-authentication-agent-1 = {
|
||||
description = "polkit-gnome-authentication-agent-1";
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 1;
|
||||
TimeoutStopSec = 10;
|
||||
};
|
||||
|
||||
wantedBy = ["graphical-session.target"];
|
||||
wants = ["graphical-session.target"];
|
||||
after = ["graphical-session.target"];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user