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, ...}: flake.nixosModules.cs-119l = {pkgs, ...}: let
let
user = "tomasr"; user = "tomasr";
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/Information, calcul, communication CS-119l/";
in in {
{
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
vscode-fhs vscode-fhs
]; ];
systemd.services.sync-cs119l-to-kdrive = { systemd.services.sync-cs119l-to-kdrive = {
description = "Sync CS-119l ICC to kDrive"; description = "Sync CS-119l ICC to kDrive";
serviceConfig = { serviceConfig = {
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 = [
"Thu *-*-* 20:00:00" "Thu *-*-* 20:00:00"
@@ -65,5 +62,4 @@
''; '';
}; };
}; };
} }