diff --git a/flake.lock b/flake.lock index b81d156..ee92b94 100644 --- a/flake.lock +++ b/flake.lock @@ -83,6 +83,22 @@ "type": "github" } }, + "flake-compat_2": { + "flake": false, + "locked": { + "lastModified": 1627913399, + "narHash": "sha256-hY8g6H2KFL8ownSiFeMOjwPC8P0ueXpCVEbxgda3pko=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "12c64ca55c1014cdc1b16ed5a804aa8576601ff2", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, "flake-utils": { "inputs": { "systems": "systems" @@ -101,6 +117,21 @@ "type": "github" } }, + "flake-utils_2": { + "locked": { + "lastModified": 1634851050, + "narHash": "sha256-N83GlSGPJJdcqhUxSCS/WwW5pksYf3VP1M13cDRTSVA=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "c91f3de5adaf1de973b797ef7485e441a65b8935", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "gitignore": { "inputs": { "nixpkgs": [ @@ -239,6 +270,28 @@ "type": "github" } }, + "peerix": { + "inputs": { + "flake-compat": "flake-compat_2", + "flake-utils": "flake-utils_2", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1772566807, + "narHash": "sha256-e5Fdb2K0GHPGVj3l+Jn/QIdxaR30WZATmmOb6amaVRA=", + "owner": "sophronesis", + "repo": "peerix", + "rev": "a56a9ff1dd1023bae1d68dfe5d1133822ad6f4ae", + "type": "github" + }, + "original": { + "owner": "sophronesis", + "repo": "peerix", + "type": "github" + } + }, "plasma-manager": { "inputs": { "home-manager": [ @@ -294,6 +347,7 @@ "nix-sweep": "nix-sweep", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", + "peerix": "peerix", "plasma-manager": "plasma-manager" } }, diff --git a/flake.nix b/flake.nix index 749edea..b189d15 100644 --- a/flake.nix +++ b/flake.nix @@ -26,6 +26,10 @@ url = "github:jzbor/nix-sweep/main"; inputs.nixpkgs.follows = "nixpkgs"; }; + peerix = { + url = "github:sophronesis/peerix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = { self, nixos-hardware, ... }@inputs: diff --git a/lib/mkNixosSystem.nix b/lib/mkNixosSystem.nix index a349f11..c90ef7b 100644 --- a/lib/mkNixosSystem.nix +++ b/lib/mkNixosSystem.nix @@ -7,6 +7,7 @@ lanzaboote, claude-code, nix-sweep, + peerix, ... }: hardwareConfig: hostConfig: @@ -29,6 +30,7 @@ nixpkgs.lib.nixosSystem { hardwareConfig home-manager.nixosModules.home-manager nix-sweep.nixosModules.default + peerix.nixosModules.peerix ../modules hostConfig ]; diff --git a/modules/system/nix.nix b/modules/system/nix.nix index 7f08a8a..58824c6 100644 --- a/modules/system/nix.nix +++ b/modules/system/nix.nix @@ -24,4 +24,9 @@ in gc = true; # Run GC afterwards }; + + services.peerix = { + enable = true; + trackerUrl = null; # Use LAN mode instead of Iroh + }; } \ No newline at end of file