From bd678ae32d01fb6564b64a5fd870e7afdddf2f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rivera?= Date: Thu, 10 Sep 2026 11:12:29 +0200 Subject: [PATCH 1/5] epfl switchDrive --- modules/utilities/epfl.nix | 26 +++++++++++++++++++++++++- other/hyprland/hyprland.lua | 1 + 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/modules/utilities/epfl.nix b/modules/utilities/epfl.nix index 81c469f..7f4f137 100644 --- a/modules/utilities/epfl.nix +++ b/modules/utilities/epfl.nix @@ -1,7 +1,8 @@ -_: { +{self, ...}: { flake.nixosModules.epfl = {pkgs, ...}: { environment.systemPackages = with pkgs; [ openconnect + self.packages.${pkgs.system}.custom-mountEpflDrive ]; }; @@ -42,4 +43,27 @@ _: { }; }; }; + perSystem = {pkgs, ...}: { + packages.custom-mountEpflDrive = pkgs.writeShellApplication { + name = "custom-mountEpflDrive"; + runtimeInputs = with pkgs; [ + rclone + libnotify + ]; + text = '' + REMOTE_NAME="epfl" + MOUNT_POINT="$HOME/epfl/drive" + + if rclone listremotes | rg "^''${REMOTE_NAME}:"; then + echo "Mounting ''${REMOTE_NAME}..." + rclone mount "''${REMOTE_NAME}:" "$MOUNT_POINT" --vfs-cache-mode writes --allow-non-empty & + else + notify-send "rclone mount failed" \ + "Remote ''${REMOTE_NAME} not found.\nConfigure rclone and create the dir ~/epfl/drive/ or comment out the exec line in hyprland.lua." + echo "Remote ''${REMOTE_NAME} not found. Configure rclone or comment out the exec line in hyprland.lua." + fi + ''; + }; + }; + } diff --git a/other/hyprland/hyprland.lua b/other/hyprland/hyprland.lua index f57dfa8..d001e2c 100644 --- a/other/hyprland/hyprland.lua +++ b/other/hyprland/hyprland.lua @@ -940,6 +940,7 @@ hl.on("hyprland.start", function() hl.exec_cmd("awww img WALLPAPER/PATH/PLACEHOLDER") hl.exec_cmd("awww-daemon") hl.exec_cmd("custom-checkKdrive && custom-mountkdrive") + hl.exec_cmd("custom-mountEpflDrive") hl.exec_cmd("custom-gitnotify") hl.exec_cmd("sleep 4 & caelestia-shell") hl.exec_cmd("sleep 20 && ngcp pull --automatic") From bd97ba4df71c99c5587642303824ff0c674c5962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rivera?= Date: Sun, 13 Sep 2026 10:29:54 +0200 Subject: [PATCH 2/5] Auto: cleanup-2026-09-13T08-29-34Z --- modules/utilities/epfl.nix | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/modules/utilities/epfl.nix b/modules/utilities/epfl.nix index 7f4f137..b99f2c3 100644 --- a/modules/utilities/epfl.nix +++ b/modules/utilities/epfl.nix @@ -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 @@ ''; }; }; - } From 8f4117f3e789edd975db139fbadc89f41e37ca65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rivera?= Date: Sun, 13 Sep 2026 10:42:53 +0200 Subject: [PATCH 3/5] fix path sync cs-119l --- modules/utilities/epfl.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/utilities/epfl.nix b/modules/utilities/epfl.nix index b99f2c3..32dc2fd 100644 --- a/modules/utilities/epfl.nix +++ b/modules/utilities/epfl.nix @@ -10,7 +10,7 @@ user = "tomasr"; home = "/home/${user}"; src = "${home}/epfl/cs-119l-ICC/"; - dst = "${home}/kdrive/Travail/2 - Bachelor/Information, calcul, communication CS-119l/"; + dst = "${home}/kdrive/Travail/2 - Bachelor/BA1/Information, calcul, communication CS-119l/code/"; in { environment.systemPackages = with pkgs; [ vscode-fhs From 7d5ae9fa2c6af5a6f461f2e42c0f48628254a712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rivera?= Date: Mon, 21 Sep 2026 12:00:24 +0200 Subject: [PATCH 4/5] remove pomodoro timer shortcut --- README.md | 1 - other/hyprland/hyprland.lua | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 53b899c..770b3e0 100644 --- a/README.md +++ b/README.md @@ -430,7 +430,6 @@ The macros in the layout generate combinations involving `CTRL`, `ALT`, `SUPER`, | Row 2, Col 2 | Change audio output (`CTRL + ALT + SHIFT + 0`) | | Row 2, Col 3 | Special characters (`CTRL + SUPER + 5`) | | Row 2, Col 4 | Color picker (`CTRL + ALT + 8`) | -| Row 3, Col 1 | Pomodoro timer (`CTRL + ALT + 0`) | | Row 4, Col 1 | Launch Anki (`CTRL + ALT + 9`) | The physical layout file contains additional transparent/unused positions, but the bindings above are the active shortcuts documented for the macropad. diff --git a/other/hyprland/hyprland.lua b/other/hyprland/hyprland.lua index d001e2c..abf9846 100644 --- a/other/hyprland/hyprland.lua +++ b/other/hyprland/hyprland.lua @@ -322,7 +322,7 @@ hl.bind(mod .. " + CTRL + 3", hl.dsp.exec_cmd("pavucontrol")) hl.bind("CTRL + SHIFT + ALT + 0", hl.dsp.exec_cmd("kitty --hold --class \"custom-changeAudioOutput\" --name \"Select audio output\" zsh -c \"custom-changeAudioOutput\"")) hl.bind(mod .. " + CTRL + 5", hl.dsp.exec_cmd("gnome-characters")) hl.bind("CTRL + ALT + 8", hl.dsp.exec_cmd("hyprpicker | tee >(wl-copy) | cliphist store")) -hl.bind("CTRL + ALT + 0", hl.dsp.exec_cmd("custom-tomato")) +-- hl.bind("CTRL + ALT + 0", hl.dsp.exec_cmd("custom-tomato")) hl.bind("CTRL + ALT + 2", hl.dsp.exec_cmd("custom-bottom")) hl.bind("CTRL + ALT + 9", hl.dsp.exec_cmd("anki")) From f23ec09369a3f79e913395d0d3ed0523211eaf08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rivera?= Date: Sun, 20 Sep 2026 11:14:11 +0200 Subject: [PATCH 5/5] setup fwupd --- modules/hardware/hardwareUtils.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/hardware/hardwareUtils.nix b/modules/hardware/hardwareUtils.nix index 3c24867..a506469 100644 --- a/modules/hardware/hardwareUtils.nix +++ b/modules/hardware/hardwareUtils.nix @@ -11,6 +11,7 @@ _: { }) syswatch ]; + services.fwupd.enable = true; # update device firmware }; flake.nixosModules.hardwareUtils-desktop = {pkgs-unstable, ...}: { environment.systemPackages = with pkgs-unstable; [ @@ -20,5 +21,6 @@ _: { }) syswatch ]; + services.fwupd.enable = true; # update device firmware }; }