orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 248 seconds]
orivej has joined #nixos-aarch64
jtojnar has joined #nixos-aarch64
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos-aarch64
<elvishjerricco> I wonder how hard it would be to cross compile NixOS from macOS.
<LnL> the darwin -> linux cross stdenv doesn't work yet
<LnL> clang + case insensitive fs causes a bunch of problems
<samueldr> LnL: there is a way to set case sensitiveness per-process for darwin
* samueldr forages through history
<samueldr> I wonder if it could be useful in any way inside of anything nix
<LnL> interesting
<LnL> but I think eg. the linux kernel needs both a makefile and Makefile which are different
<LnL> don't remember the details of what I ran into
<samueldr> mounting a case-sensitive hfs disk image for nix's tmp could help?
<samueldr> (though anything going into the store would break unless THAT too was case sensitivized)
<LnL> yeah, and I wouldn't be surprised if that would break a bunch of other stuff -_-
<LnL> but with apfs it's much easier to do this since it doesn't require partitioning
<clever> LnL: did you see the guide on hackage2nix?
<LnL> nope
<LnL> heh
<LnL> I tried out using a separate volume for the store on one of my machines, but it doesn't want to automatically mount to /nix yet :/
<clever> LnL: i believe the hackage2nix guide uses a disk image, but mac doesnt support sparse images
<LnL> yes, I'm saying that it's not necessary anymore on 10.13+ because of apfs
<clever> ah, nice
<LnL> diskutil apfs addVolume disk1 "Case-sensitive APFS" Foo -quota 1G
<LnL> it's like creating a new filesystem in zfs
<clever> nice
<clever> LnL: that explains why the volume layout stuff from here looked a bit zfs-y https://www.reddit.com/r/lowlevel/comments/92mlby/booting_secure/
<LnL> yeah, zpool -> apfs container, zfs -> apfs volume
<clever> LnL: have you seen how much of a pain the secure boot can be on a new mac?
<LnL> oh wow, I thought they only added stuff to disallow booting from known vulnerable os versions
<clever> LnL: yeah
<elvishjerricco> Wait am I reading that right? You can't boot from anything except the drive shipped with the laptop, unless you first boot from that device to disable the feature?
<elvishjerricco> What if the drive is removed or destroyed? Can you just not boot the hardware anymore?
<clever> elvishjerricco: i think having an os signed by apple on the disk will let you boot it
<clever> elvishjerricco: but getting that os onto the disk...
<clever> you would need to use another mac
<clever> elvishjerricco: but also keep in mind, many macs have the ssd soldered to the motherboard
<elvishjerricco> Ah. That makes a lot more sense
<clever> so if the drive is damaged...
<clever> replace the entire motherboard!
<samueldr> it's unknown yet how exactly it's done on the new macbook pro
<samueldr> but the previous one with soldered SSD had a port for data transfer
<clever> ive also seen that one of the new macs, finally has the memory and cpu in sockets!!
<clever> but you can only get the lower exchange pricing if the cpu&ram are in the board
<elvishjerricco> So if you want to boot a non apple os, you have to disable that feature right?
<clever> they sell it as a single unit, ignoring the sockets
<elvishjerricco> What about boot camp and windows?
<clever> elvishjerricco: it may trust the windows keys, unknown
<clever> elvishjerricco: but you would have to enable that from a signed darwin install
<clever> and if you want linux, you have to first configure darwin, then disable secure boot
<elvishjerricco> Interesting. I guess it kinda makes sense.
<clever> the worse part i see, is that if you want to image it with a standard darwin image
<clever> you have to configure darwin, disable secure boot, re-image it, then configure darwin again!
lopsided98 has quit [Ping timeout: 255 seconds]
lopsided98 has joined #nixos-aarch64
disasm has quit [Quit: WeeChat 2.0]
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nixos-aarch64
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos-aarch64