From 3466b54cd09a105721251932caae78b9a091858d Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 10 Mar 2023 22:38:41 +0100 Subject: vidhar: bifrost dscp --- hosts/vidhar/network/bifrost/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'hosts/vidhar/network/bifrost') diff --git a/hosts/vidhar/network/bifrost/default.nix b/hosts/vidhar/network/bifrost/default.nix index ec354f81..5f96ffbd 100644 --- a/hosts/vidhar/network/bifrost/default.nix +++ b/hosts/vidhar/network/bifrost/default.nix @@ -86,5 +86,17 @@ in { format = "binary"; sopsFile = ./vidhar.priv; }; + + systemd.services."bifrost-dscp" = { + wantedBy = ["sys-subsystem-net-devices-bifrost.device"]; + after = ["sys-subsystem-net-devices-bifrost.device"]; + bindsTo = ["sys-subsystem-net-devices-bifrost.device"]; + + serviceConfig = { + Type = "oneshot"; + ExecStart = "${pkgs.preserve-dscp}/bin/preserve-dscp bifrost ens3"; + ExecStop = "${pkgs.preserve-dscp}/bin/preserve-dscp bifrost ens3 --unload"; + }; + }; }; } -- cgit v1.2.3