various updates
This commit is contained in:
parent
89ce2c97d9
commit
636e23deb7
11 changed files with 149 additions and 145 deletions
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
8
hosts/olympus/bastion/containers/dns.nix
Normal file
8
hosts/olympus/bastion/containers/dns.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ ... }: {
|
||||
imports = [ ./common.nix ];
|
||||
services.v.dns = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
mode = "server";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue