From e1306ac779562336114e9a7830b7a936fe829cc9 Mon Sep 17 00:00:00 2001 From: Kleidi Bujari Date: Mon, 16 Feb 2026 13:23:34 -0800 Subject: output depot overlay and use it in nixos builds by default --- flake.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index cc6fe94..aff22f1 100644 --- a/flake.nix +++ b/flake.nix @@ -27,7 +27,6 @@ inherit (import ./lib/depot-tools.nix { inherit inputs systems lib; }) importDir - systemArgs ; overlays.default = @@ -51,13 +50,9 @@ defaultModule = { config, ... }: - let - perSystemArg = system: { - _module.args.perSystem = systemArgs.${system}.perSystem; - }; - in { - imports = [ (perSystemArg config.nixpkgs.hostPlatform.system) ]; + nixpkgs.overlays = lib.singleton overlays.default; + system.stateVersion = config.system.nixos.release; }; buildNixOS = @@ -75,7 +70,7 @@ ); in { - inherit nixosModules nixosConfigurations; + inherit nixosModules nixosConfigurations overlays; formatter = forAllSystems (system: nixpkgsFor.${system}.nixfmt-rfc-style); packages = forAllSystems ( -- cgit v1.3.1