The configuration files for all my Nix systems
4

Configure Feed

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

refactor: use the lix nixos module on non-darwin systems

hanna (Jun 7, 2026, 1:24 PM EDT) a7c9ca87 48407d2b

+95 -12
+84
flake.lock
··· 142 142 "type": "github" 143 143 } 144 144 }, 145 + "flake-utils": { 146 + "inputs": { 147 + "systems": "systems_2" 148 + }, 149 + "locked": { 150 + "lastModified": 1731533236, 151 + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", 152 + "owner": "numtide", 153 + "repo": "flake-utils", 154 + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", 155 + "type": "github" 156 + }, 157 + "original": { 158 + "owner": "numtide", 159 + "repo": "flake-utils", 160 + "type": "github" 161 + } 162 + }, 163 + "flakey-profile": { 164 + "locked": { 165 + "lastModified": 1712898590, 166 + "narHash": "sha256-FhGIEU93VHAChKEXx905TSiPZKga69bWl1VB37FK//I=", 167 + "owner": "lf-", 168 + "repo": "flakey-profile", 169 + "rev": "243c903fd8eadc0f63d205665a92d4df91d42d9d", 170 + "type": "github" 171 + }, 172 + "original": { 173 + "owner": "lf-", 174 + "repo": "flakey-profile", 175 + "type": "github" 176 + } 177 + }, 145 178 "hjem": { 146 179 "inputs": { 147 180 "nix-darwin": [ ··· 166 199 "type": "github" 167 200 } 168 201 }, 202 + "lix": { 203 + "inputs": { 204 + "flake-utils": "flake-utils", 205 + "flakey-profile": "flakey-profile", 206 + "lix": "lix_2", 207 + "nixpkgs": [ 208 + "nixpkgs" 209 + ] 210 + }, 211 + "locked": { 212 + "lastModified": 1779730214, 213 + "narHash": "sha256-Ikdf593tWTFMkKhtScxE+t2fV+Myh8n4JeYU/0Xc8H8=", 214 + "rev": "727d859b6f5f3289ce49fe26146b3f006387d457", 215 + "type": "tarball", 216 + "url": "https://git.lix.systems/api/v1/repos/lix-project/nixos-module/archive/727d859b6f5f3289ce49fe26146b3f006387d457.tar.gz?rev=727d859b6f5f3289ce49fe26146b3f006387d457" 217 + }, 218 + "original": { 219 + "type": "tarball", 220 + "url": "https://git.lix.systems/lix-project/nixos-module/archive/main.tar.gz" 221 + } 222 + }, 223 + "lix_2": { 224 + "flake": false, 225 + "locked": { 226 + "lastModified": 1761937274, 227 + "narHash": "sha256-KlELhsSq3XbemrGyQhmGurFu7m8wOEBw+8M04L7hn7A=", 228 + "rev": "91867941fa73afea7869b7c71ede82e5ef8927da", 229 + "type": "tarball", 230 + "url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/91867941fa73afea7869b7c71ede82e5ef8927da.tar.gz?rev=91867941fa73afea7869b7c71ede82e5ef8927da" 231 + }, 232 + "original": { 233 + "type": "tarball", 234 + "url": "https://git.lix.systems/lix-project/lix/archive/main.tar.gz" 235 + } 236 + }, 169 237 "nixpkgs": { 170 238 "locked": { 171 239 "lastModified": 1780243769, ··· 203 271 "darwin": "darwin", 204 272 "flake-parts": "flake-parts", 205 273 "hjem": "hjem", 274 + "lix": "lix", 206 275 "nixpkgs": "nixpkgs", 207 276 "wsl": "wsl" 208 277 } 209 278 }, 210 279 "systems": { 280 + "locked": { 281 + "lastModified": 1681028828, 282 + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 283 + "owner": "nix-systems", 284 + "repo": "default", 285 + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 286 + "type": "github" 287 + }, 288 + "original": { 289 + "owner": "nix-systems", 290 + "repo": "default", 291 + "type": "github" 292 + } 293 + }, 294 + "systems_2": { 211 295 "locked": { 212 296 "lastModified": 1681028828, 213 297 "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+5
flake.nix
··· 3 3 nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; 4 4 flake-parts.url = "github:hercules-ci/flake-parts/main"; 5 5 6 + lix = { 7 + url = "https://git.lix.systems/lix-project/nixos-module/archive/main.tar.gz"; 8 + inputs.nixpkgs.follows = "nixpkgs"; 9 + }; 10 + 6 11 wsl = { 7 12 url = "github:nix-community/nixos-wsl/main"; 8 13 inputs.nixpkgs.follows = "nixpkgs";
+4 -11
hosts/mercury/system/nix.nix
··· 2 2 3 3 { 4 4 nix = { 5 - package = pkgs.lix; 6 - 7 - gc = { 8 - automatic = true; 9 - dates = "weekly"; 10 - }; 11 - 12 - optimise = { 13 - automatic = true; 14 - dates = "daily"; 15 - }; 5 + gc.automatic = true; 6 + gc.dates = "weekly"; 7 + optimise.automatic = true; 8 + optimise.dates = "daily"; 16 9 17 10 settings = { 18 11 cores = 0;
+2 -1
lib/mksystem.nix
··· 1 - { nixpkgs, darwin, hjem, wsl, ... }@inputs: 1 + { nixpkgs, darwin, hjem, wsl, lix, ... }@inputs: 2 2 3 3 name: 4 4 { ··· 25 25 hjemModule.default 26 26 ../hosts/${name}/default.nix 27 27 ../users/${user}/${if profile == "darwin" then "darwin" else "nixos"}.nix 28 + (nixpkgs.lib.optionalAttrs (profile != "darwin") lix.nixosModules.default) 28 29 (nixpkgs.lib.optionalAttrs (profile == "wsl") wsl.nixosModules.default) 29 30 { nixpkgs.config.allowUnfree = true; } 30 31 { hjem.specialArgs = specialArgs; }