summaryrefslogtreecommitdiff
path: root/hosts/surtr/bifrost
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2023-03-10 22:36:47 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2023-03-10 22:36:47 +0100
commit5d45ddbfaa44d29eb6077153248806d73ceabde9 (patch)
treef6563406cdd540062a0ece5c4c540d0a9cf5572f /hosts/surtr/bifrost
parentc2fbcde4449ffaf798f9ba4f742b942d33a1c1c8 (diff)
downloadnixos-5d45ddbfaa44d29eb6077153248806d73ceabde9.tar
nixos-5d45ddbfaa44d29eb6077153248806d73ceabde9.tar.gz
nixos-5d45ddbfaa44d29eb6077153248806d73ceabde9.tar.bz2
nixos-5d45ddbfaa44d29eb6077153248806d73ceabde9.tar.xz
nixos-5d45ddbfaa44d29eb6077153248806d73ceabde9.zip
surtr: bifrost dscp
Diffstat (limited to 'hosts/surtr/bifrost')
-rw-r--r--hosts/surtr/bifrost/default.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/hosts/surtr/bifrost/default.nix b/hosts/surtr/bifrost/default.nix
index bdedf5b6..ccf0c959 100644
--- a/hosts/surtr/bifrost/default.nix
+++ b/hosts/surtr/bifrost/default.nix
@@ -1,4 +1,4 @@
1{ config, lib, ... }: 1{ config, lib, pkgs, ... }:
2 2
3with lib; 3with lib;
4 4
@@ -56,5 +56,17 @@ in {
56 format = "binary"; 56 format = "binary";
57 sopsFile = ./surtr.priv; 57 sopsFile = ./surtr.priv;
58 }; 58 };
59
60 systemd.services."bifrost-dscp" = {
61 wantedBy = ["sys-subsystem-net-devices-bifrost.device"];
62 after = ["sys-subsystem-net-devices-bifrost.device"];
63 bindsTo = ["sys-subsystem-net-devices-bifrost.device"];
64
65 serviceConfig = {
66 Type = "oneshot";
67 ExecStart = "${pkgs.preserve-dscp}/bin/preserve-dscp bifrost ens3";
68 ExecStop = "${pkgs.preserve-dscp}/bin/preserve-dscp bifrost ens3 --unload";
69 };
70 };
59 }; 71 };
60} 72}