1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00
Commit graph

1803 commits

Author SHA1 Message Date
Emily
8dbda1064b
Merge pull request #1134 from Enzime/push-ynpwzrxomtxw
zsh: enable by default as zsh is the default shell on macOS
2024-10-31 17:30:35 +00:00
Michael Hoang
470f87c182 zsh: enable by default as zsh is the default shell on macOS
Historically this was a footgun because users would not always have this
enabled leading to `darwin-rebuild` and other programs not being found.
2024-10-31 15:09:11 +11:00
Michael Hoang
b379bd4d87
Merge pull request #1124 from SuperSandro2000/cleanup
Cleanup release.nix
2024-10-29 17:44:39 +11:00
Sandro Jäckel
6eea6b4a75 Reuse nixpkgs instead of accessing channel
This fixes pure evaluation in flakes
2024-10-29 16:18:04 +11:00
Emily
a55c84e06f
Merge pull request #1128 from Enzime/push-yxyppuxmyunx
users: remove `users.forceRecreate` option
2024-10-29 01:38:20 +00:00
Michael Hoang
f380194f3d users: create users with home directory /var/empty by default 2024-10-28 11:05:35 +11:00
Michael Hoang
c908607e8a users: remove users.forceRecreate option 2024-10-28 11:01:14 +11:00
Michael Hoang
a15a3d9f1f users: fix unclosed string 2024-10-28 10:51:09 +11:00
Michael Hoang
5c0c6aaa79
Merge pull request #1120 from Enzime/push-ltvtsllrqvqy
users: update properties for known users
2024-10-28 10:08:11 +11:00
Michael Hoang
febc3b3f51 users: remove with lib; 2024-10-28 00:38:39 +11:00
Michael Hoang
32f0cf2140 users: replace FDA check with more fine grained permissions check 2024-10-28 00:38:39 +11:00
Michael Hoang
9cd3976486 users: ensure all users' home directories in the config are correct 2024-10-27 21:52:41 +11:00
Michael Hoang
55be3e1a5f users: move checks to system.checks 2024-10-27 21:52:41 +11:00
Michael Hoang
dc6f754fe5 users: allow shell to be managed by macOS 2024-10-27 21:52:41 +11:00
Michael Hoang
3712ff78cc users: change default shell to /usr/bin/false to match macOS 2024-10-27 21:26:19 +11:00
Michael Hoang
bd161d61d6 users: allow home to be managed by macOS 2024-10-27 21:26:19 +11:00
Michael Hoang
c9af5c2d13 users: update properties on known users 2024-10-27 21:26:19 +11:00
Michael Hoang
13816f682d tests: fix old test getting messed up in refactor
2788e4fa98 (diff-0642dcb4e551dcf07032904ee7f6b7ea645db36939f159908ccb2b85a2bbd1b8L53)
2024-10-27 21:26:19 +11:00
Michael Hoang
fd6660cb91 tests: fix negative asserts with grep not working
Using `grep -v` without `-z` will return 0 even if there is a match
found as all the non-matching lines will be matched. Instead of using
`grep -vqz`, `(! grep ...)` is more readable.

The brackets are necessary as `! grep` will not trigger `set -e`[0], so we
run it inside a subshell to use its non-zero exit code.

[0]: https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#The-Set-Builtin
2024-10-27 21:26:19 +11:00
Michael Hoang
2eb472230a
Merge pull request #1126 from booxter/emacs-keepalive
Add keepalive flag for emacs service
2024-10-27 09:35:30 +11:00
Ihar Hrachyshka
445c6bfc65 Add keepalive flag for emacs service 2024-10-26 13:05:25 -04:00
Michael Hoang
7840909b00
Merge pull request #1115 from PhilipBorgesen/align_usage
darwin-rebuild: Align usage description with implementation
2024-10-25 14:25:25 +11:00
Philip Børgesen
c98bb238b1 darwin-rebuild: Align usage description with implementation
This change updates the usage description of darwin-rebuild.sh as
follows:

 * Add options:

     --print-build-logs / -L
     --no-registries
     --commit-lock-file
     --no-write-lock-file
     --override-input

 * Specify that --no-flake and the flake related options are
   mutually exclusive.

 * Specify that --keep-going and -k are aliases.

 * Specify that --keep-failed and -K are aliases.

 * Correct the description of --update-input; only one value follows.

