From 1a29fda1f9589948865669bf78ac13f26241fadd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rivera?= Date: Thu, 27 Aug 2026 17:53:17 +0200 Subject: [PATCH 1/8] reworked lock time --- modules/applications/caelestia.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/applications/caelestia.nix b/modules/applications/caelestia.nix index 0201499..cfa001b 100644 --- a/modules/applications/caelestia.nix +++ b/modules/applications/caelestia.nix @@ -24,16 +24,16 @@ inhibitWhenAudio = true; timeouts = [ { - timeout = 180; + timeout = 600; idleAction = "lock"; } { - timeout = 300; + timeout = 610; idleAction = "dpms off"; # what's that? returnAction = "dpms on"; } { - timeout = 600; + timeout = 12200; idleAction = ["systemctl" "suspend-then-hibernate"]; } ]; From fdb4d53ec07d9f019d450cb636354811a01bbe79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rivera?= Date: Sun, 30 Aug 2026 17:03:50 +0200 Subject: [PATCH 2/8] reajuste lock timing --- modules/applications/caelestia.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/applications/caelestia.nix b/modules/applications/caelestia.nix index cfa001b..55601ee 100644 --- a/modules/applications/caelestia.nix +++ b/modules/applications/caelestia.nix @@ -24,11 +24,11 @@ inhibitWhenAudio = true; timeouts = [ { - timeout = 600; + timeout = 1000; idleAction = "lock"; } { - timeout = 610; + timeout = 1010; idleAction = "dpms off"; # what's that? returnAction = "dpms on"; } From b738cbb8ef2b5ef6153a92b39ed3510787c650aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rivera?= Date: Sun, 30 Aug 2026 19:33:08 +0200 Subject: [PATCH 3/8] =?UTF-8?q?=C3=B6s=20alias?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/applications/zsh.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/applications/zsh.nix b/modules/applications/zsh.nix index 03b448f..a69d0a8 100644 --- a/modules/applications/zsh.nix +++ b/modules/applications/zsh.nix @@ -43,6 +43,11 @@ _: { enable = true; autosuggestion.enable = false; # zsh-autocomplete is replaced by deja initContent = '' + # those aliases can't be written in nix, because of ö + # l and ö are very close + alias -- ös=ls + alias -- öös=ls + # Safe cat that uses colorize plugin ccat custom-cat() { if [[ -t 1 ]]; then @@ -61,7 +66,9 @@ _: { } eval "$(direnv hook zsh)" eval "$(deja init zsh)" - fastfetch''\n''; + fastfetch''\n + + ''; shellAliases = { ".." = "z .."; grep = "rg"; From 2f2d3cd2ba4097d979d34be4091540f42737a193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rivera?= Date: Sun, 30 Aug 2026 21:06:50 +0200 Subject: [PATCH 4/8] remove duplciate exec nixpkgs-notifier --- modules/applications/hyprland.nix | 33 +++++++++++++++---------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/modules/applications/hyprland.nix b/modules/applications/hyprland.nix index e8a01b5..71c045f 100644 --- a/modules/applications/hyprland.nix +++ b/modules/applications/hyprland.nix @@ -35,23 +35,22 @@ _: { services.xserver.enable = true; }; flake.homeModules.hyprland-laptop = { - home.file.".config/hypr/host.lua" = { - text = '' - hl.on("hyprland.start", function() - hl.exec_cmd("qtbatticon") - hl.exec_cmd("source /run/agenix/ntfy && nixpkgs-notifier listen") - end) - - hl.monitor({ - output = "eDP-1", - mode = "highres@highrr", - position = "0x0", - scale = 1, - }) - ''; - enable = true; - force = true; - }; + home.file.".config/hypr/host.lua" = { + text = '' + hl.on("hyprland.start", function() + hl.exec_cmd("qtbatticon") + end) + + hl.monitor({ + output = "eDP-1", + mode = "highres@highrr", + position = "0x0", + scale = 1, + }) + ''; + enable = true; + force = true; + }; }; flake.homeModules.hyprland-desktop = { home.file.".config/hypr/host.lua" = { From ce8c4f7d738dca6b8b3dde6282ff053d08f91a61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rivera?= Date: Sat, 5 Sep 2026 14:11:09 +0200 Subject: [PATCH 5/8] librewolf: add moodle bookmark --- modules/applications/browser.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/applications/browser.nix b/modules/applications/browser.nix index 3306487..07adb61 100644 --- a/modules/applications/browser.nix +++ b/modules/applications/browser.nix @@ -402,6 +402,12 @@ keyword = "nix function search"; url = "https://noogle.dev"; } + { + name = "EPFL Moodle"; + tags = ["epfl" "moodle"]; + keyword = "epfl moodle"; + url = "https://moodle.epfl.ch/my/courses.php"; + } ]; }; search = { From 44709a3b7c0a626628f537f34584b888dcec9d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rivera?= Date: Sat, 5 Sep 2026 14:14:30 +0200 Subject: [PATCH 6/8] librewolf: add courseware bookmark --- modules/applications/browser.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/applications/browser.nix b/modules/applications/browser.nix index 07adb61..d7cd97d 100644 --- a/modules/applications/browser.nix +++ b/modules/applications/browser.nix @@ -408,6 +408,12 @@ keyword = "epfl moodle"; url = "https://moodle.epfl.ch/my/courses.php"; } + { + name = "EPFL ICC Courseware"; + tags = ["icc" "epfl" "courseware"]; + keyword = "icc epfl courseware"; + url = "https://courseware.epfl.ch/learner-dashboard/"; + } ]; }; search = { From c2f733d4c9f1fc703f00d48e4f3a3d0caee6077c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rivera?= Date: Sun, 6 Sep 2026 11:17:17 +0200 Subject: [PATCH 7/8] setup for cs-119l --- flake.nix | 3 +++ modules/hosts/laptop.nix | 1 + modules/utilities/epfl.nix | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) diff --git a/flake.nix b/flake.nix index 769abca..ff9895b 100644 --- a/flake.nix +++ b/flake.nix @@ -64,12 +64,15 @@ flake = let system = "x86_64-linux"; unfreePkgs = [ + "code" "hplip" "nvidia-x11" "nvidia-settings" "steam" "steam-unwrapped" "cheatsheet.nvim" + "vscode" + "vscode-fhs" "zoom-us" "zoom" ]; diff --git a/modules/hosts/laptop.nix b/modules/hosts/laptop.nix index 6959944..14873ea 100644 --- a/modules/hosts/laptop.nix +++ b/modules/hosts/laptop.nix @@ -23,6 +23,7 @@ bootloader browsers caelestia + cs-119l # I'm obliged to use vscode. RIP neovim development documentation disk diff --git a/modules/utilities/epfl.nix b/modules/utilities/epfl.nix index 1d221c1..81c469f 100644 --- a/modules/utilities/epfl.nix +++ b/modules/utilities/epfl.nix @@ -4,4 +4,42 @@ _: { openconnect ]; }; + + flake.nixosModules.cs-119l = {pkgs, ...}: + let + user = "YOUR_USERNAME"; + home = "/home/${user}"; + src = "${home}/epfl/cs-119l-ICC/"; + dst = "${home}/kdrive/Travaille/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}'"; + }; + }; + + systemd.timers.sync-cs119l-to-kdrive = { + description = "Sync CS-119l ICC to kDrive every Thursday and Friday evening"; + + wantedBy = [ "timers.target" ]; + + timerConfig = { + OnCalendar = [ + "Thu *-*-* 20:00:00" + "Fri *-*-* 20:00:00" + ]; + Persistent = true; + }; + }; + }; } From 9879131acaea111d837cb34ea472869282da0626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rivera?= Date: Sun, 6 Sep 2026 11:32:56 +0200 Subject: [PATCH 8/8] fix fastfetch vscode --- modules/applications/zsh.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/applications/zsh.nix b/modules/applications/zsh.nix index a69d0a8..3bf3835 100644 --- a/modules/applications/zsh.nix +++ b/modules/applications/zsh.nix @@ -66,7 +66,9 @@ _: { } eval "$(direnv hook zsh)" eval "$(deja init zsh)" - fastfetch''\n + if [[ "$TERM_PROGRAM" != "vscode" ]]; then + fastfetch + fi ''; shellAliases = {