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(loki): switch to cachyos kernel

+182 -54
+162 -26
flake.lock
··· 1 1 { 2 2 "nodes": { 3 + "chaotic": { 4 + "inputs": { 5 + "flake-schemas": "flake-schemas", 6 + "home-manager": "home-manager", 7 + "jovian": "jovian", 8 + "nixpkgs": "nixpkgs" 9 + }, 10 + "locked": { 11 + "lastModified": 1731678403, 12 + "narHash": "sha256-kcsXMNjQQK3hgUBaH9JoyHyESRvDhFV7L0GqVha3C40=", 13 + "owner": "chaotic-cx", 14 + "repo": "nyx", 15 + "rev": "d9d59a2819215227199b5eeab06a7e5fb56681f7", 16 + "type": "github" 17 + }, 18 + "original": { 19 + "owner": "chaotic-cx", 20 + "ref": "nyxpkgs-unstable", 21 + "repo": "nyx", 22 + "type": "github" 23 + } 24 + }, 3 25 "darwin": { 4 26 "inputs": { 5 27 "nixpkgs": [ ··· 7 29 ] 8 30 }, 9 31 "locked": { 10 - "lastModified": 1731153869, 11 - "narHash": "sha256-3Ftf9oqOypcEyyrWJ0baVkRpvQqroK/SVBFLvU3nPuc=", 32 + "lastModified": 1731809072, 33 + "narHash": "sha256-pOsDJQR0imnFLfpvTmRpHcP0tflyxtP/QIzokrKSP8U=", 12 34 "owner": "LnL7", 13 35 "repo": "nix-darwin", 14 - "rev": "5c74ab862c8070cbf6400128a1b56abb213656da", 36 + "rev": "34588d57cfc41c6953c54c93b6b685cab3b548ee", 15 37 "type": "github" 16 38 }, 17 39 "original": { ··· 52 74 "type": "github" 53 75 } 54 76 }, 77 + "flake-schemas": { 78 + "locked": { 79 + "lastModified": 1721999734, 80 + "narHash": "sha256-G5CxYeJVm4lcEtaO87LKzOsVnWeTcHGKbKxNamNWgOw=", 81 + "rev": "0a5c42297d870156d9c57d8f99e476b738dcd982", 82 + "revCount": 75, 83 + "type": "tarball", 84 + "url": "https://api.flakehub.com/f/pinned/DeterminateSystems/flake-schemas/0.1.5/0190ef2f-61e0-794b-ba14-e82f225e55e6/source.tar.gz" 85 + }, 86 + "original": { 87 + "type": "tarball", 88 + "url": "https://flakehub.com/f/DeterminateSystems/flake-schemas/%3D0.1.5.tar.gz" 89 + } 90 + }, 55 91 "flake-utils": { 56 92 "inputs": { 57 93 "systems": "systems" ··· 110 146 "home-manager": { 111 147 "inputs": { 112 148 "nixpkgs": [ 149 + "chaotic", 113 150 "nixpkgs" 114 151 ] 115 152 }, 116 153 "locked": { 117 - "lastModified": 1726989464, 118 - "narHash": "sha256-Vl+WVTJwutXkimwGprnEtXc/s/s8sMuXzqXaspIGlwM=", 154 + "lastModified": 1731535640, 155 + "narHash": "sha256-2EckCJn4wxran/TsRiCOFcmVpep2m9EBKl99NBh2GnM=", 119 156 "owner": "nix-community", 120 157 "repo": "home-manager", 121 - "rev": "2f23fa308a7c067e52dfcc30a0758f47043ec176", 158 + "rev": "35b055009afd0107b69c286fca34d2ad98940d57", 122 159 "type": "github" 123 160 }, 124 161 "original": { 125 162 "owner": "nix-community", 126 - "ref": "release-24.05", 127 163 "repo": "home-manager", 128 164 "type": "github" 129 165 } 130 166 }, 167 + "home-manager_2": { 168 + "inputs": { 169 + "nixpkgs": [ 170 + "nixpkgs" 171 + ] 172 + }, 173 + "locked": { 174 + "lastModified": 1731832479, 175 + "narHash": "sha256-icDDuYwJ0avTMZTxe1qyU/Baht5JOqw4pb5mWpR+hT0=", 176 + "owner": "nix-community", 177 + "repo": "home-manager", 178 + "rev": "5056a1cf0ce7c2a08ab50713b6c4af77975f6111", 179 + "type": "github" 180 + }, 181 + "original": { 182 + "owner": "nix-community", 183 + "repo": "home-manager", 184 + "type": "github" 185 + } 186 + }, 187 + "jovian": { 188 + "inputs": { 189 + "nix-github-actions": "nix-github-actions", 190 + "nixpkgs": [ 191 + "chaotic", 192 + "nixpkgs" 193 + ] 194 + }, 195 + "locked": { 196 + "lastModified": 1731227601, 197 + "narHash": "sha256-aGUQ6W/Oxd9xjH9RQbnUtC61sTK2fWlKr+J7kavT/RQ=", 198 + "owner": "Jovian-Experiments", 199 + "repo": "Jovian-NixOS", 200 + "rev": "7691d0ac1deb6ac7482c5a22fe1a14a34ca608b0", 201 + "type": "github" 202 + }, 203 + "original": { 204 + "owner": "Jovian-Experiments", 205 + "repo": "Jovian-NixOS", 206 + "type": "github" 207 + } 208 + }, 209 + "nix-github-actions": { 210 + "inputs": { 211 + "nixpkgs": [ 212 + "chaotic", 213 + "jovian", 214 + "nixpkgs" 215 + ] 216 + }, 217 + "locked": { 218 + "lastModified": 1729697500, 219 + "narHash": "sha256-VFTWrbzDlZyFHHb1AlKRiD/qqCJIripXKiCSFS8fAOY=", 220 + "owner": "zhaofengli", 221 + "repo": "nix-github-actions", 222 + "rev": "e418aeb728b6aa5ca8c5c71974e7159c2df1d8cf", 223 + "type": "github" 224 + }, 225 + "original": { 226 + "owner": "zhaofengli", 227 + "ref": "matrix-name", 228 + "repo": "nix-github-actions", 229 + "type": "github" 230 + } 231 + }, 131 232 "nixos-wsl": { 132 233 "inputs": { 133 234 "flake-compat": "flake-compat", ··· 137 238 ] 138 239 }, 139 240 "locked": { 140 - "lastModified": 1730453870, 141 - "narHash": "sha256-d+kIgz4BvTXb7emjSFV3zjNydGmLUmuluQjdBb51R9o=", 241 + "lastModified": 1731682434, 242 + "narHash": "sha256-HnZFPB7akVIy0KuPq/tEkiB+Brt1qi0DUIDzR8z25qI=", 142 243 "owner": "nix-community", 143 244 "repo": "NixOS-WSL", 144 - "rev": "adb6bc4b661a43328752b4575be4968a4990c033", 245 + "rev": "a6b9cf0b7805e2c50829020a73e7bde683fd36dd", 145 246 "type": "github" 146 247 }, 147 248 "original": { ··· 152 253 }, 153 254 "nixpkgs": { 154 255 "locked": { 155 - "lastModified": 1730963269, 156 - "narHash": "sha256-rz30HrFYCHiWEBCKHMffHbMdWJ35hEkcRVU0h7ms3x0=", 256 + "lastModified": 1731319897, 257 + "narHash": "sha256-PbABj4tnbWFMfBp6OcUK5iGy1QY+/Z96ZcLpooIbuEI=", 258 + "owner": "NixOS", 259 + "repo": "nixpkgs", 260 + "rev": "dc460ec76cbff0e66e269457d7b728432263166c", 261 + "type": "github" 262 + }, 263 + "original": { 264 + "owner": "NixOS", 265 + "ref": "nixos-unstable", 266 + "repo": "nixpkgs", 267 + "type": "github" 268 + } 269 + }, 270 + "nixpkgs_2": { 271 + "locked": { 272 + "lastModified": 1731676054, 273 + "narHash": "sha256-OZiZ3m8SCMfh3B6bfGC/Bm4x3qc1m2SVEAlkV6iY7Yg=", 157 274 "owner": "nixos", 158 275 "repo": "nixpkgs", 159 - "rev": "83fb6c028368e465cd19bb127b86f971a5e41ebc", 276 + "rev": "5e4fbfb6b3de1aa2872b76d49fafc942626e2add", 160 277 "type": "github" 161 278 }, 162 279 "original": { 163 280 "owner": "nixos", 164 - "ref": "nixos-24.05", 281 + "ref": "nixos-unstable", 282 + "repo": "nixpkgs", 283 + "type": "github" 284 + } 285 + }, 286 + "nixpkgs_3": { 287 + "locked": { 288 + "lastModified": 1731319897, 289 + "narHash": "sha256-PbABj4tnbWFMfBp6OcUK5iGy1QY+/Z96ZcLpooIbuEI=", 290 + "owner": "NixOS", 291 + "repo": "nixpkgs", 292 + "rev": "dc460ec76cbff0e66e269457d7b728432263166c", 293 + "type": "github" 294 + }, 295 + "original": { 296 + "owner": "NixOS", 297 + "ref": "nixos-unstable", 165 298 "repo": "nixpkgs", 166 299 "type": "github" 167 300 } 168 301 }, 169 302 "root": { 170 303 "inputs": { 304 + "chaotic": "chaotic", 171 305 "darwin": "darwin", 172 - "home-manager": "home-manager", 306 + "home-manager": "home-manager_2", 173 307 "nixos-wsl": "nixos-wsl", 174 - "nixpkgs": "nixpkgs", 308 + "nixpkgs": "nixpkgs_2", 175 309 "snowfall-lib": "snowfall-lib", 176 - "unstable": "unstable" 310 + "zen-browser": "zen-browser" 177 311 } 178 312 }, 179 313 "snowfall-lib": { ··· 228 362 "type": "github" 229 363 } 230 364 }, 231 - "unstable": { 365 + "zen-browser": { 366 + "inputs": { 367 + "nixpkgs": "nixpkgs_3" 368 + }, 232 369 "locked": { 233 - "lastModified": 1730958623, 234 - "narHash": "sha256-JwQZIGSYnRNOgDDoIgqKITrPVil+RMWHsZH1eE1VGN0=", 235 - "owner": "nixos", 236 - "repo": "nixpkgs", 237 - "rev": "85f7e662eda4fa3a995556527c87b2524b691933", 370 + "lastModified": 1731689384, 371 + "narHash": "sha256-L1Aabt+k92BvxH1h/B6SwVwDtglPtQ0yBbSNm3wfUGw=", 372 + "owner": "0xc000022070", 373 + "repo": "zen-browser-flake", 374 + "rev": "9808c80cb90626f0b3f6a58b36892c44daaf24bd", 238 375 "type": "github" 239 376 }, 240 377 "original": { 241 - "owner": "nixos", 242 - "ref": "nixpkgs-unstable", 243 - "repo": "nixpkgs", 378 + "owner": "0xc000022070", 379 + "repo": "zen-browser-flake", 244 380 "type": "github" 245 381 } 246 382 }
+10 -5
flake.nix
··· 1 1 { 2 2 inputs = { 3 - nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; 4 - unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable"; 3 + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; 5 4 6 5 darwin = { 7 6 url = "github:LnL7/nix-darwin"; ··· 14 13 }; 15 14 16 15 home-manager = { 17 - url = "github:nix-community/home-manager/release-24.05"; 16 + url = "github:nix-community/home-manager"; 18 17 inputs.nixpkgs.follows = "nixpkgs"; 19 18 }; 20 19 ··· 24 23 url = "github:snowfallorg/lib"; 25 24 inputs.nixpkgs.follows = "nixpkgs"; 26 25 }; 26 + 27 + # Additionnal pkgs 28 + zen-browser.url = "github:0xc000022070/zen-browser-flake"; 29 + chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable"; 27 30 }; 28 31 outputs = inputs : inputs.snowfall-lib.mkFlake { 29 32 inherit inputs; ··· 33 36 snowfall.meta.description = "Domain of the Aesir"; 34 37 35 38 channels-config.allowUnfree = true; 39 + channels-config.allowBroken = true; 36 40 37 41 systems.modules.nixos = with inputs; [ 38 - # home-manager.nixosModules.home-manager 42 + home-manager.nixosModules.home-manager 43 + inputs.chaotic.nixosModules.default 39 44 ]; 40 45 41 46 systems.modules.darwin = with inputs; [ 42 - # home-manager.darwinModules.home-manager 47 + home-manager.darwinModules.home-manager 43 48 ]; 44 49 45 50 systems.hosts.vali.modules = with inputs; [
+3 -1
homes/x86_64-linux/cosmeak@loki/default.nix
··· 2 2 with lib; 3 3 with lib.${namespace}; 4 4 { 5 - home.packages = with pkgs; [ 5 + home.packages = with pkgs; with inputs; [ 6 6 brave 7 7 btop 8 8 # discord ··· 16 16 obs-studio 17 17 php83 18 18 php83Packages.composer 19 + prismlauncher 19 20 spotify 20 21 termius 21 22 thunderbird ··· 23 24 vesktop 24 25 vscode 25 26 zed-editor 27 + zen-browser.packages.${system}.specific 26 28 zip 27 29 ]; 28 30
+4 -4
modules/nixos/hardware/gpu/nvidia/default.nix
··· 11 11 12 12 config = mkIf cfg.enable { 13 13 # Enable OpenGL 14 - hardware.opengl = { 14 + hardware.graphics = { 15 15 enable = true; 16 - driSupport = true; 17 - driSupport32Bit = true; 16 + # driSupport = true; 17 + enable32Bit = true; 18 18 }; 19 19 20 20 services.xserver.videoDrivers = [ "nvidia" ]; 21 21 hardware.nvidia = { 22 - package = config.boot.kernelPackages.nvidiaPackages.production; # 550 Driver 22 + package = config.boot.kernelPackages.nvidiaPackages.stable; # 550 Driver 23 23 modesetting.enable = true; 24 24 powerManagement.enable = false; 25 25 powerManagement.finegrained = false;
-5
overlays/deno/default.nix
··· 1 - { channels, ... }: 2 - 3 - final: prev: { 4 - inherit (channels.unstable) deno; 5 - }
-5
overlays/modrinth-app/default.nix
··· 1 - { channels, ... }: 2 - 3 - final: prev: { 4 - inherit (channels.unstable) modrinth-app; 5 - }
-5
overlays/zed-editor/default.nix
··· 1 - { channels, ... }: 2 - 3 - final: prev: { 4 - inherit (channels.unstable) zed-editor; 5 - }
+3 -3
systems/x86_64-linux/loki/default.nix
··· 8 8 system = { 9 9 boot.efi.enable = true; 10 10 fonts.enable = true; 11 - 12 11 time.enable = true; 13 12 locale.enable = true; 14 - 15 13 xkb.enable = true; 16 - 17 14 shell.enable = true; 18 15 }; 19 16 ··· 29 26 steam.enable = true; 30 27 }; 31 28 }; 29 + 30 + boot.kernelPackages = pkgs.linuxPackages_cachyos; 31 + inputs.chaotic.scx.enable = true; # by default uses scx_rustland scheduler 32 32 33 33 # Enable automatic login for the user. 34 34 services.displayManager.autoLogin.enable = true;