The --no-build-hook argument remains undocumented, like for nix.
2024-10-25 05:07:51 +02:00
Michael Hoang
8c675759e9
Merge pull request #813 from PhilipBorgesen/power-related-options
Power related options (sleep, wake-on-lan, restart after power failure, ...)
2024-10-25 13:01:10 +11:00
Emily
04193f188e
Merge pull request #1118 from Enzime/push-zvvxxryylwxt
users: ensure users' shells are installed
2024-10-24 09:05:00 +01:00
Michael Hoang
a5d770b257
Merge pull request #1117 from Enzime/push-owuqqzqkrnpn
users: prevent deleting the user calling `darwin-rebuild`
2024-10-24 18:51:17 +11:00
Michael Hoang
b089e7e726 users: switch back to using dscl for deleting users
The previous default behaviour when nix-darwin deletes users is that
their home directories are left intact, however as the `-keepHome` flag
for `sysadminctl -deleteUser` is broken, we'll need to switch back for
now.
2024-10-24 18:33:05 +11:00
Philip Børgesen
f737259769 power,sleep: Add options to control restart and sleep behavior 2024-10-24 06:13:11 +02:00
Philip Børgesen
5907cbbb31 networking: Add wakeOnLan option 2024-10-24 06:13:07 +02:00
Michael Hoang
b702750226 users: ensure Full Disk Access is granted before trying to create users 2024-10-24 14:33:16 +11:00
Michael Hoang
2be05de06e users: add missing newlines for FDA prompt 2024-10-24 14:33:02 +11:00
Michael Hoang
467a0d3d0c users: prevent deleting the user calling darwin-rebuild
`sysadminctl -deleteUser` will only prevent you from deleting the
current user if it's not the last admin and not the last secure token
user, otherwise it will happily oblige.
2024-10-24 14:33:02 +11:00
Michael Hoang
bbe1917238 users: ensure users' shells are installed 2024-10-24 14:18:31 +11:00
Michael Hoang
5f05c2c3d2
Merge pull request #1106 from NickHu/aerospace
module: add aerospace service
2024-10-24 10:50:04 +11:00
Michael Hoang
d99f9ae9fd
Merge pull request #1108 from Enzime/users
Use `sysadminctl` instead of `dscl`
2024-10-24 01:33:54 +11:00
Michael Hoang
8c02940d70 users: ensure Full Disk Access is granted before trying to delete users 2024-10-23 01:29:01 +11:00
Michael Hoang
9ee30f2534 darwin-rebuild: add comments explaining the custom sudo logic 2024-10-23 01:11:40 +11:00
Michael Hoang
0a686597fa users: don't allow name to be empty 2024-10-22 22:54:04 +11:00
Michael Hoang
11c777c719 users: change default description to null 2024-10-22 22:54:04 +11:00
Michael Hoang
ac7932f9de users: use lib.escapeShellArg for group description 2024-10-22 19:43:18 +11:00
Emily
64d9d1ae25
Merge pull request #1112 from Enzime/push-wkxpqmxomwxp
ci: don't run tests twice for PRs from forks
2024-10-22 07:37:24 +01:00
Michael Hoang
c2224d0d1d
Merge pull request #1113 from Enzime/push-zoqltpyrrrnq
ci: update Nix to match versions in nixpkgs
2024-10-22 17:33:11 +11:00
Michael Hoang
ea7e178ad4 users: use lib.escapeShellArg for createhomedir 2024-10-22 16:02:21 +11:00
Michael Hoang
8451125cf8 users: use lib.escapeShellArg for dscl paths 2024-10-22 16:02:21 +11:00
Michael Hoang
7a3ec6459c networking: use lib.escapeShellArgs instead of custom version 2024-10-22 16:02:21 +11:00
Michael Hoang
7bb6366f40 users: use lib.escapeShellArgs instead of custom version 2024-10-22 16:02:21 +11:00
Michael Hoang
26f7e45fb1 users: use lib.escapeShellArgs for sysadminctl -addUser 2024-10-22 16:02:21 +11:00
Michael Hoang
cb2e5fa6c5 users: use lib.escapeShellArg for sysadminctl -deleteUser 2024-10-22 16:02:21 +11:00
Michael Hoang
9a6b12b9ef users: use lib.escapeShellArg for id -u 2024-10-22 16:02:21 +11:00
Michael Hoang
5b873c48ac users: set default for users.users.<user>.name 2024-10-22 16:02:21 +11:00