git.delta.rocks / remowt / refs/commits / eadb0bb3c19e

difftreelog

source

nix/nixos-modules.nix670 Bsourcehistory
1{config, ...}: {2  flake.nixosModules = rec {3    default = polkit-backend;4    polkit-backend = {pkgs, ...}: {5      services.dbus.packages = [6        config.flake.packages.${pkgs.stdenv.system}.polkit-backend7      ];8      systemd.packages = [9        config.flake.packages.${pkgs.stdenv.system}.polkit-backend10      ];11      systemd.services.remowt-polkit-helper = {12        aliases = ["dbus-lach.polkit.helper1.service"];13        # Restarting can kill in-progress auth requests.14        # It is good to have it restarted for security, but I didn't decided on the flow yet, graceful shutdown?..15        unitConfig.X-RestartIfChanged = false;16      };17    };18  };19}