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: made some cleaning

+52 -370
+14 -296
flake.lock
··· 7 7 ] 8 8 }, 9 9 "locked": { 10 - "lastModified": 1735218083, 11 - "narHash": "sha256-MoUAbmXz9TEr7zlKDRO56DBJHe30+7B5X7nhXm+Vpc8=", 10 + "lastModified": 1735478292, 11 + "narHash": "sha256-Ys9pSP9ch0SthhpbjnkCSJ9ZLfaNKnt/dcy7swjmS1A=", 12 12 "owner": "LnL7", 13 13 "repo": "nix-darwin", 14 - "rev": "bc03f7818771a75716966ce8c23110b715eff2aa", 14 + "rev": "71a3a075e3229a7518d76636bb762aef2bcb73ac", 15 15 "type": "github" 16 16 }, 17 17 "original": { ··· 20 20 "type": "github" 21 21 } 22 22 }, 23 - "flake-compat": { 24 - "flake": false, 25 - "locked": { 26 - "lastModified": 1696426674, 27 - "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", 28 - "owner": "edolstra", 29 - "repo": "flake-compat", 30 - "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", 31 - "type": "github" 32 - }, 33 - "original": { 34 - "owner": "edolstra", 35 - "repo": "flake-compat", 36 - "type": "github" 37 - } 38 - }, 39 - "flake-compat_2": { 40 - "flake": false, 41 - "locked": { 42 - "lastModified": 1733328505, 43 - "narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=", 44 - "owner": "edolstra", 45 - "repo": "flake-compat", 46 - "rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec", 47 - "type": "github" 48 - }, 49 - "original": { 50 - "owner": "edolstra", 51 - "repo": "flake-compat", 52 - "type": "github" 53 - } 54 - }, 55 - "flake-utils": { 56 - "inputs": { 57 - "systems": "systems" 58 - }, 59 - "locked": { 60 - "lastModified": 1705309234, 61 - "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", 62 - "owner": "numtide", 63 - "repo": "flake-utils", 64 - "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", 65 - "type": "github" 66 - }, 67 - "original": { 68 - "owner": "numtide", 69 - "repo": "flake-utils", 70 - "type": "github" 71 - } 72 - }, 73 - "flake-utils_2": { 74 - "inputs": { 75 - "systems": "systems_2" 76 - }, 77 - "locked": { 78 - "lastModified": 1731533236, 79 - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", 80 - "owner": "numtide", 81 - "repo": "flake-utils", 82 - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", 83 - "type": "github" 84 - }, 85 - "original": { 86 - "owner": "numtide", 87 - "repo": "flake-utils", 88 - "type": "github" 89 - } 90 - }, 91 - "flake-utils_3": { 92 - "inputs": { 93 - "systems": "systems_3" 94 - }, 95 - "locked": { 96 - "lastModified": 1731533236, 97 - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", 98 - "owner": "numtide", 99 - "repo": "flake-utils", 100 - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", 101 - "type": "github" 102 - }, 103 - "original": { 104 - "owner": "numtide", 105 - "repo": "flake-utils", 106 - "type": "github" 107 - } 108 - }, 109 - "ghostty": { 110 - "inputs": { 111 - "flake-compat": "flake-compat", 112 - "nixpkgs-stable": "nixpkgs-stable", 113 - "nixpkgs-unstable": "nixpkgs-unstable", 114 - "zig": "zig" 115 - }, 116 - "locked": { 117 - "lastModified": 1735362327, 118 - "narHash": "sha256-kD49xAUMCWU60IRKoJiyJTaEUum7rk45OYjZfwWr3Ck=", 119 - "owner": "ghostty-org", 120 - "repo": "ghostty", 121 - "rev": "6cbd69da7839260508466f9dfb2bc0c0fbb43991", 122 - "type": "github" 123 - }, 124 - "original": { 125 - "owner": "ghostty-org", 126 - "repo": "ghostty", 127 - "type": "github" 128 - } 129 - }, 130 23 "hardware": { 131 24 "locked": { 132 - "lastModified": 1734954597, 133 - "narHash": "sha256-QIhd8/0x30gEv8XEE1iAnrdMlKuQ0EzthfDR7Hwl+fk=", 25 + "lastModified": 1735388221, 26 + "narHash": "sha256-e5IOgjQf0SZcFCEV/gMGrsI0gCJyqOKShBQU0iiM3Kg=", 134 27 "owner": "NixOS", 135 28 "repo": "nixos-hardware", 136 - "rev": "def1d472c832d77885f174089b0d34854b007198", 29 + "rev": "7c674c6734f61157e321db595dbfcd8523e04e19", 137 30 "type": "github" 138 31 }, 139 32 "original": { ··· 164 57 "type": "github" 165 58 } 166 59 }, 167 - "microvm": { 168 - "inputs": { 169 - "flake-utils": "flake-utils_2", 170 - "nixpkgs": "nixpkgs", 171 - "spectrum": "spectrum" 172 - }, 173 - "locked": { 174 - "lastModified": 1735074045, 175 - "narHash": "sha256-CeYsC8J2dNiV2FCQOxK1oZ/jNpOF2io7aCEFHmfi95U=", 176 - "owner": "astro", 177 - "repo": "microvm.nix", 178 - "rev": "2ae08de8e8068b00193b9cfbc0acc9dfdda03181", 179 - "type": "github" 180 - }, 181 - "original": { 182 - "owner": "astro", 183 - "repo": "microvm.nix", 184 - "type": "github" 185 - } 186 - }, 187 60 "nixpkgs": { 188 61 "locked": { 189 - "lastModified": 0, 190 - "narHash": "sha256-GIMyMt1pkkoXdCq9un859bX6YQZ/iYtukb9R5luazLM=", 191 - "path": "/nix/store/b8l3ndracmly9kyylawrnk32lsrjfy3j-source", 192 - "type": "path" 193 - }, 194 - "original": { 195 - "id": "nixpkgs", 196 - "type": "indirect" 197 - } 198 - }, 199 - "nixpkgs-stable": { 200 - "locked": { 201 - "lastModified": 1733423277, 202 - "narHash": "sha256-TxabjxEgkNbCGFRHgM/b9yZWlBj60gUOUnRT/wbVQR8=", 203 - "owner": "nixos", 204 - "repo": "nixpkgs", 205 - "rev": "e36963a147267afc055f7cf65225958633e536bf", 206 - "type": "github" 207 - }, 208 - "original": { 209 - "owner": "nixos", 210 - "ref": "release-24.11", 211 - "repo": "nixpkgs", 212 - "type": "github" 213 - } 214 - }, 215 - "nixpkgs-unstable": { 216 - "locked": { 217 - "lastModified": 1733229606, 218 - "narHash": "sha256-FLYY5M0rpa5C2QAE3CKLYAM6TwbKicdRK6qNrSHlNrE=", 62 + "lastModified": 1735412871, 63 + "narHash": "sha256-Qoz0ow6jDGUIBHxduc7Y1cjYFS71tvEGJV5Src/mj98=", 219 64 "owner": "nixos", 220 65 "repo": "nixpkgs", 221 - "rev": "566e53c2ad750c84f6d31f9ccb9d00f823165550", 222 - "type": "github" 223 - }, 224 - "original": { 225 - "owner": "nixos", 226 - "ref": "nixpkgs-unstable", 227 - "repo": "nixpkgs", 228 - "type": "github" 229 - } 230 - }, 231 - "nixpkgs_2": { 232 - "locked": { 233 - "lastModified": 1735264675, 234 - "narHash": "sha256-MgdXpeX2GuJbtlBrH9EdsUeWl/yXEubyvxM1G+yO4Ak=", 235 - "owner": "nixos", 236 - "repo": "nixpkgs", 237 - "rev": "d49da4c08359e3c39c4e27c74ac7ac9b70085966", 66 + "rev": "9f94733f93e4fe6e82f516efae007096e4ab5a21", 238 67 "type": "github" 239 68 }, 240 69 "original": { ··· 247 76 "root": { 248 77 "inputs": { 249 78 "darwin": "darwin", 250 - "ghostty": "ghostty", 251 79 "hardware": "hardware", 252 80 "home-manager": "home-manager", 253 - "microvm": "microvm", 254 - "nixpkgs": "nixpkgs_2", 255 - "unstable": "unstable", 256 - "wsl": "wsl" 257 - } 258 - }, 259 - "spectrum": { 260 - "flake": false, 261 - "locked": { 262 - "lastModified": 1733308308, 263 - "narHash": "sha256-+RcbMAjSxV1wW5UpS9abIG1lFZC8bITPiFIKNnE7RLs=", 264 - "ref": "refs/heads/main", 265 - "rev": "80c9e9830d460c944c8f730065f18bb733bc7ee2", 266 - "revCount": 792, 267 - "type": "git", 268 - "url": "https://spectrum-os.org/git/spectrum" 269 - }, 270 - "original": { 271 - "type": "git", 272 - "url": "https://spectrum-os.org/git/spectrum" 273 - } 274 - }, 275 - "systems": { 276 - "locked": { 277 - "lastModified": 1681028828, 278 - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 279 - "owner": "nix-systems", 280 - "repo": "default", 281 - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 282 - "type": "github" 283 - }, 284 - "original": { 285 - "owner": "nix-systems", 286 - "repo": "default", 287 - "type": "github" 288 - } 289 - }, 290 - "systems_2": { 291 - "locked": { 292 - "lastModified": 1681028828, 293 - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 294 - "owner": "nix-systems", 295 - "repo": "default", 296 - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 297 - "type": "github" 298 - }, 299 - "original": { 300 - "owner": "nix-systems", 301 - "repo": "default", 302 - "type": "github" 303 - } 304 - }, 305 - "systems_3": { 306 - "locked": { 307 - "lastModified": 1681028828, 308 - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 309 - "owner": "nix-systems", 310 - "repo": "default", 311 - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 312 - "type": "github" 313 - }, 314 - "original": { 315 - "owner": "nix-systems", 316 - "repo": "default", 317 - "type": "github" 81 + "nixpkgs": "nixpkgs", 82 + "unstable": "unstable" 318 83 } 319 84 }, 320 85 "unstable": { 321 86 "locked": { 322 - "lastModified": 1735268880, 323 - "narHash": "sha256-7QEFnKkzD13SPxs+UFR5bUFN2fRw+GlL0am72ZjNre4=", 87 + "lastModified": 1735523292, 88 + "narHash": "sha256-opBsbR/nrGxiiF6XzlVluiHYb6yN/hEwv+lBWTy9xoM=", 324 89 "owner": "nixos", 325 90 "repo": "nixpkgs", 326 - "rev": "7cc0bff31a3a705d3ac4fdceb030a17239412210", 91 + "rev": "6d97d419e5a9b36e6293887a89a078cf85f5a61b", 327 92 "type": "github" 328 93 }, 329 94 "original": { 330 95 "owner": "nixos", 331 96 "ref": "nixpkgs-unstable", 332 97 "repo": "nixpkgs", 333 - "type": "github" 334 - } 335 - }, 336 - "wsl": { 337 - "inputs": { 338 - "flake-compat": "flake-compat_2", 339 - "flake-utils": "flake-utils_3", 340 - "nixpkgs": [ 341 - "nixpkgs" 342 - ] 343 - }, 344 - "locked": { 345 - "lastModified": 1733854371, 346 - "narHash": "sha256-K9qGHniYBbjqVcEiwXyiofj/IFf78L5F0/FCf+CKyr0=", 347 - "owner": "nix-community", 348 - "repo": "NixOS-WSL", 349 - "rev": "dee4425dcee3149475ead0cb6a616b8a028c5888", 350 - "type": "github" 351 - }, 352 - "original": { 353 - "owner": "nix-community", 354 - "repo": "NixOS-WSL", 355 - "type": "github" 356 - } 357 - }, 358 - "zig": { 359 - "inputs": { 360 - "flake-compat": [ 361 - "ghostty" 362 - ], 363 - "flake-utils": "flake-utils", 364 - "nixpkgs": [ 365 - "ghostty", 366 - "nixpkgs-stable" 367 - ] 368 - }, 369 - "locked": { 370 - "lastModified": 1717848532, 371 - "narHash": "sha256-d+xIUvSTreHl8pAmU1fnmkfDTGQYCn2Rb/zOwByxS2M=", 372 - "owner": "mitchellh", 373 - "repo": "zig-overlay", 374 - "rev": "02fc5cc555fc14fda40c42d7c3250efa43812b43", 375 - "type": "github" 376 - }, 377 - "original": { 378 - "owner": "mitchellh", 379 - "repo": "zig-overlay", 380 98 "type": "github" 381 99 } 382 100 }
+28 -30
flake.nix
··· 8 8 inputs.nixpkgs.follows= "nixpkgs"; 9 9 }; 10 10 11 - wsl = { 12 - url = "github:nix-community/NixOS-WSL"; 13 - inputs.nixpkgs.follows= "nixpkgs"; 14 - }; 11 + # wsl = { 12 + # url = "github:nix-community/NixOS-WSL"; 13 + # inputs.nixpkgs.follows= "nixpkgs"; 14 + # }; 15 15 16 16 home-manager = { 17 17 url = "github:nix-community/home-manager/release-24.11"; 18 18 inputs.nixpkgs.follows = "nixpkgs"; 19 19 }; 20 20 21 - microvm = { 22 - url = "github:astro/microvm.nix"; 23 - inputs.nixpkgs.url = "nixpkgs"; 24 - }; 21 + # microvm = { 22 + # url = "github:astro/microvm.nix"; 23 + # inputs.nixpkgs.url = "nixpkgs"; 24 + # }; 25 25 26 26 hardware.url = "github:NixOS/nixos-hardware/master"; 27 - 28 - ghostty.url = "github:ghostty-org/ghostty"; 29 27 }; 30 28 31 - outputs = { self, nixpkgs, darwin, wsl, home-manager, microvm, hardware, ... }@inputs: 29 + outputs = { self, nixpkgs, darwin, ... }@inputs: 32 30 { 33 31 overlays = import ./overlays { inherit inputs; }; 34 32 ··· 37 35 system = "x86_64-linux"; 38 36 specialArgs = { inherit inputs; }; 39 37 modules = [ 40 - home-manager.nixosModules.home-manager 38 + inputs.home-manager.nixosModules.home-manager 41 39 ./hosts/x86_64-linux/loki 42 40 { 43 41 nixpkgs.overlays = [ self.outputs.overlays.unstable-packages ]; ··· 45 43 ]; 46 44 }; 47 45 48 - vali = nixpkgs.lib.nixosSystem { 49 - system = "x86_64-linux"; 50 - specialArgs = { inherit inputs; }; 51 - modules = [ 52 - wsl.nixosModules.wsl 53 - home-manager.nixosModules.home-manager 54 - ./hosts/x86_64-linux/vali 55 - ]; 56 - }; 46 + # vali = nixpkgs.lib.nixosSystem { 47 + # system = "x86_64-linux"; 48 + # specialArgs = { inherit inputs; }; 49 + # modules = [ 50 + # inputs.wsl.nixosModules.wsl 51 + # inputs.home-manager.nixosModules.home-manager 52 + # ./hosts/x86_64-linux/vali 53 + # ]; 54 + # }; 57 55 58 56 nyx = nixpkgs.lib.nixosSystem { 59 57 specialArgs = { inherit inputs; }; 60 58 modules = [ 61 - home-manager.nixosModules.home-manager 59 + inputs.home-manager.nixosModules.home-manager 62 60 ./hosts/x86_64-linux/nyx 63 61 ]; 64 62 }; 65 63 66 64 # Raspberry Pi 3b+ 67 - narfi = nixpkgs.lib.nixosSystem { 68 - specialArgs = { inherit inputs; }; 69 - modules = [ 70 - microvm.nixosModules.host 71 - ./hosts/aarch64-linux/nyx 72 - ]; 73 - }; 65 + # narfi = nixpkgs.lib.nixosSystem { 66 + # specialArgs = { inherit inputs; }; 67 + # modules = [ 68 + # inputs.microvm.nixosModules.host 69 + # ./hosts/aarch64-linux/nyx 70 + # ]; 71 + # }; 74 72 }; 75 73 76 74 darwinConfigurations = { ··· 79 77 specialArgs = { inherit inputs; }; 80 78 modules = [ 81 79 ./hosts/aarch64-darwin/njord 82 - home-manager.darwinModules.home-manager 80 + inputs.home-manager.darwinModules.home-manager 83 81 ]; 84 82 }; 85 83 };
+3 -1
homes/x86_64-linux/loki/cosmeak/default.nix
··· 16 16 spotify 17 17 thunderbird 18 18 vscodium 19 - ] ++ [ inputs.ghostty.packages.x86_64-linux.default ]; 19 + bottles 20 + _1password-gui 21 + ]; 20 22 21 23 # You do not need to change this if you're reading this in the future. 22 24 # Don't ever change this after the first build. Don't ask questions.
+3 -3
hosts/x86_64-linux/loki/default.nix
··· 3 3 imports = [ ./hardware.nix ]; 4 4 5 5 # Desktop Environment 6 - services.xserver.enable = true; 7 - #services.xserver.desktopManager.budgie.enable = true; 8 - #services.xserver.displayManager.lightdm.enable = true; 9 6 services.xserver = { 7 + enable = true; 10 8 desktopManager = { 11 9 xterm.enable = false; 12 10 xfce.enable = true; 11 + # budgie.enable = true; 12 + # lightdm.enable = true; 13 13 }; 14 14 }; 15 15 services.displayManager.defaultSession = "xfce";
-39
hosts/x86_64-linux/loki/hardware.nix.bak
··· 1 - # Do not modify this file! It was generated by ‘nixos-generate-config’ 2 - # and may be overwritten by future invocations. Please make changes 3 - # to /etc/nixos/configuration.nix instead. 4 - { config, lib, pkgs, modulesPath, ... }: 5 - 6 - { 7 - imports = 8 - [ (modulesPath + "/installer/scan/not-detected.nix") 9 - ]; 10 - 11 - boot.initrd.availableKernelModules = [ "vmd" "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; 12 - boot.initrd.kernelModules = [ ]; 13 - boot.kernelModules = [ "kvm-intel" ]; 14 - boot.extraModulePackages = [ ]; 15 - 16 - fileSystems."/" = 17 - { device = "/dev/disk/by-uuid/478297d9-a57d-4793-bf55-95a5601ed062"; 18 - fsType = "ext4"; 19 - }; 20 - 21 - fileSystems."/boot" = 22 - { device = "/dev/disk/by-uuid/D77B-3D8D"; 23 - fsType = "vfat"; 24 - options = [ "fmask=0077" "dmask=0077" ]; 25 - }; 26 - 27 - swapDevices = [ ]; 28 - 29 - # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 30 - # (the default) this is the recommended approach. When using systemd-networkd it's 31 - # still possible to use this option, but it's recommended to use it in conjunction 32 - # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 33 - networking.useDHCP = lib.mkDefault true; 34 - # networking.interfaces.enp5s0.useDHCP = lib.mkDefault true; 35 - # networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true; 36 - 37 - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 38 - hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 39 - }
+3
justfile
··· 11 11 nix-store --optimize 12 12 nix-collect-garbage -d 13 13 sudo nix-collect-garbage -d 14 + 15 + nix-size: 16 + du -sh /nix/store
+1 -1
overlays/default.nix
··· 3 3 # The unstable nixpkgs set (declared in the flake inputs) will 4 4 # be accessible through `pkgs.unstable` 5 5 unstable-packages = final: prev: { 6 - unstable = import inputs.nixpkgs-unstable { 6 + unstable = import inputs.unstable { 7 7 inherit (final) system; 8 8 config.allowUnfree = true; 9 9 };