Auto: cleanup-2026-09-13T08-29-34Z

This commit is contained in:
tomasr committed 2026-09-13 10:30:53 +02:00
1 parent 5c9d8aee46
commit 8741846a72
1 file changed
+10 -14
+10 -14
View File
@@ -6,34 +6,31 @@
];
};
flake.nixosModules.cs-119l = {pkgs, ...}:
let
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 @@
'';
};
};
}