peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nix-darwin
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nix-darwin
abathur has joined #nix-darwin
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
abathur has quit [Quit: abathur]
hamishmack has joined #nix-darwin
carlosdagos has quit [Quit: Connection closed for inactivity]
philr has joined #nix-darwin
periklis has joined #nix-darwin
<dhess>
LnL: around?
<LnL>
hey, what's up?
<dhess>
LnL: so I had a Mac running nix-darwin from sometime around September 2018. I just booted it back up, did nix-channel --update, darwin-rebuild switch. All that went fine
<dhess>
Then at some point I ran darwin-rebuild switch again, and now I'm getting this:
<dhess>
error: evaluation aborted with the following error message: ‘
<dhess>
This version of Nixpkgs requires Nix >= 2.0, please upgrade:
<dhess>
etc etc
<dhess>
I was running nix 1.11 when I did the darwin-rebuild switch. I've since upgraded to nix 2.2 but I'm getting the same error
<LnL>
yeah, nixpkgs requires 2.0 now
<dhess>
nix-daemon is running 2.2 something
<dhess>
yeah I'm running nix 2.2 now, still having this problem
<LnL>
oh hold on
<dhess>
seems like the system profile is pointing to a nix 1.11 profile or something? I'm confused about where it's coming from
<LnL>
is nix.package configured? by default the default profile is used instead
<dhess>
it was configured for nixUnstable. I removed that
<dhess>
I probably shouldn't have :\
<dhess>
I removed that then ran darwin-rebuild switch. But I think that nix was nix 1.11 at the time
<dhess>
and now it seems like it's stuck
<dhess>
any way to roll back darwin-rebuild?
<dhess>
maybe hacking a symlink in /nix/var/nix/profiles? I could put it back to the old profile, then re-do the upgrade with nix.package = nixUnstable this time
<dhess>
oh there is a --rollback
<dhess>
let me try that
<dhess>
ok I was able to roll back , set nix.package = pkgs.nixUnstable, darwin-rebuild switch
<dhess>
now I'm up and running again. Thanks nix and nix-darwin!
<LnL>
:D
<dhess>
just one thing: when I remove nix.package = pkgs.nixUnstable, then darwin-rebuild switch breaks again
<dhess>
small flood:
<dhess>
$ darwin-rebuild switch
<dhess>
/nix/store/144njwnj2jkrlm694ldxik58qa8qam0x-darwin-system-19.03pre-git/activate-user: line 101: nix-instantiate: command not found
<dhess>
building the system configuration...
<dhess>
error: Changed <darwin-config> but target does not exist, aborting activation
<dhess>
Create /Users/dhess/.nixpkgs/darwin-configuration.nix or set environment.darwinConfig:
<LnL>
jeeze, "Security settings do not allow this Mac to use an external startup disk."
<johnw>
ah
mjbauer has joined #nix-darwin
matthewbauer has quit [Ping timeout: 250 seconds]
mbauer has quit [Ping timeout: 245 seconds]
<LnL>
wat, now it needs internet?
mjbauer has quit [Client Quit]
mjbauer has joined #nix-darwin
mjbauer has quit [Ping timeout: 240 seconds]
jacereda has joined #nix-darwin
<johnw>
darwin, le sigh
jacereda has quit [Ping timeout: 245 seconds]
<dhess>
LnL: arond?
<dhess>
around
jacereda has joined #nix-darwin
<LnL>
hi
<dhess>
LnL: hi. Is there a way to add modules to nix-darwin without needing to fork?
<dhess>
like there is with NixOS?
<LnL>
ofcorse, the module system is the same
<dhess>
oh really?
<dhess>
I didn't know that
<dhess>
so just add it to imports then?
<LnL>
your configuration.nix is actually also a module so you're already doing that technically speaking
<LnL>
yep
<dhess>
oh cool
<dhess>
you did a nice job with this
<dhess>
assuming I get this ready for general use and I want to add it to nix-darwin, generally speaking, how are tests run? I assume they're run on the live system?
<LnL>
only the installer, the tests in the repo are just nix unittest that do some sanity checking
<dhess>
oh I see, so no services are activated, for example?
<LnL>
yeah, to do proper testing you'd need a fully automated macos vm setup
<dhess>
right
<LnL>
but the tests can catch a bunch of stuff, like making sure the module evaluates properly