1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-06 08:47:00 +00:00
Commit graph

271 commits

Author SHA1 Message Date
Domen Kožar
b3de9dded8
Merge pull request #228 from malob/sudo-touchid
Add option to enable sudo authentication with Touch ID
2022-09-20 13:42:31 +01:00
toonn
ed1e73d01e
applications: Drop store prefix to generalize
While the Nix store is almost always at `/nix/store`, we shouldn't
assume it to be. Checking only the trailing part of the link is less
exact but removes this bad assumption.

I also added a check for the symlink's contents when overwriting it to
more accurately check whether we own it and should replace it.
2022-09-13 14:57:50 +02:00
toonn
fbe795f39d
applications: Symlink Nix Apps to /Applications
This PR supercedes #226.

So far application bundles were always linked to `~/Applications` or
`~/Applications/Nix Apps` if the former was an existing directory.

In nix-community/home-manager#1341 a conflict was found with suggested
new Home Manager behavior, where applications installed through Home
Manager would end up in `~/Applications/Home Manager Apps`. This was in
an attempt to make them discoverable through Spotlight but further
investigation suggest Spotlight does not pick up symlinked apps (details
in the issue).

However, there are other programs that expect to be able to write to
`~/Applications` so taking over the directory is unfortunate.

PR #226 dropped linking `~/Applications` and instead made sure the
directory exists so we can always link in `~/Applications/Nix Apps`.

After further discussion in #macos:nixos.org we came to the conclusion
that we shouldn't link applications to a user directory at all. Since we
manage packages for multiple users, application bundles should go in
`/Applications`.

Because previous code will likely leave a symlink at
`~/Applications/{,Nix Apps}`, which will become dangling once the path
it links to is garbage collected from the store we test to see if a link
exists and it conforms to the path we're expecting and if it does remove
it.
2022-09-13 14:57:46 +02:00
Nicolas Berbiche
9c76fbf20f
Disable taking control of ~/Applications folder
Programs like Steam add applications to ~/Applications and such.

