diff --git a/modules/default.nix b/modules/default.nix index e3032aa..6047156 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -1,5 +1,6 @@ # Copyright : -# - Tom Hubrecht 2023 +# - Tom Hubrecht 2023 +# - Maurice Debray 2023 # # Ce logiciel est un programme informatique servant à déployer des # configurations de serveurs via NixOS. @@ -44,6 +45,7 @@ "dgn-secrets" "dgn-ssh" "dgn-web" + "dgn-vm-variant" ]) ++ [ "${sources.agenix}/modules/age.nix" "${sources.attic}/nixos/atticd.nix" diff --git a/modules/dgn-vm-variant.nix b/modules/dgn-vm-variant.nix new file mode 100644 index 0000000..23db171 --- /dev/null +++ b/modules/dgn-vm-variant.nix @@ -0,0 +1,19 @@ +{ config, lib, ... }: +let + inherit (lib) + mkEnableOption + mkIf; + + cfg = config.dgn-vmVariant; +in + +{ + options.dgn-vmVariant.enable = mkEnableOption "ACME settings." // { default = true; }; + + config = mkIf cfg.enable { + virtualisation.vmVariant = { + services.resolved.dnssec = "false"; + }; + }; +} +