feat polkit

This commit is contained in:
Leon Wilzer 2024-12-05 19:59:24 +01:00
parent 6b38d68220
commit 9ffe30640e
2 changed files with 32 additions and 13 deletions

View File

@ -341,6 +341,7 @@ in
home.sessionVariables = { home.sessionVariables = {
PAGER = "less -RFX --tabs=4"; PAGER = "less -RFX --tabs=4";
MANPAGER = "nvim +'setl filetype=terminal' +'Man!'"; MANPAGER = "nvim +'setl filetype=terminal' +'Man!'";
QT_QPA_PLATFORMTHEME = "qt5ct";
}; };
xdg.mimeApps = { xdg.mimeApps = {
@ -398,7 +399,6 @@ in
ydotool # wayland automation tool ydotool # wayland automation tool
lunarvim # IDE layer for Neovim lunarvim # IDE layer for Neovim
cloudflared # cloudflare things cloudflared # cloudflare things
sbctl # For debugging and troubleshooting Secure Boot sbctl # For debugging and troubleshooting Secure Boot
killall # killall killall # killall
dmenu # (program) picker for Xorg dmenu # (program) picker for Xorg
@ -475,6 +475,8 @@ in
nixfmt-rfc-style # official nix formatter nixfmt-rfc-style # official nix formatter
ripgrep # some nice grep alternative ripgrep # some nice grep alternative
netcat-gnu # networking connection debugging netcat-gnu # networking connection debugging
libsForQt5.qtstyleplugin-kvantum # qt theme
libsForQt5.qt5ct # qt theme
]; ];
programs = { programs = {
@ -557,6 +559,16 @@ in
user = "git"; user = "git";
identityFile = "${sshDir}/github"; identityFile = "${sshDir}/github";
}; };
"*.cs.upb.de *.cs.uni-paderborn.de" = {
extraOptions = {
"GSSAPIAuthentication" = "yes";
"GSSAPIDelegateCredentials" = "yes";
};
user = "lwilzer";
};
"*.cs.upb.de *.cs.uni-paderborn.de,!sshgate.*,!git.*" = lib.hm.dag.entryAfter ["*.cs.upb.de *.cs.uni-paderborn.de"] {
proxyJump = "sshgate.cs.uni-paderborn.de";
};
} // config.programs.ssh.customMatchBlocks; } // config.programs.ssh.customMatchBlocks;
}; };
@ -640,7 +652,7 @@ in
}; };
qt = { qt = {
enable = true; enable = true;
platformTheme.name = "gtk"; platformTheme.name = "qt5ct";
style = { style = {
name = "Catppuccin Mocha"; name = "Catppuccin Mocha";
package = pkgs.catppuccin; package = pkgs.catppuccin;
@ -677,6 +689,24 @@ in
}; };
}; };
systemd.user.services = {
hyprpolkitagent = {
Unit = {
Description = "hyprpolkit agent";
After = "graphical-session.target";
WantedBy = [ "graphical-session.target" ];
Wants = [ "graphical-session.target" ];
};
Service = {
Type = "simple";
ExecStart = "${pkgs.hyprpolkitagent}/libexec/hyprpolkitagent";
Restart = "on-failure";
RestartSec = 1;
TimeoutStopSec = 10;
};
};
};
# This value determines the Home Manager release that your # This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage # configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards # when a new Home Manager release introduces backwards

View File

@ -27,17 +27,6 @@ in
}; };
}; };
programs.ssh.customMatchBlocks =
let
sshDir = "${homeDir}/.ssh";
in
{
"uni-paderborn.de upb.de *.uni-paderborn.de *.upb.de" = {
user = "lwilzer";
identityFile = "${sshDir}/unipaderborn";
};
};
programs.git = { programs.git = {
signing = { signing = {
signByDefault = true; signByDefault = true;