Add tools for using digitizer

This commit is contained in:
Simon Bruder 2022-12-02 18:54:51 +01:00
parent 64c3ccad2a
commit c61023b863
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 15 additions and 0 deletions

View file

@ -27,4 +27,18 @@ lib.mkIf config.sbruder.gui.enable {
environment.systemPackages = with pkgs; [
pkgs.gnome3.adwaita-icon-theme # lutris requires system-wide installation
];
services.input-remapper = lib.mkIf config.sbruder.full {
enable = true;
serviceWantedBy = [ "multi-user.target" ];
};
security.polkit.extraConfig = lib.optionalString config.sbruder.full ''
// Potential security problem, but required because there is no graphical polkit authentication agent
polkit.addRule((action, subject) => {
if (action.id == "org.freedesktop.policykit.exec" && action.lookup("program") == "${config.services.input-remapper.package}/bin/input-remapper-control" && subject.isInGroup("users")) {
return polkit.Result.YES;
}
});
'';
}

View file

@ -151,6 +151,7 @@ in
hunspellDicts.de-de
hunspellDicts.en-gb-ise # dictionary
libreoffice # office suite
unstable.rnote # notebook
xournalpp # notebook
xsane # scanning tool