Compare commits

2 Commits
Author SHA1 Message Date
tomasr 9879131aca fix fastfetch vscode 2026-09-06 11:33:03 +02:00
tomasr c2f733d4c9 setup for cs-119l 2026-09-06 11:17:23 +02:00
4 changed files with 45 additions and 1 deletions

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"
];
+3 -1
View File
@@ -66,7 +66,9 @@ _: {
}
eval "$(direnv hook zsh)"
eval "$(deja init zsh)"
fastfetch''\n
if [[ "$TERM_PROGRAM" != "vscode" ]]; then
fastfetch
fi
'';
shellAliases = {
+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;
};
};
};
}