mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-10-10 08:55:18 +02:00
Merge pull request #41 from tomasriveral/desktop
Weekly sync: desktop → main
This commit is contained in:
7 files changed
+67
-5
No files matched your search
@@ -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"
|
||||
];
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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"];
|
||||
}
|
||||
];
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
bootloader
|
||||
browsers
|
||||
caelestia
|
||||
cs-119l # I'm obliged to use vscode. RIP neovim
|
||||
development
|
||||
documentation
|
||||
disk
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user