summaryrefslogtreecommitdiff
path: root/hosts/vidhar
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2023-03-10 22:38:41 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2023-03-10 22:38:41 +0100
commit3466b54cd09a105721251932caae78b9a091858d (patch)
treed9fccc96a7f9b6293b502b658cf11df9f4aec149 /hosts/vidhar
parent5d45ddbfaa44d29eb6077153248806d73ceabde9 (diff)
downloadnixos-3466b54cd09a105721251932caae78b9a091858d.tar
nixos-3466b54cd09a105721251932caae78b9a091858d.tar.gz
nixos-3466b54cd09a105721251932caae78b9a091858d.tar.bz2
nixos-3466b54cd09a105721251932caae78b9a091858d.tar.xz
nixos-3466b54cd09a105721251932caae78b9a091858d.zip
vidhar: bifrost dscp
Diffstat (limited to 'hosts/vidhar')
-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}