Compare commits

5 Commits
Author SHA1 Message Date
tomasr 5d268e49b9 fix fastfetch vscode 2026-09-06 11:32:56 +02:00
tomasr 377ec45fad setup for cs-119l 2026-09-06 11:17:17 +02:00
tomasr 7a0454befb Auto: cleanup-2026-09-06T07-56-34Z 2026-09-06 09:56:58 +02:00
tomasr acefe53275 snapshot pre-cleanup-2026-09-06T07-56-34Z 2026-09-06 09:56:34 +02:00
tomasr 8edf285346 snapshot pre-autoupdate-2026-09-05T12-18-46Z 2026-09-05 14:18:46 +02:00
4 changed files with 47 additions and 3 deletions

No files matched your search

+3
View File
@@ -69,12 +69,15 @@
flake = let flake = let
system = "x86_64-linux"; system = "x86_64-linux";
unfreePkgs = [ unfreePkgs = [
"code"
"hplip" "hplip"
"nvidia-x11" "nvidia-x11"
"nvidia-settings" "nvidia-settings"
"steam" "steam"
"steam-unwrapped" "steam-unwrapped"
"cheatsheet.nvim" "cheatsheet.nvim"
"vscode"
"vscode-fhs"
"zoom-us" "zoom-us"
"zoom" "zoom"
]; ];
+5 -3
View File
@@ -56,7 +56,7 @@ _: {
command cat "$@" command cat "$@"
fi fi
} }
custom-eza() { # behaves differently if we just call it or if we pipe initContent custom-eza() { # behaves differently if we just call it or if we pipe initContent
if [[ -t 1 ]]; then if [[ -t 1 ]]; then
eza -hlF -aa --color=always --hyperlink --group-directories-first --show-symlinks --icons=always --git --no-permissions "$@" eza -hlF -aa --color=always --hyperlink --group-directories-first --show-symlinks --icons=always --git --no-permissions "$@"
@@ -66,9 +66,11 @@ _: {
} }
eval "$(direnv hook zsh)" eval "$(direnv hook zsh)"
eval "$(deja init zsh)" eval "$(deja init zsh)"
fastfetch''\n if [[ "$TERM_PROGRAM" != "vscode" ]]; then
fastfetch
fi
''; '';
shellAliases = { shellAliases = {
".." = "z .."; ".." = "z ..";
grep = "rg"; grep = "rg";
+1
View File
@@ -25,6 +25,7 @@
bootloader bootloader
browsers browsers
caelestia caelestia
cs-119l # I'm obliged to use vscode. RIP neovim
development development
documentation documentation
disk disk
+38
View File
@@ -4,4 +4,42 @@ _: {
openconnect 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;
};
};
};
} }