<gchristensen>
LnL: no, if I do that today can you help?
<LnL>
sure, later today
pjan_ has joined #nix-darwin
jrolfs has quit [Ping timeout: 248 seconds]
jrolfs__ has quit [Ping timeout: 265 seconds]
peacememories has joined #nix-darwin
jrolfs has joined #nix-darwin
jrolfs__ has joined #nix-darwin
bobbypriambodo has joined #nix-darwin
bobbypriambodo has left #nix-darwin [#nix-darwin]
<gchristensen>
expert macos people, is there a way I can do something like PXE-boot my mac from a known state so I can let people SSH to it and also easily reset its state?
<gchristensen>
without suffering through long reinstalls every so often
pjan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrolfs__ has quit [Ping timeout: 246 seconds]
jrolfs has quit [Ping timeout: 260 seconds]
jtojnar has quit [Ping timeout: 256 seconds]
{^_^} has quit [Remote host closed the connection]
jtojnar has quit [Read error: Connection reset by peer]
joshuaks has joined #nix-darwin
<joshuaks>
Hi all, I'm working on pill 8.3
<joshuaks>
I get this error 'line 8: tar: No such file or directory', however the tar definitely exists. I can echo the src variable just fine the line above the tar cmd.
<joshuaks>
What would cause this?
jrolfs__ has joined #nix-darwin
<johnw>
I've gotten myself into a bizarre place where 'ssh hermes echo \$PATH' prints an absurdly small value; it appears to be ignoring ~/.bashrc
<johnw>
I have no idea which change caused this over the past few days
jrolfs has joined #nix-darwin
hamishmack has joined #nix-darwin
<johnw>
LnL: how do I get the nix builder to prefer my local machine when using distributed builds? It seems to always want to use my other machines first
<johnw>
even for building a single quick derivation like the darwin config itself
<LnL>
hmm, maybe I'm missing a preferLocalBuild somewhere then
<johnw>
can you expose that as a variable?
<johnw>
I'd want it off on my main machine, but on on my laptop
zarel has joined #nix-darwin
<johnw>
also, it would be cool if darwin-option could return only the value with -s or -q
<LnL>
it's a drv attribute, it tells nix that it's probably not worth doing a remote build
<johnw>
what does it mean "it's a drv attribute"?
<LnL>
things like buildEnv have that by default
<johnw>
oh
<johnw>
so would I set this is my packageOverrides or something?
<LnL>
I mean that it's on a per derivation basis
<johnw>
do you have any thoughts as to why ssh isn't sourcing ~/.bashrc anymore?
<LnL>
other then that I don't know of a way to build locally except for --builders ''
<johnw>
I get: cycle detected in the references of '/nix/store/86akmiiwg75fbzcgwkc3cr9kdnb7avd5-brotli-1.0.2-lib' from '/nix/store/dzl8azl2f6vhscd494zm5jzxq7jn8xw'
<LnL>
I fixed that a few days ago
<johnw>
in nix-darwin, or nixpkgs?
<LnL>
nixpkgs
<johnw>
k
<johnw>
i'm not on master anymore, so I'll just revert this commit until the fix appears
jrolfs__ has joined #nix-darwin
jrolfs has joined #nix-darwin
<johnw>
i guess the only thing I'd really want now is overlays in nix-darwin
<LnL>
I unblocked nixpkgs-unstable today so it should update soon
<nikivi>
But I find the whole nix thing a bit intimidating
<johnw>
yes, at first it most certainly is
<nikivi>
There is an entire language you need to understand it seems
<johnw>
and the docs can be terrible
<johnw>
yes
<johnw>
you do
<johnw>
especially if you want to venture into the experimental waters of nix-darwin
<johnw>
I ask LnL maybe 100 questions a day
<nikivi>
Is there any change things can go `wrong`
<nikivi>
Like some files get deleted and lost
<nikivi>
chance*
<johnw>
it's fairly safe
<johnw>
I don't think I've ever shot myself in the foot yet
<johnw>
but have backups, just in case
<gchristensen>
^ sam
<gchristensen>
e
<nikivi>
I am curious though
<LnL>
I try to be very safe, if you configure a file in /etc that already exists it won't overwrite it for example
<nikivi>
Since macOS is fully proprietary and controlled end to end by Apple
<nikivi>
Why can't they release an official package manager
<johnw>
heh
<gchristensen>
they did, you just don't like it
<nikivi>
I mean you even have to install brew
<LnL>
I think they called it "App Store" :p
<johnw>
yep
jrolfs has joined #nix-darwin
jrolfs__ has joined #nix-darwin
<LnL>
who needs a terminal when you can use a slow web ui
<gchristensen>
or a terminal inside a slow web ui ;)
<nikivi>
I love the logo for nix-darwin :D
<johnw>
LnL: it works beautifully, thank you!
<gchristensen>
I'm not sure what johnw is referring to specifically, but I generally agree
<johnw>
i'm referring to the new overlays support
<nikivi>
I am still not fully sure the purpose of nix-darwing
<nikivi>
There is nix the package manager
<nikivi>
There is nixpkgs which include packages you can install
<johnw>
how do I refer to the "fully overlaid" package set from within darwin-configuration.nix? I'd like to reference a path within an overlaid package which was actually an addition to the environment
<nikivi>
I guess nix-darwin includes packages that can only be built on darwin?
<johnw>
nikivi: nix-darwin lets you create launchd daemons
<LnL>
just pkgs.foo
<johnw>
LnL: hmm.. it's claiming my doohickey is an unknown attribute
<johnw>
does packageOverrides override overlays, or can they co-exist?
<LnL>
wait maybe I'm not understanding the question correctly
<johnw>
for example, I used to define a dovecot-plugins attribute in my overrides.nix, which is referenced by packageOverrides
<johnw>
I've now moved it into overlays/dovecot-plugins.nix
<johnw>
but when I do ${pkgs.dovecot-plugins}, nix-darwin complains that it doesn't know that attribute
jrolfs__ has quit [Ping timeout: 265 seconds]
jrolfs has quit [Ping timeout: 260 seconds]
<gchristensen>
nikivi: nix-darwin is like what nixos is for linux
<nikivi>
nixOS is a full distribution though
<gchristensen>
hrm. this is harder to explain than I thought.
<johnw>
LnL: also, instead of using /run/current-system/sw/lib/dovecot in my darwin-configuration.nix, is there an attribute that expands to such a path for that generation?
<gchristensen>
nix-darwin brings service management and system configuration support to darwin, via Nix
<nikivi>
This makes sense now :)
<johnw>
hmm.. ${system.path}/lib?
<johnw>
${config.system.path}/lib
<johnw>
funny that you can't install brew using nix
<johnw>
I like having brew available for those quick things that sometimes Nix hasn't packaged yet
<johnw>
and to see how they do things
jrolfs has joined #nix-darwin
jrolfs__ has joined #nix-darwin
<gchristensen>
hmmmm install brew pkgs via a nix wrapper ... brew2nix ... *cries in advance*
<nikivi>
Thing is that I actually am really happy with brew
<nikivi>
In the sense that things `just work`
<nikivi>
But I see the awesomeness of nix and do want to move to it
<nikivi>
As it is a lot better and more robust
<johnw>
LnL: ah, I see the problem
<gchristensen>
you may need both, for different things
<johnw>
I had defined nixpkgs.config.overlays, not nixpkgs.overlays
<johnw>
LnL: however, your nixpkgs.overlays doesn't accept a directory; only a list of sets
<johnw>
yeah, Nix is weak when you get into the ream of node.js and ruby packages
<johnw>
it's all about what the volunteers have time to focus on and care abuot
<johnw>
I spend a fair bit of time making as much of the Coq world packaged as I can manage
<nikivi>
Can't you automate packaging
<nikivi>
So packaging things is really really simple
<johnw>
recently I added all of coq-contribs, which is 166 new packages
<johnw>
it's fairly simple, and can be automated sometimes
<johnw>
but having references to personal data in there feels wrong
<johnw>
so I use home-manager, very much like nix-darwin, to configure things that only live under ~johnw
<johnw>
like my .bashrc
<johnw>
I configure shell aliases in nix-darwin that I consider to be "global", but I configure other shell aliases in home-manager that feel much more local
<johnw>
like my .gitconfig file
<johnw>
LnL uses /etc/per-user for some of this, but I prefer to divide the two