Commit graph

2170 commits

Author SHA1 Message Date
Siddhartha Sahu
58f268e065
Update CHANGELOG 2025-05-17 12:15:18 -04:00
Siddhartha Sahu
a4cc54778d
Update repo link 2025-05-17 12:14:14 -04:00
Emily
8e251e4534
The Plan, phase 1 (#1341) 2025-05-17 16:02:22 +01:00
Emily
b9e580c113 changelog: document user activation removal 2025-05-16 16:34:31 +01:00
Emily
a0e4dd2af9 activation-scripts: move createRun after checks
The checks should no longer depend on `/run`, so this avoids modifying
the system before they run.
2025-05-16 16:34:31 +01:00
Emily
7e5c6f7e21 etc: merge etcChecks into checks
The `activate-system` daemon will now run all the checks, which seems
like probably a good idea anyway?
2025-05-16 16:34:31 +01:00
Emily
af62c4d176 checks: make nixPath check more helpful 2025-05-16 16:34:31 +01:00
Emily
051283a895 {activation-scripts,activate-system}: purify environment again 2025-05-16 16:34:31 +01:00
Emily
516dbe1fa4 darwin-rebuild: require running as root 2025-05-16 16:34:31 +01:00
Emily
40d2a159cc tests: remove stray activate-user references 2025-05-16 16:34:31 +01:00
Emily
2ca294741f activation-scripts: get rid of user activation
🎉

Closes: #96
2025-05-16 16:34:31 +01:00
Emily
0abf012666 users: refuse to delete the primary user 2025-05-16 16:31:17 +01:00
Emily
bed70a84af {environment,nix}: remove references to $HOME
These can’t be relied upon in a post‐user‐activation
world. Technically a breaking change, if anyone has their home
directory outside of `/Users` or is using `root` for this, but, well,
I did my best and these are legacy defaults anyway.
2025-05-16 16:31:17 +01:00
Emily
2892da83ea applications: use system.primaryUser for the legacy path
System activation scripts shouldn’t (and soon won’t be able to)
rely on `$HOME` being the primary user’s.
2025-05-16 16:31:17 +01:00
Emily
f47b8062cb defaults: move userDefaults to system activation 2025-05-16 16:31:17 +01:00
Emily
7877cba5f5 launchd: move userLaunchd to system activation
I’m not *completely* certain that this handles user agents
correctly. There is a deprecated command, `launchctl asuser`, that
executes a command in the Mach bootstrap context of another user`.
<https://scriptingosx.com/2020/08/running-a-command-as-another-user/>
claims that this is required when loading and unloading user agents,
but I haven’t tested this. Our current launchd agent logic is pretty
weird and broken already anyway, so unless this actively regresses
things I’d lean towards keeping it like this until we can move
over entirely to `launchctl bootstrap`/`launchctl kickstart`, which
aren’t deprecated and can address individual users directly. Someone
should definitely test it more extensively than I have, though.
2025-05-16 16:29:17 +01:00
Emily
c449918bfb homebrew: move to system activation
This adds an optional explicit `homebrew.user` option that allows users
to avoid setting `system.primaryUser`, partly as a proof of concept
of what the interfaces should look like in the future. Homebrew only
officially support one global installation, so a singleton matches
upstream’s expectations; in practice, it may be useful for us to
nest this into `users.users.*.homebrew` instead, at the expense of
being an unsupported setup if used to its full potential. Since
that would be a breaking change to the inteface anyway, I think
adding `homebrew.user` for now is acceptable. (I think one native
Apple Silicon and one Rosetta 2 Homebrew installation – under
`/opt/homebrew` and `/usr/local` respectively – may be exceptions
to this lack of upstream support, but that would be complicated to
support even with `users.users.*.homebrew`.)

I’m not entirely sure where in system activation this should
go. Probably after the user defaults and launch agents stuff, to match
the existing logic in user activation, and I lean towards doing it
as late as possible; too early and we might not have the users and
groups required to bootstrap a Homebrew installation set up, but
as Homebrew installations could be fiddly and fail, doing it in the
middle could leave a partially‐activated system.

Probably it should be done in a launch agent or something instead, but
this is my best guess as to the appropriate place for now. The downside
is that activation scripts generally won’t be able to assume that the
Homebrew prefix is populated according to the current configuration,
but they probably shouldn’t be depending on that anyway?
2025-05-16 16:29:17 +01:00
Emily
52ee8c57c2 primary-user: init 2025-05-16 16:29:17 +01:00
Michael Hoang
8817b00b00
defaults: add com.apple.iCal for managing Calendar.app (#1446) 2025-05-16 13:12:40 +10:00
Michael Hoang
14737a9676 defaults: add com.apple.iCal for managing Calendar.app 2025-05-16 12:52:49 +10:00
Michael Hoang
b6fff20c69
defaults: update docs for AppleInterfaceStyle (#1445) 2025-05-15 18:28:21 +10:00
Michael Hoang
d693997a32 defaults: update docs for AppleInterfaceStyle
Eventually we should implement a special type that allows deleting
values.
2025-05-15 18:02:47 +10:00
Michael Hoang
f0fbf2dbe7
_1password{,-gui}: fix package not being used (#1444) 2025-05-15 17:29:56 +10:00
Michael Hoang
f2753a4ca6 _1password{,-gui}: fix package not being used 2025-05-15 17:01:26 +10:00
Michael Hoang
f88be00227
Merge pull request #1442 from lheckemann/gitlab-runner-fix
gitlab-runner: write config as toml, don't clobber existing file
2025-05-13 22:20:02 +10:00
Sam
d642c98560
Merge pull request #1439 from dermetfan/buildkite-multi-tags 2025-05-12 10:07:22 -07:00
Linus Heckemann
4cabc9c286 gitlab-runner: write config as toml, don't clobber existing file
The previous command would fail because of datetimes not being
representable as JSON, wiping the config entirely because of the
`sponge` invocation that doesn't care whether the program piped in
fails.
2025-05-12 13:17:31 +02:00
Robin Stumm
846444354b services/buildkite-agents: support multi-tags 2025-05-12 12:59:13 +02:00
Michael Hoang
6cb36e8327
Merge pull request #1438 from Enzime/push-qztkxuoksrpv
programs/_1password{,-gui}: init modules
2025-05-08 22:50:54 +10:00
Michael Hoang
c36b57f219 programs/_1password-gui: init module 2025-05-08 20:17:13 +10:00
Michael Hoang
24c2d2bab7 programs/_1password: init module 2025-05-08 20:16:50 +10:00
Michael Hoang
760a11c870
Merge pull request #1432 from WHForks/replacevars
nix-tools: use replaceVarsWith
2025-05-03 16:49:02 +10:00
WeetHet
a6d73d0904 nix-tools: use replaceVarsWith 2025-05-01 18:24:30 +03:00
Michael Hoang
4515dacafb
Merge pull request #1425 from Enzime/push-luyktrtqqskl
networking: allow users to override FQDN
2025-04-28 14:58:41 +10:00
Michael Hoang
9603417da1 networking: allow users to override FQDN
Backport of https://github.com/NixOS/nixpkgs/pull/391522
2025-04-28 14:22:30 +10:00
Michael Hoang
43975d782b
Merge pull request #1423 from Enzime/push-kpkrwzkroylt
networking: backport `domain`, `fqdn` and `fqdnOrHostName` options
2025-04-12 19:29:39 +02:00
Michael Hoang
751a96bc1f networking: backport domain, fqdn and fqdnOrHostName options
f675531bc7/nixos/modules/tasks/network-interfaces.nix (L580-L618)
2025-04-12 19:11:10 +02:00
Michael Hoang
113883e37d
Merge pull request #1388 from ivankovnatsky/master
services/netdata: add cacheDir option
2025-04-09 20:44:32 +02:00
Michael Hoang
73d59580d0
Merge pull request #1400 from dwt/linux-builder-working-directory
Linux builder: working directory rename and cleanup
2025-04-01 17:36:52 +09:00
Michael Hoang
1b8d711826 linux-builder: format 2025-04-01 17:09:49 +09:00
‮rekcäH nitraM‮
b8939c4fe4 linux-builder: remove /nix/store external directory when disabled
When /nix/store internal directories get renamed, they just don't get
into the next version of your system closure and are thus no problem to
rename. But state in the system is a problem, as there is no process to
remov eit. Thus we need to do it ourselves.
2025-04-01 17:09:19 +09:00
‮rekcäH nitraM‮
a175c68f3f linux-builder: upgrade working directory
The working directory was still using an old name of the project, which
made it uneccessary hard to understand why that directory was used
exactly.
2025-04-01 17:07:02 +09:00
Michael Hoang
eaff8219d6
Merge pull request #1410 from Enzime/push-kklymxxksrnp
nix-tools: re‐add `nixPackage`
2025-03-31 00:54:11 +09:00
Emily
e7bd2f8f2f nix-tools: re‐add nixPackage
(With some tweaks to handle `nix.enable` and order it at a more
sensible position in the `$PATH`.)

The installers actually install Nix into `root`’s profile for some
reason, which means that the path’s prioritization backfires when
the script runs as root and we’re managing the Nix installation. When
running `darwin-rebuild` as a normal user, this wasn’t a problem.

Maybe we should just have a check to make sure there’s no conflicting
Nix in `root`’s profile – it seems pretty bad for `root` to
get the wrong Nix – but it would trigger for almost everyone,
which seems kind of annoying. I guess we could automatically
remove it from `root`’s profile if it matches what’s in
`/nix/var/nix/profiles/default`…

This reverts commit 02232f71c5.
2025-03-31 00:34:55 +09:00
Emily
53d0f0ed11
Merge pull request #1407 from emilazy/push-xktutyxmrvks
website: try to fix
2025-03-29 04:17:53 +00:00
Emily
75a7fb885d website: try to fix redirect
It seems like the `#readme` is getting stripped after load, maybe
because of the `?tab=…` stuff. Hoping this will fix it.
2025-03-29 04:13:33 +00:00
Emily
516590cf12 website: fix manual path 2025-03-29 04:13:00 +00:00
Emily
feb64b5364
Merge pull request #1406 from emilazy/push-nwzyqrynuvyo
ci: deploy the website from GitHub Actions
2025-03-29 04:10:02 +00:00
Emily
2c77fdbfba ci: deploy the website from GitHub Actions 2025-03-28 19:44:24 +00:00
Emily
a5af2a5b22 readme: use logo from GitHub attachments
Avoids churn for now while moving around site stuff.
2025-03-28 17:05:16 +00:00