weilite: switch to dae in network module
This commit is contained in:
parent
1aad6589cf
commit
8b4a2e713b
2 changed files with 8 additions and 6 deletions
|
@ -39,6 +39,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
comin.enable = true;
|
comin.enable = true;
|
||||||
|
network.localdns.enable = true;
|
||||||
};
|
};
|
||||||
node = {
|
node = {
|
||||||
mediaDir = "/mnt/nixos/media";
|
mediaDir = "/mnt/nixos/media";
|
||||||
|
@ -102,7 +103,7 @@
|
||||||
type = "virtiofs";
|
type = "virtiofs";
|
||||||
options = "rw,nodev,nosuid";
|
options = "rw,nodev,nosuid";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
what = "originals";
|
what = "originals";
|
||||||
where = "/mnt/photos/xin/originals";
|
where = "/mnt/photos/xin/originals";
|
||||||
type = "virtiofs";
|
type = "virtiofs";
|
||||||
|
@ -148,11 +149,6 @@
|
||||||
2222
|
2222
|
||||||
];
|
];
|
||||||
|
|
||||||
services.dae = {
|
|
||||||
enable = true;
|
|
||||||
configFile = "/var/lib/dae/config.dae";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.tailscale = {
|
services.tailscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
|
|
@ -25,6 +25,12 @@ in
|
||||||
useLocalResolver = true;
|
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 {
|
services.kresd = mkIf cfg.localdns.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
listenPlain = [ "127.0.0.1:53" ];
|
listenPlain = [ "127.0.0.1:53" ];
|
||||||
|
|
Loading…
Add table
Reference in a new issue