summaryrefslogtreecommitdiff
path: root/hosts/surtr
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
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')
-rw-r--r--hosts/surtr/bifrost/default.nix14
-rw-r--r--hosts/surtr/borg.nix2
2 files changed, 15 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}
diff --git a/hosts/surtr/borg.nix b/hosts/surtr/borg.nix
index b9fe53d7..ad4e5694 100644
--- a/hosts/surtr/borg.nix
+++ b/hosts/surtr/borg.nix
@@ -29,6 +29,8 @@ with lib;
29 BatchMode yes 29 BatchMode yes
30 ServerAliveInterval 10 30 ServerAliveInterval 10
31 ServerAliveCountMax 30 31 ServerAliveCountMax 30
32
33 IPQoS cs1
32 ''; 34 '';
33 }; 35 };
34 36