weilite/network: switch to networkd

This commit is contained in:
xinyangli 2025-02-14 15:28:33 +08:00
parent 35b19d67d7
commit 3c89ca3341
Signed by: xin
SSH key fingerprint: SHA256:UU5pRTl7NiLFJbWJZa+snLylZSXIz5rgHmwjzv8v4oE
2 changed files with 14 additions and 1 deletions

View file

@ -20,7 +20,19 @@
};
config = {
networking.hostName = "weilite";
networking = {
hostName = "weilite";
useNetworkd = true;
};
systemd.network = {
enable = true;
networks = {
"10-wan" = {
matchConfig.MACAddress = "52:54:00:db:23:d0";
networkConfig.DHCP = "ipv4";
};
};
};
commonSettings = {
auth.enable = true;
nix = {

View file

@ -86,6 +86,7 @@ in
TRANSMISSION_USERNAME = "xin";
};
after = [ "tailscaled.service" ];
wants = [ "tailscaled.service" ];
serviceConfig = {
ExecStart = "${lib.getExe pkgs.transmission-exporter}";
EnvironmentFile = config.sops.templates."transmission-cred.env".path;