various updates

This commit is contained in:
Vivian 2024-03-18 17:12:51 +01:00
parent 89ce2c97d9
commit 636e23deb7
11 changed files with 149 additions and 145 deletions

View file

@ -1,6 +1,12 @@
# common container config
{ lib, ... }: {
{ lib, home-manager, ... }: {
imports = [
# ../../../../common/modules
home-manager.nixosModules.home-manager # TODO: I don't like this
];
# Workaround for bug https://github.com/NixOS/nixpkgs/issues/162686
networking.useHostResolvConf = lib.mkForce false;
services.resolved.enable = true;
system.stateVersion = lib.mkDefault "24.05";
}

View file

@ -21,5 +21,13 @@ in {
# * fc00:x
containers = {
dns = {
autoStart = true;
inherit hostAddress hostAddress6;
localAddress = "10.42.99.1";
localAddress6 = "fc00::2";
config = ./dns.nix;
};
};
}

View file

@ -0,0 +1,8 @@
{ ... }: {
imports = [ ./common.nix ];
services.v.dns = {
enable = true;
openFirewall = true;
mode = "server";
};
}