From bd97ba4df71c99c5587642303824ff0c674c5962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rivera?= Date: Sun, 13 Sep 2026 10:29:54 +0200 Subject: [PATCH] Auto: cleanup-2026-09-13T08-29-34Z --- modules/utilities/epfl.nix | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/modules/utilities/epfl.nix b/modules/utilities/epfl.nix index 7f4f137..b99f2c3 100644 --- a/modules/utilities/epfl.nix +++ b/modules/utilities/epfl.nix @@ -6,34 +6,31 @@ ]; }; - flake.nixosModules.cs-119l = {pkgs, ...}: - let - user = "YOUR_USERNAME"; + flake.nixosModules.cs-119l = {pkgs, ...}: let + user = "tomasr"; home = "/home/${user}"; src = "${home}/epfl/cs-119l-ICC/"; - dst = "${home}/kdrive/Travaille/2 - Bachelor/Information, calcul, communication CS-119l/"; - in - { + dst = "${home}/kdrive/Travail/2 - Bachelor/Information, calcul, communication CS-119l/"; + in { environment.systemPackages = with pkgs; [ vscode-fhs ]; systemd.services.sync-cs119l-to-kdrive = { description = "Sync CS-119l ICC to kDrive"; - + serviceConfig = { Type = "oneshot"; User = user; - - ExecStart = - "${pkgs.rsync}/bin/rsync -a '${src}' '${dst}'"; + + ExecStart = "${pkgs.rsync}/bin/rsync -a '${src}' '${dst}'"; }; }; - + systemd.timers.sync-cs119l-to-kdrive = { description = "Sync CS-119l ICC to kDrive every Thursday and Friday evening"; - - wantedBy = [ "timers.target" ]; - + + wantedBy = ["timers.target"]; + timerConfig = { OnCalendar = [ "Thu *-*-* 20:00:00" @@ -65,5 +62,4 @@ ''; }; }; - }