summaryrefslogtreecommitdiff
path: root/hosts/vidhar/network/bifrost
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/vidhar/network/bifrost')
-rw-r--r--hosts/vidhar/network/bifrost/default.nix12
1 files changed, 12 insertions, 0 deletions
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 {
86 format = "binary"; 86 format = "binary";
87 sopsFile = ./vidhar.priv; 87 sopsFile = ./vidhar.priv;
88 }; 88 };
89
90 systemd.services."bifrost-dscp" = {
91 wantedBy = ["sys-subsystem-net-devices-bifrost.device"];
92 after = ["sys-subsystem-net-devices-bifrost.device"];
93 bindsTo = ["sys-subsystem-net-devices-bifrost.device"];
94
95 serviceConfig = {
96 Type = "oneshot";
97 ExecStart = "${pkgs.preserve-dscp}/bin/preserve-dscp bifrost ens3";
98 ExecStop = "${pkgs.preserve-dscp}/bin/preserve-dscp bifrost ens3 --unload";
99 };
100 };
89 }; 101 };
90} 102}