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
+6 -10
View File
@@ -6,14 +6,12 @@
]; ];
}; };
flake.nixosModules.cs-119l = {pkgs, ...}: flake.nixosModules.cs-119l = {pkgs, ...}: let
let user = "tomasr";
user = "YOUR_USERNAME";
home = "/home/${user}"; home = "/home/${user}";
src = "${home}/epfl/cs-119l-ICC/"; src = "${home}/epfl/cs-119l-ICC/";
dst = "${home}/kdrive/Travaille/2 - Bachelor/Information, calcul, communication CS-119l/"; dst = "${home}/kdrive/Travail/2 - Bachelor/BA1/Information, calcul, communication CS-119l/code/";
in in {
{
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
vscode-fhs vscode-fhs
]; ];
@@ -24,15 +22,14 @@
Type = "oneshot"; Type = "oneshot";
User = user; User = user;
ExecStart = ExecStart = "${pkgs.rsync}/bin/rsync -a '${src}' '${dst}'";
"${pkgs.rsync}/bin/rsync -a '${src}' '${dst}'";
}; };
}; };
systemd.timers.sync-cs119l-to-kdrive = { systemd.timers.sync-cs119l-to-kdrive = {
description = "Sync CS-119l ICC to kDrive every Thursday and Friday evening"; description = "Sync CS-119l ICC to kDrive every Thursday and Friday evening";
wantedBy = [ "timers.target" ]; wantedBy = ["timers.target"];
timerConfig = { timerConfig = {
OnCalendar = [ OnCalendar = [
@@ -65,5 +62,4 @@
''; '';
}; };
}; };
} }