1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00
Commit graph

1248 commits

Author SHA1 Message Date
Domen Kožar
14a12e9ee7
Merge pull request #499 from Enzime/karabiner-elements
Karabiner-Elements
2022-09-19 13:32:50 +01:00
Domen Kožar
de4d41ee9f
Merge pull request #526 from lockejan/fix/font-tests
fix: adapt fonts tests to use newer module api
2022-09-18 10:10:36 +01:00
Domen Kožar
65082fa7b1
Merge pull request #516 from lockejan/docs/readme
Docs/readme
2022-09-18 10:09:52 +01:00
Domen Kožar
c703f79e3e
Merge pull request #528 from sikmir/yabai
yabai: set default package
2022-09-18 10:08:35 +01:00
Domen Kožar
127acf9c3f
Merge pull request #524 from sellout/tailscale
Add tailscale service module
2022-09-18 10:08:04 +01:00
Nikolay Korotkiy
4eed79d4ac
yabai: set default package 2022-09-16 17:46:17 +03:00
Jan Schmitt
c5a241fc64
fix: adapt fonts tests to use newer module api 2022-09-15 20:26:54 +02: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
Greg Pfeil
7698ffce98 Remove lib.mdDoc usage 2022-09-09 11:40:42 -06:00
Greg Pfeil
cfd60e8c54 Add tailscale service module 2022-09-09 11:26:49 -06:00
Domen Kožar
3b69bf3cc2
Merge pull request #498 from malob/improve-homebrew-module
Add ability to configure all known Brewfile line arguments with `homebrew` module
2022-09-06 16:35:28 +01:00
Jan Schmitt
a498eb0695
docs: add short introduction
closes #68
2022-09-05 21:45:24 +02:00
Jan Schmitt
ad36f9fa06
docs: extend documentation
* mention prerequisite of nix
* explicitly mention implications when using the uninstaller.
* mention channel ownership when using nix as a daemon-service.
* add additional ways to work with the documentation.
* give another example how to run tests
2022-09-02 14:34:06 +02:00
Malo Bourgon
9b3104f90d Update changelog 2022-09-01 10:50:23 -07:00
Malo Bourgon
2ddebb3189 Improve documentation of homebrew module 2022-09-01 10:50:23 -07:00
Malo Bourgon
7710d1d7d6 Add global into a submodule
* Add `homebrew.global.autoUpdate` option.
* Remove `homebrew.global.noLock` option, and replace it with
  `hombrew.global.lockfiles`.
