Services, refactor, clean up, service to automatic
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.
This commit is contained in:
parent
dfb064e92b
commit
525f68172b
14 changed files with 29 additions and 52 deletions
14
nixosModules/services/polkit/service.nix
Normal file
14
nixosModules/services/polkit/service.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ 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
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue