!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
3 Jul 2025
@niklaskorz:matrix.orgniklaskorzhttps://github.com/swiftlang/swift-foundation-icu/blob/main/icuSources/i18n/dtptngen.cpp06:57:47
@reckenrode:matrix.orgRandy Eckenrode
In reply to @niklaskorz:matrix.org
oh no 🫠 maybe swift-foundation-icu helps? that does not include a private header there
WebKit has (or had) a copy. I got it from there.
10:31:19
@reckenrode:matrix.orgRandy EckenrodeThat version is also behind the source release version. It’s ICU 74 while the 15.5 source release is 76.1.10:32:45
@lilliedev:matrix.orgLillieHow do you define dock using home-manager, looked at https://mynixos.com/search?q=dock? But seems to only be possible using systems.defaults ?16:46:46
@lilliedev:matrix.orgLillie* How do you define dock using home-manager, looked at https://mynixos.com/search?q=dock? Seems to only be possible using systems.defaults ?16:47:33
@samasaur:matrix.orgsamasaur anything you can set using system.defaults in nix-darwin can be set using targets.darwin.defaults in home-manager 16:51:22
@samasaur:matrix.orgsamasaurthe fact that you're only seeing search results for nix-darwin means nix-darwin has typed options while home-manager does not16:51:46
@samasaur:matrix.orgsamasaurbut you can set freeform keys and values16:51:58
@lilliedev:matrix.orgLilliehome-manager do? https://mynixos.com/search?q=autohide shows home-manager/option/targets.darwin.defaults."com.apple.dock".autohide but it's later down in list for that result16:53:25
@lilliedev:matrix.orgLillie* home-manager do? https://mynixos.com/search?q=autohide shows home-manager/option/targets.darwin.defaults."com.apple.dock".autohide but it's later down in list for previous result16:54:52
@lilliedev:matrix.orgLillieI also tried using targets.darwin.defaults, but dock isn't being changed when I restart laptop16:56:26
@lilliedev:matrix.orgLilliehttps://github.com/nix-darwin/nix-darwin/blob/e04a388232d9a6ba56967ce5b53a8a6f713cdfcf/modules/system/defaults/dock.nix#L172 Do I have to maybe define tile data manually?17:14:01
@lilliedev:matrix.orgLillieIt works defining tile data manually17:23:06
@lilliedev:matrix.orgLillie
  targets.darwin = {
      defaults = {
         "com.apple.dock".persistent-apps=[
          { 
            tile-data.file-data = {
              _CFURLString = "/Applications/Discord.app";
              _CFURLStringType = 0;
            }; 
          }
         ];
      };
   };
};

Here's how I did it

17:28:53
@lilliedev:matrix.orgLillie *
  targets.darwin = {
      defaults = {
         "com.apple.dock".persistent-apps=[
          { 
            tile-data.file-data = {
              _CFURLString = "/Applications/Discord.app";
              _CFURLStringType = 0;
            }; 
          }
         ];
      };
   };
};

Here's how I added items to dock using home-manager

17:29:15
@khaneliman:matrix.orgAustin HorstmanHmm yeah. I don't think I went back and ported that logic to home manager. I had just been using nix-darwin for all my macos customization, at the time... 17:40:47
@khaneliman:matrix.orgAustin HorstmanMight do that later17:40:54
@khaneliman:matrix.orgAustin Horstmanemily and i had talked about trying to find a good way to centralize the logic though for all the darwin stuff instead of having to copy stuff around..17:42:32
@vmladenov:matrix.orgVassil Mladenov joined the room.21:15:47
@vmladenov:matrix.orgVassil MladenovRedacted or Malformed Event21:17:22
@vmladenov:matrix.orgVassil MladenovRedacted or Malformed Event21:18:13
4 Jul 2025
@megmug:matrix.orgmegmug joined the room.06:14:38
@megmug:matrix.orgmegmugDownload shell.nix07:49:33
@megmug:matrix.orgmegmugDownload linker-error.txt07:49:35
@megmug:matrix.orgmegmugHello there, we are using Nix in our uni course team project, because the supervisor can't be bothered to provide a workable dev environment for his students to use. It's essentially "it works for me - you might need to install some stuff". "some stuff" is some pretty insane customized libraries in c++ cruft relating to cryptography. With the help of chatgpt and my limited knowledge about nix, we we able to piece together a shell.nix that works perfectly for both of us Linux users, but the user on MacOS user always gets a weird linker error when compiling with cmake. I would be very thankful if someone here could hint me at the right direction why this fails 07:50:11
@megmug:matrix.orgmegmug* Hello there, we are using Nix in our uni course team project, because the supervisor can't be bothered to provide a workable dev environment for his students to use. It's essentially "it works for me - you might need to install some stuff". "some stuff" is pretty insane customized c++ libraries relating to cryptography. With the help of chatgpt and my limited knowledge about nix, we we able to piece together a shell.nix that works perfectly for both of us Linux users, but the user on MacOS user always gets a weird linker error when compiling with cmake. I would be very thankful if someone here could hint me at the right direction why this fails 07:50:59
@megmug:matrix.orgmegmug* Hello there, we are using Nix in our uni course team project, because the supervisor can't be bothered to provide a workable dev environment for his students to use. It's essentially "it works for me - you might need to install some stuff". "some stuff" is pretty insane customized c++ libraries relating to cryptography. With the help of chatgpt and my limited knowledge about nix, we we able to piece together a shell.nix that works perfectly for both of us Linux users, but the user on MacOS always gets a weird linker error when compiling with cmake. I would be very thankful if someone here could hint me at the right direction why this fails.07:52:52
@megmug:matrix.orgmegmugI should also note that we had the same approach for earlier crypto projects in the same course, and they had simpler shell.nix files which curiously worked even on MacOS. Of course judging from the linker error, he is using a newer ARM Mac, and i guess it has to do with the fact that we on linux are compiling with gcc while he is compiling with clang, but since it worked with simpler shell.nix's, i don't really know where to start07:58:51
@megmug:matrix.orgmegmug* I should also note that we had the same approach for earlier crypto projects in the same course, and they required simpler shell.nix files which curiously worked even on MacOS. Of course judging from the linker error, he is using a newer ARM Mac, and i guess it has to do with the fact that we on linux are compiling with gcc while he is compiling with clang, but since it worked with simpler shell.nix's, i don't really know where to start07:59:13
@weethet:catgirl.cloudWeetHetI ran this with my local nixpkgs instance08:07:38

Show newer messages


Back to Room ListRoom Version: 6