commit 3ac07c22f6f4da24374ab39ba50d88fc54e4503c Author: Lilly Date: Tue Nov 24 22:47:59 2026 +0100 first commit diff --git a/configuration.nix b/configuration.nix new file mode 100644 index 0000000..6bcf3e5 --- /dev/null +++ b/configuration.nix @@ -0,0 +1,14 @@ +# Edit this configuration file to define what should be installed on +# your system. Help is available in the configuration.nix(5) man page +# and in the NixOS manual (accessible by running ‘nixos-help’). + +{ host, ... }: + +{ + imports = + [ + ./system/hosts/${host} + ./system + ./programs + ]; +} diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..0a89786 --- /dev/null +++ b/flake.lock @@ -0,0 +1,1031 @@ +{ + "nodes": { + "aagl": { + "inputs": { + "flake-compat": "flake-compat", + "nixpkgs": [ + "nixpkgs" + ], + "rust-overlay": "rust-overlay" + }, + "locked": { + "lastModified": 1794424204, + "narHash": "sha256-T7WQ3yqqkEyTric9XNRHNfsHhw39jYVSLv7QhSD+avQ=", + "owner": "ezKEa", + "repo": "aagl-gtk-on-nix", + "rev": "0968049e240f2eed9a3e3ee92bc3e06ca41d9b96", + "type": "github" + }, + "original": { + "owner": "ezKEa", + "repo": "aagl-gtk-on-nix", + "type": "github" + } + }, + "artemisrgb": { + "inputs": { + "nixpkgs": "nixpkgs" + }, + "locked": { + "path": "./pkgs/artemis-rgb", + "type": "path" + }, + "original": { + "path": "./pkgs/artemis-rgb", + "type": "path" + }, + "parent": [] + }, + "cachyos-settings": { + "inputs": { + "flake-parts": "flake-parts", + "git-hooks": "git-hooks", + "nixpkgs": [ + "nixpkgs" + ], + "std": "std" + }, + "locked": { + "lastModified": 1795350155, + "narHash": "sha256-ej2RD0RoyDbYeRSmPvTdjDbFzsmuhY3FRbtFxLH6L6Q=", + "owner": "Daaboulex", + "repo": "cachyos-settings-nix", + "rev": "13b8a6ea816132b571a4754fefdcc57429d1c1c8", + "type": "github" + }, + "original": { + "owner": "Daaboulex", + "repo": "cachyos-settings-nix", + "type": "github" + } + }, + "catppuccin": { + "inputs": { + "nixpkgs": "nixpkgs_2" + }, + "locked": { + "lastModified": 1794788055, + "narHash": "sha256-ne61lharrApQ3QVpm6sjd6k5AgD0xandc69h4QbopIY=", + "owner": "catppuccin", + "repo": "nix", + "rev": "aa70e775fdb4e998314dd64fb4cf66aeaa87f6dd", + "type": "github" + }, + "original": { + "owner": "catppuccin", + "repo": "nix", + "type": "github" + } + }, + "dank-qml-common": { + "flake": false, + "locked": { + "lastModified": 1795139913, + "narHash": "sha256-RYLCGIA8CuAIsmWUA1y8Ml+5bs8yIFNDQqOjeOlBr6A=", + "owner": "duxlabs-dev", + "repo": "dux-qml-common", + "rev": "e268d71117173d0934dbe773d3e2ed6efe11afda", + "type": "github" + }, + "original": { + "owner": "duxlabs-dev", + "repo": "dux-qml-common", + "type": "github" + } + }, + "dank-qml-common_2": { + "flake": false, + "locked": { + "lastModified": 1794150008, + "narHash": "sha256-04v9TZkFikV738/IQCqDqGj+ejT8R6/uwrsatDVlHdo=", + "owner": "duxlabs-dev", + "repo": "dux-qml-common", + "rev": "0877466a25b8e191a865bf75d0e500de6351ae04", + "type": "github" + }, + "original": { + "owner": "duxlabs-dev", + "repo": "dux-qml-common", + "type": "github" + } + }, + "deno-nixpkgs": { + "locked": { + "lastModified": 1791048980, + "narHash": "sha256-KgItSKML8Xvte0B7/uGnBDsYzSnnKHcOaiUbgWBXLXw=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "a7868a727837f3c09cee2ce0ca671c76b1589fed", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "a7868a727837f3c09cee2ce0ca671c76b1589fed", + "type": "github" + } + }, + "dfiles": { + "inputs": { + "dank-qml-common": "dank-qml-common", + "dux-qt-base": "dux-qt-base", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1795443783, + "narHash": "sha256-uRw+pophqkqEgxiKqDYxAcPIIZqFHJuU/tRhrmaymWc=", + "owner": "duxlabs-dev", + "repo": "dux-files", + "rev": "73581769072cd40e539a16c627afe6bb18ae75ad", + "type": "github" + }, + "original": { + "owner": "duxlabs-dev", + "repo": "dux-files", + "type": "github" + } + }, + "dms": { + "inputs": { + "dank-qml-common": "dank-qml-common_2", + "flake-compat": "flake-compat_3", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1794152448, + "narHash": "sha256-D8Ps69xp345EKBDqgznn5kDeb2UEOtNX5+wChMKGBDo=", + "owner": "duxlabs-dev", + "repo": "dux-shell", + "rev": "43255a46ea01e9d0de1fe8ce9897c0d71566b2a8", + "type": "github" + }, + "original": { + "owner": "duxlabs-dev", + "ref": "stable", + "repo": "dux-shell", + "type": "github" + } + }, + "dux-qt-base": { + "inputs": { + "nixpkgs": [ + "dfiles", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1795139910, + "narHash": "sha256-JxBwcoR86CfjT92/xQSbbaHn1OxddwtH/iF+u4fUvRw=", + "owner": "duxlabs-dev", + "repo": "dux-qt-base", + "rev": "75d4524dc5e678ca4b64a1f862dd7509ca6852b1", + "type": "github" + }, + "original": { + "owner": "duxlabs-dev", + "repo": "dux-qt-base", + "type": "github" + } + }, + "firefox-addons": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "dir": "pkgs/firefox-addons", + "lastModified": 1795320161, + "narHash": "sha256-1cVr0CyXUbvjSA6awXv3B9UNn38/s2jri1yqQH3LDCY=", + "owner": "rycee", + "repo": "nur-expressions", + "rev": "c83f1fa2548ad34b88ad7ebc0dff52be8c909ebd", + "type": "gitlab" + }, + "original": { + "dir": "pkgs/firefox-addons", + "owner": "rycee", + "repo": "nur-expressions", + "type": "gitlab" + } + }, + "flake-compat": { + "flake": false, + "locked": { + "lastModified": 1767039857, + "narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, + "flake-compat_2": { + "flake": false, + "locked": { + "lastModified": 1767039857, + "narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=", + "owner": "NixOS", + "repo": "flake-compat", + "rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "flake-compat", + "type": "github" + } + }, + "flake-compat_3": { + "flake": false, + "locked": { + "lastModified": 1767039857, + "narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=", + "owner": "NixOS", + "repo": "flake-compat", + "rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "flake-compat", + "type": "github" + } + }, + "flake-compat_4": { + "flake": false, + "locked": { + "lastModified": 1767039857, + "narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=", + "owner": "NixOS", + "repo": "flake-compat", + "rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab", + "type": "github" + }, + "original": { + "owner": "NixOS", + "repo": "flake-compat", + "type": "github" + } + }, + "flake-parts": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib" + }, + "locked": { + "lastModified": 1793576659, + "narHash": "sha256-V1h85lUaJBQoHFrB2vpXZOE0Ju1MYSnIpsehoVZYlDo=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "ea2630b7470978622c7689a1ff75d2b389175399", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "flake-parts_2": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib_2" + }, + "locked": { + "lastModified": 1793576659, + "narHash": "sha256-V1h85lUaJBQoHFrB2vpXZOE0Ju1MYSnIpsehoVZYlDo=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "ea2630b7470978622c7689a1ff75d2b389175399", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "flake-parts_3": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib_3" + }, + "locked": { + "lastModified": 1793576659, + "narHash": "sha256-V1h85lUaJBQoHFrB2vpXZOE0Ju1MYSnIpsehoVZYlDo=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "ea2630b7470978622c7689a1ff75d2b389175399", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "flake-parts_4": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib_4" + }, + "locked": { + "lastModified": 1790898470, + "narHash": "sha256-zTwuwezD0w3hpga6a6P8emidzAZFyWqlNeRBlpWOOl8=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "024633cd702b10285db5cb19b40ad48d2399ba60", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "git-hooks": { + "inputs": { + "flake-compat": "flake-compat_2", + "nixpkgs": [ + "cachyos-settings", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1793686154, + "narHash": "sha256-Zb/0L3soxrkfcrywpfp0J++0WFLB3tzh0Xtx9up+VNc=", + "owner": "cachix", + "repo": "git-hooks.nix", + "rev": "204b6977e00caac19e2313015a598543ca7be150", + "type": "github" + }, + "original": { + "owner": "cachix", + "repo": "git-hooks.nix", + "type": "github" + } + }, + "home-manager": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1795366757, + "narHash": "sha256-Tp4Kh4R7ID1f2mMCDlb2PiFQ/DZZsnXB2u2juWN+TT4=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "3b8140d21fa0a70b1b38c2ed29853dfe686234a6", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "home-manager", + "type": "github" + } + }, + "home-manager_2": { + "inputs": { + "nixpkgs": [ + "nixcord", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1795325060, + "narHash": "sha256-XYoMPsqRFZ6jOaYI1KAAu8fzqif4tkCX8mhEKrViDXQ=", + "owner": "nix-community", + "repo": "home-manager", + "rev": "6480d7d8533b88c78cc6dcda395ab89cd546e450", + "type": "github" + }, + "original": { + "owner": "nix-community", + "ref": "release-26.05", + "repo": "home-manager", + "type": "github" + } + }, + "launchy": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1795542494, + "narHash": "sha256-frL41C+9HZ+EjGFfnR2rTcPySEI19zp4vjy94cS5Pjg=", + "owner": "Chloe-ko", + "repo": "Launchy", + "rev": "b2bebe51af8756b897a3d3669a28347e3e1cf350", + "type": "github" + }, + "original": { + "owner": "Chloe-ko", + "repo": "Launchy", + "type": "github" + } + }, + "millennium": { + "inputs": { + "millennium-src": "millennium-src", + "nixpkgs": "nixpkgs_3", + "nixpkgs-bun": "nixpkgs-bun" + }, + "locked": { + "dir": "packages/nix", + "lastModified": 1795299394, + "narHash": "sha256-BPZeT1hnHARhoEQwkUjW6WCUC4c7A7tE3Zrh9z76EeQ=", + "owner": "SteamClientHomebrew", + "repo": "Millennium", + "rev": "3b3702aa4838a22dbf7277dbd535d40499f26e4a", + "type": "github" + }, + "original": { + "dir": "packages/nix", + "owner": "SteamClientHomebrew", + "repo": "Millennium", + "type": "github" + } + }, + "millennium-src": { + "flake": false, + "locked": { + "lastModified": 1794587997, + "narHash": "sha256-UZQSHMsAaYTcx1TDAI7FTqVRsMpB1jLBL8kYKivwbYo=", + "owner": "SteamClientHomebrew", + "repo": "Millennium", + "rev": "ac5e1ad646b1d1dd76a04aecf32d9e5e41779201", + "type": "github" + }, + "original": { + "owner": "SteamClientHomebrew", + "repo": "Millennium", + "rev": "ac5e1ad646b1d1dd76a04aecf32d9e5e41779201", + "type": "github" + } + }, + "nix-cachyos-kernel": { + "inputs": { + "flake-compat": "flake-compat_4", + "flake-parts": "flake-parts_3", + "nixpkgs": "nixpkgs_4" + }, + "locked": { + "lastModified": 1795387629, + "narHash": "sha256-+bXH64eCZhRm6MaMlB4lwTjUjax2aDy6yWsfTSCZlas=", + "owner": "xddxdd", + "repo": "nix-cachyos-kernel", + "rev": "306480b9096055a06503167f975c027e244dd839", + "type": "github" + }, + "original": { + "owner": "xddxdd", + "ref": "release", + "repo": "nix-cachyos-kernel", + "type": "github" + } + }, + "nix-darwin": { + "inputs": { + "nixpkgs": [ + "nixcord", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1792800221, + "narHash": "sha256-53jIZEWNh96irEXhsMZFoNhLJgGSU3nYl1i4wFQHAsU=", + "owner": "nix-darwin", + "repo": "nix-darwin", + "rev": "d31953cf55f9027a56e9be938daf5db8c5655663", + "type": "github" + }, + "original": { + "owner": "nix-darwin", + "ref": "nix-darwin-26.05", + "repo": "nix-darwin", + "type": "github" + } + }, + "nixcord": { + "inputs": { + "home-manager": "home-manager_2", + "nix-darwin": "nix-darwin", + "nixpkgs": "nixpkgs_5", + "nixpkgs-ci": "nixpkgs-ci", + "nixpkgs-packages": "nixpkgs-packages", + "treefmt-nix": "treefmt-nix" + }, + "locked": { + "lastModified": 1795463887, + "narHash": "sha256-YcPmiyvA1ND1PRHduUrIcniGqx5ioX8TRDuAn4++CGU=", + "owner": "4evy", + "repo": "nixcord", + "rev": "0b95ae717d3e0cefb45f9686d1be43f0d80366b5", + "type": "github" + }, + "original": { + "owner": "4evy", + "repo": "nixcord", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1795234589, + "narHash": "sha256-f/VVvxf5RsQgWVhUtefoca5ktVg0DA2bnkMOcmSnozo=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "2786a2a72088ecf32aea5b3ec52099e6a7cff78f", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs-bun": { + "locked": { + "lastModified": 1790822859, + "narHash": "sha256-69xHQhAeMAD2wDXO7T2pcOZIF9Sga2W+JkmY2a11Ops=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "c59305bab2065cfecc4944690d9eedbb56f3a9fa", + "type": "github" + }, + "original": { + "owner": "nixos", + "repo": "nixpkgs", + "rev": "c59305bab2065cfecc4944690d9eedbb56f3a9fa", + "type": "github" + } + }, + "nixpkgs-ci": { + "locked": { + "lastModified": 1795249095, + "narHash": "sha256-tFvjrdir1xJuUxdmsv+yK9PiZ4IMnFCeT8z0iayTlso=", + "rev": "93a9ed0a866099a230ed5146a5bb7d16fd5c9b14", + "type": "tarball", + "url": "https://releases.nixos.org/nixpkgs/nixpkgs-26.11pre1125912.93a9ed0a8660/nixexprs.tar.zst" + }, + "original": { + "type": "tarball", + "url": "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.zst" + } + }, + "nixpkgs-lib": { + "locked": { + "lastModified": 1793504054, + "narHash": "sha256-ThkfL3D/FhCiZFc9+3BtxwuMmpuK+/bGtXCSo1+yVew=", + "owner": "nix-community", + "repo": "nixpkgs.lib", + "rev": "7851ba61fd862b277cb6a9cef37394bc18bb94e4", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixpkgs.lib", + "type": "github" + } + }, + "nixpkgs-lib_2": { + "locked": { + "lastModified": 1793504054, + "narHash": "sha256-ThkfL3D/FhCiZFc9+3BtxwuMmpuK+/bGtXCSo1+yVew=", + "owner": "nix-community", + "repo": "nixpkgs.lib", + "rev": "7851ba61fd862b277cb6a9cef37394bc18bb94e4", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixpkgs.lib", + "type": "github" + } + }, + "nixpkgs-lib_3": { + "locked": { + "lastModified": 1793504054, + "narHash": "sha256-ThkfL3D/FhCiZFc9+3BtxwuMmpuK+/bGtXCSo1+yVew=", + "owner": "nix-community", + "repo": "nixpkgs.lib", + "rev": "7851ba61fd862b277cb6a9cef37394bc18bb94e4", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixpkgs.lib", + "type": "github" + } + }, + "nixpkgs-lib_4": { + "locked": { + "lastModified": 1790477367, + "narHash": "sha256-oujbxmVKDhci2E4EM3KyAbRUgp5/IsCoiA/LfEF7OOk=", + "owner": "nix-community", + "repo": "nixpkgs.lib", + "rev": "f7cd230690d9fc982d06129f9189b101fddcfa3b", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nixpkgs.lib", + "type": "github" + } + }, + "nixpkgs-packages": { + "locked": { + "lastModified": 1795249095, + "narHash": "sha256-tFvjrdir1xJuUxdmsv+yK9PiZ4IMnFCeT8z0iayTlso=", + "rev": "93a9ed0a866099a230ed5146a5bb7d16fd5c9b14", + "type": "tarball", + "url": "https://releases.nixos.org/nixpkgs/nixpkgs-26.11pre1125912.93a9ed0a8660/nixexprs.tar.zst" + }, + "original": { + "type": "tarball", + "url": "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.zst" + } + }, + "nixpkgs-stable": { + "locked": { + "lastModified": 1795370043, + "narHash": "sha256-s/0jq8usZtLVOolYBwmyUmd3JsfAu7w3FU+a0dgMqSY=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "0dc498bfe49baeb18b0f9891e800b53bb2603193", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-26.05", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_10": { + "locked": { + "lastModified": 1788404924, + "narHash": "sha256-lhEhY8X5EgkQ/eg6IFz4cc8jRuSYSvnxx1al7d1dvZ0=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "0968519e14f7aa7d3e9b389682bd74d2b51c8ce8", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_2": { + "locked": { + "lastModified": 1794495034, + "narHash": "sha256-QG/HY0t5t3sfT2ozW/Ikis5Klqf0X4nfTuLvFaBpNno=", + "rev": "2074cc672349f14240fb7ea90d509e0b643e9dd4", + "type": "tarball", + "url": "https://releases.nixos.org/nixpkgs/nixpkgs-26.11pre1118975.2074cc672349/nixexprs.tar.zst" + }, + "original": { + "type": "tarball", + "url": "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.zst" + } + }, + "nixpkgs_3": { + "locked": { + "lastModified": 1790769526, + "narHash": "sha256-6j4yqqBUvIbBn29k0y/2jqlv/YJd8CRkTBYhfm5Z/8c=", + "rev": "c9fe7d12cd78d1adcd12dd15e24432dde5b155a0", + "type": "tarball", + "url": "https://releases.nixos.org/nixpkgs/nixpkgs-26.11pre1082837.c9fe7d12cd78/nixexprs.tar.zst?lastModified=1790769526&rev=c9fe7d12cd78d1adcd12dd15e24432dde5b155a0" + }, + "original": { + "type": "tarball", + "url": "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.zst" + } + }, + "nixpkgs_4": { + "locked": { + "lastModified": 1795374673, + "narHash": "sha256-8YP9YTqsO6cGEZag9bDauM7q+wv/ToLTuwjlO9LMEfQ=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "616ae05a769a23c143b19746b6a3b06366a9a28f", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable-small", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_5": { + "locked": { + "lastModified": 1795258312, + "narHash": "sha256-pLM4uV148b0eRALcfeaBoiw7K2M77XPihI0iNzxytAw=", + "rev": "94c3211b0ee8ba969a3f12eb4aff8ba0f72971dd", + "type": "tarball", + "url": "https://releases.nixos.org/nixos/26.05/nixos-26.05.14979.94c3211b0ee8/nixexprs.tar.zst" + }, + "original": { + "type": "tarball", + "url": "https://channels.nixos.org/nixos-26.05/nixexprs.tar.zst" + } + }, + "nixpkgs_6": { + "locked": { + "lastModified": 1795234589, + "narHash": "sha256-f/VVvxf5RsQgWVhUtefoca5ktVg0DA2bnkMOcmSnozo=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "2786a2a72088ecf32aea5b3ec52099e6a7cff78f", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_7": { + "locked": { + "lastModified": 1795234589, + "narHash": "sha256-f/VVvxf5RsQgWVhUtefoca5ktVg0DA2bnkMOcmSnozo=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "2786a2a72088ecf32aea5b3ec52099e6a7cff78f", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_8": { + "locked": { + "lastModified": 1795234589, + "narHash": "sha256-f/VVvxf5RsQgWVhUtefoca5ktVg0DA2bnkMOcmSnozo=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "2786a2a72088ecf32aea5b3ec52099e6a7cff78f", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_9": { + "locked": { + "lastModified": 1795234589, + "narHash": "sha256-pAEASBc6wof0S58XcSEdZoQ2iFQDkCnZwH+wFLrkd1Q=", + "rev": "2786a2a72088ecf32aea5b3ec52099e6a7cff78f", + "type": "tarball", + "url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1125864.2786a2a72088/nixexprs.tar.xz" + }, + "original": { + "type": "tarball", + "url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz" + } + }, + "opendeck": { + "inputs": { + "deno-nixpkgs": "deno-nixpkgs", + "flake-parts": "flake-parts_4", + "nixpkgs": "nixpkgs_7" + }, + "locked": { + "lastModified": 1795380675, + "narHash": "sha256-v1+8J1wau4oFp0/swakvtdLV85Glx+UqE+g5KOs/ykM=", + "owner": "missmoode", + "repo": "nix-opendeck", + "rev": "313ab53c9601978588c6df713821f033aaac3cfd", + "type": "github" + }, + "original": { + "owner": "missmoode", + "repo": "nix-opendeck", + "type": "github" + } + }, + "openlinkhub": { + "inputs": { + "nixpkgs": "nixpkgs_8" + }, + "locked": { + "path": "./pkgs/openlinkhub", + "type": "path" + }, + "original": { + "path": "./pkgs/openlinkhub", + "type": "path" + }, + "parent": [] + }, + "root": { + "inputs": { + "aagl": "aagl", + "artemisrgb": "artemisrgb", + "cachyos-settings": "cachyos-settings", + "catppuccin": "catppuccin", + "dfiles": "dfiles", + "dms": "dms", + "firefox-addons": "firefox-addons", + "home-manager": "home-manager", + "launchy": "launchy", + "millennium": "millennium", + "nix-cachyos-kernel": "nix-cachyos-kernel", + "nixcord": "nixcord", + "nixpkgs": "nixpkgs_6", + "nixpkgs-stable": "nixpkgs-stable", + "opendeck": "opendeck", + "openlinkhub": "openlinkhub", + "spicetify-nix": "spicetify-nix", + "volt-gui": "volt-gui", + "volt-src": "volt-src", + "zen-browser": "zen-browser" + } + }, + "rust-overlay": { + "inputs": { + "nixpkgs": [ + "aagl", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1794216702, + "narHash": "sha256-J+4v+Olc/2mN/bSc9CuAQ/PB7c0w1mzDJK8JvS7rKmM=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "b70538330f20adc9665afa2976471eb5b85ebd1f", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + }, + "spicetify-nix": { + "inputs": { + "nixpkgs": "nixpkgs_9", + "systems": "systems" + }, + "locked": { + "lastModified": 1795350154, + "narHash": "sha256-ehnFBWuqh6wzu7CtBlKBZJt/qxWugEFLNSu2tNPjC3c=", + "owner": "Gerg-L", + "repo": "spicetify-nix", + "rev": "5bbd2930ff14300a9d90008003d37fe5baa4dd4d", + "type": "github" + }, + "original": { + "owner": "Gerg-L", + "repo": "spicetify-nix", + "type": "github" + } + }, + "std": { + "inputs": { + "flake-parts": "flake-parts_2", + "git-hooks": [ + "cachyos-settings", + "git-hooks" + ], + "nixpkgs": [ + "cachyos-settings", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1795014718, + "narHash": "sha256-QqPzqJSiKJsyVs7WMNYw4iqGY6DBBoeT1Ypd2KIQzAg=", + "owner": "Daaboulex", + "repo": "nix-packaging-standard", + "rev": "e9c3795f662cf273844c2df0b3bcb2926e06a951", + "type": "github" + }, + "original": { + "owner": "Daaboulex", + "ref": "release", + "repo": "nix-packaging-standard", + "type": "github" + } + }, + "systems": { + "locked": { + "lastModified": 1791244623, + "narHash": "sha256-uuanbkFk8a313Zfrxdcz8Us/yQtaxNnKJtX8v0ZPpd8=", + "owner": "nix-systems", + "repo": "default", + "rev": "d36eeed142f88b5a636f2e3856a53c61654cf29b", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "treefmt-nix": { + "inputs": { + "nixpkgs": [ + "nixcord", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1795173499, + "narHash": "sha256-J8IYl3oEdctyvBgWr+/L01MY5Xm0TU4WXwZDccN5jjk=", + "owner": "numtide", + "repo": "treefmt-nix", + "rev": "a0a97e31a897a3537eea5c49df4f8adaa83b3b37", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "treefmt-nix", + "type": "github" + } + }, + "volt-gui": { + "inputs": { + "nixpkgs": "nixpkgs_10", + "volt-src": [ + "volt-src" + ] + }, + "locked": { + "lastModified": 1790358799, + "narHash": "sha256-RFhtiEdlozecF8+tJWUHhqu9xZLpuUnS/Stf9Y1ZcL0=", + "owner": "keygenesis", + "repo": "volt-gui-nix", + "rev": "e165f3b522f5b5963aafa16ee7fe329ac2e7f644", + "type": "github" + }, + "original": { + "owner": "keygenesis", + "repo": "volt-gui-nix", + "type": "github" + } + }, + "volt-src": { + "flake": false, + "locked": { + "lastModified": 1792952698, + "narHash": "sha256-/Watly6Z2Bc+qHwj3nD066fE34FvAmqdcoFBOz9LnHA=", + "owner": "pythonlover02", + "repo": "volt-gui", + "rev": "4a516600474aaac6c41515969d6b14df214f3b91", + "type": "github" + }, + "original": { + "owner": "pythonlover02", + "repo": "volt-gui", + "type": "github" + } + }, + "zen-browser": { + "inputs": { + "home-manager": [ + "home-manager" + ], + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1795434855, + "narHash": "sha256-R2BZyn0NAM3maHw1GfzEtHFpUPAuJyg4t8I6Dbuzsjg=", + "owner": "0xc000022070", + "repo": "zen-browser-flake", + "rev": "e2e4f8220406ce60d64395cfbf91e2189c894769", + "type": "github" + }, + "original": { + "owner": "0xc000022070", + "repo": "zen-browser-flake", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..ef58fd0 --- /dev/null +++ b/flake.nix @@ -0,0 +1,106 @@ +{ + description = "LillyOS"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-26.05"; + home-manager = { + url = "github:nix-community/home-manager"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + zen-browser = { + url = "github:0xc000022070/zen-browser-flake"; + inputs.nixpkgs.follows = "nixpkgs"; + inputs.home-manager.follows = "home-manager"; + }; + firefox-addons = { + url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + dms = { + url = "github:duxlabs-dev/dux-shell/stable"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release"; + openlinkhub.url = "path:./pkgs/openlinkhub"; + artemisrgb.url = "path:./pkgs/artemis-rgb"; + aagl = { + url = "github:ezKEa/aagl-gtk-on-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + nixcord.url = "github:4evy/nixcord"; + catppuccin.url = "github:catppuccin/nix"; + spicetify-nix.url = "github:Gerg-L/spicetify-nix"; + opendeck.url = "github:missmoode/nix-opendeck"; + millennium.url = "github:SteamClientHomebrew/Millennium?dir=packages/nix"; + launchy = { + url = "github:Chloe-ko/Launchy"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + dfiles = { + url = "github:duxlabs-dev/dux-files"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + volt-src = { + url = "github:pythonlover02/volt-gui"; + flake = false; + }; + volt-gui = { + url = "github:keygenesis/volt-gui-nix"; + inputs.volt-src.follows = "volt-src"; + }; + cachyos-settings = { + url = "github:Daaboulex/cachyos-settings-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = { + nixpkgs, + home-manager, + catppuccin, + ... + } @inputs: + let + username = "lilly"; + prettyUsername = "Lilly"; + email = "lilly@hibana.me"; + system = "x86_64-linux"; + in + { + nixosConfigurations = nixpkgs.lib.genAttrs [ "lillypc" ] (host: + nixpkgs.lib.nixosSystem { + inherit system; + specialArgs = { + inherit inputs host username prettyUsername; + }; + modules = [ + ./configuration.nix + home-manager.nixosModules.home-manager + catppuccin.nixosModules.catppuccin + ({config, ...}: { + home-manager = { + useUserPackages = true; + useGlobalPkgs = true; + backupFileExtension = "backup"; + extraSpecialArgs = { + inherit inputs host username prettyUsername email; + nixosConfig = config; + }; + users.${username} = { + imports = [ + ./home + catppuccin.homeModules.catppuccin + ]; + home = { + username = "${username}"; + homeDirectory = "/home/${username}"; + stateVersion = "26.05"; + }; + }; + }; + }) + ]; + }); + }; +} diff --git a/home/artemis.nix b/home/artemis.nix new file mode 100644 index 0000000..5479eb8 --- /dev/null +++ b/home/artemis.nix @@ -0,0 +1,37 @@ +{ inputs, pkgs, ... }: + +let + artemis = inputs.artemisrgb.packages.${pkgs.stdenv.hostPlatform.system}.default; + + waitForOpenRGB = pkgs.writeShellScript "wait-for-openrgb" '' + for _ in $(${pkgs.coreutils}/bin/seq 1 60); do + if ${pkgs.netcat-openbsd}/bin/nc -z -w 1 127.0.0.1 6742 \ + && ${pkgs.netcat-openbsd}/bin/nc -z -w 1 127.0.0.1 6743; then + ${pkgs.coreutils}/bin/sleep 5 + exit 0 + fi + + ${pkgs.coreutils}/bin/sleep 1 + done + + echo "OpenRGB servers did not become available on ports 6742 and 6743" >&2 + exit 1 +''; +in +{ + systemd.user.services.artemis = { + Unit = { + Description = "Artemis RGB Controller"; + After = [ "graphical-session.target" ]; + PartOf = [ "graphical-session.target" ]; + }; + + Service = { + ExecStartPre = "${waitForOpenRGB}"; + ExecStart = "${artemis}/bin/Artemis.UI.Linux --minimized"; + TimeoutStartSec = "65s"; + }; + + Install.WantedBy = [ "xdg-desktop-autostart.target" ]; + }; +} \ No newline at end of file diff --git a/home/catppuccin.nix b/home/catppuccin.nix new file mode 100644 index 0000000..68a0f2a --- /dev/null +++ b/home/catppuccin.nix @@ -0,0 +1,30 @@ +{ config, ... }: +{ + catppuccin = { + enable = true; + autoEnable = true; + cursors.enable = true; + }; + + home.pointerCursor = { + enable = true; + gtk.enable = true; + x11.enable = true; + size = 24; + }; + + wayland.windowManager.hyprland.settings.env = [ + { + _args = [ + "XCURSOR_THEME" + config.home.pointerCursor.name + ]; + } + { + _args = [ + "XCURSOR_SIZE" + (toString config.home.pointerCursor.size) + ]; + } + ]; +} \ No newline at end of file diff --git a/home/cli/btop.nix b/home/cli/btop.nix new file mode 100644 index 0000000..017da5a --- /dev/null +++ b/home/cli/btop.nix @@ -0,0 +1,10 @@ +{ pkgs, ... }: +{ + programs.btop = { + enable = true; + package = pkgs.btop.override { + cudaSupport = true; + rocmSupport = true; + }; + }; +} diff --git a/home/cli/default.nix b/home/cli/default.nix new file mode 100644 index 0000000..09a4da8 --- /dev/null +++ b/home/cli/default.nix @@ -0,0 +1,19 @@ +{ lib, ... }: +let + b = builtins; + + module_files = + b.readDir ./. |> + lib.filterAttrs (name: type: + ( (lib.strings.hasSuffix ".nix" name + && name != "default.nix" + && type == "regular" ) + || ( type == "directory" + && b.pathExists ./${name}/default.nix)) + ) |> + b.attrNames |> + b.map (f: ./${f}); +in +{ + imports = module_files; +} \ No newline at end of file diff --git a/home/cli/fastfetch/default.nix b/home/cli/fastfetch/default.nix new file mode 100644 index 0000000..09a4da8 --- /dev/null +++ b/home/cli/fastfetch/default.nix @@ -0,0 +1,19 @@ +{ lib, ... }: +let + b = builtins; + + module_files = + b.readDir ./. |> + lib.filterAttrs (name: type: + ( (lib.strings.hasSuffix ".nix" name + && name != "default.nix" + && type == "regular" ) + || ( type == "directory" + && b.pathExists ./${name}/default.nix)) + ) |> + b.attrNames |> + b.map (f: ./${f}); +in +{ + imports = module_files; +} \ No newline at end of file diff --git a/home/cli/fastfetch/fastfetch.nix b/home/cli/fastfetch/fastfetch.nix new file mode 100644 index 0000000..5a20cbf --- /dev/null +++ b/home/cli/fastfetch/fastfetch.nix @@ -0,0 +1,219 @@ +{ ... }: + +{ + programs.fastfetch = { + enable = true; + + settings = { + "$schema" = "https://github.com/fastfetch-cli/fastfetch/raw/master/doc/json_schema.json"; + + logo = { + type = "auto"; + #source = "~/.config/fastfetch/logo.jpg"; + source = ./logo.jpg; + padding = { + top = 1; + left = 3; + right = 4; + }; + preserveAspectRatio = true; + position = "left"; + }; + + display = { + separator = " ▸ "; + color = { + keys = "#9B6CFF"; + title = ""; + output = "#FFF7FB"; + separator = ""; + }; + }; + + general = { + thread = true; + processingTimeout = 5000; + detectVersion = true; + playerName = ""; + dsForceDrm = false; + }; + + modules = [ + { + type = "custom"; + format = builtins.fromJSON ''"\u001b[90m┌────────────────────── Operating System ──────────────────────┐"''; + } + { + type = "title"; + key = "│  User"; + color = { + user = "#FF6FAE"; + at = "#FFF7FB"; + host = "#FF6FAE"; + }; + } + { + type = "os"; + key = "│  OS"; + } + { + type = "kernel"; + key = "│  Kernel"; + } + { + type = "shell"; + key = "│  Shell"; + } + { + type = "terminal"; + key = "│  Terminal"; + } + { + type = "terminalfont"; + key = "│  Terminal Font"; + } + { + type = "lm"; + key = "│  Display Manager"; + } + { + type = "wm"; + key = "│  Compositor"; + } + { + type = "theme"; + key = "│ 󰉼 Theme"; + } + { + type = "icons"; + key = "│  Icon Theme"; + } + { + type = "font"; + key = "│  Font"; + } + { + type = "cursor"; + key = "│ 󰆿 Cursor"; + } + { + type = "packages"; + key = "│ 󰏖 Packages"; + combined = true; + } + + { + type = "custom"; + format = builtins.fromJSON ''"\u001b[90m├────────────────────── Hardware ──────────────────────────────┤"''; + } + { + type = "display"; + key = "│ 󰍹 Display"; + order = "asc"; + } + { + type = "cpu"; + key = "│  CPU"; + temp = true; + } + { + type = "gpu"; + key = "│ 󰾲 GPU"; + driverSpecific = false; + detectionMethod = "pci"; + temp = true; + hideType = "integrated"; + } + { + type = "memory"; + key = "│  Memory"; + percent = { + green = 70; + yellow = 90; + type = 0; + }; + } + { + type = "disk"; + key = "│  Disk"; + showRegular = true; + showExternal = true; + showHidden = false; + showSubvolumes = false; + showReadOnly = true; + showUnknown = false; + folders = ""; + hideFolders = "/efi:/boot:/boot/*"; + hideFS = "fuse.sshfs"; + useAvailable = false; + percent = { + green = 70; + yellow = 80; + type = 0; + }; + } + { + type = "custom"; + key = "│ 󰖺 Gamepad"; + format = "8BitDo Ultimate 2 Wireless Controller"; + } + { + type = "custom"; + key = "│ 󰍽 Mouse"; + format = "Logitech G PRO X Superlight 2"; + } + { + type = "keyboard"; + key = "│  Keyboard"; + ignores = [ + "Logitech" + "Yubico" + ]; + } + { + type = "custom"; + key = "│  Sound Card"; + format = "Creative Sound Blaster X4"; + } + { + type = "custom"; + key = "│ 󰓃 Speakers"; + format = "Creative Sound BlasterX Katana"; + } + { + type = "custom"; + key = "│  Headphones"; + format = "Beyerdynamic DT 700 Pro X"; + } + + { + type = "custom"; + format = builtins.fromJSON ''"\u001b[90m├────────────────────── Misc Info ─────────────────────────────┤"''; + } + { + type = "command"; + key = "│  OS Lifetime"; + text = "birth_install=$(cat /etc/os-install-epoch); current=$(date +%s); time_progression=$((current - birth_install)); days_difference=$((time_progression / 86400)); echo $days_difference days"; + } + { + type = "locale"; + key = "│  Locale"; + } + { + type = "uptime"; + key = "│  Uptime"; + } + { + type = "colors"; + key = "│  Colors"; + symbol = "circle"; + paddingLeft = 0; + } + { + type = "custom"; + format = builtins.fromJSON ''"\u001b[90m└──────────────────────────────────────────────────────────────┘"''; + } + ]; + }; + }; +} \ No newline at end of file diff --git a/home/cli/fastfetch/logo.jpg b/home/cli/fastfetch/logo.jpg new file mode 100644 index 0000000..d31bf66 Binary files /dev/null and b/home/cli/fastfetch/logo.jpg differ diff --git a/home/cli/fish.nix b/home/cli/fish.nix new file mode 100644 index 0000000..470457f --- /dev/null +++ b/home/cli/fish.nix @@ -0,0 +1,71 @@ +{ pkgs, lib, ...}: + +{ + programs = { + fish = { + enable = true; + shellInit = '' + set fish_greeting + zoxide init fish --cmd cd | source + ''; + shellAliases = { + ls = "eza"; + }; + functions = { + hs = { + body = '' + switch $argv[1] + case off shutdown poweroff + hyprshutdown -t 'Shutting down…' --post-cmd 'systemctl poweroff' + case reboot restart + hyprshutdown -t 'Restarting…' --post-cmd 'systemctl reboot' + case logout exit + hyprshutdown + case '*' + echo "Usage: hs {off|reboot|logout}" + return 1 + end + ''; + description = "Hyprshutdown function"; + }; + rebuild = { + body = '' + switch $argv[1] + case boot + sudo nixos-rebuild boot --flake ~/LillyOS/#lillypc + case '*' + sudo nixos-rebuild switch --flake ~/LillyOS/#lillypc + return 1 + end + ''; + description = "Hyprshutdown function"; + }; + }; + }; + zoxide.enable = true; + starship = { + enable = true; + settings = lib.mkForce {}; + presets = lib.mkForce []; + }; + kitty = { + enable = true; + shellIntegration.enableFishIntegration = true; + }; + eza = { + enable = true; + enableFishIntegration = true; + git = true; + icons = "always"; + extraOptions = [ + "--header" + "--no-quotes" + "--git-ignore" + "--group-directories-first" + "--classify=auto" + "--hyperlink=auto" + ]; + }; + }; + xdg.configFile."starship.toml".source = ./starship.toml; +} diff --git a/home/cli/starship.toml b/home/cli/starship.toml new file mode 100644 index 0000000..7cee099 --- /dev/null +++ b/home/cli/starship.toml @@ -0,0 +1,288 @@ +"$schema" = 'https://starship.rs/config-schema.json' + +format = """ +[](mauve)\ +$os\ +$username\ +$hostname\ +[](bg:peach fg:mauve)\ +$directory\ +[](bg:yellow fg:peach)\ +$git_branch\ +$git_status\ +[](fg:yellow bg:green)\ +$c\ +$rust\ +$golang\ +$nodejs\ +$php\ +$java\ +$kotlin\ +$haskell\ +$python\ +[](fg:green bg:sapphire)\ +$conda\ +[](fg:sapphire bg:lavender)\ +$time\ +[ ](fg:lavender)\ +$cmd_duration\ +$line_break\ +$character""" + +palette = 'catppuccin_mocha' + +[os] +disabled = false +style = "bg:mauve fg:crust" + +[os.symbols] +Windows = "" +Ubuntu = "󰕈" +SUSE = "" +Raspbian = "󰐿" +Mint = "󰣭" +Macos = "󰀵" +Manjaro = "" +Linux = "󰌽" +Gentoo = "󰣨" +Fedora = "󰣛" +Alpine = "" +Amazon = "" +Android = "" +AOSC = "" +Arch = "󰣇" +CachyOS = "󰣇" +Artix = "󰣇" +CentOS = "" +Debian = "󰣚" +Redhat = "󱄛" +RedHatEnterprise = "󱄛" + +[username] +show_always = true +style_user = "bg:mauve fg:crust" +style_root = "bg:mauve fg:crust" +format = '[ $user]($style)' + +[hostname] +ssh_only = true +style = "bg:mauve fg:crust" +format = '[ @ $hostname]($style)' +disabled = false +ssh_symbol = "ssh" + +[directory] +style = "bg:peach fg:crust" +format = "[ $path ]($style)" +truncation_length = 3 +truncation_symbol = "…/" + +[directory.substitutions] +"Documents" = "󰈙 " +"Downloads" = " " +"Music" = "󰝚 " +"Pictures" = " " +"Developer" = "󰲋 " + +[git_branch] +symbol = "" +style = "bg:yellow" +format = '[[ $symbol $branch ](fg:crust bg:yellow)]($style)' + +[git_status] +style = "bg:yellow" +format = '[[($all_status$ahead_behind )](fg:crust bg:yellow)]($style)' + +[nodejs] +symbol = "" +style = "bg:green" +format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)' + +[c] +symbol = " " +style = "bg:green" +format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)' + +[rust] +symbol = "" +style = "bg:green" +format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)' + +[golang] +symbol = "" +style = "bg:green" +format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)' + +[php] +symbol = "" +style = "bg:green" +format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)' + +[java] +symbol = " " +style = "bg:green" +format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)' + +[kotlin] +symbol = "" +style = "bg:green" +format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)' + +[haskell] +symbol = "" +style = "bg:green" +format = '[[ $symbol( $version) ](fg:crust bg:green)]($style)' + +[python] +symbol = "" +style = "bg:green" +format = '[[ $symbol( $version)(\(#$virtualenv\)) ](fg:crust bg:green)]($style)' + +[docker_context] +symbol = "" +style = "bg:sapphire" +format = '[[ $symbol( $context) ](fg:crust bg:sapphire)]($style)' + +[conda] +symbol = "  " +style = "fg:crust bg:sapphire" +format = '[$symbol$environment ]($style)' +ignore_base = false + +[time] +disabled = false +time_format = "%R" +style = "bg:lavender" +format = '[[  $time ](fg:crust bg:lavender)]($style)' + +[line_break] +disabled = true + +[character] +disabled = false +success_symbol = '[❯](bold fg:green)' +error_symbol = '[❯](bold fg:red)' +vimcmd_symbol = '[❮](bold fg:green)' +vimcmd_replace_one_symbol = '[❮](bold fg:lavender)' +vimcmd_replace_symbol = '[❮](bold fg:lavender)' +vimcmd_visual_symbol = '[❮](bold fg:yellow)' + +[cmd_duration] +show_milliseconds = true +format = " in $duration " +style = "bg:lavender" +disabled = false +show_notifications = true +min_time_to_notify = 45000 + +[palettes.catppuccin_mocha] +rosewater = "#f5e0dc" +flamingo = "#f2cdcd" +pink = "#f5c2e7" +mauve = "#cba6f7" +red = "#f38ba8" +maroon = "#eba0ac" +peach = "#fab387" +yellow = "#f9e2af" +green = "#a6e3a1" +teal = "#94e2d5" +sky = "#89dceb" +sapphire = "#74c7ec" +blue = "#89b4fa" +lavender = "#b4befe" +text = "#cdd6f4" +subtext1 = "#bac2de" +subtext0 = "#a6adc8" +overlay2 = "#9399b2" +overlay1 = "#7f849c" +overlay0 = "#6c7086" +surface2 = "#585b70" +surface1 = "#45475a" +surface0 = "#313244" +base = "#1e1e2e" +mantle = "#181825" +crust = "#11111b" + +[palettes.catppuccin_frappe] +rosewater = "#f2d5cf" +flamingo = "#eebebe" +pink = "#f4b8e4" +mauve = "#ca9ee6" +red = "#e78284" +maroon = "#ea999c" +peach = "#ef9f76" +yellow = "#e5c890" +green = "#a6d189" +teal = "#81c8be" +sky = "#99d1db" +sapphire = "#85c1dc" +blue = "#8caaee" +lavender = "#babbf1" +text = "#c6d0f5" +subtext1 = "#b5bfe2" +subtext0 = "#a5adce" +overlay2 = "#949cbb" +overlay1 = "#838ba7" +overlay0 = "#737994" +surface2 = "#626880" +surface1 = "#51576d" +surface0 = "#414559" +base = "#303446" +mantle = "#292c3c" +crust = "#232634" + +[palettes.catppuccin_latte] +rosewater = "#dc8a78" +flamingo = "#dd7878" +pink = "#ea76cb" +mauve = "#8839ef" +red = "#d20f39" +maroon = "#e64553" +peach = "#fe640b" +yellow = "#df8e1d" +green = "#40a02b" +teal = "#179299" +sky = "#04a5e5" +sapphire = "#209fb5" +blue = "#1e66f5" +lavender = "#7287fd" +text = "#4c4f69" +subtext1 = "#5c5f77" +subtext0 = "#6c6f85" +overlay2 = "#7c7f93" +overlay1 = "#8c8fa1" +overlay0 = "#9ca0b0" +surface2 = "#acb0be" +surface1 = "#bcc0cc" +surface0 = "#ccd0da" +base = "#eff1f5" +mantle = "#e6e9ef" +crust = "#dce0e8" + +[palettes.catppuccin_macchiato] +rosewater = "#f4dbd6" +flamingo = "#f0c6c6" +pink = "#f5bde6" +mauve = "#c6a0f6" +red = "#ed8796" +maroon = "#ee99a0" +peach = "#f5a97f" +yellow = "#eed49f" +green = "#a6da95" +teal = "#8bd5ca" +sky = "#91d7e3" +sapphire = "#7dc4e4" +blue = "#8aadf4" +lavender = "#b7bdf8" +text = "#cad3f5" +subtext1 = "#b8c0e0" +subtext0 = "#a5adcb" +overlay2 = "#939ab7" +overlay1 = "#8087a2" +overlay0 = "#6e738d" +surface2 = "#5b6078" +surface1 = "#494d64" +surface0 = "#363a4f" +base = "#24273a" +mantle = "#1e2030" +crust = "#181926" diff --git a/home/default.nix b/home/default.nix new file mode 100644 index 0000000..09a4da8 --- /dev/null +++ b/home/default.nix @@ -0,0 +1,19 @@ +{ lib, ... }: +let + b = builtins; + + module_files = + b.readDir ./. |> + lib.filterAttrs (name: type: + ( (lib.strings.hasSuffix ".nix" name + && name != "default.nix" + && type == "regular" ) + || ( type == "directory" + && b.pathExists ./${name}/default.nix)) + ) |> + b.attrNames |> + b.map (f: ./${f}); +in +{ + imports = module_files; +} \ No newline at end of file diff --git a/home/desktop/default.nix b/home/desktop/default.nix new file mode 100644 index 0000000..09a4da8 --- /dev/null +++ b/home/desktop/default.nix @@ -0,0 +1,19 @@ +{ lib, ... }: +let + b = builtins; + + module_files = + b.readDir ./. |> + lib.filterAttrs (name: type: + ( (lib.strings.hasSuffix ".nix" name + && name != "default.nix" + && type == "regular" ) + || ( type == "directory" + && b.pathExists ./${name}/default.nix)) + ) |> + b.attrNames |> + b.map (f: ./${f}); +in +{ + imports = module_files; +} \ No newline at end of file diff --git a/home/desktop/dux.nix b/home/desktop/dux.nix new file mode 100644 index 0000000..746a099 --- /dev/null +++ b/home/desktop/dux.nix @@ -0,0 +1,205 @@ +{ inputs, lib, pkgs, config, ... }: +let + catppuccinTheme = pkgs.fetchurl { + url = "https://raw.githubusercontent.com/AvengeMedia/dms-plugin-registry/main/themes/catppuccin/theme.json"; + hash = "sha256:n2wshXtzxFcfDsKrC7BgR2vTBeHq0ZufDhgLujjMibs="; + }; +in +{ + imports = [ + inputs.dms.homeModules.dank-material-shell + inputs.dfiles.homeModules.dux-files + ]; + config = { + programs = { + + dux-files = { + enable = true; + + systemd = { + enable = true; + restartIfChanged = true; + }; + + portal = { + enable = true; + preferred = true; + desktop = "hyprland"; + }; + + settings = { + themeMode = "dark"; + }; + }; + + dank-material-shell = { + enable = true; + systemd = { + enable = true; + restartIfChanged = true; + }; + settings = { + # Theme + currentThemeName = "custom"; + currentThemeCategory = "registry"; + soundVolumeChanged = false; + customThemeFile = + "${config.xdg.configHome}/dms/themes/catppuccin/theme.json"; + registryThemeVariants = { + catppuccin = { + dark = { + flavor = "mocha"; + accent = "mauve"; + }; + + light = { + flavor = "latte"; + accent = "mauve"; + }; + }; + }; + # Time + clockFormat = "24h"; + + # Misc + customPowerActionLogout = "uwsm stop"; + launchPrefix = "uwsm-app -- "; + + # Bar Config + powerMenuActions = [ + "reboot" + "logout" + "poweroff" + "restart" + ]; + barConfigs = [ + { + id = "default"; + name = "Main Bar"; + enabled = true; + position = 0; + screenPreferences = [ "all" ]; + showOnLastDisplay = true; + + leftWidgets = [ + { + id = "launcherButton"; + enabled = true; + launcherLogoMode = "os"; + launcherLogoColorOverride = "primary"; + } + { + id = "workspaceSwitcher"; + enabled = true; + showWorkspaceIndex = true; + showWorkspaceName = true; + showWorkspaceApps = true; + workspaceUrgentColorMode = "primary"; + } + { + id = "focusedWindow"; + enabled = true; + focusedWindowShowIcon = false; + } + ]; + + centerWidgets = [ + { + id = "lyricsOnPanel"; + enabled = true; + } + { + id = "weather"; + enabled = true; + } + { + id = "cpuUsage"; + enabled = true; + } + { + id = "cpuTemp"; + enabled = true; + } + { + id = "gpuTemp"; + enabled = true; + selectedGpuIndex = 0; + pciId = "10de:2c02"; + } + { + id = "memUsage"; + enabled = true; + } + { + id = "music"; + enabled = true; + } + { + id = "homeAssistantMonitor"; + enabled = true; + } + ]; + + rightWidgets = [ + { + id = "systemTray"; + enabled = true; + } + { + id = "clipboard"; + enabled = true; + } + { + id = "notepadButton"; + enabled = true; + } + { + id = "notificationButton"; + enabled = true; + } + { + id = "clock"; + enabled = true; + } + { + id = "controlCenterButton"; + enabled = true; + } + ]; + + spacing = 4; + innerPadding = 4; + bottomGap = 0; + transparency = 1; + widgetTransparency = 1; + squareCorners = false; + noBackground = false; + gothCornersEnabled = false; + gothCornerRadiusOverride = false; + gothCornerRadiusValue = 12; + borderEnabled = true; + borderColor = "primary"; + borderOpacity = 0.5; + borderThickness = 1; + fontScale = 1; + autoHide = false; + autoHideDelay = 250; + openOnOverview = false; + visible = true; + popupGapsAuto = true; + popupGapsManual = 4; + maximizeDetection = false; + widgetOutlineEnabled = false; + widgetOutlineColor = "surfaceText"; + widgetOutlineOpacity = 0.48; + shadowIntensity = 0; + followInterfaceStyle = true; + widgetFollowInterfaceStyle = true; + } + ]; + }; + }; + }; + xdg.configFile."dms/themes/catppuccin/theme.json".source = catppuccinTheme; + }; +} diff --git a/home/desktop/gtk.nix b/home/desktop/gtk.nix new file mode 100644 index 0000000..03bc02f --- /dev/null +++ b/home/desktop/gtk.nix @@ -0,0 +1,22 @@ +{ pkgs, ... }: + +let + gtkTheme = pkgs.colloid-gtk-theme.override { + themeVariants = [ "purple" ]; + colorVariants = [ "dark" ]; + sizeVariants = [ "standard" ]; + tweaks = [ "catppuccin" ]; + }; +in +{ + gtk = { + enable = true; + + colorScheme = "dark"; + + theme = { + package = gtkTheme; + name = "Colloid-Purple-Dark-Catppuccin"; + }; + }; +} \ No newline at end of file diff --git a/home/desktop/hyprland-config/animations.nix b/home/desktop/hyprland-config/animations.nix new file mode 100644 index 0000000..c58e078 --- /dev/null +++ b/home/desktop/hyprland-config/animations.nix @@ -0,0 +1,189 @@ +{ + wayland.windowManager.hyprland = { + settings = { + # Curves + curve = [ + { + _args = [ + "expressiveFastSpatial" + { + type = "bezier"; + points = [ + [ 0.42 1.67 ] + [ 0.21 0.90 ] + ]; + } + ]; + } + { + _args = [ + "expressiveSlowSpatial" + { + type = "bezier"; + points = [ + [ 0.39 1.29 ] + [ 0.35 0.98 ] + ]; + } + ]; + } + { + _args = [ + "expressiveDefaultSpatial" + { + type = "bezier"; + points = [ + [ 0.38 1.21 ] + [ 0.22 1.00 ] + ]; + } + ]; + } + { + _args = [ + "emphasizedDecel" + { + type = "bezier"; + points = [ + [ 0.05 0.7 ] + [ 0.1 1 ] + ]; + } + ]; + } + { + _args = [ + "emphasizedAccel" + { + type = "bezier"; + points = [ + [ 0.3 0 ] + [ 0.8 0.15 ] + ]; + } + ]; + } + { + _args = [ + "standardDecel" + { + type = "bezier"; + points = [ + [ 0 0 ] + [ 0 1 ] + ]; + } + ]; + } + { + _args = [ + "menu_decel" + { + type = "bezier"; + points = [ + [ 0.1 1 ] + [ 0 1 ] + ]; + } + ]; + } + { + _args = [ + "menu_accel" + { + type = "bezier"; + points = [ + [ 0.52 0.03 ] + [ 0.72 0.08 ] + ]; + } + ]; + } + ]; + + # Animations + animation = [ + { + leaf = "windowsIn"; + enabled = true; + speed = 2; + bezier = "emphasizedDecel"; + style = "popin 80%"; + } + { + leaf = "windowsOut"; + enabled = true; + speed = 3; + bezier = "emphasizedDecel"; + style = "popin 90%"; + } + { + leaf = "windowsMove"; + enabled = true; + speed = 3; + bezier = "emphasizedDecel"; + style = "slide"; + } + { + leaf = "border"; + enabled = true; + speed = 10; + bezier = "emphasizedDecel"; + } + { + leaf = "layersIn"; + enabled = true; + speed = 2.7; + bezier = "emphasizedDecel"; + style = "popin 93%"; + } + { + leaf = "layersOut"; + enabled = true; + speed = 2.4; + bezier = "menu_accel"; + style = "popin 94%"; + } + { + leaf = "fadeLayersIn"; + enabled = true; + speed = 0.5; + bezier = "menu_decel"; + } + { + leaf = "fadeLayersOut"; + enabled = true; + speed = 2.7; + bezier = "menu_accel"; + } + { + leaf = "fade"; + enabled = true; + speed = 2; + bezier = "emphasizedDecel"; + } + { + leaf = "workspaces"; + enabled = true; + speed = 7; + bezier = "menu_decel"; + style = "slide"; + } + { + leaf = "specialWorkspaceIn"; + enabled = true; + speed = 2.8; + bezier = "emphasizedDecel"; + style = "slidevert"; + } + { + leaf = "specialWorkspaceOut"; + enabled = true; + speed = 1.2; + bezier = "emphasizedAccel"; + style = "slidevert"; + } + ]; + }; + }; +} \ No newline at end of file diff --git a/home/desktop/hyprland-config/binds.nix b/home/desktop/hyprland-config/binds.nix new file mode 100644 index 0000000..956d9f2 --- /dev/null +++ b/home/desktop/hyprland-config/binds.nix @@ -0,0 +1,157 @@ +{ lib, ... }: + +let + # Nix-side variables: these are resolved while Home Manager builds the config. + mod = "SUPER"; + modKey = suffix: "${mod} + ${suffix}"; + + lua = lib.generators.mkLuaInline; + + # Home Manager turns each `settings.bind` entry into an hl.bind(...) call. + # The dispatcher is a Lua expression; bind options remain ordinary Nix attrs. + mkBind = key: dispatcher: options: { + _args = [ key dispatcher ] ++ lib.optional (options != null) options; + }; + bind = key: dispatcher: mkBind key dispatcher null; + bindWith = key: dispatcher: options: mkBind key dispatcher options; + + # Small helpers keep the actual keybind list readable. + exec = command: lua "hl.dsp.exec_cmd(${builtins.toJSON command})"; + focusDirection = direction: + lua "hl.dsp.focus({ direction = ${builtins.toJSON direction} })"; + moveDirection = direction: + lua "hl.dsp.window.move({ direction = ${builtins.toJSON direction} })"; + moveWorkspace = workspace: silent: + lua "hl.dsp.window.move({ workspace = ${builtins.toJSON workspace}${if silent then ", silent = true" else ""} })"; + focusWorkspace = workspace: + lua "hl.dsp.focus({ workspace = ${builtins.toJSON workspace} })"; + + binds = [ + # Keybind overview + (bind (modKey "K") (exec "dms ipc call keybinds toggle hyprland")) + + # Launcher + (bind (modKey "space") (exec "dms ipc call spotlight toggle")) + (bind "ALT + space" (exec "dms ipc call spotlight toggle")) + + # Screen capture + (bind (modKey "SHIFT + C") (exec "hyprpicker -a")) + (bind (modKey "SHIFT + S") (exec "hyprshot --freeze --mode region --clipboard-only")) + #(bind (modKey "SHIFT + S") (exec "bash /home/lilly/Scripts/zipline-region.sh")) + (bind "CTRL + SHIFT + 3" (exec "bash /home/lilly/Scripts/zipline-monitor.sh")) + (bind "CTRL + SHIFT + 2" (exec "bash /home/lilly/Scripts/zipline-window.sh")) + + # Move focus + (bind (modKey "left") (focusDirection "left")) + (bind (modKey "right") (focusDirection "right")) + (bind (modKey "up") (focusDirection "up")) + (bind (modKey "down") (focusDirection "down")) + + # Move windows + (bind (modKey "SHIFT + left") (moveDirection "left")) + (bind (modKey "SHIFT + right") (moveDirection "right")) + (bind (modKey "SHIFT + up") (moveDirection "up")) + (bind (modKey "SHIFT + down") (moveDirection "down")) + + # Kill windows + (bind "ALT + F4" (lua "hl.dsp.window.close()")) + (bind (modKey "Q") (lua "hl.dsp.window.close()")) + (bind (modKey "SHIFT + ALT + Q") (exec "hyprctl kill")) + + # Float + (bind (modKey "ALT + space") (lua ''hl.dsp.window.float({ action = "toggle" })'')) + + # Maximize / fullscreen + (bind (modKey "D") (lua ''hl.dsp.window.fullscreen({ mode = "maximized" })'')) + (bind (modKey "F") (lua ''hl.dsp.window.fullscreen({ mode = "fullscreen" })'')) + (bind (modKey "ALT + F") (lua "hl.dsp.window.fullscreen({ client = 0, internal = 3 })")) + + # Pin + (bind (modKey "P") (lua "hl.dsp.window.pin()")) + + # Move window to workspace (silent) + ] + ++ lib.genList + (i: bind (modKey "ALT + ${toString (i + 1)}") (moveWorkspace (i + 1) true)) + 9 + ++ [ + (bind (modKey "ALT + 0") (moveWorkspace 10 true)) + + # Move window to workspace (follow) + ] + ++ lib.genList + (i: bind (modKey "CTRL + ${toString (i + 1)}") (moveWorkspace (i + 1) false)) + 9 + ++ [ + (bind (modKey "CTRL + 0") (moveWorkspace 10 false)) + + (bindWith (modKey "SHIFT + mouse_down") (moveWorkspace "r-1" false) { mouse = true; }) + (bindWith (modKey "SHIFT + mouse_up") (moveWorkspace "r+1" false) { mouse = true; }) + (bindWith (modKey "ALT + mouse_down") (moveWorkspace "-1" false) { mouse = true; }) + (bindWith (modKey "ALT + mouse_up") (moveWorkspace "+1" false) { mouse = true; }) + (bind (modKey "ALT + Page_Down") (moveWorkspace "+1" false)) + (bind (modKey "ALT + Page_Up") (moveWorkspace "-1" false)) + (bind (modKey "SHIFT + Page_Down") (moveWorkspace "r+1" false)) + (bind (modKey "SHIFT + Page_Up") (moveWorkspace "r-1" false)) + (bind (modKey "CTRL + SHIFT + right") (moveWorkspace "r+1" false)) + (bind (modKey "CTRL + SHIFT + left") (moveWorkspace "r-1" false)) + + # Special workspace + (bind (modKey "ALT + S") (moveWorkspace "special" true)) + (bind (modKey "CTRL + S") (lua "hl.dsp.workspace.toggle_special()")) + + # Switch workspaces + ] + ++ lib.genList + (i: bind (modKey (toString (i + 1))) (focusWorkspace (i + 1))) + 9 + ++ [ + (bind (modKey "0") (focusWorkspace 10)) + + (bind (modKey "CTRL + right") (focusWorkspace "r+1")) + (bind (modKey "CTRL + left") (focusWorkspace "r-1")) + (bind (modKey "CTRL + ALT + right") (focusWorkspace "m+1")) + (bind (modKey "CTRL + ALT + left") (focusWorkspace "m-1")) + (bind (modKey "Page_Down") (focusWorkspace "+1")) + (bind (modKey "Page_Up") (focusWorkspace "-1")) + (bind (modKey "CTRL + Page_Down") (focusWorkspace "r+1")) + (bind (modKey "CTRL + Page_Up") (focusWorkspace "r-1")) + (bindWith (modKey "mouse_up") (focusWorkspace "+1") { mouse = true; }) + (bindWith (modKey "mouse_down") (focusWorkspace "-1") { mouse = true; }) + (bindWith (modKey "CTRL + mouse_up") (focusWorkspace "r+1") { mouse = true; }) + (bindWith (modKey "CTRL + mouse_down") (focusWorkspace "r-1") { mouse = true; }) + (bind (modKey "CTRL + BracketLeft") (focusWorkspace "-1")) + (bind (modKey "CTRL + BracketRight") (focusWorkspace "+1")) + (bind (modKey "CTRL + up") (focusWorkspace "r-5")) + (bind (modKey "CTRL + down") (focusWorkspace "r+5")) + + # Quick launch + (bind (modKey "Return") (exec "uwsm-app -- kitty")) + (bind "CTRL + ALT + T" (exec "uwsm-app -- kitty")) + (bind (modKey "CTRL + V") (exec "uwsm-app -- pwvucontrol")) + (bind "CTRL + SHIFT + Escape" (exec "uwsm-app -- btop")) + (bind (modKey "CTRL + backslash") (lua "hl.dsp.window.resize({ x = 640, y = 480 })")) + + # Split scaling + (bindWith (modKey "semicolon") (lua ''hl.dsp.layout("splitratio -0.1")'') { repeating = true; }) + (bindWith (modKey "apostrophe") (lua ''hl.dsp.layout("splitratio +0.1")'') { repeating = true; }) + + # Volume / brightness + (bindWith "XF86AudioRaiseVolume" (exec "wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%+ -l 1.5") { locked = true; repeating = true; }) + (bindWith "XF86AudioLowerVolume" (exec "wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%- -l 1.5") { locked = true; repeating = true; }) + (bindWith (modKey "XF86AudioRaiseVolume") (exec "dms ipc call mpris next") { locked = true; repeating = true; }) + (bindWith (modKey "XF86AudioLowerVolume") (exec "dms ipc call mpris previous") { locked = true; repeating = true; }) + (bindWith "XF86AudioMute" (exec "wpctl set-mute @DEFAULT_SINK@ toggle") { locked = true; repeating = true; }) + + # Mouse move / resize + (bindWith (modKey "mouse:272") (lua "hl.dsp.window.drag()") { mouse = true; }) + (bindWith (modKey "mouse:274") (lua "hl.dsp.window.drag()") { mouse = true; }) + (bindWith (modKey "mouse:273") (lua "hl.dsp.window.resize()") { mouse = true; }) + + # Special kitty + (bind (modKey "T") (exec ''uwsm-app -- kitty --class "kittyspecial"'')) + ]; +in +{ + wayland.windowManager.hyprland.settings.bind = binds; +} diff --git a/home/desktop/hyprland-config/default.nix b/home/desktop/hyprland-config/default.nix new file mode 100644 index 0000000..09a4da8 --- /dev/null +++ b/home/desktop/hyprland-config/default.nix @@ -0,0 +1,19 @@ +{ lib, ... }: +let + b = builtins; + + module_files = + b.readDir ./. |> + lib.filterAttrs (name: type: + ( (lib.strings.hasSuffix ".nix" name + && name != "default.nix" + && type == "regular" ) + || ( type == "directory" + && b.pathExists ./${name}/default.nix)) + ) |> + b.attrNames |> + b.map (f: ./${f}); +in +{ + imports = module_files; +} \ No newline at end of file diff --git a/home/desktop/hyprland-config/dms.nix b/home/desktop/hyprland-config/dms.nix new file mode 100644 index 0000000..26241a9 --- /dev/null +++ b/home/desktop/hyprland-config/dms.nix @@ -0,0 +1,10 @@ +{ + wayland.windowManager.hyprland = { + extraConfig = '' + require("dms.colors") + require("dms.input") + require("dms.layout") + require("dms.windowrules") + ''; +}; +} \ No newline at end of file diff --git a/home/desktop/hyprland-config/general.nix b/home/desktop/hyprland-config/general.nix new file mode 100644 index 0000000..d3d7419 --- /dev/null +++ b/home/desktop/hyprland-config/general.nix @@ -0,0 +1,5 @@ +{ + wayland.windowManager.hyprland.settings.config = { + xwayland.force_zero_scaling = true; + }; +} diff --git a/home/desktop/hyprland-config/input.nix b/home/desktop/hyprland-config/input.nix new file mode 100644 index 0000000..e2f1d5f --- /dev/null +++ b/home/desktop/hyprland-config/input.nix @@ -0,0 +1,16 @@ +{ + wayland.windowManager.hyprland = { + settings.config = { + input = { + kb_layout = "us"; + kb_variant = "altgr-intl"; + sensitivity = 0.3; + follow_mouse = 1; + accel_profile = "flat"; + + repeat_delay = 250; + repeat_rate = 35; + }; + }; + }; +} diff --git a/home/desktop/hyprland-config/monitors.nix b/home/desktop/hyprland-config/monitors.nix new file mode 100644 index 0000000..59805d7 --- /dev/null +++ b/home/desktop/hyprland-config/monitors.nix @@ -0,0 +1,51 @@ +{ + wayland.windowManager.hyprland.settings = { + monitor = [ + # Fallback monitor + { + output = ""; + mode = "preferred"; + position = "auto"; + scale = 1; + } + + # AORUS FO32U2 + { + output = "desc:GIGA-BYTE TECHNOLOGY CO. LTD. AORUS FO32U2 24210B000546"; + mode = "3840x2160@240.0"; + position = "0x0"; + scale = 1.5; + + bitdepth = 10; + vrr = 3; + + supports_wide_color = 1; + supports_hdr = 1; + + sdr_min_luminance = 0.0; + sdr_max_luminance = 1000; + + min_luminance = 0.0; + max_luminance = 1000; + max_avg_luminance = 400; + } + + # Samsung LF32TU87 + { + output = "desc:Samsung Electric Company LF32TU87 HNTT700129"; + mode = "3840x2160@60.0"; + #position = "-2560x0"; + position = "auto-center-left"; + scale = 1.5; + + bitdepth = 10; + } + + # Disable TV + { + output = "desc:Technical Concepts Ltd Beyond TV 0x00010000"; + disabled = true; + } + ]; + }; +} diff --git a/home/desktop/hyprland-config/windowrules.nix b/home/desktop/hyprland-config/windowrules.nix new file mode 100644 index 0000000..353f4f2 --- /dev/null +++ b/home/desktop/hyprland-config/windowrules.nix @@ -0,0 +1,266 @@ +let + games = "^(steam_app_.*|gamescope|.*.exe|Vintage Story|Minecraft.*|steam_proton|osu!)$"; + games_initial_class = "^(Godot)$"; + + launch_on_second_monitor = "^(vesktop|Spotify|spotify|equibop|discord|com.saivert.pwvucontrol|com.github.th_ch.youtube_music|com.github.th-ch.youtube-music)$"; + + utility_workspace = "10"; + novrr = "^(steam_app_990080)$"; + + # Replace with your actual secondary monitor workspace number + altscreenworkspace = 11; + + file_dialog_titles = [ + "^(Open File)(.*)$" + "^(Select a File)(.*)$" + "^(Select folder)(.*)$" + "^(Choose wallpaper)(.*)$" + "^(Open Folder)(.*)$" + "^(Save As)(.*)$" + "^(Enter name of file to save to)(.*)$" + "^(Library)(.*)$" + "^(File Upload)(.*)$" + "^(.*)(wants to save)$" + "^(.*)(wants to open)$" + ]; +in +{ + wayland.windowManager.hyprland = { + settings = { + window_rule = + [ + # Second monitor apps + { + match = { + class = launch_on_second_monitor; + }; + workspace = "${toString altscreenworkspace} silent"; + } + + # Steam + { + match = { + class = "steam"; + title = "Steam"; + }; + workspace = "4 silent"; + tile = true; + } + { + match = { + class = "steam"; + title = "Friends List"; + }; + workspace = "4 silent"; + tile = true; + } + + # Games + { + match = { + class = games; + }; + content = "game"; + } + { + match = { + class = games; + }; + tag = "+game"; + } + { + match = { + class = games; + }; + workspace = 3; + } + { + match = { + class = games; + }; + tile = true; + } + { + match = { + initial_class = games_initial_class; + }; + content = "game"; + } + { + match = { + initial_class = games_initial_class; + }; + tag = "+game"; + } + { + match = { + initial_class = games_initial_class; + }; + workspace = 3; + } + { + match = { + initial_class = games_initial_class; + }; + tile = true; + } + + # Per-app VRR / rendering + { + match = { + class = novrr; + }; + no_vrr = true; + } + { + match = { + class = "steam_app_3564740"; + }; + no_vrr = true; + } + { + match = { + class = "mpv"; + }; + no_vrr = true; + } + { + match = { + class = "starrail.exe"; + }; + render_unfocused = true; + } + { + match = { + initial_class = "Godot"; + }; + no_vrr = true; + } + + # Utility workspace + { + match = { + class = "com.github.wwmm.easyeffects"; + }; + workspace = "${utility_workspace} silent"; + } + { + match = { + class = "org.openrgb.OpenRGB"; + }; + workspace = "${utility_workspace} silent"; + } + { + match = { + class = "com.core447.StreamController"; + title = "StreamController"; + }; + workspace = "${utility_workspace} silent"; + } + { + match = { + class = "opendeck"; + }; + workspace = "${utility_workspace} silent"; + } + { + match = { + class = "Artemis.UI.Linux"; + title = "Artemis 2.0"; + }; + workspace = "${utility_workspace} silent"; + } + { + match = { + class = "com.vysp3r.ProtonPlus"; + }; + workspace = "${utility_workspace} silent"; + } + + # Why does kitty suddenly fullscreen?? + { + match = { + class = "kitty"; + }; + fullscreen = false; + } + + # Kitty scratchpad + { + match = { + class = "kittyspecial"; + }; + workspace = "special silent"; + size = [ 1303 717 ]; + move = [ 656 718 ]; + float = true; + } + + # No shadow on tiled windows + { + match = { + float = false; + }; + no_shadow = true; + } + + # Idle inhibit for fullscreen + { + match = { + class = ".*"; + }; + idle_inhibit = "fullscreen"; + } + ] + + # Generic float rules: file dialogs + ++ builtins.map + (title: { + match = { + inherit title; + }; + float = true; + center = true; + }) + file_dialog_titles + + ++ [ + # Choose wallpaper also gets a size + { + match = { + title = "^(Choose wallpaper)(.*)$"; + }; + size = "60% 65%"; + } + + # pavucontrol + { + match = { + class = "^(pavucontrol)$"; + }; + float = true; + center = true; + size = [ + "(window_w*0.6)" + "(window_h*0.6)" + ]; + } + + # Picture-in-Picture + { + match = { + title = "^([Pp]icture[-s]?[Ii]n[-s]?[Pp]icture)(.*)$"; + }; + float = true; + keep_aspect_ratio = true; + move = "73% 72%"; + size = [ + "(window_w*0.25)" + "(window_h*0.25)" + ]; + pin = true; + } + ]; + }; + }; +} \ No newline at end of file diff --git a/home/desktop/hyprland-config/workspacerules.nix b/home/desktop/hyprland-config/workspacerules.nix new file mode 100644 index 0000000..c99e7a8 --- /dev/null +++ b/home/desktop/hyprland-config/workspacerules.nix @@ -0,0 +1,89 @@ +let + mainmonitor = "desc:GIGA-BYTE TECHNOLOGY CO. LTD. AORUS FO32U2 24210B000546"; + samsungmonitor = "desc:Samsung Electric Company LF32TU87 HNTT700129"; + tvmonitor = "desc:Technical Concepts Ltd Beyond TV 0x00010000"; + + altscreenworkspace = 11; +in +{ + wayland.windowManager.hyprland = { + settings = { + # Main monitor workspaces + workspace_rule = [ + { + workspace = 1; + default_name = "Main"; + monitor = mainmonitor; + default = true; + } + { + workspace = 2; + default_name = "Secondary"; + monitor = mainmonitor; + } + { + workspace = 3; + default_name = "Games"; + monitor = mainmonitor; + } + { + workspace = 4; + default_name = "Steam"; + monitor = mainmonitor; + } + { + workspace = 5; + monitor = mainmonitor; + } + { + workspace = 6; + monitor = mainmonitor; + } + { + workspace = 7; + monitor = mainmonitor; + } + { + workspace = 8; + monitor = mainmonitor; + } + { + workspace = 9; + monitor = mainmonitor; + } + { + workspace = 10; + default_name = "Background Apps"; + monitor = mainmonitor; + } + + # Samsung (alt screen) + { + workspace = altscreenworkspace; + default_name = "Side Workspace"; + monitor = samsungmonitor; + default = true; + } + { + workspace = altscreenworkspace; + # layoutopt = { + # orientation = "bottom"; + # }; + } + + # Special workspace + { + workspace = "special:special"; + gaps_out = 30; + } + + # TV + { + workspace = 21; + monitor = tvmonitor; + default = true; + } + ]; + }; + }; +} \ No newline at end of file diff --git a/home/desktop/hyprland.nix b/home/desktop/hyprland.nix new file mode 100644 index 0000000..290ff3f --- /dev/null +++ b/home/desktop/hyprland.nix @@ -0,0 +1,16 @@ +{ pkgs, lib, ... }: +{ + wayland.windowManager.hyprland = { + enable = true; + package = null; + portalPackage = null; + systemd = { + enable = false; + variables = ["--all"]; + }; + }; + xdg.configFile."hypr/themes/catppuccin-mocha.lua".source = pkgs.fetchurl { + url = "https://raw.githubusercontent.com/catppuccin/hyprland/main/themes/catppuccin-mocha.lua"; + hash = "sha256:EwYQvq2iCjkQvB+bpMpy9HieahKGE10BjJUIq/R8K1U="; + }; +} diff --git a/home/desktop/kitty.nix b/home/desktop/kitty.nix new file mode 100644 index 0000000..afaec10 --- /dev/null +++ b/home/desktop/kitty.nix @@ -0,0 +1,91 @@ +{ + programs.kitty = { + enable = true; + settings = { + font_family = "Maple Mono NF"; + font_size = 11; + wheel_scroll_min_lines = 1; + window_padding_width = 4; + confirm_os_window_close = 0; + scrollback_lines = 10000; + enable_audio_bell = false; + mouse_hide_wait = 60; + cursor_trail = 1; + cursor_shape = "beam"; + tab_fade = 1; + active_tab_font_style = "bold"; + inactive_tab_font_style = "bold"; + tab_bar_edge = "top"; + tab_bar_margin_width = 0; + tab_bar_style = "powerline"; + #tab_bar_style = "fade"; + enabled_layouts = "splits"; + open_url_with_default = true; + detect_urls = true; + allow_remote_control = true; + shell = "fish"; + remember_window_size = false; + }; + + shellIntegration.enableZshIntegration = true; + shellIntegration.enableFishIntegration = true; + shellIntegration.enableBashIntegration = true; + shellIntegration.mode = "enabled"; + + extraConfig = '' + + #open_url_with default + url_prefixes file ftp ftps gemini git gopher http https irc ircs kitty sftp ssh + #detect_urls yes + + # Clipboard + #map ctrl+shift+v paste_from_selection + #map shift+insert paste_from_selection + + # Scrolling + map ctrl+shift+up scroll_line_up + map ctrl+shift+down scroll_line_down + map ctrl+shift+k scroll_line_up + map ctrl+shift+j scroll_line_down + map ctrl+shift+page_up scroll_page_up + map ctrl+shift+page_down scroll_page_down + map ctrl+shift+home scroll_home + map ctrl+shift+end scroll_end + map ctrl+shift+h show_scrollback + + # Window management + map alt+n new_window_with_cwd + #map alt+n new_os_window + map alt+w close_window + map ctrl+shift+enter launch --location=hsplit + map ctrl+shift+s launch --location=vsplit + map ctrl+shift+] next_window + map ctrl+shift+[ previous_window + map ctrl+shift+f move_window_forward + map ctrl+shift+b move_window_backward + map ctrl+shift+` move_window_to_top + map ctrl+shift+1 first_window + map ctrl+shift+2 second_window + map ctrl+shift+3 third_window + map ctrl+shift+4 fourth_window + map ctrl+shift+5 fifth_window + map ctrl+shift+6 sixth_window + map ctrl+shift+7 seventh_window + map ctrl+shift+8 eighth_window + map ctrl+shift+9 ninth_window # Tab management + map ctrl+shift+0 tenth_window + map ctrl+shift+right next_tab + map ctrl+shift+left previous_tab + map ctrl+shift+t new_tab + map ctrl+shift+q close_tab + map ctrl+shift+l next_layout + map ctrl+shift+. move_tab_forward + map ctrl+shift+, move_tab_backward + + # Miscellaneous + map ctrl+shift+up increase_font_size + map ctrl+shift+down decrease_font_size + map ctrl+shift+backspace restore_font_size + ''; + }; +} diff --git a/home/desktop/nixcord.nix b/home/desktop/nixcord.nix new file mode 100644 index 0000000..fa4ee83 --- /dev/null +++ b/home/desktop/nixcord.nix @@ -0,0 +1,80 @@ +{ inputs, ... }: +{ + imports = [ inputs.nixcord.homeModules.nixcord ]; + + programs.nixcord = { + enable = true; + discord.equicord.enable = true; + config = { + themeLinks = [ + "https://catppuccin.github.io/discord/dist/catppuccin-mocha-pink.theme.css" + ]; + enabledThemeLinks = [ + "https://catppuccin.github.io/discord/dist/catppuccin-mocha-pink.theme.css" + ]; + plugins = { + addAttachments.enable = true; + betterActivities.enable = true; + betterBackreading.enable = true; + betterCommands.enable = true; + betterForwards.enable = true; + betterSettings.enable = true; + callTimer.enable = true; + characterCounter.enable = true; + clearUrls.enable = true; + clickableRoles.enable = true; + copyFileContents.enable = true; + crashHandler.enable = true; + declutter.enable = true; + disableCallIdle.enable = true; + dragFavoriteEmotes.enable = true; + favoriteEmojiFirst.enable = true; + fixImagesQuality.enable = true; + fixSpotifyEmbeds.enable = true; + gameActivityToggle.enable = true; + gifMaker.enable = true; + gifPaste.enable = true; + homeTyping.enable = true; + imageZoom.enable = true; + inviteDefaults.enable = true; + limitlessScreenshare.enable = true; + loadingQuotes.enable = true; + mentionAvatars.enable = true; + musicControls.enable = true; + noDevtoolsWarning.enable = true; + noF1.enable = true; + noMaskedUrlPaste.enable = true; + noMiddleClickPaste.enable = true; + noNitroUpsell.enable = true; + noOnboardingDelay.enable = true; + onePingPerDm.enable = true; + openInApp.enable = true; + petpet.enable = true; + pinDms.enable = true; + questify = { + enable = true; + disableSponsoredBanner = true; + disableFriendsListPromo = true; + disableMembersListPromo = true; + autoCompleteQuests = true; + questButtonDisplay = "never"; + }; + readAllNotificationsButton.enable = true; + reverseImageSearch.enable = true; + roleColorEverywhere.enable = true; + searchFix.enable = true; + splitLargeMessages.enable = true; + stickerPaste.enable = true; + typingIndicator.enable = true; + typingTweaks.enable = true; + unlockedAvatarZoom.enable = true; + validReply.enable = true; + validUser.enable = true; + viewIcons.enable = true; + voiceChatDoubleClick.enable = true; + whoReacted.enable = true; + whosWatching.enable = true; + }; + }; + }; +} \ No newline at end of file diff --git a/home/desktop/spicetify.nix b/home/desktop/spicetify.nix new file mode 100644 index 0000000..4965c1f --- /dev/null +++ b/home/desktop/spicetify.nix @@ -0,0 +1,28 @@ +{ inputs, pkgs, ... }: +{ + imports = [ inputs.spicetify-nix.homeManagerModules.default ]; + + programs.spicetify = + let + spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.stdenv.hostPlatform.system}; + in + { + enable = true; + + enabledExtensions = with spicePkgs.extensions; [ + hidePodcasts + shuffle # shuffle+ (special characters are sanitized out of extension names) + ]; + enabledCustomApps = with spicePkgs.apps; [ + newReleases + marketplace + ]; + # enabledSnippets = with spicePkgs.snippets; [ + # pointer + # ]; + + theme = spicePkgs.themes.catppuccin; + colorScheme = "mocha"; + wayland = true; + }; +} \ No newline at end of file diff --git a/home/desktop/vscode.nix b/home/desktop/vscode.nix new file mode 100644 index 0000000..9ebda4b --- /dev/null +++ b/home/desktop/vscode.nix @@ -0,0 +1,3 @@ +{ + programs.vscode.enable = true; +} diff --git a/home/desktop/zen-browser.nix b/home/desktop/zen-browser.nix new file mode 100644 index 0000000..b2aee81 --- /dev/null +++ b/home/desktop/zen-browser.nix @@ -0,0 +1,90 @@ +{ inputs, pkgs, nixosConfig, ... }: +{ + imports = [ + inputs.zen-browser.homeModules.beta + ]; + config = { + home.file."catppuccin-zen" = { + target = ".config/zen/default/chrome/catppuccin-zen"; + source = ( + fetchTarball { + url = "https://github.com/code-irisnk/catppuccin-zen-browser/archive/refs/heads/main.tar.gz"; + sha256 = "sha256:DegtATvy8KpRQ6qQ/6GUoap14Y5NrJc436qxNm8+EJU="; + }); + }; + programs.zen-browser = { + enable = true; + setAsDefaultBrowser = true; + nativeMessagingHosts = [pkgs.firefoxpwa]; + policies = { + AutofillAddressEnabled = false; + AutofillCreditCardEnabled = false; + DisableAppUpdate = true; + DisableFeedbackCommands = true; + DisableFirefoxStudies = true; + DisablePocket = true; + DisableTelemetry = true; + DontCheckDefaultBrowser = true; + NoDefaultBookmarks = true; + OfferToSaveLogins = false; + EnableTrackingProtection = { + Value = true; + Locked = true; + Cryptomining = true; + Fingerprinting = true; + }; + + "3rdparty".Extensions."{446900e4-71c2-419f-a6a7-df9c091e268b}" = { + environment = { + base = "https://vault.hibana.me"; + }; + }; + }; + + profiles.default = { + settings = { + "zen.view.use-single-toolbar" = false; + "zen.urlbar.replace-newtab" = false; + "general.autoScroll" = true; + "toolkit.legacyUserProfileCustomizations.stylesheets" = true; + "extensions.autoDisableScopes" = 0; + "widget.use-xdg-desktop-portal.file-picker" = 1; + }; + extensions = { + packages = with inputs.firefox-addons.packages.${pkgs.stdenv.hostPlatform.system}; [ + ublock-origin + bitwarden + istilldontcareaboutcookies + return-youtube-dislikes + augmented-steam + sponsorblock + youtube-nonstop + youtube-high-definition + absolute-enable-right-click + augmented-steam + clearurls + darkreader + karakeep + new-tab-override + steam-database + unpaywall + violentmonkey + ]; + }; + extensionButtons = { + "nav-bar" = [ + "uBlock0@raymondhill.net" + "{446900e4-71c2-419f-a6a7-df9c091e268b}" + "idcac-pub@guus.ninja" + ]; + }; + userChrome = '' + @import "catppuccin-zen/themes/Mocha/Mauve/userChrome.css"; + ''; + userContent = '' + @import "catppuccin-zen/themes/Mocha/Mauve/userContent.css"; + ''; + }; + }; + }; +} diff --git a/home/env.nix b/home/env.nix new file mode 100644 index 0000000..58dfa7e --- /dev/null +++ b/home/env.nix @@ -0,0 +1,43 @@ +{ config, ... }: +{ + home.sessionVariables = { + # wayland + GDK_BACKEND = "wayland,x11,*"; + MOZ_ENABLE_WAYLAND = "1"; + MOZ_DISABLE_RDD_SANDBOX = "1"; + OZONE_PLATFORM = "wayland"; + NIXOS_OZONE_WL = "1"; + ELECTRON_OZONE_PLATFORM_HINT = "auto"; + SDL_VIDEODRIVER = "wayland,x11"; + CLUTTER_BACKEND = "wayland"; + QT_QPA_PLATFORM = "wayland;xcb"; + QT_QPA_PLATFORMTHEME = "gtk3"; + QT_QPA_PLATFORMTHEME_QT6 = "gtk3"; + + # nvidia + LIBVA_DRIVER_NAME = "nvidia"; + __GLX_VENDOR_LIBRARY_NAME = "nvidia"; + GBM_BACKEND = "nvidia-drm"; + __GL_GSYNC_ALLOWED = "1"; + __GL_VRR_ALLOWED = "1"; + + # hyprland + AQ_DRM_DEVICES = "/dev/dri/nvidia-dgpu:/dev/dri/amd-igpu"; + + # catppuccin + HYPRCURSOR_SIZE = 24; + HYPRCURSOR_THEME = "catppuccin-mocha-mauve-cursors"; + # XCURSOR_THEME = "catppuccin-mocha-mauve-cursors"; + # XCURSOR_SIZE = "24"; + + # design + GDK_SCALE = "2"; + + # defaults + XDG_MENU_PREFIX = "plasma-"; + TERMINAL = "kitty"; + EDITOR = "code"; + }; + xdg.configFile."uwsm/env".source = + "${config.home.sessionVariablesPackage}/etc/profile.d/hm-session-vars.sh"; +} diff --git a/home/gaming.nix b/home/gaming.nix new file mode 100644 index 0000000..f94a4f6 --- /dev/null +++ b/home/gaming.nix @@ -0,0 +1,11 @@ +{ inputs, pkgs, ... }: +{ + home.packages = [ + inputs.launchy.packages.${pkgs.stdenv.hostPlatform.system}.default + inputs.volt-gui.packages.${pkgs.stdenv.hostPlatform.system}.default + ]; + + programs.mangohud = { + enable = true; + }; +} \ No newline at end of file diff --git a/home/opendeck.nix b/home/opendeck.nix new file mode 100644 index 0000000..63445fb --- /dev/null +++ b/home/opendeck.nix @@ -0,0 +1,20 @@ +{ inputs, pkgs, ... }: +let + opendeck-plugins = inputs.opendeck.legacyPackages.${pkgs.stdenv.hostPlatform.system}.opendeck-plugins; +in +{ + imports = [ + inputs.opendeck.homeManagerModules.default + ]; + + programs.opendeck = { + enable = true; + plugins = with opendeck-plugins; [ + cgiesche.homeassistant + sjourdois.pipewire + cronusak.pipewire-audio + mdvictor.volume-controller + openactionplugins.discord + ]; + }; +} \ No newline at end of file diff --git a/home/xdg.nix b/home/xdg.nix new file mode 100644 index 0000000..ef18ef5 --- /dev/null +++ b/home/xdg.nix @@ -0,0 +1,34 @@ +{ pkgs, inputs, ... }: +{ + xdg = { + # autostart + + autostart = { + enable = true; + + entries = [ + "${pkgs.spotify}/share/applications/spotify.desktop" + "${pkgs.millennium-steam}/share/applications/steam.desktop" + ]; + }; + configFile."electron-flags.conf".text = '' + --enable-features=WaylandWindowDecorations,UseOzonePlatform,AcceleratedVideoDecodeLinuxGL,VaapiOnNvidiaGPUs + --ozone-platform-hint=wayland + --enable-blink-features=MiddleClickAutoscroll + --ozone-platform=wayland + --ignore-gpu-blocklist + --use-gl=angle + --use-angle=gl + ''; + configFile."gtk-3.0/gtk.css".text = '' + @import url("dank-colors.css"); + ''; + configFile."gtk-3.0/settings.ini".text = '' +[Settings] +gtk-icon-theme-name=Papirus-Dark + ''; + configFile."gtk-4.0/gtk.css".text = '' + @import url("dank-colors.css"); + ''; + }; +} \ No newline at end of file diff --git a/pkgs/artemis-rgb/flake.nix b/pkgs/artemis-rgb/flake.nix new file mode 100644 index 0000000..e92c70a --- /dev/null +++ b/pkgs/artemis-rgb/flake.nix @@ -0,0 +1,98 @@ +{ + description = "Artemis RGB (Avalonia + SkiaSharp, NixOS compatible)"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + }; + + outputs = { nixpkgs, ... }: + let + system = "x86_64-linux"; + + pkgs = import nixpkgs { + inherit system; + config.allowUnfree = true; + }; + + artemis = pkgs.stdenvNoCC.mkDerivation rec { + pname = "artemis-rgb"; + version = "latest-master"; + + src = pkgs.fetchurl { + url = "https://updating.artemis-rgb.com/api/artifacts/latest/master/linux"; + sha256 = "sha256-O/urxR7Ryn6DF2lp8VR9jBJcAns+xEmjQsEQxjSSz0M="; + }; + + nativeBuildInputs = [ + pkgs.unzip + pkgs.makeWrapper + ]; + + buildInputs = [ + # .NET runtime deps + pkgs.icu + pkgs.zlib + pkgs.openssl + + # Skia / fonts + pkgs.fontconfig + pkgs.freetype + + # X11 (required even on Wayland for Avalonia) + pkgs.libx11 + pkgs.libxcursor + pkgs.libxrandr + pkgs.libxi + pkgs.libxinerama + pkgs.libxcb + pkgs.libice + pkgs.libsm + + # Graphics / display + pkgs.mesa + pkgs.wayland + ]; + + unpackPhase = '' + unzip $src + ''; + + installPhase = '' + mkdir -p $out/lib/artemis + cp -r ./* $out/lib/artemis + chmod +x $out/lib/artemis/Artemis.UI.Linux + + mkdir -p $out/bin + makeWrapper $out/lib/artemis/Artemis.UI.Linux \ + $out/bin/Artemis.UI.Linux \ + --set LD_LIBRARY_PATH "${pkgs.lib.makeLibraryPath buildInputs}" + + mkdir -p $out/share/applications + cat > $out/share/applications/artemis.desktop < + lib.filterAttrs (name: type: + ( (lib.strings.hasSuffix ".nix" name + && name != "default.nix" + && type == "regular" ) + || ( type == "directory" + && b.pathExists ./${name}/default.nix)) + ) |> + b.attrNames |> + b.map (f: ./${f}); +in +{ + imports = module_files; +} \ No newline at end of file diff --git a/programs/desktop/default.nix b/programs/desktop/default.nix new file mode 100644 index 0000000..d9a23bb --- /dev/null +++ b/programs/desktop/default.nix @@ -0,0 +1,19 @@ +{ lib, ... }: +let + b = builtins; + + module_files = + b.readDir ./. |> + lib.filterAttrs (name: type: + ( (lib.strings.hasSuffix ".nix" name + && name != "default.nix" + && type == "regular" ) + || ( type == "directory" + && b.pathExists ./${name}/default.nix)) + ) |> + b.attrNames |> + b.map (f: ./${f}); +in +{ + imports = module_files; +} diff --git a/programs/desktop/dux.nix b/programs/desktop/dux.nix new file mode 100644 index 0000000..e14066f --- /dev/null +++ b/programs/desktop/dux.nix @@ -0,0 +1,8 @@ +{ + programs = { + dux-calendar = { + enable = true; + systemd.enable = true; + }; + }; +} \ No newline at end of file diff --git a/programs/desktop/hyprland.nix b/programs/desktop/hyprland.nix new file mode 100644 index 0000000..2e3313b --- /dev/null +++ b/programs/desktop/hyprland.nix @@ -0,0 +1,29 @@ +{ config, pkgs, username, ... }: + +let + hyprlandUWSM = + "${pkgs.uwsm}/bin/uwsm start -e -D Hyprland ${config.programs.hyprland.package}/bin/start-hyprland"; +in +{ + programs.hyprland = { + enable = true; + withUWSM = true; + }; + + services.greetd = { + enable = true; + useTextGreeter = true; + + settings = { + initial_session = { + command = hyprlandUWSM; + user = "${username}"; + }; + + default_session = { + command = "${pkgs.tuigreet}/bin/tuigreet --time --cmd '${hyprlandUWSM}'"; + user = "greeter"; + }; + }; + }; +} diff --git a/programs/gaming/anime-game-launchers.nix b/programs/gaming/anime-game-launchers.nix new file mode 100644 index 0000000..2ca1b1e --- /dev/null +++ b/programs/gaming/anime-game-launchers.nix @@ -0,0 +1,10 @@ +{ lib, config, inputs, ... }: +{ + imports = [ + inputs.aagl.nixosModules.default + ]; + config = { + nix.settings = inputs.aagl.nixConfig; + programs.honkers-railway-launcher.enable = true; + }; +} diff --git a/programs/gaming/default.nix b/programs/gaming/default.nix new file mode 100644 index 0000000..09a4da8 --- /dev/null +++ b/programs/gaming/default.nix @@ -0,0 +1,19 @@ +{ lib, ... }: +let + b = builtins; + + module_files = + b.readDir ./. |> + lib.filterAttrs (name: type: + ( (lib.strings.hasSuffix ".nix" name + && name != "default.nix" + && type == "regular" ) + || ( type == "directory" + && b.pathExists ./${name}/default.nix)) + ) |> + b.attrNames |> + b.map (f: ./${f}); +in +{ + imports = module_files; +} \ No newline at end of file diff --git a/programs/gaming/game-performance.nix b/programs/gaming/game-performance.nix new file mode 100644 index 0000000..964dcf4 --- /dev/null +++ b/programs/gaming/game-performance.nix @@ -0,0 +1,47 @@ + +{ pkgs, ... }: + +let + game-performance = pkgs.writeShellApplication { + name = "game-performance"; + + runtimeInputs = with pkgs; [ + gnugrep + systemd + ]; + + text = '' + if command -v powerprofilesctl &>/dev/null; then + PROFILE_CMD="powerprofilesctl" + elif command -v tlpctl &>/dev/null; then + PROFILE_CMD="tlpctl" + else + echo "Error: Neither powerprofilesctl nor tlpctl found" >&2 + exit 1 + fi + + # Don't fail if the CPU driver doesn't support performance power profile + if ! "$PROFILE_CMD" list | grep -q 'performance:'; then + exec "$@" + fi + + # Set performance profile for the duration of the application + if [[ -n "''${GAME_PERFORMANCE_SCREENSAVER_ON:-}" ]]; then + exec "$PROFILE_CMD" launch -p performance \ + -r "Launched with CachyOS game-performance utility" -- "$@" + else + exec systemd-inhibit --why "CachyOS game-performance is running" \ + "$PROFILE_CMD" launch -p performance \ + -r "Launched with CachyOS game-performance utility" -- "$@" + fi + ''; + }; + +in +{ + environment.systemPackages = [ + game-performance + ]; + + services.power-profiles-daemon.enable = true; +} diff --git a/programs/git.nix b/programs/git.nix new file mode 100644 index 0000000..a5af644 --- /dev/null +++ b/programs/git.nix @@ -0,0 +1,13 @@ +{ + programs.git = { + enable = true; + lfs.enable = true; + config = { + init.defaultBranch = "main"; + user = { + email = "lilly@hibana.me"; + name = "Lilly"; + }; + }; + }; +} \ No newline at end of file diff --git a/system/catppuccin.nix b/system/catppuccin.nix new file mode 100644 index 0000000..1c2ae32 --- /dev/null +++ b/system/catppuccin.nix @@ -0,0 +1,7 @@ +{ + catppuccin = { + enable = true; + autoEnable = true; + cursors.enable = true; + }; +} \ No newline at end of file diff --git a/system/core.nix b/system/core.nix new file mode 100644 index 0000000..eb43231 --- /dev/null +++ b/system/core.nix @@ -0,0 +1,92 @@ +{ pkgs, config, inputs, lib, ... }: +{ + services = { + openssh = { + enable = true; # Enable SSH + settings = { + PermitRootLogin = "no"; # Prevent root from SSH login + PasswordAuthentication = true; # Users can SSH using kb and password + KbdInteractiveAuthentication = true; + }; + ports = [22]; + }; + }; + networking.networkmanager.enable = true; + nix = { + settings = { + download-buffer-size = 200000000; + auto-optimise-store = true; + experimental-features = [ "nix-command" "flakes" "pipe-operators" ]; + substituters = [ + "https://cache.lantian.pub/lantian" + "https://nix-opendeck.cachix.org" + ]; + trusted-public-keys = [ + "lantian:WVGO7vsRMSEN+h7Lp7kv6SAmrkEXgUGbbXm7jMDjBuQ=" + "nix-opendeck.cachix.org-1:twvVjvv6Xm9H/m9sD2YQfIDoeUZLWEX5CpokN2An9L8=" + ]; + }; + }; + + nixpkgs.overlays = [ + inputs.nix-cachyos-kernel.overlays.pinned + inputs.millennium.overlays.default + ]; + + # Allow unfree packages + nixpkgs.config.allowUnfree = true; + + # Boot/Kernel Stuff + boot = { + kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-latest-lto-zen4; + loader.limine.enable = true; + loader.efi.canTouchEfiVariables = true; + }; + services.scx-loader = { + enable = true; + config.default_sched = "scx_lavd"; + }; + # Set your time zone. + time.timeZone = "Europe/Berlin"; + + # Select internationalisation properties. + i18n.defaultLocale = "en_US.UTF-8"; + + systemd.tmpfiles.rules = [ + "Z /sys/class/powercap/intel-rapl:0/energy_uj 0444 root root - -" + ]; + + i18n.extraLocaleSettings = { + LC_ADDRESS = "en_US.UTF-8"; + LC_IDENTIFICATION = "en_US.UTF-8"; + LC_MEASUREMENT = "en_US.UTF-8"; + LC_MONETARY = "en_US.UTF-8"; + LC_NAME = "en_US.UTF-8"; + LC_NUMERIC = "en_US.UTF-8"; + LC_PAPER = "en_US.UTF-8"; + LC_TELEPHONE = "en_US.UTF-8"; + LC_TIME = "en_US.UTF-8"; + }; + + # Configure keymap in X11 + services.xserver.xkb = { + layout = "us"; + variant = "euro"; + }; + + # Some programs need SUID wrappers, can be configured further or are + # started in user sessions. + # programs.mtr.enable = true; + programs.gnupg.agent = { + enable = true; + enableSSHSupport = true; + }; + + # This value determines the NixOS release from which the default + # settings for stateful data, like file locations and database versions + # on your system were taken. It‘s perfectly fine and recommended to leave + # this value at the release version of the first install of this system. + # Before changing this value read the documentation for this option + # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). + system.stateVersion = "26.05"; # Did you read the comment? +} diff --git a/system/default.nix b/system/default.nix new file mode 100644 index 0000000..09a4da8 --- /dev/null +++ b/system/default.nix @@ -0,0 +1,19 @@ +{ lib, ... }: +let + b = builtins; + + module_files = + b.readDir ./. |> + lib.filterAttrs (name: type: + ( (lib.strings.hasSuffix ".nix" name + && name != "default.nix" + && type == "regular" ) + || ( type == "directory" + && b.pathExists ./${name}/default.nix)) + ) |> + b.attrNames |> + b.map (f: ./${f}); +in +{ + imports = module_files; +} \ No newline at end of file diff --git a/system/hosts/lillypc/artemis.nix b/system/hosts/lillypc/artemis.nix new file mode 100644 index 0000000..9f302c1 --- /dev/null +++ b/system/hosts/lillypc/artemis.nix @@ -0,0 +1,6 @@ +{ inputs, pkgs, ... }: +{ + environment.systemPackages = [ + inputs.artemisrgb.packages.${pkgs.stdenv.hostPlatform.system}.default + ]; +} \ No newline at end of file diff --git a/system/hosts/lillypc/bluetooth.nix b/system/hosts/lillypc/bluetooth.nix new file mode 100644 index 0000000..2c6d4e5 --- /dev/null +++ b/system/hosts/lillypc/bluetooth.nix @@ -0,0 +1,7 @@ +{ + services.blueman.enable = true; + hardware.bluetooth = { + enable = true; + powerOnBoot = true; + }; +} \ No newline at end of file diff --git a/system/hosts/lillypc/cachyos-settings.nix b/system/hosts/lillypc/cachyos-settings.nix new file mode 100644 index 0000000..039d8e4 --- /dev/null +++ b/system/hosts/lillypc/cachyos-settings.nix @@ -0,0 +1,17 @@ +{ inputs, ... }: +{ + imports = [ inputs.cachyos-settings.nixosModules.default ]; + cachyos.settings = { + enable = true; + audio.enable = true; + coredump.enable = true; + ioSchedulers.enable = true; + journal.enable = true; + ntsync.enable = true; + nvidia.enable = true; + oomd.enable = true; + serviceManager.enable = true; + sysctl.enable = true; + watchdogBlacklist.enable = true; + }; +} diff --git a/system/hosts/lillypc/coolercontrol.nix b/system/hosts/lillypc/coolercontrol.nix new file mode 100644 index 0000000..12dfb91 --- /dev/null +++ b/system/hosts/lillypc/coolercontrol.nix @@ -0,0 +1,3 @@ +{ + programs.coolercontrol.enable = true; +} \ No newline at end of file diff --git a/system/hosts/lillypc/default.nix b/system/hosts/lillypc/default.nix new file mode 100644 index 0000000..09a4da8 --- /dev/null +++ b/system/hosts/lillypc/default.nix @@ -0,0 +1,19 @@ +{ lib, ... }: +let + b = builtins; + + module_files = + b.readDir ./. |> + lib.filterAttrs (name: type: + ( (lib.strings.hasSuffix ".nix" name + && name != "default.nix" + && type == "regular" ) + || ( type == "directory" + && b.pathExists ./${name}/default.nix)) + ) |> + b.attrNames |> + b.map (f: ./${f}); +in +{ + imports = module_files; +} \ No newline at end of file diff --git a/system/hosts/lillypc/gaming.nix b/system/hosts/lillypc/gaming.nix new file mode 100644 index 0000000..c22a547 --- /dev/null +++ b/system/hosts/lillypc/gaming.nix @@ -0,0 +1,12 @@ +{ pkgs, ...}: +{ + environment.systemPackages = with pkgs; [ + lsfg-vk + lsfg-vk-ui + protonplus + ]; + programs.steam = { + enable = true; + package = pkgs.millennium-steam; + }; +} \ No newline at end of file diff --git a/system/hosts/lillypc/general.nix b/system/hosts/lillypc/general.nix new file mode 100644 index 0000000..83c5e63 --- /dev/null +++ b/system/hosts/lillypc/general.nix @@ -0,0 +1,54 @@ +{ pkgs, ... }: +{ + services = { + power-profiles-daemon.enable = true; + accounts-daemon.enable = true; + libinput.enable = true; + fstrim.enable = true; + gvfs.enable = true; + smartd = { + enable = true; + autodetect = true; + }; + }; + environment.etc."os-install-epoch".text = "1795040307"; + programs.dconf.enable = true; + hardware = { + i2c.enable = true; + }; + networking.hostName = "LillyPC"; + programs.nix-ld = { + enable = true; + libraries = with pkgs; [ + stdenv.cc.cc + glibc + libx11 + libxcursor + libxrandr + libxinerama + libxi + wayland + libGL + libdrm + alsa-lib + pulseaudio + glib + nspr.out + nss.out + dbus.lib + at-spi2-atk + cups.lib + cairo.out + gtk3.out + pango.out + libxcomposite.out + libxdamage.out + libxext.out + libxfixes.out + libgbm.out + expat.out + libxcb.out + libxkbcommon.out + ]; + }; +} \ No newline at end of file diff --git a/system/hosts/lillypc/graphics.nix b/system/hosts/lillypc/graphics.nix new file mode 100644 index 0000000..36aaaa5 --- /dev/null +++ b/system/hosts/lillypc/graphics.nix @@ -0,0 +1,20 @@ +{ pkgs, ... }: +{ + hardware.graphics = { + enable = true; + enable32Bit = true; + extraPackages = with pkgs; [ + nvidia-vaapi-driver + libglvnd + ]; + extraPackages32 = with pkgs.pkgsi686Linux; [ + libglvnd + ]; + }; + services.xserver.videoDrivers = [ "nvidia" ]; + hardware.nvidia = { + open = true; + branch = "latest"; + modesetting.enable = true; + }; +} diff --git a/system/hosts/lillypc/hardware-configuration.nix b/system/hosts/lillypc/hardware-configuration.nix new file mode 100644 index 0000000..3272beb --- /dev/null +++ b/system/hosts/lillypc/hardware-configuration.nix @@ -0,0 +1,43 @@ +# 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" "ahci" "thunderbolt" "xhci_pci" "xhci_pci_prom21" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/30bda78c-4ed6-4c42-90b9-de0a64302203"; + fsType = "btrfs"; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-uuid/30bda78c-4ed6-4c42-90b9-de0a64302203"; + fsType = "btrfs"; + options = [ "subvol=home" ]; + }; + + fileSystems."/nix" = + { device = "/dev/disk/by-uuid/30bda78c-4ed6-4c42-90b9-de0a64302203"; + fsType = "btrfs"; + options = [ "subvol=nix" ]; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/9FDB-D968"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} diff --git a/system/hosts/lillypc/nvidia-oc.nix b/system/hosts/lillypc/nvidia-oc.nix new file mode 100644 index 0000000..bb9833f --- /dev/null +++ b/system/hosts/lillypc/nvidia-oc.nix @@ -0,0 +1,12 @@ +{ pkgs, ... }: +{ + systemd.services.nvidia-undervolt = { + enable = true; + description = "Set NVIDIA GPU undervolt"; + wantedBy = [ "multi-user.target" ]; + serviceConfig = { + Type = "oneshot"; + ExecStart = "${pkgs.nvidia_oc}/bin/nvidia_oc set --index 0 --freq-offset 250"; + }; + }; +} diff --git a/system/hosts/lillypc/obs.nix b/system/hosts/lillypc/obs.nix new file mode 100644 index 0000000..c9e4d4e --- /dev/null +++ b/system/hosts/lillypc/obs.nix @@ -0,0 +1,11 @@ +{ pkgs, ... }: +{ + programs.obs-studio = { + enable = true; + plugins = with pkgs; [ + obs-studio-plugins.droidcam-obs + obs-studio-plugins.obs-vkcapture + ]; + enableVirtualCamera = true; + }; +} \ No newline at end of file diff --git a/system/hosts/lillypc/openlinkhub.nix b/system/hosts/lillypc/openlinkhub.nix new file mode 100644 index 0000000..52b2712 --- /dev/null +++ b/system/hosts/lillypc/openlinkhub.nix @@ -0,0 +1,40 @@ +{ inputs, pkgs, ... }: +{ + imports = [ + inputs.openlinkhub.nixosModules.default + ]; + openlinkhub.enable = true; + systemd.services.openlinkhub-data = { + description = "Copy OpenLinkHub configuration and data"; + + serviceConfig = { + Type = "oneshot"; + User = "root"; + }; + + script = '' + destination="/var/lib/openlinkhub" + + # Ensure the destination directory exists. + ${pkgs.coreutils}/bin/mkdir -p "$destination" + ${pkgs.coreutils}/bin/chown openlinkhub:openlinkhub "$destination" + ${pkgs.coreutils}/bin/chmod 2775 "$destination" + + # Copy source contents, overwriting changed files. + # Do not delete files that only exist in the destination. + ${pkgs.rsync}/bin/rsync \ + --archive \ + --checksum \ + --chown=openlinkhub:openlinkhub \ + --chmod='Dug+rwx,Dg+s,Fug+rw' \ + "${./openlinkhub}/" \ + "$destination/" + ''; + }; + + # Make OpenLinkHub wait for the data copy to finish. + # systemd.services.openlinkhub = { + # requires = [ "openlinkhub-data.service" ]; + # after = [ "openlinkhub-data.service" ]; + # }; +} \ No newline at end of file diff --git a/system/hosts/lillypc/openlinkhub/config.json b/system/hosts/lillypc/openlinkhub/config.json new file mode 100644 index 0000000..a7074c2 --- /dev/null +++ b/system/hosts/lillypc/openlinkhub/config.json @@ -0,0 +1,36 @@ +{ + "amdGpuIndex": 0, + "amdsmiPath": "", + "checkDevicePermission": true, + "cpuSensorChip": "", + "cpuTempFile": "", + "debug": false, + "decodeMemorySku": false, + "defaultNvidiaGPU": 0, + "enableGamepad": true, + "enableMotherboard": false, + "enableOpenRGBTargetServer": true, + "enhancementKits": "", + "exclude": [], + "frontend": true, + "graphProfiles": true, + "listenAddress": "127.0.0.1", + "listenPort": 27003, + "logFile": "", + "logLevel": "info", + "manual": false, + "memory": false, + "memoryRegisterOverride": "", + "memorySku": "", + "memorySmBus": "i2c-0", + "memoryType": 5, + "metrics": false, + "motherboardBiosOnExit": false, + "nvidiaGpuIndex": [ + 0 + ], + "openRGBPort": 6743, + "ramTempViaHwmon": true, + "resumeDelay": 15000, + "temperatureOffset": 0 +} \ No newline at end of file diff --git a/system/hosts/lillypc/openlinkhub/database/profiles/E48A9DB64BEFFB539A4D798E30B79EB3-default.json b/system/hosts/lillypc/openlinkhub/database/profiles/E48A9DB64BEFFB539A4D798E30B79EB3-default.json new file mode 100755 index 0000000..d9bcbf3 --- /dev/null +++ b/system/hosts/lillypc/openlinkhub/database/profiles/E48A9DB64BEFFB539A4D798E30B79EB3-default.json @@ -0,0 +1 @@ +{"Active":false,"Path":"/var/lib/openlinkhub/database/profiles/E48A9DB64BEFFB539A4D798E30B79EB3-default.json","Product":"iCUE LINK System Hub","Serial":"E48A9DB64BEFFB539A4D798E30B79EB3","LCDMode":0,"LCDRotation":0,"Brightness":0,"BrightnessSlider":100,"OriginalBrightness":100,"SpeedProfiles":{"1":"WaterTemp","13":"WaterTemp","14":"WaterTemp","15":"WaterTemp","2":"WaterTemp","3":"WaterTemp","4":"WaterTemp"},"RGBProfiles":{"1":"static","13":"static","14":"static","15":"static","2":"static","3":"static","4":"static"},"Labels":{"1":"Set Label","13":"Set Label","14":"Set Label","15":"Set Label","2":"Set Label","3":"Set Label","4":"Set Label"},"RGBProbes":{"1":0,"13":0,"14":0,"15":0,"2":0,"3":0,"4":0},"MinTemps":{"1":0,"13":0,"14":0,"15":0,"2":0,"3":0,"4":0},"MaxTemps":{"1":60,"13":60,"14":60,"15":60,"2":60,"3":60,"4":60},"Positions":["item_1","item_2","item_3","item_4","item_13","item_14","item_15"],"ExternalAdapter":{},"LCDModes":{},"LCDImages":{},"LCDRotations":{},"LCDDevices":{},"CommanderDuoOverride":{},"MultiRGB":"","MultiProfile":"WaterTemp","SubDeviceRGBProfiles":null,"RGBOverride":{"1":{"0":{"Enabled":false,"RGBStartColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":20,"Hex":"#00ffff"},"RGBEndColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":60,"Hex":"#00ffff"},"RGBMiddleColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":40,"Hex":"#00ffff"},"RgbModeSpeed":3}},"13":{"0":{"Enabled":false,"RGBStartColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":20,"Hex":"#00ffff"},"RGBEndColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":60,"Hex":"#00ffff"},"RGBMiddleColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":40,"Hex":"#00ffff"},"RgbModeSpeed":3}},"14":{"0":{"Enabled":false,"RGBStartColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":20,"Hex":"#00ffff"},"RGBEndColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":60,"Hex":"#00ffff"},"RGBMiddleColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":40,"Hex":"#00ffff"},"RgbModeSpeed":3}},"15":{"0":{"Enabled":false,"RGBStartColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":20,"Hex":"#00ffff"},"RGBEndColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":60,"Hex":"#00ffff"},"RGBMiddleColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":40,"Hex":"#00ffff"},"RgbModeSpeed":3}},"2":{"0":{"Enabled":false,"RGBStartColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":20,"Hex":"#00ffff"},"RGBEndColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":60,"Hex":"#00ffff"},"RGBMiddleColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":40,"Hex":"#00ffff"},"RgbModeSpeed":3}},"3":{"0":{"Enabled":false,"RGBStartColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":20,"Hex":"#00ffff"},"RGBEndColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":60,"Hex":"#00ffff"},"RGBMiddleColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":40,"Hex":"#00ffff"},"RgbModeSpeed":3}},"4":{"0":{"Enabled":false,"RGBStartColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":20,"Hex":"#00ffff"},"RGBEndColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":60,"Hex":"#00ffff"},"RGBMiddleColor":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":40,"Hex":"#00ffff"},"RgbModeSpeed":3}}},"RGBPerLed":{"1":{"0":{"0":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"1":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"10":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"11":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"12":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"13":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"14":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"15":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"16":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"17":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"2":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"3":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"4":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"5":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"6":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"7":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"8":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"9":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""}}},"13":{"0":{"0":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"1":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"10":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"11":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"12":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"13":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"14":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"15":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"16":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"17":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"2":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"3":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"4":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"5":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"6":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"7":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"8":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"9":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""}}},"14":{"0":{"0":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"1":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"10":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"11":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"12":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"13":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"14":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"15":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"16":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"17":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"2":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"3":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"4":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"5":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"6":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"7":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"8":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"9":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""}}},"15":{"0":{"0":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"1":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"10":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"11":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"12":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"13":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"14":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"15":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"16":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"17":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"2":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"3":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"4":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"5":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"6":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"7":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"8":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"9":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""}}},"2":{"0":{"0":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"1":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"10":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"11":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"12":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"13":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"14":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"15":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"16":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"17":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"2":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"3":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"4":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"5":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"6":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"7":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"8":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"9":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""}}},"3":{"0":{"0":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"1":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"10":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"11":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"12":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"13":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"14":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"15":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"16":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"17":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"2":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"3":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"4":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"5":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"6":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"7":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"8":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"9":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""}}},"4":{"0":{"0":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"1":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"10":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"11":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"12":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"13":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"14":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"15":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"16":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"17":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"2":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"3":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"4":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"5":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"6":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"7":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"8":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""},"9":{"red":0,"green":255,"blue":255,"brightness":1,"position":0,"temperature":0,"Hex":""}}}},"OpenRGBIntegration":true,"RGBCluster":false} \ No newline at end of file diff --git a/system/hosts/lillypc/openlinkhub/database/profiles/E48A9DB64BEFFB539A4D798E30B79EB3.json b/system/hosts/lillypc/openlinkhub/database/profiles/E48A9DB64BEFFB539A4D798E30B79EB3.json new file mode 100644 index 0000000..3c3c9ca --- /dev/null +++ b/system/hosts/lillypc/openlinkhub/database/profiles/E48A9DB64BEFFB539A4D798E30B79EB3.json @@ -0,0 +1,1485 @@ +{ + "Active": true, + "Path": "/var/lib/openlinkhub/database/profiles/E48A9DB64BEFFB539A4D798E30B79EB3.json", + "Product": "iCUE LINK System Hub", + "Serial": "E48A9DB64BEFFB539A4D798E30B79EB3", + "LCDMode": 0, + "LCDRotation": 0, + "Brightness": 0, + "BrightnessSlider": 100, + "OriginalBrightness": 100, + "SpeedProfiles": { + "1": "WaterTemp", + "13": "WaterTemp", + "14": "WaterTemp", + "15": "WaterTemp", + "2": "WaterTemp", + "3": "WaterTemp", + "4": "WaterTemp" + }, + "RGBProfiles": { + "1": "static", + "13": "static", + "14": "static", + "15": "static", + "2": "static", + "3": "static", + "4": "static" + }, + "Labels": { + "1": "Set Label", + "13": "Set Label", + "14": "Set Label", + "15": "Set Label", + "2": "Set Label", + "3": "Set Label", + "4": "Set Label" + }, + "RGBProbes": { + "1": 0, + "13": 0, + "14": 0, + "15": 0, + "2": 0, + "3": 0, + "4": 0 + }, + "MinTemps": { + "1": 0, + "13": 0, + "14": 0, + "15": 0, + "2": 0, + "3": 0, + "4": 0 + }, + "MaxTemps": { + "1": 60, + "13": 60, + "14": 60, + "15": 60, + "2": 60, + "3": 60, + "4": 60 + }, + "Positions": [ + "item_1", + "item_2", + "item_3", + "item_4", + "item_13", + "item_14", + "item_15" + ], + "ExternalAdapter": {}, + "LCDModes": {}, + "LCDImages": {}, + "LCDRotations": {}, + "LCDDevices": {}, + "LCDBrightness": {}, + "CommanderDuoOverride": {}, + "MultiRGB": "", + "MultiProfile": "WaterTemp", + "SubDeviceRGBProfiles": null, + "RGBOverride": { + "1": { + "0": { + "Enabled": false, + "RGBStartColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 20, + "Hex": "#00ffff" + }, + "RGBEndColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 60, + "Hex": "#00ffff" + }, + "RGBMiddleColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 40, + "Hex": "#00ffff" + }, + "RgbModeSpeed": 3 + } + }, + "13": { + "0": { + "Enabled": false, + "RGBStartColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 20, + "Hex": "#00ffff" + }, + "RGBEndColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 60, + "Hex": "#00ffff" + }, + "RGBMiddleColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 40, + "Hex": "#00ffff" + }, + "RgbModeSpeed": 3 + } + }, + "14": { + "0": { + "Enabled": false, + "RGBStartColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 20, + "Hex": "#00ffff" + }, + "RGBEndColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 60, + "Hex": "#00ffff" + }, + "RGBMiddleColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 40, + "Hex": "#00ffff" + }, + "RgbModeSpeed": 3 + } + }, + "15": { + "0": { + "Enabled": false, + "RGBStartColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 20, + "Hex": "#00ffff" + }, + "RGBEndColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 60, + "Hex": "#00ffff" + }, + "RGBMiddleColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 40, + "Hex": "#00ffff" + }, + "RgbModeSpeed": 3 + } + }, + "2": { + "0": { + "Enabled": false, + "RGBStartColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 20, + "Hex": "#00ffff" + }, + "RGBEndColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 60, + "Hex": "#00ffff" + }, + "RGBMiddleColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 40, + "Hex": "#00ffff" + }, + "RgbModeSpeed": 3 + } + }, + "3": { + "0": { + "Enabled": false, + "RGBStartColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 20, + "Hex": "#00ffff" + }, + "RGBEndColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 60, + "Hex": "#00ffff" + }, + "RGBMiddleColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 40, + "Hex": "#00ffff" + }, + "RgbModeSpeed": 3 + } + }, + "4": { + "0": { + "Enabled": false, + "RGBStartColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 20, + "Hex": "#00ffff" + }, + "RGBEndColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 60, + "Hex": "#00ffff" + }, + "RGBMiddleColor": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 40, + "Hex": "#00ffff" + }, + "RgbModeSpeed": 3 + } + } + }, + "RGBPerLed": { + "1": { + "0": { + "0": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "1": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "10": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "11": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "12": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "13": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "14": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "15": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "16": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "17": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "2": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "3": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "4": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "5": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "6": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "7": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "8": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "9": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + } + } + }, + "13": { + "0": { + "0": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "1": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "10": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "11": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "12": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "13": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "14": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "15": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "16": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "17": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "2": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "3": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "4": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "5": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "6": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "7": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "8": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "9": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + } + } + }, + "14": { + "0": { + "0": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "1": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "10": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "11": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "12": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "13": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "14": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "15": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "16": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "17": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "2": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "3": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "4": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "5": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "6": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "7": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "8": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "9": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + } + } + }, + "15": { + "0": { + "0": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "1": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "10": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "11": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "12": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "13": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "14": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "15": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "16": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "17": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "2": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "3": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "4": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "5": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "6": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "7": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "8": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "9": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + } + } + }, + "2": { + "0": { + "0": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "1": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "10": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "11": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "12": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "13": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "14": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "15": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "16": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "17": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "2": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "3": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "4": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "5": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "6": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "7": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "8": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "9": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + } + } + }, + "3": { + "0": { + "0": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "1": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "10": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "11": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "12": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "13": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "14": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "15": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "16": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "17": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "2": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "3": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "4": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "5": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "6": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "7": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "8": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "9": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + } + } + }, + "4": { + "0": { + "0": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "1": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "10": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "11": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "12": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "13": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "14": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "15": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "16": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "17": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "2": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "3": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "4": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "5": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "6": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "7": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "8": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + }, + "9": { + "red": 0, + "green": 255, + "blue": 255, + "brightness": 1, + "position": 0, + "temperature": 0, + "Hex": "" + } + } + } + }, + "OpenRGBIntegration": true, + "RGBCluster": false, + "RgbOff": false, + "Timewarp": {} +} \ No newline at end of file diff --git a/system/hosts/lillypc/openlinkhub/database/profiles/cluster.json b/system/hosts/lillypc/openlinkhub/database/profiles/cluster.json new file mode 100644 index 0000000..c9f2b27 --- /dev/null +++ b/system/hosts/lillypc/openlinkhub/database/profiles/cluster.json @@ -0,0 +1,5 @@ +{ + "RGBProfile": "rainbow", + "BrightnessSlider": 100, + "OriginalBrightness": 100 +} \ No newline at end of file diff --git a/system/hosts/lillypc/openlinkhub/database/temperatures/WaterTemp.json b/system/hosts/lillypc/openlinkhub/database/temperatures/WaterTemp.json new file mode 100755 index 0000000..28db577 --- /dev/null +++ b/system/hosts/lillypc/openlinkhub/database/temperatures/WaterTemp.json @@ -0,0 +1,155 @@ +{ + "sensor": 6, + "zeroRpm": false, + "profiles": [ + { + "id": 1, + "min": 0, + "max": 30, + "mode": 0, + "fans": 30, + "pump": 70 + }, + { + "id": 2, + "min": 30, + "max": 40, + "mode": 0, + "fans": 40, + "pump": 70 + }, + { + "id": 3, + "min": 40, + "max": 50, + "mode": 0, + "fans": 40, + "pump": 70 + }, + { + "id": 4, + "min": 50, + "max": 60, + "mode": 0, + "fans": 45, + "pump": 70 + }, + { + "id": 5, + "min": 60, + "max": 70, + "mode": 0, + "fans": 55, + "pump": 70 + }, + { + "id": 6, + "min": 70, + "max": 80, + "mode": 0, + "fans": 70, + "pump": 80 + }, + { + "id": 7, + "min": 80, + "max": 90, + "mode": 0, + "fans": 90, + "pump": 90 + }, + { + "id": 8, + "min": 90, + "max": 200, + "mode": 0, + "fans": 100, + "pump": 100 + } + ], + "points": { + "0": [ + { + "x": 0, + "y": 70 + }, + { + "x": 40, + "y": 70 + }, + { + "x": 50, + "y": 70 + }, + { + "x": 60, + "y": 70 + }, + { + "x": 70, + "y": 70 + }, + { + "x": 80, + "y": 80 + }, + { + "x": 90, + "y": 90 + }, + { + "x": 200, + "y": 100 + } + ], + "1": [ + { + "x": 0, + "y": 25 + }, + { + "x": 12, + "y": 26 + }, + { + "x": 22, + "y": 27 + }, + { + "x": 31, + "y": 31 + }, + { + "x": 40, + "y": 37 + }, + { + "x": 44, + "y": 45 + }, + { + "x": 47, + "y": 56 + }, + { + "x": 48, + "y": 70 + }, + { + "x": 49, + "y": 87 + }, + { + "x": 50, + "y": 100 + } + ] + }, + "device": "/sys/class/hwmon/hwmon7/temp1_input", + "hwmonDevice": "quadro", + "temperatureInputId": "temp1_input", + "channelId": 0, + "linear": false, + "gpuIndex": 0, + "Hidden": false +} \ No newline at end of file diff --git a/system/hosts/lillypc/openrgb.nix b/system/hosts/lillypc/openrgb.nix new file mode 100644 index 0000000..732c0e5 --- /dev/null +++ b/system/hosts/lillypc/openrgb.nix @@ -0,0 +1,9 @@ +{ + systemd.tmpfiles.rules = [ + "L+ /var/lib/OpenRGB/sizes.ors - - - - ${./openrgb/sizes.ors}" + ]; + services.hardware.openrgb = { + enable = true; + startupProfile = "main"; + }; +} \ No newline at end of file diff --git a/system/hosts/lillypc/openrgb/sizes.ors b/system/hosts/lillypc/openrgb/sizes.ors new file mode 100644 index 0000000..f20afd0 Binary files /dev/null and b/system/hosts/lillypc/openrgb/sizes.ors differ diff --git a/system/hosts/lillypc/streamdeck.nix b/system/hosts/lillypc/streamdeck.nix new file mode 100644 index 0000000..7b17bc9 --- /dev/null +++ b/system/hosts/lillypc/streamdeck.nix @@ -0,0 +1,7 @@ +{ inputs, pkgs, ... }: +{ + services.udev.packages = [ + inputs.opendeck.packages.${pkgs.stdenv.hostPlatform.system}.opendeck.udev + ]; + programs.streamcontroller.enable = true; +} \ No newline at end of file diff --git a/system/hosts/lillypc/udev.nix b/system/hosts/lillypc/udev.nix new file mode 100644 index 0000000..c2307ac --- /dev/null +++ b/system/hosts/lillypc/udev.nix @@ -0,0 +1,6 @@ +{ + services.udev.extraRules = '' +KERNEL=="card*", KERNELS=="0000:6b:00.0", SUBSYSTEM=="drm", SUBSYSTEMS=="pci", SYMLINK+="dri/amd-igpu" +KERNEL=="card*", KERNELS=="0000:01:00.0", SUBSYSTEM=="drm", SUBSYSTEMS=="pci", SYMLINK+="dri/nvidia-dgpu" + ''; +} \ No newline at end of file diff --git a/system/packages.nix b/system/packages.nix new file mode 100644 index 0000000..d3b3672 --- /dev/null +++ b/system/packages.nix @@ -0,0 +1,64 @@ +{ pkgs, config, lib, ...}: +{ + config = { + environment.systemPackages = with pkgs; [ + # DMS Dependencies + cups-pk-helper + kdePackages.kimageformats + qt6.qtimageformats + papirus-icon-theme + adwaita-icon-theme + hicolor-icon-theme + adw-gtk3 + + # Hyprland dependencies + qt5.qtwayland + qt6.qtwayland + + # Generic things I want + wl-clipboard + hyprshutdown + hyprshot + hyprpicker + nvidia_oc + bitwarden-desktop + nvtopPackages.full + nfs-utils + usbutils + kitty + killall + file + rquickshare + ]; + fonts.packages = with pkgs; [ + # All the fonts + dejavu_fonts + fira-code + fira-code-symbols + font-awesome + hackgen-nf-font + ibm-plex + inter + jetbrains-mono + material-icons + maple-mono.NF + minecraftia + nerd-fonts.im-writing + nerd-fonts.blex-mono + nerd-fonts.jetbrains-mono + noto-fonts + noto-fonts-color-emoji + noto-fonts-cjk-sans + noto-fonts-cjk-serif + noto-fonts-monochrome-emoji + powerline-fonts + roboto + roboto-mono + symbola + terminus_font + corefonts + vista-fonts + ]; + programs.yubikey-manager.enable = true; + }; +} diff --git a/system/user.nix b/system/user.nix new file mode 100644 index 0000000..9c5fc08 --- /dev/null +++ b/system/user.nix @@ -0,0 +1,22 @@ +{ + pkgs, + username, + prettyUsername, + ... +}: { + users.users.${username} = { + isNormalUser = true; + description = "${prettyUsername}"; + extraGroups = [ + "adbusers" + "networkmanager" + "scanner" + "wheel" #sudo access + "i2c" + ]; + shell = pkgs.bash; +# ignoreShellProgramCheck = true; + }; + nix.settings.allowed-users = [ "${username}" ]; + nix.settings.trusted-users = [ "${username}" ]; +} diff --git a/system/vpn.nix b/system/vpn.nix new file mode 100644 index 0000000..8410f8f --- /dev/null +++ b/system/vpn.nix @@ -0,0 +1,5 @@ +{ + services.tailscale = { + enable = true; + }; +} \ No newline at end of file