refactor: removing needless module complexity
This commit is contained in:
15
modules/nixos/services/pcscd/default.nix
Normal file
15
modules/nixos/services/pcscd/default.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.nixos.services.pcscd;
|
||||
in {
|
||||
options = {
|
||||
nixos.services.pcscd.enable = mkEnableOption "Enables pcscd";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.pcscd.enable = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user