summaryrefslogtreecommitdiffstats
path: root/tv/2configs/ppp.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2021-01-22 01:02:45 +0100
committertv <tv@krebsco.de>2021-01-25 11:29:15 +0100
commit88c6558935373fa7caf8730497d63894daef436d (patch)
tree898632de92d456226e67b118006fb20053aaad2f /tv/2configs/ppp.nix
parenta0ca091cbf4e9ca41390ad9d54844c9eb2660406 (diff)
tv ppp: allow networkd
Diffstat (limited to 'tv/2configs/ppp.nix')
-rw-r--r--tv/2configs/ppp.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/tv/2configs/ppp.nix b/tv/2configs/ppp.nix
index ff61f943f..c801401b2 100644
--- a/tv/2configs/ppp.nix
+++ b/tv/2configs/ppp.nix
@@ -8,8 +8,10 @@
in {
assertions = [
{
- assertion = config.networking.resolvconf.enable;
- message = "ppp configuration needs resolvconf";
+ assertion =
+ config.networking.resolvconf.enable ||
+ config.networking.useNetworkd;
+ message = "ppp configuration needs resolvconf or networkd";
}
];
environment.etc."ppp/ip-up".source = pkgs.writeDash "ppp.ip-up" ''