diff options
| author | Kleidi Bujari <mail@4kb.net> | 2026-02-16 13:23:34 -0800 |
|---|---|---|
| committer | Kleidi Bujari <mail@4kb.net> | 2026-02-16 13:24:00 -0800 |
| commit | e1306ac779562336114e9a7830b7a936fe829cc9 (patch) | |
| tree | 2d5d41ba07acd799adff3c9c866c3674131d8bfa | |
| parent | 4825069dca4285cebb932ecc1c54f4a59793ee25 (diff) | |
| download | depot-e1306ac779562336114e9a7830b7a936fe829cc9.tar.gz depot-e1306ac779562336114e9a7830b7a936fe829cc9.tar.bz2 depot-e1306ac779562336114e9a7830b7a936fe829cc9.zip | |
output depot overlay and use it in nixos builds by default
| -rw-r--r-- | flake.nix | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -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 ( |
