hamishmack has quit [Remote host closed the connection]
hamishmack has joined #nix-darwin
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nix-darwin
hmpffff_ has quit [Quit: nchrrrr…]
veske has joined #nix-darwin
hmpffff has joined #nix-darwin
veske has quit [Quit: This computer has gone to sleep]
veske has joined #nix-darwin
veske has quit [Quit: This computer has gone to sleep]
veske has joined #nix-darwin
hmpffff has quit [Quit: nchrrrr…]
hmpffff has joined #nix-darwin
veske has quit [Quit: This computer has gone to sleep]
hmpffff has quit [Read error: Connection reset by peer]
veske has joined #nix-darwin
veske has quit [Ping timeout: 258 seconds]
hmpffff has joined #nix-darwin
hmpffff has quit [Client Quit]
hmpffff has joined #nix-darwin
hmpffff has quit [Client Quit]
hmpffff has joined #nix-darwin
hmpffff has quit [Client Quit]
<eraserhd>
OK, so my private, work nix repo is primarily nix-darwin modules. But I also want to add some packages to it. I can easily add a module that sets config.nixpkgs.config.packageOverrides, but I can't find a way to build the package directly for testing.
<eraserhd>
e.g., using nix-build.
<qyliss^work>
You could try `nix-build -A pkgs.whatever '<darwin>'` maybe?
<eraserhd>
I've disovered this, but AFAICT, it's not seeing my package overrides.
<eraserhd>
It might be a problem with my attribute path tho, let me check.
<eraserhd>
Yeah, confirmed; this version of pkgs does not have packageOverrides applied.
<clever>
eraserhd: if you put all overrides into a config.nix, you can then do config.nixpkgs.config = import ./config.nix; in nix-darwin
<clever>
but you can also then nix-build '<nixpkgs>' --arg config 'import ./config.nix' -A foo, to load the same config externally
<clever>
or just symlink it to the usual spot that nix-build already looks at
<LnL>
nix-build '<darwin>' -A pkgs.hello
<eraserhd>
LnL: this is precisely what is missing package overrides.
<LnL>
that's the package set used to build the system
<LnL>
excluding ~/.config/nixpkgs/overlays but including nixpkgs.overlays from configuration.nix
<LnL>
I don't have any user overlays and use this to access my custom stuff instead
<eraserhd>
I'm not using overlays, but my mac configuration imports a module which imports a module which sets packageOverlays.
<eraserhd>
I'm troubleshooting, though. I peeked in nix-darwin/default.nix, and well, it looks like it *should* work.
<eraserhd>
*packageOverrides
<LnL>
it's the same thing, just without the extra argument
<eraserhd>
yeah, it seems to be working if I use my package overrides function directly in my macbook config...
<eraserhd>
OK, it's working. Not sure what I did wrong before.
veske has joined #nix-darwin
veske has quit [Client Quit]
hmpffff has joined #nix-darwin
Chiliparrot has joined #nix-darwin
<eraserhd>
What do we do on Mac when we want something like $XDG_RUNTIME_DIR?
<eraserhd>
I mean, I do "${XDG_RUNTIME_DIR-~/.run}", but I wonder if there's more nix-y thing?
__monty__ has joined #nix-darwin
<__monty__>
Do I need a recent version of Mac OS to use nix-darwin? (I'm on 10.10 rn.) Wondering if I should bother trying without upgrading OSX.
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<LnL>
I think so but you'll have to use 19.03, master needs ~>10.12
<__monty__>
Just started the OSX upgrade. Safari was too old for the web apparently.
<__monty__>
Looking forward to setting up nix-darwin tomorrow. These OSX updates take ages...
<__monty__>
Will be the closest I've gotten to full nixos.
<__monty__>
Any things I should know? Things to avoid? Is home-manager recommended? Should I get rid of brew or no?