Author SHA1 Message Date
ari df32d14ae8 Proper migration to new nvidia docker over cdi 2025-01-13 11:54:57 -05:00
ari d9be46e935 - Removed hyprland
- Upgraded everything
- using ssddm
2025-01-11 15:02:51 -05:00
ari 1bf5f5c4ed latest 2025-01-02 10:32:40 -05:00
ari 6c867a2af2 added ghosty + sparrow 2024-12-28 14:45:26 -05:00
ari 0b4afe3649 universal dockge 2024-12-27 14:12:40 -05:00
ari 71efa635fc cleanining up coral tpu location 2024-12-26 15:55:42 -05:00
ari bf62802ffd cleaning stuff up 2024-12-26 15:45:22 -05:00
ari 12f53af7d8 fixed minipc2 & added scrypted backups 2024-12-26 15:29:24 -05:00
ari de1311fbf9 latest work with timers 2024-12-26 15:16:00 -05:00
ari 53ed7ca778 Latest 2024-12-25 13:33:46 -05:00
ari d08adc5dfd Added tailnet 2024-12-25 12:53:31 -05:00
ari b18b4a4453 All 2024-12-25 12:52:05 -05:00
ari d055a2972d Fix up 2024-12-12 09:04:41 -05:00
ari 69a7ec7da7 Latest 2024-12-11 21:09:00 -05:00
ari 89e0f68275 backups 2024-12-11 14:02:34 -05:00
ari 06f2ce4136 using zelij 2024-12-11 09:37:42 -05:00
ari 888fc8a629 Working bigbox nvidia 2024-12-08 15:04:49 -05:00
ari a4e437baf1 common amd & nvidia 2024-12-08 14:24:44 -05:00
ari d55656c07c stable bigbox 2024-12-07 20:43:29 -05:00
ari 86ef02473e complete update 2024-12-03 20:29:10 -05:00
ari ff137d6ca1 NixOS 24.11 2024-12-03 12:45:35 -05:00
ari b70c1fa751 Updated locks 2024-11-23 13:47:11 -05:00
ari 5358bd35f8 Added flatpak management with nix
Really trying to make bigbox not sleep
2024-11-23 10:33:46 -05:00
ari 98860419c7 Clean up 2024-11-17 14:35:37 -05:00
ari 53fbd3300f added exporters 2024-11-11 16:06:43 -05:00
ari 5eaed26ddd Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-11-11 15:14:24 -05:00
ari 7892912f4d container exporters 2024-11-11 15:13:16 -05:00
ari 93bb0c3f3a latest 2024-11-11 15:12:44 -05:00
ari 382628f233 dockge + upgrade 2024-11-11 09:52:34 -05:00
ari c6548fb88c dockge 2024-11-09 11:20:23 -05:00
ari 52ae9d193b refactor services 2024-11-09 11:12:19 -05:00
ari a27d701bac k8s cluster working & update 2024-11-08 22:22:09 -05:00
ari f703c93d3a Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-10-31 07:08:34 -04:00
ari 988190eefe internal changes 2024-10-31 07:04:17 -04:00
ari 3f1b8a2b3e Making sure that k8s is properly distributed 2024-10-30 17:10:38 -04:00
ari 9f120c4352 Making sure the port is open 2024-10-27 23:47:17 -04:00
ari bbb955f1c8 Initial k8s build 2024-10-27 23:17:58 -04:00
ari fd66b79b0b updated versions 2024-10-27 22:17:48 -04:00
ari c7e04cd568 fixed skyg command + added cosmic icons 2024-10-27 21:51:55 -04:00
ari 0e9442d116 Clean up 2024-10-27 21:13:06 -04:00
ari a320dec5ff K8S 2024-10-27 21:09:46 -04:00
ari 73e98c99f3 Clean up 2024-10-27 17:36:15 -04:00
ari 1268eb4db4 updated versions 2024-10-27 17:25:53 -04:00
ari bfbe06e81c updated versions 2024-10-25 11:09:21 -04:00
ari c38597d137 latest work 2024-10-22 09:46:41 -04:00
ari 587c0d7b59 arrs 2024-10-12 23:17:46 -04:00
ari 1fe4cbb045 added chromium + updated nix stable 2024-10-10 11:46:59 -04:00
ari 043e1b8568 removed results 2024-10-09 09:46:40 -04:00
ari 965583c2d8 fixed aliases for git + took out pwr management into a module 2024-10-09 09:44:29 -04:00
ari 38b07b9929 Stable qemu 2024-10-06 15:49:02 -04:00
ari 25d9e9a52c qemu + enabled refactor 2024-10-03 16:32:41 -04:00
ari 61997ac276 Added script for windows 2024-10-01 15:51:04 -04:00
ari d6ab65dd0d Using x11 plasma as default 2024-10-01 15:31:07 -04:00
ari 72f872e2da Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-10-01 15:02:46 -04:00
ari 6195a9e93f Latest changes 2024-10-01 15:02:36 -04:00
ari 101044ca0e Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-09-28 15:47:03 -04:00
ari 63d8298e17 added prowlarr 2024-09-28 12:59:15 -04:00
ari a4aa3da89e Latest 2024-09-26 21:15:10 -04:00
ari c651ec9d31 added hyprland's cachnix 2024-09-25 11:04:29 -04:00
ari 99178584af added update flake 2024-09-25 11:04:13 -04:00
ari c0831c51b3 Better utility 2024-09-25 10:56:49 -04:00
ari c1fa9867b5 Correct mapping for monitors 2024-09-24 16:51:26 -04:00
ari 7e7ea16cd6 Latest work 2024-09-24 16:11:38 -04:00
ari c60b9cef81 Better logs 2024-09-23 08:49:25 -04:00
ari 6766fd5de2 Prefix clean up 2024-09-23 08:34:46 -04:00
ari d475468865 Updated cli helpers 2024-09-22 18:02:13 -04:00
ari 73be72a937 Cleaning up nix shell 2024-09-22 17:45:24 -04:00
ari a8a45e133f Disabled autosuspend for bigbox and enabled login 2024-09-22 17:34:57 -04:00
ari c2a304024d Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-09-22 17:16:20 -04:00
ari 0b2b17a64f Added Desktop to bigbox 2024-09-22 17:16:06 -04:00
ari b9c42c7536 Clean up of envrc 2024-09-22 17:15:28 -04:00
ari f3fa1b54a4 clean up + straight up flakes 2024-09-22 17:04:03 -04:00
ari d1c3715c60 Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-09-22 16:47:40 -04:00
ari f6337b2d8c new keybinds 2024-09-22 16:47:30 -04:00
ari 1fc2d86312 Added sunshine 2024-09-22 12:46:54 -04:00
ari 3ed9d26adc Fixes for sound + using hyprland as the default 2024-09-18 09:21:02 -04:00
ari 89ed7207c1 Portals working right on hyprland 2024-09-16 12:06:21 -04:00
ari 8609a4d16f Trying to fix pipewire on wayland 2024-09-16 09:10:17 -04:00
ari 8bb9c6586a Added cosmic 2024-09-16 08:50:01 -04:00
ari 5eebe93f72 Added cosmic 2024-09-15 14:46:12 -04:00
ari 8913c706c9 Fixed noexec issue 2024-09-11 08:56:34 -04:00
ari fc575ea414 latest work 2024-09-11 08:47:58 -04:00
ari 2105694101 Clean ups 2024-09-10 09:20:29 -04:00
ari 2473e1a1bc Added hyprspace 2024-09-07 15:56:43 -04:00
ari b937743dba Using hyprland from flake 2024-09-07 15:49:53 -04:00
ari 4b06428bd0 Updated Flakes 2024-09-06 12:22:58 -04:00
ari 7f7a3f3bd8 Fixing portal issues on hyprctl 2024-09-06 12:07:03 -04:00
ari 999e42207d clean ups 2024-09-06 09:20:25 -04:00
ari c6a96b423a desktop 2024-09-05 17:05:02 -04:00
ari 4c7463eddf Modules 2024-09-04 11:24:49 -04:00
ari 15494d9974 pulled out crypto 2024-09-04 11:24:05 -04:00
ari 91e8109117 Initial nwg-shell 2024-08-30 22:48:44 -04:00
ari 8931401375 Initial nwg-shell 2024-08-30 22:48:04 -04:00
ari 752ba68599 noop safe nwg-shell change 2024-08-30 22:38:16 -04:00
ari bc5adf74ff Cleaned up sumo + splitting hyprland configs 2024-08-30 22:34:54 -04:00
ari 4ecf8b50b7 Added sibli tools 2024-08-30 13:53:41 -04:00
ari 9f984247ac Fixing monitors 2024-08-27 17:26:12 -04:00
ari 4a7cdd8548 Monitor setup 2024-08-26 14:26:31 -04:00
ari 02a5ee3ec3 Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-08-26 11:04:14 -04:00
ari 5a89b7c485 adjusted volume control 2024-08-26 11:03:55 -04:00
ari 895fd94b77 Merge branch 'main' of https://github.com/asosnovsky/nixos-setup 2024-08-26 10:36:38 -04:00
ari 524f694ab0 Upgraded Nixos 2024-08-26 09:56:21 -04:00
ari d681937c89 Final touches on hyprland 2024-08-26 08:52:25 -04:00
ari 52043e70ce Added aliases 2024-08-25 21:59:28 -04:00
ari 073deff2d5 Added vim plugins 2024-08-25 21:37:33 -04:00
ari 78d10d8e90 added obs 2024-08-25 12:14:54 -04:00
ari 156aa066c6 coffe 2024-08-25 12:12:46 -04:00
ari 1ebba4e639 added some nice touches 2024-08-25 12:07:12 -04:00
ari 45fd949e09 Various hyprland goodies + switch to gdm 2024-08-25 11:58:09 -04:00
ari c69a2c51c3 hyprland configs 2024-08-23 17:26:48 -04:00
ari ec5c4e2ef5 clean up + brightness ctl 2024-08-23 17:01:47 -04:00
ari 19d0edaed1 clean up 2024-08-23 16:38:19 -04:00
ari a094be6133 configuring hyprland + gtk 2024-08-23 15:10:39 -04:00
ari 80f5faaed2 Added gbar flake 2024-08-23 13:13:37 -04:00
ari ea744f2530 backroung hypr process 2024-08-23 13:00:09 -04:00
ari f659558746 handling wallpapers 2024-08-23 12:59:55 -04:00
ari e39aff406b Updated hyprland 2024-08-23 12:27:47 -04:00
ari 2645e0dceb Clean up 2024-08-23 11:46:06 -04:00
ari 50a49967e0 Enabled hyprland 2024-08-23 10:40:42 -04:00
ari ba3dc73e0c Added alacrity to home-manager 2024-08-23 10:13:20 -04:00
ari 35b0de17a9 added alacricty.settings to home-manager 2024-08-23 10:07:20 -04:00
ari 831192ee63 Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-08-23 09:59:34 -04:00
ari 5e2f64bfe2 Latest work on jellyfin 2024-08-23 09:59:24 -04:00
ari 1cfb7410a8 Merge branch 'main' of https://github.com/asosnovsky/nixos-setup 2024-08-21 14:54:51 -04:00
ari 26dfd6ddc0 Added latest work for cloak 2024-08-21 14:53:38 -04:00
ari 27b2b8b96a Correct folders for jellyfin 2024-08-21 09:33:51 -04:00
ari d26a481685 Forgot adding to defaults 2024-08-20 21:14:56 -04:00
ari 6ddf1846f6 Added special folders + more jellyfin stuff 2024-08-20 21:13:54 -04:00
ari dc8e0b81d9 Added jellyfin setup 2024-08-20 20:57:29 -04:00
ari 25c575b534 using same network drives for laptop 2024-08-20 17:13:08 -04:00
ari 9bb704fd0c Added nfs exports to terra1 2024-08-20 17:09:31 -04:00
ari 0601780ab8 Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-08-19 12:48:29 -04:00
ari 183e2dff20 Removed firewall from minipc2 2024-08-19 12:48:11 -04:00
ari 725ad8289e Added firewall rules 2024-08-19 12:45:14 -04:00
ari d41e5e7594 Firewall rules 2024-08-19 11:17:37 -04:00
Ari Sosnovsky 3acdcd8d53 hiding sound stuff 2024-08-19 11:03:55 -04:00
Ari Sosnovsky e1087fcdcd moved bluetooth out 2024-08-19 11:01:11 -04:00
Ari Sosnovsky 9228a1ae40 More hiding of desktop 2024-08-19 10:55:29 -04:00
Ari Sosnovsky 3064d53017 disabling desktop 2024-08-19 10:53:33 -04:00
ari 67dd88c179 Added more swap 2024-08-18 21:43:05 -04:00
ari 99dc92947c renamed skyg folder to core 2024-08-18 21:39:19 -04:00
ari ebb321f671 Name refactor + move 2024-08-18 21:36:32 -04:00
ari 3de38b8c94 moved all os stuff to new config 2024-08-18 21:29:27 -04:00
ari 1d0188e199 Moved over containers 2024-08-18 21:27:16 -04:00
ari a86fd67f5a Moved container config 2024-08-18 21:19:08 -04:00
ari 818e0f3ff3 Moved firewall & networking 2024-08-18 21:11:59 -04:00
ari 4b03beb264 Moved openssh 2024-08-18 21:06:19 -04:00
ari 723dd77cc3 Moved hw to new form 2024-08-18 21:01:42 -04:00
ari 80305ec8d0 Moved users to new form 2024-08-18 20:59:51 -04:00
ari 64ca5b8641 Added user 2024-08-18 20:57:03 -04:00
ari 7e09db3801 Fonts refactor 2024-08-18 20:54:45 -04:00
ari 2ba65659e4 Moving fonts 2024-08-18 20:51:00 -04:00
ari 4a87f10d15 Moving fonts 2024-08-18 20:50:52 -04:00
ari 93d31e99b0 Moved some os settings to new setup 2024-08-18 16:46:02 -04:00
ari 3bfe90e7ef Partially migrated over network drives 2024-08-17 21:25:06 -04:00
ari 5fb36fc027 Deprecated old desktop config 2024-08-17 21:20:53 -04:00
ari 0adae1cea9 Moved over hyprland 2024-08-17 21:19:38 -04:00
ari 41f5bc048d Refactor of desktop 2024-08-17 21:13:12 -04:00
ari 690af77bfa CLena up 2024-08-12 11:27:29 -04:00
ari d3702f3c65 Added cloaky 2024-08-12 11:14:55 -04:00
ari ab0f1721cc Fixed hm 2024-08-12 11:00:33 -04:00
ari bcc25860b7 Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-08-12 09:15:05 -04:00
ari 115f0e8d34 Removed lix & rofi-bw 2024-08-12 09:14:44 -04:00
ari 51cae96868 added slack 2024-08-12 08:55:10 -04:00
ari 27ffc79f23 Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-08-11 20:48:52 -04:00
ari a986b4f0d0 Accounting for last changes 2024-08-11 20:48:35 -04:00
ari 8abf744687 Moved custom services & hardware hacks to nixos root folder 2024-08-11 10:34:24 -04:00
ari 4e25515b14 Added comments 2024-08-10 22:41:20 -04:00
ari 8f8d23fb62 more refactoring of home manager 2024-08-10 22:39:54 -04:00
ari afaacd003d moved hm to home/ 2024-08-10 22:32:57 -04:00
ari c56f06bbfb Decoupled home-manager 2024-08-10 13:01:56 -04:00
ari 63bdca6f54 homemanager support v0 2024-08-10 12:57:23 -04:00
ari 73013afe1c Added home manager configs 2024-08-09 22:00:37 -04:00
ari 66a876ee72 Moved home-manager work to a place
I can use with other linuxes
2024-08-09 21:54:40 -04:00
ari 618429e3c0 moving home-manager stuff to one sharable file 2024-08-09 21:40:07 -04:00
ari c1d43499cb Setting shared hostname 2024-08-09 15:08:22 -04:00
ari 2e40767a28 refactor nix module 2024-08-09 15:02:44 -04:00
ari 1fcffc0650 Moved all nix configs 2024-08-09 14:57:03 -04:00
ari ad7fdad2c6 Refactored macos stuff 2024-08-09 14:41:09 -04:00
ari b6cc6828b6 refactor of user 2024-08-09 13:42:20 -04:00
ari 6ba046dd50 refactor of user 2024-08-09 13:20:45 -04:00
ari e7d22b40ff refactor of user 2024-08-09 13:20:30 -04:00
ari a81a8ac57b added core config 2024-08-09 12:32:30 -04:00
ari dbc538f5d7 Removed cosmic 2024-08-09 12:08:07 -04:00
ari 5c07f52458 cosmic 2024-08-08 13:10:20 -04:00
ari 1fed6c2cbd build scripts 2024-08-08 11:19:50 -04:00
ari 2d1dc6a721 removing remote build + updating flakes 2024-08-08 08:58:45 -04:00
ari efaac96dae Updated remote builder 2024-08-07 20:16:52 -04:00
ari fad72915db clean up 2024-08-07 20:14:32 -04:00
ari 69327aec6a Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-08-07 20:08:27 -04:00
ari 89f072318d Added nvd to system packages 2024-08-07 20:08:14 -04:00
ari 9f2ffb683f Update hard 2024-08-06 10:35:10 -04:00
ari ba725c936f Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-08-06 00:09:11 -04:00
ari f37054422a Added ollama cli tool 2024-08-06 00:08:58 -04:00
ari 9c4d0c0ea3 Removed display link drivers 2024-08-05 11:16:44 -04:00
ari 2bcf8b7964 added fws hl 2024-08-04 21:16:39 -04:00
ari f1c5d1998e added scrypted to minipc2 2024-08-04 16:53:25 -04:00
ari ea5d67a0d0 Functioning unstable bigbox1 2024-08-02 17:21:32 -04:00
ari 0c2200c5b8 clean up for unstable 2024-08-02 13:52:50 -04:00
ari 699d47f4bd Less overhead for new homelab devices 2024-08-02 13:45:23 -04:00
ari 4cc3978057 Partial clean up 2024-08-02 13:15:40 -04:00
ari a94c5e77e6 using older config 2024-08-02 13:06:22 -04:00
ari 2e9254f4df added lix + stable bigbox 2024-08-02 12:50:48 -04:00
ari d57c8c761c Removed fan control for now 2024-07-31 14:58:32 -04:00
ari 144a822090 Added cfg values 2024-07-31 14:45:29 -04:00
ari eba5869d86 Added fancontrol 2024-07-31 14:38:01 -04:00
ari fa60e00405 homelab.nix.remote-builder.enable = true; 2024-07-31 12:24:30 -04:00
ari 4b58c5c909 Added remote build options 2024-07-31 12:22:37 -04:00
ari b80f189128 Added specific configs from arnarg/config 2024-07-31 12:11:08 -04:00
ari b313d7a4f8 Updates to config for terra 2024-07-31 12:07:00 -04:00
ari 47638d5f8b Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-07-31 11:51:18 -04:00
ari fe8f38c42b Added hl-terra1 complete config 2024-07-31 11:51:04 -04:00
ari 6f980b2da3 Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-07-31 11:31:51 -04:00
ari 6a9b8b080f Updated local config 2024-07-31 11:31:37 -04:00
Ari Sosnovsky c33c4de555 Updated cache builds 2024-07-31 11:30:46 -04:00
Ari Sosnovsky 8d25a30e92 Added main flake entry for terra1 2024-07-31 11:18:04 -04:00
Ari Sosnovsky aeed937874 Removing micromamba & adding terra1 2024-07-31 11:15:44 -04:00
ari 753f21b3fe Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-07-29 17:10:26 -04:00
ari f51edc269e Added steam to bigbox 2024-07-29 17:10:14 -04:00
ari a52b5f6e84 Added opengl support 2024-07-29 16:59:03 -04:00
ari a2e25184c3 Updated flakes 2024-07-29 16:51:12 -04:00
ari 3429f9511f Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-07-27 12:47:15 -04:00
ari b2ae8a2df6 Added volume to db 2024-07-27 12:47:04 -04:00
ari 85068ac330 new rules 2024-07-27 12:21:43 -04:00
ari 33a27faf92 Added Coral TPU Dev rules 2024-07-27 12:15:36 -04:00
ari a9b4fb2113 Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-07-27 12:10:44 -04:00
Ari Sosnovsky 24babe7a39 Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-07-26 17:29:17 -04:00
Ari Sosnovsky 3e6f43894a Common bigbox 2024-07-26 17:29:07 -04:00
ari 746cfd2571 added hwd for minipc2 2024-07-26 17:20:08 -04:00
ari 7df8264f82 Using labels for mounting 2024-07-26 17:15:20 -04:00
Ari Sosnovsky 060f0ff85d generalized hlservice 2024-07-26 17:04:13 -04:00
ari 218b50f185 latest 2024-07-26 16:24:07 -04:00
ari 2c61cdcd7c Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-07-26 10:55:24 -04:00
ari 99c220cba5 Added myevents setup 2024-07-26 10:55:13 -04:00
ari baeffc96cc Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-07-26 10:34:13 -04:00
ari 77ed5e05bb latest 2024-07-26 10:34:06 -04:00
ari a8550d41be actually using the nix caches 2024-07-26 10:33:17 -04:00
ari 2ad51c3815 Added docker registry to minipc1 2024-07-26 10:22:41 -04:00
ari 96f1610972 Added hostname to prompt 2024-07-19 02:49:51 -04:00
ari 0d9d0014f8 Everything is working on the bigbox 2024-07-19 02:20:11 -04:00
ari 1f8639dda2 More trials 2024-07-18 15:34:28 -04:00
ari 1c1cfb2f0c bigbox no use common hwd 2024-07-18 15:31:16 -04:00
ari 7c6961781d using unstable with bigbox 2024-07-18 15:30:26 -04:00
ari 9831885daa unstable override 2024-07-18 13:51:02 -04:00
ari 7901352e9a Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-07-18 13:35:00 -04:00
ari 78e86fe724 added a way to use unstable 2024-07-18 13:34:47 -04:00
ari 26aae5aa3d Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-07-18 13:26:11 -04:00
ari b6b02e5172 unstable ollama 2024-07-18 13:25:15 -04:00
ari dab5d4f899 Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-07-18 11:24:23 -04:00
ari 8b906e666f working exporters 2024-07-18 11:22:40 -04:00
ari 0482d34f4b clean up 2024-07-18 11:15:24 -04:00
ari a292195d20 using mergeset 2024-07-18 09:41:05 -04:00
ari 548b09877c added exporters and trying to use mergeset 2024-07-18 09:28:51 -04:00
ari dcad5a72eb Using auto for piper + enable cuda on root level 2024-07-18 09:12:33 -04:00
ari d2ae6a2cdf Added wyoming 2024-07-17 20:00:02 -04:00
ari 7bd24844e5 Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-07-17 19:52:50 -04:00
ari 6e8a3139a4 clean up 2024-07-17 19:48:10 -04:00
Ari Sosnovsky af4f914780 Added homelab services 2024-07-17 15:50:34 -04:00
ari 8d10f73549 Merge branch 'main' of https://github.com/asosnovsky/nixos-setup 2024-07-17 15:00:50 -04:00
ari 3268e02cd7 latest 2024-07-17 14:51:08 -04:00
Ari Sosnovsky 0456dac1e2 Optional dev pkgs:wq 2024-07-17 14:31:45 -04:00
ari 943e3bc2ac Wokring Version 2024-07-17 14:26:00 -04:00
Ari Sosnovsky 1d0791e152 Added minipc1 2024-07-17 12:12:40 -04:00
ari 28a01afba7 Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-07-17 11:58:40 -04:00
ari 9c00e8711f Clean up 2024-07-17 11:57:16 -04:00
Ari Sosnovsky c8e16c5ea6 correcting typo 2024-07-16 14:44:25 -04:00
ari edfd57aad0 Added nvidia to xserver 2024-07-16 14:23:19 -04:00
ari 4e13d912b0 made generic container module 2024-07-14 15:15:15 -04:00
ari ee7931107e Moved power management to fwbook.nix 2024-07-13 21:58:18 -04:00
ari 247f1c177b Latest changes 2024-07-13 20:40:31 -04:00
ari 1410158222 Using unstab;e 2024-07-13 19:31:43 -04:00
ari 81d623e561 clean 2024-07-13 19:16:22 -04:00
ari 19634cfb7a Trying to add force library 2024-07-13 19:08:47 -04:00
Ari Sosnovsky b0e5f3fc93 Cuda setup 2024-07-12 17:11:25 -04:00
Ari Sosnovsky b613a09d86 Enabled opengl for bigbox 2024-07-12 14:51:32 -04:00
Ari Sosnovsky 915c7633fa Fixing configuration for bixbox 2024-07-12 14:50:43 -04:00
Ari Sosnovsky ceb6684316 Added GPU Configs 2024-07-12 14:45:30 -04:00
Ari Sosnovsky 2fb0669839 Added hw nfs for bigbox 2024-07-12 14:38:05 -04:00
Ari Sosnovsky d9a41add9f added bixbox1 2024-07-12 14:37:28 -04:00
Ari Sosnovsky 984c0e4dc1 Added alias to clean branches 2024-07-11 11:55:17 -04:00
ari 69ee8b74bf alacritty 2024-07-09 20:48:54 -04:00
ari 7e4858c1ab Added mounts + clean up 2024-07-09 11:35:31 -04:00
Ari Sosnovsky f0f9074d47 Added homebrew to mac setup 2024-07-05 12:08:07 -04:00
ari 700178c1f1 Clean up of desktop apps & added mail client 2024-07-03 15:31:42 -04:00
ari bdbb11d2fe Updated Versions 2024-06-27 08:52:48 -04:00
ari bbd9d5974f Cleaned up desktop on framework 2024-06-21 10:45:06 -04:00
ari 37363d3ec0 New Hardware config 2024-06-15 16:15:15 -04:00
ari 1b2bc9c240 Upgraded nix and disabled rocm for ollama 2024-06-15 15:20:12 -04:00
ari c0badcb2dd ollama + python 2024-06-14 11:48:55 -04:00
ari df7db4eb62 added alacritty terminal 2024-06-06 09:39:00 -04:00
ari 62e7368880 Updated desktop apps apps 2024-06-05 10:53:23 -04:00
Ari Sosnovsky 0431d53c78 Better place for rancher path 2024-06-04 10:21:57 -04:00
Ari Sosnovsky dda6abb66e Updated Sumo Rancher 2024-06-04 00:13:09 -04:00
ari 5c4edfb283 added fwscripts 2024-05-29 15:24:58 -04:00
ari 51f15e0652 Merge branch 'main' of github.com:asosnovsky/nixos-setup 2024-05-29 15:19:19 -04:00
ari 8fe7914968 Added fmt 2024-05-29 15:18:32 -04:00
Ari Sosnovsky 0922f2ddc6 Added oterm 2024-05-24 16:37:32 -04:00
Ari Sosnovsky 8a194423ad Devbox 2024-05-22 10:40:40 -04:00
Ari Sosnovsky 566569d332 Added vscode settings 2024-05-22 10:04:53 -04:00
Ari Sosnovsky 0307126a4a Added nix-serve 2024-05-21 17:10:40 -04:00
Ari Sosnovsky 9cf450b65f Reorg 2024-05-21 16:54:30 -04:00
Ari Sosnovsky 1f8776e828 Clean up 2024-05-21 16:52:23 -04:00
Ari Sosnovsky b1ba8f249e Added formatter 2024-05-21 16:48:57 -04:00
Ari Sosnovsky ec94b9194c Added Extra Configs 2024-05-21 16:14:18 -04:00
Ari Sosnovsky 9c030833f3 Stable SumoMac Setup 2024-05-21 16:12:28 -04:00
Ari Sosnovsky 3181c1f834 Merge branch 'main' into sumo-mac 2024-05-21 15:56:39 -04:00
ari d12700be33 Fixing Micromamba 2024-05-20 21:02:53 -04:00
ari e333ce2c5a Micromamba 2024-05-20 20:53:08 -04:00
Ariel Sosnovsky be571b72be Clean up + making sumo mac work 2024-05-20 16:09:41 -04:00
Ariel Sosnovsky c8aaf743b9 Added sumo-mac 2024-05-20 15:43:48 -04:00
ari d83255dc91 Stable modular build 2024-05-19 14:32:22 -04:00
ari e9df5d8c46 undoing child flake 2024-05-19 00:21:57 -04:00
ari 72eeca763e undoing child flake 2024-05-19 00:19:53 -04:00
ari 00d9e18d41 undoing child flake 2024-05-19 00:17:01 -04:00
ari 024ac197ba fixing gitcofig 2024-05-19 00:07:36 -04:00
ari 6818d5e7ad refactor 2024-05-19 00:04:36 -04:00
ari f4a273e89e added missing system 2024-05-19 00:00:03 -04:00
ari 77859a3137 Merge branch 'flaked' 2024-05-18 23:58:07 -04:00
ari 4a22ef9c47 Merge branch 'flaked' of github.com:asosnovsky/nixos-setup into flaked 2024-05-18 23:57:57 -04:00
ari e8961d1830 added brave 2024-05-18 15:21:08 -04:00
Ariel Sosnovsky 274e6d475b Modularized + enabled darwin things 2024-05-16 13:50:53 -04:00
Ari Sosnovsky b040991a96 Create README.md 2024-05-16 12:38:20 -04:00
Ari Sosnovsky 5018bc3005 Merge pull request #1 from asosnovsky/flaked
Flaked
2024-05-16 12:33:35 -04:00
Ariel Sosnovsky 132f949299 added macos param 2024-05-16 12:21:40 -04:00
ari 7b2169075b Removing nix managed kde themes (they break stuff) 2024-05-16 10:51:05 -04:00
ari e3343e0b36 Saved KDE theme to file 2024-05-16 10:09:10 -04:00
ari a1c2c6b3df some kde things 2024-05-16 10:07:18 -04:00
ari 318db84c9f some desktop apps 2024-05-16 09:20:50 -04:00
ari 8ec7bde136 Fixed up gitconfig 2024-05-16 09:07:18 -04:00
ari 3b3c5130c0 Added plasma browser integration 2024-05-16 09:05:31 -04:00
ari 36fa6ef032 Working Crypto Clients 2024-05-16 02:28:04 -04:00
ari a909b3dfbe Added Crypto Wallets 2024-05-16 01:58:11 -04:00
ari 04a0423e44 Disabling gitconfigs for now 2024-05-16 01:55:30 -04:00
ari 848b200ac7 Fixing 2024-05-16 01:42:06 -04:00
ari 020b53eabb big top level config 2024-05-16 01:32:23 -04:00
ari 5dcbbd8062 Updated where things go again 2024-05-16 00:51:07 -04:00
ari 208893bd3f tmux setup 2024-05-16 00:27:55 -04:00
ari 5d41c0cd5f tmux setup 2024-05-16 00:26:31 -04:00
ari 4a182aa078 moving packages around 2024-05-16 00:17:15 -04:00
ari 2a68833867 moving packages around 2024-05-16 00:17:01 -04:00
ari bfc0c7ab21 moving packages around 2024-05-16 00:14:17 -04:00
ari cd9ba061a4 plasma6 disabled some packages 2024-05-16 00:03:13 -04:00
ari 7790265612 plasma6 2024-05-15 21:59:34 -04:00
ari 95311b66c7 sddm 2024-05-15 21:50:32 -04:00
ari 6b316ec48f sddm 2024-05-15 21:49:53 -04:00
ari f27a7a64a3 rearranging 2024-05-15 21:45:43 -04:00
ari ca822f8bca splitting up desktop 2024-05-15 19:16:38 -04:00
ari d114fde1d5 splitting up desktop 2024-05-15 19:16:14 -04:00
ari a7d04a8876 splitting up desktop 2024-05-15 19:13:42 -04:00
ari 51e0a66c44 splitting things up 2024-05-15 19:04:54 -04:00
ari c1da8040e2 splitting things up 2024-05-15 19:03:58 -04:00
ari 75aba098e9 splitting things up 2024-05-15 19:03:26 -04:00
ari cc224f4043 Clean up of shell 2024-05-14 22:21:00 -04:00
ari 481fc8184c added ollama 2024-05-14 16:21:57 -04:00
ari 98b63ff139 added ollama 2024-05-14 16:21:43 -04:00
ari 5aa4f174af added ollama 2024-05-14 16:21:24 -04:00
ari b81fcaa0cd Added the fetches 2024-05-13 17:14:27 -04:00
ari 6d512cca23 conda + clean ups 2024-05-13 15:32:38 -04:00
ari 02c87ef8ec hypland clean up 2024-05-13 13:18:32 -04:00
ari 13d66196bf using nwg-shell themes 2024-05-13 13:02:25 -04:00
ari 5194e5c3c5 latest 2024-05-08 16:42:26 -04:00
ari 356ae12b3e latest DE playing around 2024-05-01 18:02:19 -04:00
ari 5ff8b7000f latest DE playing around 2024-05-01 16:45:15 -04:00
ari b6184dd79f latest DE playing around 2024-05-01 16:22:01 -04:00
ari 34345e6a05 latest DE playing around 2024-05-01 16:21:33 -04:00
ari 6f6e1c1719 syncing prefs 2024-05-01 16:21:03 -04:00
ari 849904e037 added displaylink 2024-05-01 16:20:44 -04:00
ari 7e3f71f748 KDE 2024-04-29 11:48:45 -04:00
ari cc5965c751 KDE 2024-04-29 11:48:31 -04:00
ari a0079b1cab better network manager 2024-04-29 11:43:26 -04:00
ari fa9aa323d0 better network manager 2024-04-29 11:43:13 -04:00
ari fd9c01c3e9 better print controls 2024-04-29 11:26:18 -04:00
ari 310d9e540e better print controls 2024-04-29 11:23:20 -04:00
ari f6761b6d01 removed xterm 2024-04-29 11:02:54 -04:00
ari 7d0ed15e86 added flakpak 2024-04-29 10:44:48 -04:00
ari 8120493a1c clean ups 2024-04-29 10:36:31 -04:00
ari fd5e62626e added helix 2024-04-29 10:17:35 -04:00
ari 0e5bd1e17f upgrade to unstable 2024-04-28 17:29:11 -04:00
ari 3f8b0a59f5 upgrade to unstable 2024-04-28 17:13:42 -04:00
ari b7c2509817 helix 2024-04-28 17:13:04 -04:00
ari 94b10102ce functional dm 2024-04-28 17:10:38 -04:00
ari a83323abe8 functional dm 2024-04-28 17:07:44 -04:00
ari a92d9b4749 functional dm 2024-04-28 17:07:17 -04:00
ari e538b0fcc9 functional dm 2024-04-28 17:06:24 -04:00
ari 4cb7a00686 functional dm 2024-04-28 17:05:57 -04:00
ari 9b8bba684a functional dm 2024-04-28 15:44:03 -04:00
ari a43e6afb82 functional dm 2024-04-28 15:38:32 -04:00
ari 021db78abb trying flakes 2024-04-28 15:22:15 -04:00
ari 276cbbd258 trying flakes 2024-04-28 15:11:38 -04:00
ari cd8caf807c trying flakes 2024-04-28 15:09:21 -04:00
ari eda5820374 trying flakes 2024-04-28 15:09:00 -04:00
ari 27d2d36dfe trying flakes 2024-04-28 14:53:19 -04:00
ari 90dcd8d49c trying flakes 2024-04-28 14:53:03 -04:00
ari 42b52e67f6 trying flakes 2024-04-28 14:49:37 -04:00
ari f532eabde3 trying flakes 2024-04-27 13:58:46 -04:00
ari 6424798a40 trying flakes 2024-04-27 13:58:07 -04:00
ari 140ecbb715 trying flakes 2024-04-27 13:57:53 -04:00
ari d066f9b414 trying flakes 2024-04-27 13:55:49 -04:00
ari 5d3da84cac trying flakes 2024-04-27 13:54:29 -04:00
ari 733e6d0ab1 trying flakes 2024-04-27 13:54:03 -04:00
ari 493c8767ec trying flakes 2024-04-27 13:53:34 -04:00
ari 36b60a4c87 trying flakes 2024-04-27 13:53:08 -04:00
ari 7b6b3378b7 trying flakes 2024-04-27 13:52:55 -04:00
ari 30e64f8883 trying flakes 2024-04-27 13:52:33 -04:00
ari 5b2e284501 trying flakes 2024-04-27 13:52:14 -04:00
ari 5412fe0b7b trying flakes 2024-04-27 13:29:04 -04:00
ari a81765d5d3 trying flakes 2024-04-27 13:27:54 -04:00
ari aa5db9818b trying flakes 2024-04-27 13:27:27 -04:00
ari 1405b60346 trying flakes 2024-04-27 13:27:12 -04:00
ari 4bb7f67602 trying flakes 2024-04-27 13:26:28 -04:00
ari 66ef25c9b1 trying flakes 2024-04-27 13:26:15 -04:00
ari 4b5ad6b4eb trying flakes 2024-04-27 13:24:53 -04:00
ari dbadcdd065 trying flakes 2024-04-27 13:20:51 -04:00
ari 775392970f trying flakes 2024-04-27 13:19:02 -04:00
ari a320c7baf8 trying flakes 2024-04-27 13:17:51 -04:00
ari 88781d3b9a trying flakes 2024-04-27 13:16:29 -04:00
ari 55f747bed5 trying flakes 2024-04-27 13:16:00 -04:00
ari 0c9abbd660 trying flakes 2024-04-27 11:44:41 -04:00
ari e161742bb9 trying flakes 2024-04-27 11:40:44 -04:00
ari cd243dc44a trying flakes 2024-04-27 11:38:03 -04:00
ari b177126ad6 trying flakes 2024-04-27 11:36:59 -04:00
ari 9938a07226 trying flakes 2024-04-27 11:35:20 -04:00
ari 66b0576db2 trying flakes 2024-04-27 11:32:18 -04:00
ari e6aa284555 trying flakes 2024-04-27 06:46:05 -04:00
ari 829c944929 trying flakes 2024-04-27 06:45:04 -04:00
ari 389ac81978 better hotkeys 2024-04-27 06:42:02 -04:00
131 changed files with 4845 additions and 1893 deletions

