!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1190 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org200 Servers

Load older messages


SenderMessageTime
10 Mar 2026
@nor1nco:matrix.orgNorincoStill regarding this issue, I just took a look at the lix installer repo and noticed it says 'Based on the Determinate Installer.'(https://git.lix.systems/lix-project/lix-installer#:~:text=A%20fast%2C%20friendly%2C%20and%20reliable%20tool%20to%20help%20you%20use%20Lix%2C%20the%20community%20implementation%20of%20the%20nix%20tooling.%20Based%20on%20the%20Determinate%20Installer.) Does this mean I really should be setting nix.enable = false?02:45:34
@reckenrode:matrix.orgRandy Eckenrode No. Det Nix has a daemon that takes over some system manage stuff. Lix relies on the user (e.g., via nix-darwin) to update it. nix.enable should be true with Lix. 02:53:59
@reckenrode:matrix.orgRandy EckenrodeThe installer is just what does the initial setup (creating the store, etc). The old installer is written in Bash. The Det Nix one (also used by Lix) is written in Rust.02:54:53
@nor1nco:matrix.orgNorincoGot it, thanks for the reply. I looked through the ryan4yin/nix-darwin-kickstarter issues (https://github.com/ryan4yin/nix-darwin-kickstarter/issues/5) and it looks like this compatibility problem has already been fixed.03:04:35
@nor1nco:matrix.orgNorincoimage.png
Download image.png
06:37:23
@nor1nco:matrix.orgNorincoIs there a way to rebuild without using sudo directly? I don't want the generated lock file to be owned by root.06:37:26
@samasaur:matrix.orgsamasaur darwin-rebuild build && sudo darwin-rebuild switch i suppose? 06:38:17
@k900:0upti.meK900 You can just run nix flake update first to generate the lockfile 06:38:26
@samasaur:matrix.orgsamasaurwhat generated lock file are you atalkinga bout06:38:31
@samasaur:matrix.orgsamasaurbecause yeah flake.lock is usually written by other tooling06:38:50
@samasaur:matrix.orgsamasaur* because yeah flake.lock is usually written by other commands06:39:16
@samasaur:matrix.orgsamasaur* what generated lock file are you talking about06:39:25
@nor1nco:matrix.orgNorincosolved the problem by running darwin-rebuild build && sudo darwin-rebuild switch06:43:54
@nor1nco:matrix.orgNorincoimage.png
Download image.png
06:44:18
@samasaur:matrix.orgsamasaur that does work though i would follow k900's suggestion and use nix flake update (if updating) or nix flake lock (if adding a new flake input) instead 06:46:55
@samasaur:matrix.orgsamasaur though on the other hand i'm the kind of insane who has set up my configuration to throw an eval error if i'm not on a clean git commit, so darwin-rebuild build && sudo darwin-rebuild switch woudn't work for me anyway 06:48:22
@samasaur:matrix.orgsamasaur * though on the other hand i'm the kind of insane who has set up my configuration to throw an eval error if i'm not on a clean git commit, so darwin-rebuild build && sudo darwin-rebuild switch wouldn't work for me anyway 06:48:27
@nor1nco:matrix.orgNorincoI used NixOS two years ago, and back then I used nh. I just checked and saw that nh supports aarch64-darwin, but there aren't any configuration options for it in the nix-darwin manual. I'm planning to look into whether using nh on nix-darwin is a good idea tomorrow.06:53:34
@bestlem:matrix.orgbestlemnh works on nix-darwin but note the command line is nh darwin ... rather than nh os .... And there are less options for darwin when you do more than switch anmd build. I just use nh from the command-line with no configuration options so the same for Linux and macOS08:04:49
@debtquity:matrix.orgdebtquity

interesting ...

# sudo darwin-rebuild switch --flake ~/.config/nix --show-trace
...
error: derivation '/nix/store/7ihkwpcdsk41sk0sk3fiy88xcpjm59yx-nodejs-slim-22.22.1.drv' specifies a sandbox profile, but this is only allowed when 'sandbox' is 'relaxed'
14:30:45
@debtquity:matrix.orgdebtquity

in the derivation, it shows ...

      "__sandboxProfile": "(allow file-read*\n  (literal \"/Library/Keychains/System.keychain\")\n  (literal \"/private/var/db/mds/system/mdsDirectory.db\")\n  (literal \"/private/var/db/mds/system/mdsObject.db\"))\n\n; Allow files written by Module Directory Services (MDS), which is used\n; by Security.framework: https://apple.stackexchange.com/a/411476\n; These rules are based on the system sandbox profiles found in\n; /System/Library/Sandbox/Profiles.\n(allow file-write*\n  (regex #\"^/private/var/folders/[^/]+/[^/]+/C/mds/mdsDirectory\\.db$\")\n  (regex #\"^/private/var/folders/[^/]+/[^/]+/C/mds/mdsObject\\.db_?$\")\n  (regex #\"^/private/var/folders/[^/]+/[^/]+/C/mds/mds\\.lock$\"))\n\n(allow mach-lookup\n  (global-name \"com.apple.FSEvents\")\n  (global-name \"com.apple.SecurityServer\")\n  (global-name \"com.apple.system.opendirectoryd.membership\"))\n",

Is this what it's complaining about?

14:41:49
@nor1nco:matrix.orgNorincoI have a question about macOS. I have a 2K external monitor and an HDMI 2.0 cable. The monitor supports 3840x2160 (the resolution used for 1080p HiDPI). In the macOS display settings, I can set the resolution to 3840x2160@60Hz. However, for the 1080p HiDPI scaled resolution, the highest refresh rate I can select is only 30Hz. Why is this happening?16:37:48
@anteater3:matrix.orgwill joined the room.20:09:27
@anteater3:matrix.orgwillis anyone here able to trigger hydra rebuilds? I haven't been able to apply my config for a couple of days because of nodejs-slim-22.22.1. looks like the builder just ran out of disk space https://hydra.nixos.org/build/323732403#tabs-summary20:12:52
19 May 2021
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".19:22:35
@grahamc:nixos.org@grahamc:nixos.org changed the room name to "" from "".19:22:35
@0x4a6f:matrix.org[0x4A6F] joined the room.19:23:06
@nbardiuk:matrix.orgnazarii joined the room.19:24:29
@casey:hubns.netcasey © joined the room.19:27:39
@elvishjerricco:matrix.orgElvishJerricco joined the room.19:38:47

Show newer messages


Back to Room ListRoom Version: 6