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
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
Daiderd Jordan
edc3be51ce
keyboard: add options for keyboard mappings
...
Fixes #55
2018-01-08 22:01:44 +01:00
Daiderd Jordan
3bedff357a
etc: make link warnings more noticable
...
Hopefully this helps to make it more obvious that the file will not be
created by nix-darwin. See #65
2018-01-08 19:08:02 +01:00
Daiderd Jordan
52cf461055
Merge pull request #62 from pjan/enh/NSGlobalDomain
...
Adds more NSGlobalDomain options + tests
2018-01-05 18:36:13 +01:00
Daiderd Jordan
7eb4e21075
defaults: add option for NetBIOSName
2018-01-05 00:16:09 +01:00
Daiderd Jordan
3dfc5da1e7
remove unused file
2018-01-05 00:06:14 +01:00
pjan vandaele
01692f870b
Adds more NSGlobalDomain options + tests
2018-01-04 11:59:50 +09:00
Daiderd Jordan
f63f4fe3fb
nix: reload daemon when nix.conf changes
2018-01-03 20:10:24 +01:00
John Wiegley
e8a0378790
Allow for postActivation scripts, that happen last
2018-01-02 12:36:34 -08:00
pjan vandaele
1d8c5d9b79
fix + tests
2018-01-01 09:20:27 +09:00
pjan vandaele
d7e67ce030
float type
2017-12-31 12:15:22 +09:00
pjan vandaele
6aec3fbb50
Adds attrs type for defaults. Adds additional Dock settings.
2017-12-28 12:23:29 +09:00
Daiderd Jordan
ba7202e789
environment-shells: add option to manage /etc/shells
2017-12-13 23:02:11 +01:00
Daiderd Jordan
2c6f80380f
improve git revision detection
...
lib.pathIsDirectory doesn't follow symlinks causing the git revision
detection to fail if NIX_PATH points to a symlink.
2017-12-03 18:22:48 +01:00