Merge pull request #41 from tomasriveral/desktop

Weekly sync: desktop → main
This commit is contained in:
github-actions[bot] authored and GitHub committed 2026-09-09 17:34:49 +00:00
commit 3a51d3c14a
7 files changed
+67 -5

No files matched your search

+3
View File
@@ -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"
];
+12
View File
@@ -402,6 +402,18 @@
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";
}
{
name = "EPFL ICC Courseware";
tags = ["icc" "epfl" "courseware"];
keyword = "icc epfl courseware";
url = "https://courseware.epfl.ch/learner-dashboard/";
}
];
};
search = {
+3 -3
View File
@@ -24,16 +24,16 @@
inhibitWhenAudio = true;
timeouts = [
{
timeout = 180;
timeout = 1000;
idleAction = "lock";
}
{
timeout = 300;
timeout = 1010;
idleAction = "dpms off"; # what's that?
returnAction = "dpms on";
}
{
timeout = 600;
timeout = 12200;
idleAction = ["systemctl" "suspend-then-hibernate"];
}
];
-1
View File
@@ -39,7 +39,6 @@ _: {
text = ''
hl.on("hyprland.start", function()
hl.exec_cmd("qtbatticon")
hl.exec_cmd("source /run/agenix/ntfy && nixpkgs-notifier listen")
end)
hl.monitor({
+10 -1
View File
@@ -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,11 @@ _: {
}
eval "$(direnv hook zsh)"
eval "$(deja init zsh)"
fastfetch''\n'';
if [[ "$TERM_PROGRAM" != "vscode" ]]; then
fastfetch
fi
'';
shellAliases = {
".." = "z ..";
grep = "rg";
+1
View File
@@ -23,6 +23,7 @@
bootloader
browsers
caelestia
cs-119l # I'm obliged to use vscode. RIP neovim
development
documentation
disk
+38
View File
@@ -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;
};
};
};
}