summaryrefslogtreecommitdiff
path: root/modules/nix
AgeCommit message (Collapse)Author
2025-01-08nix: merge `nix.settings.trusted-users` by defaultMichael Hoang
Backport of https://github.com/NixOS/nixpkgs/pull/318635
2024-12-07Merge pull request #1202 from Enzime/push-voxzmynopkkpDomen Kožar
linux-builder: default `maxJobs` to amount of cores for Linux builder
2024-12-04nix: fix Lix version detection in auto-optimise-store assertionAlex James
2024-11-28linux-builder: default `maxJobs` to amount of cores for Linux builderMichael Hoang
2024-11-17nix: remove outdated note requiring managed daemon for distributedBuildsMichael Hoang
For Nix 1, some environment variables were set when using distributed builds requiring the Nix daemon to be managed by nix-darwin. However, support for Nix 1 has been removed and no other environment variables for Nix are set by default.
2024-11-15activate-system: remove `enable` optionMichael Hoang
Disabling this is not supported as `/run` gets cleared out on every reboot so it is necessary for ensuring that the `/run/current-system` symlink exists.
2024-11-08nix: don't allow using `auto-optimise-store` as it can corrupt the storeMichael Hoang
2024-10-08programs/bash: move to completion.*isabel
a port of https://github.com/NixOS/nixpkgs/pull/291552 for darwin
2024-09-22feat: use wait4path with script launchd optionwill
addresses https://github.com/LnL7/nix-darwin/issues/1043 fix: use exec in launchd daemon config fix: dont use a script thats in the nix store fix: remove manual wait4path in linux-builder fix: remove manual wait4path in karabiner elements fix: remove manual wait4path in nix-daemon fix: remove manual wait4path in nix-optimise fix: remove manual wait4path in tailscaled fix: autossh test Revert "fix: remove manual wait4path in nix-daemon" This reverts commit 6aec084fa5d095666e81676e78f7054c83703faa. fix: remove bad exec Reapply "fix: remove manual wait4path in nix-daemon" This reverts commit c8f136ecc555f803124af471324bc6ed1163d6dd. fix: update autossh test to reflect changes in f86e6133d957becb1958da638516b0860fbd7491 fix: services-activate-system-changed-label-prefix test fix: services-buildkite-agent test fix: services-activate-system test fix: escape ampersand fix: services-lorri test fix: services-nix-optimise test fix: services-nix-gc test refactor: use script rather than command in daemon fix: use config.command for clarity style: fix indentation fix: use lib.getExe rather than directly pointing to file revert: a87fc7bbbbdb7c25c5ad6721c93990ea035affdd - mistaken refactor meant that service waited for nix store and not the relevant path
2024-09-11flake: put nixpkgs in NIX_PATH and system registry for flake configsJade Lovelace
Currently there are a bunch of really wacky hacks required to get nixpkgs path correctly set up under flake configs such that `nix run nixpkgs#hello` and `nix run -f '<nixpkgs>' hello` hit the nixpkgs that the system was built with. In particular you have to use specialArgs or an anonymous module, and everyone has to include this hack in their own configs. We can do this for users automatically. NixOS/nixpkgs@e456032addae76701eb17e6c03fc515fd78ad74f Co-authored-by: Antoine Cotten <hello@acotten.com>
2024-09-05linux-builder: make `package.nixosConfig` accurateMichael Hoang
2024-08-29Add sha256 for DeterminateSystems Nix installer 0.22.0Corey Jewett
2024-08-25Merge pull request #1044 from Enzime/add/known-hashMichael Hoang
etc: add known hash for DetSys installer 0.20.0+
2024-08-25etc: add known hash for DetSys installer 0.20.0+Michael Hoang
2024-08-21feat: system.disableInstallerToolsisabel
2024-08-17fix: respect user nixPath configurationAlice Carroll
2024-08-17feat: allow disabling channelsAlice Carroll
2024-07-12Update modules/nix/linux-builder.nixThane Gill
Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
2024-07-09Add `User` and already generated `IdentityFile` to ssh_config for ↵Thane Gill
`nix.linux-builder`
2024-07-06Add lix-installer to known filesIan Chamberlain
2024-06-17Merge pull request #974 from nicknovitski/linux-builder-crossarchMichael Hoang
2024-06-16linux-builder: make compatible with cross-arch builder packageNick Novitski
Before this commit, aarch64 users building the following configuration would end up with an aarch64-linux builder, while after it, they get the x86_64-linux builder they expect: ```nix nix.linux-builder = { enable = true; package = pkgs.darwin.linux-builder-x86_64; }; ``` Before, in order to get an x86_64-linux builder, they would have needed to use this configuration instead: ```nix nix.linux-builder = { enable = true; config.nixpkgs.hostPlatform = "x86_64-linux"; systems = ["x86_64-linux"]; }; ``` The reason for this is that the linux-builder module calls `override` on the package option, and the `linux-builder-x86_64` package is also defined using override: ```nix linux-builder-x86_64 = linux-builder.override { modules = [ { nixpkgs.hostPlatform = "x86_64-linux"; } ]; }; ``` The module was effectively discarding the `nixpkgs.hostPlatform` option. Example issue: https://github.com/NixOS/nixpkgs/issues/313784
2024-06-14Merge pull request #975 from emilazy/drop-old-compatMichael Hoang
Drop compatibility for unsupported Nixpkgs versions
2024-06-13Merge pull request #842 from Enzime/linux-builder-trustEmily
linux-builder: remove trusted user requirement
2024-06-13treewide: remove shims for Nixpkgs ≤ 23.05Emily
These deprecated versions were already made unsupported by #932.
2024-04-19treewide: remove lib.mdDocWeijia Wang
2024-03-02feat(nix): adapt nix.conf validation for different Nix versionsMark Sisson
This commit updates the nix.conf validation logic to accommodate different versions of Nix. It introduces a conditional assignment of the `showCommand` variable, which determines the appropriate command to use based on the Nix version. For versions at least "2.20pre", it uses "config show"; otherwise, it falls back to "show-config". This change ensures compatibility across various Nix releases.
2024-02-23etc: add known hash for `/etc/zshenv` and `/etc/nix/nix.conf`Evan Petousis
Adds support for DeterminateSystems installer 0.16.0 and later. Fixes #880.
2024-02-21apply feedback, fix merge goofLogan Barnett
2024-02-21Merge remote-tracking branch 'ethnt/linux-builder-systems-config' into ↵Logan Barnett
linux-builder-big-config-take-2
2024-02-21Merge remote-tracking branch 'stv0g/linux-runner-options' into ↵Logan Barnett
linux-builder-big-config-take-2
2024-02-20linux-builder: default pass through protocol to nix.buildMachinesLogan Barnett
This commit adds a protocol option for the `linux-builder` and defaults it to `ssh-ng`. I have observed it needing this with the following: ``` sh $ nix store ping --store ssh://linux-builder Store URL: ssh://linux-builder $ nix store ping --store ssh-ng://linux-builder Store URL: ssh-ng://linux-builder Version: 2.18.1 Trusted: 0 ``` This seems to make the difference on whether or not Nix picks up `linux-builder` as an available builder.
2024-02-18linux-builder: Pass through more options to nix.buildMachinesSteffen Vogel
This commit passes more options to nix.buildMachines. Namely the mandatoryFeatures and speedFactor settings have been missing.
2024-01-15Dedupe the WorkingDirectory path of the linux-builderJacek Galowicz
2023-12-31linux-builder: remove trusted user requirementMichael Hoang
If you set up a signing key for the `linux-builder` and add that as trusted public key on your machine, you won't need to be a trusted user at all.
2023-11-24Merge pull request #806 from DeterminateSystems/easier-uninstallMichael Hoang
Install darwin-uninstall by default, which includes the 'empty' config it switches to
2023-11-22Add default system to `systems` optionEthan Turkeltaub
2023-11-22Use `nix.buildMachines.*.systems` instead of `nix.buildMachines.*.system`Ethan Turkeltaub
2023-11-22Add `nix.linux-builder.systems` option to set corresponding ↵Ethan Turkeltaub
`nix.buildMachines.*.systems` option
2023-11-16Install darwin-uninstall by default, which includes the 'empty' config it ↵Graham Christensen
switches to Co-Authored-By: Michael Hoang <enzime@users.noreply.github.com>
2023-11-16etc: add more known hashesMichael Hoang
This should be less of an issue as of DetSys' nix-installer 0.15.0 which no longer includes the version number in `nix.conf`.
2023-11-08Merge pull request #785 from Enzime/deferred-modulesDomen Kožar
linux-builder: change from `modules` to `config`
2023-10-27Merge pull request #791 from lilyball/linux-builder-tmpdirMichael Hoang
linux-builder: avoid /tmp for certs
2023-10-18Provide 'supportedFeatures' option to the linux builder moduleAlexis Destrez
2023-10-09linux-builder: avoid /tmp for certsLily Ballard
Fixes #768
2023-09-29linux-builder: change from `modules` to `config`Michael Hoang
Using the type `deferredModule` fixes `pkgs` not being accessible as a module argument (apart from `config._module.args.pkgs`).
2023-08-02linux-builder: add maxJobs optionLily Ballard
Fixes #751
2023-07-14Add `darwin-version` commandMichael Hoang
2023-07-11doc: store a copy of known filesMichael Hoang
2023-07-11Allow flaky installation with `darwin-rebuild`Michael Hoang