mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-10-12 01:26:14 +02:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9879131aca | ||
|
|
c2f733d4c9 |
No files matched your search
@@ -64,12 +64,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"
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -66,7 +66,9 @@ _: {
|
|||||||
}
|
}
|
||||||
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 = {
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
bootloader
|
bootloader
|
||||||
browsers
|
browsers
|
||||||
caelestia
|
caelestia
|
||||||
|
cs-119l # I'm obliged to use vscode. RIP neovim
|
||||||
development
|
development
|
||||||
documentation
|
documentation
|
||||||
disk
|
disk
|
||||||
|
|||||||
@@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user