philr has joined #nix-darwin
andreabedini has joined #nix-darwin
philr has quit [Ping timeout: 256 seconds]
philr has joined #nix-darwin
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andreabedini has joined #nix-darwin
andreabedini has quit [Client Quit]
andreabedini has joined #nix-darwin
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andreabedini has joined #nix-darwin
andreabedini has quit [Client Quit]
andreabedini has joined #nix-darwin
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nix-darwin
hamishmack has quit [Client Quit]
<Enzime> LnL: figured out the issues with OpenAL
<Enzime> apparently Apple's OpenAL is super old...
<Enzime> the OpenAL extension that we require was added to OpenAL-soft ~6 years ago
<Enzime> another issue is due to the fact that mpv defaults to using OpenAL from macOS frameworks on macOS
periklis has joined #nix-darwin
<LnL> moin
<periklis> moin LnL
periklis has quit [Ping timeout: 244 seconds]
periklis has joined #nix-darwin
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andreabedini has joined #nix-darwin
andreabedini has quit [Client Quit]
periklis has quit [Remote host closed the connection]
periklis has joined #nix-darwin
periklis has quit [Ping timeout: 256 seconds]
__Sander__ has joined #nix-darwin
__Sander__ has quit [Ping timeout: 245 seconds]
__Sander__ has joined #nix-darwin
jrolfs has joined #nix-darwin
jrolfs_ has joined #nix-darwin
jrolfs has quit [Ping timeout: 245 seconds]
johnw has quit [Ping timeout: 265 seconds]
periklis has joined #nix-darwin
jrolfs_ has quit [Ping timeout: 265 seconds]
jrolfs_ has joined #nix-darwin
jrolfs has joined #nix-darwin
jrolfs_ has quit [Ping timeout: 256 seconds]
periklis has quit [Ping timeout: 265 seconds]
periklis has joined #nix-darwin
jrolfs has quit [Ping timeout: 240 seconds]
periklis has quit [Ping timeout: 256 seconds]
hamishmack has joined #nix-darwin
periklis has joined #nix-darwin
periklis has quit [Ping timeout: 240 seconds]
jrolfs has joined #nix-darwin
__Sander__ has quit [Quit: Konversation terminated!]
philr has quit [Ping timeout: 268 seconds]
contrapumpkin has joined #nix-darwin
copumpkin has quit [Ping timeout: 240 seconds]
jrolfs has quit [Ping timeout: 255 seconds]
LnL has quit [Ping timeout: 265 seconds]
jrolfs has joined #nix-darwin
LnL has joined #nix-darwin
Sonarpulse has joined #nix-darwin
Sonarpulse has quit [Remote host closed the connection]
jrolfs has quit [Ping timeout: 245 seconds]
jrolfs has joined #nix-darwin
pikajude has quit [Remote host closed the connection]
<ejpcmac> Hi! Is there a way I can share some Nix configuration between NixOS and macOS without writing too much boilerplate code when options are different?
pikajude has joined #nix-darwin
<ejpcmac> For instance, nix-darwin defines `programs.tmux.tmuxConfig` where NixOS has `programs.tmux.extraTmuxConf`.
<ejpcmac> I can’t set both in the file because one or the other complains that the other option does not exist.
<ejpcmac> What I need to do is defining `programs.tmux = if stdenv.isDarwin then { ... } else { ... };` but most of the code ends to be the same in both cases.
<ejpcmac> I can’t do `programs.tmux = { if stdenv.isDarwin then { tmuxConfig = ...` since if is an expression. Is there a way to achive what I want to do or am I stuck to write boilerplate code?
<LnL> the programs.* modules should be compatible but I've not tried that myself
Sonarpulse has joined #nix-darwin
<ejpcmac> LnL: In the case of tmux they are different :'(
<ejpcmac> Also, in NixOS it seems there is no `programs.zsh.variables`
<LnL> oh wait, there's a tmux module in nixos?
<ejpcmac> Yes. Maybe it’s new.
<ejpcmac> There’s no vim though.
<ejpcmac> Also, other tiny difference but annoying one: in nix-darwin generated aliases are defined inside double-quotes and in NixOS inside simple quotes.
<ejpcmac> For instance, if I define `some-alias = "blabla '<nixpkgs>' blabla";` it works on nix-darwin since it is copied verbatim.
<ejpcmac> However, on NixOS it creates some `alias some-alias='blabla '<nixpkgs>' blabla'`, so it does not work.
<ejpcmac> And if y do `some-alias = "blabla \"<nixpkgs>\" blabla";` it works on NixOS but not on nix-darwin :(
<LnL> hmm, well we could change that
<ejpcmac> So I must define some aliases with an `if ... then ... else ...` block.
<ejpcmac> Wouldn’t it risk to break existing configs?
<ejpcmac> I think the nix-darwin way to define aliases is more natural from the side of Nix syntax, and on the other hand the NixOS one is more natural from the side of standard shell syntax when defining aliases.
jrolfs_ has joined #nix-darwin
jrolfs has quit [Ping timeout: 268 seconds]
jrolfs has joined #nix-darwin
jrolfs_ has quit [Ping timeout: 264 seconds]
adulteratedjedi has quit [Read error: Connection reset by peer]
adulteratedjedi has joined #nix-darwin
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrolfs has quit [Ping timeout: 240 seconds]
jrolfs has joined #nix-darwin
hamishmack has joined #nix-darwin
jrolfs has quit [Ping timeout: 260 seconds]
jrolfs has joined #nix-darwin
jrolfs has quit [Ping timeout: 260 seconds]
jrolfs has joined #nix-darwin
alexteves has quit [Remote host closed the connection]
jrolfs has quit [Ping timeout: 256 seconds]
jrolfs has joined #nix-darwin