mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-10-10 08:55:18 +02:00
Auto: cleanup-2026-09-13T08-29-34Z
This commit is contained in:
1 parent
bd678ae32d
commit
bd97ba4df7
1 file changed
+11
-15
+11
-15
@@ -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/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 @@
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user