summaryrefslogtreecommitdiff
path: root/modules/system/checks.nix
AgeCommit message (Collapse)Author
2025-01-14checks: recommend `sudo nix-channel`Emily
2025-01-04power: quote in string triggered shellcheck SC2016gnammix
2024-12-31power: echo to print in error messagesgnammix
Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
2024-12-29power: move the check for restartPowerfailure support to checks.nixgnammix
2024-11-19fix: allow users to disable the homebrew checkisabel
2024-11-17Merge pull request #879 from jtt9340/spaces-in-nixpathMichael Hoang
fix broken NIX_PATH if paths contain spaces
2024-11-16checks: check single user installs don't have the `nix-daemon` enabledMichael Hoang
Remove suggestion to set `nix.useDaemon` as it came without an explanation of how the `nix-daemon` would be unmanaged and would most likely lead to most users running an old version of Nix as the daemon.
2024-11-13activate-user script: fix broken NIX_PATH if paths contain spacesJoey Territo
2024-11-13checks: add check to ensure Homebrew is installedAmeya Shenoy
Co-Authored-By: Michael Hoang <enzime@users.noreply.github.com>
2024-11-07treewide: fix shellcheck warnings and errorsMichael Hoang
2024-11-07checks: move manual `/run` instructions to activationMichael Hoang
2024-09-17checks: show Sequoia migration commands for other installersEmily
This is hopefully largely cosmetic, but should increase user confidence in the safety and effectiveness of the migration, and the Determinate Systems and Lix installer commands will also update the `/nix/receipt.json` files to match the changes made. They cannot properly handle the format of each other’s receipts, so we need to detect which was used.
2024-09-11{ids,checks}: update for new builder UID/GID valuesEmily
2024-09-11checks: make `oldBuildUsers` check fail hardEmily
Checking for the Sequoia stuff won’t work properly if a system is still in this old state. Best to be loud about it to deal with any straggler systems that haven’t yet dealt with this issue.
2024-09-11checks: factor out `nix.useDaemon` checkEmily
2024-09-10checks.nix: fix typonatsukium
2024-08-17feat: allow disabling channelsAlice Carroll
2024-07-10Merge pull request #976 from emilazy/openssh-use-links-for-authorized-keysEmily
ssh: use symlinks for `authorizedKeys` options
2024-06-23checks.nix: disable verifyBuildUsers for auto-allocate-uidsSamuel Tam
2024-06-15ssh: use symlinks for `authorizedKeys` optionsEmily
As explained in the changelog and activation check, the previous implementation had a nasty security bug that made removing a user’s authorized keys effectively a no‐op.
2024-04-19treewide: remove lib.mdDocWeijia Wang
2024-03-27Add `nix.optimise` moduleMalo Bourgon
2023-07-11readme: update with new flaky instructionsMichael Hoang
2023-07-11Allow flaky installation with `darwin-rebuild`Michael 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-06system/checks: allow disabling the buildUsers checkCole Helbling
This allows systems with auto-allocate-uids enabled to work (by disabling this check).
2023-05-31flakes: Do not verify channels when using flakes.John Soo
2022-08-16Add .nix-defexpr to NIX_PATH the way the NixOS module doesMalo Bourgon
2022-08-16Move build user options to `nix` module to improve overlap with NixOSMalo Bourgon
Also add `config.ids` like in NixOS.
2022-04-14Fix synthetic.conf instructionsMatthew Toohey
2021-05-12change inner double quotes to single quotesJean-Francois Chevrette
2021-02-17users: migrate nixbld -> _nixbldDaiderd Jordan
According to some investigation creating "role" accounts avoids migration problems when upgrading to certain macOS versions, so create the build users to match that definition and remove the old ones if present. Role accounts require name starting with _ and UID in 200-400 range
2020-11-15installer: handle apfs.util on macOS 11.0 Big SurDaiderd Jordan
The flages of apfs.util changed in 11.0 so try both cases. Fixes #249
2020-10-18clarify store/state permission checkDaiderd Jordan
2020-03-28installer: try creating /run using synthetic.confDaiderd Jordan
Since macOS 10.15 Catalina / can't be changed directly anymore. Fixes #166
2019-07-01nix: check nix.useDaemon valueDaiderd Jordan
This case will cause problems when existing files in /etc are replaced instead of skipped with a warning, potentially breaking the nix install in the process.
2019-07-01nix: fix useDaemon conditionsDaiderd Jordan
The nix.useDaemon option enables using a multi-user install without managing the nix installation with nix-darwin. The following checks apply to both cases.
2019-02-24darwin: replace usages of nix-instantiate --eval with --find-fileDaiderd Jordan
2019-01-04checks: actually fix gc conditionDaiderd Jordan
Introduced in 28710738a3ca7c9a16d63b89c904588d030edf01, the check should _only_ run if the user is not configured not the other way around.
2019-01-03nix-gc: fix evaluationDaiderd Jordan
2019-01-03checks: fix gc conditionDaiderd Jordan
Don't fail if the user is configured properly.
2019-01-02checks: generalize and make them more configurableDaiderd Jordan
All the checks are now aggregated in system.checks.text making it easy to allow certain checks to be disabled as well as disabling them alltogether if desired. eg. # Disable all checks. system.checks.text = mkForce ""; Fixes #117
2019-01-02nix-gc: add check for nix.gc.automaticDaiderd Jordan
This hopefully avoids problems for people that try to enable the service with a single-user install. Fixes #118
2018-10-26Revert "nix: make channel entries for NIX_PATH dynamic"Daiderd Jordan
This reverts commit 95fb1cb2aa1781b239db074dcc9b15089b55e118, 1324ccf2c1fe10fd277dabefa3c8e5631e216d41 and e5c988edf1df3412ca5b3c4704dca666614f9250.
2018-10-26checks: include channel paths for NIX_PATH checksDaiderd Jordan
2018-09-30Fix quoting for nixPath checkLuigy Leon
2018-08-26checks: update and improve darwin-config messageDaiderd Jordan
Now that environment.darwinConfig exists it's a better choice otherwise multiple NIX_PATH entries need to be added.
2018-01-18checks: fail when db permissions are wrongDaiderd Jordan
2018-01-17checks: rename fileDaiderd Jordan