summaryrefslogtreecommitdiff
path: root/modules/system/etc.nix
AgeCommit message (Collapse)Author
2024-06-15write-text: remove support for `copy`Emily
This is a huge anti‐declarative footgun; `copy` files cannot distinguish if a previous version is managed by nix-darwin, so they can’t check the hash, so they’re prone to destroying data, and copied files are not deleted when they’re removed from the system configuration, which led to a security bug. Nothing else in‐tree was using this functionality, so let’s make sure it doesn’t cause any more bugs.
2024-04-19treewide: remove lib.mdDocWeijia Wang
2023-11-09Fix unbound variable `etcProblems`Felix Scheinost
I have another activationScript which traps errors. Currently `etcProblems` can be unbound.
2023-07-16etc: check for existing files during checks stageEmily
This ensures that activation fails early if there are any `/etc` files with unexpected state, rather than leaving the system half-activated.
2023-07-16etc: rename activation script variablesEmily
2023-07-12etc: use `.before-nix-darwin` instead of `.orig`Michael Hoang
2023-07-11etc: fail if we can't add a fileMichael Hoang
Fixes #598
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-05-10don't check knownSha256 for authorized_keys filessbh69840
2023-05-10support authorized_keys for userssbh69840
2022-09-25rename runCommandNoCCJames Walker
2020-09-02Remove deprecated types.loaOfMario Rodas
types.loaOf has been deprecated for a long time and is now in the process of removal. See: https://github.com/NixOS/nixpkgs/pull/96042
2020-06-17etc: allow replacing files with known contentDaiderd Jordan
This enables replacing existing system files like /etc/bashrc by default while keeping the safer behaviour for other files like /etc/passwd, etc. that could potentially cause major problems for the system when replaced.
2018-01-21system: use preferLocalBuild for simple derivationsDaiderd Jordan
Most of the builds like system.build.etc will be faster when built locally, they also don't depend on CC.
2018-01-13etc: skip warning when target has references to /etc/staticDaiderd Jordan
2018-01-08etc: make link warnings more noticableDaiderd Jordan
Hopefully this helps to make it more obvious that the file will not be created by nix-darwin. See #65
2017-01-08programs.zsh: export variables in zshenvDaiderd Jordan
2017-01-02environment.etc: improve activationDaiderd Jordan
2017-01-02move write-text submoduleDaiderd Jordan
2016-12-19add /etc/static path to warning messagesDaiderd Jordan
2016-12-15fix etc files in directoriesDaiderd Jordan
2016-11-05generalized module for write-textDaiderd Jordan
- use custom etc activation script