1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-05 16:27:03 +00:00
Commit graph

191 commits

Author SHA1 Message Date
Daiderd Jordan
d56312be06
activation-scripts: create /run
In case this was removed or not bootstrapped by the installer.
2019-06-05 23:10:07 +02:00
Daiderd Jordan
7941b13682
version: fix description 2019-06-05 21:45:47 +02:00
Daiderd Jordan
3ba909eb2d
version: add default darwinRevision
There's no channel for darwin so this can be unavailable if a tarball or
shallow clone is used.
2019-05-04 21:43:47 +02:00
Daiderd Jordan
ba29af7ae3
version: include darwin metadata in system label
This makes it possible to trace back what version of both darwin and
nixpkgs the system was built with.
2019-05-04 21:11:49 +02:00
Daiderd Jordan
23d8c6ca3d
documentation: add module for darwin manual
Fixes #72
2019-05-04 15:38:17 +02:00
Daiderd Jordan
58aa5bf185
nix: make nix.nixPath merge by default
Since named entries can be overridden now based on ordering now merging
is only a problem for removing one of the default search paths, in which
case a higher priority eg. mkForce can be used.

	{
	  nix.nixPath = [{ darwin-config = "/darwin.nix"; }];
	}

Will result in

	[ "darwin-config=/darwin.nix" "/nix/var/nix/profiles/per-user/root/channels" "$HOME/.nix-defexpr/channels" ]

Fixes #137
2019-05-01 12:42:31 +02:00
Daiderd Jordan
2430e72100
Merge pull request #132 from ben-z/add-defaults-configs
Add defaults configs
2019-03-22 20:52:34 +01:00
Daiderd Jordan
b68f77b404
launchd: ensure user LaunchAgents exist
Apparently this doesn't exist by default, so make sure it's created
first.

Fixes #134
2019-03-22 20:48:58 +01:00
Ben Zhang
f17fb87fab
Add NSGlobalDomain configs 2019-03-02 21:51:13 -08:00
Ben Zhang
a08546158d
add trackpad configs: ActuationStrength, FirstClickThreshold, SecondClickThreshold 2019-03-02 21:50:48 -08:00
Daiderd Jordan
d00d00998e
darwin: replace usages of nix-instantiate --eval with --find-file 2019-02-24 22:27:41 +01:00
Daiderd Jordan
c48c4c701a
Merge pull request #121 from thefloweringash/channel-version-info
system-version: get version information from channels
2019-02-23 11:35:52 +01:00
Daiderd Jordan
4d892e7774
fonts: rewrite activation
The new implementation is a bit smarter and only updates fonts that
changed.  But more importantly /run/current-system isn't used anymore
which breaks initial activation and installs the previous set of fonts
instead of the one in the new system.

Fixes #115
2019-02-17 11:31:40 +01:00
Andrew Childs
349a4837cf system-version: get version information from channels 2019-01-19 15:02:55 +09: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
Daiderd Jordan
9a192471bb
Merge pull request #108 from thefloweringash/dock-show-recents
system.defaults.dock: add `show-recents` option
2018-10-11 19:29:04 +02:00
Daiderd Jordan
166560ca76
Merge pull request #102 from peel/f-fonts-module
initialise fonts module
2018-10-11 19:10:42 +02:00
Andrew Childs
4cfb4b084e system.defaults.dock: add show-recents option 2018-10-11 11:58:17 +09:00
Luigy Leon
a15b59594f Fix quoting for nixPath check 2018-09-30 10:56:32 -04:00
Piotr Limanowski
7a7cbdc165 initialise fonts module 2018-09-30 13:22:24 +02: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
a893723b95
activation: fix missing /sbin entries in PATH 2018-08-01 21:08:13 +02:00
Kirill Elagin
26bab2fd32 installer and activation: Sanitise PATH
This makes sure that the installation and activation processes are “pure”,
i.e. they use only binaries from nixpkgs or ones that come with macOS.

Closes #86.
2018-06-29 18:51:41 +03:00
Daiderd Jordan
cd049bfdf6
nix: use pkgs.nix by default instead of the default profile
This fixes version detection for 2.0.
2018-03-29 21:10:18 +02:00
cmacrae
9a1499b128 defaults: set screencapture.location's default to null 2018-03-01 13:20:16 +00:00
cmacrae
55f4331e73 defaults: Add screencapture.location 2018-02-27 17:24:45 +00:00
Daiderd Jordan
693c89f867
launchd: run unload without -w
The service will be removed anyway.
2018-01-29 23:14:47 +01:00
Daiderd Jordan
dc33fe3d89
system: use preferLocalBuild for simple derivations
Most of the builds like system.build.etc will be faster when built
locally, they also don't depend on CC.
2018-01-21 13:46:30 +01: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
Daiderd Jordan
e3281c90cf
defaults: move com.apple.smb.server to /activate
Currently fails with permission errors.
2018-01-17 23:10:57 +01:00
Daiderd Jordan
81bdd38e8d
defaults: add ServerDescription for sharing services 2018-01-17 22:36:06 +01:00
Daiderd Jordan
bd220c453d
launchd: unlink services 2018-01-15 08:51:03 +01:00
Daiderd Jordan
29f9fb52b3
activation-scripts: include system in PATH
This makes rollback more reliable by using the same version of tools
that where used previously. For example nix is used during the
activation checks.
2018-01-14 22:02:27 +01:00
Daiderd Jordan
243651e398
checks: add test for /run 2018-01-13 22:50:48 +01:00
Daiderd Jordan
f6b9e43a84
checks: add /etc/profile check from bootstrap script 2018-01-13 19:45:57 +01:00
Daiderd Jordan
ad3891f07a
etc: skip warning when target has references to /etc/static 2018-01-13 18:10:48 +01:00
Daiderd Jordan
174a36a296
activation: rename pre/post hooks
Renamed extraPostActivation and extraUserPostActivation.
2018-01-13 17:12:02 +01:00
Daiderd Jordan
789623213e
checks: impure darwin-config error message 2018-01-13 15:40:07 +01:00
Daiderd Jordan
bf72128177
toplevel: don't depend on NIX_PATH for the CHANGELOG 2018-01-13 14:20:13 +01:00
Daiderd Jordan
b8713d540c
users: add options for user creation 2018-01-13 13:42:49 +01:00
Daiderd Jordan
b593f31822
users: add options to create user groups 2018-01-13 02:01:15 +01:00
Daiderd Jordan
2989a747db
keyboard: add option for remapping Tilde on non-us keyboards 2018-01-10 19:57:23 +01:00
Daiderd Jordan
d05229ca0d
keyboard: add warning when enableKeyMapping is not set 2018-01-08 22:04:32 +01:00