andreabedini has joined #nix-darwin
Sonarpulse has quit [Ping timeout: 256 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nix-darwin
hamishmack has quit [Client Quit]
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nix-darwin
hamishmack has quit [Client Quit]
andreabedini has joined #nix-darwin
matthewbauer has quit [Remote host closed the connection]
hamishmack has joined #nix-darwin
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andreabedini has joined #nix-darwin
Sonarpulse has joined #nix-darwin
johnw has quit [Read error: Connection reset by peer]
johnw has joined #nix-darwin
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andreabedini has joined #nix-darwin
Sonarpulse has quit [Ping timeout: 245 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nix-darwin
{^_^} has joined #nix-darwin
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
philr has joined #nix-darwin
hamishmack has joined #nix-darwin
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
philr has quit [Quit: WeeChat 2.1]
hamishmack has joined #nix-darwin
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nix-darwin
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nix-darwin
alexteves_ has joined #nix-darwin
jtojnar has quit [Ping timeout: 264 seconds]
jtojnar has joined #nix-darwin
jtojnar has quit [Quit: jtojnar]
jtojnar has joined #nix-darwin
jtojnar has quit [Quit: jtojnar]
Sonarpulse has joined #nix-darwin
matthewbauer has joined #nix-darwin
alexteves_ has quit [Remote host closed the connection]
elasticdog has quit [Ping timeout: 244 seconds]
elasticdog has joined #nix-darwin
philr has joined #nix-darwin
elasticdog has quit [Ping timeout: 276 seconds]
Sonarpulse has quit [Ping timeout: 260 seconds]
philr has quit [Ping timeout: 240 seconds]
elasticdog has joined #nix-darwin
<elvishjerricco> Is there a way to create etc files with hard links instead of symlinks or something? I'm trying to use nix-darwin to automate /etc/hosts, but the only reason it doesn't work is because macOS ignores the file if it is a symlink
<LnL> meh, there are other things that don't like symlinks either
<LnL> the indirect links to static are also used for bookkeeping at the moment
<elvishjerricco> LnL: So do you know a way to set this file with nix-darwin?
<LnL> you could copy it yourself with a custom step, but that's about it
<elvishjerricco> LnL: Sounds like an alright plan. I'll tag the top of the file with its store path and check that the file's contents are identical to its tagged store path before overwriting
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nix-darwin
<LnL> system.activationScripts.extraActivation.text = '' echo weee '';
<LnL> that's a good idea, but not every file supports comments so that would be tricky to generalize
matthewbauer has quit [Read error: Connection reset by peer]
Sonarpulse has joined #nix-darwin
matthewbauer has joined #nix-darwin
matthewbauer has quit [Read error: Connection reset by peer]
<LnL> oh right it's exposed like that anyway on nixos
<LnL> so it's not that bad if it doesn't use environment.etc
matthewbauer has joined #nix-darwin
johnw has quit [Ping timeout: 256 seconds]
<elvishjerricco> LnL: > "it's exposed like that anyway on nixos" What do you mean by that?
<LnL> networking.extraHosts
<LnL> nobody uses environment.etc."hosts" directly
<elvishjerricco> Ah, yea
<LnL> would you like to contribute this?
matthewbauer has quit [Ping timeout: 248 seconds]
<elvishjerricco> LnL: Yea, if you think that implementation is good, I'll open a PR with it
matthewbauer has joined #nix-darwin
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nix-darwin
<LnL> maybe some nitpicks, and a basic test would be nice
<LnL> we can't start a vm like the nixos tests, but they do check some basic stuff like does everything still evaluate ok if the options are actually enabled
Sonarpulse has quit [Ping timeout: 240 seconds]
matthewbauer has quit [Ping timeout: 256 seconds]
matthewbauer has joined #nix-darwin
matthewbauer has quit [Ping timeout: 245 seconds]
matthewbauer has joined #nix-darwin
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nix-darwin
matthewbauer has quit [Ping timeout: 265 seconds]
matthewbauer has joined #nix-darwin
<matthewbauer> Maybe there needs to be a definition for LLVM based stuff
<matthewbauer> I can ask sonarpulse about it next week.
<LnL> no on darwin that's defined in the stdenv
<LnL> oh, or are you talking about https://github.com/NixOS/nixpkgs/issues/30670
<matthewbauer> yeah isn't that why the ${libcxx}/include/c++/v1 stuff is needed?
<LnL> not really, but it's related
<LnL> default_cxx_stdlib_compile is used by the stdenv and translated to NIX_@infixSalt@_CXXSTDLIB_COMPILE
<LnL> inside an stdenv you'll have something like this
<LnL> NIX_CXXSTDLIB_COMPILE= -isystem /nix/store/h29q6yii1cdrz7w9cq65ik369gkiwd1m-libc++-5.0.2/include/c++/v1
<LnL> NIX_CXXSTDLIB_LINK= -stdlib=libc++
<LnL> but if you 'install' clang those are not set
<LnL> and I'm pretty sure the reason it works for gcc is the same as the python issue
johnw has joined #nix-darwin
<LnL> the libstdc++ headers are part of gcc itself so it finds those with some kind of fallback
johnw has quit [Ping timeout: 260 seconds]
matthewbauer has quit [Read error: Connection reset by peer]
matthewbauer has joined #nix-darwin
jtojnar has joined #nix-darwin
matthewbauer has quit [Ping timeout: 264 seconds]
matthewbauer has joined #nix-darwin
matthewbauer has quit [Write error: Connection reset by peer]
matthewbauer has joined #nix-darwin
matthewbauer has quit [Read error: Connection reset by peer]