Compare commits

4 Commits
Author SHA1 Message Date
tomasr 3c44b9d9c0 fix path sync cs-119l 2026-09-13 10:42:53 +02:00
tomasr 8741846a72 Auto: cleanup-2026-09-13T08-29-34Z 2026-09-13 10:30:53 +02:00
tomasr 5c9d8aee46 snapshot pre-cleanup-2026-09-13T08-29-34Z 2026-09-13 10:29:34 +02:00
tomasr 018d5464db fix sync cs119l 2026-09-13 10:28:57 +02:00
+11 -15
View File
@@ -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/BA1/Information, calcul, communication CS-119l/code/";
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 @@
'';
};
};
}