fix(vm builds): Add vmvariant to have working dns in vm

This commit is contained in:
sinavir 2023-10-20 19:41:03 +02:00 committed by thubrecht
parent 3124465950
commit c30d8961b9
2 changed files with 22 additions and 1 deletions

View file

@ -1,5 +1,6 @@
# Copyright : # Copyright :
# - Tom Hubrecht <tom.hubrecht@dgnum.eu> 2023 # - Tom Hubrecht <tom.hubrecht@dgnum.eu> 2023
# - Maurice Debray <maurice.debray@dgnum.eu> 2023
# #
# Ce logiciel est un programme informatique servant à déployer des # Ce logiciel est un programme informatique servant à déployer des
# configurations de serveurs via NixOS. # configurations de serveurs via NixOS.
@ -44,6 +45,7 @@
"dgn-secrets" "dgn-secrets"
"dgn-ssh" "dgn-ssh"
"dgn-web" "dgn-web"
"dgn-vm-variant"
]) ++ [ ]) ++ [
"${sources.agenix}/modules/age.nix" "${sources.agenix}/modules/age.nix"
"${sources.attic}/nixos/atticd.nix" "${sources.attic}/nixos/atticd.nix"

View file

@ -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";
};
};
}