f2: remove unused build arguments

they're no longer used since non-diverted stores are the default now.

Change-Id: I277b819340c2b69e1fd06607e562221469b77926
This commit is contained in:
eldritch horrors
2026-02-11 20:46:18 +00:00
parent b34f136f10
commit bffbe73493
11 changed files with 25 additions and 54 deletions
+4 -15
View File
@@ -4,7 +4,7 @@ import dataclasses
import sys
from functools import partialmethod
from pathlib import Path
from typing import Any, Literal
from typing import Any
from collections.abc import Callable, Generator
import shutil
import subprocess
@@ -155,12 +155,7 @@ class Nix:
return self._settings
def nix_cmd(
self,
argv: list[str],
flake: bool = False,
build: bool | Literal["auto"] = "auto", # noqa: ARG002
) -> Command:
def nix_cmd(self, argv: list[str], flake: bool = False) -> Command:
"""
Constructs a NixCommand with the appropriate settings.
:param build: if the executed command wants to build stuff. This is required due to darwin shenanigans. "auto" will try to autodetect, override using `True` or `False`. Has no effect on linux.
@@ -173,14 +168,8 @@ class Nix:
settings.to_env_overlay(self.env)
return Command(argv=argv, exe=self._nix_executable, _env=self.env)
def nix(
self,
cmd: list[str],
nix_exe: str = "nix",
flake: bool = False,
build: bool | Literal["auto"] = "auto",
) -> Command:
return self.nix_cmd([nix_exe, *cmd], flake=flake, build=build)
def nix(self, cmd: list[str], nix_exe: str = "nix", flake: bool = False) -> Command:
return self.nix_cmd([nix_exe, *cmd], flake=flake)
@contextlib.contextmanager
def daemon(