dyn-gandi/nix/module.nix

19 lines
360 B
Nix
Raw Normal View History

2023-08-03 21:14:04 +00:00
inputs: {
config,
lib,
pkgs,
...
}: let
2023-08-01 19:59:54 +00:00
cfg = config.services.dyn-gandi;
inherit (lib) mkIf mkEnableOption;
#package = inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.default;
in {
options.services.dyn-gandi = {
enable = mkEnableOption null;
};
config = mkIf cfg.enable {
2023-08-03 21:14:04 +00:00
environment.systemPackages = [cfg.package];
};
}