setup branch

This commit is contained in:
2025-04-10 12:22:05 +08:00
parent 27987f67ea
commit f41cb3c39a
4 changed files with 4 additions and 2 deletions

1
.gitattributes vendored
View File

@@ -3,3 +3,4 @@
*.jpg filter=lfs diff=lfs merge=lfs -text
*.webp filter=lfs diff=lfs merge=lfs -text
*.efi filter=lfs diff=lfs merge=lfs -text
flake/branch.nix merge=ours

View File

@@ -83,7 +83,7 @@
nixosConfigurations = import ./flake/nixos.nix { inherit inputs localLib; };
overlays.default = final: prev:
{ localPackages = (import ./packages { inherit localLib; pkgs = final; topInputs = inputs; }); };
config = { archive = false; branch = "production"; };
config.branch = import ./flake/branch.nix;
devShells.x86_64-linux = import ./flake/dev.nix { inherit inputs; };
src = import ./flake/src.nix { inherit inputs; };
};

1
flake/branch.nix Normal file
View File

@@ -0,0 +1 @@
"next"

View File

@@ -84,7 +84,7 @@ inputs:
++ (with inputs.config.nixos.system.nixpkgs; if march == null then [] else [ "gccarch-exact-${march}" ]);
}
# includeBuildDependencies
{ system.includeBuildDependencies = inputs.topInputs.self.config.archive; }
{ system.includeBuildDependencies = inputs.topInputs.self.config.branch == "archive"; }
# substituters
{
nix.settings.substituters = inputs.lib.mkMerge