weilite/network: switch to networkd
This commit is contained in:
parent
35b19d67d7
commit
3c89ca3341
2 changed files with 14 additions and 1 deletions
|
@ -20,7 +20,19 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
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 = {
|
commonSettings = {
|
||||||
auth.enable = true;
|
auth.enable = true;
|
||||||
nix = {
|
nix = {
|
||||||
|
|
|
@ -86,6 +86,7 @@ in
|
||||||
TRANSMISSION_USERNAME = "xin";
|
TRANSMISSION_USERNAME = "xin";
|
||||||
};
|
};
|
||||||
after = [ "tailscaled.service" ];
|
after = [ "tailscaled.service" ];
|
||||||
|
wants = [ "tailscaled.service" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${lib.getExe pkgs.transmission-exporter}";
|
ExecStart = "${lib.getExe pkgs.transmission-exporter}";
|
||||||
EnvironmentFile = config.sops.templates."transmission-cred.env".path;
|
EnvironmentFile = config.sops.templates."transmission-cred.env".path;
|
||||||
|
|
Loading…
Add table
Reference in a new issue