summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKleidi Bujari <mail@4kb.net>2026-02-16 13:23:34 -0800
committerKleidi Bujari <mail@4kb.net>2026-02-16 13:24:00 -0800
commite1306ac779562336114e9a7830b7a936fe829cc9 (patch)
tree2d5d41ba07acd799adff3c9c866c3674131d8bfa
parent4825069dca4285cebb932ecc1c54f4a59793ee25 (diff)
downloaddepot-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.nix11
1 files changed, 3 insertions, 8 deletions
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 (