Lucas Mendes Loureiro
d71aa30b41
feat(defaults): adding support to control center
2024-11-12 09:48:21 +00:00
Michael Hoang
2bacd8db31
environment: fix lowPrio
support in environment.systemPackages
2024-11-11 15:24:19 +11:00
Michael Hoang
8b27551e09
users: warn users to use pkgs.bashInteractive
instead of pkgs.bash
2024-11-11 15:24:19 +11:00
Michael Hoang
5eb88645f7
users: assert that programs.<shell>.enable = true;
for users' shells
...
Backport of https://github.com/NixOS/nixpkgs/pull/211603 and 093f354a17
2024-11-11 15:19:41 +11:00
Michael Hoang
c2c88ae983
users: remove lib.
2024-11-11 15:10:46 +11:00
Emily
5c74ab862c
Merge pull request #1157 from Enzime/read-me
...
readme: small improvements
2024-11-09 12:04:29 +00:00
Michael Hoang
5e9e8e7924
Merge pull request #1159 from Enzime/push-ksqroxyztptt
...
docs: misc fixes
2024-11-09 11:27:47 +00:00
Michael Hoang
5a1ae6a6e4
readme: add prerequisites section
2024-11-09 22:26:53 +11:00
Michael Hoang
050b7db445
installer: don't tell users to source bashrc
...
Fixes #380
2024-11-09 22:00:43 +11:00
Michael Hoang
2fe3de580e
readme: fix badge
2024-11-09 22:00:43 +11:00
Michael Hoang
ae09d7ba52
readme: remove outdated instructions for manually managing /etc/bashrc
2024-11-09 22:00:43 +11:00
Michael Hoang
534ca06930
docs: use nix-darwin
instead of Darwin
2024-11-09 21:51:15 +11:00
Michael Hoang
293589065d
ci: fix manual not being regenerated when non-Nix files are updated
...
This also fixes the README not being updated on the website as well
2024-11-09 21:28:09 +11:00
Michael Hoang
3c4a2b1150
Merge pull request #1158 from Enzime/push-xqtwkopwkvpu
...
ci: don't override nixpkgs when building the manual
2024-11-09 10:06:57 +00:00
Michael Hoang
a89c851923
ci: don't override nixpkgs when building the manual
...
This causes `nix-darwin` to not have `rev` or `dirtyRev`
2024-11-09 20:37:50 +11:00
Michael Hoang
814f2c2ab4
Merge pull request #1149 from Enzime/push-lorzxpskntmx
...
flake: expose docs on Linux as well
2024-11-09 09:22:32 +00:00
Michael Hoang
2ff55ab1c5
manual: get revision information when called from flake
2024-11-09 19:46:07 +11:00
Michael Hoang
a82d72d25f
flake: expose docs on Linux as well
2024-11-09 19:46:07 +11:00
Michael Hoang
3224bb2f7c
Merge pull request #1154 from Samasaur1/zshenv-rcs
...
zsh: only run shell initialization in /etc/zshenv when RCs are enabled
2024-11-09 08:22:06 +00:00
Sam
5fbb7b7637
zsh: only run shell initialization in /etc/zshenv when RCs are enabled
2024-11-07 20:29:35 -08:00
Michael Hoang
2fbf4a8417
Merge pull request #1152 from Enzime/push-rvwwkktwykyt
...
nix: don't allow using `auto-optimise-store` as it can corrupt the store
2024-11-08 02:17:27 +00:00
Michael Hoang
f0a1269297
nix: don't allow using auto-optimise-store
as it can corrupt the store
2024-11-08 12:48:15 +11:00
Emily
4b3c0d353b
Merge pull request #1141 from Enzime/push-yxmxmspuooto
...
uninstaller: improve
2024-11-07 23:58:44 +00:00
Michael Hoang
fa7b46fa77
Merge pull request #1143 from YorikSar/fix-github-runner-labels
...
github-runner: Fix labels for different nixpkgs versions
2024-11-07 12:00:23 +00:00
Yuriy Taraday
110d49af63
github-runner: Fix labels for different nixpkgs versions
...
Changes to escapeShellArg introduced in
https://github.com/NixOS/nixpkgs/pull/333744 made different versions of
nixpkgs behave differently. If current nix-darwin is used with nixpkgs
before that change, labels end up having labels quoted twice
(see https://github.com/LnL7/nix-darwin/issues/1085 ), but without
changes from https://github.com/LnL7/nix-darwin/pull/1055 , with new
nixpkgs, labels end up not quoted at all, and ShellCheck ends up
complaining that commas might have been used as array item separator
(see https://www.shellcheck.net/wiki/SC2054 ).
Use the old version of escapeShellArg to always escape the list of
labels and make nix-darwin work with both old and new versions of
nixpkgs.
Fixes https://github.com/LnL7/nix-darwin/issues/1085
2024-11-07 11:46:08 +01:00
Michael Hoang
222c3cb558
ci: fix uninstaller failing to run in install-against-unstable
2024-11-07 18:53:19 +11:00
Michael Hoang
3a89b61432
uninstaller: check nix-daemon
was correctly reinstalled
2024-11-07 18:52:15 +11:00
Michael Hoang
7bbc7c5db6
ci: test uninstallation of nix-darwin using flakes
2024-11-07 18:52:15 +11:00
Michael Hoang
ebca0c23c9
uninstaller: switch to writeShellApplication
...
By not defining a `shellHook`, `nix-shell -A uninstaller` and
`nix-shell -A uninstaller.check` no longer work.
2024-11-07 18:52:15 +11:00
Michael Hoang
c3b406bd1c
uninstaller: restore *.before-nix-darwin
files
...
Fixes https://github.com/LnL7/nix-darwin/issues/911
Fixes https://github.com/LnL7/nix-darwin/issues/912
2024-11-07 18:17:34 +11:00
Michael Hoang
9cd45289c9
uninstaller: reset any shells pointing to /run/current-system/sw/bin
2024-11-07 18:17:34 +11:00
Michael Hoang
1b5fa6be40
uninstaller: remove unnecessary attempt to delete nix-daemon
...
Fixes https://github.com/LnL7/nix-darwin/issues/910
2024-11-07 18:17:34 +11:00
Michael Hoang
84ad3a2d7e
uninstaller: remove /run
symlink
2024-11-07 18:17:34 +11:00
Michael Hoang
158198a6e3
Merge pull request #1139 from Enzime/push-ssqvumruwtmy
...
system: run `shellcheck` on `activate` and `activate-user` scripts
2024-11-07 07:16:23 +00:00
Michael Hoang
79608947e2
buildkit-agents: don't use mkdir -p -m
...
As `cfg.dataDir` will be the `home` of the Buildkite Agent user, it is
guaranted to exist so we don't need to use the `-p` flag.
2024-11-07 17:31:22 +11:00
Michael Hoang
3b738c765d
github-runner: replace mkdir -p -m
with umask
...
`mkdir -p -m` only applies the mode on the deepest directory which could
be a security issue so we use umask to be more careful.
2024-11-07 17:31:22 +11:00
Michael Hoang
cf130aa957
users: don't generate ensurePerms
when no users to manage
2024-11-07 17:20:00 +11:00
Michael Hoang
32814a6eb1
users: replace runtime check to prevent deleting root
with assertion
...
This fixes SC2050 as `${name} == "root"` will be generated as a constant
expression.
2024-11-07 17:20:00 +11:00
Michael Hoang
fd510a7122
system: replace for f in $(ls ...)
with for f in .../*
...
Fixes SC2045 but has one quirk which is if the bash glob doesn't match
anything it'll treat it as a string and run the loop once with
`f=.../*` so we need to check that `$f` actually exists.
2024-11-07 17:20:00 +11:00
Michael Hoang
041996803a
treewide: fix shellcheck warnings and errors
2024-11-07 17:20:00 +11:00
Michael Hoang
9afef9950f
checks: move manual /run
instructions to activation
2024-11-07 17:15:22 +11:00
Michael Hoang
3ea1144938
system: run shellcheck
on activate
and activate-user
scripts
2024-11-07 17:15:22 +11:00
Emily
366b99abfe
Merge pull request #1140 from Enzime/aarch64-tests
...
release: fix tests not running on `aarch64-darwin`
2024-11-07 06:02:34 +00:00
Michael Hoang
2af06b0862
examples: clean up
2024-11-07 15:26:53 +11:00
Michael Hoang
223a920ab4
ci: upgrade actions/checkout
2024-11-07 15:26:53 +11:00
Michael Hoang
37b591bd8b
ci: remove unused workflows
2024-11-07 15:26:53 +11:00
Michael Hoang
e0f243d17e
ci: run nix flake check
2024-11-07 15:26:53 +11:00
Michael Hoang
68637ee7db
flake: expose jobs
from release.nix
as a flattened attrset
2024-11-07 15:26:53 +11:00
Michael Hoang
c13549d7a6
examples: drop ofborg
example
...
We decided to drop this example as the package is not available in
Nixpkgs and we won't be able to import it easily and keep this example
evaluating as a useful smoke test. The code in this example is already
documented under `services.ofborg.*` so any interested users can still
find out how to set up `ofborg`.
2024-11-07 15:24:16 +11:00
Michael Hoang
569153467b
ofborg: automatically add ofborg
to known{Users,Groups}
2024-11-07 11:41:51 +11:00