weilite: switch to dae in network module

This commit is contained in:
xinyangli 2025-04-10 13:00:06 +08:00
parent 6286be8057
commit c4837931d0
No known key found for this signature in database
2 changed files with 8 additions and 6 deletions

View file

@ -39,6 +39,7 @@
enable = true;
};
comin.enable = true;
network.localdns.enable = true;
};
node = {
mediaDir = "/mnt/nixos/media";
@ -102,7 +103,7 @@
type = "virtiofs";
options = "rw,nodev,nosuid";
}
{
{
what = "originals";
where = "/mnt/photos/xin/originals";
type = "virtiofs";
@ -148,11 +149,6 @@
2222
];
services.dae = {
enable = true;
configFile = "/var/lib/dae/config.dae";
};
services.tailscale = {
enable = true;
openFirewall = true;

View file

@ -25,6 +25,12 @@ in
useLocalResolver = true;
};
services.resolved.enable = mkIf cfg.localdns.enable false;
services.tailscale = mkIf cfg.localdns.enable {
extraUpFlags = [ "--accept-dns=false" ];
};
services.kresd = mkIf cfg.localdns.enable {
enable = true;
listenPlain = [ "127.0.0.1:53" ];