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 = {
|
||||
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 = {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue