Commit graph

2298 commits

Author SHA1 Message Date
Sam
eaacfa1101
apply should return null if the argument is not a list (#1581) 2025-09-04 19:58:58 +00:00
Nathan Henrie
349b2c66a9 apply should return null if the argument is not a list
Fixes https://github.com/nix-darwin/nix-darwin/issues/1578
2025-09-04 13:34:55 -06:00
Sander
165ff3069d
tests: remove placeholder package override in github-runner test 2025-08-29 13:34:15 +02:00
Sander
f910ac37b6
github-runner: fix the nodeRuntimes option
The conditional override was intended to be backwards-compatible with older runner packages without the `nodeRuntimes` argument.
However, `override` doesn't yield default arguments, so the override was never applied.

This commit removes the conditional entirely since `nodeRuntimes` was added back in 24.05.
2025-08-28 12:51:30 +02:00
Sam
8df64f8196
Application 'linking' done right (#1396) 2025-08-22 01:17:29 +00:00
Sam
3a0a38a1e7
launchd+defaults: Escape XML generated by toPlist (#1529) 2025-08-21 04:49:33 +00:00
Sander
7d6644bdb6
github-runner: add support for node24 2025-08-18 16:45:51 +02:00
Sam
7220b01d67
programs/fish: add shellAbbrs config (#1563) 2025-08-15 16:23:30 +00:00
Sam
f5ad8e3e76
ci: bump macOS version (13 -> 14) (#1569) 2025-08-15 15:57:17 +00:00
Sam
585cd058e8
ci: bump macOS version (13 -> 14)
The runners from macOS 14 on default to aarch64, so this will also
transition us away from x86_64
2025-08-14 20:53:51 -07:00
Elliot
6f24595362
fish: add shellAbbrs config
Co-authored-by: Sam <30577766+Samasaur1@users.noreply.github.com>
2025-08-14 14:56:43 +08:00
Linnnus
f0b44d6854 Add eval warning 2025-08-09 17:39:49 +02:00
Linnnus
23acc59c99 Update tests
Tests that search for specific commands in the generated activation
script obviously need updating.
2025-07-01 21:05:30 +02:00
Linnnus
66911b7d16 Remove manual escaping 2025-07-01 21:04:57 +02:00
Linnnus
423929a533 Escape XML generated by toPlist 2025-07-01 18:50:11 +02:00
Sam
e04a388232
readme: bump nixpkgs stable version; update flake guide (#1521) 2025-06-30 20:05:18 +00:00
iLillie
a79b28f2fa readme: update flake guide 2025-06-30 17:12:57 +02:00
iLillie
b866fbb28b readme: bump nix stable version 2025-06-30 17:12:14 +02:00
Sam
425c929e20
github-runner/service.nix: fix missing argument in workDir assertion (#1526) 2025-06-30 07:55:51 +00:00
ed9w2in6
8828770125 fix: add test cases and expected output 2025-06-30 05:57:03 +08:00
ed9w2in6
44c5d10416 fix: prevent example of persistent-others from evaluating 2025-06-30 05:40:34 +08:00
ed9w2in6
5875113d74 feat: make persistent-others similar to the new persistent-apps
This is backward compatible via convertion function provided for
coercedTo.

Fixes: #968, #982, #1398
2025-06-30 05:40:34 +08:00
Tom McLaughlin
7f9694a4be github-runner/service.nix: fix missing argument in workDir assertion 2025-06-29 13:43:52 -07:00
Sam
1dd19f19e4
nix.nixPath: Do not use environment.darwinConfig if set to null (#1469) 2025-06-22 18:56:08 +00:00
Emily
bffbd4a6c4
networking.applicationFirewall: init (#1520) 2025-06-22 18:43:41 +00:00
Sizhe Zhao
f2457a22c8
systems.defaults.alf: deprecate 2025-06-23 00:46:57 +08:00
Sizhe Zhao
caa59bf50a
networking.applicationFirewall: init 2025-06-23 00:46:57 +08:00
Sam
04a3412801
homebrew: allow setting greedy for all casks by default (#1382) 2025-06-22 06:00:51 +00:00
Michael Hoang
ff139e8183
Remove deprecated homebrew tap example (homebrew/cask-fonts) (#1515) 2025-06-22 02:18:14 +00:00
Michael Hoang
be2d7d6535 applications: ensure sufficient permissions before updating apps 2025-06-21 14:54:32 +07:00
‮rekcäH nitraM‮
1f9cca7781 Copy applications instead of linking them to make macOS happy
All existing attempts fell short.
So we fall back to plain old copying applications over.

Problems with alternatives:

- Symlinking: Spotlight doesn't index symlinks. Therefore one cannot use
Spotlight to find or open the apps. Also they don't show up in
LaunchPad.

- Trampolines: Apples Security & Privacy doesn't get the concept and
shows them with the wrong name. Having an app open during an update will
also make it show up twice in the Dock.

- Aliasses: Require either AppleScript (a permission we don't want to
have, as it easily bypasses Apples TCC) or extra tools (that would be
ok), but also Aliasses are not categorized as 'Application' by
SpotLight.

- Directory Hardlinks are not supported by APFS - but also wouldn't work
cross volume.

- clonefile also doesn't work cross-volume.

Which all leads us back to Don Copine and Pastone. *sigh*
2025-06-21 14:54:32 +07:00
‮rekcäH nitraM‮
21d733a51f applications: reformat 2025-06-21 14:54:24 +07:00
Michael Hoang
0d71cbf88d
programs/ssh: backport knownHosts changes (#1517) 2025-06-19 09:27:36 +00:00
Michael Hoang
82566dd254 programs/ssh: remove with lib; 2025-06-19 16:08:37 +07:00
Michael Hoang
a991859d1f nixos/ssh: undeprecate knownHosts.«name».hostNames
Backport e9f17a9f45

Co-authored-by: pennae <github@quasiparticle.net>
2025-06-19 16:08:09 +07:00
Michael Hoang
9d5b27bc93 modules/programs/ssh: knownHosts -> extraKnownHosts
Backport 8fa2e787f1

Co-authored-by: Taeer Bar-Yam <taeer@bar-yam.me>
2025-06-19 16:07:11 +07:00
Michael Hoang
2d257c09a1 programs.ssh.knownHosts: update example to be an attrset
Backport 4f11c06fac

Co-authored-by: Florian Klink <flokli@flokli.de>
2025-06-19 16:05:09 +07:00
Michael Hoang
04b04f4b9d programs/ssh: move to match path in NixOS 2025-06-19 10:45:32 +07:00
Garrett Hopper
f67a4856c3 Update homebrew module documentation and examples
- Replace deprecated homebrew/cask-fonts with apple/apple tap example
- Update documentation links from archived homebrew-bundle to brew.sh/Brew-Bundle-and-Brewfile
- Update source file references to new location in main brew repository
2025-06-17 05:52:35 -05:00
Sam
2f140d6ac8
Preserve PATH variable when using sudo for Homebrew (#1503) 2025-06-14 04:00:26 +00:00
Brian Romanko
0721726e21
Wrap the call with env 2025-06-13 16:49:58 -07:00
Brian Romanko
300af6fcc5
Preserve PATH variable when using sudo
Some systems set `secure_path` in sudoers. When this is set
the `PATH` variable is not set in the sudo environment. Using
`--preserve-env=PATH` ensures that the PATH env var is set properly
in those systems.

This is similar to the issue with [darwin-rebuild](https://github.com/nix-darwin/nix-darwin/issues/798)
not working with sudo on these systems.
2025-06-13 16:49:57 -07:00
Emily
72c88d5928
Avoid confusing users with future deprecations (#1499) 2025-06-12 14:47:19 +00:00
Sam
e2da3338ab
etc: add known hashes for zprofile and zshrc in macOS 26 beta 1 (#1510) 2025-06-12 06:51:43 +00:00
Sam
63c31af37a
etc: add known hashes for zprofile and zshrc in macOS 26 beta 1
This also includes versions of /etc/zshrc with both the official and
DeterminateSystems installers.
2025-06-11 01:43:35 -07:00
Sam
19346808c4
programs/direnv: fix silent option (#1491) 2025-06-06 07:19:53 +00:00
Duc Nghiem-Xuan
daf8e22831 programs/direnv: add finalPackage readonly option 2025-06-06 15:49:37 +09:00
Sam
9753a8706b
feat: add option programs.zsh.enableAutosuggestions (#1433) 2025-06-06 06:02:11 +00:00
Duc Nghiem-Xuan
fb27326bbc programs/direnv: fix silent option 2025-06-05 17:49:17 +09:00
Sam
fa6120c32f
defaults: support AppleKeyboardUIMode = 2 for newer macOS versions (#1501) 2025-06-04 04:52:25 +00:00