nixos-config/common/exwm.nix
2023-12-30 10:05:57 -06:00

34 lines
836 B
Nix

{ config, pkgs, ... }:
{
services.xserver.windowManager.exwm = {
enable = true;
enableDefaultConfig = false;
};
programs = {
nm-applet.enable = true;
gnupg.agent = {
enable = true;
pinentryFlavor = "gtk2";
enableSSHSupport = true;
};
};
security.polkit.enable = true;
systemd = {
user.services.polkit-gnome-authentication-agent-1 = {
description = "polkit-gnome-authentication-agent-1";
wantedBy = [ "graphical-session.target" ];
wants = [ "graphical-session.target" ];
after = [ "graphical-session.target" ];
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
};
};
}