summaryrefslogtreecommitdiff
path: root/hosts/surtr
diff options
context:
space:
mode:
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