snapshot pre-cleanup-2026-05-23T19-39-41Z

This commit is contained in:
2026-05-23 23:32:28 +02:00
parent c8ee6d85fe
commit 30e8029a6b
35 changed files with 353 additions and 229 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{ inputs, ... }: {
{ ... }: {
flake.nixosModules.anki = { pkgs, ... }: {
environment.systemPackages = [
(pkgs.anki.withAddons [
+1 -33
View File
@@ -3,8 +3,7 @@
environment.systemPackages = with pkgs; [
chromium # used only to flash the firmware on my framework laptop 16 (keyboard.frame.work) as only chromium based browser support webHID.
pkgs-unstable.tor-browser
self.packages.custom-librewolfprofiles
(pkgs.callPackage ../../modules/scripts/librewolfprofiles.nix {}) # fzf librewolf profile selector
self.packages.${pkgs.system}.custom-librewolfprofiles
];
};
flake.homeModules.librewolf = { ... }: {
@@ -645,35 +644,4 @@
};
};
};
flake.packages.custom-librewolfprofiles = { pkgs, ... }:
# fzf librewolf profile selector
pkgs.writeShellApplication {
name = "custom-librewolfprofiles";
runtimeInputs = with pkgs; [
zsh
fzf
];
text = ''
# List of profiles
profiles=("work" "other" "private window")
# Use fzf to select
selected=$(printf "%s\n" "''${profiles[@]}" | fzf --height 6 --reverse --prompt="Select LibreWolf profile:")
# If user cancels, exit
[[ -z "$selected" ]] && exit 0
# Launch LibreWolf detached, keeping environment
if [[ "$selected" == "private window" ]]; then
setsid librewolf --private-window --no-remote >/dev/null 2>&1 &
pkill -f "kitty.*Select LibreWolf profile"
else
setsid librewolf -P "$selected" --no-remote >/dev/null 2>&1 &
pkill -f "kitty.*Select LibreWolf profile"
fi
# Exit the kitty terminal after selection
exit
'';
};
}
+1
View File
@@ -11,6 +11,7 @@
self.packages.${pkgs.system}.custom-dontkillsteam # kill app (if not steam or tomato-c
self.packages.${pkgs.system}.custom-killall # kill all windows except focused window
xdg-utils
home-manager
];
# enable hyprland WM
programs.hyprland = {
+16 -20
View File
@@ -1,11 +1,17 @@
{ self, ...}: {
{ pkgs-unstable, ...}: { # for some reason perSystem can't expose pkgs-unstable so we need to expose it here
# -----------------------------------------------------
# Here are a bunch of scripts that interact with hyprland
# Some are still used. Some are broken. Some are deprecated. But I do still keep them in case I want to go back to old tools
# -----------------------------------------------------
perSystem = { pkgs, ... }: let
wallpaper1 = ../../assets/wallpaper1.jpg;
wallpaper2 = ../../assets/wallpaper2.jpg;
wallpaper3 = ../../assets/wallpaper3.jpg;
wallpaper4 = ../../assets/wallpaper4.jpg;
wallpaper5 = ../../assets/wallpaper5.jpg;
in {
# kills the app, but when it's steam or custom-pomodoro
flake.packages.custom-dontkillsteam = { pkgs, ... }:
pkgs.writeShellApplication {
packages.custom-dontkillsteam = pkgs.writeShellApplication {
name = "custom-dontkillsteam";
runtimeInputs = with pkgs; [
hyprland
@@ -21,12 +27,11 @@
'';
};
flake.packages.custom-killall = { pkgs, pkgs-unstable, ...}:
pkgs.writeShellApplication {
packages.custom-killall = pkgs.writeShellApplication {
name = "custom-killall";
runtimeInputs = with pkgs; [
pkgs-unstable.hyprland
jq
runtimeInputs = [
pkgs.hyprland # for some reason pkgs-unstable doesn't work here
pkgs.jq
];
text = ''
active_workspace_id=$(hyprctl activeworkspace -j | jq -r '.id')
@@ -39,15 +44,7 @@
xargs -r kill
'';
};
flake.packages.custom-wallpaper = { pkgs, ... }:
let
wallpaper1 = ../../assets/wallpaper1.jpg;
wallpaper2 = ../../assets/wallpaper2.jpg;
wallpaper3 = ../../assets/wallpaper3.jpg;
wallpaper4 = ../../assets/wallpaper4.jpg;
wallpaper5 = ../../assets/wallpaper5.jpg;
in
pkgs.writeShellApplication {
packages.custom-wallpaper = pkgs.writeShellApplication {
name = "custom-wallpaper";
runtimeInputs = with pkgs; [
socat
@@ -84,8 +81,7 @@
socat -U - UNIX-CONNECT:"$XDG_RUNTIME_DIR"/hypr/"$HYPRLAND_INSTANCE_SIGNATURE"/.socket2.sock | while read -r line; do handle "$line"; done
'';
};
flake.packages.custom-launch = { pkgs, ... }:
pkgs.writeShellApplication {
packages.custom-launch = pkgs.writeShellApplication {
# used for the terminal autostart. Needs to get cleared and recall fastfetch so that the bar from oh-my-zsh get resized
# unused
name = "custom-launch";
@@ -98,4 +94,4 @@
zsh
'';
};
}
};}
+4 -5
View File
@@ -11,8 +11,8 @@
enable = true;
};
};
flake.packages.custom-checkKdrive = { pkgs, ... }:
pkgs.writeShellApplication {
perSystem = { pkgs, ... }: {
packages.custom-checkKdrive = pkgs.writeShellApplication {
name = "custom-checkKdrive";
runtimeInputs = with pkgs; [
rclone
@@ -46,8 +46,7 @@
fi
'';
};
flake.packages.custom-mountkdrive = { pkgs, ... }:
pkgs.writeShellApplication {
packages.custom-mountkdrive = pkgs.writeShellApplication {
name = "custom-mountkdrive";
runtimeInputs = with pkgs; [
rclone
@@ -67,4 +66,4 @@
fi
'';
};
}
};}
+4 -5
View File
@@ -26,8 +26,8 @@
};
};
};
flake.packages.custom-obsidianbackup = {pkgs, ...}:
pkgs.writeShellApplication {
perSystem = {pkgs, ...}: {
packages.custom-obsidianbackup = pkgs.writeShellApplication {
name = "custom-obsidianbackup";
runtimeInputs = with pkgs; [
rclone
@@ -84,8 +84,7 @@
'';
};
# this might be broken after dendritic nix. As it searched for the obsidian.nix to get list of vaults
flake.packages.custom-obsidianvaults = {pkgs, ...}:
pkgs.writeShellApplication {
packages.custom-obsidianbvaults = pkgs.writeShellApplication {
name = "custom-obsidianvaults";
runtimeInputs = with pkgs; [
zsh
@@ -123,4 +122,4 @@
exit
'';
};
}
};}
+5 -7
View File
@@ -13,9 +13,9 @@
recursive = true;
};
};
flake.packages.QS-notifycache = {writeShellApplication, ...}:
perSystem = {pkgs, ...}: {
# creates and maintains cache file for the notification history
writeShellApplication {
packages.QS-notifycache = pkgs.writeShellApplication {
name = "QS-notifycache";
text = ''
CACHE="$HOME/.cache/notify_history"
@@ -25,8 +25,7 @@
echo "Notification history initialized at $(date)" >> "$CACHE"
'';
};
flake.packages.QS-notifyhistory = {writeShellApplication, ...}:
writeShellApplication {
packages.QS-notifyhistory = pkgs.writeShellApplication {
name = "QS-notifyhistory";
text = ''
app="$1"
@@ -51,8 +50,7 @@
} >> "$HOME/.cache/notify_history"
'';
};
flake.packages.QS-sysinfo = { pkgs, ... }:
pkgs.writeShellApplication {
packages.QS-sysinfo = pkgs.writeShellApplication {
name = "QS-sysinfo";
runtimeInputs = with pkgs; [
ripgrep
@@ -122,4 +120,4 @@
echo "{\"cpu\":\"$cpu\",\"temp\":\"$temp\",\"fan\":\"$fan\",\"mem\":\"$mem\",\"disk\":\"$disk\",\"power\":\"$power\",\"down\":\"$down_speed\",\"up\":\"$up_speed\"}"
'';
};
}
};}
+3 -3
View File
@@ -694,8 +694,8 @@
'';
};
};
flake.packages.custom-weatherwaybar = { pkgs, ... }:
pkgs.writeShellApplication {
perSystem = { pkgs, ... }: {
packages.custom-weatherwaybar = pkgs.writeShellApplication {
name = "custom-weatherwaybar";
runtimeInputs = with pkgs; [
curl
@@ -713,4 +713,4 @@
"$TEXT1" "$TEXT2" "$TEXT3"
'';
};
}
};}