ALPHA: wire is a tool to deploy nixos systems wire.althaea.zone/

switch flake compat to lix flake-compat

+23 -22
+15 -12
default.nix
··· 1 - (import ( 2 - let 3 - lock = builtins.fromJSON (builtins.readFile ./flake.lock); 4 - nodeName = lock.nodes.root.inputs.flake-compat; 5 - in 6 - fetchTarball { 7 - url = 8 - lock.nodes.${nodeName}.locked.url 9 - or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.${nodeName}.locked.rev}.tar.gz"; 10 - sha256 = lock.nodes.${nodeName}.locked.narHash; 11 - } 12 - ) { src = ./.; }).defaultNix 1 + let 2 + lockFile = builtins.fromJSON (builtins.readFile ./flake.lock); 3 + flake-compat-node = lockFile.nodes.${lockFile.nodes.root.inputs.flake-compat}; 4 + flake-compat = builtins.fetchTarball { 5 + inherit (flake-compat-node.locked) url; 6 + sha256 = flake-compat-node.locked.narHash; 7 + }; 8 + 9 + flake = ( 10 + import flake-compat { 11 + src = ./.; 12 + } 13 + ); 14 + in 15 + flake.defaultNix
+7 -9
flake.lock
··· 38 38 }, 39 39 "flake-compat": { 40 40 "locked": { 41 - "lastModified": 1747046372, 42 - "narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=", 43 - "owner": "edolstra", 44 - "repo": "flake-compat", 45 - "rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885", 46 - "type": "github" 41 + "lastModified": 1751685974, 42 + "narHash": "sha256-NKw96t+BgHIYzHUjkTK95FqYRVKB8DHpVhefWSz/kTw=", 43 + "rev": "549f2762aebeff29a2e5ece7a7dc0f955281a1d1", 44 + "type": "tarball", 45 + "url": "https://git.lix.systems/api/v1/repos/lix-project/flake-compat/archive/549f2762aebeff29a2e5ece7a7dc0f955281a1d1.tar.gz?rev=549f2762aebeff29a2e5ece7a7dc0f955281a1d1" 47 46 }, 48 47 "original": { 49 - "owner": "edolstra", 50 - "repo": "flake-compat", 51 - "type": "github" 48 + "type": "tarball", 49 + "url": "https://git.lix.systems/lix-project/flake-compat/archive/main.tar.gz" 52 50 } 53 51 }, 54 52 "flake-compat_2": {
+1 -1
flake.nix
··· 1 1 { 2 2 inputs = { 3 3 flake-parts.url = "github:hercules-ci/flake-parts"; 4 - flake-compat.url = "github:edolstra/flake-compat"; 4 + flake-compat.url = "https://git.lix.systems/lix-project/flake-compat/archive/main.tar.gz"; 5 5 git-hooks.url = "github:cachix/git-hooks.nix"; 6 6 systems.url = "github:nix-systems/default"; 7 7 crane.url = "github:ipetkov/crane";