Nix Flakes configuration for MacOS, NixOS and WSL
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: add gaming feature

cosmeak a285adf4 5a77ef11

+179 -36
+148 -27
flake.lock
··· 1 1 { 2 2 "nodes": { 3 + "cachyos-kernel": { 4 + "flake": false, 5 + "locked": { 6 + "lastModified": 1773036026, 7 + "narHash": "sha256-hRDSqn5jL0cq4aYTcAS61Jsw2DEqxHkAb01Cyu7jIDc=", 8 + "owner": "CachyOS", 9 + "repo": "linux-cachyos", 10 + "rev": "dd72b90988e22422548f65e1ec8e2b52c8c7e35f", 11 + "type": "github" 12 + }, 13 + "original": { 14 + "owner": "CachyOS", 15 + "repo": "linux-cachyos", 16 + "type": "github" 17 + } 18 + }, 19 + "cachyos-kernel-patches": { 20 + "flake": false, 21 + "locked": { 22 + "lastModified": 1773035489, 23 + "narHash": "sha256-qsniqHnVIZdhGO6tYyugtWpOtdYofnUcpJAj6YAAvM4=", 24 + "owner": "CachyOS", 25 + "repo": "kernel-patches", 26 + "rev": "d60f37176775b87d3300b333b39ae974adbda381", 27 + "type": "github" 28 + }, 29 + "original": { 30 + "owner": "CachyOS", 31 + "repo": "kernel-patches", 32 + "type": "github" 33 + } 34 + }, 3 35 "darwin": { 4 36 "inputs": { 5 37 "nixpkgs": [ ··· 24 56 "flake-compat": { 25 57 "flake": false, 26 58 "locked": { 59 + "lastModified": 1767039857, 60 + "narHash": "sha256-vNpUSpF5Nuw8xvDLj2KCwwksIbjua2LZCqhV1LNRDns=", 61 + "owner": "NixOS", 62 + "repo": "flake-compat", 63 + "rev": "5edf11c44bc78a0d334f6334cdaf7d60d732daab", 64 + "type": "github" 65 + }, 66 + "original": { 67 + "owner": "NixOS", 68 + "repo": "flake-compat", 69 + "type": "github" 70 + } 71 + }, 72 + "flake-compat_2": { 73 + "flake": false, 74 + "locked": { 27 75 "lastModified": 1747046372, 28 76 "narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=", 29 77 "owner": "edolstra", ··· 40 88 "flake-parts": { 41 89 "inputs": { 42 90 "nixpkgs-lib": "nixpkgs-lib" 91 + }, 92 + "locked": { 93 + "lastModified": 1772408722, 94 + "narHash": "sha256-rHuJtdcOjK7rAHpHphUb1iCvgkU3GpfvicLMwwnfMT0=", 95 + "owner": "hercules-ci", 96 + "repo": "flake-parts", 97 + "rev": "f20dc5d9b8027381c474144ecabc9034d6a839a3", 98 + "type": "github" 99 + }, 100 + "original": { 101 + "owner": "hercules-ci", 102 + "repo": "flake-parts", 103 + "type": "github" 104 + } 105 + }, 106 + "flake-parts_2": { 107 + "inputs": { 108 + "nixpkgs-lib": "nixpkgs-lib_2" 43 109 }, 44 110 "locked": { 45 111 "lastModified": 1772408722, ··· 64 130 "smfh": "smfh" 65 131 }, 66 132 "locked": { 67 - "lastModified": 1771212460, 68 - "narHash": "sha256-1RfmXbDIxgwP2/SrYSYd9zdArUaJEm6C3FXpdRlmeso=", 133 + "lastModified": 1773176535, 134 + "narHash": "sha256-SxJl+VllncXrqOv045TulgPHZSEiow7ItsA7GLcJq48=", 69 135 "owner": "feel-co", 70 136 "repo": "hjem", 71 - "rev": "7f2880d705edf541955d98f56cb78f9507384423", 137 + "rev": "0290776d1418a475b785c1eacc91f655d11f331b", 72 138 "type": "github" 73 139 }, 74 140 "original": { ··· 77 143 "type": "github" 78 144 } 79 145 }, 146 + "nix-cachyos-kernel": { 147 + "inputs": { 148 + "cachyos-kernel": "cachyos-kernel", 149 + "cachyos-kernel-patches": "cachyos-kernel-patches", 150 + "flake-compat": "flake-compat", 151 + "flake-parts": "flake-parts_2", 152 + "nixpkgs": "nixpkgs" 153 + }, 154 + "locked": { 155 + "lastModified": 1773166308, 156 + "narHash": "sha256-fkJEQ1rbt/lqsA0+D3+LWtCok9Ofsz8dKDCnbt1MvOs=", 157 + "owner": "xddxdd", 158 + "repo": "nix-cachyos-kernel", 159 + "rev": "2396c36f247f4c1e08f3ffd953b7b958d044e224", 160 + "type": "github" 161 + }, 162 + "original": { 163 + "owner": "xddxdd", 164 + "ref": "release", 165 + "repo": "nix-cachyos-kernel", 166 + "type": "github" 167 + } 168 + }, 80 169 "nix-darwin": { 81 170 "inputs": { 82 171 "nixpkgs": [ ··· 100 189 }, 101 190 "nix-minecraft": { 102 191 "inputs": { 103 - "flake-compat": "flake-compat", 104 - "nixpkgs": "nixpkgs", 192 + "flake-compat": "flake-compat_2", 193 + "nixpkgs": "nixpkgs_2", 105 194 "systems": "systems_2" 106 195 }, 107 196 "locked": { 108 - "lastModified": 1772592046, 109 - "narHash": "sha256-+Lyl+mGVd0t2nlR6ODK/gvUHzMtF5qLlbTK+x5tCenU=", 197 + "lastModified": 1773196765, 198 + "narHash": "sha256-GvveRb/AiCb/dKXculKiNiAMW4CXMPwpeyi6c/S/a7o=", 110 199 "owner": "Infinidoge", 111 200 "repo": "nix-minecraft", 112 - "rev": "483abf9ad6aeac1d61f2a5419ded2879f0c4795e", 201 + "rev": "4d744dff3d8e0d9e7f85e06244ad353bdcf424ff", 113 202 "type": "github" 114 203 }, 115 204 "original": { ··· 120 209 }, 121 210 "nixos-hardware": { 122 211 "locked": { 123 - "lastModified": 1771969195, 124 - "narHash": "sha256-qwcDBtrRvJbrrnv1lf/pREQi8t2hWZxVAyeMo7/E9sw=", 212 + "lastModified": 1772972630, 213 + "narHash": "sha256-mUJxsNOrBMNOUJzN0pfdVJ1r2pxeqm9gI/yIKXzVVbk=", 125 214 "owner": "NixOS", 126 215 "repo": "nixos-hardware", 127 - "rev": "41c6b421bdc301b2624486e11905c9af7b8ec68e", 216 + "rev": "3966ce987e1a9a164205ac8259a5fe8a64528f72", 128 217 "type": "github" 129 218 }, 130 219 "original": { ··· 136 225 }, 137 226 "nixpkgs": { 138 227 "locked": { 139 - "lastModified": 1769461804, 140 - "narHash": "sha256-msG8SU5WsBUfVVa/9RPLaymvi5bI8edTavbIq3vRlhI=", 141 - "owner": "nixos", 228 + "lastModified": 1773148319, 229 + "narHash": "sha256-Yr9ej3uSDycQZHWB5HslVgryLkdSBN2fODAqURv/1wQ=", 230 + "owner": "NixOS", 142 231 "repo": "nixpkgs", 143 - "rev": "bfc1b8a4574108ceef22f02bafcf6611380c100d", 232 + "rev": "8da79c289ee165139257335eab0733d98c4ad458", 144 233 "type": "github" 145 234 }, 146 235 "original": { 147 - "owner": "nixos", 148 - "ref": "nixos-unstable", 236 + "owner": "NixOS", 237 + "ref": "nixos-unstable-small", 149 238 "repo": "nixpkgs", 150 239 "type": "github" 151 240 } 152 241 }, 153 242 "nixpkgs-darwin": { 154 243 "locked": { 155 - "lastModified": 1772598333, 156 - "narHash": "sha256-YaHht/C35INEX3DeJQNWjNaTcPjYmBwwjFJ2jdtr+5U=", 244 + "lastModified": 1773050225, 245 + "narHash": "sha256-P2iGJwvzj031ZJA7cgbehYC+21fLJjkB7NG42VJ1CYw=", 157 246 "owner": "nixos", 158 247 "repo": "nixpkgs", 159 - "rev": "fabb8c9deee281e50b1065002c9828f2cf7b2239", 248 + "rev": "397b2b93739ce0944a5dd912894ec51c3b090d3d", 160 249 "type": "github" 161 250 }, 162 251 "original": { ··· 181 270 "type": "github" 182 271 } 183 272 }, 273 + "nixpkgs-lib_2": { 274 + "locked": { 275 + "lastModified": 1772328832, 276 + "narHash": "sha256-e+/T/pmEkLP6BHhYjx6GmwP5ivonQQn0bJdH9YrRB+Q=", 277 + "owner": "nix-community", 278 + "repo": "nixpkgs.lib", 279 + "rev": "c185c7a5e5dd8f9add5b2f8ebeff00888b070742", 280 + "type": "github" 281 + }, 282 + "original": { 283 + "owner": "nix-community", 284 + "repo": "nixpkgs.lib", 285 + "type": "github" 286 + } 287 + }, 184 288 "nixpkgs-unstable": { 185 289 "locked": { 186 - "lastModified": 1772674223, 187 - "narHash": "sha256-/suKbHSaSmuC9UY7G0VRQ3aO+QKqxAQPQ19wG7QNkF8=", 290 + "lastModified": 1773110118, 291 + "narHash": "sha256-mPAG8phMbCReKSiKAijjjd3v7uVcJOQ75gSjGJjt/Rk=", 188 292 "owner": "nixos", 189 293 "repo": "nixpkgs", 190 - "rev": "66d9241e3dc2296726dc522e62dbfe89c7b449f3", 294 + "rev": "e607cb5360ff1234862ac9f8839522becb853bb9", 191 295 "type": "github" 192 296 }, 193 297 "original": { ··· 199 303 }, 200 304 "nixpkgs_2": { 201 305 "locked": { 202 - "lastModified": 1772598333, 203 - "narHash": "sha256-YaHht/C35INEX3DeJQNWjNaTcPjYmBwwjFJ2jdtr+5U=", 306 + "lastModified": 1769461804, 307 + "narHash": "sha256-msG8SU5WsBUfVVa/9RPLaymvi5bI8edTavbIq3vRlhI=", 308 + "owner": "nixos", 309 + "repo": "nixpkgs", 310 + "rev": "bfc1b8a4574108ceef22f02bafcf6611380c100d", 311 + "type": "github" 312 + }, 313 + "original": { 314 + "owner": "nixos", 315 + "ref": "nixos-unstable", 316 + "repo": "nixpkgs", 317 + "type": "github" 318 + } 319 + }, 320 + "nixpkgs_3": { 321 + "locked": { 322 + "lastModified": 1773068389, 323 + "narHash": "sha256-vMrm7Pk2hjBRPnCSjhq1pH0bg350Z+pXhqZ9ICiqqCs=", 204 324 "owner": "nixos", 205 325 "repo": "nixpkgs", 206 - "rev": "fabb8c9deee281e50b1065002c9828f2cf7b2239", 326 + "rev": "44bae273f9f82d480273bab26f5c50de3724f52f", 207 327 "type": "github" 208 328 }, 209 329 "original": { ··· 218 338 "darwin": "darwin", 219 339 "flake-parts": "flake-parts", 220 340 "hjem": "hjem", 341 + "nix-cachyos-kernel": "nix-cachyos-kernel", 221 342 "nix-minecraft": "nix-minecraft", 222 343 "nixos-hardware": "nixos-hardware", 223 - "nixpkgs": "nixpkgs_2", 344 + "nixpkgs": "nixpkgs_3", 224 345 "nixpkgs-darwin": "nixpkgs-darwin", 225 346 "nixpkgs-unstable": "nixpkgs-unstable" 226 347 }
+3
flake.nix
··· 21 21 22 22 # Hardware specific 23 23 nixos-hardware.url = "github:NixOS/nixos-hardware/master"; 24 + 25 + # CachyOS kernel 26 + nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release"; 24 27 }; 25 28 26 29 outputs = inputs@{ flake-parts, ... }:
+24
modules/features/gaming.nix
··· 1 + { inputs, ... }: 2 + { 3 + flake.nixosModules.gaming = { pkgs, ... }: { 4 + # User CachyOS kernel patches specically mades for gaming 5 + nix.settings.substituters = [ "https://attic.xuyh0120.win/lantian" ]; 6 + nix.settings.trusted-public-keys = [ "lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc=" ]; 7 + nixpkgs.overlays = [ inputs.nix-cachyos-kernel.overlays.pinned ]; 8 + boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-latest; 9 + 10 + # Steam configuration 11 + hardware.graphics.enable32Bit = true; 12 + programs.steam = { 13 + enable = true; 14 + gamescopeSession.enable = true; 15 + }; 16 + 17 + # Additionnal packages 18 + environment.systemPackages = with pkgs; [ 19 + faugus-launcher # Alternative launcher for multiple games platform 20 + mangohud 21 + prismlauncher # Minecraft launcher 22 + ]; 23 + }; 24 + }
+3 -8
modules/hosts/loki/configuration.nix
··· 10 10 systemd-boot 11 11 audio 12 12 nvidia-gpu 13 - cinnamon-desktop 13 + budgie-desktop 14 14 cosmeak 15 15 screen-recording 16 - # (autoLogin "cosmeak") 16 + (autoLogin "cosmeak") 17 + gaming 17 18 ]; 18 19 19 20 nixpkgs.overlays = [ inputs.self.overlays.unstable ]; ··· 27 28 28 29 networking.networkmanager.enable = true; 29 30 services.printing.enable = false; 30 - 31 - # Steam 32 - programs.steam = { 33 - enable = true; 34 - gamescopeSession.enable = true; 35 - }; 36 31 37 32 networking.firewall = { 38 33 enable = true;
+1 -1
modules/hosts/nanna/configuration.nix
··· 10 10 cinnamon-desktop 11 11 auto-upgrade 12 12 juliette 13 + gaming 13 14 ]; 14 15 15 16 # Activate network configuration ··· 20 21 services.flatpak.enable = true; 21 22 22 23 # System wide programs and applications 23 - programs.steam.enable = true; 24 24 programs.firefox.enable = true; 25 25 environment.systemPackages = with pkgs; [ 26 26 git