summaryrefslogtreecommitdiff
path: root/modules/nix/default.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-04nix: fix Lix version detection in auto-optimise-store assertionAlex James
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-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-17fix: respect user nixPath configurationAlice Carroll
2024-08-17feat: allow disabling channelsAlice Carroll
2024-07-06Add lix-installer to known filesIan Chamberlain
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.
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-07-11doc: store a copy of known filesMichael Hoang
2023-07-10nix: Remove readOnlyStore option as it has no effectAndrew Marshall
This being under `nix` in upstream is misleading as it is only used in the NixOS boot stage, not as configuration for the Nix daemon.
2023-07-10Fix spellingAndrew Marshall
2023-07-08nix/linux-builder: initMichael Hoang
2023-06-27tailscale: improve MagicDNS setupMichael Hoang
2023-06-24treewide: convert all option docs to MarkdownEmily
This process was automated by [my fork of `nix-doc-munge`]; thanks to @pennae for writing this tool! It automatically checks that the resulting documentation doesn't change, although my fork loosens this a little to ignore some irrelevant whitespace and typographical differences. As of this commit there is no DocBook remaining in the options documentation. You can play along at home if you want to reproduce this commit: $ NIX_PATH=nixpkgs=flake:nixpkgs/c1bca7fe84c646cfd4ebf3482c0e6317a0b13f22 \ nix shell nixpkgs#coreutils \ -c find . -name '*.nix' \ -exec nix run github:emilazy/nix-doc-munge/0a7190f600027bf7baf6cb7139e4d69ac2f51062 \ {} + [my fork of `nix-doc-munge`]: https://github.com/emilazy/nix-doc-munge
2023-06-24treewide: manually convert some docs to MarkdownEmily
These all use DocBook markup too complex for `nix-doc-munge` to handle, have syntax that clashes with Markdown, or already contain Markdown syntax that currently isn't rendering correctly. Converting DocBook list syntax makes me think that maybe Markdown isn't so bad after all.
2023-06-24treewide: tweak DocBook docs for conversionEmily
These help `nix-munge-doc` automate more of the Markdown conversion process. See the following nixpkgs commits for explanations of many of these changes: * https://github.com/NixOS/nixpkgs/commit/275a34e0d8a937a81b267e47302dd8a92fa781df * https://github.com/NixOS/nixpkgs/commit/694d5b19d30bf66687b42fb77f43ea7cd1002a62 * https://github.com/NixOS/nixpkgs/commit/f1d39b6d6187997b630647400c5efe5b01e06a23 * https://github.com/NixOS/nixpkgs/commit/16102dce2fbad670bd47dd75c860a8daa5fe47ad I couldn't think of any particularly good way to format the `system.defaults` breadcrumbs, so I just made them standalone paragraphs. They weren't rendering correctly in DocBook anyway.
2023-06-10nix: Add build machines protocol option.Cathal Mullan
2023-05-04nix: Fix registry extra attrs not being appliedAndrew Marshall
This was mkDefault { } // filterAttrs () x which is interpreted as (mkDefault { }) // (filterAttrs () x) but the intention is mkDefault ({ } // filterAttrs () x) Resulting in lastModified, rev, etc. not being included. This is essentially just bringing this clause up-to-date with the one from NixOS.
2022-10-03nix: fix mandatoryFeatures in nix.buildMachinesAndrew Childs
Copied directly from https://github.com/NixOS/nixpkgs/pull/193404
2022-08-29Transition to using native floatsMalo Bourgon
2022-08-16Update changelogMalo Bourgon
2022-08-16Add .nix-defexpr to NIX_PATH the way the NixOS module doesMalo Bourgon
2022-08-16Update/adapt daemon CPU/IO priority options in `nix` moduleMalo Bourgon
Stop using `nice` related options like NixOS, and because `launchd` recommends using `ProcessType` instead. Note this commit also changes the default `ProcessType` for the `nix-daemon` from `Interactive` to `Standard`.
2022-08-16Move build user options to `nix` module to improve overlap with NixOSMalo Bourgon
Also add `config.ids` like in NixOS.
2022-08-16Update `nix.registry` definition to match NixOS moduleMalo Bourgon
2022-08-16Refactor `nix.nixPath` to make diff easier to compare with NixOS moduleMalo Bourgon
2022-08-16Update `nix.buildMachines` def and implementation to match NixOS moduleMalo Bourgon
2022-08-16Minor tweaks to `nix` module options defsMalo Bourgon
2022-08-16Reorder `nix` module implementation to better match order of NixOS moduleMalo Bourgon
2022-08-16Make `nix.settings` docs specific to (nix-)darwin where applicableMalo Bourgon
2022-08-16Update `nix.settings` def and implementation to match NixOS moduleMalo Bourgon
2022-08-16Update def and implementation of `nix.package` to match NixOS moduleMalo Bourgon
Also remove `nix.version` option since it's no longer being used anywhere, old irrelevant `nix-info` module, and all support for legacy `nix.profile` option.
2022-08-16Reindent/format `nix` module to more closely match NixOS moduleMalo Bourgon
2022-08-16Reorder `nix` module options to match order in NixOS moduleMalo Bourgon
2022-08-16Update `nix` module to use `settings` sub options like in NixOS moduleMalo Bourgon
Also update option definitions to match those in `nixpkgs` where it makes sense.
2022-01-02nix: extend nix.conf content whitelistDaiderd Jordan
Fixes #407
2021-10-23add forward compatibility for literalExample deprecationDaiderd Jordan
Fixes #367
2020-12-22nix.registry optionQuentin Gliech
2020-10-25remove nix 1.x config compatibilityDaiderd Jordan
2020-06-17etc: add known hashes for bashrc/zsh/nix.confDaiderd Jordan
2020-05-30nix: better defaults settings for maxJobs/buildCoresJörg Thalheim
most users just want to use all available cores. This commit aligns our defaults with what we do in NixOS
2020-03-28nix: kickstart and wait for the nix-daemon serviceDaiderd Jordan