ctucx.git: nixfiles

ctucx' nixfiles

commit 307cbf02f99514e8f163fed9576e6687a8311cdc
parent da8aa7563cf7d2f891e6f41607d0bd6e77a829ea
Author: Leah (ctucx) <git@ctu.cx>
Date: Tue, 9 May 2023 13:52:55 +0200

small fixes and cleanup
4 files changed, 5 insertions(+), 18 deletions(-)
diff --git a/machines/lollo/configuration.nix b/machines/lollo/configuration.nix
@@ -2,6 +2,8 @@
 
 {
 
+  deployment.targetHost = "lollo.ctu.cx";
+
   imports = [
     inputs.impermanence.nixosModules.impermanence
 

@@ -101,10 +103,10 @@
 
     interfaces.eno1 = {
       ipv4.addresses = [
-        {
+        (lib.mkIf config.networking.usePBBUplink {
           address = "195.39.246.42";
           prefixLength = 28;
-        }
+        })
         {
           address = "10.0.0.42";
           prefixLength = 8;
diff --git a/modules/linux/restic-backups.nix b/modules/linux/restic-backups.nix
@@ -51,7 +51,7 @@ let
         type    = types.attrs;
         default = {
           OnCalendar         = "daily";
-          RandomizedDelaySec = 300;
+          RandomizedDelaySec = 1200;
         };
       };
 
diff --git a/pkgs/kvg-station-departures.nix b/pkgs/kvg-station-departures.nix
@@ -1,14 +0,0 @@
-{ nimPackages, fetchgit }:
-
-nimPackages.buildNimPackage {
-  name       = "kvg-kiel-station-departures";
-
-  nimBinOnly  = true;
-
-  src = fetchgit {
-    url    = "https://cgit.ctu.cx/kvg-kiel-station-departures";
-    rev    = "38c2dba0879635cede2e29051831dfe2c71c0f86";
-    sha256 = "1v1hsxy47lv81pl86pgiq7pa61rr39jj78314qczvqq0igjz1frc";
-  };
-
-}
diff --git a/pkgs/overlay.nix b/pkgs/overlay.nix
@@ -18,7 +18,6 @@ final: prev:
   mbusd                  = final.callPackage ./mbusd.nix {};
   homebridge             = final.callPackage ./homebridge {};
   agenix                 = final.callPackage ./agenix {};
-  kvg-station-departures = final.callPackage ./kvg-station-departures.nix {};
   matrix-sliding-sync    = final.callPackage ./matrix-sliding-sync.nix {};
 
 }