Move service to automatic since it has a separate purpose. Refactor the default.nix code to include service.nix files so it is easier to extend code.
14 lines
286 B
Nix
14 lines
286 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
options.polkit = {
|
|
enable = lib.mkEnableOption "Enables polkit with kde handler";
|
|
};
|
|
|
|
config = lib.mkIf config.polkit.enable {
|
|
security.polkit.enable = true;
|
|
environment.systemPackages = with pkgs; [
|
|
polkit-kde-agent
|
|
];
|
|
};
|
|
}
|