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(nyx): update conf

cosmeak 8f20be8d a04e4190

+32 -121
+12 -11
README.md
··· 7 7 This repository follow the KISS principle at this moment, but feel free to propose improvement and to help me understand better how nix work. 8 8 9 9 > [!IMPORTANT] 10 - > This configuration is make for my purpose, you can take inspiration and some configuration but do not expect it to work on your side.🙂 10 + > This configuration is make for our purpose, you can take inspiration and some configuration but do not expect it to work on your side.🙂 11 11 > 12 - > Any damage caused by this configuration is not my responsibility. Use at your own risk. 12 + > Any damage caused by this configuration is not our responsibility. Use it at your own risks. 13 13 14 14 ## ✨️ - Features 15 15 ··· 18 18 - [ ] Nix BSD 19 19 - [ ] WSL 20 20 - [ ] Homelab with MicroVM 21 - - [x] Multi flavor for DE / WM 22 21 - [ ] Secrets management 23 22 - [x] Default on stable channel and have unstable as an overlay (take from [here](https://github.com/AlexNabokikh/nix-config)) 24 - - [ ] Dotfiles managing 23 + - [ ] Dotfiles management 25 24 - [ ] Custom live ISO 26 25 - [ ] Auto-updating flakes 27 26 - [ ] Encrypted disks ··· 58 57 . 59 58 ├── homes # User home configuration 60 59 │ ├── <user>@shared # Shared dotfiles between user configuration 61 - │ └── <user>@<host> # Personal folders for dotfiles 60 + │ └── <user>@<host> # Personal folders for dotfiles 62 61 ├── hosts # Host-specific configuration 63 - └── modules # macOS and nix-darwin, NixOS, and shared configuration 64 - ├── shared # Shared modules across all platforms 65 - ├── nixos # Nixos modules 66 - ├── darwin # MacOS modules 67 - └── bsd # FreeBSD modules 62 + ├── lib # Custom functions needed to help configure 63 + ├── modules # macOS and nix-darwin, NixOS, and shared configuration 64 + │ ├── shared # Shared modules across all platforms 65 + │ ├── nixos # Nixos modules 66 + │ ├── darwin # MacOS modules 67 + │ └── bsd # FreeBSD modules 68 + └── overlays # Helping overlays for building wanted packages 68 69 ``` 69 70 70 71 ## 💡 - Acknowledgments 71 72 72 73 These are the things that help me the most to understand Nix ecosystem and help me build my configuration from scratch. 73 74 74 - 📚️ - Learning 75 + ### 📚️ - Learning 75 76 76 77 - [Flakes book](https://nixos-and-flakes.thiscute.world/) 77 78 - [Nix Language](https://nix.dev/)
+13 -105
flake.lock
··· 7 7 ] 8 8 }, 9 9 "locked": { 10 - "lastModified": 1729382845, 11 - "narHash": "sha256-REiWck1zIOnZIgGmmOWfwvkQw1f4UrBsxxOSKVSAG4w=", 10 + "lastModified": 1729579044, 11 + "narHash": "sha256-0kEUVl5s8LHbK4/xEePflsdYVwG+RRFSIofSvITYmIU=", 12 12 "owner": "LnL7", 13 13 "repo": "nix-darwin", 14 - "rev": "a001f44cfc47164839eb61c6b1e7f4288813f7e8", 14 + "rev": "64d9d1ae25215c274c37e3e4016977a6779cf0d3", 15 15 "type": "github" 16 16 }, 17 17 "original": { ··· 20 20 "type": "github" 21 21 } 22 22 }, 23 - "flake-parts": { 24 - "inputs": { 25 - "nixpkgs-lib": "nixpkgs-lib" 26 - }, 27 - "locked": { 28 - "lastModified": 1727826117, 29 - "narHash": "sha256-K5ZLCyfO/Zj9mPFldf3iwS6oZStJcU4tSpiXTMYaaL0=", 30 - "owner": "hercules-ci", 31 - "repo": "flake-parts", 32 - "rev": "3d04084d54bedc3d6b8b736c70ef449225c361b1", 33 - "type": "github" 34 - }, 35 - "original": { 36 - "owner": "hercules-ci", 37 - "repo": "flake-parts", 38 - "type": "github" 39 - } 40 - }, 41 23 "home-manager": { 42 24 "inputs": { 43 25 "nixpkgs": [ ··· 59 41 "type": "github" 60 42 } 61 43 }, 62 - "nix-gaming": { 63 - "inputs": { 64 - "flake-parts": "flake-parts", 65 - "nixpkgs": "nixpkgs", 66 - "umu": "umu" 67 - }, 68 - "locked": { 69 - "lastModified": 1729301900, 70 - "narHash": "sha256-NZ0GGy0OMCVzEsdaqLnefGtXsUnjgoCI2pleIvAUvfI=", 71 - "owner": "fufexan", 72 - "repo": "nix-gaming", 73 - "rev": "5646c9455e9edf9ef59998fc79b82c5d5818ce77", 74 - "type": "github" 75 - }, 76 - "original": { 77 - "owner": "fufexan", 78 - "repo": "nix-gaming", 79 - "type": "github" 80 - } 81 - }, 82 44 "nixpkgs": { 83 45 "locked": { 84 - "lastModified": 1728538411, 85 - "narHash": "sha256-f0SBJz1eZ2yOuKUr5CA9BHULGXVSn6miBuUWdTyhUhU=", 86 - "owner": "NixOS", 87 - "repo": "nixpkgs", 88 - "rev": "b69de56fac8c2b6f8fd27f2eca01dcda8e0a4221", 89 - "type": "github" 90 - }, 91 - "original": { 92 - "owner": "NixOS", 93 - "ref": "nixpkgs-unstable", 94 - "repo": "nixpkgs", 95 - "type": "github" 96 - } 97 - }, 98 - "nixpkgs-lib": { 99 - "locked": { 100 - "lastModified": 1727825735, 101 - "narHash": "sha256-0xHYkMkeLVQAMa7gvkddbPqpxph+hDzdu1XdGPJR+Os=", 102 - "type": "tarball", 103 - "url": "https://github.com/NixOS/nixpkgs/archive/fb192fec7cc7a4c26d51779e9bab07ce6fa5597a.tar.gz" 104 - }, 105 - "original": { 106 - "type": "tarball", 107 - "url": "https://github.com/NixOS/nixpkgs/archive/fb192fec7cc7a4c26d51779e9bab07ce6fa5597a.tar.gz" 108 - } 109 - }, 110 - "nixpkgs-unstable": { 111 - "locked": { 112 - "lastModified": 1729265718, 113 - "narHash": "sha256-4HQI+6LsO3kpWTYuVGIzhJs1cetFcwT7quWCk/6rqeo=", 46 + "lastModified": 1729449015, 47 + "narHash": "sha256-Gf04dXB0n4q0A9G5nTGH3zuMGr6jtJppqdeljxua1fo=", 114 48 "owner": "nixos", 115 49 "repo": "nixpkgs", 116 - "rev": "ccc0c2126893dd20963580b6478d1a10a4512185", 50 + "rev": "89172919243df199fe237ba0f776c3e3e3d72367", 117 51 "type": "github" 118 52 }, 119 53 "original": { 120 54 "owner": "nixos", 121 - "ref": "nixpkgs-unstable", 55 + "ref": "nixos-24.05", 122 56 "repo": "nixpkgs", 123 57 "type": "github" 124 58 } 125 59 }, 126 - "nixpkgs_2": { 60 + "nixpkgs-unstable": { 127 61 "locked": { 128 - "lastModified": 1729181673, 129 - "narHash": "sha256-LDiPhQ3l+fBjRATNtnuDZsBS7hqoBtPkKBkhpoBHv3I=", 62 + "lastModified": 1729428082, 63 + "narHash": "sha256-xb4/Y+Y7ZlkQaA5rXnrXplDzdt2Jfgdmar3+qkb56UA=", 130 64 "owner": "nixos", 131 65 "repo": "nixpkgs", 132 - "rev": "4eb33fe664af7b41a4c446f87d20c9a0a6321fa3", 66 + "rev": "ca30f584e18024baf39c395001262ed936f27ebd", 133 67 "type": "github" 134 68 }, 135 69 "original": { 136 70 "owner": "nixos", 137 - "ref": "nixos-24.05", 71 + "ref": "nixpkgs-unstable", 138 72 "repo": "nixpkgs", 139 73 "type": "github" 140 74 } ··· 143 77 "inputs": { 144 78 "darwin": "darwin", 145 79 "home-manager": "home-manager", 146 - "nix-gaming": "nix-gaming", 147 - "nixpkgs": "nixpkgs_2", 80 + "nixpkgs": "nixpkgs", 148 81 "nixpkgs-unstable": "nixpkgs-unstable" 149 - } 150 - }, 151 - "umu": { 152 - "inputs": { 153 - "nixpkgs": [ 154 - "nix-gaming", 155 - "nixpkgs" 156 - ] 157 - }, 158 - "locked": { 159 - "dir": "packaging/nix", 160 - "lastModified": 1728772489, 161 - "narHash": "sha256-6sHjXNhPrRXIV1au5jlSXHeqn/QHb9wyRt7V0F5p4PA=", 162 - "ref": "refs/heads/main", 163 - "rev": "475e2b37e34a663b11f8c92b79dd45637a3e848c", 164 - "revCount": 770, 165 - "submodules": true, 166 - "type": "git", 167 - "url": "https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix" 168 - }, 169 - "original": { 170 - "dir": "packaging/nix", 171 - "submodules": true, 172 - "type": "git", 173 - "url": "https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix" 174 82 } 175 83 } 176 84 },
-2
flake.nix
··· 10 10 inputs.nixpkgs.follows= "nixpkgs"; 11 11 }; 12 12 13 - nix-gaming.url = "github:fufexan/nix-gaming"; 14 - 15 13 home-manager = { 16 14 url = "github:nix-community/home-manager/release-24.05"; 17 15 inputs.nixpkgs.follows = "nixpkgs";
+7 -3
hosts/nyx/configuration.nix
··· 75 75 brave 76 76 lutris 77 77 btop 78 - inputs.nix-gaming.packages.${pkgs.system}.rocket-league 78 + heroic 79 79 vesktop 80 80 unzip 81 81 zip 82 + lazygit 83 + unstable.unityhub 84 + blender 82 85 ]; 83 86 }; 84 87 ··· 91 94 92 95 # Allow unfree packages 93 96 nixpkgs.config.allowUnfree = true; 97 + nixpkgs.overlays = [ outputs.overlays.unstable-packages ]; 94 98 95 99 # List packages installed in system profile. To search, run: 96 100 # $ nix search wget 97 101 environment.systemPackages = with pkgs; [ 98 - git 102 + git 99 103 mangohud 100 104 protonup 101 105 wine ··· 129 133 system.stateVersion = "24.05"; # Did you read the comment? 130 134 131 135 nix.settings.experimental-features = [ "nix-command" "flakes" ]; 132 - } 136 + }