No files matched your search

+1 -2
View File
@@ -1,3 +1,2 @@
source_url "https://raw.githubusercontent.com/cachix/devenv/d1f7b48e35e6dee421cfd0f51481d17f77586997/direnvrc" "sha256-YBzqskFZxmNb3kYVoKD9ZixoPXJh1C9ZvTLGFRkauZ0=" use flake
use devenv
+9
View File
@@ -3,6 +3,11 @@
# Devenv # Devenv
.devenv* .devenv*
devenv.local.nix devenv.local.nix
.devbox
# tmp
tmp
result.diff
# direnv # direnv
.direnv .direnv
@@ -12,3 +17,7 @@ devenv.local.nix
# nix build # nix build
result result
results
diffs
.locks
result.diff
+2 -1
View File
@@ -1,5 +1,6 @@
{ {
"recommendations": [ "recommendations": [
"pinage404.nix-extension-pack" "pinage404.nix-extension-pack",
"b4dm4n.nixpkgs-fmt"
] ]
} }
+5
View File
@@ -0,0 +1,5 @@
{
"nix.enableLanguageServer": true,
"nix.serverPath": "nixd",
}
+3
View File
@@ -0,0 +1,3 @@
# NixOS System Configurations
The following is my Nix configurations. More Docs TBD
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
mkdir -p results
nix flake show --json | jq -r -c '.nixosConfigurations | keys[]' | while read i; do
echo "[[SKYG]] Building current $i"
sudo nixos-rebuild build --flake .#$i
rm -f results/$i-result
mv result results/$i-result
done
nix flake update
rm -f diffs
mkdir diffs
nix flake show --json | jq -r -c '.nixosConfigurations | keys[]' | while read i; do
echo "[[SKYG]] Building new $i"
sudo nixos-rebuild build --flake .#$i
rm -f results/$i-result-post
mv result results/$i-result-post
nvd diff results/$i-result results/$i-result-post > diffs/$i
done
+52
View File
@@ -0,0 +1,52 @@
#!/bin/sh
# Bootstrap
set -e
ROOT_FOLDER=$(realpath $0 | xargs dirname)
. $ROOT_FOLDER/common.sh
# Bootstrap
# export NIX_SSHOPTS="-o RequestTTY=force"
target=${1}
target_host=root@$target.lab.internal
profile=hl-$target
valid_profiles=$(nix flake show --json 2> /dev/null | jq -r -c '.nixosConfigurations | keys[]' | grep "hl")
function print_valid_targets {
echo "valid targets:"
while IFS= read -r line; do
echo $line | sed -r 's/.*hl-/ - /g'
done <<< "$valid_profiles"
}
if [ -z $target ]; then
echo "must specify a target!"
print_valid_targets
exit 1
fi
if echo "$valid_profiles" | grep -qFx "$profile"; then
echo "Using [$profile]"
else
echo "Invalid target! '$profile'"
print_valid_targets
exit 1
fi
function run {
remote_cmd=${1}
echo -e "$BOLD$remote_cmd$NC on $YELLOW$target_host with $profile through $build_host$NC"
runcmd="nixos-rebuild --target-host $target_host --use-remote-sudo $remote_cmd --flake .#$profile"
echo -e "$BLUE$runcmd$NC"
$runcmd
}
cmd=${2}
case $cmd in
"test" | "dry-activate" | "run" | "switch" | "build") run $cmd;;
*)
echo "invalid command"
exit 1
;;
esac
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
## Colors
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
NC='\033[0m'
BOLD='\033[1m'
BLUE_BOLD='\033[1;34m'
YELLOW_BOLD='\033[1;33m'
Executable
+147
View File
@@ -0,0 +1,147 @@
#!/usr/bin/env bash
set -e
# Bootstrap
set -e
ROOT_FOLDER=$(realpath $0 | xargs dirname | xargs dirname)
. $ROOT_FOLDER/bin/extra/common.sh
# Bootstrap
MENAME=$(basename $0)
LOCKS_FOLDER=/tmp/skyg/$ROOT_FOLDER/.tmp/.locks
LOCK_FILE=$LOCKS_FOLDER/.built_via_skg
mkdir -p $LOCKS_FOLDER
function lock() {
touch $LOCK_FILE
}
function unlock() {
rm -f $LOCK_FILE
}
function run-build() {
: Run nixos build and emits difference
:
unlock
echo "sudo nixos-rebuild build --flake ."
sudo nixos-rebuild build --flake .
lock
run-diff
}
function run-switch() {
: Runs nixos switch and ensures that we actually saw a build\'s difference
:
if [ ! -f $LOCK_FILE ]; then
run-build
echo "Do you want to continue? (y/N)"
read -r answer
if [[ $answer =~ ^[yY]$ ]]; then
echo "Continuing..."
else
echo "Exiting."
exit 1
fi
fi
sudo nixos-rebuild switch --flake .
unlock
}
function run-rollback() {
: Rolls back to last configuration
:
sudo nixos-rebuild switch --rollback
}
function run-update() {
: Updates a single flake and runs update
: Usage: skyg update {name-of-input}
input_name=${1}
if [ ! -z $input_name ]; then
cmd="nix flake lock --update-input $input_name"
else
cmd="nix flake update"
fi
echo $cmd
$cmd
}
function run-diff() {
: Diff results to current system
:
echo -e "Running ${YELLOW_BOLD}nvd${NC}"
sudo nvd diff /run/current-system result | sed "s/^/\t│ /"
echo "press any key to continue "
read
echo -e "\t└──${NC}DONE ${BLUE_BOLD}nvd${NC}"
echo -e "Running ${YELLOW_BOLD}diff${NC}"
diff --color=always -r /run/current-system result > result.diff
cat result.diff | sed "s/^/\t│ /"
echo -e "\t└──${NC}DONE ${BLUE_BOLD}diff${NC} @ ${pwd}/result.diff"
}
function run-remote-deploy() {
: Builds locally the system and deploys to an external system
: Usage: skyg remote-deploy {target} {cmd}
target=${1}
cmd=${2}
$ROOT_FOLDER/bin/extra/build-remote-nixos ${target} ${cmd}
}
function run-build-all() {
: Builds all remote and local configurations
: Usage: skyg build-all
mkdir -p results
nix flake show --json | jq -r -c '.nixosConfigurations | keys[]' | while read i; do
echo "[[SKYG]] Building current $i"
sudo nixos-rebuild build --flake .#$i
rm -f results/$i-result
mv result results/$i-result
done
nix flake update
rm -f diffs
mkdir diffs
nix flake show --json | jq -r -c '.nixosConfigurations | keys[]' | while read i; do
echo "[[SKYG]] Building new $i"
sudo nixos-rebuild build --flake .#$i
rm -f results/$i-result-post
mv result results/$i-result-post
nvd diff results/$i-result results/$i-result-post > diffs/$i
done
}
function list_run_functions() {
declare -F | awk '$3 ~ /^run-/{sub("run-", "", $3); print $3}'
}
all_functions=$(list_run_functions)
for f in ${all_functions[@]}; do
if [ "$1" == "$f" ]; then
echo -e "Running ${BLUE_BOLD}$1${NC}"
run-$1 ${@:2}
ecode=$(echo $?)
echo -e "\t└──${NC}DONE ${BLUE_BOLD}$1${NC}"
exit $ecode
fi
done
echo -e "Invalid Command '$1' please select one of${NC}"
for function_name in $all_functions; do
start_line=$(grep -n -m 1 "function run-$function_name" "${BASH_SOURCE[0]}" | cut -d: -f1)
end_line=$(awk "NR > $start_line && /^}/ {print NR; exit}" "${BASH_SOURCE[0]}")
function_body=$(sed -n "${start_line},${end_line}p" "${BASH_SOURCE[0]}")
description=$(echo "$function_body" | sed -n '/^\s*:/,/^\s*[^:]/p' | sed 's/^\s*:\s*/ │ /')
echo -e "$BOLD\r$MENAME \`${function_name}\`$NC\n${description}\n └──────────\n"
done
Binary file not shown.
-148
View File
@@ -1,148 +0,0 @@
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,preferred,auto,auto
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Execute your favorite apps at launch
# exec-once = waybar & hyprpaper & firefox
exec-once = lxqt-policykit-agent
exec-once = nm-applet --indicator &
exec-once = waybar
exec-once = dunst
# Window rules
windowrulev2 = float,class:(lxqt-policykit-agent)
windowrulev2 = float,class:(nm-connection-editor)
windowrulev2 = float,class:(pavucontrol)
windowrulev2 = size 40%,40%,class:(pavucontrol)
windowrulev2 = center,class:(pavucontrol)
windowrulev2 = fakefullscreen,class:(Code)
windowrulev2 = fakefullscreen, class:^(code-url-handler)$
# Some default env vars.
env = XCURSOR_SIZE,24
input {
kb_layout = us
follow_mouse = 1
touchpad {
natural_scroll = yes
clickfinger_behavior = yes
}
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}
general {
gaps_in = 5
gaps_out = 20
border_size = 2
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.inactive_border = rgba(595959aa)
layout = dwindle
allow_tearing = false
}
decoration {
rounding = 5
blur {
enabled = true
size = 3
passes = 1
}
drop_shadow = yes
shadow_range = 4
shadow_render_power = 3
col.shadow = rgba(1a1a1aee)
}
animations {
enabled = yes
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 7, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = border, 1, 10, default
animation = borderangle, 1, 8, default
animation = fade, 1, 7, default
animation = workspaces, 1, 6, default
}
dwindle {
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = yes # you probably want this
}
master {
new_is_master = true
}
gestures {
workspace_swipe = on
workspace_swipe_fingers = 4
workspace_swipe_create_new = true
}
misc {
force_default_wallpaper = 0
disable_splash_rendering = false
}
xwayland {
force_zero_scaling = true
}
$mainMod = SUPER
# My Binds
bind = $mainMod, T, exec, kitty
bind = $mainMod, F4, killactive,
bind = $mainMod, V, togglefloating,
bind = $mainMod, space, exec, rofi -show drun
bind = $mainMod, s, exec, grim -g "$(slurp)" - | swappy -f -
# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10
bind = $mainMod, right, workspace, +1
bind = $mainMod, left, workspace, -1
# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10
# Resize actions
bind = $mainMod SHIFT, right, resizeactive, 10 0
bind = $mainMod SHIFT, left, resizeactive, -10 0
bind = $mainMod SHIFT, up, resizeactive, 0 -10
bind = $mainMod SHIFT, down, resizeactive, 0 10
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, Control_L, movewindow
bindm = $mainMod, mouse:273, resizewindow
bindm = $mainMod, ALT_L, resizewindow
+77
View File
@@ -0,0 +1,77 @@
[global]
monitor = 0
follow = mouse
geometry = "0x0-30+20"
indicate_hidden = yes
shrink = no
transparency = 0
notification_height = 0
separator_height = 2
padding = 8
horizontal_padding = 8
frame_width = 3
frame_color = "#aaaaaa"
separator_color = auto
sort = yes
idle_threshold = 120
font = Fira Code 10
line_height = 0
markup = full
format = "<b>%s</b>\n%b"
alignment = center
show_age_threshold = 60
word_wrap = yes
ellipsize = middle
ignore_newline = no
stack_duplicates = true
hide_duplicate_count = false
show_indicators = yes
icon_position = left
max_icon_size = 32
# icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
sticky_history = yes
history_length = 20
dmenu = /usr/bin/dmenu -p dunst:
browser = /usr/bin/brave
always_run_script = true
title = Dunst
class = Dunst
startup_notification = true
verbosity = mesg
corner_radius = 5
mouse_left_click = do_action
mouse_middle_click = close_all
mouse_right_click = close_current
[experimental]
per_monitor_dpi = false
[shortcuts]
close = ctrl+space
close_all = ctrl+shift+space
history = ctrl+grave
context = ctrl+shift+period
[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the "#" and following would be interpreted as a comment.
background = "#2b2b2b"
foreground = "#ffffff"
timeout = 5
# Icon for notifications with low urgency, uncomment to enable
# icon = /home/brodie/.config/dunst/normal.png
[urgency_normal]
background = "#2b2b2b"
foreground = "#ffffff"
timeout = 5
# Icon for notifications with normal urgency, uncomment to enable
# icon = /home/brodie/.config/dunst/normal.png
[urgency_critical]
background = "#900000"
foreground = "#ffffff"
frame_color = "#ff0000"
timeout = 5
# Icon for notifications with critical urgency, uncomment to enable
# icon = /home/brodie/.config/dunst/critical.png
+1
View File
@@ -0,0 +1 @@
hyprland.conf
+40
View File
@@ -0,0 +1,40 @@
general {
# lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
before_sleep_cmd = loginctl lock-session # lock before suspend.
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
}
listener {
timeout = 150 # 2.5min.
on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor.
on-resume = brightnessctl -r # monitor backlight restor.
}
# turn off keyboard backlight, uncomment this section if have keyboard backlight.
listener {
timeout = 150 # 2.5min.
on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight.
on-resume = brightnessctl -rd rgb:kbd_backlight # turn on keyboard backlight.
}
listener {
timeout = 295
on-timeout = hyprctl notify 0 5000 'rgb(ff0000)' 'Locking..'
on-resume = hyprctl notify 0 5000 'rgb(ff0000)' 'Stopping lock process..'
}
listener {
timeout = 300 # 5min
on-timeout = loginctl lock-session # lock screen when timeout has passed
}
listener {
timeout = 380 # 5.5min
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
}
listener {
timeout = 1800 # 30min
on-timeout = systemctl suspend # suspend pc
}
@@ -0,0 +1,8 @@
exec-once = lxqt-policykit-agent
exec-once = dunst --config $HOME/.config/dunstrc --startup_notification
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = swww-daemon
exec-once = hypridle
# exec-once = waybar
exec-once = nwg-panel
exec-once = nwg-dock-hyprland
@@ -0,0 +1,6 @@
$term = alacritty
$browser = firefox
$filemanager = nautilus
$editor = code
$applauncher = wofi --show drun
$cmdlauncher = wofi --show run
@@ -0,0 +1,60 @@
$mainMod = SUPER
# bind = $mainMod, tab, overview, toggle
# Apps.
bind = $mainMod, C, exec, $editor
bind = $mainMod, space, exec, $applauncher
bind = $mainMod, R, exec, $cmdlauncher
bind = $mainMod, T, exec, $term
bind = $mainMod, B, exec, $browser
# My Binds
bind = $mainMod, Q, killactive,
bind = ALT, F4, killactive,
bind = $mainMod, V, togglefloating,
bind = $mainMod, F, fullscreen
bind = $mainMod, P, exec, rofimoji
# Screen shot
bind = $mainMod, s, exec, hyprshot -m region -r | swappy -f -
# bind = $mainMod, , exec wl-screenrec --audio -g "$(slurp)"
# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
# Switch workspaces with mainMod
bind = $mainMod, right, workspace, +1
bind = $mainMod, left, workspace, -1
# Move active window to a workspace with mainMod + SHIFT
bind = $mainMod CTRL, right, movetoworkspace, +1
bind = $mainMod CTRL, left, movetoworkspace, -1
# Resize actions
bind = $mainMod SHIFT, right, resizeactive, 10 0
bind = $mainMod SHIFT, left, resizeactive, -10 0
bind = $mainMod SHIFT, up, resizeactive, 0 -10
bind = $mainMod SHIFT, down, resizeactive, 0 10
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
bindm = $mainMod, ALT_L, resizewindow
# Brigthness
bind = ,XF86MonBrightnessDown, exec, brightnessctl s 20%-
bind = ,XF86MonBrightnessUp, exec, brightnessctl s +20%
# Volume
binde =, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+ && hyprctl notify 0 500 'rgb(00ff00)' $(wpctl get-volume @DEFAULT_AUDIO_SINK@)
binde =, XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%- && hyprctl notify 0 500 'rgb(00ff00)' $(wpctl get-volume @DEFAULT_AUDIO_SINK@)
bind =, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && hyprctl notify 0 500 'rgb(00ff00)' $(wpctl get-volume @DEFAULT_AUDIO_SINK@)
+1
View File
@@ -0,0 +1 @@
../monitors.conf
@@ -0,0 +1 @@
workspace = name:‍, monitor:DP-10, default:true, persistent:true, on-created-empty:[fullscreen] slack
@@ -0,0 +1,25 @@
# Extras
windowrulev2 = float,class:(nwg-.*)
windowrulev2 = float,class:(org\.kde\..*)
windowrulev2 = float,class:(.*blueman.*)
windowrulev2 = float,class:(firefox)
# Vscode
windowrulev2 = fakefullscreen,class:(Code)
windowrulev2 = fakefullscreen, class:^(code-url-handler)$
# VLC
windowrulev2 = fullscreen,class:(vlc.*)
# Rofi Randomness (mostly for rofimoji)
windowrulev2 = float,class:(Rofi)
windowrulev2 = size 30% 90%,class:(Rofi)
windowrulev2 = move 5% 5%,class:(Rofi)
$centerable = (Slack|nm-connection-editor|pavucontrol|system-config-printer|lxqt-policykit-agent|amdgpu_top|.*blueman.*|thunar|xdg-desktop-portal-gtk)
# Centerable & Floatable
windowrulev2 = float, class:$centerable
windowrulev2 = size 90% 90%, class:$centerable
windowrulev2 = move 5% 5%, class:$centerable
@@ -0,0 +1,87 @@
decoration {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
rounding = 5
blur {
enabled = true
size = 3
passes = 1
new_optimizations = true
}
drop_shadow = true
shadow_range = 4
shadow_render_power = 3
col.shadow = rgba(1a1a1aee)
}
animations {
enabled = true
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 7, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = border, 1, 10, default
animation = borderangle, 1, 8, default
animation = fade, 1, 7, default
animation = workspaces, 1, 6, default
}
gestures {
workspace_swipe = on
workspace_swipe_fingers = 4
workspace_swipe_create_new = true
}
general {
border_size = 1
no_border_on_floating = false
gaps_in = 3
gaps_out = 3
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.inactive_border = rgba(595959aa)
layout = dwindle
resize_on_border = true
extend_border_grab_area = true
hover_icon_on_border = true
}
# # INPUT DEVICES
input {
kb_layout = us
numlock_by_default = false
repeat_rate = 25
repeat_delay = 600
accel_profile = adaptive
scroll_method = 2fg
follow_mouse = 1
mouse_refocus = true
float_switch_override_focus = 1
touchpad {
natural_scroll = yes
clickfinger_behavior = yes
disable_while_typing = true
scroll_factor = 1.0
tap_button_map = lrm
tap-to-click = true
}
}
# # MISC SETTINGS
misc {
disable_hyprland_logo = true
vrr = 0
mouse_move_enables_dpms = false
key_press_enables_dpms = false
layers_hog_keyboard_focus = true
focus_on_activate = false
mouse_move_focuses_monitor = true
}
# unscale XWayland
xwayland {
force_zero_scaling = true
}
env = GDK_SCALE,2
env = XCURSOR_SIZE,32
+140
View File
@@ -0,0 +1,140 @@
# source = /home/justin/.cache/wal/colors-hyprland.conf
# BACKGROUND
background {
monitor =
#path = screenshot
# path = /home/justin/Pictures/wal.png
color = rgba(255, 0, 0, 1)
blur_passes = 2
contrast = 1
brightness = 0.5
vibrancy = 0.2
vibrancy_darkness = 0.2
}
# GENERAL
general {
no_fade_in = true
no_fade_out = true
hide_cursor = false
grace = 0
disable_loading_bar = true
}
# INPUT FIELD
input-field {
monitor =
size = 250, 60
outline_thickness = 2
dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8
dots_spacing = 0.35 # Scale of dots' absolute size, 0.0 - 1.0
dots_center = true
outer_color = rgba(0, 0, 0, 0)
inner_color = rgba(0, 0, 0, 0.2)
font_color = $foreground
fade_on_empty = false
rounding = -1
check_color = rgb(204, 136, 34)
placeholder_text = <i><span foreground="##cdd6f4">Input Password...</span></i>
hide_input = false
position = 0, -200
halign = center
valign = center
}
# DATE
label {
monitor =
text = cmd[update:1000] echo "$(date +"%A, %B %d")"
color = rgba(242, 243, 244, 0.75)
font_size = 22
font_family = JetBrains Mono
position = 0, 300
halign = center
valign = center
}
# TIME
label {
monitor =
text = cmd[update:1000] echo "$(date +"%-I:%M")"
color = rgba(242, 243, 244, 0.75)
font_size = 95
font_family = JetBrains Mono Extrabold
position = 0, 200
halign = center
valign = center
}
# Profile Picture
# image {
# monitor =
# path = /home/justin/Pictures/profile_pictures/justin_square.png
# size = 100
# border_size = 2
# border_color = $foreground
# position = 0, -100
# halign = center
# valign = center
# }
# # Desktop Environment
# image {
# monitor =
# path = /home/justin/Pictures/profile_pictures/hypr.png
# size = 75
# border_size = 2
# border_color = $foreground
# position = -50, 50
# halign = right
# valign = bottom
# }
# CURRENT SONG
# label {
# monitor =
# text = cmd[update:1000] echo "$(/home/justin/Documents/Scripts/whatsong.sh)"
# color = $foreground
# #color = rgba(255, 255, 255, 0.6)
# font_size = 18
# font_family = Metropolis Light, Font Awesome 6 Free Solid
# position = 0, 50
# halign = center
# valign = bottom
# }
# label {
# monitor =
# text = cmd[update:1000] echo "$(/home/justin/Documents/Scripts/whoami.sh)"
# color = $foreground
# font_size = 14
# font_family = JetBrains Mono
# position = 0, -10
# halign = center
# valign = top
# }
# label {
# monitor =
# text = cmd[update:1000] echo "$(/home/justin/Documents/Scripts/battery.sh)"
# color = $foreground
# font_size = 24
# font_family = JetBrains Mono
# position = -90, -10
# halign = right
# valign = top
# }
# label {
# monitor =
# text = cmd[update:1000] echo "$(/home/justin/Documents/Scripts/network-status.sh)"
# color = $foreground
# font_size = 24
# font_family = JetBrains Mono
# position = -20, -10
# halign = right
# valign = top
# }
+10
View File
@@ -0,0 +1,10 @@
monitor=eDP-1,2256x1504@60.0,0x0,1.175
# Home External Monitors
monitor=DP-9,1920x1080@60.0,1420x-1085,1.0
monitor=DP-10,1920x1080@60.0,-500x-1085,1.0
monitor=DP-11,1920x1080@60.0,1420x-1085,1.0
monitor=DP-12,1920x1080@60.0,-500x-1085,1.0
monitor=*,preffered,auto,1
@@ -0,0 +1,2 @@
source = ~/.config/hypr/hyprland.d/*.conf
debug:enable_stdout_logs = true
Whitespace-only changes.
+27
View File
@@ -0,0 +1,27 @@
[
{
"label": "Sleep",
"exec": "systemctl suspend",
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-suspend.svg"
},
{
"label": "Hibernate",
"exec": "systemctl hibernate",
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-hibernate.svg"
},
{
"label": "Logout",
"exec": "hyprctl dispatch exit",
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-log-out.svg"
},
{
"label": "Reboot",
"exec": "systemctl reboot",
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-reboot.svg"
},
{
"label": "Shutdown",
"exec": "systemctl -i poweroff",
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-shutdown.svg"
}
]
+35
View File
@@ -0,0 +1,35 @@
window {
background-color: rgba (0, 0, 0, 1.0)
}
/* Outer bar container, takes all the window width/height */
#outer-box {
margin: 0px
}
/* Inner bar container, surrounds buttons */
#inner-box {
background-color: rgba (0, 0, 0, 0.85);
border-radius: 10px;
border-style: none;
border-width: 1px;
border-color: rgba (156, 142, 122, 0.7);
padding: 5px;
margin: 5px
}
button, image {
background: none;
border: none;
box-shadow: none
}
button {
padding-left: 10px;
padding-right: 10px;
margin: 5px
}
button:hover {
background-color: rgba (255, 255, 255, 0.1)
}
+129
View File
@@ -0,0 +1,129 @@
{
"layer": "bottom",
"position": "bottom",
"mod": "dock",
"exclusive": true,
"gtk-layer-shell": true,
"margin-bottom": -1,
"passthrough": false,
"height": 41,
"modules-left": [
"custom/os_button",
"hyprland/workspaces"
// "wlr/taskbar"
],
"modules-center": [],
"modules-right": [
"cpu",
// "temperature",
"memory",
// "disk",
// "tray",
"pulseaudio",
"network",
"battery",
"clock"
],
"hyprland/workspaces": {
"icon-size": 32,
"spacing": 16,
"on-scroll-up": "hyprctl dispatch workspace r+1",
"on-scroll-down": "hyprctl dispatch workspace r-1"
},
"custom/os_button": {
"format": "☕",
"on-click": "nwg-bar",
"tooltip": false
},
"cpu": {
"interval": 5,
"format": "💻 {usage}%",
"max-length": 10
},
"temperature": {
"hwmon-path-abs": "/sys/devices/platform/coretemp.0/hwmon",
"input-filename": "temp2_input",
"critical-threshold": 75,
"tooltip": false,
"format-critical": "({temperatureC}°C)",
"format": "({temperatureC}°C)"
},
"disk": {
"interval": 30,
"format": "💾 {percentage_used}%",
"path": "/",
"tooltip": true,
"unit": "GB",
"tooltip-format": "Available {free} of {total}"
},
"memory": {
"interval": 10,
"format": "🐏 {percentage}%",
"max-length": 10,
"tooltip": true,
"tooltip-format": "RAM - {used:0.1f}GiB used"
},
"wlr/taskbar": {
"format": "{icon} {title:.17}",
"icon-size": 28,
"spacing": 3,
"on-click-middle": "close",
"tooltip-format": "{title}",
"ignore-list": [],
"on-click": "activate"
},
"tray": {
"icon-size": 18,
"spacing": 3
},
"clock": {
"format": " {:%R\n %d.%m.%Y}",
"actions": {
"on-click-right": "mode",
"on-click-forward": "tz_up",
"on-click-backward": "tz_down",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down"
}
},
"network": {
"format-wifi": " {icon}",
"format-ethernet": " 🔌 ",
"format-disconnected": " 🟥"
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 20
},
"format": "{icon} {capacity}%",
"format-charging": "🔋 {capacity}%",
"format-plugged": "🔌 {capacity}%",
"format-alt": "{time} {icon}",
"format-icons": [
"🔋"
]
},
"pulseaudio": {
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-icons": {
"alsa_output.pci-0000_00_1f.3.analog-stereo": "",
"alsa_output.pci-0000_00_1f.3.analog-stereo-muted": "",
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"phone-muted": "",
"portable": "",
"car": "",
"default": [
"",
""
]
},
"scroll-step": 1,
"on-click": "pavucontrol"
}
}
+181
View File
@@ -0,0 +1,181 @@
/*base background color*/
@define-color bg_main rgba(25, 25, 25, 0.65);
@define-color bg_main_tooltip rgba(0, 0, 0, 0.7);
/*base background color of selections */
@define-color bg_hover rgba(200, 200, 200, 0.3);
/*base background color of active elements */
@define-color bg_active rgba(100, 100, 100, 0.5);
/*base border color*/
@define-color border_main rgba(255, 255, 255, 0.2);
/*text color for entries, views and content in general */
@define-color content_main white;
/*text color for entries that are unselected */
@define-color content_inactive rgba(255, 255, 255, 0.25);
* {
text-shadow: none;
box-shadow: none;
border: none;
border-radius: 0;
font-family: "Fira Code", "Ubuntu";
font-weight: 600;
font-size: 12.7px;
}
window#waybar {
background: @bg_main;
border-top: 1px solid @border_main;
color: @content_main;
}
tooltip {
background: @bg_main_tooltip;
border-radius: 5px;
border-width: 1px;
border-style: solid;
border-color: @border_main;
}
tooltip label{
color: @content_main;
}
#custom-os_button {
font-family: "JetBrainsMono Nerd Font";
font-size: 24px;
padding-left: 12px;
padding-right: 20px;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#custom-os_button:hover {
background: @bg_hover;
color: @content_main;
}
#workspaces {
color: transparent;
margin-right: 1.5px;
margin-left: 1.5px;
}
#workspaces button {
padding: 3px;
color: @content_inactive;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#workspaces button.active {
color: @content_main;
border-bottom: 3px solid white;
}
#workspaces button.focused {
color: @bg_active;
}
#workspaces button.urgent {
background: rgba(255, 200, 0, 0.35);
border-bottom: 3px dashed @warning_color;
color: @warning_color;
}
#workspaces button:hover {
background: @bg_hover;
color: @content_main;
}
#taskbar {
}
#taskbar button {
min-width: 130px;
border-bottom: 3px solid rgba(255, 255, 255, 0.3);
margin-left: 2px;
margin-right: 2px;
padding-left: 8px;
padding-right: 8px;
color: white;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#taskbar button.active {
border-bottom: 3px solid white;
background: @bg_active;
}
#taskbar button:hover {
border-bottom: 3px solid white;
background: @bg_hover;
color: @content_main;
}
#cpu, #disk, #memory {
padding:3px;
}
#temperature {
color: transparent;
font-size: 0px;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#temperature.critical {
padding-right: 3px;
color: @warning_color;
font-size: initial;
border-bottom: 3px dashed @warning_color;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#window {
border-radius: 10px;
margin-left: 20px;
margin-right: 20px;
}
#tray{
margin-left: 5px;
margin-right: 5px;
}
#tray > .passive {
border-bottom: none;
}
#tray > .active {
border-bottom: 3px solid white;
}
#tray > .needs-attention {
border-bottom: 3px solid @warning_color;
}
#tray > widget {
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#tray > widget:hover {
background: @bg_hover;
}
#pulseaudio {
font-family: "JetBrainsMono Nerd Font";
padding-left: 3px;
padding-right: 3px;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#pulseaudio:hover {
background: @bg_hover;
}
#network {
padding-left: 3px;
padding-right: 3px;
}
#language {
padding-left: 5px;
padding-right: 5px;
}
#clock {
padding-right: 5px;
padding-left: 5px;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#clock:hover {
background: @bg_hover;
}
-807
View File
@@ -1,807 +0,0 @@
# vim:fileencoding=utf-8:foldmethod=marker
font_family Fira Code
font_features FiraCode-Bold +zero
# window_logo_path none
# window_logo_position bottom-right
# window_logo_alpha 0.5
#: Path to a logo image. Must be in PNG format. Relative paths are
#: interpreted relative to the kitty config directory. The logo is
#: displayed in a corner of every kitty window. The position is
#: controlled by window_logo_position. Individual windows can be
#: configured to have different logos either using the launch action
#: or the remote control <https://sw.kovidgoyal.net/kitty/remote-
#: control/> facility.
background_blur 10
# background_image none
# background_image_layout scaled
# dynamic_background_opacity no
#: Set to a positive value to enable background blur (blurring of the
#: visuals behind a transparent window) on platforms that support it.
#: Only takes effect when background_opacity is less than one. On
#: macOS, this will also control the blur radius (amount of blurring).
#: Setting it to too high a value will cause severe performance issues
#: and/or rendering artifacts. Usually, values up to 64 work well.
#: Note that this might cause performance issues, depending on how the
#: platform implements it, so use with care. Currently supported on
#: macOS and KDE under X11.
# clone_source_strategies venv,conda,env_var,path
#: Control what shell code is sourced when running clone-in-kitty in
#: the newly cloned window. The supported strategies are:
#: venv
#: Source the file $VIRTUAL_ENV/bin/activate. This is used by the
#: Python stdlib venv module and allows cloning venvs automatically.
#: conda
#: Run conda activate $CONDA_DEFAULT_ENV. This supports the virtual
#: environments created by conda.
#: env_var
#: Execute the contents of the environment variable
#: KITTY_CLONE_SOURCE_CODE with eval.
#: path
#: Source the file pointed to by the environment variable
#: KITTY_CLONE_SOURCE_PATH.
#: OS specific tweaks {{{
# wayland_titlebar_color system
#: The color of the kitty window's titlebar on Wayland systems with
#: client side window decorations such as GNOME. A value of system
#: means to use the default system color, a value of background means
#: to use the background color of the currently active window and
#: finally you can use an arbitrary color, such as #12af59 or red.
# macos_titlebar_color system
#: Keyboard shortcuts {{{
#: Keys are identified simply by their lowercase Unicode characters.
#: For example: a for the A key, [ for the left square bracket key,
#: etc. For functional keys, such as Enter or Escape, the names are
#: present at Functional key definitions
#: <https://sw.kovidgoyal.net/kitty/keyboard-protocol/#functional>.
#: For modifier keys, the names are ctrl (control, ⌃), shift (⇧), alt
#: (opt, option, ⌥), super (cmd, command, ⌘). See also: GLFW mods
#: <https://www.glfw.org/docs/latest/group__mods.html>
#: .. code-block:: none
#: on_key_input: glfw key: 0x61 native_code: 0x61 action: PRESS mods: none text: 'a'
#: Here, the key name for the A key is 0x61 and you can use it with::
#: map ctrl+0x61 something
#: to map Ctrl+A to something.
#: You can use the special action no_op to unmap a keyboard shortcut
#: that is assigned in the default configuration::
#: map kitty_mod+space no_op
#: If you would like kitty to completely ignore a key event, not even
#: sending it to the program running in the terminal, map it to
#: discard_event::
#: map kitty_mod+f1 discard_event
#: You can combine multiple actions to be triggered by a single
#: shortcut with combine action, using the syntax below::
#: map key combine <separator> action1 <separator> action2 <separator> action3 ...
#: For example::
#: map kitty_mod+e combine : new_window : next_layout
#: This will create a new window and switch to the next available
#: layout.
#: You can use multi-key shortcuts with the syntax shown below::
#: map key1>key2>key3 action
#: For example::
#: map ctrl+f>2 set_font_size 20
#: The full list of actions that can be mapped to key presses is
#: available here <https://sw.kovidgoyal.net/kitty/actions/>.
# kitty_mod ctrl+shift
#: Special modifier key alias for default shortcuts. You can change
#: the value of this option to alter all default shortcuts that use
#: kitty_mod.
# clear_all_shortcuts no
#: Remove all shortcut definitions up to this point. Useful, for
#: instance, to remove the default shortcuts.
# action_alias
#: E.g. action_alias launch_tab launch --type=tab --cwd=current
#: Define action aliases to avoid repeating the same options in
#: multiple mappings. Aliases can be defined for any action and will
#: be expanded recursively. For example, the above alias allows you to
#: create mappings to launch a new tab in the current working
#: directory without duplication::
#: map f1 launch_tab vim
#: map f2 launch_tab emacs
#: Similarly, to alias kitten invocation::
#: action_alias hints kitten hints --hints-offset=0
# kitten_alias
#: E.g. kitten_alias hints hints --hints-offset=0
#: Like action_alias above, but specifically for kittens. Generally,
#: prefer to use action_alias. This option is a legacy version,
#: present for backwards compatibility. It causes all invocations of
#: the aliased kitten to be substituted. So the example above will
#: cause all invocations of the hints kitten to have the --hints-
#: offset=0 option applied.
#: Clipboard {{{
#: Copy to clipboard
# map kitty_mod+c copy_to_clipboard
# map cmd+c copy_to_clipboard
#:: There is also a copy_or_interrupt action that can be optionally
#:: mapped to Ctrl+C. It will copy only if there is a selection and
#:: send an interrupt otherwise. Similarly,
#:: copy_and_clear_or_interrupt will copy and clear the selection or
#:: send an interrupt if there is no selection.
#: Paste from clipboard
# map kitty_mod+v paste_from_clipboard
# map cmd+v paste_from_clipboard
#: Paste from selection
# map kitty_mod+s paste_from_selection
# map shift+insert paste_from_selection
#: Pass selection to program
# map kitty_mod+o pass_selection_to_program
#:: You can also pass the contents of the current selection to any
#:: program with pass_selection_to_program. By default, the system's
#:: open program is used, but you can specify your own, the selection
#:: will be passed as a command line argument to the program. For
#:: example::
#:: map kitty_mod+o pass_selection_to_program firefox
#:: You can pass the current selection to a terminal program running
#:: in a new kitty window, by using the @selection placeholder::
#:: map kitty_mod+y new_window less @selection
#: }}}
#: Scrolling {{{
#: Scroll line up
# map kitty_mod+up scroll_line_up
# map kitty_mod+k scroll_line_up
# map opt+cmd+page_up scroll_line_up
# map cmd+up scroll_line_up
#: Scroll line down
# map kitty_mod+down scroll_line_down
# map kitty_mod+j scroll_line_down
# map opt+cmd+page_down scroll_line_down
# map cmd+down scroll_line_down
#: Scroll page up
# map kitty_mod+page_up scroll_page_up
# map cmd+page_up scroll_page_up
#: Scroll page down
# map kitty_mod+page_down scroll_page_down
# map cmd+page_down scroll_page_down
#: Scroll to top
# map kitty_mod+home scroll_home
# map cmd+home scroll_home
#: Scroll to bottom
# map kitty_mod+end scroll_end
# map cmd+end scroll_end
#: Scroll to previous shell prompt
# map kitty_mod+z scroll_to_prompt -1
#:: Use a parameter of 0 for scroll_to_prompt to scroll to the last
#:: jumped to or the last clicked position. Requires shell
#:: integration <https://sw.kovidgoyal.net/kitty/shell-integration/>
#:: to work.
#: Scroll to next shell prompt
# map kitty_mod+x scroll_to_prompt 1
#: Browse scrollback buffer in pager
# map kitty_mod+h show_scrollback
#:: You can pipe the contents of the current screen and history
#:: buffer as STDIN to an arbitrary program using launch --stdin-
#:: source. For example, the following opens the scrollback buffer in
#:: less in an overlay window::
#:: map f1 launch --stdin-source=@screen_scrollback --stdin-add-formatting --type=overlay less +G -R
#:: For more details on piping screen and buffer contents to external
#:: programs, see launch <https://sw.kovidgoyal.net/kitty/launch/>.
#: Browse output of the last shell command in pager
# map kitty_mod+g show_last_command_output
#:: You can also define additional shortcuts to get the command
#:: output. For example, to get the first command output on screen::
#:: map f1 show_first_command_output_on_screen
#:: To get the command output that was last accessed by a keyboard
#:: action or mouse action::
#:: map f1 show_last_visited_command_output
#:: You can pipe the output of the last command run in the shell
#:: using the launch action. For example, the following opens the
#:: output in less in an overlay window::
#:: map f1 launch --stdin-source=@last_cmd_output --stdin-add-formatting --type=overlay less +G -R
#:: To get the output of the first command on the screen, use
#:: @first_cmd_output_on_screen. To get the output of the last jumped
#:: to command, use @last_visited_cmd_output.
#:: Requires shell integration
#:: <https://sw.kovidgoyal.net/kitty/shell-integration/> to work.
#: }}}
#: Window management {{{
#: New window
# map kitty_mod+enter new_window
# map cmd+enter new_window
#:: You can open a new kitty window running an arbitrary program, for
#:: example::
#:: map kitty_mod+y launch mutt
#:: You can open a new window with the current working directory set
#:: to the working directory of the current window using::
#:: map ctrl+alt+enter launch --cwd=current
#:: You can open a new window that is allowed to control kitty via
#:: the kitty remote control facility with launch --allow-remote-
#:: control. Any programs running in that window will be allowed to
#:: control kitty. For example::
#:: map ctrl+enter launch --allow-remote-control some_program
#:: You can open a new window next to the currently active window or
#:: as the first window, with::
#:: map ctrl+n launch --location=neighbor
#:: map ctrl+f launch --location=first
#:: For more details, see launch
#:: <https://sw.kovidgoyal.net/kitty/launch/>.
#: New OS window
# map kitty_mod+n new_os_window
# map cmd+n new_os_window
#:: Works like new_window above, except that it opens a top-level OS
#:: window. In particular you can use new_os_window_with_cwd to open
#:: a window with the current working directory.
#: Close window
# map kitty_mod+w close_window
# map shift+cmd+d close_window
#: Next window
# map kitty_mod+] next_window
#: Previous window
# map kitty_mod+[ previous_window
#: Move window forward
# map kitty_mod+f move_window_forward
#: Move window backward
# map kitty_mod+b move_window_backward
#: Move window to top
# map kitty_mod+` move_window_to_top
#: Start resizing window
# map kitty_mod+r start_resizing_window
# map cmd+r start_resizing_window
#: First window
# map kitty_mod+1 first_window
# map cmd+1 first_window
#: Second window
# map kitty_mod+2 second_window
# map cmd+2 second_window
#: Third window
# map kitty_mod+3 third_window
# map cmd+3 third_window
#: Fourth window
# map kitty_mod+4 fourth_window
# map cmd+4 fourth_window
#: Fifth window
# map kitty_mod+5 fifth_window
# map cmd+5 fifth_window
#: Sixth window
# map kitty_mod+6 sixth_window
# map cmd+6 sixth_window
#: Seventh window
# map kitty_mod+7 seventh_window
# map cmd+7 seventh_window
#: Eighth window
# map kitty_mod+8 eighth_window
# map cmd+8 eighth_window
#: Ninth window
# map kitty_mod+9 ninth_window
# map cmd+9 ninth_window
#: Tenth window
# map kitty_mod+0 tenth_window
#: Visually select and focus window
# map kitty_mod+f7 focus_visible_window
#:: Display overlay numbers and alphabets on the window, and switch
#:: the focus to the window when you press the key. When there are
#:: only two windows, the focus will be switched directly without
#:: displaying the overlay. You can change the overlay characters and
#:: their order with option visual_window_select_characters.
#: Visually swap window with another
# map kitty_mod+f8 swap_with_window
#:: Works like focus_visible_window above, but swaps the window.
#: }}}
#: Tab management {{{
#: Next tab
# map kitty_mod+right next_tab
# map shift+cmd+] next_tab
# map ctrl+tab next_tab
#: Previous tab
# map kitty_mod+left previous_tab
# map shift+cmd+[ previous_tab
# map ctrl+shift+tab previous_tab
#: New tab
# map kitty_mod+t new_tab
# map cmd+t new_tab
#: Close tab
# map kitty_mod+q close_tab
# map cmd+w close_tab
#: Close OS window
# map shift+cmd+w close_os_window
#: Move tab forward
# map kitty_mod+. move_tab_forward
#: Move tab backward
# map kitty_mod+, move_tab_backward
#: Set tab title
# map kitty_mod+alt+t set_tab_title
# map shift+cmd+i set_tab_title
#: You can also create shortcuts to go to specific tabs, with 1 being
#: the first tab, 2 the second tab and -1 being the previously active
#: tab, and any number larger than the last tab being the last tab::
#: map ctrl+alt+1 goto_tab 1
#: map ctrl+alt+2 goto_tab 2
#: Just as with new_window above, you can also pass the name of
#: arbitrary commands to run when using new_tab and new_tab_with_cwd.
#: Finally, if you want the new tab to open next to the current tab
#: rather than at the end of the tabs list, use::
#: map ctrl+t new_tab !neighbor [optional cmd to run]
#: }}}
#: Layout management {{{
#: Next layout
# map kitty_mod+l next_layout
#: You can also create shortcuts to switch to specific layouts::
#: map ctrl+alt+t goto_layout tall
#: map ctrl+alt+s goto_layout stack
#: Similarly, to switch back to the previous layout::
#: map ctrl+alt+p last_used_layout
#: There is also a toggle_layout action that switches to the named
#: layout or back to the previous layout if in the named layout.
#: Useful to temporarily "zoom" the active window by switching to the
#: stack layout::
#: map ctrl+alt+z toggle_layout stack
#: }}}
#: Font sizes {{{
#: You can change the font size for all top-level kitty OS windows at
#: a time or only the current one.
#: Increase font size
# map kitty_mod+equal change_font_size all +2.0
# map kitty_mod+plus change_font_size all +2.0
# map kitty_mod+kp_add change_font_size all +2.0
# map cmd+plus change_font_size all +2.0
# map cmd+equal change_font_size all +2.0
# map shift+cmd+equal change_font_size all +2.0
#: Decrease font size
# map kitty_mod+minus change_font_size all -2.0
# map kitty_mod+kp_subtract change_font_size all -2.0
# map cmd+minus change_font_size all -2.0
# map shift+cmd+minus change_font_size all -2.0
#: Reset font size
# map kitty_mod+backspace change_font_size all 0
# map cmd+0 change_font_size all 0
#: To setup shortcuts for specific font sizes::
#: map kitty_mod+f6 change_font_size all 10.0
#: To setup shortcuts to change only the current OS window's font
#: size::
#: map kitty_mod+f6 change_font_size current 10.0
#: }}}
#: Select and act on visible text {{{
#: Use the hints kitten to select text and either pass it to an
#: external program or insert it into the terminal or copy it to the
#: clipboard.
#: Open URL
# map kitty_mod+e open_url_with_hints
#:: Open a currently visible URL using the keyboard. The program used
#:: to open the URL is specified in open_url_with.
#: Insert selected path
# map kitty_mod+p>f kitten hints --type path --program -
#:: Select a path/filename and insert it into the terminal. Useful,
#:: for instance to run git commands on a filename output from a
#:: previous git command.
#: Open selected path
# map kitty_mod+p>shift+f kitten hints --type path
#:: Select a path/filename and open it with the default open program.
#: Insert selected line
# map kitty_mod+p>l kitten hints --type line --program -
#:: Select a line of text and insert it into the terminal. Useful for
#:: the output of things like: `ls -1`.
#: Insert selected word
# map kitty_mod+p>w kitten hints --type word --program -
#:: Select words and insert into terminal.
#: Insert selected hash
# map kitty_mod+p>h kitten hints --type hash --program -
#:: Select something that looks like a hash and insert it into the
#:: terminal. Useful with git, which uses SHA1 hashes to identify
#:: commits.
#: Open the selected file at the selected line
# map kitty_mod+p>n kitten hints --type linenum
#:: Select something that looks like filename:linenum and open it in
#:: vim at the specified line number.
#: Open the selected hyperlink
# map kitty_mod+p>y kitten hints --type hyperlink
#:: Select a hyperlink (i.e. a URL that has been marked as such by
#:: the terminal program, for example, by `ls --hyperlink=auto`).
#: The hints kitten has many more modes of operation that you can map
#: to different shortcuts. For a full description see hints kitten
#: <https://sw.kovidgoyal.net/kitty/kittens/hints/>.
#: }}}
#: Miscellaneous {{{
#: Show documentation
# map kitty_mod+f1 show_kitty_doc overview
#: Toggle fullscreen
# map kitty_mod+f11 toggle_fullscreen
# map ctrl+cmd+f toggle_fullscreen
#: Toggle maximized
# map kitty_mod+f10 toggle_maximized
#: Toggle macOS secure keyboard entry
# map opt+cmd+s toggle_macos_secure_keyboard_entry
#: Unicode input
# map kitty_mod+u kitten unicode_input
# map ctrl+cmd+space kitten unicode_input
#: Edit config file
# map kitty_mod+f2 edit_config_file
# map cmd+, edit_config_file
#: Open the kitty command shell
# map kitty_mod+escape kitty_shell window
#:: Open the kitty shell in a new window / tab / overlay / os_window
#:: to control kitty using commands.
#: Increase background opacity
# map kitty_mod+a>m set_background_opacity +0.1
#: Decrease background opacity
# map kitty_mod+a>l set_background_opacity -0.1
#: Make background fully opaque
# map kitty_mod+a>1 set_background_opacity 1
#: Reset background opacity
# map kitty_mod+a>d set_background_opacity default
#: Reset the terminal
# map kitty_mod+delete clear_terminal reset active
# map opt+cmd+r clear_terminal reset active
#:: You can create shortcuts to clear/reset the terminal. For
#:: example::
#:: # Reset the terminal
#:: map f1 clear_terminal reset active
#:: # Clear the terminal screen by erasing all contents
#:: map f1 clear_terminal clear active
#:: # Clear the terminal scrollback by erasing it
#:: map f1 clear_terminal scrollback active
#:: # Scroll the contents of the screen into the scrollback
#:: map f1 clear_terminal scroll active
#:: # Clear everything up to the line with the cursor
#:: map f1 clear_terminal to_cursor active
#:: If you want to operate on all kitty windows instead of just the
#:: current one, use all instead of active.
#:: Some useful functions that can be defined in the shell rc files
#:: to perform various kinds of clearing of the current window:
#:: .. code-block:: sh
#:: clear-only-screen() {
#:: printf "\e[H\e[2J"
#:: }
#:: clear-screen-and-scrollback() {
#:: printf "\e[H\e[3J"
#:: }
#:: clear-screen-saving-contents-in-scrollback() {
#:: printf "\e[H\e[22J"
#:: }
#:: For instance, using these escape codes, it is possible to remap
#:: Ctrl+L to both scroll the current screen contents into the
#:: scrollback buffer and clear the screen, instead of just clearing
#:: the screen. For ZSH, in ~/.zshrc, add:
#:: .. code-block:: zsh
#:: ctrl_l() {
#:: builtin print -rn -- $'\r\e[0J\e[H\e[22J' >"$TTY"
#:: builtin zle .reset-prompt
#:: builtin zle -R
#:: }
#:: zle -N ctrl_l
#:: bindkey '^l' ctrl_l
#: Clear up to cursor line
# map cmd+k clear_terminal to_cursor active
#: Reload kitty.conf
# map kitty_mod+f5 load_config_file
# map ctrl+cmd+, load_config_file
#:: Reload kitty.conf, applying any changes since the last time it
#:: was loaded. Note that a handful of options cannot be dynamically
#:: changed and require a full restart of kitty. Particularly, when
#:: changing shortcuts for actions located on the macOS global menu
#:: bar, a full restart is needed. You can also map a keybinding to
#:: load a different config file, for example::
#:: map f5 load_config /path/to/alternative/kitty.conf
#:: Note that all options from the original kitty.conf are discarded,
#:: in other words the new configuration *replace* the old ones.
#: Debug kitty configuration
# map kitty_mod+f6 debug_config
# map opt+cmd+, debug_config
#:: Show details about exactly what configuration kitty is running
#:: with and its host environment. Useful for debugging issues.
#: Send arbitrary text on key presses
#:: E.g. map ctrl+shift+alt+h send_text all Hello World
#:: You can tell kitty to send arbitrary (UTF-8) encoded text to the
#:: client program when pressing specified shortcut keys. For
#:: example::
#:: map ctrl+alt+a send_text all Special text
#:: This will send "Special text" when you press the Ctrl+Alt+A key
#:: combination. The text to be sent decodes ANSI C escapes
#:: <https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-
#:: Quoting.html> so you can use escapes like \e to send control
#:: codes or \u21fb to send Unicode characters (or you can just input
#:: the Unicode characters directly as UTF-8 text). You can use
#:: `kitten show_key` to get the key escape codes you want to
#:: emulate.
#:: The first argument to send_text is the keyboard modes in which to
#:: activate the shortcut. The possible values are normal,
#:: application, kitty or a comma separated combination of them. The
#:: modes normal and application refer to the DECCKM cursor key mode
#:: for terminals, and kitty refers to the kitty extended keyboard
#:: protocol. The special value all means all of them.
#:: Some more examples::
#:: # Output a word and move the cursor to the start of the line (like typing and pressing Home)
#:: map ctrl+alt+a send_text normal Word\e[H
#:: map ctrl+alt+a send_text application Word\eOH
#:: # Run a command at a shell prompt (like typing the command and pressing Enter)
#:: map ctrl+alt+a send_text normal,application some command with arguments\r
#: Open kitty Website
# map shift+cmd+/ open_url https://sw.kovidgoyal.net/kitty/
#: Hide macOS kitty application
# map cmd+h hide_macos_app
#: Hide macOS other applications
# map opt+cmd+h hide_macos_other_apps
#: Minimize macOS window
# map cmd+m minimize_macos_window
#: Quit kitty
# map cmd+q quit
#: }}}
#: }}}
+4
View File
@@ -0,0 +1,4 @@
gesture swipe up xdotool key Super+Tab
gesture swipe left xdotool key Super+Right
gesture swipe down xdotool key Super+Escape
gesture swipe right xdotool key Super+Left
+27
View File
@@ -0,0 +1,27 @@
[
{
"label": "Sleep",
"exec": "systemctl suspend",
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-suspend.svg"
},
{
"label": "Hibernate",
"exec": "systemctl hibernate",
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-hibernate.svg"
},
{
"label": "Logout",
"exec": "hyprctl dispatch exit",
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-log-out.svg"
},
{
"label": "Reboot",
"exec": "systemctl reboot",
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-reboot.svg"
},
{
"label": "Shutdown",
"exec": "systemctl -i poweroff",
"icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-shutdown.svg"
}
]
+35
View File
@@ -0,0 +1,35 @@
window {
background-color: rgba (0, 0, 0, 1.0)
}
/* Outer bar container, takes all the window width/height */
#outer-box {
margin: 0px
}
/* Inner bar container, surrounds buttons */
#inner-box {
background-color: rgba (0, 0, 0, 0.85);
border-radius: 10px;
border-style: none;
border-width: 1px;
border-color: rgba (156, 142, 122, 0.7);
padding: 5px;
margin: 5px
}
button, image {
background: none;
border: none;
box-shadow: none
}
button {
padding-left: 10px;
padding-right: 10px;
margin: 5px
}
button:hover {
background-color: rgba (255, 255, 255, 0.1)
}
+129
View File
@@ -0,0 +1,129 @@
{
"layer": "bottom",
"position": "bottom",
"mod": "dock",
"exclusive": true,
"gtk-layer-shell": true,
"margin-bottom": -1,
"passthrough": false,
"height": 41,
"modules-left": [
"custom/os_button",
"hyprland/workspaces"
// "wlr/taskbar"
],
"modules-center": [],
"modules-right": [
"cpu",
// "temperature",
"memory",
// "disk",
// "tray",
"pulseaudio",
"network",
"battery",
"clock"
],
"hyprland/workspaces": {
"icon-size": 32,
"spacing": 16,
"on-scroll-up": "hyprctl dispatch workspace r+1",
"on-scroll-down": "hyprctl dispatch workspace r-1"
},
"custom/os_button": {
"format": "☕",
"on-click": "nwg-bar",
"tooltip": false
},
"cpu": {
"interval": 5,
"format": "💻 {usage}%",
"max-length": 10
},
"temperature": {
"hwmon-path-abs": "/sys/devices/platform/coretemp.0/hwmon",
"input-filename": "temp2_input",
"critical-threshold": 75,
"tooltip": false,
"format-critical": "({temperatureC}°C)",
"format": "({temperatureC}°C)"
},
"disk": {
"interval": 30,
"format": "💾 {percentage_used}%",
"path": "/",
"tooltip": true,
"unit": "GB",
"tooltip-format": "Available {free} of {total}"
},
"memory": {
"interval": 10,
"format": "🐏 {percentage}%",
"max-length": 10,
"tooltip": true,
"tooltip-format": "RAM - {used:0.1f}GiB used"
},
"wlr/taskbar": {
"format": "{icon} {title:.17}",
"icon-size": 28,
"spacing": 3,
"on-click-middle": "close",
"tooltip-format": "{title}",
"ignore-list": [],
"on-click": "activate"
},
"tray": {
"icon-size": 18,
"spacing": 3
},
"clock": {
"format": " {:%R\n %d.%m.%Y}",
"actions": {
"on-click-right": "mode",
"on-click-forward": "tz_up",
"on-click-backward": "tz_down",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down"
}
},
"network": {
"format-wifi": " {icon}",
"format-ethernet": " 🔌 ",
"format-disconnected": " 🟥"
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 20
},
"format": "{icon} {capacity}%",
"format-charging": "🔋 {capacity}%",
"format-plugged": "🔌 {capacity}%",
"format-alt": "{time} {icon}",
"format-icons": [
"🔋"
]
},
"pulseaudio": {
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-icons": {
"alsa_output.pci-0000_00_1f.3.analog-stereo": "",
"alsa_output.pci-0000_00_1f.3.analog-stereo-muted": "",
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"phone-muted": "",
"portable": "",
"car": "",
"default": [
"",
""
]
},
"scroll-step": 1,
"on-click": "pavucontrol"
}
}
-158
View File
@@ -1,158 +0,0 @@
{
"layer": "bottom",
"position": "top",
"name": "waybar",
"width": "50px",
"modules-left": [
"hyprland/workspaces"
],
"modules-center": [
"group/hardware"
],
"modules-right": [
"group/sound",
"group/right-side"
],
"hyprland/workspaces": {
"format": "{icon}",
"tooltip": false,
"all-outputs": true,
"format-icons": {
"active": "",
"default": ""
}
},
"clock": {
"format": "<span color='#b4befe'> </span>{:%H:%M}",
},
"backlight": {
"device": "intel_backlight",
"format": "<span color='#b4befe'>{icon}</span> {percent}%",
"format-icons": [
"",
"",
"",
"",
"",
"",
"",
"",
""
]
},
"pulseaudio": {
"format": "<span color='#b4befe'>{icon}</span> {volume}%",
"format-muted": "",
"tooltip": false,
"format-icons": {
"headphone": "",
"default": [
"",
"",
"󰕾",
"󰕾",
"󰕾",
"",
"",
""
]
},
"scroll-step": 1,
"on-click": "pavucontrol"
},
"pulseaudio/slider": {
"min": 0,
"max": 100,
"orientation": "horizontal"
},
"network": {
"format": "{ifname}",
"format-wifi": "<span color='#b4befe'> </span>{essid}",
"format-ethernet": "{ipaddr}/{cidr} ",
"format-disconnected": "<span color='#b4befe'>󰖪 </span>No Network",
"tooltip": false,
"on-click": "nm-connection-editor"
},
"group/sound": {
"orientation": "inherit",
"drawer": {
"transition-duration": 500,
"transition-left-to-right": false
},
"modules": [
"pulseaudio",
"pulseaudio/slider"
]
},
"group/right-side": {
"orientation": "inherit",
"drawer": {
"transition-duration": 500,
"transition-left-to-right": false
},
"modules": [
"battery",
"backlight",
"custom/logout",
"custom/suspend"
]
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "{capacity}%|{power}w {icon}",
"format-icons": ["", "", "", "", ""],
"design-capacity": true
},
"custom/logout": {
"format": "Logout",
"tooltip": false,
"on-click": "hyprctl dispatch exit"
},
"custom/suspend": {
"format": "Suspend",
"tooltip": false,
"on-click": "systemctl suspend"
},
"group/hardware": {
"orientation": "inherit",
"drawer": {
"transition-duration": 500,
"transition-left-to-right": false
},
"modules": [
"clock",
"bluetooth",
"cpu",
"memory",
"network",
"temperature"
]
},
"bluetooth": {
"on-click": "blueman-manager"
},
"cpu": {
"interval": 1,
"format": "{icon}cpu",
"format-icons": [
"<span color='#69ff94'>▁</span>", // green
"<span color='#2aa9ff'>▂</span>", // blue
"<span color='#f8f8f2'>▃</span>", // white
"<span color='#f8f8f2'>▄</span>", // white
"<span color='#ffffa5'>▅</span>", // yellow
"<span color='#ffffa5'>▆</span>", // yellow
"<span color='#ff9977'>▇</span>", // orange
"<span color='#dd532e'>█</span>" // red
]
},
"memory": {
"interval": 30,
"format": "{used:0.1f}G/{total:0.1f}G"
},
"temperature": {
"format": "{temperatureC}°C "
}
}
+162 -34
View File
@@ -1,53 +1,181 @@
/*base background color*/
@define-color bg_main rgba(25, 25, 25, 0.65);
@define-color bg_main_tooltip rgba(0, 0, 0, 0.7);
/*base background color of selections */
@define-color bg_hover rgba(200, 200, 200, 0.3);
/*base background color of active elements */
@define-color bg_active rgba(100, 100, 100, 0.5);
/*base border color*/
@define-color border_main rgba(255, 255, 255, 0.2);
/*text color for entries, views and content in general */
@define-color content_main white;
/*text color for entries that are unselected */
@define-color content_inactive rgba(255, 255, 255, 0.25);
* { * {
border: none; text-shadow: none;
font-family: 'Fira Code', 'Symbols Nerd Font Mono'; box-shadow: none;
font-size: 16px; border: none;
font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"'; border-radius: 0;
/* min-height: 25px; */ font-family: "Fira Code", "Ubuntu";
font-weight: 600;
font-size: 12.7px;
} }
window#waybar { window#waybar {
background: transparent; background: @bg_main;
border-top: 1px solid @border_main;
color: @content_main;
} }
tooltip {
background: @bg_main_tooltip;
border-radius: 5px;
border-width: 1px;
border-style: solid;
border-color: @border_main;
}
tooltip label{
color: @content_main;
}
#custom-os_button {
font-family: "JetBrainsMono Nerd Font";
font-size: 24px;
padding-left: 12px;
padding-right: 20px;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#custom-os_button:hover {
background: @bg_hover;
color: @content_main;
}
#workspaces {
color: transparent;
margin-right: 1.5px;
margin-left: 1.5px;
}
#workspaces button { #workspaces button {
color: #b4befe; padding: 3px;
color: @content_inactive;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#workspaces button.active {
color: @content_main;
border-bottom: 3px solid white;
}
#workspaces button.focused {
color: @bg_active;
}
#workspaces button.urgent {
background: rgba(255, 200, 0, 0.35);
border-bottom: 3px dashed @warning_color;
color: @warning_color;
}
#workspaces button:hover {
background: @bg_hover;
color: @content_main;
} }
window#waybar > box { #taskbar {
}
#taskbar button {
min-width: 130px;
border-bottom: 3px solid rgba(255, 255, 255, 0.3);
margin-left: 2px;
margin-right: 2px;
padding-left: 8px;
padding-right: 8px;
color: white;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#taskbar button.active {
border-bottom: 3px solid white;
background: @bg_active;
}
#taskbar button:hover {
border-bottom: 3px solid white;
background: @bg_hover;
color: @content_main;
}
#cpu, #disk, #memory {
padding:3px;
}
#temperature {
color: transparent;
font-size: 0px;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#temperature.critical {
padding-right: 3px;
color: @warning_color;
font-size: initial;
border-bottom: 3px dashed @warning_color;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#window {
border-radius: 10px; border-radius: 10px;
margin-top: 5px; margin-left: 20px;
margin-left: 15px; margin-right: 20px;
margin-right: 15px;
margin-bottom: 0px;
padding-bottom: 0px;
} }
#tray{
widget > * { margin-left: 5px;
border-radius: 10px; margin-right: 5px;
color: #cdd6f4; }
border-left: 1px solid #cdd6f4; #tray > .passive {
border-right: 1px solid #cdd6f4; border-bottom: none;
padding-left: 10px; }
padding-right: 10px; #tray > .active {
margin-left: 10px; border-bottom: 3px solid white;
}
#tray > .needs-attention {
border-bottom: 3px solid @warning_color;
}
#tray > widget {
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#tray > widget:hover {
background: @bg_hover;
} }
#pulseaudio-slider scale { #pulseaudio {
padding: 0; font-family: "JetBrainsMono Nerd Font";
padding-left: 3px;
padding-right: 3px;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
} }
/* #pulseaudio-slider scale contents { #pulseaudio:hover {
min-height: 0px; background: @bg_hover;
} */
#pulseaudio-slider trough {
background-color: #cdd6f4;
} }
#pulseaudio-slider highlight {
background-color: green; #network {
min-height: 16px; padding-left: 3px;
padding-right: 3px;
} }
#pulseaudio-slider trough, #backlight-slider trough {
min-width: 100px; #language {
padding-left: 5px;
padding-right: 5px;
}
#clock {
padding-right: 5px;
padding-left: 5px;
transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#clock:hover {
background: @bg_hover;
} }
-1
View File
@@ -1 +0,0 @@
/etc/nixos/configuration.nix
-156
View File
@@ -1,156 +0,0 @@
{
"nodes": {
"devenv": {
"locked": {
"dir": "src/modules",
"lastModified": 1713632052,
"owner": "cachix",
"repo": "devenv",
"rev": "9c134f73b11b298674317b84292fa126744a65fb",
"treeHash": "b23850beedbddb3c23ecd5320f95d8c4525aeb18",
"type": "github"
},
"original": {
"dir": "src/modules",
"owner": "cachix",
"repo": "devenv",
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1696426674,
"owner": "edolstra",
"repo": "flake-compat",
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
"treeHash": "2addb7b71a20a25ea74feeaf5c2f6a6b30898ecb",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1710146030,
"owner": "numtide",
"repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
"treeHash": "bd263f021e345cb4a39d80c126ab650bebc3c10c",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"gitignore": {
"inputs": {
"nixpkgs": [
"pre-commit-hooks",
"nixpkgs"
]
},
"locked": {
"lastModified": 1709087332,
"owner": "hercules-ci",
"repo": "gitignore.nix",
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
"treeHash": "ca14199cabdfe1a06a7b1654c76ed49100a689f9",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "gitignore.nix",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1713596654,
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "fd16bb6d3bcca96039b11aa52038fafeb6e4f4be",
"treeHash": "fadc8eefb11cd63b3a7f59eaf6fac47ece269476",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1713564160,
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "bc194f70731cc5d2b046a6c1b3b15f170f05999c",
"treeHash": "f0682fcd74b6547997b0a93d9d7d1047ef695b3f",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-23.11",
"repo": "nixpkgs",
"type": "github"
}
},
"pre-commit-hooks": {
"inputs": {
"flake-compat": "flake-compat",
"flake-utils": "flake-utils",
"gitignore": "gitignore",
"nixpkgs": [
"nixpkgs"
],
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1712897695,
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "40e6053ecb65fcbf12863338a6dcefb3f55f1bf8",
"treeHash": "9ba338feee8e6b2193c305f46b65b0fef49816b7",
"type": "github"
},
"original": {
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"type": "github"
}
},
"root": {
"inputs": {
"devenv": "devenv",
"nixpkgs": "nixpkgs",
"pre-commit-hooks": "pre-commit-hooks"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"treeHash": "cce81f2a0f0743b2eb61bc2eb6c7adbe2f2c6beb",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}
-11
View File
@@ -1,11 +0,0 @@
{ pkgs, ... }:
{
languages.nix.enable = true;
packages = [
pkgs.nixpkgs-fmt
];
pre-commit = {
hooks.nixpkgs-fmt.enable = true;
};
}
-3
View File
@@ -1,3 +0,0 @@
inputs:
nixpkgs:
url: github:NixOS/nixpkgs/nixpkgs-unstable
-14
View File
@@ -1,14 +0,0 @@
{ ... }:
{
imports =
[
(import ./main.nix {
hostName = "fw1";
user = {
name = "ari";
fullName = "Ari Sosnovsky";
email = "ariel@sosnovsky.ca";
};
})
];
}
Generated
+328
View File
@@ -0,0 +1,328 @@
{
"nodes": {
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1696426674,
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-compat_2": {
"flake": false,
"locked": {
"lastModified": 1717312683,
"narHash": "sha256-FrlieJH50AuvagamEvWMIE6D2OAnERuDboFDYAED/dE=",
"owner": "nix-community",
"repo": "flake-compat",
"rev": "38fd3954cf65ce6faf3d0d45cd26059e059f07ea",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "flake-compat",
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1705309234,
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"ghostty": {
"inputs": {
"flake-compat": "flake-compat",
"nixpkgs-stable": "nixpkgs-stable",
"nixpkgs-unstable": "nixpkgs-unstable",
"zig": "zig"
},
"locked": {
"lastModified": 1736455421,
"narHash": "sha256-TsDbQIHOi84hTjb0SSLSyX27P1MA1DVLagX8uik+WGk=",
"owner": "ghostty-org",
"repo": "ghostty",
"rev": "6ef757a8f85db7a124d370378850339a899c9e65",
"type": "github"
},
"original": {
"owner": "ghostty-org",
"repo": "ghostty",
"type": "github"
}
},
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1736373539,
"narHash": "sha256-dinzAqCjenWDxuy+MqUQq0I4zUSfaCvN9rzuCmgMZJY=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "bd65bc3cde04c16755955630b344bc9e35272c56",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-24.11",
"repo": "home-manager",
"type": "github"
}
},
"nix-darwin": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1736370755,
"narHash": "sha256-iWcjToBpx4PUd74uqvIGAfqqVfyrvRLRauC/SxEKIF0=",
"owner": "LnL7",
"repo": "nix-darwin",
"rev": "57733bd1dc81900e13438e5b4439239f1b29db0e",
"type": "github"
},
"original": {
"owner": "LnL7",
"repo": "nix-darwin",
"type": "github"
}
},
"nix-flatpak": {
"locked": {
"lastModified": 1736334301,
"narHash": "sha256-370z+WLVnD7LrN/SvTCZxPl/XPTshS5NS2dHN4iyK6o=",
"owner": "gmodena",
"repo": "nix-flatpak",
"rev": "5f4ec93d432cd5288f6fe20d8842dceb5a065885",
"type": "github"
},
"original": {
"owner": "gmodena",
"ref": "main",
"repo": "nix-flatpak",
"type": "github"
}
},
"nixos-cosmic": {
"inputs": {
"flake-compat": "flake-compat_2",
"nixpkgs": [
"unstable"
],
"nixpkgs-stable": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1736513564,
"narHash": "sha256-eAKwqMdGWambTbuZvAp3YYhAoWjaIFWGvxDAxxyh/Tg=",
"owner": "lilyinstarlight",
"repo": "nixos-cosmic",
"rev": "0855bf33427209e4f5e3d2d0968a14784525e929",
"type": "github"
},
"original": {
"owner": "lilyinstarlight",
"repo": "nixos-cosmic",
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1736441705,
"narHash": "sha256-OL7leZ6KBhcDF3nEKe4aZVfIm6xQpb1Kb+mxySIP93o=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "8870dcaff63dfc6647fb10648b827e9d40b0a337",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1736200483,
"narHash": "sha256-JO+lFN2HsCwSLMUWXHeOad6QUxOuwe9UOAF/iSl1J4I=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "3f0a8ac25fb674611b98089ca3a5dd6480175751",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-24.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1733423277,
"narHash": "sha256-TxabjxEgkNbCGFRHgM/b9yZWlBj60gUOUnRT/wbVQR8=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "e36963a147267afc055f7cf65225958633e536bf",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "release-24.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1733229606,
"narHash": "sha256-FLYY5M0rpa5C2QAE3CKLYAM6TwbKicdRK6qNrSHlNrE=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "566e53c2ad750c84f6d31f9ccb9d00f823165550",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"ghostty": "ghostty",
"home-manager": "home-manager",
"nix-darwin": "nix-darwin",
"nix-flatpak": "nix-flatpak",
"nixos-cosmic": "nixos-cosmic",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"systems": "systems_2",
"unstable": "unstable",
"unstable-home-manager": "unstable-home-manager"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"unstable": {
"locked": {
"lastModified": 1736519262,
"narHash": "sha256-qnbii+cIEgxrQ0g3ayiSYVU3nmmRj8AOD9miY3fmx7k=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "3718eb9874c52f0fd82c2aac2a27fc012fa5f858",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixpkgs",
"type": "github"
}
},
"unstable-home-manager": {
"inputs": {
"nixpkgs": [
"unstable"
]
},
"locked": {
"lastModified": 1736508663,
"narHash": "sha256-ZOaGwa+WnB7Zn3YXimqjmIugAnHePdXCmNu+AHkq808=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "2532b500c3ed2b8940e831039dcec5a5ea093afc",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "master",
"repo": "home-manager",
"type": "github"
}
},
"zig": {
"inputs": {
"flake-compat": [
"ghostty"
],
"flake-utils": "flake-utils",
"nixpkgs": [
"ghostty",
"nixpkgs-stable"
]
},
"locked": {
"lastModified": 1717848532,
"narHash": "sha256-d+xIUvSTreHl8pAmU1fnmkfDTGQYCn2Rb/zOwByxS2M=",
"owner": "mitchellh",
"repo": "zig-overlay",
"rev": "02fc5cc555fc14fda40c42d7c3250efa43812b43",
"type": "github"
},
"original": {
"owner": "mitchellh",
"repo": "zig-overlay",
"type": "github"
}
}
},
"root": "root",
"version": 7
}
+213
View File
@@ -0,0 +1,213 @@
{
inputs = {
# Hardware
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
systems.url = "github:nix-systems/default";
# Nixpkgs
unstable.url = "github:NixOS/nixpkgs/master";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
# Cosmic
nixos-cosmic = {
url = "github:lilyinstarlight/nixos-cosmic";
inputs.nixpkgs-stable.follows = "nixpkgs";
inputs.nixpkgs.follows = "unstable";
};
# Terminal
ghostty = {
url = "github:ghostty-org/ghostty";
};
# Flatpak
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=main";
# Home manager
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
unstable-home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "unstable";
};
# Macos
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{ self
, nixos-hardware
, nixpkgs
, systems
, unstable
, home-manager
, unstable-home-manager
, nix-darwin
, nixos-cosmic
, nix-flatpak
, ghostty
}:
let
user = {
name = "ari";
fullName = "Ari Sosnovsky";
email = "ariel@sosnovsky.ca";
};
homeManagerVersion = "24.11";
# Local Services
localNixCaches = {
urls = [
"http://minipc1.lab.internal:5000"
];
keys = [
"minipc1.lab.internal:eIoib1JgcBEd0YKdW95QlRA2eCKDs+WxNhWhkA1wffc="
];
};
localDockerRegistries = [ "minipc1.lab.internal:5001" ];
hlCommonSettings = {
system = "x86_64-linux";
user = user;
localNixCaches = localNixCaches;
homeManagerVersion = homeManagerVersion;
os = {
enable = true;
firewall = { enable = false; };
enableFonts = true;
hardware = { enable = false; };
enablePrometheusExporters = true;
containers = {
runtime = "docker";
localDockerRegistries = localDockerRegistries;
};
};
};
# Lib Config
libConfig = {
inherit
nix-darwin
hlCommonSettings
systems
nixos-cosmic
nix-flatpak
;
specialArgs = {
inputs = {
inherit
ghostty
unstable;
};
};
};
# Libs
lib = (import modules/lib.nix ({
nixpkgs = nixpkgs;
home-manager = home-manager;
} // libConfig));
unstableLib = (import modules/lib.nix ({
nixpkgs = unstable;
home-manager = unstable-home-manager;
} // libConfig));
homelabServices = (
(lib.makeHLServices {
user = user;
nodeNames = [
"hl-minipc1"
"hl-minipc2"
"hl-terra1"
"hl-bigbox1"
];
})
);
in
{
# Dev Setups
# -------------
devShells =
lib.eachSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in
{
default = pkgs.mkShell {
name = "nixos-setup";
packages = with pkgs; [
nixpkgs-fmt
nixd
];
shellHook = ''
export PS1="<nixos-setup> $PS1"
export PATH=$PATH:$(pwd)/bin
'';
};
});
lib = lib;
formatter =
lib.eachSystem (system: nixpkgs.legacyPackages.${system}.nixpkgs-fmt);
# None-NIXOS LINUX Setups
# -------------
homeConfigurations."${user.name}" = lib.makeHomeManagerUsers {
user = user // { enableDevelopmentKit = true; };
homeManagerVersion = homeManagerVersion;
};
# NIXOS LINUX Setups
# -------------
nixosConfigurations = {
# NIXOS Framework Setups
# -------------
fwbook = lib.makeNixOsModule {
system = "x86_64-linux";
user = user // {
enableDevelopmentKit = true;
};
systemStateVersion = "23.11";
hostName = "fwbook";
localNixCaches = localNixCaches;
localDockerRegistries = localDockerRegistries;
homeManagerVersion = homeManagerVersion;
desktop = {
enable = true;
user = user;
enableKDE = true;
enableHypr = false;
enableX11 = true;
enableWine = true;
};
os = {
enable = true;
firewall = { enable = false; };
enableFonts = true;
enableNetworking = true;
enableSSH = false;
hardware = { enable = true; };
containers = {
localDockerRegistries = localDockerRegistries;
runtime = "docker";
};
enablePrometheusExporters = true;
};
configuration = { ... }: {
imports = [
nixos-hardware.nixosModules.framework-13-7040-amd
(import ./hosts/fwbook.nix {
user = user;
unstable = unstableLib.pkgs.x86_64-linux;
})
];
};
};
# NIXOS Framework Homelab
# -------------
hl-fws1 = lib.makeHLService {
hostName = "hl-fws1";
configuration = { ... }: {
imports = [
nixos-hardware.nixosModules.framework-11th-gen-intel
(import (./hosts/hl-fws1.nix) { user = user; })
];
};
systemStateVersion = "24.05";
};
} // homelabServices;
};
}
-39
View File
@@ -1,39 +0,0 @@
{ pkgs, config, ... }:
let
user = {
name = "ari";
fullName = "Ari Sosnovsky";
email = "ariel@sosnovsky.ca";
};
dataDir = "/mnt/Data";
in
{
imports =
[
/etc/nixos/cachix.nix
<nixos-hardware/framework/13-inch/7040-amd>
(import /home/ari/nixos-setup/main.nix {
enableFingerPrint = true;
hostName = "fwbook";
user = user;
})
/home/ari/nixos-setup/modules/optional/amd-packages.nix
/home/ari/nixos-setup/modules/optional/gnome.nix
(import /home/ari/nixos-setup/modules/optional/hyprland.nix {
user = user;
})
];
hardware.framework.amd-7040.preventWakeOnAC = true;
services.fwupd.enable = true;
fileSystems."${dataDir}" = {
device = "/dev/sda1";
fsType = "ext4";
options = [
"users"
"nofail"
];
};
# home-manager.users.${user.name}.zsh.extraEnv = ''
# export KUBECONFIG=${dataDir}/local/kube/config.yml
# '';
}
+45
View File
@@ -0,0 +1,45 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules =
[ "nvme" "xhci_pci" "thunderbolt" "uas" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/3fbf3ccf-655a-4040-b898-b97a1d555912";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/3342-B2BE";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
fileSystems."/mnt/Data" = {
device = "/dev/disk/by-uuid/239db4ac-762d-4d76-8297-ccd37bcdfd8b";
fsType = "ext4";
options = [ "users" "exec" "nofail" ];
};
swapDevices =
[
{ device = "/dev/disk/by-uuid/5175a4b0-0067-47c6-b7da-35acb247f134"; }
{
device = "/swapfile";
size = 16 * 1024; # 16GB
}
];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+149
View File
@@ -0,0 +1,149 @@
{ user, unstable }:
{ pkgs, ... }:
let
zshFWBook = builtins.filterSource (p: t: true) ./scripts/fwbook;
zshFunctions = zshFWBook + "/functions.sh";
openPorts = [
8000
];
in
{
imports = [ ./fwbook.hardware-configuration.nix ];
# Skyg
environment.sessionVariables.COSMIC_DATA_CONTROL_ENABLED = 1;
skyg = {
user.enable = true;
server.admin.enable = true;
core.qemu.enable = true;
nixos = {
common.hardware = {
sound.enable = true;
laptop-power-mgr.enable = true;
amdgpu.enable = true;
};
desktop = {
enable = true;
kde.enable = true;
cosmic.enable = false;
crypto.enable = true;
};
};
networkDrives = {
enable = true;
options = [
"x-systemd.automount"
"noauto"
];
};
};
services.displayManager.defaultSession = "plasmax11";
# Firmware updater
services.fwupd.enable = true;
services.fwupd.package = (import
(builtins.fetchTarball {
url =
"https://github.com/NixOS/nixpkgs/archive/bb2009ca185d97813e75736c2b8d1d8bb81bde05.tar.gz";
sha256 = "sha256:003qcrsq5g5lggfrpq31gcvj82lb065xvr7bpfa8ddsw8x4dnysk";
})
{ inherit (pkgs) system; }).fwupd;
services.fprintd.enable = true;
# Yubikey
services.yubikey-agent.enable = true;
# Enable CUPS to print documents.
services.printing.enable = true;
# Bluetooth
hardware.bluetooth.settings.General = { ControllerMode = "bredr"; };
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.tmp.useTmpfs = true;
# Packages
environment.systemPackages = (with pkgs; [
# python
python312
# Work
postgresql
dvc-with-remotes
google-cloud-sdk
awscli
# Util
libusb1
]);
# # Gaming
programs.steam = {
enable = true;
extest.enable = true;
};
# Chrome
programs.chromium = {
enable = true;
enablePlasmaBrowserIntegration = true;
extensions = [
"nngceckbapebfimnlniiiahkandclblb" # bitwarden
"gcbommkclmclpchllfjekcdonpmejbdp" # https everywhere
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
];
};
# Ollama
services.ollama = {
enable = true;
host = "0.0.0.0";
port = 11434;
acceleration = "rocm";
package = unstable.ollama;
rocmOverrideGfx = "11.0.2";
};
# # Brother Printer
hardware.sane.brscan5.enable = true;
# # Display Managers
services.xserver.videoDrivers =
[ "modesetting" "fbdev" ];
# Kernel
boot.kernelPackages = pkgs.linuxPackages_zen;
# Add Functions
home-manager.users.${user.name}.programs.zsh.initExtra = ''
source ${zshFunctions}
'';
environment.localBinInPath = true;
# Family Storage
fileSystems."/mnt/EightTerra/FamilyStorage" = {
device = "tnas1.lab.internal:/mnt/EightTerra/FamilyStorage";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" ];
};
# Remote Builder
nix.buildMachines = [{
hostName = "root@bigbox1.lab.internal";
system = "x86_64-linux";
protocol = "ssh-ng";
maxJobs = 1;
speedFactor = 2;
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ ];
}];
nix.distributedBuilds = true;
# optional, useful when the builder has a faster internet connection than yours
nix.extraOptions = ''
builders-use-substitutes = true
'';
# Firewall
networking.firewall.allowedUDPPorts = openPorts;
networking.firewall.allowedTCPPorts = openPorts;
# random dev work
networking.hosts = {
"0.0.0.0" = [
"auth.me.internal"
"me.internal"
"me.local"
"api.me.internal"
];
"127.0.0.1" = [
"auth.me.internal"
"me.internal"
"me.local"
"api.me.internal"
];
};
}
@@ -0,0 +1,38 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{
device = "/dev/disk/by-uuid/6302dadf-57b7-4213-a7a5-2ba97f941e49";
fsType = "ext4";
};
fileSystems."/boot" =
{
device = "/dev/disk/by-uuid/BBF9-1744";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [{
device = "/var/lib/swapfile";
size = 32 * 1024;
}];
zramSwap.enable = true;
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+77
View File
@@ -0,0 +1,77 @@
{ ... }:
{ pkgs, ... }:
{
imports = [ ./hl-bigbox1.hardware-configuration.nix ];
skyg = {
user.enable = true;
server.admin.enable = true;
server.exporters.enable = true;
server.timers = {
jellyfin-backups = {
OnCalendar = "daily";
wantedBy = [
"mnt-terra1-Data-apps.mount"
];
script = ''
set -eu
${pkgs.rsync}/bin/rsync -avpzP --delete /opt/jellyfin /mnt/terra1/Data/apps/
'';
};
};
nixos = {
desktop.enable = false;
common.ssh-server.enable = true;
common.containers.openMetricsPort = true;
common.hardware = {
nvidia.enable = true;
amdgpu.enable = true;
udevrules.coraltpu.enable = true;
};
server.services = {
ai.enable = true;
jellyfin.enable = false;
dockge = {
enable = true;
openFirewall = true;
volumes = {
stacks = {
nfsServer = "terra1.lab.internal";
share = "/mnt/Data/apps/bigbox/dockge/stacks";
};
data = {
nfsServer = "terra1.lab.internal";
share = "/mnt/Data/apps/bigbox/dockge/data";
};
};
};
};
};
networkDrives.enable = true;
};
users.users.ari.extraGroups = [ "input" ];
# firmware updater
services.fwupd.enable = true;
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.tmp.useTmpfs = true;
boot.kernelPackages = pkgs.linuxPackages_hardened;
# Wake on Lan
networking.interfaces.enp4s0.wakeOnLan.enable = true;
networking.interfaces.lo.wakeOnLan.enable = true;
networking.interfaces.tailscale0.wakeOnLan.enable = true;
# Suspend
services.autosuspend.enable = false;
services.xserver.displayManager.gdm.autoSuspend = false;
environment.systemPackages = with pkgs; [
# steam-tui
# steam-run
# steamPackages.steamcmd
ollama
jellyfin
jellyfin-web
jellyfin-ffmpeg
];
}
+32
View File
@@ -0,0 +1,32 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usbhid" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{
device = "/dev/disk/by-uuid/2d96049a-938b-4f08-b73a-5baae8eaef2a";
fsType = "ext4";
};
fileSystems."/boot" =
{
device = "/dev/disk/by-uuid/0B62-BBC0";
fsType = "vfat";
};
swapDevices =
[{ device = "/dev/disk/by-uuid/cf34dac4-3757-44a8-9458-14943c60d418"; }];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+21
View File
@@ -0,0 +1,21 @@
{ user }:
{ pkgs, lib, config, ... }: {
imports = [ ./hl-fws1.hardware-configuration.nix ];
skyg.user.enable = true;
skyg.nixos.common.ssh-server.enable = true;
skyg.server.admin.enable = true;
skyg.networkDrives.options = [
"x-systemd.automount"
"auto"
];
# firmware updater
services.fwupd.enable = true;
hardware.framework.enableKmod = true;
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.tmp.useTmpfs = true;
}
@@ -0,0 +1,30 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules =
[ "ahci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/142c88f4-b1bc-4ed9-92ee-2c52cdfa4274";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/01FE-EDCC";
fsType = "vfat";
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+63
View File
@@ -0,0 +1,63 @@
{ user }:
{ ... }:
let
openPorts = [
5000
5001
8000
22
];
in
{
imports = [ ./hl-minipc1.hardware-configuration.nix ];
skyg.user.enable = true;
skyg.nixos.common.ssh-server.enable = true;
skyg.nixos.common.containers.openMetricsPort = true;
skyg.server.admin.enable = true;
skyg.server.exporters.enable = true;
skyg.networkDrives = {
enable = true;
};
skyg.core.tailscaleRouting = "both";
# # Nix Stores
services.nix-serve = {
enable = true;
secretKeyFile = "/var/keys/cache-priv-key.pem";
port = 5000;
};
# firmware updater
services.fwupd.enable = true;
# # Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# # Data
fileSystems."/mnt/Data" = {
device = "/dev/disk/by-uuid/ee4a60a8-b0d1-4f5c-a554-1d1d84c89e34";
fsType = "ext4";
options = [ "defaults" ];
};
# # Services
skyg.nixos.server.services = {
audiobookshelf = {
enable = true;
host = "0.0.0.0";
openFirewall = true;
port = 8000;
configDir = "/mnt/Data/audiobookshelf/config";
metadtaDir = "/mnt/Data/audiobookshelf/metadata";
};
};
services.dockerRegistry = {
enable = true;
storagePath = "/mnt/Data/docker-registry";
port = 5001;
openFirewall = true;
listenAddress = "0.0.0.0";
enableDelete = true;
};
# Firewall
networking.firewall.allowedUDPPorts = openPorts;
networking.firewall.allowedTCPPorts = openPorts;
}
@@ -0,0 +1,28 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/2c1a9e86-5b82-4545-bea1-c1b6b688fdf8";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/6583-1C43";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+42
View File
@@ -0,0 +1,42 @@
{ user }:
{ pkgs
, ...
}:
{
imports = [ ./hl-minipc2.hardware-configuration.nix ];
skyg.user.enable = true;
skyg.nixos.common.ssh-server.enable = true;
skyg.nixos.common.containers.openMetricsPort = true;
skyg.server.exporters.enable = true;
skyg.networkDrives = {
enable = true;
};
# firmware updater
services.fwupd.enable = true;
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Disable firewall
networking.firewall.enable = false;
# Services
skyg.nixos.server.services = {
scrypted.enable = true;
dockge = {
enable = true;
openFirewall = true;
volumes = {
stacks = {
nfsServer = "terra1.lab.internal";
share = "/mnt/Data/apps/arrs/dockge/stacks";
};
data = {
nfsServer = "terra1.lab.internal";
share = "/mnt/Data/apps/arrs/dockge/data";
};
};
};
};
}
@@ -0,0 +1,71 @@
{ config, lib, pkgs, modulesPath, ... }:
let
kernel = config.boot.kernelPackages.kernel;
hddled = pkgs.stdenv.mkDerivation rec {
name = "hddled_tmj33-${version}-${kernel.version}";
version = "0.3";
src = pkgs.fetchFromGitHub {
owner = "arnarg";
repo = "hddled_tmj33";
rev = version;
sha256 = "sha256-sQ8fLK8NP5sHw/9gJTO6lqgWfwmi1G5KDwWuWujNCZw=";
};
nativeBuildInputs = kernel.moduleBuildDependencies;
# We don't want to depmod yet, just build and package the module
preConfigure = ''
sed -i 's|depmod|#depmod|' Makefile
'';
makeFlags = [
"TARGET=${kernel.modDirVersion}"
"KERNEL_MODULES=${kernel.dev}/lib/modules/${kernel.modDirVersion}"
"MODDESTDIR=$(out)/lib/modules/${kernel.modDirVersion}/kernel/drivers/misc"
];
};
in
{
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "usbhid" "uas" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.extraModulePackages = with pkgs.linuxPackages; [
it87
hddled
];
boot.kernelModules = [
"kvm-intel"
"coretemp"
"drivetemp"
"it87"
"hddled_tmj33"
];
fileSystems."/" =
{
device = "/dev/disk/by-uuid/a3b275b4-96d4-4eb4-b01f-d80370899791";
fsType = "ext4";
};
fileSystems."/boot" =
{
device = "/dev/disk/by-uuid/AAA7-BCE9";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
fileSystems."/mnt/Data" =
{
device = "/dev/sda1";
fsType = "btrfs";
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
nix.settings.max-jobs = 2;
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
}
+48
View File
@@ -0,0 +1,48 @@
{ user }:
{ pkgs, ... }:
let
openPorts = [
# nfs
111
2049
4000
4001
4002
20048
# ssh
22
# prometheus
9090
];
in
{
imports = [ ./hl-terra1.hardware-configuration.nix ];
skyg.user.enable = true;
skyg.nixos.common.ssh-server.enable = true;
skyg.server.admin.enable = true;
skyg.server.exporters.enable = true;
# firmware updater
services.fwupd.enable = true;
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
environment.systemPackages = with pkgs; [
btrfs-progs
];
# Firewall
networking.firewall.allowedUDPPorts = openPorts;
networking.firewall.allowedTCPPorts = openPorts;
# NFS
services.nfs.server = {
enable = true;
lockdPort = 4001;
mountdPort = 4002;
statdPort = 4000;
extraNfsdConfig = '''';
exports = ''
/mnt/Data/apps 10.0.0.0/16(rw,wdelay,insecure,no_root_squash,no_subtree_check,sec=sys,rw,insecure,no_root_squash,no_all_squash)
'';
};
}
+29
View File
@@ -0,0 +1,29 @@
function restart-wifi {
echo "Removing mod for wifi module..."
sudo rmmod mt7921e
echo "Reloading mod for wifi module..."
sudo modprobe mt7921e
}
function start-windows() {
quickemu --vm /mnt/Data/vms/windows-11.conf --display spice --viewer remote-viewer
}
function start-windows-app() {
google-chrome-stable --app=https://windows365.microsoft.com/webclient --new-window
}
# function clean-file() {
# ${@} | grep -v '^\s*#' | grep -v '^$'
# }
function clean-k8s-install() {
sudo rm -rf /var/lib/kubernetes/ /var/lib/etcd/ /var/lib/cfssl/ /var/lib/kubelet/ /etc/kube-flannel/ /etc/kubernetes/
}
function fix-nix-store() {
sudo nix-store --verify --check-contents --repair
}
-49
View File
@@ -1,49 +0,0 @@
{ systemStateVersion ? "23.11"
, homeMangerVersion ? "23.11"
, enableHomeManager ? true
, hostName
, user
, enableSSHServer ? false
, firewall ? { enable = true; }
, enableFingerPrint ? false
,
}:
{ pkgs, ... }:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-${homeMangerVersion}.tar.gz";
in
{
imports = [
/etc/nixos/hardware-configuration.nix
(import ./modules/os/nix.nix {
systemStateVersion = systemStateVersion;
})
(import ./modules/os/core.nix {
user = user;
hostName = hostName;
firewall = firewall;
})
(import ./modules/os/hardware.nix {
enableFingerPrint = enableFingerPrint;
})
(import ./modules/os/ssh.nix {
user = user;
enableSSHServer = enableSSHServer;
})
./modules/os/services.nix
./modules/docker/core.nix
(import ./modules/user.nix {
user = user;
})
(import ./modules/rootUser.nix {
hostName = hostName;
})
] ++ (if enableHomeManager then [
(import "${home-manager}/nixos")
(import ./modules/optional/home-manager-config.nix {
homeMangerVersion = homeMangerVersion;
hostName = hostName;
user = user;
})
] else [ ]);
}
+8
View File
@@ -0,0 +1,8 @@
{ ... }:
{
imports = [
./user.nix
./macos.nix
./nix-substituters.nix
];
}
+24
View File
@@ -0,0 +1,24 @@
{ config, lib, ... }:
with lib;
let
skygUser = config.skyg.user;
in
{
options = {
skyg.user.macos = {
enableOverride = mkEnableOption "";
};
};
config = mkIf skygUser.macos.enableOverride {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.${skygUser.name} = {
home = {
sessionVariables = { "DOCKER_DEFAULT_PLATFORM" = "linux/amd64"; };
};
};
};
}
+42
View File
@@ -0,0 +1,42 @@
{ config, lib, ... }:
with lib;
let
cfg = config.skyg.core.substituters;
skygUser = config.skyg.user;
in
{
options = {
skyg.core.substituters = {
urls = mkOption {
type = types.listOf types.str;
default = [ ];
};
keys = mkOption {
type = types.listOf types.str;
default = [ ];
};
};
};
config = {
nix.settings.substituters = [
"https://cache.nixos.org"
"https://cache.flox.dev"
"https://devenv.cachix.org"
"https://cuda-maintainers.cachix.org"
] ++ cfg.urls;
nix.settings.trusted-substituters = [
"https://cache.flox.dev"
"https://devenv.cachix.org"
"https://cuda-maintainers.cachix.org"
] ++ cfg.urls;
nix.settings.trusted-public-keys = [
"flox-cache-public-1:7F4OyH7ZCnFhcze3fJdfyXYLQw/aV7GEed86nQ7IsOs="
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
"cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E="
] ++ cfg.keys;
nix.settings.trusted-users = [ "root" skygUser.name ];
};
}
+58
View File
@@ -0,0 +1,58 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.skyg;
in
{
options = {
skyg.home-manager.version = mkOption {
type = types.str;
};
skyg.home-manager.extraImports = mkOption {
default = [ ];
};
skyg.user = {
enable = mkEnableOption "";
name = mkOption {
type = types.str;
};
fullName = mkOption {
type = types.str;
};
email = mkOption {
type = types.str;
};
extraGitConfigs = mkOption {
type = types.listOf (types.submodule {
path = mkOption {
type = types.str;
};
});
default = [ ];
};
enableDevelopmentKit = mkOption {
type = types.bool;
default = false;
};
};
};
config =
let
hm = (import ../home {
stateVersion = cfg.home-manager.version;
});
in
mkIf cfg.user.enable
{
programs.zsh.enable = true;
home-manager.users.root =
(hm.makeRootUser { hostName = config.skyg.core.hostName; }) { pkgs = pkgs; };
home-manager.users.${cfg.user.name} =
((hm.makeCommonUser cfg.user) { pkgs = pkgs; }) // {
imports = cfg.home-manager.extraImports;
};
};
}
-4
View File
@@ -1,4 +0,0 @@
{ ... }:
{
virtualisation.docker.enable = true;
}
+76
View File
@@ -0,0 +1,76 @@
{ stateVersion }:
let
makeCommonGitConfigs = (import ./git.nix).makeCommonGitConfigs;
programsModule = (import ./programs.nix);
servicesModule = (import ./services.nix);
fontsModule = (import ./fonts.nix);
homeModule = {
stateVersion = stateVersion;
shellAliases = {
cat = "bat";
};
};
in
{
makeRootUser = { hostName }: { pkgs, ... }: {
home = homeModule;
programs = (programsModule {
pkgs = pkgs;
user = {
name = "root";
};
}) // {
git = (makeCommonGitConfigs {
userName = "root";
userEmail = "root@${hostName}";
extraGitConfigs = [ ];
});
};
services = servicesModule { pkgs = pkgs; };
fonts = fontsModule;
};
makeCommonUser =
{ enableDevelopmentKit ? false
, fullName
, email
, extraGitConfigs ? [ ]
, name
, ...
}@user: { pkgs, ... }: {
fonts = fontsModule;
gtk = (import ./gtk.nix { inherit pkgs; });
home = homeModule // {
username = name;
homeDirectory = "/home/${name}";
packages = with pkgs;
[
jq
nixpkgs-fmt
ipfetch
nixd
htop
nnn
thefuck
fastfetch
]
++ (if enableDevelopmentKit then [
devenv
devbox
terraform
kubectl
] else
[ ]);
};
programs = (programsModule {
inherit pkgs user;
}) // {
git = (makeCommonGitConfigs {
userName = fullName;
userEmail = email;
extraGitConfigs = extraGitConfigs;
});
};
services = servicesModule { pkgs = pkgs; };
};
}
+10
View File
@@ -0,0 +1,10 @@
{
fontconfig = {
enable = true;
defaultFonts = {
serif = [ "Fira Code" "DroidSansMono" ];
sansSerif = [ "Fira Code" "DroidSansMono" ];
monospace = [ "Fira Code" ];
};
};
}
+29
View File
@@ -0,0 +1,29 @@
let
gitconfigs =
(builtins.filterSource (path: type: type != "directory") ./gitconfigs);
gitconfigFiles = builtins.attrNames (builtins.readDir gitconfigs);
makeCommonGitConfigs =
{ userName
, userEmail
, extraGitConfigs ? [ ]
}: {
enable = true;
userName = userName;
userEmail = userEmail;
delta = { enable = true; };
extraConfig = {
color = { ui = "auto"; };
push = {
default = "upstream";
autoSetupRemote = true;
};
init = { defaultBranch = "main"; };
};
includes =
(builtins.map (f: { path = gitconfigs + "/" + f; }) gitconfigFiles)
++ extraGitConfigs;
};
in
{
makeCommonGitConfigs = makeCommonGitConfigs;
}
@@ -27,3 +27,9 @@ sync = "!f() { \
remote=${2:-origin}; \ remote=${2:-origin}; \
git fetch $remote $target_branch:$target_branch; \ git fetch $remote $target_branch:$target_branch; \
}; f"; }; f";
clean-branches = "!f() { \
git for-each-ref --format '%(refname:short)' refs/heads| grep -v 'master\\|main' | xargs git branch -D ; \
}; f";
aliases = "!f() { \
git config --get-regexp alias | awk '{print $1}' | sed 's/alias\\./ - /' ; \
}; f";
+13
View File
@@ -0,0 +1,13 @@
{ pkgs }:
with pkgs;
{
theme = {
name = "WhiteSur-Dark";
package = whitesur-gtk-theme;
};
font = {
name = "FiraCode";
package = fira-code;
size = 8;
};
}
+70
View File
@@ -0,0 +1,70 @@
{ pkgs, user, ... }:
{
bat.enable = true;
neovim = {
enable = true;
defaultEditor = true;
viAlias = true;
vimAlias = true;
plugins = with pkgs.vimPlugins; [
nvim-lspconfig
nvim-treesitter.withAllGrammars
telescope-cheat-nvim
yuck-vim
statix
];
};
direnv.enable = true;
lsd = {
enable = true;
enableAliases = true;
};
zsh = {
enable = true;
autosuggestion.enable = true;
initExtra = ''
export PROMPT='%(!.%{%F{yellow}%}.)$USER@%{$fg[white]%}%M %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
'';
oh-my-zsh = {
enable = true;
plugins = [ "git" "sudo" ];
theme = "robbyrussell";
};
};
zellij = {
enable = true;
settings = {
theme = "nord";
session_serialization = false;
};
};
tmux = {
enable = true;
clock24 = true;
mouse = true;
plugins = with pkgs.tmuxPlugins; [ nord cpu sidebar ];
extraConfig = ''
set -g status-right '#{cpu_bg_color} CPU: #{cpu_icon} #{cpu_percentage} | %a %h-%d %H:%M '
'';
};
alacritty = {
enable = true;
settings = {
general.import = [
"${pkgs.alacritty-theme}/ayu_dark.toml"
];
window = {
title = "Terminal";
blur = true;
};
font = {
normal = { family = "Fira Code"; style = "Regular"; };
bold = { family = "Fira Code"; style = "Bold"; };
italic = { family = "Fira Code"; style = "Italic"; };
};
terminal.shell = {
program = "/home/${user.name}/.nix-profile/bin/zsh";
};
};
};
}
+8
View File
@@ -0,0 +1,8 @@
{ ... }:
{
gpg-agent = {
enable = true;
defaultCacheTtl = 1800;
enableSshSupport = true;
};
}
+112
View File
@@ -0,0 +1,112 @@
{ nixpkgs
, home-manager
, nix-darwin
, systems
, hlCommonSettings
, nixos-cosmic
, nix-flatpak
, specialArgs
}:
let
makeImports =
{ attrs
, extraConfiguration ? [ ]
}: (if (isNull attrs.configuration) then [ ] else [ attrs.configuration ])
++ [
(import ./main.nix attrs)
] ++ extraConfiguration;
eachSystem = nixpkgs.lib.genAttrs (import systems);
allPkgs = eachSystem (system:
import nixpkgs {
system = system;
config = { allowUnfree = true; };
});
makeNixOsModuleMaker =
masterAttrs:
{ system ? masterAttrs.system ? "x86_64-linux"
, ...
}@attrs:
let joinedttrs = masterAttrs // attrs;
in
nixpkgs.lib.nixosSystem {
specialArgs = specialArgs // {
inherit system;
};
system = system;
modules = (makeImports {
attrs = joinedttrs;
extraConfiguration = [
{
nix.settings = {
substituters = [ "https://cosmic.cachix.org/" ];
trusted-public-keys = [ "cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE=" ];
};
}
nixos-cosmic.nixosModules.default
home-manager.nixosModules.default
nix-flatpak.nixosModules.nix-flatpak
];
});
};
makeNixOsModule =
makeNixOsModuleMaker { };
makeHLService = makeNixOsModuleMaker hlCommonSettings;
makeDarwinModule =
{ system ? "x86_64-darwin"
, user
, ...
}@attrs:
nix-darwin.lib.darwinSystem {
modules = (makeImports {
attrs = attrs;
extraConfiguration = [
home-manager.darwinModules.home-manager
];
}) ++ [
(import ./macos.nix {
user = user;
system = system;
})
];
};
makeHomeManagerUsers =
{ modules ? [ ]
, homeManagerVersion
, user
, system ? "x86_64-linux"
}:
let
hm = (import ./home {
stateVersion = homeManagerVersion;
});
pkgs = allPkgs."${system}";
in
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
(hm.makeCommonUser user)
] ++ modules;
};
in
{
eachSystem = eachSystem;
pkgs = allPkgs;
makeNixOsModule = makeNixOsModule;
makeHLService = makeHLService;
makeDarwinModule = makeDarwinModule;
makeHomeManagerUsers = makeHomeManagerUsers;
makeHLServices =
{ nodeNames ? [ ]
, systemStateVersion ? "24.05"
, user
}: builtins.listToAttrs (builtins.map
(name: {
name = name;
value = makeHLService {
hostName = name;
configuration = (import (../hosts + "/${name}.nix") { user = user; });
systemStateVersion = systemStateVersion;
};
})
nodeNames);
}
+8
View File
@@ -0,0 +1,8 @@
{ user, system }:
{ pkgs, ... }: {
services.nix-daemon.enable = true;
security.pam.enableSudoTouchIdAuth = true;
users.users.${user.name}.home = user.homepath;
users.users.root.home = "/var/root";
nixpkgs.hostPlatform = system;
}
+31
View File
@@ -0,0 +1,31 @@
{ user
, homeManagerVersion
, systemStateVersion
, hostName
, enableNetworkDrives ? false
# Desktop Module
# os
, os ? {
enable = false;
}
, localNixCaches ? { keys = [ ]; urls = [ ]; }
, ...
}:
{ pkgs, ... }: {
imports = [
./core
./nixos
./network-drives.nix
];
# Share defaults
skyg.user = user;
skyg.core.hostName = hostName;
skyg.home-manager.version = homeManagerVersion;
skyg.core.substituters = localNixCaches;
skyg.nixos.common.containers = (if os.enable then os.containers else { });
skyg.nixos.server.k8s = {
masterIP = "10.0.10.6";
masterHostName = "minipc1.lab.internal";
};
system.stateVersion = systemStateVersion;
}
+44
View File
@@ -0,0 +1,44 @@
{ lib
, config
, ...
}:
let
cfg = config.skyg.networkDrives;
in
{
options = {
skyg.networkDrives = {
enable = lib.mkEnableOption
"Network Drives";
options = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ "defaults" ];
};
};
};
config = lib.mkIf cfg.enable {
fileSystems."/torrents" = {
device = "tnas1.lab.internal:/mnt/EightTerra/DownloadedTorrents";
fsType = "nfs";
options = cfg.options;
};
fileSystems."/mnt/EightTerra/k3s-cluster" = {
device = "tnas1.lab.internal:/mnt/EightTerra/k3s-cluster";
fsType = "nfs";
options = cfg.options;
};
fileSystems."/mnt/EightTerra/NVR" = {
device = "tnas1.lab.internal:/mnt/EightTerra/NVR";
fsType = "nfs";
options = cfg.options;
};
fileSystems."/mnt/terra1/Data/apps" = {
device = "terra1.lab.internal:/mnt/Data/apps";
fsType = "nfs";
options = cfg.options;
};
};
}
@@ -0,0 +1,29 @@
{ lib, ... }:
{
imports = [
./docker.nix
./podman.nix
];
options = {
skyg.nixos.common.containers = {
runtime = lib.mkOption {
description = "Docker vs podman";
type = lib.types.str;
default = "docker";
};
enableOnBoot = lib.mkOption {
type = lib.types.bool;
default = false;
};
localDockerRegistries = lib.mkOption {
type = lib.types.listOf lib.types.str;
};
metricsPort = lib.mkOption {
type = lib.types.number;
default = 9323;
};
openMetricsPort = lib.mkEnableOption "Open container metrics port";
};
};
}
@@ -0,0 +1,31 @@
{ config, pkgs, lib, ... }:
let
cfg = config.skyg.nixos.common.containers;
in
{
config = lib.mkIf (cfg.runtime == "docker") {
virtualisation.docker = {
enable = true;
autoPrune.enable = true;
enableOnBoot = cfg.enableOnBoot;
liveRestore = false;
daemon.settings = {
insecure-registries = cfg.localDockerRegistries;
metrics-addr = "0.0.0.0:${toString cfg.metricsPort}";
};
};
environment.systemPackages = with pkgs; [ docker-compose ];
users.users.${config.skyg.user.name}.extraGroups = [ "docker" ];
virtualisation.oci-containers.backend = "docker";
networking.firewall.allowedUDPPorts =
(if cfg.openMetricsPort then [
cfg.metricsPort
] else [ ]);
networking.firewall.allowedTCPPorts =
(if cfg.openMetricsPort then [
cfg.metricsPort
] else [ ]);
};
}
@@ -0,0 +1,19 @@
{ config, pkgs, lib, ... }:
let
cfg = config.skyg.nixos.common.containers;
in
{
config = lib.mkIf (cfg.runtime == "podman") {
virtualisation.oci-containers.backend = "podman";
virtualisation = {
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
dockerSocket.enable = true;
autoPrune.enable = true;
};
};
environment.systemPackages = with pkgs; [ podman-compose podman-tui ];
};
}
+60
View File
@@ -0,0 +1,60 @@
{ pkgs, config, ... }:
{
# System Packages
services.hydra.useSubstitutes = true;
programs.dconf.enable = true;
programs.nix-ld.enable = true;
nixpkgs.config.allowUnfree = true;
nix = {
optimise.automatic = true;
settings.experimental-features = [ "nix-command" "flakes" ];
};
environment.systemPackages = with pkgs; [
# nix utils
appimage-run
# shell tools
git
usbutils
# system utils
nfs-utils
lm_sensors
hwinfo
dig
# misc
glib-networking
glib
glibc
# printer
system-config-printer
# nix utils
nix-index
nil
cachix
nixpkgs-fmt
nvd
# shell tools
wget
];
services.xserver.excludePackages = with pkgs; [
xterm
];
# Set your time zone.
time.timeZone = "America/Toronto";
# Select internationalisation properties.
i18n.defaultLocale = "en_CA.UTF-8";
# Storage Clean up
services.cron = {
enable = true;
systemCronJobs = [
"* 23 * * * root nix-collect-garbage --delete-older-than 1d"
"* 23 * * * ${config.skyg.user.name} nix-collect-garbage --delete-older-than 1d"
];
};
}
+13
View File
@@ -0,0 +1,13 @@
{ ... }:
{
imports = [
./hardware
./containers
./core.nix
./networking.nix
./user.nix
./fonts.nix
./ssh-server.nix
./qemu.nix
];
}
+26
View File
@@ -0,0 +1,26 @@
{ pkgs, ... }:
{
fonts = {
packages = with pkgs; [
fira-code
fira-code-symbols
font-awesome
mplus-outline-fonts.githubRelease
jetbrains-mono
ubuntu_font_family
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
];
enableDefaultPackages = true;
fontDir.enable = true;
fontconfig = {
enable = true;
defaultFonts = {
serif = [ "Fira Code" "DroidSansMono" ];
sansSerif = [ "Fira Code" "DroidSansMono" ];
monospace = [ "Fira Code" ];
};
};
};
}
+32
View File
@@ -0,0 +1,32 @@
{ lib
, config
, pkgs
, ...
}:
let
cfg = config.skyg.nixos.common.hardware.amdgpu;
in
{
options.skyg.nixos.common.hardware.amdgpu = with lib; {
enable = mkEnableOption "amdgpu";
};
config = lib.mkIf cfg.enable {
boot.initrd.kernelModules = [ "amdgpu" ];
services.xserver.videoDrivers = [ "amdgpu" ];
hardware.graphics = {
extraPackages = [ pkgs.amdvlk ];
extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
};
environment.systemPackages = (with pkgs; [
rocmPackages.rocm-smi
rocmPackages.rpp
rocmPackages.rocm-core
rocmPackages.rocm-runtime
rocmPackages.hipblas
rocmPackages.llvm.clang
amdgpu_top
amdctl
]);
};
}
@@ -0,0 +1,22 @@
{ config, lib, ... }:
with lib;
let cfg = config.skyg.nixos.common.hardware.udevrules.coraltpu;
in {
options = {
skyg.nixos.common.hardware.udevrules.coraltpu = {
enable = mkEnableOption
"Enable Coral TPU Udev rules";
symlinkName = mkOption {
description = "The special symlink to give to the coral tpu";
type = types.str;
default = "coral1";
};
};
};
config = mkIf cfg.enable {
services.udev.extraRules = ''
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1a6e", ATTRS{idProduct}=="089a", MODE="0664", TAG+="uaccess", SYMLINK+="${cfg.symlinkName}"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="9302", MODE="0664", TAG+="uaccess", SYMLINK+="${cfg.symlinkName}"
'';
};
}
+16
View File
@@ -0,0 +1,16 @@
{ ... }:
{
imports = [
./fan2go.nix
./fancontrol.nix
./sound.nix
./laptop-power.nix
./nvidia.nix
./amdgpu.nix
./coral-tpu-udev.nix
];
# Firmware Updater
services.fwupd.enable = true;
# Enable all license firmware
hardware.enableAllFirmware = true;
}
+95
View File
@@ -0,0 +1,95 @@
# Source: https://github.com/arnarg/config/blob/3cfad29004a92d310871a56605aa84df1b13741f/hosts/terra/fan2go.nix
{ lib
, config
, pkgs
, ...
}:
let
cfg = config.skyg.nixos.common.hardware.fan2go;
fan2goConfig = pkgs.writeText "fan2go.yaml" ''
dbPath: ${cfg.dbPath}
fans:
- id: out_back
hwmon:
platform: it8613
rpmChannel: 3
pwmChannel: 3
curve: case_max
sensors:
- id: cpu_package
hwmon:
platform: coretemp
index: 1
- id: nvme_ssd
hwmon:
platform: nvme
index: 2
- id: hdd
hwmon:
platform: drivetemp
index: 1
curves:
- id: cpu_curve
linear:
sensor: cpu_package
steps:
- 40: 0
- 50: 50
- 80: 255
- id: nvme_curve
linear:
sensor: nvme_ssd
min: 40
max: 70
- id: hdd_curve
linear:
sensor: hdd
min: 30
max: 50
- id: case_max
function:
type: maximum
curves:
- cpu_curve
- nvme_curve
- hdd_curve
'';
in
{
options.skyg.nixos.common.hardware.fan2go = with lib; {
enable = mkEnableOption "fan2go";
dbPath = mkOption {
type = types.str;
default = "/var/lib/fan2go/fan2go.db";
description = "The path of the database file.";
};
};
config = lib.mkIf cfg.enable {
systemd.services.fan2go = {
description = "A simple daemon providing dynamic fan speed control based on temperature sensors.";
wantedBy = [ "multi-user.target" ];
after = [ "lm_sensors.service" ];
serviceConfig = {
ExecStart = lib.concatStringsSep " " [
"${pkgs.fan2go}/bin/fan2go"
"-c"
"${fan2goConfig}"
"--no-style"
];
LimitNOFILE = 8192;
};
};
};
}
@@ -0,0 +1,33 @@
{ lib
, config
, pkgs
, ...
}:
let
cfg = config.skyg.nixos.common.hardware.fancontrol;
in
{
options.skyg.nixos.common.hardware.fancontrol = with lib; {
enable = mkEnableOption "fancontrol";
configName = mkOption {
type = types.str;
};
};
config = lib.mkIf cfg.enable {
systemd.services.fancontrol = {
enable = true;
description = "Fan control";
wantedBy = [ "multi-user.target" "graphical.target" "rescue.target" ];
unitConfig = {
Type = "simple";
};
serviceConfig = {
ExecStart = "${pkgs.lm_sensors}/bin/fancontrol ${cfg.configName}";
Restart = "always";
};
};
};
}
@@ -0,0 +1,70 @@
{ lib
, config
, ...
}:
let
cfg = config.skyg.nixos.common.hardware.laptop-power-mgr;
in
{
options.skyg.nixos.common.hardware.laptop-power-mgr = with lib; {
enable = mkEnableOption "Settings for laptop power management";
};
config = lib.mkIf cfg.enable {
# Advance Power Management
powerManagement.powertop.enable = true;
powerManagement.enable = true;
services.thermald.enable = true;
services.power-profiles-daemon.enable = false;
services.tlp = {
enable = true;
settings = {
TLP_DEFAULT_MODE = "BAT";
TLP_PERSISTENT_DEFAULT = 1;
CPU_BOOST_ON_BAT = 0;
RUNTIME_PM_ON_BAT = "auto";
PLATFORM_PROFILE_ON_AC = "balanced";
PLATFORM_PROFILE_ON_BAT = "low-power";
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
CPU_MIN_PERF_ON_AC = 0;
CPU_MAX_PERF_ON_AC = 100;
CPU_MIN_PERF_ON_BAT = 0;
CPU_MAX_PERF_ON_BAT = 20;
START_CHARGE_THRESH_BAT0 = 40; # and bellow it starts to charge
STOP_CHARGE_THRESH_BAT0 = 97; # and above it stops charging
};
};
services.auto-cpufreq.enable = true;
services.auto-cpufreq.settings = {
battery = {
governor = "powersave";
turbo = "never";
};
charger = {
governor = "performance";
turbo = "auto";
};
};
systemd.sleep.extraConfig = "HibernateDelaySec=30m";
# Logind
services.logind = {
lidSwitchExternalPower = "suspend-then-hibernate";
lidSwitch = "suspend-then-hibernate";
powerKey = "lock";
extraConfig = ''
LidSwitchIgnoreInhibited=yes
HandlePowerKey=suspend-then-hibernate
IdleAction=suspend-then-hibernate
IdleActionSec=2m
'';
};
};
}
+34
View File
@@ -0,0 +1,34 @@
{ lib
, config
, ...
}:
let
cfg = config.skyg.nixos.common.hardware.nvidia;
in
{
options.skyg.nixos.common.hardware.nvidia = with lib; {
enable = mkEnableOption "nvidia";
};
config = lib.mkIf cfg.enable {
boot.kernel.sysctl = {
"net.core.bpf_jit_harden" = 1; # https://github.com/NVIDIA/libnvidia-container/issues/176#issuecomment-2101166824
};
# Nvidia Settings
programs.nix-required-mounts.presets.nvidia-gpu.enable = true;
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia-container-toolkit.enable = true;
virtualisation.docker.daemon.settings.features.cdi = true;
hardware.graphics.enable32Bit = true;
hardware.graphics.enable = true;
hardware.nvidia = {
# datacenter.enable = true;
modesetting.enable = true;
powerManagement.enable = false;
powerManagement.finegrained = false;
open = false;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
};
}
+29
View File
@@ -0,0 +1,29 @@
{ lib
, config
, ...
}:
let
cfg = config.skyg.nixos.common.hardware.sound;
in
{
options.skyg.nixos.common.hardware.sound = with lib; {
enable = mkEnableOption "sound";
};
config = lib.mkIf cfg.enable {
# Enable sound with pipewire.
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
jack.enable = true;
pulse.enable = true;
systemWide = false;
};
services.jack = {
alsa.enable = true;
};
};
}
+35
View File
@@ -0,0 +1,35 @@
{ config, lib, ... }:
let
cfg = config.skyg.core;
in
{
options = {
skyg.core = {
hostName = lib.mkOption {
description = "Machine Hostname";
type = lib.types.str;
};
tailscaleRouting = lib.mkOption {
type = lib.types.str;
default = "client";
};
};
};
config = {
# Define hostname.
networking.hostName = cfg.hostName;
# Enable networking
networking.networkmanager.enable = true;
# NFS Support
services.nfs.server.enable = true;
# Tailscale
services.tailscale.enable = true;
services.tailscale.useRoutingFeatures = cfg.tailscaleRouting;
# Disable the flaky nm service
systemd.services.NetworkManager-wait-online.enable = false;
};
}
+30
View File
@@ -0,0 +1,30 @@
{ config, lib, pkgs, ... }:
let
cfg = config.skyg.core.qemu;
in
{
options = {
skyg.core.qemu = {
enable = lib.mkEnableOption
"Enable qemu";
};
};
config = lib.mkIf cfg.enable {
environment = {
systemPackages = with pkgs; [
qemu
quickemu
win-spice
spice
spice-vdagent
spice-autorandr
virt-viewer
];
};
services.spice-vdagentd.enable = true;
services.spice-autorandr.enable = true;
services.spice-webdavd.enable = true;
virtualisation.spiceUSBRedirection.enable = true;
};
}
+32
View File
@@ -0,0 +1,32 @@
{ config, lib, ... }:
let
cfg = config.skyg.nixos.common.ssh-server;
in
{
options = {
skyg.nixos.common.ssh-server = {
enable = lib.mkEnableOption
"enable ssh server";
masterPubKey = lib.mkOption {
type = lib.types.str;
default = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCuatskL9qXvgvS3E8zRwosFnpcN0f8PkKl8syAvpn297V2iPk6mi8yK3EE7xPpxaKKlwUuBHDj3BNUCoLgdRFKUgroRDzr3BMm+gZTHy6CuEZBY9zBRTmH+aOV6FZ96QPW4zba0BW5YPkPNy/FhYibjpXyZ3nX4/LWSbPKQJ7wTnUJZgq4VFmevBOttvhzUJUgTziMFsGXn6I38fAi6LI8qwI+zOOdsNjtKgr/TIlO/7VqcH7GYnQEwlthl577sDd1V6+XWz649qoiBYyq0Ahm09dwYx2iGQwLo8IYFbSy4aJRK/PI0+ytnPBoF5QCl+ILb5E8uV3e6Wb9WpXl9Hv2iLx91/9iq5hykHPnfVtkq3MK0C2vqkvX1qFOIkKM7vmxvXGbaDZDGK3G+/zkQ7GUw8ydbl9wGwE9cKbm9miqs4w2Ry/+3IZasE6G2TI97bSzSYInQd2RwoglqBOaJojbUqgI9wvNdKxGhADNFbZah2+s6SSe1ByQRN3b9wtmqu0= ari@shared";
};
};
};
config = lib.mkIf cfg.enable {
services.openssh = {
enable = true;
openFirewall = true;
settings.PasswordAuthentication = false;
settings.KbdInteractiveAuthentication = false;
settings.PermitRootLogin = "yes";
};
users.users.${config.skyg.user.name}.openssh.authorizedKeys.keys = [
cfg.masterPubKey
];
users.users.root.openssh.authorizedKeys.keys = [
cfg.masterPubKey
];
};
}
+15
View File
@@ -0,0 +1,15 @@
{ config, pkgs, ... }:
{
users.users.root = {
shell = pkgs.zsh;
};
users.users.${config.skyg.user.name} = {
shell = pkgs.zsh;
isNormalUser = true;
description = config.skyg.user.name;
extraGroups = [
"networkmanager"
"wheel"
];
};
}
+8
View File
@@ -0,0 +1,8 @@
{ ... }:
{
imports = [
./common
./server
./desktop
];
}
+19
View File
@@ -0,0 +1,19 @@
{ config, lib, pkgs, ... }:
let
cfg = config.skyg.nixos.desktop.cosmic;
in
{
options = {
skyg.nixos.desktop.cosmic = {
enable = lib.mkEnableOption
"Cosmic";
};
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [
pkgs.cosmic-icons
];
services.desktopManager.cosmic.enable = true;
# services.displayManager.cosmic-greeter.enable = true;
};
}
+30
View File
@@ -0,0 +1,30 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.skyg.nixos.desktop.crypto;
in
{
options = {
skyg.nixos.desktop.crypto = {
enable = mkEnableOption
"Enable crypto wallets";
};
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
trezor-suite
trezord
ledger-live-desktop
sparrow
];
# udev rules for crypto wallets
services.udev.packages = with pkgs; [
ledger-udev-rules
trezor-udev-rules
];
# trezor groups
users.groups.trezord = { };
users.groups.trezord.members = [ config.skyg.user.name ];
};
}
+53
View File
@@ -0,0 +1,53 @@
{ config, lib, pkgs, ... }:
let
cfg = config.skyg.nixos;
in
{
imports = [
./kde.nix
./cosmic.nix
./wayland.nix
./x11.nix
./packages.nix
./crypto.nix
];
options = {
skyg.nixos.desktop = {
enable = lib.mkEnableOption
"Enable Desktop";
};
};
config = lib.mkIf cfg.desktop.enable {
services.displayManager.enable = true;
services.displayManager.sddm.enable = true;
services.displayManager.sddm.wayland.enable = true;
services.displayManager.sddm.wayland.compositor = "kwin";
# security.pam.services.<name>.kwallet.enable = true;
services.xserver.displayManager.gdm.enable = false;
services.xserver.displayManager.gdm.autoSuspend = false;
services.xserver.displayManager.gdm.banner = ''Ari's PC'';
services.xserver.displayManager.gdm.wayland = false;
xdg = {
autostart.enable = true;
mime.enable = true;
menus.enable = true;
icons.enable = true;
sounds.enable = true;
terminal-exec.enable = true;
portal = {
enable = true;
# wlr.enable = true;
# xdgOpenUsePortal = true;
# config = {
# common.default = [ "*" ];
# plasma6.default = [ "gtk" "kde" ];
# };
# extraPortals = [
# pkgs.xdg-desktop-portal-gtk
# ];
};
};
};
}
+29
View File
@@ -0,0 +1,29 @@
{ config, lib, pkgs, ... }:
let
cfg = config.skyg.nixos.desktop.kde;
in
{
options = {
skyg.nixos.desktop.kde = {
enable = lib.mkEnableOption
"KDE";
};
};
config = lib.mkIf cfg.enable {
services.desktopManager.plasma6.enable = true;
services.desktopManager.plasma6.enableQt5Integration = true;
environment.plasma6.excludePackages = with pkgs.kdePackages; [
konsole # terminal
elisa # media player
kate # text editor
gwenview # image viewer
];
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-kde ];
environment.systemPackages = with pkgs; [
kdePackages.plasma-browser-integration
kdePackages.xdg-desktop-portal-kde
konsave # save configs
];
services.desktopManager.plasma6.notoPackage = pkgs.fira-code;
};
}
+85
View File
@@ -0,0 +1,85 @@
{ config, lib, pkgs, inputs, ... }:
let
cfg = config.skyg.nixos.desktop;
ghostty = inputs.ghostty.packages.${pkgs.stdenv.hostPlatform.system}.default;
in
{
config = lib.mkIf cfg.enable {
# Flatpak
services.flatpak.enable = true;
# Mobile Connect
programs.kdeconnect.enable = true;
environment.systemPackages = [ ghostty ] ++ (with pkgs; [
# General utils
busybox
gcc
rofimoji # emoji picker
feh # image viewer
xdg-desktop-portal
# copy to clipboard
wl-clipboard-x11
xclip
# socials
zoom-us
betterdiscordctl
discord
signal-desktop
skypeforlinux
# development
vscode
# mail
thunderbird
# password
bitwarden-desktop
# documents
onlyoffice-bin_latest
# video
vlc
vlc-bittorrent
# terminal
alacritty
alacritty-theme
# wine
wineWowPackages.stable
winetricks
wineWowPackages.waylandFull
# Video recording
obs-studio
# Browser
chromium
google-chrome
# Photo Editing
krita
gimp-with-plugins
]);
services.flatpak.packages = [
"com.slack.Slack"
"com.spotify.Client"
"com.cassidyjames.butler"
"dev.zed.Zed"
"io.dbeaver.DBeaverCommunity"
"it.fabiodistasio.AntaresSQL"
"io.github.zen_browser.zen"
"com.github.sdv43.whaler"
];
programs.firefox = {
enable = true;
};
home-manager.users.${config.skyg.user.name}.home.shellAliases = {
open-image = "feh";
open-file = "nautilus";
};
};
}
+18
View File
@@ -0,0 +1,18 @@
{ config, lib, pkgs, ... }:
let
cfg = config.skyg.nixos.desktop;
in
{
config = lib.mkIf cfg.enable {
# Flatpak
environment.systemPackages = with pkgs; [
wayland
wayland-protocols
wayland-utils
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
];
programs.xwayland.enable = true;
xdg.portal.enable = true;
};
}
+23
View File
@@ -0,0 +1,23 @@
{ config, lib, pkgs, ... }:
let
cfg = config.skyg.nixos.desktop;
in
{
config = lib.mkIf cfg.enable {
services.xserver = {
enable = true;
xkb.layout = "us";
xkb.variant = "";
};
users.users.${config.skyg.user.name}.extraGroups = [ "input" ];
environment.systemPackages = with pkgs; [
# These are used to handle touchpad gestures
libinput-gestures
wmctrl
xdotool
];
system.userActivationScripts.hyprlandMineConfig.text = ''
ln -sfn "/home/${config.skyg.user.name}/nixos-setup/configs/libinput-gestures.conf" "$HOME/.config/libinput-gestures.conf"
'';
};
}
Loaded 100 of 131 files, more files were not shown because too many files have changed in this diff. Show more