mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-10-11 09:16:14 +02:00
Auto: cleanup-2026-09-13T08-29-34Z
This commit is contained in:
1 parent
5c9d8aee46
commit
8741846a72
1 file changed
+5
-9
@@ -6,14 +6,12 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
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
|
||||||
];
|
];
|
||||||
@@ -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 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user