1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-15 17:51:01 +00:00
Commit graph

19 commits

Author SHA1 Message Date
Jean-Francois Chevrette
db933d1d41
change inner double quotes to single quotes 2021-05-12 17:47:29 -04:00
Daiderd Jordan
5c3146b75d
users: migrate nixbld -> _nixbld
According to some investigation creating "role" accounts avoids
migration problems when upgrading to certain macOS versions, so create
the build users to match that definition and remove the old ones if
present.

    Role accounts require name starting with _ and UID in 200-400 range
2021-02-17 22:04:54 +01:00
Daiderd Jordan
c6f44ea7ff
installer: handle apfs.util on macOS 11.0 Big Sur
The flages of apfs.util changed in 11.0 so try both cases.

Fixes #249
2020-11-15 15:17:13 +01:00
Daiderd Jordan
db82d8b9af
clarify store/state permission check 2020-10-18 23:31:38 +02:00
Daiderd Jordan
80a8a591a9
installer: try creating /run using synthetic.conf
Since macOS 10.15 Catalina / can't be changed directly anymore.

Fixes #166
2020-03-28 19:12:21 +01:00
Daiderd Jordan
4bffc92b7a
nix: check nix.useDaemon value
This case will cause problems when existing files in /etc are replaced
instead of skipped with a warning, potentially breaking the nix install
in the process.
2019-07-01 22:37:03 +02:00
Daiderd Jordan
8c2b25e60d
nix: fix useDaemon conditions
The nix.useDaemon option enables using a multi-user install without
managing the nix installation with nix-darwin.  The following checks
apply to both cases.
2019-07-01 21:24:29 +02:00
Daiderd Jordan
d00d00998e
darwin: replace usages of nix-instantiate --eval with --find-file 2019-02-24 22:27:41 +01:00
Daiderd Jordan
458d09882e
checks: actually fix gc condition
Introduced in 28710738a3, the check should
_only_ run if the user is not configured not the other way around.
2019-01-04 00:40:10 +01:00
Daiderd Jordan
aedd304983
nix-gc: fix evaluation 2019-01-03 20:59:23 +01:00
Daiderd Jordan
28710738a3
checks: fix gc condition
Don't fail if the user is configured properly.
2019-01-03 19:29:49 +01:00
Daiderd Jordan
8a6c783616
checks: generalize and make them more configurable
All the checks are now aggregated in system.checks.text making it easy
to allow certain checks to be disabled as well as disabling them
alltogether if desired. eg.

    # Disable all checks.
    system.checks.text = mkForce "";

Fixes #117
2019-01-02 21:13:45 +01:00
Daiderd Jordan
72b3648fa0
nix-gc: add check for nix.gc.automatic
This hopefully avoids problems for people that try to enable the service
with a single-user install.

Fixes #118
2019-01-02 20:46:39 +01:00
Daiderd Jordan
0146366b21
Revert "nix: make channel entries for NIX_PATH dynamic"
This reverts commit 95fb1cb2aa, 1324ccf2c1 and e5c988edf1.
2018-10-26 18:05:33 +01:00
Daiderd Jordan
e5c988edf1
checks: include channel paths for NIX_PATH checks 2018-10-26 17:26:14 +01:00
Luigy Leon
a15b59594f Fix quoting for nixPath check 2018-09-30 10:56:32 -04:00
Daiderd Jordan
7750896cc7
checks: update and improve darwin-config message
Now that environment.darwinConfig exists it's a better choice otherwise
multiple NIX_PATH entries need to be added.
2018-08-26 14:47:40 +02:00
Daiderd Jordan
9454e409b7
checks: fail when db permissions are wrong 2018-01-18 00:12:38 +01:00
Daiderd Jordan
c0f913d2ae
checks: rename file 2018-01-17 23:28:54 +01:00
Renamed from modules/system/activation-checks.nix (Browse further)