Compare commits

...
68 Commits
Author SHA1 Message Date
christoph f45d83b1d9 Home/Nixinator: Run nexusmods NXM handler through flatpak's/steam's runtimes 2026-07-28 23:59:56 +02:00
christoph bf396e97b3 Home/Nixinator: Add nexusmods NXM handler for cyberpunk MO2 2026-07-28 21:02:03 +02:00
christoph 305995f5fd Lib/Nixos: Add nix-gaming to substituters 2026-07-28 21:01:32 +02:00
christoph 33da553f0f System/Nixinator: Enable steam platform tweaks 2026-07-28 21:01:20 +02:00
christoph e8a6c470f3 Flake: Add nix-gaming 2026-07-28 21:01:07 +02:00
christoph 20a64c1040 Home/Nixinator: Disable opencode anthropic support 2026-07-25 15:50:40 +02:00
christoph 6a4d92b478 Flake: Only pass stylix module to nixinator config 2026-07-25 15:49:03 +02:00
christoph 8d900db445 Services/Gitea: Update to v1.27.0 (and act_runner to v0.6.1) 2026-07-25 15:46:23 +02:00
christoph 562b2142a0 System: Switch to pkgs.niri from pkgs.niri-unstable after updating niri-flake 2026-07-25 14:36:16 +02:00
christoph 77887fb6be Modules/Wayber: Lower background opacity for blur 2026-07-25 14:35:54 +02:00
christoph 460b814255 Modules/Niri: Enable background blur for neovide/kitty 2026-07-25 14:35:43 +02:00
christoph 279628f65c Flake: Update niri flake 2026-07-25 14:35:34 +02:00
christoph 34b12d2a35 Modules/Niri: Configure Dolphin 2026-07-21 12:03:32 +02:00
christoph e7cfee0c19 Modules/Niri: Set Qt theme 2026-07-21 11:38:58 +02:00
christoph 990d78ca32 Modules/Packages: Disable nautilus bc it fucking sucks 2026-07-21 11:38:49 +02:00
christoph 628207a87a Modules/Waybar: Add additional hyprland/workspaces + hyprland/window widgets 2026-07-21 11:38:36 +02:00
christoph 551134132d System/Nixinator: Stylix config (no targets enabled) 2026-07-21 11:38:19 +02:00
christoph 2b086cb17e Modules/Hyprland: Slight config cleanup 2026-07-21 11:38:03 +02:00
christoph 62358da6ca Flake: Add stylix 2026-07-21 11:37:13 +02:00
christoph c2d40470c0 Modules/Hyprland: Remove bullshit 2026-07-18 14:53:48 +02:00
christoph 5f57a20b58 Home: Re-enable Hyprpanel (Disabled) 2026-07-18 14:14:51 +02:00
christoph 63670dd4c9 Home: Re-enable Hyprland (HDR test) 2026-07-18 14:13:16 +02:00
christoph 481eed6ca5 Modules/Yazi: Add go to masters thesis keybind 2026-07-09 12:27:31 +02:00
christoph dd2c7cbe20 Modules/Niri: Add ssh/project/colorpicker/screenshot actions to global menu 2026-07-08 17:26:43 +02:00
christoph c327a731ac Services/Immich: Update to v3.0.1-cuda 2026-07-03 20:03:19 +02:00
christoph fc6fc05db2 Services/Immich: Update to v2.7.5-cuda 2026-07-03 11:23:35 +02:00
christoph bba0c76ce2 Modules/Neovim: Update vimtex config 2026-07-03 00:54:46 +02:00
christoph 1d100ee89c Modules/Packages: Add xdotool 2026-07-03 00:54:38 +02:00
christoph 4e921b2467 Config/Navi: Fix missing #s 2026-07-03 00:54:30 +02:00
christoph 650b964d2d Services/Kopia: Update secrets 2026-07-02 21:28:12 +02:00
christoph c603a54f80 Services/Kopia: Add missing volumes 2026-07-02 19:24:28 +02:00
christoph a784c2693d System/Servenix: Enable kopia service 2026-07-02 19:12:26 +02:00
christoph 576865f5a9 Modules/Fish: Don't use abbrify for systemctl abbrs 2026-07-02 18:26:04 +02:00
christoph 49bdc2888d Services/ArcaneAgent: Mount backup path to agent 2026-07-02 18:23:25 +02:00
christoph 61bcb68f44 Modules/Packages: Move inotify-tools to linux-exclusive 2026-07-02 18:14:37 +02:00
christoph 12e776c6a8 Services/ArcaneAgent: Switch back to direct agent 2026-07-02 18:12:24 +02:00
christoph 3cc2a5f96b Modules/Fish: Add systemctl-tui abbr 2026-07-02 17:44:51 +02:00
christoph 32a3ab04a5 Services/ArcaneAgent: Switch to edge agent 2026-07-02 17:27:31 +02:00
christoph c636c84538 Services/ArcaneAgent: Fix sops placeholder name 2026-07-02 17:24:00 +02:00
christoph 041feb2529 Services/ArcaneAgent: Fix environment variables 2026-07-02 17:21:51 +02:00
christoph bf210a7d83 Services/ArcaneAgent: Update secrets 2026-07-02 17:21:15 +02:00
christoph 04d14c54d1 Services/Arcane: Fix ports 2026-07-02 16:55:55 +02:00
christoph 09b988899e Services/Arcane: Fix URLs 2026-07-02 16:53:47 +02:00
christoph 9cbf83f17b System/Servenix: Disable arcane service, enable arcane-agent service 2026-07-02 16:50:48 +02:00
christoph f2382f6270 System/Thinknix: Enable arcane service 2026-07-02 16:50:26 +02:00
christoph 9014e96cfe Services/ArcaneAgent: Init at v2.3.0 2026-07-02 16:50:08 +02:00
christoph b877526a37 System/Thinknix: Disable portainer, pulse, whatsupdocker services 2026-07-02 16:29:48 +02:00
christoph 432346aba8 System/Servenix: Disable statespaces, portainer, pulse, whatsupdocker services 2026-07-02 16:29:36 +02:00
christoph 38e5c60106 System/Servenix: Load arcane sops secrets on servenix 2026-07-02 16:16:44 +02:00
christoph 0d3b0df1a3 Services/Arcane: Fix sops template file path 2026-07-02 16:15:34 +02:00
christoph 56c66f50f9 System/Servenix: Enable arcane service 2026-07-02 16:13:33 +02:00
christoph 828e549412 Services/Arcane: Init arcane service at v2.3.0 2026-07-02 16:13:27 +02:00
christoph 20383e3ac4 System/Servenix: Disable kopia service 2026-07-02 16:12:56 +02:00
christoph ef610c64e4 Services/Teamspeak: Update to v6.0.0-beta11 2026-07-02 15:07:38 +02:00
christoph b78a1b6e88 Modules/Helix: Undeprecate and enable helix 2026-07-02 11:18:05 +02:00
christoph 4f2486ae4a Modules/Neovim: Fix toggleterm floating terminal size + update toggleterm mappings 2026-07-01 16:27:38 +02:00
christoph 5d7d204a11 Modules/Neovim: Update tabby background color to be consistent with lualine 2026-07-01 16:27:21 +02:00
christoph de33562839 Modules/Neovim: Update neotree separator color (so toggleterm doesn't look broken) 2026-07-01 16:26:57 +02:00
christoph ad6a2d471f Modules/Packages: Add inotify-tools 2026-07-01 01:51:59 +02:00
christoph d9b0685aa4 Modules/Neovim: Update latex snippets 2026-07-01 01:51:45 +02:00
christoph 4dc535bf7f Modules/Neovim: Fix termcolors in neovide 2026-07-01 01:46:26 +02:00
christoph a68b74d940 Home/Nixinator: Add ghostty 2026-06-28 17:22:00 +02:00
christoph 6d09ed0537 Modules/Kitty: Add command palette binding 2026-06-28 14:27:17 +02:00
christoph d98bcfb84f Modules/Firefox: Update bookmarks 2026-06-28 14:27:10 +02:00
christoph 39dfaab287 Modules/Neovim: Disable ltex 2026-06-28 14:27:02 +02:00
christoph 6d8f687a9e Modules/Niri: Increase max-scroll-amount for mouse focus 2026-06-28 14:26:55 +02:00
christoph b9331b8169 Modules/Packages: Add asciicam 2026-06-28 14:26:37 +02:00
christoph eb30119de9 Home/Nixinator: Add opencode lmstudio plugin 2026-06-28 14:26:25 +02:00
50 changed files with 2058 additions and 1337 deletions
+2 -2
View File
@@ -206,12 +206,12 @@ dos2unix <file>
$ file: eza -1 $ file: eza -1
% unix2dos % unix2dos
Convert line endings to dos format # Convert line endings to dos format
unix2dos <file> unix2dos <file>
$ file: eza -1 $ file: eza -1
% tiddl % tiddl
Download stuff from tidal # Download stuff from tidal
tiddl download --track-quality max --path ~/Downloads/Beet/Albums --videos none url "<url>" tiddl download --track-quality max --path ~/Downloads/Beet/Albums --videos none url "<url>"
; =========================== ; ===========================
Generated
+937 -69
View File
File diff suppressed because it is too large Load Diff
+18 -1
View File
@@ -47,6 +47,10 @@
nps.url = "github:OleMussmann/nps"; nps.url = "github:OleMussmann/nps";
nps.inputs.nixpkgs.follows = "nixpkgs"; nps.inputs.nixpkgs.follows = "nixpkgs";
# Nix Gaming
nix-gaming.url = "github:fufexan/nix-gaming";
nix-gaming.inputs.nixpkgs.follows = "nixpkgs";
# Run unpatched binaries on NixOS # Run unpatched binaries on NixOS
nix-alien.url = "github:thiagokokada/nix-alien"; nix-alien.url = "github:thiagokokada/nix-alien";
# Don't follow nixpkgs: # Don't follow nixpkgs:
@@ -54,9 +58,16 @@
# nix-alien.inputs.nixpkgs.follows = "nixpkgs"; # nix-alien.inputs.nixpkgs.follows = "nixpkgs";
# Niri # Niri
niri.url = "github:sodiboo/niri-flake"; # niri.url = "github:sodiboo/niri-flake";
niri.url = "github:epireyn/niri-flake"; # NOTE: Updated fork of sodiboo's
niri.inputs.nixpkgs.follows = "nixpkgs"; niri.inputs.nixpkgs.follows = "nixpkgs";
# Hyprland
hyprland.url = "github:hyprwm/Hyprland";
# hyprland.inputs.nixpkgs.follows = "nixpkgs";
hyprland-plugins.url = "github:hyprwm/hyprland-plugins";
hyprland-plugins.inputs.hyprland.follows = "hyprland";
# Walker # Walker
elephant.url = "github:abenz1267/elephant"; elephant.url = "github:abenz1267/elephant";
walker.url = "github:abenz1267/walker"; walker.url = "github:abenz1267/walker";
@@ -86,6 +97,9 @@
# musnix.url = "github:musnix/musnix"; # musnix.url = "github:musnix/musnix";
# musnix.inputs.nixpkgs.follows = "nixpkgs"; # musnix.inputs.nixpkgs.follows = "nixpkgs";
stylix.url = "github:nix-community/stylix";
stylix.inputs.nixpkgs.follows = "nixpkgs";
# HyTale # HyTale
hytale-launcher.url = "github:JPyke3/hytale-launcher-nix"; hytale-launcher.url = "github:JPyke3/hytale-launcher-nix";
@@ -226,6 +240,7 @@
headless = false; headless = false;
extraModules = [ extraModules = [
inputs.sops-nix.darwinModules.sops inputs.sops-nix.darwinModules.sops
inputs.stylix.darwinModules.stylix
]; ];
}; };
}; };
@@ -252,6 +267,8 @@
extraModules = extraModules =
[ [
inputs.disko.nixosModules.disko inputs.disko.nixosModules.disko
inputs.stylix.nixosModules.stylix
inputs.nix-gaming.nixosModules.platformOptimizations
] ]
++ commonModules; ++ commonModules;
}; };
+191 -2
View File
@@ -54,7 +54,7 @@ in
cursorSize = 24; cursorSize = 24;
cursorPackage = pkgs.bibata-cursors; cursorPackage = pkgs.bibata-cursors;
iconTheme = "Papirus"; iconTheme = "Papirus-Dark";
iconPackage = pkgs.papirus-icon-theme; iconPackage = pkgs.papirus-icon-theme;
scheme = "catppuccin-mocha"; scheme = "catppuccin-mocha";
@@ -77,6 +77,193 @@ in
disableTabBar = true; disableTabBar = true;
}; };
hyprland = {
enable = nixosConfig.programs.hyprland.enable;
bars.enable = false;
hyprpanel.enable = false;
keybindings = {
main-mod = "SUPER";
bindings = let
sessionMenu = mylib.rofi.mkMenu {
prompt = "Session2";
layers = [
{
"󰤂 Poweroff" = "poweroff";
"󰜉 Reboot" = "reboot";
"󰌾 Lock" = "loginctl lock-session";
# " Reload Hyprpanel" = "systemctl --user restart hyprpanel.service";
" Reload Hyprland" = "hyprctl reload";
" Exit Hyprland" = "hyprctl dispatch exit";
# " Exit Niri" = "niri msg action quit";
}
];
prompts = ["Select Session Action"];
rofiCmd = "walker -d";
};
in
lib.mergeAttrsList [
{
"$mainMod SHIFT, a" = ["exec, walker -m providerlist"];
"$mainMod, a" = ["exec, walker -m desktopapplications"];
"$mainMod, c" = ["exec, walker -m clipboard"];
"$mainMod, Escape" = ["exec, ${sessionMenu}/bin/rofi-menu-Session2"];
"$mainMod CTRL, w" = ["exec, waypaper"];
}
{
# Applications
"$mainMod, t" = ["exec, kitty"];
"$mainMod, e" = ["exec, kitty --title=Yazi yazi"];
"$mainMod, n" = ["exec, neovide"];
# "$mainMod, r" = ["exec, kitty --title=Rmpc rmpc"];
"$mainMod CTRL, n" = ["exec, kitty --title=Navi navi"];
"$mainMod SHIFT, n" = ["exec, neovide ${config.paths.dotfiles}/navi/christoph.cheat"];
"$mainMod SHIFT, f" = ["exec, neovide ${config.paths.dotfiles}/flake.nix"];
# "ALT, tab" = ["exec, rofi -show window"];
# Screenshots
"$mainMod, p" = ["exec, hyprpicker --autocopy --format=hex"];
"$mainMod, s" = ["exec, grim -g \"$(slurp)\""];
"$mainMod SHIFT, s" = ["exec, grim -g \"$(slurp)\" - | wl-copy"];
# Audio
", XF86AudioRaiseVolume" = ["exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"];
", XF86AudioLowerVolume" = ["exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-"];
", XF86AudioPlay" = ["exec, playerctl play-pause"];
", XF86AudioPrev" = ["exec, playerctl previous"];
", XF86AudioNext" = ["exec, playerctl next"];
# Brightness
", XF86MonBrightnessDown" = ["exec, hyprctl hyprsunset gamma -10"];
", XF86MonBrightnessUp" = ["exec, hyprctl hyprsunset gamma +10"];
"$mainMod, XF86MonBrightnessDown" = ["exec, hyprctl hyprsunset temperature 5750"];
"$mainMod, XF86MonBrightnessUp" = ["exec, hyprctl hyprsunset identity"];
"CTRL ALT, f" = let
hyprctl = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl";
grep = "${pkgs.gnugrep}/bin/grep";
awk = "${pkgs.gawk}/bin/gawk";
notify = "${pkgs.libnotify}/bin/notify-send";
toggleMouseFocus = pkgs.writeScriptBin "hypr-toggle-mouse-focus" ''
CURRENT=$(${hyprctl} getoption input:follow_mouse | ${grep} int | ${awk} -F' ' '{print $2}')
if [[ "$CURRENT" == "1" ]]; then
${hyprctl} keyword input:follow_mouse 0
${notify} "Disabled Mouse Focus!"
else
${hyprctl} keyword input:follow_mouse 1
${notify} "Enabled Mouse Focus!"
fi
'';
in ["exec, ${toggleMouseFocus}/bin/hypr-toggle-mouse-focus"];
# "CTRL ALT, t" = ["exec, bash -c 'systemctl --user restart hyprpanel.service'"];
}
];
ws-bindings = {
# "<Workspace>" = "<Key>";
"1" = "1";
"2" = "2";
"3" = "3";
"4" = "4";
"5" = "5";
"6" = "6";
"7" = "7";
"8" = "8";
"9" = "9";
"10" = "0";
};
# special-ws-bindings = {
# "ferdium" = "x";
# "msty" = "z";
# "btop" = "b";
# "rmpc" = "r";
# };
};
autostart = {
immediate = [
"kitty --hold fastfetch"
# "zeal"
# "protonvpn-app"
# "kdeconnect-indicator" # started by services.kdeconnect.indicator
];
delayed = [
# "keepassxc" # The tray doesn't work when started too early
"nextcloud --background"
];
special-silent = {
# "ferdium" = ["ferdium"];
# "msty" = ["msty"];
# "btop" = ["kitty --title=Btop btop"];
# "rmpc" = ["kitty --title=Rmpc rmpc"];
};
};
windowrules = [
# Fix jetbrains tooltip flicker
"match:class ^(jetbrains-.*)$, match:title ^(win[0-9]+)$, float 1"
"match:class ^(jetbrains-.*)$, match:title ^(win[0-9]+)$, no_initial_focus 1"
];
workspacerules = {
"1" = [];
"2" = ["neovide" "code-url-handler" "dev.zed.Zed" "code" "jetbrains-(.+)"];
"3" = ["obsidian" "Zotero"];
"4" = ["firefox" "Google-chrome" "chromium-browser" "org.qutebrowser.qutebrowser"];
"5" = ["steam"];
"6" = ["steam_app_(.+)" "factorio"];
"7" = ["signal"];
"8" = [];
"9" = ["discord"];
"10" = [];
};
floating = [
{class = "org.kde.polkit-kde-authentication-agent-1";}
{
class = "thunar";
title = "File Operation Progress";
}
{class = "ffplay";}
{class = "Unity";}
{class = "code-url-handler";}
];
transparent-opacity = "0.85";
transparent = [
"kitty"
"Alacritty"
"discord"
"signal"
"vesktop"
"Spotify"
"tidal-hifi"
"obsidian"
"firefox"
"org.qutebrowser.qutebrowser"
"jetbrains-clion"
"jetbrains-idea"
"jetbrains-pycharm"
"jetbrains-rustrover"
"jetbrains-rider"
"jetbrains-webstorm"
"code-url-handler"
"neovide"
"steam"
"ferdium"
"Msty"
];
};
mpd.enable = !headless; mpd.enable = !headless;
niri.enable = nixosConfig.programs.niri.enable; niri.enable = nixosConfig.programs.niri.enable;
nnn.enable = false; # Use yazi nnn.enable = false; # Use yazi
@@ -136,9 +323,11 @@ in
# Enable wayland # Enable wayland
XDG_SESSION_TYPE = "wayland"; XDG_SESSION_TYPE = "wayland";
# QT_QPA_PLATFORM = "wayland;xcb";
QT_QPA_PLATFORM = "wayland"; QT_QPA_PLATFORM = "wayland";
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
SDL_VIDEODRIVER = "wayland"; # ELECTRON_OZONE_PLATFORM_HINT = "auto";
SDL_VIDEODRIVER = "wayland"; # Leave unset as gamescope uses xwayland
# Run SSH_ASKPASS as GUI, not TTY for Obsidian git # Run SSH_ASKPASS as GUI, not TTY for Obsidian git
SSH_ASKPASS_REQUIRE = "prefer"; SSH_ASKPASS_REQUIRE = "prefer";
+156 -5
View File
@@ -18,6 +18,55 @@
# because it forces en-US keyboard layout. # because it forces en-US keyboard layout.
fcitx.enable = true; fcitx.enable = true;
helix.enable = true;
hyprland = {
keyboard = {
layout = "us";
variant = "altgr-intl";
option = "nodeadkeys";
};
monitors = {
"DP-1" = {
width = 3440;
height = 1440;
rate = 165;
x = 1920;
y = 0;
scale = 1;
bitdepth = 10;
cm = "auto"; # with render:cm_auto_hdr, we don't need hdr here
};
"DP-2" = {
width = 1920;
height = 1080;
rate = 60;
x = 0;
y = 0;
scale = 1;
};
};
workspaces = {
"DP-1" = [1 2 3 4 5 6 7 8 9];
"DP-2" = [10];
};
autostart = {
delayed = [
"fcitx5"
];
};
floating = [
{
class = "fcitx";
}
];
};
waybar.monitors = ["DP-1" "DP-2"]; waybar.monitors = ["DP-1" "DP-2"];
vscode.enable = true; vscode.enable = true;
zed.enable = true; zed.enable = true;
@@ -29,6 +78,56 @@
enableMcpIntegration = true; enableMcpIntegration = true;
}; };
# NOTE: Starts extremely slow
ghostty = {
enable = true;
enableFishIntegration = true;
systemd.enable = true;
settings = {
theme = "catppuccin-mocha";
font-family = config.homemodules.color.font;
font-size = 12;
window-padding-x = 10;
window-padding-y = 10;
adjust-cursor-thickness = 1;
cursor-click-to-move = true;
gtk-single-instance = true;
# link-previews = true;
};
themes = let
color = config.homemodules.color;
in {
catppuccin-mocha = {
background = color.hex.base;
cursor-color = color.hex.rosewater;
foreground = color.hex.text;
palette = [
"0=#${color.hex.surface1}"
"1=#${color.hex.red}"
"2=#${color.hex.green}"
"3=#${color.hex.yellow}"
"4=#${color.hex.blue}"
"5=#${color.hex.pink}"
"6=#${color.hex.teal}"
"7=#${color.hex.subtext1}"
"8=#${color.hex.surface2}"
"9=#${color.hex.red}"
"10=#${color.hex.green}"
"11=#${color.hex.yellow}"
"12=#${color.hex.blue}"
"13=#${color.hex.pink}"
"14=#${color.hex.teal}"
"15=#${color.hex.subtext0}"
];
selection-background = color.hex.surface1;
selection-foreground = color.hex.text;
};
};
};
mcp = { mcp = {
enable = true; enable = true;
servers = { servers = {
@@ -78,6 +177,7 @@
"opencode" "opencode"
"opencode-go" "opencode-go"
"anthropic" "anthropic"
"lmstudio"
]; ];
formatter = { formatter = {
nixfmt = { nixfmt = {
@@ -196,6 +296,7 @@
plugin = [ plugin = [
"opencode-claude-auth@latest" # https://github.com/griffinmartin/opencode-claude-auth "opencode-claude-auth@latest" # https://github.com/griffinmartin/opencode-claude-auth
"@tarquinen/opencode-dcp@latest" # better compacting "@tarquinen/opencode-dcp@latest" # better compacting
# "opencode-lmstudio@0.3.1"
# "@slkiser/opencode-quota" # "@slkiser/opencode-quota"
]; ];
share = "disabled"; share = "disabled";
@@ -350,15 +451,43 @@
stateVersion = "22.05"; stateVersion = "22.05";
}; };
# Cyberpunk 2077 NXM handler
xdg.desktopEntries."modorganizer2-nxm-handler-cyberpunk" = {
type = "Application";
categories = ["Game"];
name = "Mod Organizer 2 NXM Handler (Cyberpunk 2077)";
mimeType = ["x-scheme-handler/nxm"];
exec = let
# Paths seen from inside the Flatpak Steam sandbox
steam = "$HOME/.steam/steam";
steamapps = "$HOME/Games/SteamLibrary/steamapps";
proton = "Proton 11.0";
# Runs inside flatpak's sandbox
innerCommand = ''
export STEAM_COMPAT_CLIENT_INSTALL_PATH="${steam}"
export STEAM_COMPAT_DATA_PATH="${steamapps}/compatdata/1091500"
exec "${steam}/steamapps/common/${proton}/proton" run \
"$HOME/Games/CyberpunkMO2/nxmhandler.exe" "$1"
'';
# Important: Run through flatpak's/steam's runtimes
nxmHandler = pkgs.writeShellScript "cyberpunk-nxm-handler" ''
exec flatpak run --command=sh com.valvesoftware.Steam -c ${lib.escapeShellArg innerCommand} _ "$1"
'';
in "${nxmHandler} %u";
};
services = { services = {
flatpak = { flatpak = {
packages = [ packages = [
"com.valvesoftware.Steam" "com.valvesoftware.Steam"
"com.valvesoftware.Steam.Utility.steamtinkerlaunch" "com.valvesoftware.Steam.Utility.steamtinkerlaunch"
"org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/24.08" "org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/25.08" # TODO: Doesn't work
"org.freedesktop.Platform.VulkanLayer.MangoHud/x86_64/24.08" "org.freedesktop.Platform.VulkanLayer.MangoHud/x86_64/25.08"
"io.github.Foldex.AdwSteamGtk" "io.github.Foldex.AdwSteamGtk"
"com.vysp3r.ProtonPlus" "com.vysp3r.ProtonPlus"
"com.github.Matoking.protontricks"
# "net.davidotek.pupgui2" # "net.davidotek.pupgui2"
"org.prismlauncher.PrismLauncher" "org.prismlauncher.PrismLauncher"
@@ -379,12 +508,34 @@
]; ];
}; };
"com.valvesoftware.Steam".Context = { "com.github.Matoking.protontricks".Context = {
filesystems = [ filesystems = [
"${config.home.homeDirectory}/.var/app/com.valvesoftware.Steam"
"${config.home.homeDirectory}/Games" "${config.home.homeDirectory}/Games"
];
};
# This is Proton-GE installed from flatpak. ProtonUpQT doesn't require it. "com.valvesoftware.Steam" = {
"/var/lib/flatpak/runtime/com.valvesoftware.Steam.CompatibilityTool.Proton-GE" Environment = {
PATH = "/app/bin:/app/utils/bin:/usr/bin:/usr/lib/extensions/vulkan/gamescope/bin";
};
Context = {
filesystems = [
"${config.home.homeDirectory}/Games"
# This is Proton-GE installed from flatpak. ProtonUpQT doesn't require it.
"/var/lib/flatpak/runtime/com.valvesoftware.Steam.CompatibilityTool.Proton-GE"
# This is gamescope installed from flatpak
"/usr/lib/extensions/vulkan/gamescope/bin"
];
};
};
"com.valvesoftware.Steam.Utility.steamtinkerlaunch".Context = {
filesystems = [
"${config.home.homeDirectory}/.var/app/com.valvesoftware.Steam"
"${config.home.homeDirectory}/Games"
]; ];
}; };
+22 -22
View File
@@ -4,28 +4,28 @@
homemodules = { homemodules = {
# TODO: Niri config (needs to modularize niri module) # TODO: Niri config (needs to modularize niri module)
# hyprland = { hyprland = {
# keyboard = { keyboard = {
# layout = "us"; layout = "us";
# variant = "altgr-intl"; variant = "altgr-intl";
# option = "nodeadkeys"; option = "nodeadkeys";
# }; };
#
# monitors = { monitors = {
# "eDP-1" = { "eDP-1" = {
# width = 1920; width = 1920;
# height = 1080; height = 1080;
# rate = 60; rate = 60;
# x = 0; x = 0;
# y = 0; y = 0;
# scale = 1; scale = 1;
# }; };
# }; };
#
# workspaces = { workspaces = {
# "eDP-1" = [1 2 3 4 5 6 7 8 9]; "eDP-1" = [1 2 3 4 5 6 7 8 9];
# }; };
# }; };
waybar.monitors = ["eDP-1"]; waybar.monitors = ["eDP-1"];
}; };
@@ -1,516 +0,0 @@
{
config,
hyprland,
color,
}: {
enable = hyprland.caelestia.enable;
systemd = {
enable = false; # Start from hyprland autostart
target = "graphical-session.target";
environment = [];
};
settings = {
appearance = {
anim = {durations = {scale = 1;};};
font = {
family = {
clock = "Rubik";
material = "Material Symbols Rounded";
mono = color.font;
sans = color.font;
};
size = {scale = 1;};
};
padding = {scale = 1;};
rounding = {scale = 1;};
spacing = {scale = 1;};
transparency = {
base = 0.85;
enabled = false;
layers = 0.4;
};
};
background = {
desktopClock = {enabled = false;};
enabled = true;
# Lags when visible on both monitors (different refresh rates?)
visualiser = {
autoHide = true;
blur = true;
enabled = false;
rounding = 1;
spacing = 1;
};
};
bar = {
clock = {showIcon = true;};
dragThreshold = 20;
entries = [
{
enabled = true;
id = "logo";
}
{
enabled = true;
id = "workspaces";
}
{
enabled = true;
id = "spacer";
}
{
enabled = true;
id = "activeWindow";
}
{
enabled = true;
id = "spacer";
}
{
enabled = true;
id = "clock";
}
{
enabled = true;
id = "tray";
}
{
enabled = true;
id = "statusIcons";
}
{
enabled = true;
id = "power";
}
];
persistent = true;
popouts = {
activeWindow = true;
statusIcons = true;
tray = true;
};
scrollActions = {
brightness = false;
volume = true;
workspaces = true;
};
showOnHover = true;
status = {
showAudio = true;
showBattery = false;
showBluetooth = true;
showKbLayout = false;
showLockStatus = true;
showMicrophone = false;
showNetwork = true;
};
tray = {
background = true;
compact = false;
iconSubs = [];
recolour = false;
};
workspaces = {
activeIndicator = true;
activeLabel = "󰮯";
activeTrail = true;
label = " ";
occupiedBg = false;
occupiedLabel = "󰮯";
perMonitorWorkspaces = false;
showWindows = false;
shown = 10;
# Pick them here: https://fonts.google.com/icons
specialWorkspaceIcons = [
{
icon = "music_note";
name = "rmpc";
}
{
icon = "memory";
name = "btop";
}
{
icon = "mark_chat_unread";
name = "ferdium";
}
{
icon = "network_intelligence";
name = "msty";
}
];
};
};
border = {
rounding = 25;
thickness = 10;
};
dashboard = {
dragThreshold = 50;
enabled = true;
mediaUpdateInterval = 500;
showOnHover = true;
};
general = {
apps = {
audio = ["kitty" "--title=NcpaMixer" "-e" "ncpamixer"];
explorer = ["kitty" "--title=Yazi" "-e" "yazi"];
playback = ["mpv"];
terminal = ["kitty"];
};
battery = {
criticalLevel = 3;
warnLevels = [
{
icon = "battery_android_frame_2";
level = 20;
message = "You might want to plug in a charger";
title = "Low battery";
}
{
icon = "battery_android_frame_1";
level = 10;
message = "You should probably plug in a charger <b>now</b>";
title = "Did you see the previous message?";
}
{
critical = true;
icon = "battery_android_alert";
level = 5;
message = "PLUG THE CHARGER RIGHT NOW!!";
title = "Critical battery level";
}
];
};
idle = {
inhibitWhenAudio = true;
lockBeforeSleep = true;
timeouts = [
{
idleAction = "lock";
timeout = 600;
}
{
# idleAction = "dpms off";
# returnAction = "dpms on";
idleAction = "echo 'idle'";
returnAction = "echo 'return'";
timeout = 10000;
}
{
# idleAction = ["systemctl" "suspend-then-hibernate"];
idleAction = ["echo" "'idle'"];
timeout = 20000;
}
];
};
};
launcher = {
actionPrefix = ">";
actions = [
{
command = ["autocomplete" "calc"];
dangerous = false;
description = "Do simple math equations (powered by Qalc)";
enabled = true;
icon = "calculate";
name = "Calculator";
}
{
command = ["autocomplete" "scheme"];
dangerous = false;
description = "Change the current colour scheme";
enabled = true;
icon = "palette";
name = "Scheme";
}
{
command = ["autocomplete" "wallpaper"];
dangerous = false;
description = "Change the current wallpaper";
enabled = true;
icon = "image";
name = "Wallpaper";
}
{
command = ["autocomplete" "variant"];
dangerous = false;
description = "Change the current scheme variant";
enabled = true;
icon = "colors";
name = "Variant";
}
{
command = ["autocomplete" "transparency"];
dangerous = false;
description = "Change shell transparency";
enabled = false;
icon = "opacity";
name = "Transparency";
}
{
command = ["caelestia" "wallpaper" "-r"];
dangerous = false;
description = "Switch to a random wallpaper";
enabled = false;
icon = "casino";
name = "Random";
}
{
command = ["setMode" "light"];
dangerous = false;
description = "Change the scheme to light mode";
enabled = true;
icon = "light_mode";
name = "Light";
}
{
command = ["setMode" "dark"];
dangerous = false;
description = "Change the scheme to dark mode";
enabled = true;
icon = "dark_mode";
name = "Dark";
}
{
command = ["systemctl" "poweroff"];
dangerous = true;
description = "Shutdown the system";
enabled = true;
icon = "power_settings_new";
name = "Shutdown";
}
{
command = ["systemctl" "reboot"];
dangerous = true;
description = "Reboot the system";
enabled = true;
icon = "cached";
name = "Reboot";
}
{
command = ["loginctl" "terminate-user" ""];
dangerous = true;
description = "Log out of the current session";
enabled = true;
icon = "exit_to_app";
name = "Logout";
}
{
command = ["loginctl" "lock-session"];
dangerous = false;
description = "Lock the current session";
enabled = true;
icon = "lock";
name = "Lock";
}
{
command = ["systemctl" "suspend-then-hibernate"];
dangerous = false;
description = "Suspend then hibernate";
enabled = false;
icon = "bedtime";
name = "Sleep";
}
];
dragThreshold = 50;
enableDangerousActions = true;
hiddenApps = [];
maxShown = 7;
maxWallpapers = 9;
showOnHover = false;
specialPrefix = "@";
useFuzzy = {
actions = false;
apps = false;
schemes = false;
variants = false;
wallpapers = false;
};
vimKeybinds = false;
};
lock = {recolourLogo = false;};
notifs = {
actionOnClick = false;
clearThreshold = 0.3;
defaultExpireTimeout = 5000;
expandThreshold = 20;
expire = true;
};
osd = {
enableBrightness = false;
enableMicrophone = true;
enabled = true;
hideDelay = 2000;
};
paths = {
mediaGif = "root:/assets/bongocat.gif";
sessionGif = "root:/assets/kurukuru.gif";
wallpaperDir = "~/NixFlake/wallpapers";
};
services = {
audioIncrement = 0.1;
defaultPlayer = "MPD";
gpuType = "";
maxVolume = 1;
playerAliases = [
{
from = "com.github.th_ch.youtube_music";
to = "YT Music";
}
];
smartScheme = true;
useFahrenheit = false;
useTwelveHourClock = false;
visualiserBars = 45;
weatherLocation = "Dortmund, Germany";
};
session = {
commands = {
hibernate = ["systemctl" "hibernate"];
logout = ["loginctl" "terminate-user" ""];
reboot = ["systemctl" "reboot"];
shutdown = ["systemctl" "poweroff"];
};
dragThreshold = 30;
enabled = true;
vimKeybinds = false;
};
sidebar = {
dragThreshold = 80;
enabled = true;
};
utilities = {
enabled = true;
maxToasts = 4;
toasts = {
audioInputChanged = true;
audioOutputChanged = true;
capsLockChanged = true;
chargingChanged = true;
configLoaded = true;
dndChanged = true;
gameModeChanged = true;
kbLayoutChanged = false;
nowPlaying = false;
numLockChanged = true;
vpnChanged = true;
};
vpn = {
enabled = false;
provider = [
{
displayName = "Wireguard (Your VPN)";
interface = "your-connection-name";
name = "wireguard";
}
];
};
};
};
cli = {
enable = hyprland.caelestia.enable;
settings = {
record = {extraArgs = [];};
theme = {
enableBtop = false;
enableDiscord = false;
enableFuzzel = false;
enableGtk = false;
enableHypr = false;
enableQt = false;
enableSpicetify = false;
enableTerm = false;
};
toggles = {
communication = {
discord = {
command = ["discord"];
enable = false;
match = [{class = "discord";}];
move = true;
};
whatsapp = {
enable = false;
match = [{class = "whatsapp";}];
move = true;
};
};
music = {
feishin = {
enable = false;
match = [{class = "feishin";}];
move = true;
};
spotify = {
command = ["spicetify" "watch" "-s"];
enable = false;
match = [{class = "Spotify";} {initialTitle = "Spotify";} {initialTitle = "Spotify Free";}];
move = true;
};
};
sysmon = {
btop = {
command = ["kitty" "--title" "Btop" "-e" "btop"];
enable = false;
match = [
{
class = "btop";
title = "Btop";
workspace = {name = "special:sysmon";};
}
];
};
};
todo = {
todoist = {
command = ["todoist"];
enable = false;
match = [{class = "Todoist";}];
move = true;
};
};
};
wallpaper = {postHook = "echo $WALLPAPER_PATH";};
};
};
}
@@ -1,180 +0,0 @@
{
inputs,
config,
lib,
mylib,
pkgs,
nixosConfig,
username,
...
}: let
inherit (config.homemodules) hyprland color;
# Autostart programs
always-exec = import ./autostart.nix {inherit lib pkgs config hyprland;};
# Keybindings
always-bind = import ./mappings.nix {inherit lib config hyprland;};
# Mousebindings
always-bindm = {
"$mainMod, mouse:272" = ["movewindow"];
"$mainMod, mouse:273" = ["resizewindow"];
};
in {
options.homemodules.hyprland = import ./options.nix {inherit lib mylib;};
config = lib.mkIf hyprland.enable {
assertions = [
{
assertion = nixosConfig.programs.hyprland.enable;
message = "Can't enable Hyprland module with Hyprland disabled!";
}
{
assertion = builtins.hasAttr "hyprlock" nixosConfig.security.pam.services;
message = "Can't enable Hyprland module without Hyprlock PAM service!";
}
{
assertion = hyprland.hyprpanel.enable != hyprland.caelestia.enable;
message = "Can't enable Hyprpanel and Caelestia at the same time!";
}
];
gtk = {
enable = true;
iconTheme.package = lib.mkDefault color.iconPackage;
iconTheme.name = color.iconTheme;
};
homemodules = {
hyprpanel.enable = hyprland.hyprpanel.enable;
};
home = {
pointerCursor = {
gtk.enable = lib.mkDefault true;
x11.enable = lib.mkDefault true;
package = lib.mkDefault color.cursorPackage;
name = color.cursor;
size = color.cursorSize;
};
packages = with pkgs; [
hyprpaper # Wallpaper setter
hyprpicker # Color picker
# hyprpolkitagent # Ugly polkit authentication GUI
hyprland-qt-support
hyprsunset # Blue light filter
wl-clipboard
clipman # Clipboard manager (wl-paste)
libnotify
inotify-tools # Includes inotifywait
ncpamixer # Audio control
slurp # Region selector for screensharing
grim # Grab images from compositor
# Deps for Qt5 and Qt6 apps (e.g., Nextcloud)
qt5.qtwayland
qt6.qtwayland
];
file = {
".config/hypr/keybindings.info".text = let
fixupHomeDir = key:
builtins.replaceStrings ["/home/${username}"] ["~"] key;
fixupNixStore = key: let
# The pattern has to match the entire string, otherwise it won't work
matches = builtins.match ".*/nix/store/(.*)/.*" key;
in
if (matches == null)
then key
else builtins.replaceStrings matches ["..."] key;
fixupNoMod = key:
builtins.replaceStrings ["<-"] ["<"] key;
mkBindHelpKey = key:
builtins.replaceStrings ["$mainMod" " " ","] ["${hyprland.keybindings.main-mod}" "-" ""] key;
mkBindHelpAction = action:
builtins.replaceStrings [","] [""] action;
mkBindHelp = key: action: "<${mkBindHelpKey key}>: ${mkBindHelpAction action}";
mkBindsHelp = key: actions:
actions
|> builtins.map (mkBindHelp key)
|> builtins.map fixupNoMod
|> builtins.map fixupNixStore
|> builtins.map fixupHomeDir;
in
(hyprland.keybindings.bindings // always-bind)
|> builtins.mapAttrs mkBindsHelp
|> builtins.attrValues
|> builtins.concatLists
|> builtins.concatStringsSep "\n";
};
};
programs = {
hyprlock = import ./hyprlock.nix {inherit config hyprland color;};
caelestia = import ./caelestia.nix {inherit config hyprland color;};
};
services = {
dunst = import ./dunst.nix {inherit pkgs config hyprland color;};
hypridle = import ./hypridle.nix {inherit config hyprland color;};
hyprpaper = import ./hyprpaper.nix {inherit config hyprland color;};
};
# Make sure the units only start when using Hyprland
systemd.user.services.dunst.Unit.After = lib.mkIf hyprland.dunst.enable (lib.mkForce ["hyprland-session.target"]);
systemd.user.services.dunst.Unit.PartOf = lib.mkIf hyprland.dunst.enable (lib.mkForce ["hyprland-session.target"]);
systemd.user.services.hypridle.Install.WantedBy = lib.mkIf (!hyprland.caelestia.enable) (lib.mkForce ["hyprland-session.target"]);
systemd.user.services.hypridle.Unit.After = lib.mkIf (!hyprland.caelestia.enable) (lib.mkForce ["hyprland-session.target"]);
systemd.user.services.hypridle.Unit.PartOf = lib.mkIf (!hyprland.caelestia.enable) (lib.mkForce ["hyprland-session.target"]);
systemd.user.services.hyprpaper.Install.WantedBy = lib.mkIf (!hyprland.caelestia.enable) (lib.mkForce ["hyprland-session.target"]);
systemd.user.services.hyprpaper.Unit.After = lib.mkIf (!hyprland.caelestia.enable) (lib.mkForce ["hyprland-session.target"]);
systemd.user.services.hyprpaper.Unit.PartOf = lib.mkIf (!hyprland.caelestia.enable) (lib.mkForce ["hyprland-session.target"]);
wayland.windowManager.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
systemd.enable = true; # Enable hyprland-session.target
systemd.variables = ["--all"]; # Import PATH into systemd
xwayland.enable = true;
plugins = builtins.concatLists [
(lib.optionals
hyprland.bars.enable
[inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprbars])
(lib.optionals
hyprland.dynamicCursor.enable
[inputs.hypr-dynamic-cursors.packages.${pkgs.stdenv.hostPlatform.system}.hypr-dynamic-cursors])
(lib.optionals
hyprland.trails.enable
[inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprtrails])
(lib.optionals
hyprland.hyprspace.enable
[inputs.hyprspace.packages.${pkgs.stdenv.hostPlatform.system}.Hyprspace])
];
settings = import ./settings.nix {
inherit
lib
config
hyprland
color
always-exec
always-bind
always-bindm
;
};
};
};
}
@@ -1,36 +0,0 @@
{
pkgs,
config,
hyprland,
color,
}: {
enable = hyprland.dunst.enable;
iconTheme.package = color.iconPackage;
iconTheme.name = color.iconTheme;
settings = {
global = {
monitor = config.homemodules.waybar.monitor;
font = "${color.font} 11";
offset = "10x10";
background = color.hexS.base;
foreground = color.hexS.text;
frame_width = 2;
corner_radius = 6;
separator_color = "frame";
};
urgency_low = {
frame_color = color.hexS.green;
};
urgency_normal = {
frame_color = color.hexS.green;
};
urgency_critical = {
frame_color = color.hexS.red;
};
};
}
@@ -1,44 +0,0 @@
{
keyboard = {
layout = "us";
variant = "altgr-intl";
option = "nodeadkeys";
};
monitors = {
"DP-1" = {
width = 3440;
height = 1440;
rate = 165;
x = 1920;
y = 0;
scale = 1;
};
"DP-2" = {
width = 1920;
height = 1080;
rate = 60;
x = 0;
y = 0;
scale = 1;
};
};
workspaces = {
"DP-1" = [1 2 3 4 5 6 7 8 9];
"DP-2" = [10];
};
autostart = {
delayed = [
"fcitx5"
];
};
floating = [
{
class = "fcitx";
}
];
}
@@ -1,186 +0,0 @@
{
nixosConfig,
config,
lib,
pkgs,
}: {
enable = nixosConfig.programs.hyprland.enable;
dunst.enable = !config.homemodules.hyprpanel.enable; # Disable for hyprpanel
bars.enable = false;
dynamicCursor.enable = false;
trails.enable = true;
hyprspace.enable = false; # Always broken
hyprpanel.enable = true;
caelestia.enable = false;
keybindings = {
main-mod = "SUPER";
bindings = lib.mergeAttrsList [
# Use Rofi if we don't have caelestia
(lib.optionalAttrs (!config.homemodules.hyprland.caelestia.enable) {
"$mainMod, a" = ["exec, rofi -drun-show-actions -show drun"];
"$mainMod, c" = ["exec, clipman pick --tool=rofi"];
"$mainMod SHIFT, l" = ["exec, loginctl lock-session"];
})
# Caelestia
(lib.optionalAttrs (config.homemodules.hyprland.caelestia.enable) {
"$mainMod, a" = ["exec, caelestia shell drawers toggle launcher"];
# "$mainMod, c" = ["exec, caelestia clipboard"];
"$mainMod SHIFT, l" = ["exec, caelestia shell lock lock"];
"$mainMod, escape" = ["exec, caelestia shell drawers toggle session"];
})
{
# Applications
"$mainMod, t" = ["exec, kitty"];
"$mainMod, e" = ["exec, kitty --title=Yazi yazi"];
"$mainMod, n" = ["exec, neovide"];
# "$mainMod, r" = ["exec, kitty --title=Rmpc rmpc"];
"$mainMod CTRL, n" = ["exec, kitty --title=Navi navi"];
"$mainMod SHIFT, n" = ["exec, neovide ${config.paths.dotfiles}/navi/christoph.cheat"];
"$mainMod SHIFT, f" = ["exec, neovide ${config.paths.dotfiles}/flake.nix"];
# "ALT, tab" = ["exec, rofi -show window"];
# Screenshots
"$mainMod, p" = ["exec, hyprpicker --autocopy --format=hex"];
"$mainMod, s" = ["exec, grim -g \"$(slurp)\""];
"$mainMod SHIFT, s" = ["exec, grim -g \"$(slurp)\" - | wl-copy"];
# Audio
", XF86AudioRaiseVolume" = ["exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"];
", XF86AudioLowerVolume" = ["exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-"];
", XF86AudioPlay" = ["exec, playerctl play-pause"];
", XF86AudioPrev" = ["exec, playerctl previous"];
", XF86AudioNext" = ["exec, playerctl next"];
# Brightness
", XF86MonBrightnessDown" = ["exec, hyprctl hyprsunset gamma -10"];
", XF86MonBrightnessUp" = ["exec, hyprctl hyprsunset gamma +10"];
"$mainMod, XF86MonBrightnessDown" = ["exec, hyprctl hyprsunset temperature 5750"];
"$mainMod, XF86MonBrightnessUp" = ["exec, hyprctl hyprsunset identity"];
"CTRL ALT, f" = let
hyprctl = "${config.wayland.windowManager.hyprland.package}/bin/hyprctl";
grep = "${pkgs.gnugrep}/bin/grep";
awk = "${pkgs.gawk}/bin/gawk";
notify = "${pkgs.libnotify}/bin/notify-send";
toggleMouseFocus = pkgs.writeScriptBin "hypr-toggle-mouse-focus" ''
CURRENT=$(${hyprctl} getoption input:follow_mouse | ${grep} int | ${awk} -F' ' '{print $2}')
if [[ "$CURRENT" == "1" ]]; then
${hyprctl} keyword input:follow_mouse 0
${notify} "Disabled Mouse Focus!"
else
${hyprctl} keyword input:follow_mouse 1
${notify} "Enabled Mouse Focus!"
fi
'';
in ["exec, ${toggleMouseFocus}/bin/hypr-toggle-mouse-focus"];
# "CTRL ALT, t" = ["exec, bash -c 'systemctl --user restart hyprpanel.service'"];
}
];
ws-bindings = {
# "<Workspace>" = "<Key>";
"1" = "1";
"2" = "2";
"3" = "3";
"4" = "4";
"5" = "5";
"6" = "6";
"7" = "7";
"8" = "8";
"9" = "9";
"10" = "0";
};
special-ws-bindings = {
"ferdium" = "x";
"msty" = "z";
"btop" = "b";
"rmpc" = "r";
};
};
autostart = {
immediate = [
"kitty --hold fastfetch"
"zeal"
"nextcloud --background"
"protonvpn-app"
# "kdeconnect-indicator" # started by services.kdeconnect.indicator
];
delayed = [
"keepassxc" # The tray doesn't work when started too early
];
special-silent = {
"ferdium" = ["ferdium"];
"msty" = ["msty"];
"btop" = ["kitty --title=Btop btop"];
"rmpc" = ["kitty --title=Rmpc rmpc"];
};
};
windowrules = [
# Fix jetbrains tooltip flicker
"match:class ^(jetbrains-.*)$, match:title ^(win[0-9]+)$, float 1"
"match:class ^(jetbrains-.*)$, match:title ^(win[0-9]+)$, no_initial_focus 1"
];
workspacerules = {
"1" = [];
"2" = ["Zotero" "neovide" "code-url-handler"];
"3" = ["obsidian"];
"4" = ["firefox" "Google-chrome" "chromium-browser" "org.qutebrowser.qutebrowser"];
"5" = ["steam"];
"6" = ["steam_app_(.+)"];
"7" = ["signal"];
"8" = ["tidal-hifi"];
"9" = ["discord"];
"10" = ["python3"];
};
floating = [
{class = "org.kde.polkit-kde-authentication-agent-1";}
{
class = "thunar";
title = "File Operation Progress";
}
{class = "ffplay";}
{class = "Unity";}
];
transparent-opacity = "0.75";
transparent = [
"kitty"
"Alacritty"
"discord"
"signal"
"vesktop"
"Spotify"
"tidal-hifi"
"obsidian"
"firefox"
"org.qutebrowser.qutebrowser"
"jetbrains-clion"
"jetbrains-idea"
"jetbrains-pycharm"
"jetbrains-rustrover"
"jetbrains-rider"
"jetbrains-webstorm"
"code-url-handler"
"neovide"
"steam"
"ferdium"
"Msty"
];
}
@@ -1,28 +0,0 @@
{
config,
hyprland,
color,
}: {
enable = !hyprland.caelestia.enable;
settings = {
ipc = "on";
splash = false;
splash_offset = 2.0;
# Wallpapers have to be preloaded to be displayed
preload = let
mkPreload = name: "${config.paths.nixflake}/wallpapers/${name}.jpg";
in
color.wallpapers |> builtins.map mkPreload;
wallpaper = let
mkWallpaper = monitor:
"${monitor}, "
+ "${config.paths.nixflake}/wallpapers/${color.wallpaper}.jpg";
in
hyprland.monitors
|> builtins.attrNames
|> builtins.map mkWallpaper;
};
}
+4
View File
@@ -15,6 +15,9 @@
./firefox ./firefox
./fish ./fish
./git ./git
./helix
./hyprland
./hyprpanel
./jellyfin-tui ./jellyfin-tui
./kitty ./kitty
./lazygit ./lazygit
@@ -41,6 +44,7 @@
inputs.nixvim.homeModules.nixvim inputs.nixvim.homeModules.nixvim
inputs.textfox.homeManagerModules.default inputs.textfox.homeManagerModules.default
inputs.walker.homeManagerModules.default inputs.walker.homeManagerModules.default
# inputs.stylix.homeModules.stylix
# inputs.direnv-instant.homeModules.direnv-instant # inputs.direnv-instant.homeModules.direnv-instant
# inputs.niri.homeModules.niri # Imported by system module # inputs.niri.homeModules.niri # Imported by system module
# inputs.noctalia.homeModules.default # inputs.noctalia.homeModules.default
+16 -16
View File
@@ -63,7 +63,7 @@ in [
# Coding # Coding
{ {
name = "Coding"; name = "Code";
bookmarks = [ bookmarks = [
(mkBm "C++Ref" "https://en.cppreference.com/w/") (mkBm "C++Ref" "https://en.cppreference.com/w/")
(mkBm "Rust" "https://doc.rust-lang.org/stable/book/ch03-00-common-programming-concepts.html") (mkBm "Rust" "https://doc.rust-lang.org/stable/book/ch03-00-common-programming-concepts.html")
@@ -72,21 +72,21 @@ in [
(mkBm "Godbolt" "https://godbolt.org") (mkBm "Godbolt" "https://godbolt.org")
]; ];
} }
{ # {
name = "\"AI\""; # name = "AI";
bookmarks = [ # bookmarks = [
(mkBm "Mistral Chat" "https://chat.mistral.ai/chat") # (mkBm "Mistral Chat" "https://chat.mistral.ai/chat")
(mkBm "DeepSeek Chat" "https://chat.deepseek.com/") # (mkBm "DeepSeek Chat" "https://chat.deepseek.com/")
(mkBm "Claude Chat" "https://claude.ai/new") # (mkBm "Claude Chat" "https://claude.ai/new")
(mkBm "ChatGPT" "https://chatgpt.com/") # (mkBm "ChatGPT" "https://chatgpt.com/")
(mkBm "DeepWiki" "https://deepwiki.com/") # (mkBm "DeepWiki" "https://deepwiki.com/")
"separator" # "separator"
(mkBm "Mistral API" "https://console.mistral.ai/usage") # (mkBm "Mistral API" "https://console.mistral.ai/usage")
(mkBm "DeepSeek API" "https://platform.deepseek.com/usage") # (mkBm "DeepSeek API" "https://platform.deepseek.com/usage")
(mkBm "Claude API" "https://console.anthropic.com/usage") # (mkBm "Claude API" "https://console.anthropic.com/usage")
(mkBm "OpenRouter API" "https://openrouter.ai/activity") # (mkBm "OpenRouter API" "https://openrouter.ai/activity")
]; # ];
} # }
(mkBm "GH" "https://github.com/churl") (mkBm "GH" "https://github.com/churl")
(mkBm "GL" "https://gitlab.com/churl") (mkBm "GL" "https://gitlab.com/churl")
(mkBm "SO" "https://stackoverflow.com/users/saves/17337508/all") (mkBm "SO" "https://stackoverflow.com/users/saves/17337508/all")
+4
View File
@@ -221,6 +221,10 @@ in {
ns = "nix shell nixpkgs#"; ns = "nix shell nixpkgs#";
nr = "nix run"; nr = "nix run";
nps = "nps -e"; nps = "nps -e";
# Systemctl
st = "sudo systemctl-tui";
sf = "systemctl --failed";
} }
# Abbrs only available if package is installed # Abbrs only available if package is installed
@@ -15,10 +15,10 @@ in {
options.homemodules.helix = import ./options.nix {inherit lib mylib;}; options.homemodules.helix = import ./options.nix {inherit lib mylib;};
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.sessionVariables = { # home.sessionVariables = {
EDITOR = "hx"; # EDITOR = "hx";
VISUAL = "hx"; # VISUAL = "hx";
}; # };
programs.helix = { programs.helix = {
enable = true; enable = true;
@@ -40,11 +40,11 @@ in {
# https://docs.helix-editor.com/configuration.html # https://docs.helix-editor.com/configuration.html
settings = { settings = {
theme = "catppuccin_latte"; theme = "catppuccin_mocha";
editor = { editor = {
scrolloff = 10; scrolloff = 10;
mouse = false; # Default true mouse = true;
middle-click-paste = false; # Default true middle-click-paste = true;
line-number = "relative"; line-number = "relative";
cursorline = true; cursorline = true;
color-modes = true; color-modes = true;
@@ -5,16 +5,12 @@
hyprland, hyprland,
}: }:
builtins.concatLists [ builtins.concatLists [
(lib.optionals hyprland.dunst.enable ["dunst"]) # Notifications
(lib.optionals hyprland.hyprpanel.enable ["hyprpanel"]) # Panel (lib.optionals hyprland.hyprpanel.enable ["hyprpanel"]) # Panel
(lib.optionals hyprland.caelestia.enable ["caelestia shell"]) # Panel/Shell # TODO: Crashes on startup
[ [
# Start clipboard management
"wl-paste -t text --watch clipman store --no-persist"
"wl-paste -p -t text --watch clipman store -P --histpath=\"~/.local/share/clipman-primary.json\""
"hyprctl setcursor ${config.home.pointerCursor.name} ${builtins.toString config.home.pointerCursor.size}" "hyprctl setcursor ${config.home.pointerCursor.name} ${builtins.toString config.home.pointerCursor.size}"
"hyprsunset --identity" "hyprsunset --identity"
"waypaper --restore"
"fcitx5"
# HACK: Hyprland doesn't set the xwayland/x11 keymap correctly # HACK: Hyprland doesn't set the xwayland/x11 keymap correctly
"setxkbmap -layout ${hyprland.keyboard.layout} -variant ${hyprland.keyboard.variant} -option ${hyprland.keyboard.option} -model pc104" "setxkbmap -layout ${hyprland.keyboard.layout} -variant ${hyprland.keyboard.variant} -option ${hyprland.keyboard.option} -model pc104"
@@ -26,6 +22,11 @@ builtins.concatLists [
# This is used for example when running systemd commands without root. # This is used for example when running systemd commands without root.
# "systemctl --user start hyprpolkitagent.service" # "systemctl --user start hyprpolkitagent.service"
# "${pkgs.kdePackages.polkit-kde-agent-1}/libexec/polkit-kde-authentication-agent-1" # "${pkgs.kdePackages.polkit-kde-agent-1}/libexec/polkit-kde-authentication-agent-1"
"${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"
# TODO: This is started by niri already (extract to module so niri/hyprland can both use it)
# "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"
# TODO: This is started by niri already (extract to module so niri/hyprland can both use it)
"dunst"
] ]
] ]
+121
View File
@@ -0,0 +1,121 @@
{
inputs,
config,
lib,
mylib,
pkgs,
nixosConfig,
username,
...
}: let
inherit (config.homemodules) hyprland color;
# Autostart programs
always-exec = import ./autostart.nix {inherit lib pkgs config hyprland;};
# Keybindings
always-bind = import ./mappings.nix {inherit lib config hyprland;};
# Mousebindings
always-bindm = {
"$mainMod, mouse:272" = ["movewindow"];
"$mainMod, mouse:273" = ["resizewindow"];
};
in {
options.homemodules.hyprland = import ./options.nix {inherit lib mylib;};
config = lib.mkIf hyprland.enable {
assertions = [
{
assertion = nixosConfig.programs.hyprland.enable;
message = "Can't enable Hyprland module with Hyprland disabled!";
}
{
assertion = builtins.hasAttr "hyprlock" nixosConfig.security.pam.services;
message = "Can't enable Hyprland module without Hyprlock PAM service!";
}
];
gtk = {
enable = true;
iconTheme.package = lib.mkDefault color.iconPackage;
iconTheme.name = color.iconTheme;
};
homemodules = {
hyprpanel.enable = hyprland.hyprpanel.enable;
};
home = {
pointerCursor = {
gtk.enable = lib.mkDefault true;
x11.enable = lib.mkDefault true;
package = lib.mkDefault color.cursorPackage;
name = color.cursor;
size = color.cursorSize;
};
packages = with pkgs; [
hyprpicker # Color picker
# hyprpolkitagent # Ugly polkit authentication GUI
hyprland-qt-support
hyprsunset # Blue light filter
wl-clipboard
# clipman # Clipboard manager (wl-paste)
libnotify
inotify-tools # Includes inotifywait
# ncpamixer # Audio control
slurp # Region selector for screensharing
grim # Grab images from compositor
# Deps for Qt5 and Qt6 apps (e.g., Nextcloud)
qt5.qtwayland
qt6.qtwayland
# xwayland
# wayland-protocols
];
};
programs = {
hyprlock = import ./hyprlock.nix {inherit config hyprland color;};
};
services = {
hypridle = import ./hypridle.nix {inherit config hyprland color;};
};
# Make sure the units only start when using Hyprland
systemd.user.services.hypridle.Install.WantedBy = lib.mkForce ["hyprland-session.target"];
systemd.user.services.hypridle.Unit.After = lib.mkForce ["hyprland-session.target"];
systemd.user.services.hypridle.Unit.PartOf = lib.mkForce ["hyprland-session.target"];
systemd.user.services.elephant.Install.WantedBy = lib.mkForce ["hyprland-session.target" "graphical-session.target"];
systemd.user.services.elephant.Unit.After = lib.mkForce ["hyprland-session.target" "graphical-session.target"];
systemd.user.services.elephant.Unit.PartOf = lib.mkForce ["hyprland-session.target" "graphical-session.target"];
wayland.windowManager.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
configType = "hyprlang";
systemd.enable = true; # Enable hyprland-session.target
systemd.variables = ["--all"]; # Import PATH into systemd
xwayland.enable = true;
settings = import ./settings.nix {
inherit
lib
config
hyprland
color
always-exec
always-bind
always-bindm
;
};
};
};
}
@@ -3,7 +3,7 @@
hyprland, hyprland,
color, color,
}: { }: {
enable = !hyprland.caelestia.enable; enable = true;
settings = { settings = {
general = { general = {
@@ -5,13 +5,8 @@
}: { }: {
enable = lib.mkEnableOption "Hyprland Window Manager + Compositor"; enable = lib.mkEnableOption "Hyprland Window Manager + Compositor";
dunst.enable = lib.mkEnableOption "Enable Dunst notification daemon";
bars.enable = lib.mkEnableOption "Enable window bars"; bars.enable = lib.mkEnableOption "Enable window bars";
dynamicCursor.enable = lib.mkEnableOption "Enable dynamic cursors";
trails.enable = lib.mkEnableOption "Enable dynamic window trails";
hyprspace.enable = lib.mkEnableOption "Enable Hyprspace workspace overview";
hyprpanel.enable = lib.mkEnableOption "Enable Hyprpanel"; hyprpanel.enable = lib.mkEnableOption "Enable Hyprpanel";
caelestia.enable = lib.mkEnableOption "Enable Caelestia";
keyboard = { keyboard = {
layout = lib.mkOption { layout = lib.mkOption {
@@ -137,8 +137,12 @@
hyprland.windowrules hyprland.windowrules
]; ];
render = {
cm_enabled = true;
cm_auto_hdr = true;
};
dwindle = { dwindle = {
pseudotile = true;
preserve_split = true; preserve_split = true;
}; };
@@ -237,123 +241,5 @@
on_double_click = "hyprctl dispatch fullscreen 1"; on_double_click = "hyprctl dispatch fullscreen 1";
}; };
}) })
(lib.optionalAttrs hyprland.dynamicCursor.enable {
dynamic-cursors = {
# enables the plugin
enabled = true;
# sets the cursor behaviour, supports these values:
# tilt - tilt the cursor based on x-velocity
# rotate - rotate the cursor based on movement direction
# stretch - stretch the cursor shape based on direction and velocity
# none - do not change the cursors behaviour
mode = "rotate";
# minimum angle difference in degrees after which the shape is changed
# smaller values are smoother, but more expensive for hw cursors
threshold = 2;
# for mode = rotate
rotate = {
# length in px of the simulated stick used to rotate the cursor
# most realistic if this is your actual cursor size
length = 20;
# clockwise offset applied to the angle in degrees
# this will apply to ALL shapes
offset = 0.0;
};
# for mode = tilt
tilt = {
# controls how powerful the tilt is, the lower, the more power
# this value controls at which speed (px/s) the full tilt is reached
# the full tilt being 60° in both directions
limit = 1000;
# relationship between speed and tilt, supports these values:
# linear - a linear function is used
# quadratic - a quadratic function is used (most realistic to actual air drag)
# negative_quadratic - negative version of the quadratic one, feels more aggressive
# see `activation` in `src/mode/utils.cpp` for how exactly the calculation is done
function = "negative_quadratic";
# time window (ms) over which the speed is calculated
# higher values will make slow motions smoother but more delayed
window = 100;
};
# configure shake to find
# magnifies the cursor if its is being shaken
shake = {
# enables shake to find
enabled = false;
# use nearest-neighbour (pixelated) scaling when shaking
# may look weird when effects are enabled
nearest = true;
# controls how soon a shake is detected
# lower values mean sooner
threshold = 3.0;
# magnification level immediately after shake start
base = 1.5;
# magnification increase per second when continuing to shake
speed = 0.0;
# how much the speed is influenced by the current shake intensitiy
influence = 0.0;
# maximal magnification the cursor can reach
# values below 1 disable the limit (e.g. 0)
limit = 0.0;
# time in millseconds the cursor will stay magnified after a shake has ended
timeout = 1000;
# show cursor behaviour `tilt`, `rotate`, etc. while shaking
effects = true;
# enable ipc events for shake
# see the `ipc` section below
ipc = false;
};
# use hyprcursor to get a higher resolution texture when the cursor is magnified
# see the `hyprcursor` section below
hyprcursor = {
# use nearest-neighbour (pixelated) scaling when magnifing beyond texture size
# this will also have effect without hyprcursor support being enabled
# 0 / false - never use pixelated scaling
# 1 / true - use pixelated when no highres image
# 2 - always use pixleated scaling
nearest = true;
# enable dedicated hyprcursor support
enabled = true;
# resolution in pixels to load the magnified shapes at
# be warned that loading a very high-resolution image will take a long time and might impact memory consumption
# -1 means we use [normal cursor size] * [shake:base option]
resolution = -1;
# shape to use when clientside cursors are being magnified
# see the shape-name property of shape rules for possible names
# specifying clientside will use the actual shape, but will be pixelated
fallback = "clientside";
};
};
})
(lib.optionalAttrs hyprland.trails.enable {
hyprtrails = {
color = "rgb(${color.hex.accent})";
};
})
(lib.optionalAttrs hyprland.hyprspace.enable {
overview = {};
})
]; ];
} }
+6
View File
@@ -26,6 +26,12 @@ in {
"kitty_mod+j" = "next_window"; "kitty_mod+j" = "next_window";
"kitty_mod+k" = "previous_window"; "kitty_mod+k" = "previous_window";
"kitty_mod+l" = "next_layout"; "kitty_mod+l" = "next_layout";
"kitty_mod+p" = "command_palette";
"kitty_mod+c" = "copy_to_clipboard";
"ctrl+c" = "copy_or_interrupt";
"kitty_mod+v" = "paste_from_clipboard";
"ctrl+v" = "paste_from_clipboard";
}; };
settings = lib.mkMerge [ settings = lib.mkMerge [
+77 -17
View File
@@ -123,6 +123,7 @@ in {
numpy numpy
matplotlib matplotlib
requests requests
pygments
])) ]))
(rWrapper.override { (rWrapper.override {
@@ -157,6 +158,15 @@ in {
viAlias = neovim.alias; viAlias = neovim.alias;
vimAlias = neovim.alias; vimAlias = neovim.alias;
# extraPackages = let
# yazi-termfix = pkgs.writeShellScriptBin "yazi" ''
# export TERM=xterm-kitty
# exec ${pkgs.yazi}/bin/yazi "@$"
# '';
# in [
# yazi-termfix
# ];
# Configured using plugin # Configured using plugin
# colorschemes.catppuccin = { # colorschemes.catppuccin = {
# enable = true; # enable = true;
@@ -215,6 +225,16 @@ in {
# fg = "#${color.hex.dark.text}"; # fg = "#${color.hex.dark.text}";
# bold = false; # bold = false;
# }; # };
# NeoTreeNormal = {bg = "#${color.hex.base}";};
# NeoTreeNormalNC = {bg = "#${color.hex.base}";};
# NeoTreeWinSeparator = {
# fg = "#${color.hex.crust}";
# bg = "#${color.hex.base}";
# };
# NeoTreeVertSplit = {
# fg = "#${color.hex.crust}";
# bg = "#${color.hex.base}";
# };
}; };
# extraLuaPackages = with pkgs.lua51Packages; []; # extraLuaPackages = with pkgs.lua51Packages; [];
@@ -232,7 +252,7 @@ in {
# local renderer = require("neo-tree.ui.renderer") # local renderer = require("neo-tree.ui.renderer")
# local state = manager.get_state("filesystem") # local state = manager.get_state("filesystem")
# local window_exists = renderer.window_exists(state) # local window_exists = renderer.window_exists(state)
#
# if window_exists then # if window_exists then
# require("neo-tree.sources.filesystem.commands").refresh(state) # require("neo-tree.sources.filesystem.commands").refresh(state)
# end # end
@@ -366,6 +386,7 @@ in {
light = "latte"; light = "latte";
dark = "mocha"; dark = "mocha";
}; };
term_colors = true;
# https://github.com/catppuccin/nvim/tree/main?tab=readme-ov-file#integrations # https://github.com/catppuccin/nvim/tree/main?tab=readme-ov-file#integrations
default_integrations = true; default_integrations = true;
integrations = { integrations = {
@@ -402,6 +423,7 @@ in {
# custom_bg = "crust"; # custom_bg = "crust";
}; };
notify = true; notify = true;
terminal = true;
treesitter = true; treesitter = true;
ufo = true; ufo = true;
rainbow_delimiters = true; rainbow_delimiters = true;
@@ -413,6 +435,15 @@ in {
}; };
which_key = true; which_key = true;
}; };
highlight_overrides.mocha.__raw = ''
function(colors)
return {
NeoTreeWinSeparator = { fg = colors.crust, bg = colors.base, },
NeoTreeVertSplit = { fg = colors.crust, bg = colors.base, },
}
end
'';
}; };
}; };
@@ -434,6 +465,7 @@ in {
# pkg = inputs.blink-cmp.packages.${system}.default; # pkg = inputs.blink-cmp.packages.${system}.default;
pkg = pkgs.vimPlugins.blink-cmp; pkg = pkgs.vimPlugins.blink-cmp;
lazy = true; lazy = true;
dependencies = [luasnip];
event = ["InsertEnter"]; event = ["InsertEnter"];
config = mkDefaultConfig name; config = mkDefaultConfig name;
@@ -481,13 +513,17 @@ in {
}; };
}; };
snippets = {
preset = "luasnip";
};
fuzzy = { fuzzy = {
frecency.enabled = true; frecency.enabled = true;
use_proximity = true; use_proximity = true;
}; };
sources = { sources = {
default = ["lsp" "path" "snippets"]; # No "buffer" default = ["lsp" "path" "snippets" "omni"]; # No "buffer"
}; };
cmdline = { cmdline = {
@@ -971,15 +1007,15 @@ in {
{name = "html";} # vscode-langservers-extracted {name = "html";} # vscode-langservers-extracted
{name = "just";} {name = "just";}
{name = "lua_ls";} {name = "lua_ls";}
{ # {
name = "ltex"; # name = "ltex";
extraOptions.settings = { # extraOptions.settings = {
ltex = { # ltex = {
checkFrequency = "save"; # checkFrequency = "save";
enabled = ["markdown" "org" "tex" "latex" "plaintext"]; # enabled = ["markdown" "org" "tex" "latex" "plaintext"];
}; # };
}; # };
} # }
# {name = "nil_ls";} # {name = "nil_ls";}
{ {
name = "nixd"; name = "nixd";
@@ -1791,6 +1827,7 @@ in {
function(line) function(line)
local base = { fg = "#${color.hex.base}", bg = "#${color.hex.base}" } local base = { fg = "#${color.hex.base}", bg = "#${color.hex.base}" }
local crust = { fg = "#${color.hex.crust}", bg = "#${color.hex.crust}" } local crust = { fg = "#${color.hex.crust}", bg = "#${color.hex.crust}" }
local mantle = { fg = "#${color.hex.mantle}", bg = "#${color.hex.mantle}" }
local text = { fg = "#${color.hex.text}", bg = "#${color.hex.crust}" } local text = { fg = "#${color.hex.text}", bg = "#${color.hex.crust}" }
local accent = { fg = "#${color.hex.accent}", bg = "#${color.hex.accent}" } local accent = { fg = "#${color.hex.accent}", bg = "#${color.hex.accent}" }
@@ -1816,14 +1853,14 @@ in {
line.sep(sep_start, accent, crust), line.sep(sep_start, accent, crust),
tab.number(), tab.number(),
tab.name(), tab.name(),
line.sep(sep_end, crust, base), line.sep(sep_end, crust, mantle),
hl = hl, hl = hl,
margin = " ", margin = " ",
} }
end), end),
-- Background -- Background
hl = bg, hl = mantle,
} }
end end
''; '';
@@ -1932,11 +1969,12 @@ in {
shell = "fish"; shell = "fish";
direction = "horizontal"; # 'vertical' | 'horizontal' | 'window' | 'float' direction = "horizontal"; # 'vertical' | 'horizontal' | 'window' | 'float'
auto_scroll = true; auto_scroll = true;
# clear_env = false;
float_opts = { float_opts = {
border = "curved"; # 'single' | 'double' | 'shadow' | 'curved' border = "curved"; # 'single' | 'double' | 'shadow' | 'curved'
width = 80; width.__raw = "function() return math.floor(vim.o.columns * 0.95) end";
height = 80; height.__raw = "function() return math.floor(vim.o.lines * 0.85) end";
winblend = 0; winblend = 0;
}; };
}; };
@@ -2109,18 +2147,40 @@ in {
pkg = pkgs.vimPlugins.vimtex; pkg = pkgs.vimPlugins.vimtex;
init = '' init = ''
function() function()
vim.g.vimtex_mappings_enabled = false vim.g.vimtex_mappings_enabled = true
vim.g.vimtex_view_method = "zathura" vim.g.vimtex_view_method = "zathura"
vim.g.vimtex_syntax_conceal_disable = false
vim.g.vimtex_syntax_conceal = {
accents = 1,
ligatures = 1,
cites = 1,
fancy = 1,
texTabularChar = 1,
spacing = 1,
greek = 1,
math_bounds = 1,
math_delimiters = 1,
math_fracs = 1,
math_super_sub = 1,
math_symbols = 1,
sections = 1,
styles = 1,
}
vim.g.vimtex_compiler_method = "latexmk"
vim.g.vimtex_compiler_clean_paths = {"_minted*", "svg-inkscape*"}
vim.g.vimtex_compiler_latexmk = { vim.g.vimtex_compiler_latexmk = {
options = { options = {
"-shell-escape", "-verbose",
"-file-line-error", "-file-line-error",
"-synctex=1", "-synctex=1",
"-interaction=nonstopmode", "-interaction=nonstopmode",
"-shell-escape",
}, },
aux_dir = ".aux", aux_dir = ".aux",
out_dir = ".out", out_dir = ".out",
} }
end end
''; '';
}; };
+7 -2
View File
@@ -60,8 +60,13 @@ end, {
-- Toggle Rmpc -- Toggle Rmpc
local Terminal = require("toggleterm.terminal").Terminal local Terminal = require("toggleterm.terminal").Terminal
local rmpc = local rmpc = Terminal:new({
Terminal:new({ cmd = "rmpc", hidden = true, close_on_exit = true, auto_scroll = false, direction = "float" }) cmd = "rmpc",
hidden = true,
close_on_exit = true,
auto_scroll = false,
direction = "float",
})
vim.g.toggle_rmpc = function() vim.g.toggle_rmpc = function()
rmpc:toggle() rmpc:toggle()
@@ -20,7 +20,7 @@ if g.neovide then
-- Neovide Fonts -- Neovide Fonts
-- o.guifont = "JetBrainsMono Nerd Font Mono:h12:Medium" -- o.guifont = "JetBrainsMono Nerd Font Mono:h12:Medium"
o.guifont = "MonoLisa Alt:h12:Medium" o.guifont = "MonoLisa Alt Script:h12:Medium"
else else
-- require("notify").notify("Not running in NeoVide") -- require("notify").notify("Not running in NeoVide")
end end
+12 -7
View File
@@ -340,13 +340,12 @@ _: let
action = "<cmd>lua vim.g.toggle_rmpc()<cr>"; # Defined in extraConfigLua.lua action = "<cmd>lua vim.g.toggle_rmpc()<cr>"; # Defined in extraConfigLua.lua
options.desc = "Show Rmpc"; options.desc = "Show Rmpc";
} }
# TODO: Something with the environment activation doesn't work {
# { mode = "n";
# mode = "n"; key = "<leader>.";
# key = "<leader>."; action = "<cmd>lua vim.g.toggle_failnix()<cr>"; # Defined in extraConfigLua.lua
# action = "<cmd>lua vim.g.toggle_failnix()<cr>"; # Defined in extraConfigLua.lua options.desc = "Show FailNix";
# options.desc = "Show FailNix"; }
# }
{ {
mode = "n"; mode = "n";
key = "<leader>i"; key = "<leader>i";
@@ -938,6 +937,12 @@ _: let
action = "<cmd>Trouble diagnostics toggle focus=false win.position=bottom<cr>"; action = "<cmd>Trouble diagnostics toggle focus=false win.position=bottom<cr>";
options.desc = "Trouble Diagnostics"; options.desc = "Trouble Diagnostics";
} }
{
mode = "n";
key = "<leader>tT";
action = "<cmd>ToggleTerm direction=float<cr>";
options.desc = "Floating Terminal";
}
{ {
mode = "n"; mode = "n";
key = "<leader>tD"; key = "<leader>tD";
+38 -1
View File
@@ -1,3 +1,18 @@
local ls = require("luasnip")
local s = ls.snippet
local sn = ls.snippet_node
local isn = ls.indent_snippet_node
local t = ls.text_node
local i = ls.insert_node
local f = ls.function_node
local c = ls.choice_node
local d = ls.dynamic_node
local r = ls.restore_node
local extras = require("luasnip.extras")
local rep = extras.rep
local fmt = require("luasnip.extras.fmt").fmt
local fmta = require("luasnip.extras.fmt").fmta
return { return {
-- The first list contains manually expanded snippts -- The first list contains manually expanded snippts
-- --
@@ -18,7 +33,7 @@ return {
-- \begin{environment} -- \begin{environment}
s( s(
"beg", { trig = "beg", name = "begin/end", descr = "begin/end environment (generic)" },
fmta( fmta(
[[ [[
\begin{<>} \begin{<>}
@@ -28,6 +43,28 @@ return {
{ i(1), i(0), rep(1) } { i(1), i(0), rep(1) }
) )
), ),
s(
{ trig = "item", name = "itemize", dscr = "bullet points (itemize)" },
fmta(
[[
\begin{itemize}
\item <>
\end{itemize}
]],
{ i(0) }
)
),
s(
{ trig = "enum", name = "enumerate", dscr = "bullet points (enumerate)" },
fmta(
[[
\begin{enumerate}
\item <>
\end{enumerate}
]],
{ i(0) }
)
),
}, { }, {
-- The second list contains autosnippets -- The second list contains autosnippets
} }
+190 -36
View File
@@ -74,8 +74,90 @@ in {
}; };
}; };
qt = let
qtConfig = qtct: {
Appearance = {
icon_theme = color.iconTheme;
standard_dialogs = "xdgdesktopportal";
style = "kvantum";
custom_palette = true;
color_scheme_path = "${config.home.homeDirectory}/.config/${qtct}/colors/catppuccin-mocha-mauve.conf";
# color_scheme_path = "${pkgs.catppuccin-qt5ct}/share/${qtct}/colors/catppuccin-mocha-mauve.conf";
};
Fonts = {
fixed = color.font;
general = nixosConfig.fonts.fontconfig.defaultFonts.sansSerif;
};
};
in {
enable = true;
platformTheme.name = "qtct";
# style.name = "kvantum";
kvantum = {
enable = true;
themes = with pkgs; [
(catppuccin-kvantum.override {
variant = "mocha";
accent = "mauve";
})
];
settings = {
General.theme = "catppuccin-mocha-mauve";
};
};
qt5ctSettings = qtConfig "qt5ct";
qt6ctSettings = qtConfig "qt6ct";
};
xdg.configFile = {
"qt5ct/colors/catppuccin-mocha-mauve.conf".source = "${pkgs.catppuccin-qt5ct}/share/qt5ct/colors/catppuccin-mocha-mauve.conf";
"qt6ct/colors/catppuccin-mocha-mauve.conf".source = "${pkgs.catppuccin-qt5ct}/share/qt6ct/colors/catppuccin-mocha-mauve.conf";
"dolphinrc".source = (pkgs.formats.ini {}).generate "dolphinrc" {
General = {
BrowseThroughArchives = true;
ConfirmClosingMultipleTabs = false;
OpenExternallyCalledFolderInNewTab = false;
RememberOpenedTabs = false;
ShowSelectionToggle = false;
ShowToolTips = true;
};
CompactMode.PreviewSize = 32;
ContextMenu.ShowViewMode = false;
DetailsMode.PreviewSize = 32;
Icons.Theme = color.iconTheme;
"KFileDialog Settings"."Places Icons Static Size" = 32;
MainWindow.MenuBar = "Disabled";
PlacesPanel.IconSize = 32;
UiSettings.ColorScheme = "*";
};
"kdeglobals".source = (pkgs.formats.ini {}).generate "kdeglobals" {
KDE.ShowDeleteCommand = true;
PreviewSettings.EnableRemoteFolderThumbnail = true;
};
"kservicemenurc".source = (pkgs.formats.ini {}).generate "kservicemenurc" {
Show = {
forgetfileitemaction = true;
hidefileitemaction = false;
kactivitymanagerd_fileitem_linking_plugin = false;
makefileactions = true;
mountisoaction = true;
movetonewfolderaitemaction = false;
nextclouddolphinactionplugin = true;
setfoldericonitemaction = false;
tagsfileitemaction = false;
};
};
};
# Disable Niri's kde auth agent and start gnome auth agent instead # Disable Niri's kde auth agent and start gnome auth agent instead
systemd.user.services.niri-flake-polkit = lib.mkForce {}; systemd.user.services.niri-flake-polkit = lib.mkForce {};
# TODO: Module
systemd.user.services.polkit-gnome-authentication-agent-1 = { systemd.user.services.polkit-gnome-authentication-agent-1 = {
Unit = { Unit = {
Description = "polkit-gnome-authentication-agent-1"; Description = "polkit-gnome-authentication-agent-1";
@@ -99,6 +181,7 @@ in {
# Link theme for flatpak # Link theme for flatpak
".themes/${config.gtk.theme.name}".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}"; ".themes/${config.gtk.theme.name}".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}";
# TODO: Module
".config/waypaper/config.ini".text = lib.generators.toINI {} { ".config/waypaper/config.ini".text = lib.generators.toINI {} {
Settings = { Settings = {
use_xdg_state = true; use_xdg_state = true;
@@ -135,8 +218,9 @@ in {
}; };
sessionVariables = { sessionVariables = {
QT_QPA_PLATFORMTHEME = "gtk3"; # For Noctalia # QT_QPA_PLATFORMTHEME = "gtk3"; # For Noctalia
GDK_BACKEND = "wayland"; # For screen sharing # GDK_BACKEND = "wayland,x11"; # For screen sharing
GDK_BACKEND = "wayland";
}; };
pointerCursor = { pointerCursor = {
@@ -155,14 +239,25 @@ in {
waypaper waypaper
wtype # For elephant wtype # For elephant
# GTK apps (look good and work well with xdg portals) # GTK
nautilus # Fallback file chooser used by xdg-desktop-portal-gnome nautilus # Fallback file chooser used by xdg-desktop-portal-gnome
# Catppuccin-GTK theme
sassc sassc
gtk-engine-murrine gtk-engine-murrine
gnome-themes-extra gnome-themes-extra
# Qt
libsForQt5.qtstyleplugin-kvantum
kdePackages.qtstyleplugin-kvantum
libsForQt5.qt5ct
kdePackages.qt6ct
kdePackages.ark
kdePackages.dolphin
kdePackages.dolphin-plugins
kdePackages.qtsvg
kdePackages.kio
kdePackages.kio-fuse
kdePackages.kio-extras
# In case we fallback to the default niri config/keybindings # In case we fallback to the default niri config/keybindings
alacritty alacritty
fuzzel fuzzel
@@ -170,6 +265,7 @@ in {
}; };
services = { services = {
# TODO: Module
dunst = { dunst = {
enable = true; enable = true;
@@ -205,6 +301,7 @@ in {
}; };
programs = { programs = {
# TODO: Module
walker = { walker = {
enable = true; enable = true;
runAsService = true; runAsService = true;
@@ -432,7 +529,7 @@ in {
input = { input = {
focus-follows-mouse = { focus-follows-mouse = {
enable = true; enable = true;
max-scroll-amount = "0%"; # Skip partial windows that would scroll the viewport on focus max-scroll-amount = "10%"; # Skip partial windows that would scroll the viewport on focus
}; };
keyboard = { keyboard = {
@@ -461,13 +558,13 @@ in {
prefer-no-csd = true; # Disable client-side decorations (e.g. window titlebars) prefer-no-csd = true; # Disable client-side decorations (e.g. window titlebars)
spawn-at-startup = [ spawn-at-startup = [
{ # {
argv = [ # argv = [
"ashell" # "ashell"
"-c" # "-c"
"${config.paths.dotfiles}/ashell/config.toml" # "${config.paths.dotfiles}/ashell/config.toml"
]; # ];
} # }
{ {
argv = [ argv = [
"waypaper" "waypaper"
@@ -634,6 +731,32 @@ in {
# opacity = 0.8; # opacity = 0.8;
} }
# Blurred windows
{
matches = [
# {app-id = "code";}
# {app-id = "code-url-handler";}
# {app-id = "dev.zed.Zed";}
# {app-id = "discord";}
# {app-id = "firefox";}
# {app-id = "jetbrains-clion";}
# {app-id = "jetbrains-idea";}
# {app-id = "jetbrains-pycharm";}
# {app-id = "jetbrains-rustrover";}
# {app-id = "jetbrains-rider";}
# {app-id = "jetbrains-webstorm";}
{app-id = "kitty";}
{app-id = "neovide";}
# {app-id = "obsidian";}
# {app-id = "org.qutebrowser.qutebrowser";}
# {app-id = "signal";}
# {app-id = "steam";}
];
opacity = 0.9;
background-effect.blur = true;
}
# Floating + unmaximized windows # Floating + unmaximized windows
{ {
matches = [ matches = [
@@ -755,14 +878,15 @@ in {
enable = true; enable = true;
draw-behind-window = true; draw-behind-window = true;
}; };
background-effect.blur = true;
} }
# TODO: Missing niri-flake update # TODO: Makes entire screen blank and blurred?
# { # {
# matches = [{namespace = "walker";}]; # matches = [{namespace = "walker";}];
# #
# background-effect = { # opacity = 0.0;
# blur = true; # background-effect.blur = true;
# };
# } # }
]; ];
@@ -773,6 +897,7 @@ in {
# TODO: Move values to config option and set in home/christoph/niri.nix # TODO: Move values to config option and set in home/christoph/niri.nix
binds = with config.lib.niri.actions; let binds = with config.lib.niri.actions; let
# TODO: Module
sessionMenu = mylib.rofi.mkMenu { sessionMenu = mylib.rofi.mkMenu {
prompt = "Session"; prompt = "Session";
layers = [ layers = [
@@ -815,18 +940,38 @@ in {
command = "xdg-open ~/Notes/TU/$OPTION0/$OPTION1/$OPTION2"; command = "xdg-open ~/Notes/TU/$OPTION0/$OPTION1/$OPTION2";
rofiCmd = "walker -d"; rofiCmd = "walker -d";
}; };
# niriMenu = mylib.rofi.mkMenu { screenshotMenu = mylib.rofi.mkMenu {
# prompt = "Niri"; prompt = "Screenshot";
# layers = [ layers = [
# { {
# "󰹑 Take Region Screenshot" = "niri msg action screenshot -p false"; # -p: Show pointer
# "󰹑 Take Window Screenshot" = "niri msg action screenshot-window -p false -d true"; # -d: Write to disk
# "󰹑 Take Full-Screen Screenshot" = "niri msg action screenshot-screen -p false -d true"; "󰹑 Take Region Screenshot" = "niri msg action screenshot -p false";
# } "󰹑 Take Window Screenshot" = "niri msg action screenshot-window -p false -d true";
# ]; "󰹑 Take Full-Screen Screenshot" = "niri msg action screenshot-screen -p false -d true";
# prompts = ["Execute Niri Action"]; }
# rofiCmd = "walker -d"; ];
# }; prompts = ["Execute Screenshot Action"];
rofiCmd = "walker -d";
};
sshMenu = mylib.rofi.mkMenu {
prompt = "SSH";
layers = [
"grep -E '^Host ' ~/.ssh/config | awk '{print $2}'"
];
prompts = ["Select Host"];
command = "kitty ssh $OPTION0";
rofiCmd = "walker -d";
};
projectMenu = mylib.rofi.mkMenu {
prompt = "Project";
layers = [
"eza -1 -D ~/Projects"
];
prompts = ["Select Project"];
command = "neovide ~/Projects/$OPTION0";
rofiCmd = "walker -d";
};
globalMenu = mylib.rofi.mkMenu { globalMenu = mylib.rofi.mkMenu {
prompt = "Global"; prompt = "Global";
layers = [ layers = [
@@ -835,8 +980,11 @@ in {
"󰸉 Change Wallpaper" = "${wallpaperMenu}/bin/rofi-menu-Wallpaper"; "󰸉 Change Wallpaper" = "${wallpaperMenu}/bin/rofi-menu-Wallpaper";
"󰋗 View Keybindings" = "niri msg action show-hotkey-overlay"; "󰋗 View Keybindings" = "niri msg action show-hotkey-overlay";
" Open Lecture Material" = "${lecturesMenu}/bin/rofi-menu-Lecture"; " Open Lecture Material" = "${lecturesMenu}/bin/rofi-menu-Lecture";
# " Niri Actions" = "${niriMenu}/bin/rofi-menu-Niri"; "󰹑 Screenshot" = "${screenshotMenu}/bin/rofi-menu-Screenshot";
# TODO: What else? SSH menu? # "🤪 Pick Symbols" = "walker -m symbols";
" Color Picker" = "hyprpicker --autocopy";
"󰣀 SSH" = "${sshMenu}/bin/rofi-menu-SSH";
" Open Project" = "${projectMenu}/bin/rofi-menu-Project";
} }
]; ];
prompts = ["Select Action"]; prompts = ["Select Action"];
@@ -945,14 +1093,20 @@ in {
# Screenshots # Screenshots
"Mod+S" = { "Mod+S" = {
action.screenshot-window = { action = spawn "${screenshotMenu}/bin/rofi-menu-Screenshot";
write-to-disk = true;
show-pointer = false;
};
hotkey-overlay = { hotkey-overlay = {
title = "Take a screenshot of the current window."; title = "Screenshot menu.";
}; };
}; };
# "Mod+S" = {
# action.screenshot-window = {
# write-to-disk = true;
# show-pointer = false;
# };
# hotkey-overlay = {
# title = "Take a screenshot of the current window.";
# };
# };
"Mod+Ctrl+S" = { "Mod+Ctrl+S" = {
action.screenshot-screen = { action.screenshot-screen = {
write-to-disk = true; write-to-disk = true;
+6 -2
View File
@@ -97,6 +97,8 @@ in {
radare2 radare2
disktui disktui
lldb lldb
inotify-tools
xdotool
# Hardware/Software info # Hardware/Software info
pciutils # lspci pciutils # lspci
@@ -138,6 +140,7 @@ in {
# Linux exclusive packages (!headless) # Linux exclusive packages (!headless)
(lib.optionals (pkgs.stdenv.isLinux && (!headless)) [ (lib.optionals (pkgs.stdenv.isLinux && (!headless)) [
wl-clipboard wl-clipboard
asciicam
# Proton # Proton
proton-vpn proton-vpn
@@ -175,13 +178,14 @@ in {
# gnome-calendar # gnome-calendar
# helvum # unmaintained # helvum # unmaintained
crosspipe crosspipe
nautilus # Just in case # nautilus # This is the worst file manager I've ever used
font-manager # Previews fonts, but doesn't set them font-manager # Previews fonts, but doesn't set them
gparted gparted
resources resources
# celluloid # celluloid
# cine # cine
eyedropper # eyedropper
hyprpicker
junction junction
]) ])
+23 -2
View File
@@ -23,7 +23,7 @@ in {
fixed-center = true; fixed-center = true;
output = waybar.monitors; output = waybar.monitors;
modules-left = ["custom/launcher" "niri/workspaces" "niri/window"]; # "user" modules-left = ["custom/launcher" "niri/workspaces" "niri/window" "hyprland/workspaces" "hyprland/window"]; # "user"
modules-center = ["mpris"]; # "systemd-failed-units" modules-center = ["mpris"]; # "systemd-failed-units"
modules-right = ["privacy" "pulseaudio" "network" "disk" "cpu" "memory" "clock" "tray"]; modules-right = ["privacy" "pulseaudio" "network" "disk" "cpu" "memory" "clock" "tray"];
@@ -58,6 +58,27 @@ in {
icon-size = 22; icon-size = 22;
}; };
"hyprland/workspaces" = {
all-outputs = false;
format = "{icon}";
format-icons = {
default = "";
focused = "";
active = "";
};
persistent-workspaces = {
DP-1 = [1 2 3 4 5 6 7 8 9];
DP-2 = [0];
};
};
"hyprland/window" = {
format = "{title}";
separate-outputs = false;
icon = true;
icon-size = 22;
};
mpris = { mpris = {
format = "<span>󰎇</span> {dynamic}"; format = "<span>󰎇</span> {dynamic}";
format-paused = "<span>{status_icon}</span> <i>{dynamic}</i>"; format-paused = "<span>{status_icon}</span> <i>{dynamic}</i>";
@@ -179,7 +200,7 @@ in {
border-width: ${border-width}; border-width: ${border-width};
border-radius: ${border-radius}; border-radius: ${border-radius};
border-color: #${color.hex.accent}; border-color: #${color.hex.accent};
background-color: rgba(${color.rgbS.mantle}, 1.0); background-color: rgba(${color.rgbS.mantle}, 0.7);
} }
tooltip { tooltip {
+5
View File
@@ -270,6 +270,11 @@ in {
run = "remove --permanently"; run = "remove --permanently";
desc = "Delete selection"; desc = "Delete selection";
} }
{
on = ["g" "m"];
run = ''cd ~/Notes/TU/MastersThesis'';
desc = "Go to MastersThesis";
}
]; ];
}; };
+5 -1
View File
@@ -14,7 +14,7 @@
experimental-features = nix-command flakes pipe-operators experimental-features = nix-command flakes pipe-operators
''; '';
settings = { settings = rec {
trusted-users = ["root" username]; trusted-users = ["root" username];
auto-optimise-store = true; auto-optimise-store = true;
@@ -24,11 +24,15 @@
"https://cache.nixos.org" "https://cache.nixos.org"
"https://nix-community.cachix.org" "https://nix-community.cachix.org"
# "https://app.cachix.org/cache/nixos-rocm" # "https://app.cachix.org/cache/nixos-rocm"
"https://hyprland.cachix.org"
"https://nix-gaming.cachix.org"
]; ];
trusted-public-keys = [ trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
# "nixos-rocm.cachix.org-1:VEpsf7pRIijjd8csKjFNBGzkBqOmw8H9PRmgAq14LnE=" # "nixos-rocm.cachix.org-1:VEpsf7pRIijjd8csKjFNBGzkBqOmw8H9PRmgAq14LnE="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
]; ];
}; };
+2 -1
View File
@@ -337,7 +337,8 @@ with mylib.networking; {
niri = { niri = {
enable = !headless; enable = !headless;
package = pkgs.niri-unstable; # TODO: Can remove this again once niri-flake is updated for 25.11 package = pkgs.niri;
# package = pkgs.niri-unstable; # TODO: Can remove this again once niri-flake is updated for 25.11
}; };
ssh.startAgent = true; # Use gnupg ssh.startAgent = true; # Use gnupg
+38
View File
@@ -195,6 +195,34 @@
spice-gtk spice-gtk
]; ];
stylix = {
enable = true;
autoEnable = false;
base16Scheme = "${pkgs.base16-schemes}/share/themes/catppuccin-mocha.yaml";
# TODO: Duplicated from fonts module (set this inside fonts module?)
fonts = {
serif = {
package = pkgs.noto-fonts-cjk-serif;
name = "Noto Serif CJK SC";
};
sansSerif = {
package = pkgs.noto-fonts-cjk-sans;
name = "Noto Sans CJK SC";
};
monospace = {
package = pkgs.monolisa;
name = "MonoLisa Alt Script";
};
emoji = {
package = pkgs.noto-fonts-color-emoji;
name = "Noto Color Emoji";
};
};
targets = {};
};
virtualisation = { virtualisation = {
libvirtd = { libvirtd = {
enable = true; enable = true;
@@ -216,15 +244,25 @@
openFirewall = true; # Directly set port in firewall openFirewall = true; # Directly set port in firewall
}; };
# TODO: Doesn't work with steam flatpak
# gamescope = {
# enable = true;
# enableWsi = true;
# };
ghidra = { ghidra = {
enable = true; enable = true;
gdb = true; gdb = true;
}; };
steam.platformOptimizations.enable = true; # From nix-gaming module
virt-manager.enable = true; virt-manager.enable = true;
}; };
services = { services = {
# desktopManager.plasma6.enable = true;
# displayManager.gdm.enable = true; # Somehow, Plasma's own manager didn't work
btrfs.autoScrub = { btrfs.autoScrub = {
enable = true; enable = true;
interval = "weekly"; interval = "weekly";
@@ -160,6 +160,9 @@
# https://discourse.nixos.org/t/nvidia-open-breaks-hardware-acceleration/58770/3 # https://discourse.nixos.org/t/nvidia-open-breaks-hardware-acceleration/58770/3
nvidia-vaapi-driver # Experimental, doesn't work with chromium nvidia-vaapi-driver # Experimental, doesn't work with chromium
# Hdr in games with DXVK_HDR=1 ENABLE_HDR_WSI=1
vulkan-hdr-layer-kwin6
]; ];
}; };
+8 -4
View File
@@ -19,9 +19,10 @@
../services/formula10.nix ../services/formula10.nix
../services/formula11.nix ../services/formula11.nix
../services/formula12.nix ../services/formula12.nix
../services/statespaces.nix # ../services/statespaces.nix
# General services # General services
../services/arcane-agent.nix
../services/authelia.nix ../services/authelia.nix
../services/bazarr.nix ../services/bazarr.nix
../services/fileflows.nix ../services/fileflows.nix
@@ -35,8 +36,8 @@
../services/nginx-proxy-manager.nix ../services/nginx-proxy-manager.nix
../services/paperless.nix ../services/paperless.nix
# ../services/plex.nix # Their monetization strategy is absolutely atrocious # ../services/plex.nix # Their monetization strategy is absolutely atrocious
../services/portainer-agent.nix # ../services/portainer-agent.nix
../services/pulse-agent-servenix.nix # ../services/pulse-agent-servenix.nix
../services/prowlarr.nix ../services/prowlarr.nix
../services/radarr.nix ../services/radarr.nix
../services/sabnzbd-movies.nix ../services/sabnzbd-movies.nix
@@ -44,7 +45,7 @@
../services/sonarr.nix ../services/sonarr.nix
../services/teamspeak.nix ../services/teamspeak.nix
../services/tinymediamanager.nix ../services/tinymediamanager.nix
../services/whats-up-docker.nix # ../services/whats-up-docker.nix
]; ];
systemmodules = { systemmodules = {
@@ -84,6 +85,7 @@
443 # HTTPS (Nginx Proxy Manager) 443 # HTTPS (Nginx Proxy Manager)
3000 # Gitea (runner needs to reach local gitea instance) 3000 # Gitea (runner needs to reach local gitea instance)
3553 # Arcane
30033 # Teamspeak 30033 # Teamspeak
10080 # Teamspeak 10080 # Teamspeak
@@ -96,6 +98,7 @@
443 # HTTPS (Nginx Proxy Manager) 443 # HTTPS (Nginx Proxy Manager)
3000 # Gitea (runner needs to reach local gitea instance) 3000 # Gitea (runner needs to reach local gitea instance)
3553 # Arcane
5520 # HyTale 5520 # HyTale
@@ -112,6 +115,7 @@
"paperless-nextcloud-sync-password" "paperless-nextcloud-sync-password"
"ntfy-auth-users" "ntfy-auth-users"
"ntfy-auth-tokens" "ntfy-auth-tokens"
"arcane-agent-key"
]; ];
}; };
+56
View File
@@ -0,0 +1,56 @@
{
mylib,
config,
lib,
pkgs,
...
}: let
arcaneVersion = "v2.3.0";
in {
# If we need to pass secrets to containers we can't use plain env variables.
sops.templates."arcane-agent_secrets.env".content = ''
AGENT_TOKEN=${config.sops.placeholder.arcane-agent-key}
'';
virtualisation.oci-containers.containers = {
arcane-agent = {
image = "ghcr.io/getarcaneapp/arcane-headless:${arcaneVersion}";
autoStart = true;
login = mylib.containers.mkDockerLogin config;
dependsOn = [];
ports = [
"3553:3553"
];
volumes = [
"/var/run/docker.sock:/var/run/docker.sock"
"arcane-agent_data:/app/data"
"/media/synology-syncthing:/backups"
];
environment = {
MANAGER_API_URL = "https://arcane.think.chriphost.de";
AGENT_MODE = "true";
EDGE_TRANSPORT = "poll";
PUID = "1000";
PGID = "1000";
TZ = "Europe/Berlin";
};
environmentFiles = [
config.sops.templates."arcane-agent_secrets.env".path
];
extraOptions = [
# "--privileged"
# "--device=nvidia.com/gpu=all"
"--net=behind-nginx"
];
};
};
}
+55
View File
@@ -0,0 +1,55 @@
{
mylib,
config,
lib,
pkgs,
...
}: let
arcaneVersion = "v2.3.0";
in {
# If we need to pass secrets to containers we can't use plain env variables.
sops.templates."arcane_secrets.env".content = ''
ENCRYPTION_KEY=${config.sops.placeholder.arcane-encryption-key}
JWT_SECRET=${config.sops.placeholder.arcane-jwt-secret}
'';
virtualisation.oci-containers.containers = {
arcane = {
image = "ghcr.io/getarcaneapp/manager:${arcaneVersion}";
autoStart = true;
login = mylib.containers.mkDockerLogin config;
dependsOn = [];
ports = [
# "3552:3552"
];
volumes = [
"/var/run/docker.sock:/var/run/docker.sock"
"arcane_data:/app/data"
"/media/synology-syncthing:/backups"
];
environment = {
APP_URL = "https://arcane.think.chriphost.de";
PUID = "1000";
PGID = "1000";
TZ = "Europe/Berlin";
};
environmentFiles = [
config.sops.templates."arcane_secrets.env".path
];
extraOptions = [
# "--privileged"
# "--device=nvidia.com/gpu=all"
"--net=behind-nginx"
];
};
};
}
+2 -2
View File
@@ -5,8 +5,8 @@
pkgs, pkgs,
... ...
}: let }: let
giteaVersion = "1.24.2"; giteaVersion = "1.27.0";
runnerVersion = "0.2.12"; runnerVersion = "0.6.1";
in { in {
users = { users = {
groups.git = {}; groups.git = {};
+1 -1
View File
@@ -7,7 +7,7 @@
}: let }: let
vectorchordVersion = "0.4.2"; vectorchordVersion = "0.4.2";
pgvectorsVersion = "0.2.0"; pgvectorsVersion = "0.2.0";
immichVersion = "2.5.2"; immichVersion = "3.0.1-cuda";
in { in {
virtualisation.oci-containers.containers = { virtualisation.oci-containers.containers = {
immich-database = { immich-database = {
+13 -2
View File
@@ -30,20 +30,24 @@ in {
volumes = let volumes = let
# TODO: Setup on ThinkNix: adguard_config, adguard_work, portainer_config # TODO: Setup on ThinkNix: adguard_config, adguard_work, portainer_config
backup = [ backup = [
"arcane-agent_data"
"authelia_config" "authelia_config"
"formula10_cache" "bazarr_config"
"fileflows_data"
"formula10_data" "formula10_data"
"formula11_pb_data" "formula11_pb_data"
"formula12_pb_data"
"gitea-db_data" "gitea-db_data"
"gitea_data"
"gitea-runner_config" "gitea-runner_config"
"gitea-runner_data" "gitea-runner_data"
"gitea_data"
"heidi_config" "heidi_config"
"immich-database_data" "immich-database_data"
"immich_config" "immich_config"
"immich_data" "immich_data"
"immich_machine-learning" "immich_machine-learning"
"jellyfin_config" "jellyfin_config"
"kopia_config"
"nextcloud-db_data" "nextcloud-db_data"
"nextcloud_data" "nextcloud_data"
"nginx_config" "nginx_config"
@@ -51,6 +55,13 @@ in {
"nginx_snippets" "nginx_snippets"
"paperless-postgres_data" "paperless-postgres_data"
"paperless_data" "paperless_data"
"prowlarr_config"
"radarr_config"
"sabnzbd-movies_config"
"sabnzbd-shows_config"
"sonarr_config"
"teamspeak_data2"
"tinymediamanager_data"
]; ];
mkVolume = name: "${name}:/data/${name}:ro"; mkVolume = name: "${name}:/data/${name}:ro";
+1 -1
View File
@@ -5,7 +5,7 @@
pkgs, pkgs,
... ...
}: let }: let
teamspeakVersion = "6.0.0-beta10"; teamspeakVersion = "6.0.0-beta11";
in { in {
virtualisation.oci-containers.containers = { virtualisation.oci-containers.containers = {
teamspeak = { teamspeak = {
+1
View File
@@ -30,6 +30,7 @@ in {
# Sans/Serif fonts # Sans/Serif fonts
noto-fonts noto-fonts
noto-fonts-color-emoji noto-fonts-color-emoji
noto-fonts-cjk-serif
noto-fonts-cjk-sans noto-fonts-cjk-sans
lxgw-wenkai lxgw-wenkai
]; ];
+9 -6
View File
@@ -17,18 +17,20 @@ restic-repo-key: ENC[AES256_GCM,data:lSFuhjbhdQq4cabAVFGQ4kuaJxb7EhXgBDlgoEQWJhs
heidi-discord-token: ENC[AES256_GCM,data:FYvfUn8tG7glqIomSDj9rGyNQjnHSCsD/C3Kk/JR1vm/xkrxzXwP3rpyxAzqRQ7vd+zFBf2BJfV/zMk=,iv:b+aKcu98rxslEGSYf6t/jGwPfS256WQ3B/iuQ4Qeykk=,tag:e48Q0BraIvItyD2WBfbYEA==,type:str] heidi-discord-token: ENC[AES256_GCM,data:FYvfUn8tG7glqIomSDj9rGyNQjnHSCsD/C3Kk/JR1vm/xkrxzXwP3rpyxAzqRQ7vd+zFBf2BJfV/zMk=,iv:b+aKcu98rxslEGSYf6t/jGwPfS256WQ3B/iuQ4Qeykk=,tag:e48Q0BraIvItyD2WBfbYEA==,type:str]
kopia-server-username: ENC[AES256_GCM,data:4onewFkWpi9g,iv:aA4WSS8T6KUcGbAIHDd8BjE0sRK/Qz0j4QvEnKdlt2U=,tag:FQlB0Wx2u8wT3TKIhMAyLg==,type:str] kopia-server-username: ENC[AES256_GCM,data:4onewFkWpi9g,iv:aA4WSS8T6KUcGbAIHDd8BjE0sRK/Qz0j4QvEnKdlt2U=,tag:FQlB0Wx2u8wT3TKIhMAyLg==,type:str]
kopia-server-password: ENC[AES256_GCM,data:6nMnhRA=,iv:Qz9qP+m0obzL+eHFmW1qVmc/0TR4Iw4X1GL4zACOSMk=,tag:v3v+33+g4y6se5q+b4e8mA==,type:str] kopia-server-password: ENC[AES256_GCM,data:6nMnhRA=,iv:Qz9qP+m0obzL+eHFmW1qVmc/0TR4Iw4X1GL4zACOSMk=,tag:v3v+33+g4y6se5q+b4e8mA==,type:str]
kopia-user-password: ENC[AES256_GCM,data:jPWeru4e2w9qzA==,iv:WpZS3Qmx8v12v3q1Lq1YrPnWw7BY0FhxurXYuaOdfwA=,tag:+8bQAnHRh55rUMdyoK6N8w==,type:str] kopia-user-password: ENC[AES256_GCM,data:W8BdbqI=,iv:JoH0ig8X+h/+bmQvzWnDo8yu1SZyE8fCwTLyyZHmDAI=,tag:foH5Es/5CBOysD4JjQzDdA==,type:str]
paperless-nextcloud-sync-password: ENC[AES256_GCM,data:pfLg3OVBqLsM4R7mSgLQEachj9gMkexPjBMSyzU=,iv:XBe1cdwlTjPfQW70NIEjD8CikK58iGErI9ZTlLWtCA4=,tag:qO35GdjljgS3/z5/1fCOFg==,type:str] paperless-nextcloud-sync-password: ENC[AES256_GCM,data:pfLg3OVBqLsM4R7mSgLQEachj9gMkexPjBMSyzU=,iv:XBe1cdwlTjPfQW70NIEjD8CikK58iGErI9ZTlLWtCA4=,tag:qO35GdjljgS3/z5/1fCOFg==,type:str]
ntfy-auth-users: ENC[AES256_GCM,data:IHnJJgUL9RqkEAoJ2Q9Oo0RkfgLXG7vih5NFPrPNBoIzMafdLXxHqNOAd1oRaOUd6AKmWdQ3uKAZINj7oGZEKMsMxUEv1WW6IXUuPnDeJe5EthINWCuaW2Z64PJl+uqgnWr4wDi7QT0zwjb/oL3gYfjH1xtfMadTzkWbmnxQ9jlP/nXe9JR1/oCrHv3dio5uU017cA==,iv:JmWnu25ZB/qqI2RsgHQ0bcat69V7p5MJ6cf5eFcSsns=,tag:6Z2LseCav/qyLh2nn+7uuw==,type:str] ntfy-auth-users: ENC[AES256_GCM,data:IHnJJgUL9RqkEAoJ2Q9Oo0RkfgLXG7vih5NFPrPNBoIzMafdLXxHqNOAd1oRaOUd6AKmWdQ3uKAZINj7oGZEKMsMxUEv1WW6IXUuPnDeJe5EthINWCuaW2Z64PJl+uqgnWr4wDi7QT0zwjb/oL3gYfjH1xtfMadTzkWbmnxQ9jlP/nXe9JR1/oCrHv3dio5uU017cA==,iv:JmWnu25ZB/qqI2RsgHQ0bcat69V7p5MJ6cf5eFcSsns=,tag:6Z2LseCav/qyLh2nn+7uuw==,type:str]
ntfy-auth-tokens: ENC[AES256_GCM,data:C23r9djvEukUgDDloFGm52spwcW1DB5Jcwt9kxghLjL3vNiQ9HzGrvlSl5oEppoNa23BF0+t,iv:O9LepUKGbyXTHMvwn1avdJEhcMgtr2Sb1imIJ8ALMYY=,tag:o3g6f7YZL2VfgfeymzJK1g==,type:str] ntfy-auth-tokens: ENC[AES256_GCM,data:C23r9djvEukUgDDloFGm52spwcW1DB5Jcwt9kxghLjL3vNiQ9HzGrvlSl5oEppoNa23BF0+t,iv:O9LepUKGbyXTHMvwn1avdJEhcMgtr2Sb1imIJ8ALMYY=,tag:o3g6f7YZL2VfgfeymzJK1g==,type:str]
arcane-agent-key: ENC[AES256_GCM,data:jbk1yiE1R2teclJc233qVvHOf+fvmQR/trPoVPMmnLz12rPFa/pciwaIne2SjacpJjxzqYDuJJqcwdYtOXAHzLBCXaQ=,iv:tZGQxfaUEccH/n62H5oP8X3K+UWrIvmthiywpSrejkY=,tag:UEGPBox7j2qiF+uyWRTZaw==,type:str]
# #
#ENC[AES256_GCM,data:Gdh/hjCaOuAE,iv:XjPXn3SskpUPUkDIEDl5701/g9QhuS83fACMaoPMiIM=,tag:Q7s8xZG/GsOtQrasekBnkQ==,type:comment] #ENC[AES256_GCM,data:Gdh/hjCaOuAE,iv:XjPXn3SskpUPUkDIEDl5701/g9QhuS83fACMaoPMiIM=,tag:Q7s8xZG/GsOtQrasekBnkQ==,type:comment]
# #
wireguard-vps-private-key: ENC[AES256_GCM,data:B6IWYuzKV9YZ+G9GIjOsXVEVugwMY14PrwmYyHsFAJEb1OJRXMg8+zeFnqs=,iv:2QroGA10UVSmNIBHFSTeCgMBD3VjtiUnng3pkR/mPVQ=,tag:FGlCrmdccgsObyut6E5ggA==,type:str] wireguard-vps-private-key: ENC[AES256_GCM,data:B6IWYuzKV9YZ+G9GIjOsXVEVugwMY14PrwmYyHsFAJEb1OJRXMg8+zeFnqs=,iv:2QroGA10UVSmNIBHFSTeCgMBD3VjtiUnng3pkR/mPVQ=,tag:FGlCrmdccgsObyut6E5ggA==,type:str]
arcane-encryption-key: ENC[AES256_GCM,data:4H2kaQwIV5m0FVv+3IlNaw85V00r8W4SQ5cOSOskljtaUkFUteHzamj9KH7NxdKY+pxFkrvwIOIAhNYQTMRBSQ==,iv:FDx8IYu7B7jENtGnFiS7U7W2pDIwz9ibfuCNL0UBX6c=,tag:WSm/SwCs8sSynXeXi3+muw==,type:str]
arcane-jwt-secret: ENC[AES256_GCM,data:BMC/Hju/FkHxXjdZrVr9xjiqs9Uny/w/k14K+b+DYgPOlPYMH+YSZQ/3/yyw5j52FNcm+lDG2drTaO0NfBKJsQ==,iv:gHU78Fw1L6Igp+Jewq5xqW39tSGvGh/HREcd+HX/nO4=,tag:KTL21t2kKWsB3zm7x+T0SA==,type:str]
sops: sops:
age: age:
- recipient: age14ph8vrj657e7s35d60xehzuq46t9zd6pzcm6pw4jragzrvf6xs9s77usnm - enc: |
enc: |
-----BEGIN AGE ENCRYPTED FILE----- -----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBWSVRhVDREMXduZElrRklE YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBWSVRhVDREMXduZElrRklE
R2s3Y081TGVTOCtKWVVWN0RLb0ZIT3lmMTNZCjFaNmRqb2hRVXFDSU12dFhDNmJo R2s3Y081TGVTOCtKWVVWN0RLb0ZIT3lmMTNZCjFaNmRqb2hRVXFDSU12dFhDNmJo
@@ -36,7 +38,8 @@ sops:
SURMTmh1TGIrRmtENzc0Sk4rNFJNUE0KOpjN6jkEHO+lvdWdp4P++r9SNSPWaT0h SURMTmh1TGIrRmtENzc0Sk4rNFJNUE0KOpjN6jkEHO+lvdWdp4P++r9SNSPWaT0h
FAbbvZZ/EdIk/njLEcayFN7B4ftTcD/f4XJZiyosilZnIkk76bMOHA== FAbbvZZ/EdIk/njLEcayFN7B4ftTcD/f4XJZiyosilZnIkk76bMOHA==
-----END AGE ENCRYPTED FILE----- -----END AGE ENCRYPTED FILE-----
lastmodified: "2026-04-17T12:17:23Z" recipient: age14ph8vrj657e7s35d60xehzuq46t9zd6pzcm6pw4jragzrvf6xs9s77usnm
mac: ENC[AES256_GCM,data:YEHM2ebPhV6ycj8OxNy7mOlpy6VrvV6Gz9sHEWc9alnrwZ0qLzp5m4AUMuWBSfFTMtVgeAFdJ8Nf4X5b+AzQXahlHWJVAwiMiE8KqhRLGWF21OyDN2aIdwd4ue2vYyPDGYP43mC+19v9SW5isF901G28e5Q9SxmGJjNOkiVuiCI=,iv:WFvCN/7YGQnCSqjXBkkfiuPoNQ37bpxHx9jreZDc3EM=,tag:AUjFpbJ6//eScnn6P2QMgA==,type:str] lastmodified: "2026-07-02T19:27:51Z"
mac: ENC[AES256_GCM,data:IkpzDK4F1pEoGx1WyG8ksgMFuEa2h9KeF3m3PzM8KQkWo9iVt3jJn80jHEzWAm8riWIbo7fRkxyRetlSFTZf+MrByotgkWVVx6dMIVNYAOcg2IOK3s4NnX0L65MjbfWGQp/d27QzzEbd14WyklMWm2UO3ei82tF+UKYUEFJ2BWk=,iv:8LimsncylU+HhvVKNnjfyqZskZA72FQe92C4VrNWyQ0=,tag:L6CEno9m3ZncOskjZibq+Q==,type:str]
unencrypted_suffix: _unencrypted unencrypted_suffix: _unencrypted
version: 3.12.2 version: 3.13.1
+7 -5
View File
@@ -16,11 +16,12 @@
# General services # General services
../services/adguard.nix ../services/adguard.nix
../services/arcane.nix
../services/nginx-proxy-manager.nix ../services/nginx-proxy-manager.nix
../services/portainer.nix # ../services/portainer.nix
../services/pulse.nix # ../services/pulse.nix
../services/pulse-agent-thinknix.nix # ../services/pulse-agent-thinknix.nix
../services/whats-up-docker.nix # ../services/whats-up-docker.nix
]; ];
systemmodules = { systemmodules = {
@@ -67,7 +68,8 @@
}; };
sops-nix.secrets.${username} = [ sops-nix.secrets.${username} = [
# "wireguard-vps-private-key" "arcane-encryption-key"
"arcane-jwt-secret"
]; ];
}; };