This commit disables linking ~/Applications to nix-darwin Applications
in the /nix/store and makes nix-darwin use a subfolder within
~/Applications.
2022-09-13 14:57:46 +02:00
Malo Bourgon
5fa362c32f Transition to using native floats 2022-08-29 15:39:16 -07:00
Domen Kožar
5af1aa51f6
Merge pull request #490 from malob/update-nix-module
Bring `nix` module back in sync with the NixOS module (as much as possible)
2022-08-22 09:55:24 +02:00
Jan Schmitt
fbca12e524
feat: provide option to display the appswitcher on all displays 2022-08-20 22:48:59 +02:00
Malo Bourgon
ffc8ec5c9a Add .nix-defexpr to NIX_PATH the way the NixOS module does 2022-08-16 17:41:08 -07:00
Malo Bourgon
7e74c1c9fb Move build user options to nix module to improve overlap with NixOS
Also add `config.ids` like in NixOS.
2022-08-16 10:41:51 -07:00
Pat McLaughlin
c82b2327e5 add mouse scaling system setting 2022-08-06 11:19:25 -04:00
Daniel Santa Cruz
2c6b9d9144 Add option to set com.apple.screencapture type 2022-07-12 14:50:50 -06:00
Malo Bourgon
ca57e8bcdb Change option name and switch to using activation script 2022-06-30 13:32:46 -07:00
Malo Bourgon
1d98da837f Add option to enable sudo authentication with TouchID 2022-06-30 13:31:42 -07:00
Daiderd Jordan
1a387b8b3e
Merge pull request #447 from dsyang/additional-options
add options for configuring activity monitor
2022-04-25 23:03:55 +02:00
Matthew Toohey
a4f5ff411e Fix synthetic.conf instructions 2022-04-14 20:07:28 -04:00
Domen Kožar
8a1a454873
Merge pull request #450 from midchildan/fix/fxpreferredviewstyle
fix: incorrect default for FXPreferredViewStyle
2022-03-26 07:08:58 +00:00
Brian Leung
af3eb87e82
Add NSGlobalDomain.NSAutomaticWindowAnimationsEnabled setting
* modules/system/defaults/NSGlobalDomain.nix: Define.
2022-03-25 23:04:45 -07:00
midchildan
f6161c1ed8
fix: incorrect default for FXPreferredViewStyle 2022-03-25 00:37:17 +09:00
Dan Yang
faaa12ad24 add options for configuring activity monitor 2022-03-14 10:17:35 -07:00
Dan Yang
37e42a9fe4 add option to show hidden files everywhere 2022-03-14 10:04:28 -07:00
Dan Yang
d61d8b3bd0 additional finder options 2022-03-10 00:43:27 -08:00
Dan Yang
d1c5344222 option to show all hidden files 2022-03-10 00:12:30 -08:00
Daiderd Jordan
af65e183c3
Merge pull request #419 from tboerger/dock-features
modules/system/defaults/dock.nix: add options for hot corners
2022-01-17 21:57:10 +01:00
Thomas Boerger
4c243ea8c8
modules/system/defaults/dock.nix: make sure to use positive ints for hot corners 2022-01-17 00:33:29 +01:00
Thomas Boerger
d053e8ade5
modules/system/defaults/dock.nix: add options for hot corners 2022-01-17 00:33:29 +01:00
Chris Montgomery
1cf5705283
defaults: add options for common universalaccess settings 2021-12-24 17:52:17 -05:00
Chris Montgomery
7709d31d76
defaults-write: sort variables and lists by name and option 2021-12-24 17:29:44 -05:00
Chris Montgomery
f07acb443a
defaults-write: formatting 2021-12-24 17:20:15 -05:00
Daiderd Jordan
44da835ac4
add forward compatibility for literalExample deprecation
Fixes #367
2021-10-23 15:06:42 +02:00
cherryblossom000
99ff0b66ca
Fix some typos 2021-10-21 20:37:43 +11:00
Daiderd Jordan
f3c3b8db6e
Merge pull request #351 from nosewings/master
system.defaults: enable automatic light/dark mode
2021-09-14 18:53:17 +02:00
Jason Felice
998fbfc039 defaults: magic mouse option 2021-08-24 17:13:48 -04:00
Nicholas Coltharp
7a3f541d5c system.defaults: enable automatic light/dark mode 2021-08-06 18:43:03 -05:00
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
3b28c4675a
Merge pull request #262 from malob/brew-bundle
Add Homebrew Bundle module
2021-02-17 18:46:15 +01:00
Daiderd Jordan
3cf11923eb
use --dry-run check to re-apply system patches 2020-12-19 11:56:51 +01:00
Malo Bourgon
e1425db70d Move programs.brew-bundle to homebrew 2020-12-17 13:03:57 -08:00
Malo Bourgon
31b0d5cb59 Move brew-bundle activation to user 2020-12-08 10:33:46 -08:00
Malo Bourgon
c3bddd3e91 Add Homebrew Bundle module 2020-12-08 09:47:52 -08:00
Daiderd Jordan
6c6eb8ace6
Merge pull request #254 from stephank/fix-shells
Add /bin/dash to shells
2020-11-26 20:09:13 +01:00
Daiderd Jordan
e1064b0c69
Merge pull request #251 from awseward/awseward/SwipeNavigateWithScrolls
Add options for MacOS swipe navigation
2020-11-26 19:53:08 +01:00
Stéphan Kochen
d0d89fda1d Add /bin/dash to shells 2020-11-21 20:07:26 +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
Andrew Seward
5d0ed66ba9 Add options for swipe navigation
One for trackpad, one for mouse. I don't know much about the mouse side
of things, but thought I'd at least include it to be comprehensive.
2020-11-14 22:51:54 -08:00
Daiderd Jordan
74eb216078
remove nix 1.x config compatibility 2020-10-25 15:56:29 +01:00
Daiderd Jordan
0dba44e04c
disable NIX_PATH checks when using flakes 2020-10-25 12:56:39 +01:00
Daiderd Jordan
1216e9e0aa
split out flake overrides into a separate module 2020-10-25 12:55:55 +01:00
c4710n
bf0ac204bd add new option - system.keyboard.swapLeftCommandAndLeftAlt 2020-10-23 22:47:38 +08:00
Daiderd Jordan
4a31cba84c
add flake versions 2020-10-21 18:30:56 +02:00