Refactor modules style
This commit is contained in:
parent
ed2a7f94cf
commit
cc95386f1a
44 changed files with 455 additions and 297 deletions
14
nixosModules/services/polkit/default.nix
Normal file
14
nixosModules/services/polkit/default.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