2022-09-01 10:50:21 -07:00
Michael Hoang
ed4d2d69a0 karabiner-elements: don't use scripts
`launchd.daemons.*.script` are stored in `/nix/store` which might not be
mounted when the launch daemon attempts to start.
2022-09-01 14:39:26 +10:00
Malo Bourgon
b547a7acb0 Create submodule for activation related homebrew options
* Adds `homebrew.onActivation` submodule.
* Moves `homebrew.autoUpdate` to `homebrew.onActivation.autoUpdate`.
* Moves `homebrew.cleanup` to `homebrew.onActivation.clean`.
* Adds new option `homebrew.onActivation.upgrade`.
2022-08-31 18:40:21 -07:00
Malo Bourgon
55e198cf5a Add somes tests for homebrew module 2022-08-30 13:30:05 -07:00
Malo Bourgon
46032bad42 Cleanup/improve homebrew module's code, documentation, and option descriptions 2022-08-30 13:30:03 -07:00
Malo Bourgon
02a38c6a89 Enable defining options for casks using submodule 2022-08-30 12:32:16 -07:00
Malo Bourgon
56031db9c1 Enable defining options for brews using submodule 2022-08-30 12:32:16 -07:00
Malo Bourgon
bd93329d6c Enable defining options for taps using submodule 2022-08-30 12:32:16 -07:00
Malo Bourgon
92da7697d1 Add homebrew.caskArgs option 2022-08-30 12:32:14 -07:00
Domen Kožar
80cec5115a
Merge pull request #512 from malob/readme-IRC-to-matrix
Update readme to point to Matrix instead of IRC
2022-08-30 20:09:00 +02:00
Domen Kožar
fb820618be
Merge pull request #510 from malob/convert-to-native-floats
Transition to using native floats for option types
2022-08-30 20:04:44 +02:00
Domen Kožar
db543d325f
Merge pull request #509 from malob/fix-warning-about-HOME
Add `-H` to `sudo nix-env [...]` calls in `darwin-rebuild.sh` to deal with warning
2022-08-30 19:56:26 +02:00
Domen Kožar
be1b9867eb
Merge pull request #511 from malob/fix-launchd-descriptions
Fix launchd options description oddities
2022-08-30 19:54:35 +02:00
Malo Bourgon
42cc9d2c27 Update readme to point to Matrix instead of IRC 2022-08-29 16:33:56 -07:00
Malo Bourgon
241d88ed20 Fix launchd options description oddities 2022-08-29 16:09:38 -07:00
Malo Bourgon
5fa362c32f Transition to using native floats 2022-08-29 15:39:16 -07:00
Malo Bourgon
1da877d28c Add -H to sudo nix-env [...] to deal with warning
After NixOS/nix#6676, the following warning is displayed when running
`darwin-rebuild switch`:
  warning: $HOME ('/Users/jamie') is not owned by you, falling back to the
  one defined in the 'passwd' file.
2022-08-29 11:59:54 -07:00
Domen Kožar
157a3c3c4e
Merge pull request #501 from jab/patch-1
Fix copypasta in simple example
2022-08-29 09:35:18 +01:00
Domen Kožar
0fb911a78a
Merge pull request #507 from misuzu/netbird-module
Add netbird module
2022-08-29 09:34:23 +01:00
Domen Kožar
e6dedb44de
Merge pull request #503 from lockejan/fix/deprecation-warning
fix(gitlab-runner): deprecated literalExample
2022-08-29 09:33:44 +01:00
misuzu
09a45c8458 Add netbird module 2022-08-28 18:42:46 +03:00
Michael Hoang
afcce995bd karabiner-elements: init module 2022-08-28 20:01:28 +10:00
Jan Schmitt
ee4521db7f
fix(gitlab-runner): deprecated literalExample
* replace all occurrence's with literalExpression
* fixes #504
2022-08-26 17:39:26 +02:00
Joshua Bronson
05cab3fc91
Fix copypasta in simple example 2022-08-25 09:43:42 -04:00
Michael Hoang
176c446b97 launchd: add extra KeepAlive options 2022-08-25 00:39:14 +10:00
Domen Kožar
ef0e7f41cd
Merge pull request #289 from angerman/angerman/gitlab-runner
adds gitlab-runner
2022-08-24 10:32:16 +02:00
Domen Kožar
2f3c9bb364
Merge pull request #493 from AlexOwl/patch-1
Fix brewfile behavior to allow cask_args, etc
2022-08-23 16:23:19 +02: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
Domen Kožar
b344a20e80
Merge pull request #471 from tianyaochou/fix-alias-shell-escape
add escape to shell aliases
2022-08-22 09:52:46 +02:00
Domen Kožar
178707551f
Merge pull request #494 from lockejan/appswitcher
feat: provide option to display the appswitcher on all displays
2022-08-22 09:51:43 +02:00
Domen Kožar
0ea1242721
Merge pull request #491 from yonran/387-no-developer-tools-were-found
Fix nix-rebuild --flake without XCode command line tools
2022-08-22 09:50:59 +02:00
Jan Schmitt
fbca12e524
feat: provide option to display the appswitcher on all displays 2022-08-20 22:48:59 +02:00
AlexOwl
903eb89a07
Update homebrew.nix 2022-08-19 21:07:04 +04:00