Universally add polkit

This commit is contained in:
Natsu Kagami 2024-04-18 14:56:52 +02:00
parent 94ce7860bb
commit 3e3a433bca
Signed by: nki
GPG key ID: 55A032EB38B49ADB
2 changed files with 9 additions and 5 deletions

View file

@ -106,10 +106,6 @@ in
};
# Autostart
xdg.configFile."autostart/polkit.desktop".text = ''
${builtins.readFile "${pkgs.pantheon.pantheon-agent-polkit}/etc/xdg/autostart/io.elementary.desktop.agent-polkit.desktop"}
OnlyShowIn=sway;
'';
xdg.configFile."autostart/input-remapper-autoload.desktop".source =
"${pkgs.input-remapper}/share/applications/input-remapper-autoload.desktop";

View file

@ -167,6 +167,7 @@ in
qt.style.package = pkgs.adwaita-qt;
qt.style.name = "adwaita";
xdg.configFile =
let
f = pkg: {
@ -184,8 +185,15 @@ in
"${srcFile}/${pkg.name}.desktop";
};
};
autoStartup = listToAttrs (map f (cfg.startup ++ alwaysStartup));
in
listToAttrs (map f (cfg.startup ++ alwaysStartup));
autoStartup // {
## Polkit UI
"autostart/polkit.desktop".text = ''
${builtins.readFile "${pkgs.pantheon.pantheon-agent-polkit}/etc/xdg/autostart/io.elementary.desktop.agent-polkit.desktop"}
OnlyShowIn=sway;
'';
};
# IBus configuration
# dconf.settings."desktop/ibus/general" = {
# engines-order = hm.gvariant.mkArray hm.gvariant.type.string [ "xkb:jp::jpn" "mozc-jp" "Bamboo" ];