Compare commits

..
314 Commits
Author SHA1 Message Date
christoph 909b81a962 Modules/Impermanence: Persist some caches + lmstudio models 2026-06-17 13:56:50 +02:00
christoph d6edae2a88 Home/Nixinator: Update opencode permissions 2026-06-17 13:56:41 +02:00
christoph 3d612ca0d7 Modules/Packages: Add lmstudio 2026-06-14 21:01:24 +02:00
christoph b93dae8b1b Modules/Neovim: Disable opencode diff popup tab 2026-06-14 21:01:18 +02:00
christoph a7ba12ad91 Home/Nixinator: Configure opencode lsps + formatters 2026-06-14 21:01:02 +02:00
christoph 7a2be8965f Modules/Neovim: Configure opencode-nvim 2026-06-13 17:53:45 +02:00
christoph 493c452b46 Home/Nixinator: Configure opencode 2026-06-13 15:55:39 +02:00
christoph 80a7e0d155 Modules/Neovim: Fix lua module/plugin path name mismatch 2026-06-13 14:42:10 +02:00
christoph 938fe6f905 Modules/Impermanence: Persist ~/.npm 2026-06-13 14:30:05 +02:00
christoph d1e659d868 System/Nixinator: Update kmscon config after flake update 2026-06-13 14:29:56 +02:00
christoph 8aaeb0db89 Flake: Update lock 2026-06-13 14:29:45 +02:00
christoph b1cd681d04 Modules/Impermanence: Persist opencode state 2026-06-13 13:35:17 +02:00
christoph ba699c6387 Home/Nixinator: Add opencode 2026-06-13 13:34:07 +02:00
christoph 492082ae84 Home/Nixinator: Add shadcn mcp server 2026-06-12 20:57:20 +02:00
christoph 4e70ca0246 Modules/Neovim: Add R packages 2026-06-12 20:57:10 +02:00
christoph 6657038f15 Services/FileflowsNode: Update to v26.06 2026-06-12 20:57:00 +02:00
christoph 5b6c0d08a6 Services/Fileflows: Update to v26.06 2026-06-12 20:45:42 +02:00
christoph 6dec53dc8f Modules/Zed: Fix nix formatting 2026-06-06 19:25:08 +02:00
christoph a7fc8ead60 Services/Teamspeak: Update to v6.0.0-beta10 2026-06-06 01:45:11 +02:00
christoph a081654767 System/Servenix: Downgrade nvidia drivers to legacy_580 for GTX1070 2026-06-06 01:40:30 +02:00
christoph 51d2796ba0 Modules/Yazi: Fix xdg-open as default 2026-06-05 20:47:02 +02:00
christoph 559bb1d471 Modules/Yazi: Update for new HM update 2026-06-05 12:37:31 +02:00
christoph b9649d4a58 Modules/Zed: Update extensions 2026-06-05 12:37:04 +02:00
christoph c513749219 Modules/VSCode: Add claude extension 2026-06-05 12:36:47 +02:00
christoph cb22c507cf Modules/SSH: Update for new HM update 2026-06-05 12:36:39 +02:00
christoph 48bd5f4bcd Modules/Niri: Reformat 2026-06-05 12:36:25 +02:00
christoph f66e6cdd87 Modules/Neovim: Add additional dependencies 2026-06-05 12:36:15 +02:00
christoph ed7178b731 Flake: Remove nixvim.inputs.nixpkgs.follows 2026-06-05 12:36:06 +02:00
christoph be063f3329 Flake: Update lock 2026-06-05 12:35:51 +02:00
christoph 7404a25391 Services/Comfyui: Update to v0.24.0 2026-06-05 12:35:31 +02:00
christoph 725e17a86a System/Nixinator: Switch to nvidia stable 2026-06-05 12:34:55 +02:00
christoph b7131b817a Home/Nixinator: Enable nixos mcp server 2026-06-05 12:33:43 +02:00
christoph f2ce5eb64c Services/Kiwix: Move .zim files to ~/ssd/kiwix 2026-06-05 12:32:59 +02:00
christoph 6e50052e29 Modules/Zed: Configure nix lsp + formatting 2026-05-27 16:19:52 +02:00
christoph 59c6c2cbac Modules/Impermanence: Persist claude code state 2026-05-27 16:19:43 +02:00
christoph 35c370732a Home/Nixinator: Enable sveltejs mcp server 2026-05-27 16:19:25 +02:00
christoph ff72abc318 Modules/Zed: Update settings + add csv/cmake extensions 2026-05-19 21:19:28 +02:00
christoph da85e39d7d Home/Nixinator: Enable claude-code 2026-05-19 21:18:56 +02:00
christoph 8516a5f463 Modules/Neovim: Add nil language server 2026-05-17 14:48:07 +02:00
christoph 9518dceff5 Home/Nixinator: Enable mcp 2026-05-17 14:47:59 +02:00
christoph cb086876fd Modules/Zed: Enable ai features 2026-05-17 14:47:59 +02:00
christoph 81873c0f68 Modules/VsCode: Enable ai features 2026-05-17 14:47:59 +02:00
christoph 96cbf1f428 Modules/Impermanence: Persist vscode + zed state 2026-05-13 14:39:14 +02:00
christoph a1dbcf00b4 Modules/Beets: Update fetchart sources config 2026-05-13 14:39:05 +02:00
christoph e0b9c7187e Modules/VSCode: Disable ai features 2026-05-13 14:38:56 +02:00
christoph f0dc6ede97 Modules/Zed: Init zed-editor module 2026-05-13 14:38:42 +02:00
christoph 00cadeed67 Modules/VSCode: Update + undeprecate 2026-05-13 14:18:07 +02:00
christoph a558b811bf Derivations/Tiddl: Update to v3.4.3 2026-05-12 20:51:46 +02:00
christoph cf7fdb2aec Modules/Rmpc: Update config to v0.11.0 format 2026-05-12 12:58:57 +02:00
christoph 8fd939bc34 Modules/Firefox: Update configPath to old location in ~/ 2026-05-12 12:58:45 +02:00
christoph a5ca09b7ec Modules/Packages: Add lldb 2026-05-12 12:58:32 +02:00
christoph 4edd789c20 System/Nixinator: Switch to nvidia beta driver after issues 2026-05-12 12:58:24 +02:00
christoph f5f23388ce System/Nixinator: Update comfy config 2026-05-12 12:58:14 +02:00
christoph 97a9f4d78a Lib/Nixos: Increase nix download buffer size 2026-05-10 22:40:35 +02:00
christoph 60fe34de9d Flake: Disable direnv-instant input 2026-05-09 12:03:17 +02:00
christoph 7ed23a63a3 Modules/Neovim: Add perlnavigator lsp in addition to PLS 2026-05-07 16:08:54 +02:00
christoph 7fbab2b1f6 Modules/Fish: Enable vi keybindings 2026-05-06 21:06:31 +02:00
christoph df1cadae60 Modules/Kitty: Enable cursor_trail 2026-05-06 21:06:20 +02:00
christoph b5cb085083 Modules/Packages: Disable cine 2026-05-01 11:58:54 +02:00
christoph 2a2d96d97e System/Nixtop: Disable deprecated modules 2026-05-01 11:56:49 +02:00
christoph 307a8b5fb7 Modules/Firefox: Set configPath after update 2026-05-01 11:56:38 +02:00
christoph 9861866c6f Modules/Niri: Replace swww with awww after update 2026-05-01 11:56:31 +02:00
christoph 05dd3fd75f Flake: Update lock 2026-05-01 11:55:40 +02:00
christoph 15e2290267 Modules/Impermanence: Persist tableplus and binaryninja state 2026-04-30 09:15:03 +02:00
christoph 3646bceff9 Modules/Packages: Add binaryninja and tableplus 2026-04-30 09:14:43 +02:00
christoph f429a50206 Modules/Niri: Add factorio window rule 2026-04-27 23:46:24 +02:00
christoph 024908500a Modules/Neovim: Add ggalluvial R package 2026-04-27 23:46:06 +02:00
christoph c7098e2208 Config/Navi: Update ffmpeg cheats 2026-04-27 23:45:06 +02:00
christoph 0e86ca0371 Modules/Niri: Update window rules (fix obsidian match, neovide focus) 2026-04-21 10:17:52 +02:00
christoph 663f21bdda Modules/Neovim: Add TextCSV_XS perl plugin 2026-04-21 10:17:38 +02:00
christoph 2533183d80 Modules/Fish: Add mechanism to load/unload fish environment shells with direnv 2026-04-20 11:27:18 +02:00
christoph f259b7d326 Modules/Packages: Remove disktui from nix-darwin 2026-04-20 09:22:12 +02:00
christoph ac1b8c9f07 Modules/Neovim: Configure perl lsp/formatter + R lsp/formatter 2026-04-19 22:51:07 +02:00
christoph 00e3713682 Services/Nfty: Bind port for VPS 2026-04-17 14:21:21 +02:00
christoph 84eabaa4d3 Modules/Sops: Add ntfy secrets 2026-04-17 14:17:45 +02:00
christoph d0916c49e5 Services/Nfty: Init at v2.21 2026-04-17 14:17:19 +02:00
christoph 91c35fd55c Modules/Neovim: Enable perl-language-server (PLS) and PerlTidy 2026-04-17 13:37:55 +02:00
christoph 166c35caec Modules/Niri: Configure default floating window sizes for eyedropper + junction 2026-04-17 12:46:00 +02:00
christoph c204312423 Modules/Yazi: Add junction hotkey 2026-04-17 12:45:46 +02:00
christoph ddc5722bbe Modules/Packages: Add junction (app chooser) 2026-04-17 12:45:38 +02:00
christoph cadd7bd949 System: Disable documentation 2026-04-17 12:45:12 +02:00
christoph 2fbf61c052 System: Move cachix configuration to mkCommonNixSettings library function 2026-04-17 12:44:58 +02:00
christoph 5d699a2d58 Home/Nixinator: Add onlyoffice (flatpak) 2026-04-17 12:44:17 +02:00
christoph 593437fa94 Config/Obsidian: Add !important to snippets 2026-04-15 01:28:40 +02:00
christoph 00e412cb20 Config/Obsidian: Add image borders snippet 2026-04-15 00:23:34 +02:00
christoph 1290f14cb7 Config/Obsidian: Add justify text snippet 2026-04-15 00:19:31 +02:00
christoph 132e52e4ad Modules/Packages: Add eyedropper 2026-04-15 00:19:21 +02:00
christoph 29970472f8 Config/Obsidian: Add fullwidth images snippet 2026-04-15 00:10:20 +02:00
christoph 6507cbc0e0 Modules/Packages: Add cine mpv frontend 2026-04-14 11:06:04 +02:00
christoph 7e3985bd34 Services/Comfyui: Disable service 2026-04-14 11:05:49 +02:00
christoph 57b8980ebe Add wallpapers 2026-04-10 17:31:15 +02:00
christoph f1ddccb0df System/Nixinator: Don't configure swapfile in disko 2026-04-10 17:31:03 +02:00
christoph 0fb5c79df4 Modules/Packages: Add disktui 2026-04-10 17:30:46 +02:00
christoph b2915bdd90 Modules/Niri: Open zotero on workspace 3 instead of 2 2026-04-10 17:30:38 +02:00
christoph 49ef17ac33 Modules/Packages: Add texlive to darwinix 2026-04-04 10:51:44 +02:00
christoph debe85da8e Modules/Impermanence: Persist jellyfin-tui state 2026-04-02 19:58:47 +02:00
christoph 558c497c74 Services/TeamSpeak: Update to v6.0.0-beta8 2026-04-02 19:56:30 +02:00
christoph c4451939d5 Modules/Firefox: Update f12 bookmarks 2026-04-02 19:55:48 +02:00
christoph d1f010dcc8 Modules/Packages: Install masssprings on all !headless devices 2026-03-28 11:43:18 +01:00
christoph 3d5a0f8cb5 Home/Nixinator: Add gnome-boxes 2026-03-27 17:58:54 +01:00
christoph 0831730903 System/Nixinator: Configure libvirt virtualisation 2026-03-27 16:54:56 +01:00
christoph 004eff3abf Modules/Niri: Update global menu 2026-03-27 11:20:55 +01:00
christoph 592e7e4bb9 Modules/SSH: Add keys to ssh-agent on nix-darwin 2026-03-27 01:31:21 +01:00
christoph ec7247bc77 Modules/Niri: Update walker menus using new mkMenu lib function 2026-03-27 01:18:26 +01:00
christoph e1d041f010 Lib/Rofi: Replace mkSimpleMenu with multi-layer-menu capable mkMenu 2026-03-27 01:18:02 +01:00
christoph 84fec63204 Modules/Impermanence: Remove dms mount 2026-03-27 00:25:45 +01:00
christoph b434aaaccc Modules/JellyfinTUI: Set jellyfin url depending on system (nixos/darwin) 2026-03-26 21:43:41 +01:00
christoph 4639fd8c7e Modules/JellyfinTUI: Generate config in path depending on system (nixos/darwin) 2026-03-26 21:35:53 +01:00
christoph 7f22089765 Modules/Sops: Don't hardcode age keyFile path 2026-03-26 21:24:28 +01:00
christoph 8c53eaf570 Modules/JellyfinTUI: Reference nixos/darwin config depending on system 2026-03-26 21:13:04 +01:00
christoph c9a4b1a428 System/Darwinix: Set sops bootSecrets 2026-03-26 21:03:21 +01:00
christoph 288496afa1 Flake: Import sops module on nix-darwin 2026-03-26 21:02:11 +01:00
christoph 34f61d4f27 Modules/Sops: Update secret definitions for nix-darwin 2026-03-26 21:00:38 +01:00
christoph 77f169fef4 Lib/Nixos: Import compatible systemmodules into darwin system 2026-03-26 20:49:50 +01:00
christoph 8576db096f System/Darwinix: Import sops secrets 2026-03-26 20:46:38 +01:00
christoph d20ce66646 Modules/JellyfinTUI: Include + enable module, disable impermanence 2026-03-26 20:46:30 +01:00
christoph 226b72dccf Config/Navi: Update sops secrets file path 2026-03-26 20:45:44 +01:00
christoph 6147801194 Modules/JellyfinTUI: Init module 2026-03-26 20:38:36 +01:00
christoph a1b8bc9555 System/Nixinator: Enable linux_zen 2026-03-26 20:15:12 +01:00
christoph 83ffca5e21 Modules/Packages: Update protonvpn-gui package name 2026-03-26 20:15:03 +01:00
christoph eb782a67cb Modules/Niri: Update gtk config after HM update 2026-03-26 20:14:47 +01:00
christoph 85a12edbcc Flake: Update lock 2026-03-26 15:22:55 +01:00
christoph a056e4d98b Modules/Packages: Add ttyper, bandwhich, snitch 2026-03-26 15:21:25 +01:00
christoph 5f17a04fbb Home: Extract common nixos/darwin packages/programs/module-configs into terminal+packages modules 2026-03-24 11:58:45 +01:00
christoph f514387f64 System: Use lib.networking to configure static networks 2026-03-24 11:32:11 +01:00
christoph c328c188b8 Lib/Networking: Add option to configure route-less addresses 2026-03-24 11:31:56 +01:00
christoph 585f74ce0f System: Use common nix configuration 2026-03-24 11:30:38 +01:00
christoph 8263fe01eb Lib/Nixos: Add common nix configuration 2026-03-24 11:30:22 +01:00
christoph d61e6f8b9c Services: Use common dockerhub login 2026-03-24 11:29:21 +01:00
christoph 7c7c195083 Lib/Containers: Add common dockerhub login 2026-03-24 11:27:22 +01:00
christoph 2e78898c5a Modules/Neovim: Add devdocs integration plugin 2026-03-24 10:38:34 +01:00
christoph 1f61e9958c System/Darwinix: Add signal cask 2026-03-23 13:56:54 +01:00
christoph c8954e5854 Home/Darwinix: Add speedtest-cli 2026-03-23 13:42:23 +01:00
christoph e772d93f23 Home: Add speedtest-cli 2026-03-23 13:42:00 +01:00
christoph 4c17560020 Services/Comfyui: Update launch args 2026-03-23 13:06:43 +01:00
christoph e1542a1168 System/Darwinix: Add casks (obsidian, discord, ...) 2026-03-23 13:02:46 +01:00
christoph a351bf59ba Services/Comfyui: Update image + launch args 2026-03-23 11:19:43 +01:00
christoph 7a62f38084 Modules/Waybar: Update widget intervals 2026-03-23 11:19:34 +01:00
christoph b50c5f9f71 Modules/Fish: Update abbrs 2026-03-23 11:19:17 +01:00
christoph 0087145957 Services/ComfyUI: Open port 2026-03-23 10:37:29 +01:00
christoph 48c77e9654 System/Darwinix: Move sketchybar to correct location 2026-03-23 00:34:34 +01:00
christoph 71d06d61b1 Modules/Fish: Update abbrs for nix-darwin 2026-03-23 00:24:11 +01:00
christoph 75d024111e Home/Darwinix: Enable sketchybar 2026-03-23 00:21:19 +01:00
christoph b67aee2a64 Modules/Waybar: Update workspace widget colors (empty/occupied/active/urgent) 2026-03-23 00:20:59 +01:00
christoph 554a76b585 Modules/Waybar: Update warning colors 2026-03-22 23:24:19 +01:00
christoph d9e7e315da Modules/Waybar: Disable systemd-failed-units widget 2026-03-22 23:15:48 +01:00
christoph daee8da3ae Home: Move bat/cava/fastfetch/ssh/tmux configs to modules + deduplicate nix-darwin home config 2026-03-22 23:03:19 +01:00
christoph c2b661adbb System/Darwinix: Update trackpad/keyboard config 2026-03-22 22:43:08 +01:00
christoph aa4ebfbc06 Home: Update nixinator ssh config 2026-03-22 22:42:28 +01:00
christoph db850552e3 Add nix-darwin screenshot 2026-03-21 16:19:47 +01:00
christoph 63afac3d04 Modules/Fish: Add nix-darwin homebrew environment setup 2026-03-21 15:50:27 +01:00
christoph 645fc64ead System/Darwinix: Set known network services 2026-03-21 15:41:48 +01:00
christoph 6561d4c979 Home/Darwinix: Set environment variables 2026-03-21 15:40:36 +01:00
christoph f1ed339968 System/Darwinix: System settings 2026-03-21 15:39:01 +01:00
christoph 50d14ecf83 Home/Darwinix: Remove non-available packages 2026-03-21 15:03:34 +01:00
christoph 1cdc3f25e0 System/Darwinix: Add fonts 2026-03-21 15:00:32 +01:00
christoph 9e62f755bb Modules/Neovim: Don't hardcode home directory 2026-03-21 14:46:11 +01:00
christoph d0e6fe072a Home/Darwinix: Disable keychain 2026-03-21 14:34:13 +01:00
christoph 86ea11c8e8 Modules/Fish: Add darwin rebuild abbr 2026-03-21 14:34:06 +01:00
christoph 1adacf5e1e Home/Darwinix: Add programs 2026-03-21 14:18:23 +01:00
christoph e53787deae Modules/Fish: Update for nix-darwin 2026-03-21 14:18:10 +01:00
christoph efce5c6293 Home/Darwinix: Add packages 2026-03-21 14:06:55 +01:00
christoph 6069a12e64 Modules/Neovim: Update for nix-darwin 2026-03-21 14:01:01 +01:00
christoph 91bd79a051 Modules/Kitty: Update for nix-darwin 2026-03-21 13:56:24 +01:00
christoph 9bec5f42b1 Modules/Fish: Update for nix-darwin 2026-03-21 13:44:12 +01:00
christoph 602aa4cd56 Initialize nix-darwin config for darwinix 2026-03-21 13:28:25 +01:00
christoph 3573a705af Home: Disable rofi 2026-03-21 11:49:04 +01:00
christoph 615d886a98 Update screenshots 2026-03-21 11:22:51 +01:00
christoph 4416f39f0c Modules/Niri: Enable dunst 2026-03-21 11:21:02 +01:00
christoph 0bb481c037 Modules/Niri: Use waypaper with swww backend instead of swaybg 2026-03-21 10:59:19 +01:00
christoph 98a3788f4f Modules/Niri: Add wallpaper switcher keybindings 2026-03-21 01:45:07 +01:00
christoph ac4b005f9b Add wallpapers 2026-03-21 01:41:42 +01:00
christoph 901f58a527 Modules/Niri: Set wallpaper 2026-03-20 22:58:05 +01:00
christoph 9a5bc3e981 Modules/Niri: Add session command menu 2026-03-20 22:47:08 +01:00
christoph fe69d39769 Lib/Rofi: Allow supplying a dmenu command for mkSimpleMenu 2026-03-20 22:46:58 +01:00
christoph 2f675e96f0 Modules/Niri: Theme walker 2026-03-20 22:24:00 +01:00
christoph 56512194ef Modules/Waybar: Update module configurations 2026-03-20 21:41:02 +01:00
christoph d1a6aafed5 Modules/Waybar: Make option accept list of outputs instead of single 2026-03-20 20:00:12 +01:00
christoph 6305d9ca2e Modules/Niri: Replace kde polkit agent with gnome's + fix waybar rounded corner clipping 2026-03-20 19:52:35 +01:00
christoph 887f7db0c7 Modules/Waybar: Align waybar with current colorscheme 2026-03-20 19:51:18 +01:00
christoph d8dbdbc5de Modules/Neovim: Add tombi toml formatter 2026-03-20 19:50:44 +01:00
christoph 4014ed0318 Modules/Niri: Disable DMS (slow af) 2026-03-20 19:25:28 +01:00
christoph 87fa954937 Modules/Firefox: Fix search engine typo 2026-03-20 17:10:53 +01:00
christoph 934644c5e2 Modules/Niri: Update gtk theme + fix flatpak themes 2026-03-20 17:10:43 +01:00
christoph 0bda035ccd Modules/Hyprland: Deprecate hyprland module 2026-03-20 14:08:51 +01:00
christoph 6e999ffa02 Modules/Fish: Update abbrs 2026-03-20 10:32:12 +01:00
christoph 807388d032 Home: Add exiftool 2026-03-20 09:35:06 +01:00
christoph 9b1a7c73e6 Modules/Niri: Update gtk theme 2026-03-19 23:57:52 +01:00
christoph da729f8c22 Services/ComfyUI: Update root directory 2026-03-19 23:57:43 +01:00
christoph d08d795adf System/Nixinator: Add two additional disks to system (disko, luks) 2026-03-19 23:57:32 +01:00
christoph ffc2516353 Home/Nixinator: Add hytale + steam 2026-03-19 23:57:05 +01:00
christoph 135e1e5701 Services/ComfyUI: Init at v2026-03-16 2026-03-19 17:43:22 +01:00
christoph 5b2fc78889 Services/FileFlows: Don't autostart nixinator node 2026-03-19 17:37:19 +01:00
christoph 4cbe9885b2 Home: Remove old ollama config 2026-03-19 17:32:15 +01:00
christoph 9b43074248 Home: Add mars database port forward 2026-03-19 10:29:55 +01:00
christoph be3f6baa17 Home/Nixinator: Use ghidra option instead of package 2026-03-19 10:29:43 +01:00
christoph 837233b552 Modules/Firefox: Update search engines 2026-03-17 18:16:41 +01:00
christoph ca0c718f3b Modules/Firefox: Update HM Search bookmark url 2026-03-17 18:16:34 +01:00
christoph 3c68574aea Home: Add resultbrowser ssh port forward to mars host 2026-03-17 18:16:21 +01:00
christoph aa668d04d3 Modules/Impermanence: Persist ghidra config 2026-03-13 01:10:04 +01:00
christoph d16b645078 System/Nixinator: Disable restic backup service (broken) 2026-03-13 00:55:35 +01:00
christoph b71264b864 Home/Nixinator: Add ghidra 2026-03-13 00:47:33 +01:00
christoph 6ed1882429 System/Nixinator: Open FAIL* port 1111 2026-03-12 20:25:54 +01:00
christoph 952802d4f7 Modules/Neovim: Don't use cursive script front in neovide 2026-03-12 20:25:44 +01:00
christoph 53fc6eedc8 Flake: Update lock 2026-03-12 20:25:25 +01:00
christoph 2e0f378c9e Modules/Neovim: Fix just-lsp configuration 2026-03-12 09:31:01 +01:00
christoph abab1cf2b4 Modules/Neovim: Fix persisted mappings 2026-03-12 09:28:26 +01:00
christoph ad3210f150 Home: Add wl-clipboard 2026-03-11 21:05:29 +01:00
christoph afe74b8fa1 Config/Flake: Update flake template 2026-03-11 21:05:21 +01:00
christoph 8f5a9d753f Services/Fileflows: Update to v26.01 2026-03-11 12:30:56 +01:00
christoph d45a9946bb Modules/Impermanence: Persist man cache 2026-03-09 22:48:36 +01:00
christoph c0f8356205 Home: Add binsider/jujutsu/lurk/radare2 2026-03-09 21:42:09 +01:00
christoph 72a8dcb8d5 System: Rename man cache option 2026-03-09 12:16:37 +01:00
christoph da548f10bb Home/Nixtop: Replace light with brightnessctl 2026-03-09 12:16:27 +01:00
christoph 9bfbbc0dc9 Home: Replace helvum with crosspipe 2026-03-09 12:16:04 +01:00
christoph 26ac3a8e02 Home/Nixtop: Replace light with brightnessctl 2026-03-09 12:15:56 +01:00
christoph 632fcc3dab Derivations/Tiddl: Add typer typing-extensions build input 2026-03-09 12:15:45 +01:00
christoph a204951964 Flake: Update lock 2026-03-09 12:15:23 +01:00
christoph 9aea533693 Home: Update CLion EAP version + masssprings version 2026-03-06 22:15:09 +01:00
christoph a07499813d Home: Add masssprings 2026-03-05 10:28:56 +01:00
christoph 6e2a64a50c Home: Pregenerate keepassxc session config 2026-03-05 10:28:26 +01:00
christoph 80d932838f Overlays: Upgrade clion to 2026.1-EAP 2026-03-01 22:37:01 +01:00
christoph 4bed2e7021 Modules/Fish: Add nix run abbr 2026-03-01 22:36:50 +01:00
christoph 75ffcc5c6e Modules/Neovim: Update clangd launch arguments 2026-02-28 18:33:37 +01:00
christoph cb14d79586 Modules/Neovim: Move trouble to bottom 2026-02-28 18:33:27 +01:00
christoph 9b41d5552e Modules/Impermanence: Persist jetbrains state 2026-02-28 11:26:20 +01:00
christoph 3d50b8fea7 Home: Add czkawka 2026-02-27 20:10:14 +01:00
christoph 5aec2aa971 Home/Nixinator: Add clion 2026-02-27 18:34:01 +01:00
christoph b799d86823 Config/Flake: Add cross-compilation template 2026-02-27 12:19:31 +01:00
christoph d505394753 Modules/Bootloader: Reduce configuration limit to 3 to fit in 512MB /boot partition 2026-02-27 12:19:21 +01:00
christoph 06cf86fa20 System/Nixinator: Move to linux stable with nvidia-open 2026-02-26 16:15:19 +01:00
christoph a4272ea92c Modules/Niri: Disable DMS startup dialog 2026-02-26 16:14:53 +01:00
christoph 89739e3af0 Modules/Niri: Disable autostart of some apps 2026-02-26 00:17:26 +01:00
christoph 52a99db8e0 System/Nixinator: Enable 5 LUKS password retries 2026-02-26 00:17:14 +01:00
christoph 7848fb7274 System/Nixinator: Switch to vanilla linux kernel (doesn't work with nvidia-open currently) 2026-02-26 00:17:03 +01:00
christoph 397d1b014c Config/Flake: Update after xorg package set deprecation 2026-02-26 00:16:29 +01:00
christoph 7f1ce57994 Derivations/UnityHub: Update after xorg package set deprecation 2026-02-26 00:16:18 +01:00
christoph a1f495f138 Modules/Niri: Disable dsearch 2026-02-23 13:48:30 +01:00
christoph 4e9003e0c5 Config/Flake: Provide devShells.default instead of devShell 2026-02-22 13:47:44 +01:00
christoph 380e11edb2 Modules/Niri: Add reset-window-height hotkey 2026-02-19 22:47:28 +01:00
christoph a2153c4418 Modules/Niri: Update DMS config 2026-02-17 11:45:36 +01:00
christoph abdcbe2ce9 Modules/Niri: Place blurred wallpaper in overview backdrop 2026-02-17 11:45:24 +01:00
christoph fa286dce16 System/Nixinator: Mark /home as neededForBoot 2026-02-17 11:08:02 +01:00
christoph c4454daab6 Modules/Firefox: Disable vdhcoapp 2026-02-17 11:07:54 +01:00
christoph a03c9d8227 Flake: Update lock 2026-02-17 10:53:26 +01:00
christoph 9db5d91da6 Modules/Niri: Enable danksearch 2026-02-17 10:53:26 +01:00
christoph 72716230ea Modules/Neovim: Make clangd-extensions non-lazy 2026-02-17 10:53:26 +01:00
christoph 2919e797ed System: Harden SSHD and authorize key 2026-02-17 10:53:26 +01:00
christoph 86d669c2ab Modules/Niri: Add colorpicker widget to bar 2026-02-17 10:53:26 +01:00
christoph 77ac5b70b8 Services/Formula12: Init 2026-02-17 10:53:26 +01:00
christoph 54839be395 Config/Flake: Update pkgs.hiPrio to lib.hiPrio 2026-02-17 10:53:26 +01:00
christoph 714e3e0683 Config/Neovim: Add bundler script to generate portable neovim config 2026-02-10 18:11:01 +01:00
christoph a8d7d1e666 Modules/Impermanence: Persist tiddl config 2026-02-10 14:54:51 +01:00
christoph 40bcc14304 Modules/Neovim: Add justfile support 2026-02-09 18:55:41 +01:00
christoph fa5bd0eefd Modules/Neovim: Display whitespace in visual mode 2026-02-09 15:50:46 +01:00
christoph 6182ada581 Modules/Neovim: Add makefile formatter 2026-02-09 15:50:24 +01:00
christoph 4acddcec09 Modules/Firefox: Add godbolt bookmark 2026-02-09 14:00:05 +01:00
christoph 5c14817464 Config/Navi: Add tiddl cheat 2026-02-04 20:23:40 +01:00
christoph 38920bd3d7 Derivations/Tiddle: Add tiddl derivation 2026-02-04 20:16:54 +01:00
christoph b89934d13f Services/Kiwix: Init kiwix at v3.8.1 2026-02-03 11:28:16 +01:00
christoph 734dfcadfc Services/Immich: Update to v2.5.2 2026-02-03 11:28:00 +01:00
christoph 2c959fdc0c Services/Nginx: Expose hytale port 2026-01-29 16:33:45 +01:00
christoph e00c4f49f5 Modules/Impermanence: Persist jellyfin-tui settings 2026-01-26 13:44:42 +01:00
christoph 61131ca598 Home: Add jellyfin-tui 2026-01-26 13:44:34 +01:00
christoph 9c1a39d699 Modules/Firefox: Disable darkmode plugin 2026-01-26 13:19:43 +01:00
christoph 32de6e24b7 Modules/Neovim: Enable autotools-language-server 2026-01-25 23:01:07 +01:00
christoph 78e554cc30 Modules/Impermanence: Persist feishin config 2026-01-25 19:23:15 +01:00
christoph f65617deed Home: Add feishing 2026-01-25 19:14:11 +01:00
christoph aa3a881d58 Derivations/TidalDL: Fix derivation after original repo got nuked 2026-01-24 19:46:42 +01:00
christoph 7f99b73635 System/Nixinator: Enable IPv6 networking 2026-01-24 19:22:11 +01:00
christoph c1360e5c2c System/ServeNix: Enable IPv6 networking 2026-01-24 02:05:37 +01:00
christoph ca9e66bc35 System/ThinkNix: Enable IPv6 networking 2026-01-24 01:32:31 +01:00
christoph eac705bdfb Modules/Docker: Enable IP forwarding + add IPv6 fallback dns 2026-01-24 01:32:14 +01:00
christoph 69beab4812 Lib/Networking: Accept router advertisements 2026-01-24 01:31:54 +01:00
christoph 515110ff7d Modules/Neovim: Enable nixd + alejandra also for headless 2026-01-24 01:31:42 +01:00
christoph 9a9bffd637 Home: Add gnumake 2026-01-19 12:07:38 +01:00
christoph f1b269e3ee Modules/Impermanence: Persist /var/lib/docker 2026-01-18 21:51:44 +01:00
christoph f09dee5ad8 Home/Nixinator: Add zed + vscode 2026-01-18 21:45:47 +01:00
christoph f246eacdb3 Modules/Impermanence: Persist docker build cache, zed config, jellyfin-desktop config 2026-01-18 21:45:36 +01:00
christoph b7e2bba8f0 Update systemmodules/homemodules paths to allow nixd to differentiate between the two 2026-01-18 15:47:51 +01:00
christoph 25ae0f4b85 System: Rename system/modules to system/systemmodules 2026-01-18 15:34:46 +01:00
christoph d12b247368 Home: Rename home/modules to home/homemodules 2026-01-18 15:34:36 +01:00
christoph 25e9128875 System/Nixinator: Reenable restic backup with NFS "hard" 2026-01-18 14:01:30 +01:00
christoph eee28f57fc System: Replace NFS mounts "soft" option with "hard" 2026-01-18 14:00:16 +01:00
christoph ea03e2266f System/Nixinator: Disable restic until I figure out why the repo breaks all the time 2026-01-18 01:19:19 +01:00
christoph 5e422d05c9 System/Nixinator: Disable rootless docker 2026-01-18 01:19:04 +01:00
christoph eaa36cfce2 Modules/Neovim: Update clangd options 2026-01-18 00:01:14 +01:00
christoph 572d0bfe9e Modules/Neovim: Update nvim-treesitter config after update 2026-01-17 23:46:34 +01:00
christoph 385ca27f8c Modules/Niri: Disable workspace scroll on focus change 2026-01-17 23:46:19 +01:00
christoph 4c18fd8c8e Modules/Niri: Update DMS configuration after update 2026-01-17 23:00:44 +01:00
christoph bf0c55669c Derivations/TidalDL: Disable broken derivation for now 2026-01-17 21:59:22 +01:00
christoph 86a5e79079 System/Nixinator: Enable 16G swap 2026-01-17 21:58:24 +01:00
christoph 7d429a4720 Derivations/TidalDL: Update src after the original repository was removed (thank you anna) 2026-01-17 20:29:17 +01:00
christoph 2e9a4b13d1 System: Fix after update 2026-01-17 20:28:40 +01:00
christoph 73eeff9a0e Home: Fix after update 2026-01-17 20:28:34 +01:00
christoph d216a8018d Flake: Update lock 2026-01-17 20:20:57 +01:00
christoph b09d854e50 Home/Nixinator: Disable ollama 2026-01-17 20:20:31 +01:00
christoph ff39dd1df2 Modules/Neovim: Rewrite clangd root_dir expression for neovim v0.11 2026-01-17 19:50:05 +01:00
christoph 98c520e0bd Services/FileFlows: Don't mount MusicVideos into nixinator node 2026-01-17 19:32:45 +01:00
christoph 7e3d3ca4a5 Modules/Impermanence: Persist user docker images/containers 2026-01-17 19:23:35 +01:00
christoph c8a76751f3 System/Nixinator: Remove GAMES disk mount 2026-01-17 19:23:05 +01:00
christoph 12a10bee82 Home: Rename dankMaterialShell to dank-material-shell after flake update 2026-01-17 19:22:45 +01:00
christoph 767309885a Flake: Update lock 2026-01-17 19:22:45 +01:00
christoph 6d360ed782 System/Servenix: Mount nfs share for music videos/recorded shows 2026-01-05 18:02:51 +01:00
christoph ddccd51b5a Services/Box: Update to v0.30.1 2026-01-05 18:02:51 +01:00
christoph 1fef42e5d4 Home: Disable hyprland bc it's too woke 2025-12-26 13:45:40 +01:00
christoph 0d20883f4f Home: Enable hyprland + niri depending on their system module state 2025-12-26 13:07:07 +01:00
christoph cec5ec5493 Modules/Niri: Update DMS default config 2025-12-14 17:16:16 +01:00
christoph 5833dff19e Home: Disable hyprland 2025-12-14 16:14:14 +01:00
christoph 7b4c2df7af Modules/Hyprland: Update to current config format 2025-12-14 16:14:07 +01:00
christoph 1643f30906 System/Nixinator: Switch to Nvidia beta driver since stable is currently broken on kernel 6.18 2025-12-12 19:52:06 +01:00
christoph 79c617cc91 Flake: Update lock 2025-12-12 19:52:06 +01:00
christoph 474a8badf4 Modules/Niri: Init DankMaterialShell config 2025-12-12 19:52:06 +01:00
christoph 17368396cf Services/Box: Init at v0.29.3 2025-12-09 03:26:30 +01:00
58 changed files with 1543 additions and 2229 deletions
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 2.6 MiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 747 KiB

+28 -144
View File
@@ -1,159 +1,43 @@
# NixFlake
# NixOS Configuration
NixOS flake with [Niri](https://github.com/niri-wm/niri), [Waybar](https://github.com/Alexays/Waybar) for a lightweight desktop and [home-manager](https://github.com/nix-community/home-manager) for declarative `~/` configuration.
Modular NixOS configuration, using [Niri](https://github.com/niri-wm/niri) and [Waybar](https://github.com/Alexays/Waybar) for a light desktop.
## Screenshots
![](FastFetch.png)
![](Darwin.png)
![Fastfetch](FastFetch.png)
To install, run `nixos-rebuild` with the `--flake` parameter from the `NixFlake` directory: `nixos-rebuild switch --flake .#nixinator`.
Alternatively, use `nh os switch` or `nh os boot`.
![Neovim](NeoVim.png)
## NixFlake/system
![Darwin](Darwin.png)
Contains all the system configurations.
## Hosts
- There is a common configuration used for all systems: `NixFlake/system/default.nix`
- Every system has its own special configuration: `NixFlake/system/<hostname>/default.nix`
- System modules are located in `NixFlake/system/systemmodules`
- Hosted services are located in `NixFlake/system/services`
| Host | Type | GPU | Features |
|-|-|-|-|
| `nixinator` | Desktop (x86_64) | NVIDIA | [disko](https://github.com/nix-community/disko) partitioning, [lanzaboote](https://github.com/nix-community/lanzaboote) Secure Boot, [impermanence](https://github.com/nix-community/impermanence) opt-in state, [sops-nix](https://github.com/Mic92/sops-nix) secrets |
| `nixtop` | Laptop (x86_64) | Intel | Obsolete trash computer |
| `servenix` | Headless (x86_64) | NVIDIA | Jellyfin, Nextcloud, Gitea, ... |
| `thinknix` | Headless (x86_64) | - | AdGuard DNS, Nginx, ... |
| `darwinix` | macOS (aarch64) | - | nix-darwin with home-manager |
When creating a NixOS configuration inside the `NixFlake/flake.nix` the common configuration is imported.
Because the hostname is propagated to the common configuration, it can import the host-specific config by itself.
## Usage
## NixFlake/home
```bash
# Enter dev shell (provides helper utilities)
nix develop
Contains all the home-manager configurations.
# Rebuild system + user config together
nh os switch
nh os boot
- There is a common configuration for each user: `NixFlake/home/<username>/default.nix`
- There is a configuration for a single system of this user: `NixFlake/home/<username>/<hostname>/default.nix`
- Home-Manager modules are located in `NixFlake/home/homemodules`
# Or with nixos-rebuild
sudo nixos-rebuild switch --flake .#nixinator
```
When creating a NixOS configuration inside the `NixFlake/flake.nix` the common configuration is imported.
Because the hostname is propagated to the common configuration, it can import the host-specific config by itself.
## Info
## NixFlake/derivations
Home-manager runs as a NixOS module (not standalone). A single `nixos-rebuild switch` rebuilds both system and user configuration together.
Contains all the stuff I packaged.
Each derivation is loaded into `NixFlake/derivations/default.nix`.
### Components
## NixFlake/overlays
Per-host config consists of three layers:
1. **Common Config**: `system/default.nix` (NixOS) / `home/christoph/default.nix` (home-manager)
2. **Host Config**: `system/<hostname>/default.nix` (NixOS) / `home/christoph/<hostname>/default.nix` (home-manager)
3. **Hardware**: `system/<hostname>/hardware-configuration.nix`
### Modules
There are two module hierarchies (NixOS and home-manager modules):
```
system/systemmodules/<name>/ home/homemodules/<name>/
- options.nix # declares options - options.nix # declares options
- default.nix # implementation - default.nix # implementation
```
## Files
```
NixFlake/
├── flake.nix # flake entrypoint: inputs, outputs, host definitions
├── flake.lock # flake lockfile
├── shell.nix # dev shell (nix develop)
├── system/ # NixOS system configurations
│ ├── default.nix # global system defaults (all hosts)
│ ├── <hostname>/ # per-host overrides + hardware-config
│ ├── systemmodules/ # reusable system modules
│ └── services/ # OCI container services
├── home/ # home-manager user configuration
│ └── christoph/
│ ├── default.nix # global user defaults
│ ├── <hostname>/ # per-host user overrides
│ └── homemodules/ # reusable home-manager modules
├── lib/ # shared helpers
├── derivations/ # custom packages
├── overlays/ # package overrides
├── config/ # linked dotfiles
└── wallpapers/ # backgrounds
```
## System Modules
| Module | Description |
|--------|-------------|
| `bootloader` | systemd-boot, lanzaboote Secure Boot signing |
| `desktopportal` | xdg-desktop-portal backends (Niri, GTK) |
| `docker` | Docker / podman daemon config |
| `fonts` | System fonts and fontconfig |
| `impermanence` | Opt-in state persistence (wipes `/` on boot) |
| `mime` | MIME type associations |
| `network` | systemd-networkd wired/wireless config |
| `polkit` | Polkit rules for desktop users |
| `sops-nix` | Secrets decryption at boot |
## Home-Manager Modules
### Shell & Terminal
`fish` `terminal` `kitty` `tmux` `paths`
### Editors
`neovim` `vscode` `zed`
### Desktop / WM
`niri` `waybar` `rofi` `color` `fcitx`
### Media
`mpd` `rmpc` `cava` `beets` `jellyfin-tui`
### Browsers
`firefox` `qutebrowser`
### Tools
`git` `ssh` `bat` `btop` `fastfetch` `lazygit` `yazi` `zathura`
## Services
All server services run as OCI containers (podman). Each service is defined in `system/services/<name>.nix`.
| Service | Purpose |
|---------|---------|
| `adguard` | DNS ad blocking |
| `authelia` | SSO |
| `fileflows` | Media processing |
| `gitea` | Git server |
| `immich` | Photo cloud |
| `jellyfin` | Streaming server |
| `kiwix` | Offline mirrors |
| `kopia` | Docker volume backup |
| `nextcloud` | File sync |
| `nginx-proxy-manager` | Reverse proxy with Let's Encrypt |
| `ntfy` | Push notification server |
| `paperless` | Document management |
| `portainer` | Container status monitor |
| `teamspeak` | Voice chat server |
| `tinymediamanager` | Media metadata management |
## Overlays
Package modifications live in `overlays/default.nix`.
## Secrets
Secrets are managed with sops-nix. Public age keys are stored in `flake.nix` under `publicKeys`. Encrypted `.yaml`/`.json` files are referenced via `sops.secrets.<name>`. Decryption happens at activation time.
## Shared Helpers (`lib/`)
| File | Purpose |
|------|---------|
| `nixos.nix` | Host config builders (NixOS + darwin) |
| `modules.nix` | Option helpers |
| `networking.nix` | systemd-networkd config generators |
| `generators.nix` | Lua code generation |
| `containers.nix` | OCI container helpers for services |
| `color.nix` | Color utilities |
| `rofi.nix` | Rofi menu helpers |
Available to all modules as `mylib` (injected via special args).
Contains all overlays, e.g. package version overrides.
The `NixFlake/overlays/default.nix` imports all overlays and all derivations.
It is then imported by the top-level `NixFlake/flake.nix`, to make everything available to the system/home configurations.
+2 -2
View File
@@ -206,12 +206,12 @@ dos2unix <file>
$ file: eza -1
% unix2dos
# Convert line endings to dos format
Convert line endings to dos format
unix2dos <file>
$ file: eza -1
% tiddl
# Download stuff from tidal
Download stuff from tidal
tiddl download --track-quality max --path ~/Downloads/Beet/Albums --videos none url "<url>"
; ===========================
Generated
+95 -963
View File
File diff suppressed because it is too large Load Diff
+1 -18
View File
@@ -47,10 +47,6 @@
nps.url = "github:OleMussmann/nps";
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
nix-alien.url = "github:thiagokokada/nix-alien";
# Don't follow nixpkgs:
@@ -58,16 +54,9 @@
# nix-alien.inputs.nixpkgs.follows = "nixpkgs";
# Niri
# niri.url = "github:sodiboo/niri-flake";
niri.url = "github:epireyn/niri-flake"; # NOTE: Updated fork of sodiboo's
niri.url = "github:sodiboo/niri-flake";
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
elephant.url = "github:abenz1267/elephant";
walker.url = "github:abenz1267/walker";
@@ -97,9 +86,6 @@
# musnix.url = "github:musnix/musnix";
# musnix.inputs.nixpkgs.follows = "nixpkgs";
stylix.url = "github:nix-community/stylix";
stylix.inputs.nixpkgs.follows = "nixpkgs";
# HyTale
hytale-launcher.url = "github:JPyke3/hytale-launcher-nix";
@@ -240,7 +226,6 @@
headless = false;
extraModules = [
inputs.sops-nix.darwinModules.sops
inputs.stylix.darwinModules.stylix
];
};
};
@@ -267,8 +252,6 @@
extraModules =
[
inputs.disko.nixosModules.disko
inputs.stylix.nixosModules.stylix
inputs.nix-gaming.nixosModules.platformOptimizations
]
++ commonModules;
};
+2 -191
View File
@@ -54,7 +54,7 @@ in
cursorSize = 24;
cursorPackage = pkgs.bibata-cursors;
iconTheme = "Papirus-Dark";
iconTheme = "Papirus";
iconPackage = pkgs.papirus-icon-theme;
scheme = "catppuccin-mocha";
@@ -77,193 +77,6 @@ in
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;
niri.enable = nixosConfig.programs.niri.enable;
nnn.enable = false; # Use yazi
@@ -323,11 +136,9 @@ in
# Enable wayland
XDG_SESSION_TYPE = "wayland";
# QT_QPA_PLATFORM = "wayland;xcb";
QT_QPA_PLATFORM = "wayland";
NIXOS_OZONE_WL = "1";
# ELECTRON_OZONE_PLATFORM_HINT = "auto";
SDL_VIDEODRIVER = "wayland"; # Leave unset as gamescope uses xwayland
SDL_VIDEODRIVER = "wayland";
# Run SSH_ASKPASS as GUI, not TTY for Obsidian git
SSH_ASKPASS_REQUIRE = "prefer";
+5 -156
View File
@@ -18,55 +18,6 @@
# because it forces en-US keyboard layout.
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"];
vscode.enable = true;
zed.enable = true;
@@ -78,56 +29,6 @@
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 = {
enable = true;
servers = {
@@ -177,7 +78,6 @@
"opencode"
"opencode-go"
"anthropic"
"lmstudio"
];
formatter = {
nixfmt = {
@@ -296,7 +196,6 @@
plugin = [
"opencode-claude-auth@latest" # https://github.com/griffinmartin/opencode-claude-auth
"@tarquinen/opencode-dcp@latest" # better compacting
# "opencode-lmstudio@0.3.1"
# "@slkiser/opencode-quota"
];
share = "disabled";
@@ -451,43 +350,15 @@
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 = {
flatpak = {
packages = [
"com.valvesoftware.Steam"
"com.valvesoftware.Steam.Utility.steamtinkerlaunch"
"org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/25.08" # TODO: Doesn't work
"org.freedesktop.Platform.VulkanLayer.MangoHud/x86_64/25.08"
"org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/24.08"
"org.freedesktop.Platform.VulkanLayer.MangoHud/x86_64/24.08"
"io.github.Foldex.AdwSteamGtk"
"com.vysp3r.ProtonPlus"
"com.github.Matoking.protontricks"
# "net.davidotek.pupgui2"
"org.prismlauncher.PrismLauncher"
@@ -508,34 +379,12 @@
];
};
"com.github.Matoking.protontricks".Context = {
"com.valvesoftware.Steam".Context = {
filesystems = [
"${config.home.homeDirectory}/.var/app/com.valvesoftware.Steam"
"${config.home.homeDirectory}/Games"
];
};
"com.valvesoftware.Steam" = {
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"
# This is Proton-GE installed from flatpak. ProtonUpQT doesn't require it.
"/var/lib/flatpak/runtime/com.valvesoftware.Steam.CompatibilityTool.Proton-GE"
];
};
+22 -22
View File
@@ -4,28 +4,28 @@
homemodules = {
# TODO: Niri config (needs to modularize niri module)
hyprland = {
keyboard = {
layout = "us";
variant = "altgr-intl";
option = "nodeadkeys";
};
monitors = {
"eDP-1" = {
width = 1920;
height = 1080;
rate = 60;
x = 0;
y = 0;
scale = 1;
};
};
workspaces = {
"eDP-1" = [1 2 3 4 5 6 7 8 9];
};
};
# hyprland = {
# keyboard = {
# layout = "us";
# variant = "altgr-intl";
# option = "nodeadkeys";
# };
#
# monitors = {
# "eDP-1" = {
# width = 1920;
# height = 1080;
# rate = 60;
# x = 0;
# y = 0;
# scale = 1;
# };
# };
#
# workspaces = {
# "eDP-1" = [1 2 3 4 5 6 7 8 9];
# };
# };
waybar.monitors = ["eDP-1"];
};
@@ -15,10 +15,10 @@ in {
options.homemodules.helix = import ./options.nix {inherit lib mylib;};
config = mkIf cfg.enable {
# home.sessionVariables = {
# EDITOR = "hx";
# VISUAL = "hx";
# };
home.sessionVariables = {
EDITOR = "hx";
VISUAL = "hx";
};
programs.helix = {
enable = true;
@@ -40,11 +40,11 @@ in {
# https://docs.helix-editor.com/configuration.html
settings = {
theme = "catppuccin_mocha";
theme = "catppuccin_latte";
editor = {
scrolloff = 10;
mouse = true;
middle-click-paste = true;
mouse = false; # Default true
middle-click-paste = false; # Default true
line-number = "relative";
cursorline = true;
color-modes = true;
@@ -5,12 +5,16 @@
hyprland,
}:
builtins.concatLists [
(lib.optionals hyprland.dunst.enable ["dunst"]) # Notifications
(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}"
"hyprsunset --identity"
"waypaper --restore"
"fcitx5"
# 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"
@@ -22,11 +26,6 @@ builtins.concatLists [
# This is used for example when running systemd commands without root.
# "systemctl --user start hyprpolkitagent.service"
# "${pkgs.kdePackages.polkit-kde-agent-1}/libexec/polkit-kde-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"
"${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"
]
]
@@ -0,0 +1,516 @@
{
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";};
};
};
}
@@ -0,0 +1,180 @@
{
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
;
};
};
};
}
@@ -0,0 +1,36 @@
{
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;
};
};
}
@@ -3,7 +3,7 @@
hyprland,
color,
}: {
enable = true;
enable = !hyprland.caelestia.enable;
settings = {
general = {
@@ -0,0 +1,44 @@
{
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";
}
];
}
@@ -0,0 +1,186 @@
{
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"
];
}
@@ -0,0 +1,28 @@
{
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;
};
}
@@ -5,8 +5,13 @@
}: {
enable = lib.mkEnableOption "Hyprland Window Manager + Compositor";
dunst.enable = lib.mkEnableOption "Enable Dunst notification daemon";
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";
caelestia.enable = lib.mkEnableOption "Enable Caelestia";
keyboard = {
layout = lib.mkOption {
@@ -137,12 +137,8 @@
hyprland.windowrules
];
render = {
cm_enabled = true;
cm_auto_hdr = true;
};
dwindle = {
pseudotile = true;
preserve_split = true;
};
@@ -241,5 +237,123 @@
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 = {};
})
];
}
-4
View File
@@ -15,9 +15,6 @@
./firefox
./fish
./git
./helix
./hyprland
./hyprpanel
./jellyfin-tui
./kitty
./lazygit
@@ -44,7 +41,6 @@
inputs.nixvim.homeModules.nixvim
inputs.textfox.homeManagerModules.default
inputs.walker.homeManagerModules.default
# inputs.stylix.homeModules.stylix
# inputs.direnv-instant.homeModules.direnv-instant
# inputs.niri.homeModules.niri # Imported by system module
# inputs.noctalia.homeModules.default
+16 -16
View File
@@ -63,7 +63,7 @@ in [
# Coding
{
name = "Code";
name = "Coding";
bookmarks = [
(mkBm "C++Ref" "https://en.cppreference.com/w/")
(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")
];
}
# {
# name = "AI";
# bookmarks = [
# (mkBm "Mistral Chat" "https://chat.mistral.ai/chat")
# (mkBm "DeepSeek Chat" "https://chat.deepseek.com/")
# (mkBm "Claude Chat" "https://claude.ai/new")
# (mkBm "ChatGPT" "https://chatgpt.com/")
# (mkBm "DeepWiki" "https://deepwiki.com/")
# "separator"
# (mkBm "Mistral API" "https://console.mistral.ai/usage")
# (mkBm "DeepSeek API" "https://platform.deepseek.com/usage")
# (mkBm "Claude API" "https://console.anthropic.com/usage")
# (mkBm "OpenRouter API" "https://openrouter.ai/activity")
# ];
# }
{
name = "\"AI\"";
bookmarks = [
(mkBm "Mistral Chat" "https://chat.mistral.ai/chat")
(mkBm "DeepSeek Chat" "https://chat.deepseek.com/")
(mkBm "Claude Chat" "https://claude.ai/new")
(mkBm "ChatGPT" "https://chatgpt.com/")
(mkBm "DeepWiki" "https://deepwiki.com/")
"separator"
(mkBm "Mistral API" "https://console.mistral.ai/usage")
(mkBm "DeepSeek API" "https://platform.deepseek.com/usage")
(mkBm "Claude API" "https://console.anthropic.com/usage")
(mkBm "OpenRouter API" "https://openrouter.ai/activity")
];
}
(mkBm "GH" "https://github.com/churl")
(mkBm "GL" "https://gitlab.com/churl")
(mkBm "SO" "https://stackoverflow.com/users/saves/17337508/all")
-4
View File
@@ -221,10 +221,6 @@ in {
ns = "nix shell nixpkgs#";
nr = "nix run";
nps = "nps -e";
# Systemctl
st = "sudo systemctl-tui";
sf = "systemctl --failed";
}
# Abbrs only available if package is installed
-121
View File
@@ -1,121 +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!";
}
];
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
;
};
};
};
}
-6
View File
@@ -26,12 +26,6 @@ in {
"kitty_mod+j" = "next_window";
"kitty_mod+k" = "previous_window";
"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 [
+17 -77
View File
@@ -123,7 +123,6 @@ in {
numpy
matplotlib
requests
pygments
]))
(rWrapper.override {
@@ -158,15 +157,6 @@ in {
viAlias = 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
# colorschemes.catppuccin = {
# enable = true;
@@ -225,16 +215,6 @@ in {
# fg = "#${color.hex.dark.text}";
# 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; [];
@@ -252,7 +232,7 @@ in {
# local renderer = require("neo-tree.ui.renderer")
# local state = manager.get_state("filesystem")
# local window_exists = renderer.window_exists(state)
#
# if window_exists then
# require("neo-tree.sources.filesystem.commands").refresh(state)
# end
@@ -386,7 +366,6 @@ in {
light = "latte";
dark = "mocha";
};
term_colors = true;
# https://github.com/catppuccin/nvim/tree/main?tab=readme-ov-file#integrations
default_integrations = true;
integrations = {
@@ -423,7 +402,6 @@ in {
# custom_bg = "crust";
};
notify = true;
terminal = true;
treesitter = true;
ufo = true;
rainbow_delimiters = true;
@@ -435,15 +413,6 @@ in {
};
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
'';
};
};
@@ -465,7 +434,6 @@ in {
# pkg = inputs.blink-cmp.packages.${system}.default;
pkg = pkgs.vimPlugins.blink-cmp;
lazy = true;
dependencies = [luasnip];
event = ["InsertEnter"];
config = mkDefaultConfig name;
@@ -513,17 +481,13 @@ in {
};
};
snippets = {
preset = "luasnip";
};
fuzzy = {
frecency.enabled = true;
use_proximity = true;
};
sources = {
default = ["lsp" "path" "snippets" "omni"]; # No "buffer"
default = ["lsp" "path" "snippets"]; # No "buffer"
};
cmdline = {
@@ -1007,15 +971,15 @@ in {
{name = "html";} # vscode-langservers-extracted
{name = "just";}
{name = "lua_ls";}
# {
# name = "ltex";
# extraOptions.settings = {
# ltex = {
# checkFrequency = "save";
# enabled = ["markdown" "org" "tex" "latex" "plaintext"];
# };
# };
# }
{
name = "ltex";
extraOptions.settings = {
ltex = {
checkFrequency = "save";
enabled = ["markdown" "org" "tex" "latex" "plaintext"];
};
};
}
# {name = "nil_ls";}
{
name = "nixd";
@@ -1827,7 +1791,6 @@ in {
function(line)
local base = { fg = "#${color.hex.base}", bg = "#${color.hex.base}" }
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 accent = { fg = "#${color.hex.accent}", bg = "#${color.hex.accent}" }
@@ -1853,14 +1816,14 @@ in {
line.sep(sep_start, accent, crust),
tab.number(),
tab.name(),
line.sep(sep_end, crust, mantle),
line.sep(sep_end, crust, base),
hl = hl,
margin = " ",
}
end),
-- Background
hl = mantle,
hl = bg,
}
end
'';
@@ -1969,12 +1932,11 @@ in {
shell = "fish";
direction = "horizontal"; # 'vertical' | 'horizontal' | 'window' | 'float'
auto_scroll = true;
# clear_env = false;
float_opts = {
border = "curved"; # 'single' | 'double' | 'shadow' | 'curved'
width.__raw = "function() return math.floor(vim.o.columns * 0.95) end";
height.__raw = "function() return math.floor(vim.o.lines * 0.85) end";
width = 80;
height = 80;
winblend = 0;
};
};
@@ -2147,40 +2109,18 @@ in {
pkg = pkgs.vimPlugins.vimtex;
init = ''
function()
vim.g.vimtex_mappings_enabled = true
vim.g.vimtex_mappings_enabled = false
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 = {
options = {
"-verbose",
"-shell-escape",
"-file-line-error",
"-synctex=1",
"-interaction=nonstopmode",
"-shell-escape",
},
aux_dir = ".aux",
out_dir = ".out",
}
end
'';
};
+2 -7
View File
@@ -60,13 +60,8 @@ end, {
-- Toggle Rmpc
local Terminal = require("toggleterm.terminal").Terminal
local rmpc = Terminal:new({
cmd = "rmpc",
hidden = true,
close_on_exit = true,
auto_scroll = false,
direction = "float",
})
local rmpc =
Terminal:new({ cmd = "rmpc", hidden = true, close_on_exit = true, auto_scroll = false, direction = "float" })
vim.g.toggle_rmpc = function()
rmpc:toggle()
@@ -20,7 +20,7 @@ if g.neovide then
-- Neovide Fonts
-- o.guifont = "JetBrainsMono Nerd Font Mono:h12:Medium"
o.guifont = "MonoLisa Alt Script:h12:Medium"
o.guifont = "MonoLisa Alt:h12:Medium"
else
-- require("notify").notify("Not running in NeoVide")
end
+7 -12
View File
@@ -340,12 +340,13 @@ _: let
action = "<cmd>lua vim.g.toggle_rmpc()<cr>"; # Defined in extraConfigLua.lua
options.desc = "Show Rmpc";
}
{
mode = "n";
key = "<leader>.";
action = "<cmd>lua vim.g.toggle_failnix()<cr>"; # Defined in extraConfigLua.lua
options.desc = "Show FailNix";
}
# TODO: Something with the environment activation doesn't work
# {
# mode = "n";
# key = "<leader>.";
# action = "<cmd>lua vim.g.toggle_failnix()<cr>"; # Defined in extraConfigLua.lua
# options.desc = "Show FailNix";
# }
{
mode = "n";
key = "<leader>i";
@@ -937,12 +938,6 @@ _: let
action = "<cmd>Trouble diagnostics toggle focus=false win.position=bottom<cr>";
options.desc = "Trouble Diagnostics";
}
{
mode = "n";
key = "<leader>tT";
action = "<cmd>ToggleTerm direction=float<cr>";
options.desc = "Floating Terminal";
}
{
mode = "n";
key = "<leader>tD";
+1 -38
View File
@@ -1,18 +1,3 @@
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 {
-- The first list contains manually expanded snippts
--
@@ -33,7 +18,7 @@ return {
-- \begin{environment}
s(
{ trig = "beg", name = "begin/end", descr = "begin/end environment (generic)" },
"beg",
fmta(
[[
\begin{<>}
@@ -43,28 +28,6 @@ return {
{ 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
}
+36 -190
View File
@@ -74,90 +74,8 @@ 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
systemd.user.services.niri-flake-polkit = lib.mkForce {};
# TODO: Module
systemd.user.services.polkit-gnome-authentication-agent-1 = {
Unit = {
Description = "polkit-gnome-authentication-agent-1";
@@ -181,7 +99,6 @@ in {
# Link theme for flatpak
".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 {} {
Settings = {
use_xdg_state = true;
@@ -218,9 +135,8 @@ in {
};
sessionVariables = {
# QT_QPA_PLATFORMTHEME = "gtk3"; # For Noctalia
# GDK_BACKEND = "wayland,x11"; # For screen sharing
GDK_BACKEND = "wayland";
QT_QPA_PLATFORMTHEME = "gtk3"; # For Noctalia
GDK_BACKEND = "wayland"; # For screen sharing
};
pointerCursor = {
@@ -239,25 +155,14 @@ in {
waypaper
wtype # For elephant
# GTK
# GTK apps (look good and work well with xdg portals)
nautilus # Fallback file chooser used by xdg-desktop-portal-gnome
# Catppuccin-GTK theme
sassc
gtk-engine-murrine
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
alacritty
fuzzel
@@ -265,7 +170,6 @@ in {
};
services = {
# TODO: Module
dunst = {
enable = true;
@@ -301,7 +205,6 @@ in {
};
programs = {
# TODO: Module
walker = {
enable = true;
runAsService = true;
@@ -529,7 +432,7 @@ in {
input = {
focus-follows-mouse = {
enable = true;
max-scroll-amount = "10%"; # Skip partial windows that would scroll the viewport on focus
max-scroll-amount = "0%"; # Skip partial windows that would scroll the viewport on focus
};
keyboard = {
@@ -558,13 +461,13 @@ in {
prefer-no-csd = true; # Disable client-side decorations (e.g. window titlebars)
spawn-at-startup = [
# {
# argv = [
# "ashell"
# "-c"
# "${config.paths.dotfiles}/ashell/config.toml"
# ];
# }
{
argv = [
"ashell"
"-c"
"${config.paths.dotfiles}/ashell/config.toml"
];
}
{
argv = [
"waypaper"
@@ -731,32 +634,6 @@ in {
# 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
{
matches = [
@@ -878,15 +755,14 @@ in {
enable = true;
draw-behind-window = true;
};
background-effect.blur = true;
}
# TODO: Makes entire screen blank and blurred?
# TODO: Missing niri-flake update
# {
# matches = [{namespace = "walker";}];
#
# opacity = 0.0;
# background-effect.blur = true;
# background-effect = {
# blur = true;
# };
# }
];
@@ -897,7 +773,6 @@ in {
# TODO: Move values to config option and set in home/christoph/niri.nix
binds = with config.lib.niri.actions; let
# TODO: Module
sessionMenu = mylib.rofi.mkMenu {
prompt = "Session";
layers = [
@@ -940,38 +815,18 @@ in {
command = "xdg-open ~/Notes/TU/$OPTION0/$OPTION1/$OPTION2";
rofiCmd = "walker -d";
};
screenshotMenu = mylib.rofi.mkMenu {
prompt = "Screenshot";
layers = [
{
# -p: Show pointer
# -d: Write to disk
"󰹑 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 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";
};
# niriMenu = mylib.rofi.mkMenu {
# prompt = "Niri";
# layers = [
# {
# "󰹑 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";
# };
globalMenu = mylib.rofi.mkMenu {
prompt = "Global";
layers = [
@@ -980,11 +835,8 @@ in {
"󰸉 Change Wallpaper" = "${wallpaperMenu}/bin/rofi-menu-Wallpaper";
"󰋗 View Keybindings" = "niri msg action show-hotkey-overlay";
" Open Lecture Material" = "${lecturesMenu}/bin/rofi-menu-Lecture";
"󰹑 Screenshot" = "${screenshotMenu}/bin/rofi-menu-Screenshot";
# "🤪 Pick Symbols" = "walker -m symbols";
" Color Picker" = "hyprpicker --autocopy";
"󰣀 SSH" = "${sshMenu}/bin/rofi-menu-SSH";
" Open Project" = "${projectMenu}/bin/rofi-menu-Project";
# " Niri Actions" = "${niriMenu}/bin/rofi-menu-Niri";
# TODO: What else? SSH menu?
}
];
prompts = ["Select Action"];
@@ -1093,20 +945,14 @@ in {
# Screenshots
"Mod+S" = {
action = spawn "${screenshotMenu}/bin/rofi-menu-Screenshot";
action.screenshot-window = {
write-to-disk = true;
show-pointer = false;
};
hotkey-overlay = {
title = "Screenshot menu.";
title = "Take a screenshot of the current window.";
};
};
# "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" = {
action.screenshot-screen = {
write-to-disk = true;
+2 -6
View File
@@ -97,8 +97,6 @@ in {
radare2
disktui
lldb
inotify-tools
xdotool
# Hardware/Software info
pciutils # lspci
@@ -140,7 +138,6 @@ in {
# Linux exclusive packages (!headless)
(lib.optionals (pkgs.stdenv.isLinux && (!headless)) [
wl-clipboard
asciicam
# Proton
proton-vpn
@@ -178,14 +175,13 @@ in {
# gnome-calendar
# helvum # unmaintained
crosspipe
# nautilus # This is the worst file manager I've ever used
nautilus # Just in case
font-manager # Previews fonts, but doesn't set them
gparted
resources
# celluloid
# cine
# eyedropper
hyprpicker
eyedropper
junction
])
+2 -23
View File
@@ -23,7 +23,7 @@ in {
fixed-center = true;
output = waybar.monitors;
modules-left = ["custom/launcher" "niri/workspaces" "niri/window" "hyprland/workspaces" "hyprland/window"]; # "user"
modules-left = ["custom/launcher" "niri/workspaces" "niri/window"]; # "user"
modules-center = ["mpris"]; # "systemd-failed-units"
modules-right = ["privacy" "pulseaudio" "network" "disk" "cpu" "memory" "clock" "tray"];
@@ -58,27 +58,6 @@ in {
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 = {
format = "<span>󰎇</span> {dynamic}";
format-paused = "<span>{status_icon}</span> <i>{dynamic}</i>";
@@ -200,7 +179,7 @@ in {
border-width: ${border-width};
border-radius: ${border-radius};
border-color: #${color.hex.accent};
background-color: rgba(${color.rgbS.mantle}, 0.7);
background-color: rgba(${color.rgbS.mantle}, 1.0);
}
tooltip {
-5
View File
@@ -270,11 +270,6 @@ in {
run = "remove --permanently";
desc = "Delete selection";
}
{
on = ["g" "m"];
run = ''cd ~/Notes/TU/MastersThesis'';
desc = "Go to MastersThesis";
}
];
};
+5 -5
View File
@@ -14,7 +14,7 @@
experimental-features = nix-command flakes pipe-operators
'';
settings = rec {
settings = {
trusted-users = ["root" username];
auto-optimise-store = true;
@@ -23,16 +23,16 @@
substituters = [
"https://cache.nixos.org"
"https://nix-community.cachix.org"
# "https://comfyui.cachix.org"
# "https://ai.cachix.org"
# "https://app.cachix.org/cache/nixos-rocm"
"https://hyprland.cachix.org"
"https://nix-gaming.cachix.org"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
# "comfyui.cachix.org-1:33mf9VzoIjzVbp0zwj+fT51HG0y31ZTK3nzYZAX0rec="
# "ai.cachix.org-1:N9dzRK+alWwoKXQlnn0H6aUx0lU/mspIoz8hMvGvbbc="
# "nixos-rocm.cachix.org-1:VEpsf7pRIijjd8csKjFNBGzkBqOmw8H9PRmgAq14LnE="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
];
};
+1 -2
View File
@@ -337,8 +337,7 @@ with mylib.networking; {
niri = {
enable = !headless;
package = pkgs.niri;
# package = pkgs.niri-unstable; # TODO: Can remove this again once niri-flake is updated for 25.11
package = pkgs.niri-unstable; # TODO: Can remove this again once niri-flake is updated for 25.11
};
ssh.startAgent = true; # Use gnupg
+1 -38
View File
@@ -12,6 +12,7 @@
./disks.nix
# General services
../services/comfyui.nix
../services/fileflows-node.nix
];
@@ -195,34 +196,6 @@
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 = {
libvirtd = {
enable = true;
@@ -244,25 +217,15 @@
openFirewall = true; # Directly set port in firewall
};
# TODO: Doesn't work with steam flatpak
# gamescope = {
# enable = true;
# enableWsi = true;
# };
ghidra = {
enable = true;
gdb = true;
};
steam.platformOptimizations.enable = true; # From nix-gaming module
virt-manager.enable = true;
};
services = {
# desktopManager.plasma6.enable = true;
# displayManager.gdm.enable = true; # Somehow, Plasma's own manager didn't work
btrfs.autoScrub = {
enable = true;
interval = "weekly";
+6 -3
View File
@@ -121,6 +121,12 @@
fsType = "nfs";
options = ["defaults" "rw" "noatime" "_netdev" "bg" "hard"];
};
"/media/Box" = {
device = "192.168.86.20:/mnt/Seagate4TB/Box";
fsType = "nfs";
options = ["defaults" "rw" "relatime" "_netdev" "bg" "hard"];
};
};
swapDevices = [
@@ -160,9 +166,6 @@
# https://discourse.nixos.org/t/nvidia-open-breaks-hardware-acceleration/58770/3
nvidia-vaapi-driver # Experimental, doesn't work with chromium
# Hdr in games with DXVK_HDR=1 ENABLE_HDR_WSI=1
vulkan-hdr-layer-kwin6
];
};
+5 -8
View File
@@ -19,12 +19,12 @@
../services/formula10.nix
../services/formula11.nix
../services/formula12.nix
# ../services/statespaces.nix
../services/statespaces.nix
# General services
../services/arcane-agent.nix
../services/authelia.nix
../services/bazarr.nix
../services/box.nix
../services/fileflows.nix
../services/gitea.nix
../services/immich.nix
@@ -36,8 +36,8 @@
../services/nginx-proxy-manager.nix
../services/paperless.nix
# ../services/plex.nix # Their monetization strategy is absolutely atrocious
# ../services/portainer-agent.nix
# ../services/pulse-agent-servenix.nix
../services/portainer-agent.nix
../services/pulse-agent-servenix.nix
../services/prowlarr.nix
../services/radarr.nix
../services/sabnzbd-movies.nix
@@ -45,7 +45,7 @@
../services/sonarr.nix
../services/teamspeak.nix
../services/tinymediamanager.nix
# ../services/whats-up-docker.nix
../services/whats-up-docker.nix
];
systemmodules = {
@@ -85,7 +85,6 @@
443 # HTTPS (Nginx Proxy Manager)
3000 # Gitea (runner needs to reach local gitea instance)
3553 # Arcane
30033 # Teamspeak
10080 # Teamspeak
@@ -98,7 +97,6 @@
443 # HTTPS (Nginx Proxy Manager)
3000 # Gitea (runner needs to reach local gitea instance)
3553 # Arcane
5520 # HyTale
@@ -115,7 +113,6 @@
"paperless-nextcloud-sync-password"
"ntfy-auth-users"
"ntfy-auth-tokens"
"arcane-agent-key"
];
};
@@ -69,6 +69,12 @@
fsType = "nfs";
options = ["defaults" "rw" "relatime" "_netdev" "bg" "hard"];
};
"/media/Box" = {
device = "192.168.86.20:/mnt/Seagate4TB/Box";
fsType = "nfs";
options = ["defaults" "rw" "relatime" "_netdev" "bg" "hard"];
};
};
swapDevices = [
-56
View File
@@ -1,56 +0,0 @@
{
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
@@ -1,55 +0,0 @@
{
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"
];
};
};
}
+53
View File
@@ -0,0 +1,53 @@
{
mylib,
config,
lib,
pkgs,
...
}: let
boxVersion = "v0.31.0";
in {
virtualisation.oci-containers.containers = {
box = {
image = "stashapp/stash:${boxVersion}";
autoStart = true;
login = mylib.containers.mkDockerLogin config;
dependsOn = [];
ports = [
# "9999:9999"
];
volumes = [
"/etc/localtime:/etc/localtime:ro"
"/media/Box:/data"
"box_config:/root/.stash"
"box_metadata:/metadata"
"box_cache:/cache"
"box_blobs:/blobs"
"box_generated:/generated"
];
environment = {
PUID = "3000";
PGID = "3000";
TZ = "Europe/Berlin";
STASH_STASH = "/data/";
STASH_GENERATED = "/generated/";
STASH_METADATA = "/metadata/";
STASH_CACHE = "/cache/";
};
extraOptions = [
"--privileged"
"--device=nvidia.com/gpu=all"
"--net=behind-nginx"
];
};
};
}
+79
View File
@@ -0,0 +1,79 @@
{
mylib,
config,
lib,
pkgs,
...
}: let
# comfyuiVersion = "cu128-slim-20260316";
# comfyuiVersion = "cu128-megapak-20260413";
# comfyuiVersion = "cu130-megapak-pt211-20260413";
# comfyuiVersion = "cu130-megapak-pt211-20260508";
comfyuiVersion = "cu130-megapak-pt211-20260604";
in {
virtualisation.oci-containers.containers = {
comfyui = {
image = "yanwk/comfyui-boot:${comfyuiVersion}";
autoStart = false;
login = mylib.containers.mkDockerLogin config;
dependsOn = [];
ports = [
"8188:8188"
];
volumes = let
rootDir = "/home/christoph/Games/ComfyUI";
in [
# cu128-slim / cu128-megapak
# "${rootDir}/storage:/root"
# "${rootDir}/storage-models/models:/root/ComfyUI/models"
# "${rootDir}/storage-models/hf-hub:/root/.cache/huggingface/hub"
# "${rootDir}/storage-models/torch-hub:/root/.cache/torch/hub"
# "${rootDir}/storage-user/input:/root/ComfyUI/input"
# "${rootDir}/storage-user/output:/root/ComfyUI/output"
# "${rootDir}/storage-user/workflows:/root/ComfyUI/user/default/workflows"
# cu130-megapak
"${rootDir}/storage-cache/dot-cache:/root/.cache"
"${rootDir}/storage-cache/dot-config:/root/.config"
"${rootDir}/storage-nodes/dot-local:/root/.local"
"${rootDir}/storage-nodes/comfy-extras:/root/ComfyUI/comfy_extras"
"${rootDir}/storage-nodes/custom_nodes:/root/ComfyUI/custom_nodes"
"${rootDir}/storage-models/models:/root/ComfyUI/models"
"${rootDir}/storage-models/hf-hub:/root/.cache/huggingface/hub"
"${rootDir}/storage-models/torch-hub:/root/.cache/torch/hub"
"${rootDir}/storage-user/input:/root/ComfyUI/input"
"${rootDir}/storage-user/output:/root/ComfyUI/output"
"${rootDir}/storage-user/user-profile:/root/ComfyUI/user"
"${rootDir}/storage-user/user-scripts:/root/user-scripts"
];
environment = {
PUID = "1000";
PGID = "1000";
TZ = "Europe/Berlin";
# https://github.com/Comfy-Org/ComfyUI/blob/master/comfy/cli_args.py
CLI_ARGS = lib.concatStringsSep " " [
# "--cache-none" # Leads to single nodes being executed multiple times for each output connection :/
# "--lowvram"
# "--disable-smart-memory"
# "--disable-pinned-memory"
# "--disable-dynamic-vram"
# "--disable-xformers"
# "--use-sage-attention" # Crashes
# "--reserve-vram 1" # (1 or 2) => Assume less vram is available to mitigate OOM due to wrong vram estimation
];
};
extraOptions = [
"--privileged"
"--device=nvidia.com/gpu=all"
# "--net=behind-nginx"
];
};
};
}
+2 -2
View File
@@ -5,8 +5,8 @@
pkgs,
...
}: let
giteaVersion = "1.27.0";
runnerVersion = "0.6.1";
giteaVersion = "1.24.2";
runnerVersion = "0.2.12";
in {
users = {
groups.git = {};
+1 -1
View File
@@ -7,7 +7,7 @@
}: let
vectorchordVersion = "0.4.2";
pgvectorsVersion = "0.2.0";
immichVersion = "3.0.1-cuda";
immichVersion = "2.5.2";
in {
virtualisation.oci-containers.containers = {
immich-database = {
+2 -13
View File
@@ -30,24 +30,20 @@ in {
volumes = let
# TODO: Setup on ThinkNix: adguard_config, adguard_work, portainer_config
backup = [
"arcane-agent_data"
"authelia_config"
"bazarr_config"
"fileflows_data"
"formula10_cache"
"formula10_data"
"formula11_pb_data"
"formula12_pb_data"
"gitea-db_data"
"gitea_data"
"gitea-runner_config"
"gitea-runner_data"
"gitea_data"
"heidi_config"
"immich-database_data"
"immich_config"
"immich_data"
"immich_machine-learning"
"jellyfin_config"
"kopia_config"
"nextcloud-db_data"
"nextcloud_data"
"nginx_config"
@@ -55,13 +51,6 @@ in {
"nginx_snippets"
"paperless-postgres_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";
+1 -1
View File
@@ -5,7 +5,7 @@
pkgs,
...
}: let
nextcloudVersion = "33.0.5-apache";
nextcloudVersion = "31.0.6-apache";
in {
systemd.services.nextcloud-cron = {
enable = true;
+1 -1
View File
@@ -5,7 +5,7 @@
pkgs,
...
}: let
teamspeakVersion = "6.0.0-beta11";
teamspeakVersion = "6.0.0-beta10";
in {
virtualisation.oci-containers.containers = {
teamspeak = {
-1
View File
@@ -30,7 +30,6 @@ in {
# Sans/Serif fonts
noto-fonts
noto-fonts-color-emoji
noto-fonts-cjk-serif
noto-fonts-cjk-sans
lxgw-wenkai
];
@@ -70,6 +70,7 @@ in {
(mkRDir "/usr/systemd-placeholder" m755)
# TODO: Why does this use the mandb user?
# TODO: Why does this apparently conflict with comfyui-nix?
# (mkDir "mandb" "/var/cache/man" m755)
# (mkRDir "/var/cache/restic-backups-synology" m755)
+6 -9
View File
@@ -17,20 +17,18 @@ 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]
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-user-password: ENC[AES256_GCM,data:W8BdbqI=,iv:JoH0ig8X+h/+bmQvzWnDo8yu1SZyE8fCwTLyyZHmDAI=,tag:foH5Es/5CBOysD4JjQzDdA==,type:str]
kopia-user-password: ENC[AES256_GCM,data:jPWeru4e2w9qzA==,iv:WpZS3Qmx8v12v3q1Lq1YrPnWw7BY0FhxurXYuaOdfwA=,tag:+8bQAnHRh55rUMdyoK6N8w==,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-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]
#
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:
age:
- enc: |
- recipient: age14ph8vrj657e7s35d60xehzuq46t9zd6pzcm6pw4jragzrvf6xs9s77usnm
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBWSVRhVDREMXduZElrRklE
R2s3Y081TGVTOCtKWVVWN0RLb0ZIT3lmMTNZCjFaNmRqb2hRVXFDSU12dFhDNmJo
@@ -38,8 +36,7 @@ sops:
SURMTmh1TGIrRmtENzc0Sk4rNFJNUE0KOpjN6jkEHO+lvdWdp4P++r9SNSPWaT0h
FAbbvZZ/EdIk/njLEcayFN7B4ftTcD/f4XJZiyosilZnIkk76bMOHA==
-----END AGE ENCRYPTED FILE-----
recipient: age14ph8vrj657e7s35d60xehzuq46t9zd6pzcm6pw4jragzrvf6xs9s77usnm
lastmodified: "2026-07-02T19:27:51Z"
mac: ENC[AES256_GCM,data:IkpzDK4F1pEoGx1WyG8ksgMFuEa2h9KeF3m3PzM8KQkWo9iVt3jJn80jHEzWAm8riWIbo7fRkxyRetlSFTZf+MrByotgkWVVx6dMIVNYAOcg2IOK3s4NnX0L65MjbfWGQp/d27QzzEbd14WyklMWm2UO3ei82tF+UKYUEFJ2BWk=,iv:8LimsncylU+HhvVKNnjfyqZskZA72FQe92C4VrNWyQ0=,tag:L6CEno9m3ZncOskjZibq+Q==,type:str]
lastmodified: "2026-04-17T12:17:23Z"
mac: ENC[AES256_GCM,data:YEHM2ebPhV6ycj8OxNy7mOlpy6VrvV6Gz9sHEWc9alnrwZ0qLzp5m4AUMuWBSfFTMtVgeAFdJ8Nf4X5b+AzQXahlHWJVAwiMiE8KqhRLGWF21OyDN2aIdwd4ue2vYyPDGYP43mC+19v9SW5isF901G28e5Q9SxmGJjNOkiVuiCI=,iv:WFvCN/7YGQnCSqjXBkkfiuPoNQ37bpxHx9jreZDc3EM=,tag:AUjFpbJ6//eScnn6P2QMgA==,type:str]
unencrypted_suffix: _unencrypted
version: 3.13.1
version: 3.12.2
+5 -7
View File
@@ -16,12 +16,11 @@
# General services
../services/adguard.nix
../services/arcane.nix
../services/nginx-proxy-manager.nix
# ../services/portainer.nix
# ../services/pulse.nix
# ../services/pulse-agent-thinknix.nix
# ../services/whats-up-docker.nix
../services/portainer.nix
../services/pulse.nix
../services/pulse-agent-thinknix.nix
../services/whats-up-docker.nix
];
systemmodules = {
@@ -68,8 +67,7 @@
};
sops-nix.secrets.${username} = [
"arcane-encryption-key"
"arcane-jwt-secret"
# "wireguard-vps-private-key"
];
};