!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
10 Mar 2026
@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
11 Mar 2026
@axel_w:matrix.orgaxwWhen using Nix Darwin a symlinked "Home Manager Apps” folder appears in the ~/Applications directory, however after installing Graphical Apps using home.packages = with pkgs; [ raycast ]; the Folder remains empty. What am I missing?11:48:45
@axel_w:matrix.orgaxw installing system wide works, /Applications/Nix\ Apps is populated 11:50:18
@axel_w:matrix.orgaxw * When using Nix Darwin a symlinked "Home Manager Apps” folder appears in the ~/Applications directory, however after installing Graphical Apps using:

home.packages = with pkgs; [
  raycast
];

the Folder remains empty. What am I missing?
11:51:30
@axel_w:matrix.orgaxw * When using Nix Darwin a symlinked Home Manager Apps folder appears in the ~/Applications directory, however after installing Graphical Apps using:

home.packages = with pkgs; [
  raycast
];

the Folder remains empty. What am I missing?
11:52:23
@axel_w:matrix.orgaxw the Home Manager Apps just links to somewhere in the /nix/store 11:53:37
@axel_w:matrix.orgaxw * the Home Manager Apps just links to somewhere in the /nix/store 11:54:02
@axel_w:matrix.orgaxw * the Home Manager Apps folder just links to somewhere in the /nix/store 11:54:25
@ctheune:matrix.flyingcircus.ioChristian Theune changed their display name from Theuni to Christian Theune.14:12:20
@artemist:nixos.dev@artemist:nixos.dev left the room.18:28:30

There are no newer messages yet.


Back to Room ListRoom Version: 6