Skip to content

Commit

Permalink
fix nixos-container networking to allow tailnet dns to work
Browse files Browse the repository at this point in the history
  • Loading branch information
yomaq committed Apr 10, 2024
1 parent 90dff0b commit 09c1f9e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ in
];
system.stateVersion = stateVersion;
age.identityPaths = ["/etc/ssh/${hostName}"];
networking.useHostResolvConf = lib.mkForce false;

yomaq = {
suites = {
foundation.enable = true;
container.enable = true;
};
tailscale = {
enable = true;
Expand Down
28 changes: 28 additions & 0 deletions modules/hosts/suites/container/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ options, config, lib, pkgs, ... }:

with lib;
let
cfg = config.yomaq.suites.container;
in
{
options.yomaq.suites.container = {
enable = mkOption {
type = types.bool;
default = false;
description = ''
'';
};
};

config = mkIf cfg.enable {
yomaq = {
zsh.enable =true;
agenix.enable = true;
nixSettings.enable = true;
tailscale.enable = true;
};
networking.useHostResolvConf = lib.mkForce false;
networking.useDHCP = lib.mkForce true;

};
}

0 comments on commit 09c1f9e

Please sign in to comment.