From 59ae3d5f9d563b8751e4bd08a520df0f74b12bc5 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Wed, 16 Jul 2025 20:14:43 +0200 Subject: [PATCH] update laptop configuration Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- flake.lock | 699 ++++-------------- home/programs/anyrun/default.nix | 87 --- home/programs/discord/default.nix | 6 +- .../duckduckgo-colorscheme/default.nix | 3 +- home/programs/fetch/default.nix | 3 +- home/programs/fetch/neofetch/default.nix | 6 +- home/programs/fetch/nerdfetch/default.nix | 12 +- home/programs/git/default.nix | 6 +- home/programs/git/signing.nix | 8 +- home/programs/lazygit/default.nix | 11 +- home/programs/nextcloud/default.nix | 1 + home/programs/nvf/default.nix | 1 + home/programs/qutebrowser/default.nix | 21 +- home/programs/shell/default.nix | 4 +- home/programs/shell/fzf.nix | 7 +- home/programs/shell/starship.nix | 12 +- home/programs/shell/tmux.nix | 58 -- home/programs/shell/zsh.nix | 48 +- home/programs/spicetify/default.nix | 11 +- home/programs/tailscale/default.nix | 7 +- home/programs/thunar/default.nix | 8 +- home/programs/zen/default.nix | 6 +- home/scripts/brightness/default.nix | 8 +- home/scripts/caffeine/default.nix | 7 +- home/scripts/default.nix | 1 - home/scripts/hyprfocus/default.nix | 16 +- home/scripts/hyprpanel/default.nix | 8 +- home/scripts/nerdfont-fzf/default.nix | 12 +- home/scripts/night-shift/default.nix | 22 +- home/scripts/nixy/default.nix | 18 +- home/scripts/notification/default.nix | 15 +- home/scripts/openvpn/default.nix | 37 - home/scripts/screenshot/default.nix | 6 +- home/scripts/sounds/default.nix | 6 +- home/scripts/system/default.nix | 21 +- home/system/clipman/default.nix | 9 +- home/system/hypridle/default.nix | 7 +- home/system/hyprland/animations.nix | 27 +- home/system/hyprland/bindings.nix | 80 +- home/system/hyprland/default.nix | 23 +- home/system/hyprland/hyprspace.nix | 8 +- home/system/hyprland/keyboard-backlight.nix | 10 +- home/system/hyprland/polkitagent.nix | 7 +- home/system/hyprlock/default.nix | 8 +- home/system/hyprpaper/default.nix | 2 +- home/system/mime/default.nix | 38 +- home/system/wofi/default.nix | 14 +- hosts/laptop/configuration.nix | 2 +- hosts/laptop/hardware-configuration.nix | 41 +- hosts/laptop/home.nix | 10 +- 50 files changed, 479 insertions(+), 1009 deletions(-) delete mode 100644 home/programs/anyrun/default.nix delete mode 100644 home/programs/shell/tmux.nix delete mode 100644 home/scripts/openvpn/default.nix diff --git a/flake.lock b/flake.lock index 28ccbda..c5498ad 100644 --- a/flake.lock +++ b/flake.lock @@ -1,51 +1,8 @@ { "nodes": { - "ags": { - "inputs": { - "astal": "astal", - "nixpkgs": [ - "hyprpanel", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1744557573, - "narHash": "sha256-XAyj0iDuI51BytJ1PwN53uLpzTDdznPDQFG4RwihlTQ=", - "owner": "aylur", - "repo": "ags", - "rev": "3ed9737bdbc8fc7a7c7ceef2165c9109f336bff6", - "type": "github" - }, - "original": { - "owner": "aylur", - "repo": "ags", - "type": "github" - } - }, - "anyrun": { - "inputs": { - "flake-parts": "flake-parts", - "nixpkgs": "nixpkgs", - "systems": "systems" - }, - "locked": { - "lastModified": 1731186561, - "narHash": "sha256-+jwC6oo7yx40SowZW4SCpTlYS+e0mPKmIuXvsBFNw3g=", - "owner": "fufexan", - "repo": "anyrun", - "rev": "3bc08db41dec30cd4278597c1c4bd7cf66b15fe0", - "type": "github" - }, - "original": { - "owner": "fufexan", - "ref": "launch-prefix", - "repo": "anyrun", - "type": "github" - } - }, "apple-fonts": { "inputs": { - "nixpkgs": "nixpkgs_2", + "nixpkgs": "nixpkgs", "ny": "ny", "sf-arabic": "sf-arabic", "sf-armenian": "sf-armenian", @@ -56,11 +13,11 @@ "sf-pro": "sf-pro" }, "locked": { - "lastModified": 1748299691, - "narHash": "sha256-HMlx5HzeOOhpewq3y9UaSMP9AkhEo+AFJHZIWLQvJGw=", + "lastModified": 1752383772, + "narHash": "sha256-I5Y0gUJS85lGEuuKr+tKSRUpJWeKavE+WmiAHRcyBaU=", "owner": "Lyndeno", "repo": "apple-fonts.nix", - "rev": "ec51ae2e8ba89adbb5188c40aa262a7418c48b00", + "rev": "875c694d7f0ec2020d7511264907a1f0e3262931", "type": "github" }, "original": { @@ -89,11 +46,11 @@ ] }, "locked": { - "lastModified": 1750974272, - "narHash": "sha256-VaeQzSzekMvP+/OhwNZP4kzs4paWk5+20N0MFLTn+cs=", + "lastModified": 1751740947, + "narHash": "sha256-35040CHH7P3JGmhGVfEb2oJHL/A5mI2IXumhkxrBnao=", "owner": "hyprwm", "repo": "aquamarine", - "rev": "dd921421391e75793d0cc674dc15eca16b46a089", + "rev": "dfc1db15a08c4cd234288f66e1199c653495301f", "type": "github" }, "original": { @@ -102,49 +59,6 @@ "type": "github" } }, - "astal": { - "inputs": { - "nixpkgs": [ - "hyprpanel", - "ags", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1742571008, - "narHash": "sha256-5WgfJAeBpxiKbTR/gJvxrGYfqQRge5aUDcGKmU1YZ1Q=", - "owner": "aylur", - "repo": "astal", - "rev": "dc0e5d37abe9424c53dcbd2506a4886ffee6296e", - "type": "github" - }, - "original": { - "owner": "aylur", - "repo": "astal", - "type": "github" - } - }, - "astal_2": { - "inputs": { - "nixpkgs": [ - "hyprpanel", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1748416910, - "narHash": "sha256-FEQcs58HL8Fe4i7XlqVEUwthjxwvRvgX15gTTfW17sU=", - "owner": "aylur", - "repo": "astal", - "rev": "c1bd89a47c81c66ab5fc6872db5a916c0433fb89", - "type": "github" - }, - "original": { - "owner": "aylur", - "repo": "astal", - "type": "github" - } - }, "base16": { "inputs": { "fromYaml": "fromYaml" @@ -258,34 +172,16 @@ "url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz" } }, - "flake-compat_3": { - "locked": { - "lastModified": 1747046372, - "narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=", - "owner": "edolstra", - "repo": "flake-compat", - "rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885", - "type": "github" - }, - "original": { - "owner": "edolstra", - "repo": "flake-compat", - "type": "github" - } - }, "flake-parts": { "inputs": { - "nixpkgs-lib": [ - "anyrun", - "nixpkgs" - ] + "nixpkgs-lib": "nixpkgs-lib" }, "locked": { - "lastModified": 1727826117, - "narHash": "sha256-K5ZLCyfO/Zj9mPFldf3iwS6oZStJcU4tSpiXTMYaaL0=", + "lastModified": 1749398372, + "narHash": "sha256-tYBdgS56eXYaWVW3fsnPQ/nFlgWi/Z2Ymhyu21zVM98=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "3d04084d54bedc3d6b8b736c70ef449225c361b1", + "rev": "9305fe4e5c2a6fcf5ba6a3ff155720fbe4076569", "type": "github" }, "original": { @@ -296,7 +192,10 @@ }, "flake-parts_2": { "inputs": { - "nixpkgs-lib": "nixpkgs-lib" + "nixpkgs-lib": [ + "nvf", + "nixpkgs" + ] }, "locked": { "lastModified": 1749398372, @@ -313,45 +212,6 @@ } }, "flake-parts_3": { - "inputs": { - "nixpkgs-lib": [ - "nixvim", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1749398372, - "narHash": "sha256-tYBdgS56eXYaWVW3fsnPQ/nFlgWi/Z2Ymhyu21zVM98=", - "owner": "hercules-ci", - "repo": "flake-parts", - "rev": "9305fe4e5c2a6fcf5ba6a3ff155720fbe4076569", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "flake-parts", - "type": "github" - } - }, - "flake-parts_4": { - "inputs": { - "nixpkgs-lib": "nixpkgs-lib_2" - }, - "locked": { - "lastModified": 1749398372, - "narHash": "sha256-tYBdgS56eXYaWVW3fsnPQ/nFlgWi/Z2Ymhyu21zVM98=", - "owner": "hercules-ci", - "repo": "flake-parts", - "rev": "9305fe4e5c2a6fcf5ba6a3ff155720fbe4076569", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "flake-parts", - "type": "github" - } - }, - "flake-parts_5": { "inputs": { "nixpkgs-lib": [ "stylix", @@ -359,11 +219,11 @@ ] }, "locked": { - "lastModified": 1743550720, - "narHash": "sha256-hIshGgKZCgWh6AYJpJmRgFdR3WUbkY04o82X05xqQiY=", + "lastModified": 1751413152, + "narHash": "sha256-Tyw1RjYEsp5scoigs1384gIg6e0GoBVjms4aXFfRssQ=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "c621e8422220273271f52058f618c94e405bb0f5", + "rev": "77826244401ea9de6e3bac47c2db46005e1f30b5", "type": "github" }, "original": { @@ -374,7 +234,7 @@ }, "flake-utils": { "inputs": { - "systems": "systems_4" + "systems": "systems_2" }, "locked": { "lastModified": 1731533236, @@ -392,7 +252,10 @@ }, "flake-utils_2": { "inputs": { - "systems": "systems_6" + "systems": [ + "nvf", + "systems" + ] }, "locked": { "lastModified": 1731533236, @@ -424,32 +287,6 @@ "type": "github" } }, - "git-hooks": { - "inputs": { - "flake-compat": [ - "stylix", - "flake-compat" - ], - "gitignore": "gitignore_2", - "nixpkgs": [ - "stylix", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1747372754, - "narHash": "sha256-2Y53NGIX2vxfie1rOW0Qb86vjRZ7ngizoo+bnXU9D9k=", - "owner": "cachix", - "repo": "git-hooks.nix", - "rev": "80479b6ec16fefd9c1db3ea13aeb038c60530f46", - "type": "github" - }, - "original": { - "owner": "cachix", - "repo": "git-hooks.nix", - "type": "github" - } - }, "gitignore": { "inputs": { "nixpkgs": [ @@ -472,41 +309,19 @@ "type": "github" } }, - "gitignore_2": { - "inputs": { - "nixpkgs": [ - "stylix", - "git-hooks", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1709087332, - "narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=", - "owner": "hercules-ci", - "repo": "gitignore.nix", - "rev": "637db329424fd7e46cf4185293b9cc8c88c95394", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "gitignore.nix", - "type": "github" - } - }, "gnome-shell": { "flake": false, "locked": { - "lastModified": 1744584021, - "narHash": "sha256-0RJ4mJzf+klKF4Fuoc8VN8dpQQtZnKksFmR2jhWE1Ew=", + "lastModified": 1748186689, + "narHash": "sha256-UaD7Y9f8iuLBMGHXeJlRu6U1Ggw5B9JnkFs3enZlap0=", "owner": "GNOME", "repo": "gnome-shell", - "rev": "52c517c8f6c199a1d6f5118fae500ef69ea845ae", + "rev": "8c88f917db0f1f0d80fa55206c863d3746fa18d0", "type": "github" }, "original": { "owner": "GNOME", - "ref": "48.1", + "ref": "48.2", "repo": "gnome-shell", "type": "github" } @@ -518,11 +333,11 @@ ] }, "locked": { - "lastModified": 1751336185, - "narHash": "sha256-ptnVr2x+sl7cZcTuGx/0BOE2qCAIYHTcgfA+/h60ml0=", + "lastModified": 1752603129, + "narHash": "sha256-S+wmHhwNQ5Ru689L2Gu8n1OD6s9eU9n9mD827JNR+kw=", "owner": "nix-community", "repo": "home-manager", - "rev": "96354906f58464605ff81d2f6c2ea23211cbf051", + "rev": "e8c19a3cec2814c754f031ab3ae7316b64da085b", "type": "github" }, "original": { @@ -534,16 +349,16 @@ "home-manager_2": { "inputs": { "nixpkgs": [ - "stylix", + "hyprpanel", "nixpkgs" ] }, "locked": { - "lastModified": 1748737919, - "narHash": "sha256-5kvBbLYdp+n7Ftanjcs6Nv+UO6sBhelp6MIGJ9nWmjQ=", + "lastModified": 1750798083, + "narHash": "sha256-DTCCcp6WCFaYXWKFRA6fiI2zlvOLCf5Vwx8+/0R8Wc4=", "owner": "nix-community", "repo": "home-manager", - "rev": "5675a9686851d9626560052a032c4e14e533c1fa", + "rev": "ff31a4677c1a8ae506aa7e003a3dba08cb203f82", "type": "github" }, "original": { @@ -618,11 +433,11 @@ ] }, "locked": { - "lastModified": 1750621377, - "narHash": "sha256-8u6b5oAdX0rCuoR8wFenajBRmI+mzbpNig6hSCuWUzE=", + "lastModified": 1751808145, + "narHash": "sha256-OXgL0XaKMmfX2rRQkt9SkJw+QNfv0jExlySt1D6O72g=", "owner": "hyprwm", "repo": "hyprgraphics", - "rev": "b3d628d01693fb9bb0a6690cd4e7b80abda04310", + "rev": "b841473a0bd4a1a74a0b64f1ec2ab199035c349f", "type": "github" }, "original": { @@ -641,17 +456,17 @@ "hyprlang": "hyprlang", "hyprutils": "hyprutils", "hyprwayland-scanner": "hyprwayland-scanner", - "nixpkgs": "nixpkgs_3", + "nixpkgs": "nixpkgs_2", "pre-commit-hooks": "pre-commit-hooks", - "systems": "systems_2", + "systems": "systems", "xdph": "xdph" }, "locked": { - "lastModified": 1751362428, - "narHash": "sha256-iss0EjjnaSWQ9la9A+Uv/8flOrBNpTllgcov6xCckC8=", + "lastModified": 1752682974, + "narHash": "sha256-JRSS4E1UAN6slDOXW7rQekKFkL6zTij9ObJqvjr4rJ0=", "ref": "refs/heads/main", - "rev": "e9c5594186d7ba935e966751d4d676cda998c34b", - "revCount": 6237, + "rev": "148718b3bcffaa90cd684df90860fd5bda37907f", + "revCount": 6281, "submodules": true, "type": "git", "url": "https://github.com/hyprwm/Hyprland" @@ -786,16 +601,16 @@ }, "hyprpanel": { "inputs": { - "ags": "ags", - "astal": "astal_2", - "nixpkgs": "nixpkgs_4" + "flake-utils": "flake-utils", + "home-manager": "home-manager_2", + "nixpkgs": "nixpkgs_3" }, "locked": { - "lastModified": 1751087867, - "narHash": "sha256-DFPuZLYopXRmqfu9IQn8RVBbxaPXIbyW0PXUFrfbJ9k=", + "lastModified": 1752292276, + "narHash": "sha256-cl1NEWTUsNxBmLjyvz+GDP4Hy7riaOszSGpfplHA7Y4=", "owner": "Jas-SinghFSU", "repo": "HyprPanel", - "rev": "d4895922de7c0908218557f252e4f8778da60fe2", + "rev": "59b57fca0634c98f23227ea948f87df7814e72f6", "type": "github" }, "original": { @@ -812,11 +627,11 @@ "systems": "systems_3" }, "locked": { - "lastModified": 1751272032, - "narHash": "sha256-493llKN7yyLkKlz8uYVAyvXH261IpDzuVA+TnewFIAg=", + "lastModified": 1752663231, + "narHash": "sha256-rTItuAWpzICMREF8Ww8cK4hYgNMRXJ4wjkN0akLlaWE=", "owner": "KZDKM", "repo": "Hyprspace", - "rev": "847a770436e1ecebdbe5ed006a93db7666937ff2", + "rev": "0a82e3724f929de8ad8fb04d2b7fa128493f24f7", "type": "github" }, "original": { @@ -837,11 +652,11 @@ ] }, "locked": { - "lastModified": 1751061882, - "narHash": "sha256-g9n8Vrbx+2JYM170P9BbvGHN39Wlkr4U+V2WLHQsXL8=", + "lastModified": 1751888065, + "narHash": "sha256-F2SV9WGqgtRsXIdUrl3sRe0wXlQD+kRRZcSfbepjPJY=", "owner": "hyprwm", "repo": "hyprutils", - "rev": "4737241eaf8a1e51671a2a088518071f9a265cf4", + "rev": "a8229739cf36d159001cfc203871917b83fdf917", "type": "github" }, "original": { @@ -862,11 +677,11 @@ ] }, "locked": { - "lastModified": 1750371869, - "narHash": "sha256-lGk4gLjgZQ/rndUkzmPYcgbHr8gKU5u71vyrjnwfpB4=", + "lastModified": 1751881472, + "narHash": "sha256-meB0SnXbwIe2trD041MLKEv6R7NZ759QwBcVIhlSBfE=", "owner": "hyprwm", "repo": "hyprwayland-scanner", - "rev": "aa38edd6e3e277ae6a97ea83a69261a5c3aab9fd", + "rev": "8fb426b3e5452fd9169453fd6c10f8c14ca37120", "type": "github" }, "original": { @@ -875,34 +690,6 @@ "type": "github" } }, - "ixx": { - "inputs": { - "flake-utils": [ - "nixvim", - "nuschtosSearch", - "flake-utils" - ], - "nixpkgs": [ - "nixvim", - "nuschtosSearch", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1748294338, - "narHash": "sha256-FVO01jdmUNArzBS7NmaktLdGA5qA3lUMJ4B7a05Iynw=", - "owner": "NuschtOS", - "repo": "ixx", - "rev": "cc5f390f7caf265461d4aab37e98d2292ebbdb85", - "type": "github" - }, - "original": { - "owner": "NuschtOS", - "ref": "v0.0.8", - "repo": "ixx", - "type": "github" - } - }, "mnw": { "locked": { "lastModified": 1748710831, @@ -918,39 +705,18 @@ "type": "github" } }, - "nil": { - "inputs": { - "nixpkgs": [ - "nvf", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1750047244, - "narHash": "sha256-vluLARrk4485npdyHOj8XKr0yk6H22pNf+KVRNL+i/Y=", - "owner": "oxalica", - "repo": "nil", - "rev": "870a4b1b5f12004832206703ac15aa85c42c247b", - "type": "github" - }, - "original": { - "owner": "oxalica", - "repo": "nil", - "type": "github" - } - }, "nixarr": { "inputs": { - "nixpkgs": "nixpkgs_5", + "nixpkgs": "nixpkgs_4", "vpnconfinement": "vpnconfinement", "website-builder": "website-builder" }, "locked": { - "lastModified": 1750925878, - "narHash": "sha256-HgCU4qyRsN72Ce+3KACGqv0vpQppKEBaEUWs4Nl/Mqk=", + "lastModified": 1752337105, + "narHash": "sha256-dxnmm2wIgohIOKAoaa4fneDOsnnKR/BgFZuWhx4B5N8=", "owner": "rasmus-kirk", "repo": "nixarr", - "rev": "b47442260a4754cc362067f572ad27254a200bc9", + "rev": "fc75ca0e6bc2fc31c0a3567d275b92ee30b9311d", "type": "github" }, "original": { @@ -962,15 +728,15 @@ "nixcord": { "inputs": { "flake-compat": "flake-compat_2", - "flake-parts": "flake-parts_2", - "nixpkgs": "nixpkgs_6" + "flake-parts": "flake-parts", + "nixpkgs": "nixpkgs_5" }, "locked": { - "lastModified": 1751334412, - "narHash": "sha256-Q0Bf7Bd5i/fp5B/ZCeZcLRCH4vfRejcmMnkotXJEWmM=", + "lastModified": 1752683207, + "narHash": "sha256-spAOcJa0m9P053Xh5G79TQAFTcKj1G/VlBBKacdiNa0=", "owner": "kaylorben", "repo": "nixcord", - "rev": "f4ae2c29c2d3480167a8c67291b2741225d67012", + "rev": "9b67156ca8131177cd6bdfd2b2812a2bb7296ac6", "type": "github" }, "original": { @@ -981,11 +747,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1751379130, - "narHash": "sha256-TObxiGbuX/4FbOnzDRvznfMUjIgS+d71+BetT35EOB8=", + "lastModified": 1752666637, + "narHash": "sha256-P8J72psdc/rWliIvp8jUpoQ6qRDlVzgSDDlgkaXQ0Fw=", "owner": "NixOS", "repo": "nixos-hardware", - "rev": "8b1f894089789eb39eacf0d6891d1e17cc3a84ab", + "rev": "d1bfa8f6ccfb5c383e1eba609c1eb67ca24ed153", "type": "github" }, "original": { @@ -997,15 +763,15 @@ }, "nixpkgs": { "locked": { - "lastModified": 1730200266, - "narHash": "sha256-l253w0XMT8nWHGXuXqyiIC/bMvh1VRszGXgdpQlfhvU=", - "owner": "NixOS", + "lastModified": 1740828860, + "narHash": "sha256-cjbHI+zUzK5CPsQZqMhE3npTyYFt9tJ3+ohcfaOF/WM=", + "owner": "nixos", "repo": "nixpkgs", - "rev": "807e9154dcb16384b1b765ebe9cd2bba2ac287fd", + "rev": "303bd8071377433a2d8f76e684ec773d70c5b642", "type": "github" }, "original": { - "owner": "NixOS", + "owner": "nixos", "ref": "nixos-unstable", "repo": "nixpkgs", "type": "github" @@ -1026,44 +792,13 @@ "type": "github" } }, - "nixpkgs-lib_2": { - "locked": { - "lastModified": 1748740939, - "narHash": "sha256-rQaysilft1aVMwF14xIdGS3sj1yHlI6oKQNBRTF40cc=", - "owner": "nix-community", - "repo": "nixpkgs.lib", - "rev": "656a64127e9d791a334452c6b6606d17539476e2", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "nixpkgs.lib", - "type": "github" - } - }, "nixpkgs_10": { "locked": { - "lastModified": 1744868846, - "narHash": "sha256-5RJTdUHDmj12Qsv7XOhuospjAjATNiTMElplWnJE9Hs=", + "lastModified": 1751792365, + "narHash": "sha256-J1kI6oAj25IG4EdVlg2hQz8NZTBNYvIS0l4wpr9KcUo=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "ebe4301cbd8f81c4f8d3244b3632338bbeb6d49c", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_11": { - "locked": { - "lastModified": 1748460289, - "narHash": "sha256-7doLyJBzCllvqX4gszYtmZUToxKvMUrg45EUWaUYmBg=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "96ec055edbe5ee227f28cdbc3f1ddf1df5965102", + "rev": "1fd8bada0b6117e6c7eb54aad5813023eed37ccb", "type": "github" }, "original": { @@ -1073,7 +808,7 @@ "type": "github" } }, - "nixpkgs_12": { + "nixpkgs_11": { "locked": { "lastModified": 1743448293, "narHash": "sha256-bmEPmSjJakAp/JojZRrUvNcDX2R5/nuX6bm+seVaGhs=", @@ -1091,15 +826,15 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1740828860, - "narHash": "sha256-cjbHI+zUzK5CPsQZqMhE3npTyYFt9tJ3+ohcfaOF/WM=", - "owner": "nixos", + "lastModified": 1751792365, + "narHash": "sha256-J1kI6oAj25IG4EdVlg2hQz8NZTBNYvIS0l4wpr9KcUo=", + "owner": "NixOS", "repo": "nixpkgs", - "rev": "303bd8071377433a2d8f76e684ec773d70c5b642", + "rev": "1fd8bada0b6117e6c7eb54aad5813023eed37ccb", "type": "github" }, "original": { - "owner": "nixos", + "owner": "NixOS", "ref": "nixos-unstable", "repo": "nixpkgs", "type": "github" @@ -1107,37 +842,21 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1751011381, - "narHash": "sha256-krGXKxvkBhnrSC/kGBmg5MyupUUT5R6IBCLEzx9jhMM=", - "owner": "NixOS", + "lastModified": 1750776420, + "narHash": "sha256-/CG+w0o0oJ5itVklOoLbdn2dGB0wbZVOoDm4np6w09A=", + "owner": "nixos", "repo": "nixpkgs", - "rev": "30e2e2857ba47844aa71991daa6ed1fc678bcbb7", + "rev": "30a61f056ac492e3b7cdcb69c1e6abdcf00e39cf", "type": "github" }, "original": { - "owner": "NixOS", + "owner": "nixos", "ref": "nixos-unstable", "repo": "nixpkgs", "type": "github" } }, "nixpkgs_4": { - "locked": { - "lastModified": 1748370509, - "narHash": "sha256-QlL8slIgc16W5UaI3w7xHQEP+Qmv/6vSNTpoZrrSlbk=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "4faa5f5321320e49a78ae7848582f684d64783e9", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixos-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_5": { "locked": { "lastModified": 1748662220, "narHash": "sha256-7gGa49iB9nCnFk4h/g9zwjlQAyjtpgcFkODjcOQS0Es=", @@ -1153,7 +872,7 @@ "type": "github" } }, - "nixpkgs_6": { + "nixpkgs_5": { "locked": { "lastModified": 1749494155, "narHash": "sha256-FG4DEYBpROupu758beabUk9lhrblSf5hnv84v1TLqMc=", @@ -1169,13 +888,13 @@ "type": "github" } }, - "nixpkgs_7": { + "nixpkgs_6": { "locked": { - "lastModified": 1751271578, - "narHash": "sha256-P/SQmKDu06x8yv7i0s8bvnnuJYkxVGBWLWHaU+tt4YY=", + "lastModified": 1752480373, + "narHash": "sha256-JHQbm+OcGp32wAsXTE/FLYGNpb+4GLi5oTvCxwSoBOA=", "owner": "nixos", "repo": "nixpkgs", - "rev": "3016b4b15d13f3089db8a41ef937b13a9e33a8df", + "rev": "62e0f05ede1da0d54515d4ea8ce9c733f12d9f08", "type": "github" }, "original": { @@ -1185,7 +904,7 @@ "type": "github" } }, - "nixpkgs_8": { + "nixpkgs_7": { "locked": { "lastModified": 1750215678, "narHash": "sha256-Rc/ytpamXRf6z8UA2SGa4aaWxUXRbX2MAWIu2C8M+ok=", @@ -1201,7 +920,7 @@ "type": "github" } }, - "nixpkgs_9": { + "nixpkgs_8": { "locked": { "lastModified": 1743583204, "narHash": "sha256-F7n4+KOIfWrwoQjXrL2wD9RhFYLs2/GGe/MQY1sSdlE=", @@ -1217,26 +936,19 @@ "type": "github" } }, - "nixvim": { - "inputs": { - "flake-parts": "flake-parts_3", - "nixpkgs": [ - "nixpkgs" - ], - "nuschtosSearch": "nuschtosSearch", - "systems": "systems_5" - }, + "nixpkgs_9": { "locked": { - "lastModified": 1751144320, - "narHash": "sha256-KJsKiGfkfXFB23V26NQ1p+UPsexI6NKtivnrwSlWWdQ=", - "owner": "nix-community", - "repo": "nixvim", - "rev": "ceb52aece5d571b37096945c2815604195a04eb4", + "lastModified": 1744868846, + "narHash": "sha256-5RJTdUHDmj12Qsv7XOhuospjAjATNiTMElplWnJE9Hs=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "ebe4301cbd8f81c4f8d3244b3632338bbeb6d49c", "type": "github" }, "original": { - "owner": "nix-community", - "repo": "nixvim", + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", "type": "github" } }, @@ -1249,61 +961,36 @@ "nixpkgs": [ "stylix", "nixpkgs" - ], - "treefmt-nix": "treefmt-nix" - }, - "locked": { - "lastModified": 1748730660, - "narHash": "sha256-5LKmRYKdPuhm8j5GFe3AfrJL8dd8o57BQ34AGjJl1R0=", - "owner": "nix-community", - "repo": "NUR", - "rev": "2c0bc52fe14681e9ef60e3553888c4f086e46ecb", - "type": "github" - }, - "original": { - "owner": "nix-community", - "repo": "NUR", - "type": "github" - } - }, - "nuschtosSearch": { - "inputs": { - "flake-utils": "flake-utils", - "ixx": "ixx", - "nixpkgs": [ - "nixvim", - "nixpkgs" ] }, "locked": { - "lastModified": 1749730855, - "narHash": "sha256-L3x2nSlFkXkM6tQPLJP3oCBMIsRifhIDPMQQdHO5xWo=", - "owner": "NuschtOS", - "repo": "search", - "rev": "8dfe5879dd009ff4742b668d9c699bc4b9761742", + "lastModified": 1751906969, + "narHash": "sha256-BSQAOdPnzdpOuCdAGSJmefSDlqmStFNScEnrWzSqKPw=", + "owner": "nix-community", + "repo": "NUR", + "rev": "ddb679f4131e819efe3bbc6457ba19d7ad116f25", "type": "github" }, "original": { - "owner": "NuschtOS", - "repo": "search", + "owner": "nix-community", + "repo": "NUR", "type": "github" } }, "nvf": { "inputs": { - "flake-parts": "flake-parts_4", + "flake-parts": "flake-parts_2", "flake-utils": "flake-utils_2", "mnw": "mnw", - "nil": "nil", - "nixpkgs": "nixpkgs_8", - "systems": "systems_7" + "nixpkgs": "nixpkgs_7", + "systems": "systems_4" }, "locked": { - "lastModified": 1751186226, - "narHash": "sha256-Bt7jtmCW72JUPxOIrV73qBTAUOy4qvJXsls2ERDUcGo=", + "lastModified": 1752687459, + "narHash": "sha256-XcTP16Yg2CcyBB6FE9OrxVXCWkAcKprS+nMvbZ8nYCc=", "owner": "notashelf", "repo": "nvf", - "rev": "5bad5dd94ce5ea3b40b08d9e6802e69d02198d21", + "rev": "fe874acd37f55dd5043a06fd2284300133782cfa", "type": "github" }, "original": { @@ -1349,7 +1036,6 @@ }, "root": { "inputs": { - "anyrun": "anyrun", "apple-fonts": "apple-fonts", "home-manager": "home-manager", "hyprland": "hyprland", @@ -1358,8 +1044,7 @@ "nixarr": "nixarr", "nixcord": "nixcord", "nixos-hardware": "nixos-hardware", - "nixpkgs": "nixpkgs_7", - "nixvim": "nixvim", + "nixpkgs": "nixpkgs_6", "nvf": "nvf", "search-nixos-api": "search-nixos-api", "sops-nix": "sops-nix", @@ -1370,7 +1055,7 @@ }, "search-nixos-api": { "inputs": { - "nixpkgs": "nixpkgs_9" + "nixpkgs": "nixpkgs_8" }, "locked": { "lastModified": 1744205741, @@ -1413,7 +1098,7 @@ "sf-compact": { "flake": false, "locked": { - "narHash": "sha256-J72Lyt2wy83E46wN8w6/Rih9kilM9wEjtY6KnbF0DsA=", + "narHash": "sha256-VMCf2Mhmx/qhLRQxlTAsQWxtonS27kPW+oTYBBRWHMg=", "type": "file", "url": "https://devimages-cdn.apple.com/design/resources/download/SF-Compact.dmg" }, @@ -1461,7 +1146,7 @@ "sf-pro": { "flake": false, "locked": { - "narHash": "sha256-Q/pOQ4MGhW/ZtLka+UUQcwSoZFDWW34XvutxL4GvzUY=", + "narHash": "sha256-RX6X2ltVE88Hp1g9tpSywMT3UfdLpRxgw92KRpiAues=", "type": "file", "url": "https://devimages-cdn.apple.com/design/resources/download/SF-Pro.dmg" }, @@ -1472,14 +1157,14 @@ }, "sops-nix": { "inputs": { - "nixpkgs": "nixpkgs_10" + "nixpkgs": "nixpkgs_9" }, "locked": { - "lastModified": 1750119275, - "narHash": "sha256-Rr7Pooz9zQbhdVxux16h7URa6mA80Pb/G07T4lHvh0M=", + "lastModified": 1752544651, + "narHash": "sha256-GllP7cmQu7zLZTs9z0J2gIL42IZHa9CBEXwBY9szT0U=", "owner": "Mic92", "repo": "sops-nix", - "rev": "77c423a03b9b2b79709ea2cb63336312e78b72e2", + "rev": "2c8def626f54708a9c38a5861866660395bb3461", "type": "github" }, "original": { @@ -1493,14 +1178,14 @@ "nixpkgs": [ "nixpkgs" ], - "systems": "systems_8" + "systems": "systems_5" }, "locked": { - "lastModified": 1751171964, - "narHash": "sha256-SeVvQm9ex+6BhDPIsRt9E1kSmMblQ6gTi53baphnX08=", + "lastModified": 1752381641, + "narHash": "sha256-R2iDZb94RosuCeuIukacZVVXxzWYr4jn/QI/ax15nW8=", "owner": "Gerg-L", "repo": "spicetify-nix", - "rev": "16adc163d966fc2bb5da47580df4602ae2c7a310", + "rev": "8f9fd947c52aa6adb6bafe72516eccf186708954", "type": "github" }, "original": { @@ -1516,14 +1201,11 @@ "base16-helix": "base16-helix", "base16-vim": "base16-vim", "firefox-gnome-theme": "firefox-gnome-theme", - "flake-compat": "flake-compat_3", - "flake-parts": "flake-parts_5", - "git-hooks": "git-hooks", + "flake-parts": "flake-parts_3", "gnome-shell": "gnome-shell", - "home-manager": "home-manager_2", - "nixpkgs": "nixpkgs_11", + "nixpkgs": "nixpkgs_10", "nur": "nur", - "systems": "systems_9", + "systems": "systems_6", "tinted-foot": "tinted-foot", "tinted-kitty": "tinted-kitty", "tinted-schemes": "tinted-schemes", @@ -1531,11 +1213,11 @@ "tinted-zed": "tinted-zed" }, "locked": { - "lastModified": 1751379237, - "narHash": "sha256-jDoLz04rgXS0jYLT017RARjcC7PoZoJ6NzH6ypi2kKM=", + "lastModified": 1752684057, + "narHash": "sha256-QRuM25aYp3n2cf59gEJE0VcIoGRX2ps8gp2mzorKodw=", "owner": "danth", "repo": "stylix", - "rev": "4bc15ef13c970981e37506491e18d1158af9a70c", + "rev": "0ba0ffe94cbe20ae739c2aa8cae04cbf900bf56b", "type": "github" }, "original": { @@ -1561,16 +1243,16 @@ }, "systems_2": { "locked": { - "lastModified": 1689347949, - "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", "owner": "nix-systems", - "repo": "default-linux", - "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", "type": "github" }, "original": { "owner": "nix-systems", - "repo": "default-linux", + "repo": "default", "type": "github" } }, @@ -1634,51 +1316,6 @@ "type": "github" } }, - "systems_7": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - }, - "systems_8": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - }, - "systems_9": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - }, "tinted-foot": { "flake": false, "locked": { @@ -1715,11 +1352,11 @@ "tinted-schemes": { "flake": false, "locked": { - "lastModified": 1748180480, - "narHash": "sha256-7n0XiZiEHl2zRhDwZd/g+p38xwEoWtT0/aESwTMXWG4=", + "lastModified": 1750770351, + "narHash": "sha256-LI+BnRoFNRa2ffbe3dcuIRYAUcGklBx0+EcFxlHj0SY=", "owner": "tinted-theming", "repo": "schemes", - "rev": "87d652edd26f5c0c99deda5ae13dfb8ece2ffe31", + "rev": "5a775c6ffd6e6125947b393872cde95867d85a2a", "type": "github" }, "original": { @@ -1731,11 +1368,11 @@ "tinted-tmux": { "flake": false, "locked": { - "lastModified": 1748740859, - "narHash": "sha256-OEM12bg7F4N5WjZOcV7FHJbqRI6jtCqL6u8FtPrlZz4=", + "lastModified": 1751159871, + "narHash": "sha256-UOHBN1fgHIEzvPmdNMHaDvdRMgLmEJh2hNmDrp3d3LE=", "owner": "tinted-theming", "repo": "tinted-tmux", - "rev": "57d5f9683ff9a3b590643beeaf0364da819aedda", + "rev": "bded5e24407cec9d01bd47a317d15b9223a1546c", "type": "github" }, "original": { @@ -1747,11 +1384,11 @@ "tinted-zed": { "flake": false, "locked": { - "lastModified": 1725758778, - "narHash": "sha256-8P1b6mJWyYcu36WRlSVbuj575QWIFZALZMTg5ID/sM4=", + "lastModified": 1751158968, + "narHash": "sha256-ksOyv7D3SRRtebpXxgpG4TK8gZSKFc4TIZpR+C98jX8=", "owner": "tinted-theming", "repo": "base16-zed", - "rev": "122c9e5c0e6f27211361a04fae92df97940eccf9", + "rev": "86a470d94204f7652b906ab0d378e4231a5b3384", "type": "github" }, "original": { @@ -1760,28 +1397,6 @@ "type": "github" } }, - "treefmt-nix": { - "inputs": { - "nixpkgs": [ - "stylix", - "nur", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1733222881, - "narHash": "sha256-JIPcz1PrpXUCbaccEnrcUS8jjEb/1vJbZz5KkobyFdM=", - "owner": "numtide", - "repo": "treefmt-nix", - "rev": "49717b5af6f80172275d47a418c9719a31a78b53", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "treefmt-nix", - "type": "github" - } - }, "vpnconfinement": { "locked": { "lastModified": 1743810720, @@ -1846,11 +1461,11 @@ ] }, "locked": { - "lastModified": 1750372504, - "narHash": "sha256-VBeZb1oqZM1cqCAZnFz/WyYhO8aF/ImagI7WWg/Z3Og=", + "lastModified": 1751300244, + "narHash": "sha256-PFuv1TZVYvQhha0ac53E3YgdtmLShrN0t4T6xqHl0jE=", "owner": "hyprwm", "repo": "xdg-desktop-portal-hyprland", - "rev": "400308fc4f9d12e0a93e483c2e7a649e12af1a92", + "rev": "6115f3fdcb2c1a57b4a80a69f3c797e47607b90a", "type": "github" }, "original": { @@ -1862,14 +1477,14 @@ "zen-browser": { "inputs": { "home-manager": "home-manager_3", - "nixpkgs": "nixpkgs_12" + "nixpkgs": "nixpkgs_11" }, "locked": { - "lastModified": 1751341208, - "narHash": "sha256-D659vmh5bseh5rB0tH4osXFXimh+QQLBBMKkdMH/DMk=", + "lastModified": 1752584655, + "narHash": "sha256-nPHrsq0vSh0+BqV2xAAVsfoVqzP9KYG7Zicc6oA0nfk=", "owner": "0xc000022070", "repo": "zen-browser-flake", - "rev": "97da6393f00eff37d787dcb1447afc65e9b4d57e", + "rev": "759a7860416dfd8c86f383d4ea4009bb034d869c", "type": "github" }, "original": { diff --git a/home/programs/anyrun/default.nix b/home/programs/anyrun/default.nix deleted file mode 100644 index 106f313..0000000 --- a/home/programs/anyrun/default.nix +++ /dev/null @@ -1,87 +0,0 @@ -{ pkgs, inputs, ... }: { - programs.anyrun = { - enable = true; - config = { - plugins = with inputs.anyrun.packages.${pkgs.system}; [ - applications - shell - randr - rink - symbols - translate - ]; - - width.fraction = 0.25; - y.fraction = 0.3; - hidePluginInfo = true; - closeOnClick = true; - }; - - extraCss = '' - * { - all: unset; - font-size: 1.2rem; - } - - #window, - #match, - #entry, - #plugin, - #main { - background: transparent; - } - - #match.activatable { - border-radius: 8px; - margin: 4px 0; - padding: 4px; - /* transition: 100ms ease-out; */ - } - #match.activatable:first-child { - margin-top: 12px; - } - #match.activatable:last-child { - margin-bottom: 0; - } - - #match:hover { - background: rgba(255, 255, 255, 0.05); - } - #match:selected { - background: rgba(255, 255, 255, 0.1); - } - - #entry { - background: rgba(255, 255, 255, 0.05); - border: 1px solid rgba(255, 255, 255, 0.1); - border-radius: 8px; - padding: 4px 8px; - } - - box#main { - background: rgba(0, 0, 0, 0.5); - box-shadow: - inset 0 0 0 1px rgba(255, 255, 255, 0.1), - 0 30px 30px 15px rgba(0, 0, 0, 0.5); - border-radius: 20px; - padding: 12px; - } - ''; - - extraConfigFiles = { - "applications.ron".text = '' - Config( - desktop_actions: false, - max_entries: 5, - terminal: Some("foot"), - ) - ''; - - "shell.ron".text = '' - Config( - prefix: ">" - ) - ''; - }; - }; -} diff --git a/home/programs/discord/default.nix b/home/programs/discord/default.nix index 105c2d9..586b030 100644 --- a/home/programs/discord/default.nix +++ b/home/programs/discord/default.nix @@ -1,9 +1,9 @@ # Discord is a popular chat application. -{ inputs, ... }: { - imports = [ inputs.nixcord.homeModules.nixcord ]; +{inputs, ...}: { + imports = [inputs.nixcord.homeModules.nixcord]; programs.nixcord = { enable = true; - config = { frameless = true; }; + config = {frameless = true;}; }; } diff --git a/home/programs/duckduckgo-colorscheme/default.nix b/home/programs/duckduckgo-colorscheme/default.nix index e395b46..1925b98 100644 --- a/home/programs/duckduckgo-colorscheme/default.nix +++ b/home/programs/duckduckgo-colorscheme/default.nix @@ -1,6 +1,5 @@ # A duckduckgo colorscheme generated for the Stylix theme used. -{ config, ... }: -let +{config, ...}: let accent = config.lib.stylix.colors.base0D; background = config.lib.stylix.colors.base00; foreground = config.lib.stylix.colors.base05; diff --git a/home/programs/fetch/default.nix b/home/programs/fetch/default.nix index 0cce11f..e7550e3 100644 --- a/home/programs/fetch/default.nix +++ b/home/programs/fetch/default.nix @@ -1 +1,2 @@ -{ imports = [ ./neofetch ./nerdfetch ]; } +# Import all fetch scripts +{imports = [./neofetch ./nerdfetch];} diff --git a/home/programs/fetch/neofetch/default.nix b/home/programs/fetch/neofetch/default.nix index b5838ed..c34f84c 100644 --- a/home/programs/fetch/neofetch/default.nix +++ b/home/programs/fetch/neofetch/default.nix @@ -1,6 +1,6 @@ # Legacy -{ pkgs, ... }: { - home.packages = with pkgs; [ neofetch ]; +{pkgs, ...}: { + home.packages = with pkgs; [neofetch]; xdg.configFile."neofetch/ascii.txt".text = '' ''${c6} @@ -28,7 +28,7 @@ xdg.configFile."neofetch/config.conf".text = '' # From: https://github.com/Chick2D/neofetch-themes/ - # Made by https://github.com/Dan1jel + # Made by https://github.com/Dan1jel print_info() { prin "\n" diff --git a/home/programs/fetch/nerdfetch/default.nix b/home/programs/fetch/nerdfetch/default.nix index 95c1316..ef92e43 100644 --- a/home/programs/fetch/nerdfetch/default.nix +++ b/home/programs/fetch/nerdfetch/default.nix @@ -1,7 +1,6 @@ # Nerdfetch, a simple system info script written in bash # Source: https://github.com/ThatOneCalculator/NerdFetch -{ pkgs, ... }: -let +{pkgs, ...}: let nerdfetch = pkgs.writeShellScriptBin "nerdfetch" '' ostype="$(uname)" @@ -197,9 +196,7 @@ let flatpak) packages="$(flatpak list --app | wc -l)" ;; brew) packages="$(printf '%s\n' "$(brew --cellar)/"* | wc -l)" ;; port) packages="$(port installed | wc -l)" ;; - dpkg-query) packages="$(dpkg-query -f '${ - "binary:Package" - }\n' -W | wc -l)" ;; + dpkg-query) packages="$(dpkg-query -f '${"binary:Package"}\n' -W | wc -l)" ;; rpm) packages="$(rpm -qa --last | wc -l)" ;; yum) packages="$(yum list installed | wc -l)" ;; dnf) packages="$(dnf list installed | wc -l)" ;; @@ -358,7 +355,7 @@ let ## OUTPUT echo """ - ''${c0} ___ ''${nc}''${USER}''${grey}@''${reset}''${hn}''${host}''${reset} + ''${c0} ___ ''${nc}''${USER}''${grey}@''${reset}''${hn}''${host}''${reset} ''${c0} (''${c1}.. ''${c0}\ ''${lc}''${osi} ''${ic}''${os}''${reset} ''${c0} (''${c2}<> ''${c0}| ''${lc}''${ki} ''${ic}''${kernel}''${reset} ''${c0} /''${c1}/ \\ ''${c0}\\ ''${lc}''${ri} ''${ic}''${RAM}''${memstat} ''${mempercent} @@ -367,5 +364,4 @@ let ''${c2} \/''${c0}-____''${c2}\/''${reset} ''${lc}''${ci} ''${red}███''${green}███''${yellow}███''${blue}███''${magenta}███''${cyan}███''${reset} """ ''; - -in { home.packages = [ nerdfetch ]; } +in {home.packages = [nerdfetch];} diff --git a/home/programs/git/default.nix b/home/programs/git/default.nix index 03d4dbc..bc651d8 100644 --- a/home/programs/git/default.nix +++ b/home/programs/git/default.nix @@ -1,6 +1,5 @@ # Git configuration -{ config, ... }: -let +{config, ...}: let username = config.var.git.username; email = config.var.git.email; in { @@ -50,8 +49,7 @@ in { log --pretty=format:"%Cgreen%h %Creset%cd %Cblue[%cn] %Creset%s%C(yellow)%d%C(reset)" --graph --date=relative --decorate --all''; llog = '' log --graph --name-status --pretty=format:"%C(red)%h %C(reset)(%cd) %C(green)%an %Creset%s %C(yellow)%d%Creset" --date=relative''; - edit-unmerged = - "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; hx `f`"; + edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; hx `f`"; }; }; } diff --git a/home/programs/git/signing.nix b/home/programs/git/signing.nix index 58c223e..1a6ff3a 100644 --- a/home/programs/git/signing.nix +++ b/home/programs/git/signing.nix @@ -1,6 +1,8 @@ -_: { - home.file.".ssh/allowed_signers".text = - "* ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIINhWby7lUUXQNKbRu9/UOrGjWDf3fvoAwGHomWv/+lL"; +# This file is used to sign git commits using an SSH key. +{ + # Obviously, change this to your own SSH key. + home.file.".ssh/allowed_signers".text = "* ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIINhWby7lUUXQNKbRu9/UOrGjWDf3fvoAwGHomWv/+lL"; + programs.git.extraConfig = { commit.gpgsign = true; gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers"; diff --git a/home/programs/lazygit/default.nix b/home/programs/lazygit/default.nix index 3b36794..942567d 100644 --- a/home/programs/lazygit/default.nix +++ b/home/programs/lazygit/default.nix @@ -1,6 +1,9 @@ # Lazygit is a simple terminal UI for git commands. -{ config, lib, ... }: -let +{ + config, + lib, + ... +}: let accent = "#${config.lib.stylix.colors.base0D}"; muted = "#${config.lib.stylix.colors.base03}"; in { @@ -17,8 +20,8 @@ in { }; gui = { theme = { - activeBorderColor = [ accent "bold" ]; - inactiveBorderColor = [ muted ]; + activeBorderColor = [accent "bold"]; + inactiveBorderColor = [muted]; }; showListFooter = false; showRandomTip = false; diff --git a/home/programs/nextcloud/default.nix b/home/programs/nextcloud/default.nix index fbd21bd..35360f6 100644 --- a/home/programs/nextcloud/default.nix +++ b/home/programs/nextcloud/default.nix @@ -1,4 +1,5 @@ # Nextcloud is a suite of client-server software for creating file hosting services and using them. It is functionally similar to Dropbox, although Nextcloud is free and open-source, allowing anyone to install and operate it on a private server. In contrast to proprietary services, Nextcloud can be hosted on a private server, without additional cost. +# This is the client, check /server-modules/nextcloud.nix for the server module. { services.nextcloud-client = { enable = true; diff --git a/home/programs/nvf/default.nix b/home/programs/nvf/default.nix index eaaefe8..385075f 100644 --- a/home/programs/nvf/default.nix +++ b/home/programs/nvf/default.nix @@ -1,3 +1,4 @@ +# NVF is a Neovim configuration that provides a minimal setup with essential plugins and configurations. { inputs, pkgs, diff --git a/home/programs/qutebrowser/default.nix b/home/programs/qutebrowser/default.nix index d0e7f4a..05df63d 100644 --- a/home/programs/qutebrowser/default.nix +++ b/home/programs/qutebrowser/default.nix @@ -1,7 +1,11 @@ # Qutebrowser is a keyboard-focused browser with a minimal GUI. # My homepage is generated using https://github.com/anotherhadi/homepage -{ pkgs, config, ... }: -let +# Legacy +{ + pkgs, + config, + ... +}: let accent = "#${config.lib.stylix.colors.base0D}"; background = "#${config.lib.stylix.colors.base00}"; foreground = "#${config.lib.stylix.colors.base05}"; @@ -77,10 +81,8 @@ let homepage = "https://github.com/anotherhadi/homepage"; }; }; - in { - - imports = [ ../duckduckgo-colorscheme ]; + imports = [../duckduckgo-colorscheme]; programs.qutebrowser = { enable = true; @@ -120,19 +122,18 @@ in { settings = { url = { default_page = "${homepage}/build/index.html"; - start_pages = [ "${homepage}/build/index.html" ]; + start_pages = ["${homepage}/build/index.html"]; }; colors = { - webpage.preferred_color_scheme = - "dark"; # Enable dark mode for websites that support it + webpage.preferred_color_scheme = "dark"; # Enable dark mode for websites that support it }; statusbar.show = "in-mode"; completion = { height = "30%"; - open_categories = [ "history" ]; + open_categories = ["history"]; scrollbar = { padding = 0; width = 0; @@ -156,7 +157,7 @@ in { remove_finished = 0; }; - hints = { radius = 1; }; + hints = {radius = 1;}; scrolling = { bar = "never"; diff --git a/home/programs/shell/default.nix b/home/programs/shell/default.nix index 84d046f..aee5d89 100644 --- a/home/programs/shell/default.nix +++ b/home/programs/shell/default.nix @@ -1,4 +1,4 @@ +# Import all shell configurations { - imports = - [ ./fzf.nix ./zsh.nix ./starship.nix ./zoxide.nix ./tmux.nix ./eza.nix ]; + imports = [./fzf.nix ./zsh.nix ./starship.nix ./zoxide.nix ./eza.nix]; } diff --git a/home/programs/shell/fzf.nix b/home/programs/shell/fzf.nix index 05c7721..9ad8965 100644 --- a/home/programs/shell/fzf.nix +++ b/home/programs/shell/fzf.nix @@ -1,6 +1,9 @@ # Fzf is a general-purpose command-line fuzzy finder. -{ config, lib, ... }: -let +{ + config, + lib, + ... +}: let accent = "#" + config.lib.stylix.colors.base0D; foreground = "#" + config.lib.stylix.colors.base05; muted = "#" + config.lib.stylix.colors.base03; diff --git a/home/programs/shell/starship.nix b/home/programs/shell/starship.nix index 08babf8..0f9f164 100644 --- a/home/programs/shell/starship.nix +++ b/home/programs/shell/starship.nix @@ -1,6 +1,9 @@ # starship is a minimal, fast, and extremely customizable prompt for any shell! -{ config, lib, ... }: -let +{ + config, + lib, + ... +}: let accent = "#${config.lib.stylix.colors.base0D}"; background-alt = "#${config.lib.stylix.colors.base01}"; in { @@ -17,7 +20,7 @@ in { "$git_status" "$character" ]; - directory = { style = accent; }; + directory = {style = accent;}; character = { success_symbol = "[❯](${accent})"; @@ -38,8 +41,7 @@ in { }; git_status = { - format = - "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218)($ahead_behind$stashed)]($style)"; + format = "[[(*$conflicted$untracked$modified$staged$renamed$deleted)](218)($ahead_behind$stashed)]($style)"; style = "cyan"; conflicted = ""; renamed = ""; diff --git a/home/programs/shell/tmux.nix b/home/programs/shell/tmux.nix deleted file mode 100644 index b82a2c7..0000000 --- a/home/programs/shell/tmux.nix +++ /dev/null @@ -1,58 +0,0 @@ -# Tmux is a terminal multiplexer that allows you to run multiple terminal sessions in a single window. -{ pkgs, ... }: -let - Config = pkgs.writeShellScriptBin "Config" '' - SESSION="Nixy Config" - - tmux has-session -t "$SESSION" 2>/dev/null - - if [ $? == 0 ]; then - tmux attach -t "$SESSION" - exit 0 - fi - - tmux new-session -d -s "$SESSION" - tmux send-keys -t "$SESSION" "sleep 0.2 && clear && cd ~/.config/nixos/ && vim" C-m - - tmux new-window -t "$SESSION" -n "nixy" - tmux send-keys -t "$SESSION":1 "sleep 0.2 && clear && cd ~/.config/nixos/ && nixy loop" C-m - - tmux new-window -t "$SESSION" -n "lazygit" - tmux send-keys -t "$SESSION":2 "sleep 0.2 && clear && cd ~/.config/nixos/ && lazygit" C-m - - tmux select-window -t "$SESSION":0 - tmux select-pane -t 0 - tmux attach -t "$SESSION" - ''; -in { - programs.tmux = { - enable = true; - mouse = true; - shell = "${pkgs.zsh}/bin/zsh"; - prefix = "C-s"; - terminal = "kitty"; - keyMode = "vi"; - - extraConfig = '' - bind-key h select-pane -L - bind-key j select-pane -D - bind-key k select-pane -U - bind-key l select-pane -R - - set -gq allow-passthrough on - bind-key x kill-pane # skip "kill-pane 1? (y/n)" prompt - - bind-key -n C-Tab next-window - bind-key -n C-S-Tab previous-window - bind-key -n M-Tab new-window - ''; - - plugins = with pkgs; [ - tmuxPlugins.vim-tmux-navigator - # tmuxPlugins.resurrect - tmuxPlugins.sensible - tmuxPlugins.tokyo-night-tmux - ]; - }; - home.packages = [ Config ]; -} diff --git a/home/programs/shell/zsh.nix b/home/programs/shell/zsh.nix index 34a7338..e1f832c 100644 --- a/home/programs/shell/zsh.nix +++ b/home/programs/shell/zsh.nix @@ -1,11 +1,16 @@ # My shell configuration -{ pkgs, lib, config, ... }: -let fetch = config.theme.fetch; # neofetch, nerdfetch, pfetch +{ + pkgs, + lib, + config, + ... +}: let + fetch = config.theme.fetch; # neofetch, nerdfetch, pfetch in { + home.packages = with pkgs; [bat ripgrep tldr sesh rmtrash trash-cli]; - home.packages = with pkgs; [ bat ripgrep tldr sesh rmtrash trash-cli ]; - - home.sessionPath = [ "$HOME/go/bin" ]; + # Add go binaries to the PATH + home.sessionPath = ["$HOME/go/bin"]; programs.zsh = { enable = true; @@ -13,7 +18,7 @@ in { autosuggestion.enable = true; syntaxHighlighting = { enable = true; - highlighters = [ "main" "brackets" "pattern" "regexp" "root" "line" ]; + highlighters = ["main" "brackets" "pattern" "regexp" "root" "line"]; }; historySubstringSearch.enable = true; @@ -23,7 +28,7 @@ in { size = 10000; }; - profileExtra = lib.optionalString (config.home.sessionPath != [ ]) '' + profileExtra = lib.optionalString (config.home.sessionPath != []) '' export PATH="$PATH''${PATH:+:}${ lib.concatStringsSep ":" config.home.sessionPath }" @@ -43,18 +48,15 @@ in { sl = "ls"; open = "${pkgs.xdg-utils}/bin/xdg-open"; icat = "${pkgs.kitty}/bin/kitty +kitten icat"; - cat = - "bat --theme=base16 --color=always --paging=never --tabs=2 --wrap=never --plain"; + cat = "bat --theme=base16 --color=always --paging=never --tabs=2 --wrap=never --plain"; mkdir = "mkdir -p"; rm = "${pkgs.rmtrash}/bin/rmtrash"; rmdir = "${pkgs.rmtrash}/bin/rmdirtrash"; - obsidian-no-gpu = - "env ELECTRON_OZONE_PLATFORM_HINT=auto obsidian --ozone-platform=x11"; + obsidian-no-gpu = "env ELECTRON_OZONE_PLATFORM_HINT=auto obsidian --ozone-platform=x11"; wireguard-import = "nmcli connection import type wireguard file"; - notes = - "nvim ~/nextcloud/notes/index.md --cmd 'cd ~/nextcloud/notes' -c ':lua Snacks.picker.smart()'"; + notes = "nvim ~/nextcloud/notes/index.md --cmd 'cd ~/nextcloud/notes' -c ':lua Snacks.picker.smart()'"; note = "notes"; tmp = "nvim /tmp/$(date | sed 's/ //g;s/\\.//g').md"; @@ -79,17 +81,19 @@ in { gcm = "git commit -m"; }; - initContent = # bash + initContent = + # bash '' bindkey -e - ${if fetch == "neofetch" then - pkgs.neofetch + "/bin/neofetch" - else if fetch == "nerdfetch" then - "nerdfetch" - else if fetch == "pfetch" then - "echo; ${pkgs.pfetch}/bin/pfetch" - else - ""} + ${ + if fetch == "neofetch" + then pkgs.neofetch + "/bin/neofetch" + else if fetch == "nerdfetch" + then "nerdfetch" + else if fetch == "pfetch" + then "echo; ${pkgs.pfetch}/bin/pfetch" + else "" + } function sesh-sessions() { session=$(sesh list -t -c | fzf --height 70% --reverse) diff --git a/home/programs/spicetify/default.nix b/home/programs/spicetify/default.nix index cabfa6e..150f3e9 100644 --- a/home/programs/spicetify/default.nix +++ b/home/programs/spicetify/default.nix @@ -1,11 +1,16 @@ # Spicetify is a spotify client customizer -{ pkgs, config, lib, inputs, ... }: -let +{ + pkgs, + config, + lib, + inputs, + ... +}: let spicePkgs = inputs.spicetify-nix.legacyPackages.${pkgs.system}; accent = "${config.lib.stylix.colors.base0D}"; background = "${config.lib.stylix.colors.base00}"; in { - imports = [ inputs.spicetify-nix.homeManagerModules.default ]; + imports = [inputs.spicetify-nix.homeManagerModules.default]; stylix.targets.spicetify.enable = false; diff --git a/home/programs/tailscale/default.nix b/home/programs/tailscale/default.nix index cca594e..060b41c 100644 --- a/home/programs/tailscale/default.nix +++ b/home/programs/tailscale/default.nix @@ -1,8 +1,7 @@ # Tailscale is a VPN service that works on top of WireGuard. # It allows me to access my servers and devices from anywhere. -{ pkgs, ... }: { - home.packages = with pkgs; [ tailscale tailscale-systray ]; +{pkgs, ...}: { + home.packages = with pkgs; [tailscale tailscale-systray]; - wayland.windowManager.hyprland.settings.exec-once = - [ "${pkgs.tailscale-systray}/bin/tailscale-systray" ]; + wayland.windowManager.hyprland.settings.exec-once = ["${pkgs.tailscale-systray}/bin/tailscale-systray"]; } diff --git a/home/programs/thunar/default.nix b/home/programs/thunar/default.nix index fce3af2..c4e70f4 100644 --- a/home/programs/thunar/default.nix +++ b/home/programs/thunar/default.nix @@ -1,6 +1,10 @@ # Thunar is a file explorer -{ pkgs, config, ... }: -let user = config.var.username; +{ + pkgs, + config, + ... +}: let + user = config.var.username; in { # ctrl + m to toggle the menubar home.packages = with pkgs; [ diff --git a/home/programs/zen/default.nix b/home/programs/zen/default.nix index f574e13..cd88b95 100644 --- a/home/programs/zen/default.nix +++ b/home/programs/zen/default.nix @@ -1,9 +1,5 @@ # Zen is a minimalistic web browser. -{ - pkgs, - inputs, - ... -}: { +{inputs, ...}: { imports = [ inputs.zen-browser.homeModules.beta ]; diff --git a/home/scripts/brightness/default.nix b/home/scripts/brightness/default.nix index bfab164..10d6ee6 100644 --- a/home/scripts/brightness/default.nix +++ b/home/scripts/brightness/default.nix @@ -1,15 +1,12 @@ # - ## Brightness -#- +#- #- This module provides a set of scripts to control the brightness of the screen. #- #- - `brightness-up` increases the brightness by 5%. #- - `brightness-down` decreases the brightness by 5%. #- - `brightness-set [value]` sets the brightness to the given value. #- - `brightness-change [up|down] [value]` increases or decreases the brightness by the given value. - -{ pkgs, ... }: - -let +{pkgs, ...}: let increments = "5"; brightness-change = pkgs.writeShellScriptBin "brightness-change" '' @@ -28,7 +25,6 @@ let brightness-down = pkgs.writeShellScriptBin "brightness-down" '' brightness-change down ${increments} ''; - in { home.packages = [ pkgs.brightnessctl diff --git a/home/scripts/caffeine/default.nix b/home/scripts/caffeine/default.nix index bbd1a89..d07cc06 100644 --- a/home/scripts/caffeine/default.nix +++ b/home/scripts/caffeine/default.nix @@ -5,9 +5,7 @@ #- - `caffeine-status` - Check if hypridle is running. (0/1) #- - `caffeine-status-icon` - Check if hypridle is running. (icon) #- - `caffeine` - Toggle hypridle. - -{ pkgs, ... }: -let +{pkgs, ...}: let caffeine-status = pkgs.writeShellScriptBin "caffeine-status" '' [[ $(pidof "hypridle") ]] && echo "0" || echo "1" ''; @@ -29,5 +27,4 @@ let notif "caffeine" "$title" "$description" ''; - -in { home.packages = [ caffeine-status caffeine caffeine-status-icon ]; } +in {home.packages = [caffeine-status caffeine caffeine-status-icon];} diff --git a/home/scripts/default.nix b/home/scripts/default.nix index c7d4e35..f8b36f7 100644 --- a/home/scripts/default.nix +++ b/home/scripts/default.nix @@ -11,6 +11,5 @@ ./nerdfont-fzf ./notification ./system - ./openvpn ]; } diff --git a/home/scripts/hyprfocus/default.nix b/home/scripts/hyprfocus/default.nix index 3da0b9e..1b6197d 100644 --- a/home/scripts/hyprfocus/default.nix +++ b/home/scripts/hyprfocus/default.nix @@ -6,9 +6,9 @@ #- - `hyprfocus-on` - Enable hyprfocus. #- - `hyprfocus-off` - Disable hyprfocus. #- - `hyprfocus-toggle` - Toggle hyprfocus. -{ pkgs, ... }: -let - hyprfocus-on = pkgs.writeShellScriptBin "hyprfocus-on" +{pkgs, ...}: let + hyprfocus-on = + pkgs.writeShellScriptBin "hyprfocus-on" # bash '' hyprpanel-hide @@ -27,7 +27,8 @@ let echo "1" > /tmp/hyprfocus ''; - hyprfocus-off = pkgs.writeShellScriptBin "hyprfocus-off" + hyprfocus-off = + pkgs.writeShellScriptBin "hyprfocus-off" # bash '' hyprctl reload @@ -35,8 +36,9 @@ let rm /tmp/hyprfocus ''; - hyprfocus-toggle = pkgs.writeShellScriptBin "hyprfocus-toggle" - # bash + hyprfocus-toggle = + pkgs.writeShellScriptBin "hyprfocus-toggle" + # bash '' if [ -f /tmp/hyprfocus ]; then hyprfocus-off @@ -44,4 +46,4 @@ let hyprfocus-on fi ''; -in { home.packages = [ hyprfocus-on hyprfocus-off hyprfocus-toggle ]; } +in {home.packages = [hyprfocus-on hyprfocus-off hyprfocus-toggle];} diff --git a/home/scripts/hyprpanel/default.nix b/home/scripts/hyprpanel/default.nix index e0092b0..ecd443f 100644 --- a/home/scripts/hyprpanel/default.nix +++ b/home/scripts/hyprpanel/default.nix @@ -1,13 +1,12 @@ # - ## Hyprpanel -#- +#- #- Quick scripts to toggle, reload, hide & show hyprpanel. #- #- - `hyprpanel-toggle` - Toggle hyprpanel (hide/show). #- - `hyprpanel-show` - Show hyprpanel. #- - `hyprpanel-hide` - Hide hyprpanel. #- - `hyprpanel-reload` - Reload hyprpanel. -{ pkgs, ... }: -let +{pkgs, ...}: let hyprpanel-toggle = pkgs.writeShellScriptBin "hyprpanel-toggle" '' hyprpanel toggleWindow bar-0 hyprpanel toggleWindow bar-1 @@ -42,6 +41,5 @@ let hyprctl dispatch exec hyprpanel ''; in { - home.packages = - [ hyprpanel-toggle hyprpanel-reload hyprpanel-hide hyprpanel-show ]; + home.packages = [hyprpanel-toggle hyprpanel-reload hyprpanel-hide hyprpanel-show]; } diff --git a/home/scripts/nerdfont-fzf/default.nix b/home/scripts/nerdfont-fzf/default.nix index 6f99d6b..6066ece 100644 --- a/home/scripts/nerdfont-fzf/default.nix +++ b/home/scripts/nerdfont-fzf/default.nix @@ -3,8 +3,11 @@ #- This module provides a script to search for Nerd Fonts icons using fzf. #- #- - `nerdfont-fzf` - Search for Nerd Fonts icons using fzf. -{ pkgs, config, ... }: -let +{ + pkgs, + config, + ... +}: let nerdfont-fzf = pkgs.writeShellScriptBin "nerdfont-fzf" '' icons=$(${pkgs.jq}/bin/jq -r 'to_entries[] | "\(.key):\(.value.char)"' "/home/${config.var.username}/.config/nerdfont_glyphnames.json" | awk -F: '{print "\033[95m "$2" \033[0m "$1}') fzf_result=$(echo "$icons" | ${pkgs.fzf}/bin/fzf --ansi --border none | awk '{print $1}') @@ -17,12 +20,11 @@ let ${pkgs.wl-clipboard}/bin/wl-copy "$fzf_result" ''; in { - home.packages = [ nerdfont-fzf ]; + home.packages = [nerdfont-fzf]; xdg.configFile."nerdfont_glyphnames.json" = { source = pkgs.fetchurl { - url = - "https://raw.githubusercontent.com/ryanoasis/nerd-fonts/384b1825ea0037b0314f7f9c660a80c1ecdb219a/glyphnames.json"; + url = "https://raw.githubusercontent.com/ryanoasis/nerd-fonts/384b1825ea0037b0314f7f9c660a80c1ecdb219a/glyphnames.json"; hash = "sha256-Ps0dyFcMs51RMTthBOVSOf/lafPV/53JxuNSKlmZ7cc="; }; }; diff --git a/home/scripts/night-shift/default.nix b/home/scripts/night-shift/default.nix index eebc355..328c084 100644 --- a/home/scripts/night-shift/default.nix +++ b/home/scripts/night-shift/default.nix @@ -8,12 +8,12 @@ #- - `night-shift` toggles Night-Shift. #- - `night-shift-status` checks if Night-Shift is active. (0/1) #- - `night-shift-status-icon` checks if Night-Shift is active. (icon) -{ pkgs, ... }: -let +{pkgs, ...}: let value = "4500"; # Default value for night-shift temperature - night-shift-on = pkgs.writeShellScriptBin "night-shift-on" - # bash + night-shift-on = + pkgs.writeShellScriptBin "night-shift-on" + # bash '' ${pkgs.hyprsunset}/bin/hyprsunset -t ${value} & title="󰖔 Night-Shift Activated" @@ -22,8 +22,9 @@ let notif "night-shift" "$title" "$description" ''; - night-shift-off = pkgs.writeShellScriptBin "night-shift-off" - # bash + night-shift-off = + pkgs.writeShellScriptBin "night-shift-off" + # bash '' pkill hyprsunset title="󰖕 Night-Shift Deactivated" @@ -32,7 +33,8 @@ let notif "night-shift" "$title" "$description" ''; - night-shift = pkgs.writeShellScriptBin "night-shift" + night-shift = + pkgs.writeShellScriptBin "night-shift" # bash '' if pidof "hyprsunset"; then @@ -42,7 +44,8 @@ let fi ''; - night-shift-status = pkgs.writeShellScriptBin "night-shift-status" + night-shift-status = + pkgs.writeShellScriptBin "night-shift-status" # bash '' if pidof "hyprsunset"; then @@ -52,7 +55,8 @@ let fi ''; - night-shift-status-icon = pkgs.writeShellScriptBin "night-shift-status-icon" + night-shift-status-icon = + pkgs.writeShellScriptBin "night-shift-status-icon" # bash '' if pidof "hyprsunset"; then diff --git a/home/scripts/nixy/default.nix b/home/scripts/nixy/default.nix index 22f137d..884cdbc 100644 --- a/home/scripts/nixy/default.nix +++ b/home/scripts/nixy/default.nix @@ -1,17 +1,20 @@ # - ## Nixy -#- -#- Nixy is a simple script that I use to manage my NixOS system. It's a simple script that provides a menu to rebuild, upgrade, update, collect garbage, clean boot menu, etc. +#- +#- Nixy is a simple script that I use to manage my NixOS system. It's a simple script that provides a menu to rebuild, upgrade, update, collect garbage, clean boot menu, etc. #- #- - `nixy` - UI wizard to manage the system. #- - `nixy rebuild` - Rebuild the system. #- - `nixy ...` - ... see the script for more commands. -{ pkgs, config, inputs, ... }: -let - +{ + pkgs, + config, + ... +}: let configDirectory = config.var.configDirectory; hostname = config.var.hostname; - nixy = pkgs.writeShellScriptBin "nixy" + nixy = + pkgs.writeShellScriptBin "nixy" # bash '' function exec() { @@ -68,5 +71,4 @@ let echo "Unknown argument" fi ''; - -in { home.packages = [ nixy ]; } +in {home.packages = [nixy];} diff --git a/home/scripts/notification/default.nix b/home/scripts/notification/default.nix index 3fc08cf..9b813ac 100644 --- a/home/scripts/notification/default.nix +++ b/home/scripts/notification/default.nix @@ -1,6 +1,12 @@ -{ pkgs, ... }: -let - notif = pkgs.writeShellScriptBin "notif" # bash +# - ## Notif +#- +# This file provides a script to send custom notifications using `notify-send`. +#- +#- - `notif {id} {title} {description}` - Sends a notification +{pkgs, ...}: let + notif = + pkgs.writeShellScriptBin "notif" # bash + '' # Shell script to send custom notifications # Usage: notif "sender_id" "message" ["description"] @@ -22,5 +28,4 @@ let "$description" \ > "$NOTIF_FOLDER/$sender_id" ''; - -in { home.packages = [ pkgs.libnotify notif ]; } +in {home.packages = [pkgs.libnotify notif];} diff --git a/home/scripts/openvpn/default.nix b/home/scripts/openvpn/default.nix deleted file mode 100644 index 5e75740..0000000 --- a/home/scripts/openvpn/default.nix +++ /dev/null @@ -1,37 +0,0 @@ -# - ## OpenVPN -#- -#- OpenVPN allows you to connect/disconnect quickly to a openVPN server -#- -#- - `openvpn-up` turn on the vpn -#- - `openvpn-down` turn down the vpn -#- - `openvpn-toggle` toggle the vpn -{ pkgs, ... }: -let - id = "home"; # ID of the connection - password-file = "/home/hadi/.config/vpn-password"; - - openvpn-up = pkgs.writeShellScriptBin "openvpn-up" - # bash - '' - nmcli con up id ${id} passwd-file ${password-file} - notif "VPN" "VPN activated" "The OpenVPN connection to ${id} has been activated" - ''; - - openvpn-down = pkgs.writeShellScriptBin "openvpn-down" - # bash - '' - nmcli con down id ${id} - notif "VPN" "VPN deactivated" "The OpenVPN connection to ${id} has been deactivated" - ''; - - openvpn-toggle = pkgs.writeShellScriptBin "openvpn-toggle" - # bash - '' - if nmcli connection show --active | grep -q "${id}"; then - openvpn-down - else - openvpn-up - fi - ''; - -in { home.packages = [ openvpn-up openvpn-down openvpn-toggle ]; } diff --git a/home/scripts/screenshot/default.nix b/home/scripts/screenshot/default.nix index afdd8ca..8a7bac3 100644 --- a/home/scripts/screenshot/default.nix +++ b/home/scripts/screenshot/default.nix @@ -3,8 +3,7 @@ #- This module provides a script to take screenshots using `grimblast` and `swappy`. #- #- - `screenshot [region|window|monitor] [swappy]` - Take a screenshot of the region, window, or monitor. Optionally, use `swappy` to copy the screenshot to the clipboard. -{ pkgs, ... }: -let +{pkgs, ...}: let screenshot = pkgs.writeShellScriptBin "screenshot" '' if [[ $2 == "swappy" ]];then folder="/tmp" @@ -29,6 +28,5 @@ let fi ''; in { - home.packages = - [ pkgs.hyprshot screenshot pkgs.slurp pkgs.grim pkgs.grimblast ]; + home.packages = [pkgs.hyprshot screenshot pkgs.slurp pkgs.grim pkgs.grimblast]; } diff --git a/home/scripts/sounds/default.nix b/home/scripts/sounds/default.nix index c3ca7d0..3d8ef1c 100644 --- a/home/scripts/sounds/default.nix +++ b/home/scripts/sounds/default.nix @@ -6,9 +6,7 @@ #- - `sound-down` decreases the volume by 5%. #- - `sound-set [value]` sets the volume to the given value. #- - `sound-toggle` toggles the mute state of the default audio sink. -{ pkgs, ... }: - -let +{pkgs, ...}: let increments = "5"; sound-change = pkgs.writeShellScriptBin "sound-change" '' @@ -34,5 +32,5 @@ let sound-change mute ''; in { - home.packages = [ sound-change sound-up sound-down sound-toggle sound-set ]; + home.packages = [sound-change sound-up sound-down sound-toggle sound-set]; } diff --git a/home/scripts/system/default.nix b/home/scripts/system/default.nix index cee7e0f..0acf058 100644 --- a/home/scripts/system/default.nix +++ b/home/scripts/system/default.nix @@ -1,15 +1,14 @@ # - ## System -#- +#- #- Usefull quick scripts #- #- - `menu` - Open wofi with drun mode. (wofi) #- - `powermenu` - Open power dropdown menu. (wofi) #- - `quickmenu` - Open a dropdown menu with shortcuts and scripts. (wofi) #- - `lock` - Lock the screen. (hyprlock) -{ pkgs, ... }: - -let - menu = pkgs.writeShellScriptBin "menu" +{pkgs, ...}: let + menu = + pkgs.writeShellScriptBin "menu" # bash '' if pgrep wofi; then @@ -29,7 +28,8 @@ let fi ''; - powermenu = pkgs.writeShellScriptBin "powermenu" + powermenu = + pkgs.writeShellScriptBin "powermenu" # bash '' if pgrep wofi; then @@ -69,7 +69,8 @@ let fi ''; - quickmenu = pkgs.writeShellScriptBin "quickmenu" + quickmenu = + pkgs.writeShellScriptBin "quickmenu" # bash '' if pgrep wofi; then @@ -109,10 +110,10 @@ let fi ''; - lock = pkgs.writeShellScriptBin "lock" + lock = + pkgs.writeShellScriptBin "lock" # bash '' ${pkgs.hyprlock}/bin/hyprlock ''; - -in { home.packages = [ menu powermenu lock quickmenu ]; } +in {home.packages = [menu powermenu lock quickmenu];} diff --git a/home/system/clipman/default.nix b/home/system/clipman/default.nix index bbbb5a1..6f57902 100644 --- a/home/system/clipman/default.nix +++ b/home/system/clipman/default.nix @@ -1,6 +1,5 @@ # Clipman allows you to save and retrieve clipboard history. -{ pkgs, ... }: -let +{pkgs, ...}: let clipboard-clear = pkgs.writeShellScriptBin "clipboard-clear" '' clipman clear --all ''; @@ -8,10 +7,8 @@ let clipboard = pkgs.writeShellScriptBin "clipboard" '' clipman pick --tool=wofi ''; - in { - wayland.windowManager.hyprland.settings.exec-once = - [ "${clipboard-clear}" "wl-paste -t text --watch clipman store" ]; - home.packages = with pkgs; [ clipman clipboard clipboard-clear ]; + wayland.windowManager.hyprland.settings.exec-once = ["${clipboard-clear}" "wl-paste -t text --watch clipman store"]; + home.packages = with pkgs; [clipman clipboard clipboard-clear]; services.clipman.enable = true; } diff --git a/home/system/hypridle/default.nix b/home/system/hypridle/default.nix index 917649e..63089b3 100644 --- a/home/system/hypridle/default.nix +++ b/home/system/hypridle/default.nix @@ -1,9 +1,12 @@ # Hypridle is a daemon that listens for user activity and runs commands when the user is idle. -{ pkgs, lib, ... }: { +{ + pkgs, + lib, + ... +}: { services.hypridle = { enable = true; settings = { - general = { ignore_dbus_inhibit = false; lock_cmd = "pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock"; diff --git a/home/system/hyprland/animations.nix b/home/system/hyprland/animations.nix index 298482b..a0a3952 100644 --- a/home/system/hyprland/animations.nix +++ b/home/system/hyprland/animations.nix @@ -1,19 +1,18 @@ -{ config, ... }: -let +{config, ...}: let animationSpeed = config.theme.animation-speed; - animationDuration = if animationSpeed == "slow" then - "4" - else if animationSpeed == "medium" then - "2.5" - else - "1.5"; - borderDuration = if animationSpeed == "slow" then - "10" - else if animationSpeed == "medium" then - "6" - else - "3"; + animationDuration = + if animationSpeed == "slow" + then "4" + else if animationSpeed == "medium" + then "2.5" + else "1.5"; + borderDuration = + if animationSpeed == "slow" + then "10" + else if animationSpeed == "medium" + then "6" + else "3"; in { wayland.windowManager.hyprland.settings = { animations = { diff --git a/home/system/hyprland/bindings.nix b/home/system/hyprland/bindings.nix index 461bcf0..f1fda27 100644 --- a/home/system/hyprland/bindings.nix +++ b/home/system/hyprland/bindings.nix @@ -1,45 +1,48 @@ -{ pkgs, ... }: { +{pkgs, ...}: { wayland.windowManager.hyprland.settings = { - bind = [ - "$mod,RETURN, exec, uwsm app -- ${pkgs.kitty}/bin/kitty" # Kitty - "$mod,E, exec, uwsm app -- ${pkgs.xfce.thunar}/bin/thunar" # Thunar - "$mod,B, exec, uwsm app -- zen-beta" # Zen Browser - "$mod,K, exec, uwsm app -- ${pkgs.bitwarden}/bin/bitwarden" # Bitwarden - "$mod,L, exec, uwsm app -- ${pkgs.hyprlock}/bin/hyprlock" # Lock - "$mod,X, exec, powermenu" # Powermenu - "$mod,SPACE, exec, menu" # Launcher - "$mod,C, exec, quickmenu" # Quickmenu - "$shiftMod,SPACE, exec, hyprfocus-toggle" # Toggle HyprFocus - # "$mod,P, exec, uwsm app -- ${pkgs.planify}/bin/io.github.alainm23.planify" # Planify + bind = + [ + "$mod,RETURN, exec, uwsm app -- ${pkgs.kitty}/bin/kitty" # Kitty + "$mod,E, exec, uwsm app -- ${pkgs.xfce.thunar}/bin/thunar" # Thunar + "$mod,B, exec, uwsm app -- zen-beta" # Zen Browser + "$mod,K, exec, uwsm app -- ${pkgs.bitwarden}/bin/bitwarden" # Bitwarden + "$mod,L, exec, uwsm app -- ${pkgs.hyprlock}/bin/hyprlock" # Lock + "$mod,X, exec, powermenu" # Powermenu + "$mod,SPACE, exec, menu" # Launcher + "$mod,C, exec, quickmenu" # Quickmenu + "$shiftMod,SPACE, exec, hyprfocus-toggle" # Toggle HyprFocus + # "$mod,P, exec, uwsm app -- ${pkgs.planify}/bin/io.github.alainm23.planify" # Planify - "$mod,Q, killactive," # Close window - "$mod,T, togglefloating," # Toggle Floating - "$mod,F, fullscreen" # Toggle Fullscreen - "$mod,left, movefocus, l" # Move focus left - "$mod,right, movefocus, r" # Move focus Right - "$mod,up, movefocus, u" # Move focus Up - "$mod,down, movefocus, d" # Move focus Down - "$shiftMod,up, focusmonitor, -1" # Focus previous monitor - "$shiftMod,down, focusmonitor, 1" # Focus next monitor - "$shiftMod,left, layoutmsg, addmaster" # Add to master - "$shiftMod,right, layoutmsg, removemaster" # Remove from master + "$mod,Q, killactive," # Close window + "$mod,T, togglefloating," # Toggle Floating + "$mod,F, fullscreen" # Toggle Fullscreen + "$mod,left, movefocus, l" # Move focus left + "$mod,right, movefocus, r" # Move focus Right + "$mod,up, movefocus, u" # Move focus Up + "$mod,down, movefocus, d" # Move focus Down + "$shiftMod,up, focusmonitor, -1" # Focus previous monitor + "$shiftMod,down, focusmonitor, 1" # Focus next monitor + "$shiftMod,left, layoutmsg, addmaster" # Add to master + "$shiftMod,right, layoutmsg, removemaster" # Remove from master - "$mod,PRINT, exec, screenshot region" # Screenshot region - ",PRINT, exec, screenshot monitor" # Screenshot monitor - "$shiftMod,PRINT, exec, screenshot window" # Screenshot window - "ALT,PRINT, exec, screenshot region swappy" # Screenshot region then edit + "$mod,PRINT, exec, screenshot region" # Screenshot region + ",PRINT, exec, screenshot monitor" # Screenshot monitor + "$shiftMod,PRINT, exec, screenshot window" # Screenshot window + "ALT,PRINT, exec, screenshot region swappy" # Screenshot region then edit - "$shiftMod,T, exec, hyprpanel-toggle" # Toggle hyprpanel - "$shiftMod,C, exec, clipboard" # Clipboard picker with wofi - "$shiftMod,E, exec, ${pkgs.wofi-emoji}/bin/wofi-emoji" # Emoji picker with wofi - "$mod,F2, exec, night-shift" # Toggle night shift - "$mod,F3, exec, night-shift" # Toggle night shift - ] ++ (builtins.concatLists (builtins.genList (i: - let ws = i + 1; - in [ - "$mod,code:1${toString i}, workspace, ${toString ws}" - "$mod SHIFT,code:1${toString i}, movetoworkspace, ${toString ws}" - ]) 9)); + "$shiftMod,T, exec, hyprpanel-toggle" # Toggle hyprpanel + "$shiftMod,C, exec, clipboard" # Clipboard picker with wofi + "$shiftMod,E, exec, ${pkgs.wofi-emoji}/bin/wofi-emoji" # Emoji picker with wofi + "$mod,F2, exec, night-shift" # Toggle night shift + "$mod,F3, exec, night-shift" # Toggle night shift + ] + ++ (builtins.concatLists (builtins.genList (i: let + ws = i + 1; + in [ + "$mod,code:1${toString i}, workspace, ${toString ws}" + "$mod SHIFT,code:1${toString i}, movetoworkspace, ${toString ws}" + ]) + 9)); bindm = [ "$mod,mouse:272, movewindow" # Move Window (mouse) @@ -60,6 +63,5 @@ ",XF86MonBrightnessUp, exec, brightness-up" # Brightness Up ",XF86MonBrightnessDown, exec, brightness-down" # Brightness Down ]; - }; } diff --git a/home/system/hyprland/default.nix b/home/system/hyprland/default.nix index 327d80b..de9dbf7 100644 --- a/home/system/hyprland/default.nix +++ b/home/system/hyprland/default.nix @@ -1,6 +1,10 @@ -# So best window tiling manager -{ pkgs, config, inputs, lib, ... }: -let +# Hyprland is a dynamic tiling Wayland compositor that is highly customizable and performant. +{ + pkgs, + config, + lib, + ... +}: let border-size = config.theme.border-size; gaps-in = config.theme.gaps-in; gaps-out = config.theme.gaps-out; @@ -11,12 +15,11 @@ let keyboardLayout = config.var.keyboardLayout; background = "rgb(" + config.lib.stylix.colors.base00 + ")"; in { - imports = [ ./animations.nix ./bindings.nix ./polkitagent.nix - ./keyboard-backlight.nix # CHANGEME: This is for my laptop only + ./keyboard-backlight.nix # CHANGEME: This is for omen laptop only ./hyprspace.nix ]; @@ -122,7 +125,10 @@ in { render_power = 3; }; blur = { - enabled = if blur then "true" else "false"; + enabled = + if blur + then "true" + else "false"; size = 18; }; }; @@ -133,7 +139,7 @@ in { mfact = 0.5; }; - gestures = { workspace_swipe = true; }; + gestures = {workspace_swipe = true;}; misc = { vfr = true; @@ -178,7 +184,7 @@ in { "size 640 400, class:^(.*jetbrains.*)$, title:^(splash)$" ]; - layerrule = [ "noanim, launcher" "noanim, ^ags-.*" ]; + layerrule = ["noanim, launcher" "noanim, ^ags-.*"]; input = { kb_layout = keyboardLayout; @@ -195,7 +201,6 @@ in { clickfinger_behavior = true; }; }; - }; }; } diff --git a/home/system/hyprland/hyprspace.nix b/home/system/hyprland/hyprspace.nix index 3ca4866..a530a5e 100644 --- a/home/system/hyprland/hyprspace.nix +++ b/home/system/hyprland/hyprspace.nix @@ -1,7 +1,11 @@ # Hyprspace is a hyprland plugin that provides a workspaces overview (three-finger swipe up) and a workspace switcher (three-finger down). -{ inputs, pkgs, ... }: { +{ + inputs, + pkgs, + ... +}: { wayland.windowManager.hyprland = { - plugins = [ inputs.hyprspace.packages.${pkgs.system}.Hyprspace ]; + plugins = [inputs.hyprspace.packages.${pkgs.system}.Hyprspace]; settings = { plugin = { overview = { diff --git a/home/system/hyprland/keyboard-backlight.nix b/home/system/hyprland/keyboard-backlight.nix index c48ca83..0143cc7 100644 --- a/home/system/hyprland/keyboard-backlight.nix +++ b/home/system/hyprland/keyboard-backlight.nix @@ -1,6 +1,10 @@ # Turn the keyboard red/off when the battery is low -{ pkgs, config, ... }: -let +# Include this one only if you have a omen laptop with RGB keyboard +{ + pkgs, + config, + ... +}: let keyboard-backlight = pkgs.writeShellScriptBin "keyboard-backlight" '' function set_keyboard_backlight { local color=$1 @@ -31,4 +35,4 @@ let ''; command = "bash ${keyboard-backlight}/bin/keyboard-backlight &"; -in { wayland.windowManager.hyprland.settings.exec-once = [ command ]; } +in {wayland.windowManager.hyprland.settings.exec-once = [command];} diff --git a/home/system/hyprland/polkitagent.nix b/home/system/hyprland/polkitagent.nix index 5558cd3..221d359 100644 --- a/home/system/hyprland/polkitagent.nix +++ b/home/system/hyprland/polkitagent.nix @@ -1,7 +1,6 @@ # HyprPolkitAgent is a simple polkit agent for wayland compositors -{ pkgs, ... }: { - home.packages = with pkgs; [ hyprpolkitagent ]; +{pkgs, ...}: { + home.packages = with pkgs; [hyprpolkitagent]; - wayland.windowManager.hyprland.settings.exec-once = - [ "systemctl --user start hyprpolkitagent" ]; + wayland.windowManager.hyprland.settings.exec-once = ["systemctl --user start hyprpolkitagent"]; } diff --git a/home/system/hyprlock/default.nix b/home/system/hyprlock/default.nix index 80f1fab..63cdd34 100644 --- a/home/system/hyprlock/default.nix +++ b/home/system/hyprlock/default.nix @@ -1,6 +1,9 @@ # Hyprlock is a lockscreen for Hyprland -{ config, lib, ... }: -let +{ + config, + lib, + ... +}: let foreground = "rgba(${config.theme.textColorOnWallpaper}ee)"; font = config.stylix.fonts.serif.name; in { @@ -13,7 +16,6 @@ in { disable_loading_bar = false; }; - # BACKGROUND background = { monitor = ""; blur_passes = 0; diff --git a/home/system/hyprpaper/default.nix b/home/system/hyprpaper/default.nix index 5a2b355..decc13b 100644 --- a/home/system/hyprpaper/default.nix +++ b/home/system/hyprpaper/default.nix @@ -1,5 +1,5 @@ # Hyprpaper is used to set the wallpaper on the system -{ lib, ... }: { +{lib, ...}: { # The wallpaper is set by stylix services.hyprpaper = { enable = true; diff --git a/home/system/mime/default.nix b/home/system/mime/default.nix index c507bad..a99ece8 100644 --- a/home/system/mime/default.nix +++ b/home/system/mime/default.nix @@ -1,22 +1,22 @@ -{ pkgs, lib, ... }: -with lib; -let +# Mime type associations for the system. +{lib, ...}: +with lib; let defaultApps = { - browser = [ "zen-beta.desktop" ]; - text = [ "org.gnome.TextEditor.desktop" ]; - image = [ "imv-dir.desktop" ]; - audio = [ "mpv.desktop" ]; - video = [ "mpv.desktop" ]; - directory = [ "thunar.desktop" ]; - office = [ "libreoffice.desktop" ]; - pdf = [ "zathura.desktop" ]; - terminal = [ "kitty.desktop" ]; - discord = [ "discord.desktop" ]; - archive = [ "xarchiver.desktop" ]; + browser = ["zen-beta.desktop"]; + text = ["org.gnome.TextEditor.desktop"]; + image = ["imv-dir.desktop"]; + audio = ["mpv.desktop"]; + video = ["mpv.desktop"]; + directory = ["thunar.desktop"]; + office = ["libreoffice.desktop"]; + pdf = ["zathura.desktop"]; + terminal = ["kitty.desktop"]; + discord = ["discord.desktop"]; + archive = ["xarchiver.desktop"]; }; mimeMap = { - text = [ "text/plain" ]; + text = ["text/plain"]; image = [ "image/bmp" "image/gif" @@ -47,7 +47,7 @@ let "video/x-matroska" "video/x-msvideo" ]; - directory = [ "inode/directory" ]; + directory = ["inode/directory"]; browser = [ "text/html" "x-scheme-handler/about" @@ -67,15 +67,15 @@ let "application/vnd.ms-powerpoint" "application/rtf" ]; - pdf = [ "application/pdf" ]; - terminal = [ "terminal" ]; + pdf = ["application/pdf"]; + terminal = ["terminal"]; archive = [ "application/zip" "application/rar" "application/7z" "application/*tar" ]; - discord = [ "x-scheme-handler/discord" ]; + discord = ["x-scheme-handler/discord"]; }; associations = with lists; diff --git a/home/system/wofi/default.nix b/home/system/wofi/default.nix index dcc3ac3..341e1cd 100644 --- a/home/system/wofi/default.nix +++ b/home/system/wofi/default.nix @@ -1,6 +1,10 @@ # Wofi is a launcher for Wayland, inspired by rofi. -{ config, pkgs, lib, ... }: -let +{ + config, + pkgs, + lib, + ... +}: let accent = "#${config.lib.stylix.colors.base0D}"; background = "#${config.lib.stylix.colors.base00}"; background-alt = "#${config.lib.stylix.colors.base01}"; @@ -9,8 +13,7 @@ let rounding = config.theme.rounding; font-size = config.stylix.fonts.sizes.popups; in { - - home.packages = with pkgs; [ wofi-emoji ]; + home.packages = with pkgs; [wofi-emoji]; programs.wofi = { enable = true; @@ -42,7 +45,8 @@ in { key_exit = "Escape"; }; - style = lib.mkForce + style = + lib.mkForce # css '' * { diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index d7e9789..a8d68fb 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -1,4 +1,4 @@ -{ config, ... }: { +{config, ...}: { imports = [ # Mostly system related configuration ../../nixos/nvidia.nix # CHANGEME: Remove this line if you don't have an Nvidia GPU diff --git a/hosts/laptop/hardware-configuration.nix b/hosts/laptop/hardware-configuration.nix index cfee274..6ad3726 100644 --- a/hosts/laptop/hardware-configuration.nix +++ b/hosts/laptop/hardware-configuration.nix @@ -1,30 +1,33 @@ # 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") - ]; + config, + lib, + modulesPath, + ... +}: { + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; - boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "uas" "usbhid" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-amd" ]; - boot.extraModulePackages = [ ]; + boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "uas" "usbhid" "sd_mod"]; + boot.initrd.kernelModules = []; + boot.kernelModules = ["kvm-amd"]; + boot.extraModulePackages = []; - fileSystems."/" = - { device = "/dev/disk/by-uuid/6320d3c6-0231-45ec-817a-c6f0e39aab73"; - fsType = "ext4"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/6320d3c6-0231-45ec-817a-c6f0e39aab73"; + fsType = "ext4"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/5251-9B85"; - fsType = "vfat"; - options = [ "fmask=0077" "dmask=0077" ]; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/5251-9B85"; + fsType = "vfat"; + options = ["fmask=0077" "dmask=0077"]; + }; - swapDevices = [ ]; + swapDevices = []; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index c757697..d4c0fda 100644 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -22,7 +22,6 @@ ../../home/programs/duckduckgo-colorscheme ../../home/programs/discord ../../home/programs/tailscale - ../../home/programs/anyrun # Scripts ../../home/scripts # All scripts @@ -52,15 +51,14 @@ vlc # Video player blanket # White-noise app obsidian # Note taking app - # planify # Todolists + planify # Todolists gnome-calendar # Calendar textpieces # Manipulate texts curtail # Compress images - resources - gnome-clocks - gnome-text-editor + resources # Ressource monitor + gnome-clocks # Clocks app + gnome-text-editor # Basic graphic text editor mpv # Video player - figma-linux # Dev go