<Acou_Bass>
hey everyone, im wondering about the viability of changing the system.autoUpgrade command to be 'nixos-rebuild boot --upgrade' instead of nixos-rebuild switch (so it doesnt switch to the new version until i reboot)? i realise it may end up with me not booting into new versions as often, but sometimes if i upgrade i get a bit of desktop breakage that requires a reboot that id rather avoid until i am ready to
<Acou_Bass>
reboot
swayf has quit [Ping timeout: 265 seconds]
<infinisil>
Acou_Bass: yeah seems reasonable
hakujin has quit [Quit: WeeChat 2.0.1]
<Acou_Bass>
sould that be as simple as adding 'boot' to system.autoUpgrade.flags or would i have to do something else to edit the unit file, any idea? :P
quam6246 has quit [Ping timeout: 260 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 3 new commits to master: https://git.io/vNomg
<NixOS_GitHub>
nixpkgs/master 8c88168 Franz Pletz: atlassian-confluence: 6.5.1 -> 6.6.0
<NixOS_GitHub>
nixpkgs/master 9f16756 Franz Pletz: atlassian-jira: 7.5.2 -> 7.7.0
<NixOS_GitHub>
nixpkgs/master 2ac833d Franz Pletz: youtubeDL: 2018.01.14 -> 2018.01.21
NixOS_GitHub has left #nixos [#nixos]
<Acou_Bass>
might have a proper look into this tomorrow, i suppose i could just turn autoUpgrade off and do it myself when i remember :P
<infinisil>
Acou_Bass: yeah you'll have to edit the file, flags doesn't work
the-kenny has quit [Ping timeout: 248 seconds]
stepcut has quit [Remote host closed the connection]
<iqubic>
the download link just downloads an executable in a zip file.
<iqubic>
And I'm struggling to get it to run properly.
Rusty1_ has joined #nixos
rodgort has quit [Quit: Leaving]
vidbina has quit [Ping timeout: 263 seconds]
quam6246 has joined #nixos
<Acou_Bass>
no worries thanks :D ill have a look into it soon
aarvar has quit [Ping timeout: 260 seconds]
stepcut has joined #nixos
quam6246 has quit [Ping timeout: 268 seconds]
rodgort has joined #nixos
<iqubic>
So I'm really not sure what to do with this program. It's really weird that this won'y just work right out of the box.
<iqubic>
It was made to work on linux, and it doesn't.
<rnhmjoj[m]>
i'm updating a package that uses fetchgit but it's failing with: `fatal: '9ab2117c5bac2f376f8da4a4b25e183137bcec0' is not a commit and a branch 'fetchgit' cannot be created from it`
<rnhmjoj[m]>
do you know what it is?
stepcut has quit [Ping timeout: 276 seconds]
<rnhmjoj[m]>
this hash is not the "rev" argument of fetchgit so I suppose it comes from a submodule
jrolfs_ has quit [Ping timeout: 260 seconds]
jrolfs_ has joined #nixos
stepcut has joined #nixos
hellrazo1 has joined #nixos
hellrazor has quit [Ping timeout: 248 seconds]
<infinisil>
iqubic: nixos is different than most other distros
<infinisil>
iqubic: you can't expect anything downloaded from a random website to Just Work on NixOS
jrolfs_ has quit [Ping timeout: 240 seconds]
<infinisil>
actually you could use steam-run, which might make it work just like that, but that's not really nice to use on nixos
hellrazor has joined #nixos
<iqubic>
infinisil: So how do people usually go about doing things like that?
hellrazo1 has quit [Ping timeout: 260 seconds]
<infinisil>
iqubic: best would be to compile from source
<rnhmjoj[m]>
maybe something is wrong with the cache
<iqubic>
Not only that, but I have "firefox-bin" in my systemPackages
<iqubic>
Seems like the bin part should mean that it doesn't rebuild.
<iqubic>
And the rebuild is done.
<iqubic>
Firefox failed to install.
<samueldr>
does it actually compile?
<iqubic>
samueldr: No. Building the derivation fails.
<samueldr>
firefox-bin will need a "build", since it cannot be redistributed as-is as it's unfree by nixos' definition
<rnhmjoj[m]>
yeah, the -bin is the binary straight from mozilla
<samueldr>
that is, the upstream mozilla firefox build has a restriction
<samueldr>
what was the reason for the failure iqubic?
<iqubic>
All I'm told is that a running make failed
<iqubic>
Or actually, "thread main panicked at assertion failiure."
<iqubic>
I should not have told this to run the rebuild in a tty. It makes it hard to get the output of the program.
<rnhmjoj[m]>
the firefox build failed directly or one of its dependency?
<samueldr>
hopefully (or not?) it should fail the same way if you rebuild
<iqubic>
I can't tell.
<samueldr>
but yeah, it sounds weird that firefox-bin would fail building
<iqubic>
I ran the rebuild command in a tty so I can't access scrollback.
<iqubic>
Are there any logs I can look at?
<rnhmjoj[m]>
don't think so. run it again, it should fail the same way.
<samueldr>
to ensure you get only the firefox failure, nix-build "<nixpkgs>" -A firefox-bin`
<iqubic>
Yes, but it will take a while to do get to the point of failiure.
<samueldr>
oops, stray backtick at the end there
<samueldr>
iqubic: that was during a nixos-rebuild?
<iqubic>
Yes.
<samueldr>
if something else in nixos-rebuild fails it could look like it was firefox
<samueldr>
nix-build would specifically build firefox-bin
<samueldr>
you'd be able to see quickly if it's looking like it's going to take a while or not
<iqubic>
I checked htop while the rebuild was running. It said that firefox was being compiled.
rcshm has quit [Ping timeout: 268 seconds]
<rnhmjoj[m]>
anyway I don't understand how installing haskellPackages.happy causes firefox to be build from source
* samueldr
just updated a nixpkgs checkout to channels/nixos-17.09 to verify whether firefox-bin does something weird
<iqubic>
Package ‘firefox-release-bin-unwrapped-57.0.4’ in /nix/store/pg8z2i9f4pn3rras4xidi2gvbrrra518-nixos-17.09.2852.4ea23e7f1db/nixos/pkgs/applications/networking/browsers/firefox-bin/default.nix:179 has an unfree license (‘unknown’), refusing to evaluate.
<samueldr>
and the build was almost instant, as instant as the tar.bz2 could extract once downloaded
<iqubic>
Not sure what that means.
<samueldr>
that's a good sign, if the only output you have is a path, firefox-bin was already built and working
<samueldr>
(nix won't rebuild if it's already built)
<samueldr>
that means that it's something else in your nixos-rebuild that's taking time and failing
<rnhmjoj[m]>
so firefox is not the issue, something else was failing in the rebuild
<iqubic>
I'm going to try running the rebuild in a graphical terminal wher I can read the output.
<samueldr>
depending your settings, nixos-rebuild may be building multiple things in parallel
<samueldr>
which may make it harder to spot which build is logging out as their build outputs are sadly interleaved
<samueldr>
one way to help figure out the issue is to add --keep-going to nixos-rebuild, it will build *everything it can* and not bail out at the first issue
<samueldr>
then the next rebuild should be only for the things that didn't build
<iqubic>
building path(s) ‘/nix/store/7xm9hpkvzljiaskb9z37s0qvczmafzvk-rustc-1.17.0-man’, ‘/nix/store/9070b613acgsbsf23hwpni0aaxw63rsd-rustc-1.17.0’, ‘/nix/store/knc885fvfyls1c2z0bpl6z2jdhm99qnv-rustc-1.17.0-doc’
<iqubic>
Alright, ignore the thing I just posted. Not sure if that's the error.
duckwho has quit [Client Quit]
duckwho has joined #nixos
<iqubic>
I'd like to point out that I have nothing related to rust in my configuration.nix.
<iqubic>
Also, what is this message:
<iqubic>
waiting for locks or build slots... ??
iqubic has quit [Remote host closed the connection]
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
ivanivan has joined #nixos
ivanivan has quit [Client Quit]
<fearlessKim[m]>
anyone interested in merging fcitx fixes https://github.com/NixOS/nixpkgs/pull/29558 ? I have trouble with the current version switching between the different keyboards
stepcut has quit [Remote host closed the connection]
contrapumpkin has quit [Ping timeout: 240 seconds]
iqubic has joined #nixos
<iqubic>
So I ran the rebuild with the --keep-going flag.
<iqubic>
then I ran the rebuild again.
<iqubic>
I now know what is failing.
propumpkin has joined #nixos
<iqubic>
And I did it not in a tty so I can read the scrollback.
<iqubic>
if anyone wants to help me debug why my rebuild fails, I love help with that.
quam6246 has joined #nixos
<iqubic>
Looks like it is ripgrep that is failing to build.
<iqubic>
in order to recompile ripgrep Nix has to rebuild a whole lot of rust libraries.
quam6246 has quit [Ping timeout: 248 seconds]
rauno_ has quit [Remote host closed the connection]
<disasm>
manveru: is it possible to specify non-ruby dependencies in a gemset.nix generated by bundix? My use case is gpgme won't compile on osx because ld: library not found for -lobjc (which is darwin.libobjc)
<disasm>
iqubic: are you on the mailing list?
<iqubic>
disasm: No I'm not.
<iqubic>
I don't know how to join a mailing list.
<iqubic>
Here is the long list of things that fail when trying to install ripgrep.
<iqubic>
Even adding --nix flag fails to make this thing work.
<iqubic>
Why is NixOS so far away the normal linux path.
<disasm>
that's the cost of having the benefits of nix. The *normal* way of doing things just doesn't support things easily like multiple package versions, rollbacks, etc...
<iqubic>
Oh, I understand that.
<simpson>
iqubic: TBF Stack advertises quite tight Nix integration, and it should all Just Work, according to their propaganda.
<simpson>
So I wouldn't really blame Nix for this particular frustration.
rauno has joined #nixos
<iqubic>
But it isn't working for me.
<simpson>
Stack's never worked for me either. Sorry.
<iqubic>
I tried adding a nix section to the package.yaml, and adding a package feild there. And then I added happy as a dep.
<iqubic>
I get this error:
<iqubic>
Warning: Ignoring unknown field "nix" in package description
<infinisil>
i have spent a bit of time with stack + nix
<infinisil>
and the builtin nix integration works well if you don't require your stuff to be in the nix store
<infinisil>
if you want it to be in the nix store (as you'd want if you want to package something for nixpkgs), you'll have to either use haskell.lib.buildStackProject (which is super simple, but dead slow and a single change rebuilds every single dependency), or stack2nix (which is fast after initial setup, but generates a huge nix expression)
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vNoRl
<NixOS_GitHub>
nixpkgs/master 976d17f Jörg Thalheim: python.pkgs.astor: also disable some test on python2
NixOS_GitHub has left #nixos [#nixos]
<fearlessKim[m]>
hum is it just me or vim on nixos doesn't set $MYVIMRC ?
<iqubic>
I don't think it does.
dbe_ has joined #nixos
<fearlessKim[m]>
according to the help "The $MYVIMRC environment variable is set to the file that was first found" and my $HOME/.vimrc seems loaded so that's a bug
<iqubic>
this seems like a vim bug, and not a nixos bug
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
ssmike has joined #nixos
<fearlessKim[m]>
it's a popular feature so I would think that nixos has a part in it, maybe because of some wrapper
glenn_ has quit []
leat has quit [Ping timeout: 264 seconds]
<fearlessKim[m]>
vim is launched via `exec /nix/store/g685kmsw5hxicqxpm87sx8a4bmfj0amr-vim_configurable-8.0.1257/bin/vim -u /nix/store/xrxwirnx1xkn0hv3pjy03w4fa9m1nd6m-vimrc` so it skips or set $MYVIMRC to null. I believe nixos should set VIMINIT instead I'll file an issue
rauno has quit [Remote host closed the connection]
<fearlessKim[m]>
hum it was installed by home-manager so that may be the culprit. Might be worth checking out nixpkgs too
<sphalerite>
I haven't looked but I think home-manager probably uses nixpkgs's vimConfigurable stuff
<sphalerite>
So it would be a nixpkgs problem bubbling up to home-manager
<fearlessKim[m]>
yeah
ssmike has quit [Read error: Connection reset by peer]
<iqubic>
How does on add an entry to $PATH on NixOS?
<hyper_ch2>
Mic92: since booting with Nixos in ro mode didn't work, I created a new custom ISO with stability patch, booted up from there. Then I created a new encrypted DS tank/encNEW and just zfs send/recv tank/encZFS/Nixos to tank/encNEW/Nixos... once finished, I renamed both encZFS to encOLD und encNEW to encZFS, then I rebooted and it works :) Still migrating other data though but it's already booted up
dkao has quit [Ping timeout: 240 seconds]
<Mic92>
hyper_ch2: Can you summarize the commands need for migration, if you make a pull request?
Mateon2 has joined #nixos
dkao has joined #nixos
<hyper_ch2>
Mic92: I'll do so once I tested it more... the good thing is that I used like tank/encZFS/Nixos
<Mic92>
hyper_ch2: this is also what I have proposed in the wiki
<hyper_ch2>
(because I'm still hoping to have on day /boot also in ZFS and just make a full disk for zfs)
<hyper_ch2>
Mic92: yeah, I followed your wiki entry :)
<hyper_ch2>
Mic92: but what do yu think about that: for zfs you currently can use "normal" and "unstable" - how about adding a third option for migration to new format?
<hyper_ch2>
so people could already now use the patch if they want to and have more time to migrate than when it will be merged to zfs master and then they are forced to
<Mic92>
might be an option
ylwghst has joined #nixos
Isorkin_ has quit [Ping timeout: 248 seconds]
<hyper_ch2>
otoh - I don't think too many people use zfs encryption already... but I might be mistaken
<Mic92>
our zfs article on the wiki was pretty popular
<hyper_ch2>
s/was/is/
Isorkin has joined #nixos
leat has joined #nixos
ssmike1 has joined #nixos
Itkovian has joined #nixos
ssmike has quit [Ping timeout: 256 seconds]
ssmike1 is now known as ssmike
<hyphon81>
At least, in nixops/azure_common.py, looks to me, it is wrong adal usage. And this code has not been updated since 2016 Apr. So, nobody uses azure with NixOps?
<hyphon81>
I tried to fix. However, it is difficult for me...
reinzelmann has joined #nixos
glenn_ has joined #nixos
<Mic92>
hyphon81: I tried once, but I think it did not work for me, since where required to use 2-factor-Auth in the company, so authentication probably failed for different reason.
<Mic92>
I don't have that account anymore though.
<hyphon81>
Hmm. At least, there are wrong in the code.
<hyphon81>
"adal.acquire_token_with_username_password" is wrong. For example, "context = adal.AuthenticationContext(self.authority_url); context.acquire_token_with_username_password" is right.
<hyphon81>
However, if only this fix did, error occur since lacks required arguments.
<hyphon81>
I made AWS GPU instances cluster with NixOps. So, I trying same by azure. However, I stuck.
duckwho has quit [Ping timeout: 248 seconds]
johann__ has joined #nixos
zzamboni has joined #nixos
<hyphon81>
The GPU instace fee is expensive. So, I thought to use azure's free trial account. I was optimistic.
Mateon2 has quit [Ping timeout: 248 seconds]
<simpson>
hyphon81: People *do* use the Azure support, but I think that they're only online during the USA day.
rauno has joined #nixos
<sphalerite>
I want to grep the emails in a maildir for a certain string, but a bunch of them have their bodies base64-encoded. Anyone know an easy way to do this?
<srhb>
jmorriss[m]: Nix specifically, or nixpkgs and nixos?
<sphalerite>
rauno: I don't want to have to write an awk script or whatever, just use a tool that already exists. It looks like pkgs.mu does what I want though
Mateon2 has quit [Client Quit]
<rauno>
sure, just you used word grep :)
Mateon2 has joined #nixos
Mateon2 has quit [Client Quit]
<sphalerite>
funits: typically when using nix/nixpkgs/nixos you'll find gaps in functionality/bugs/stuff that you can fix and then PR to nixpkgs :)
<jmorriss[m]>
srhb: I can't write C++, so probably nixpkgs or something like that
<srhb>
jmorriss[m]: Writing and fixing simple packages helps a lot
<d4g>
I have laptop. I want to connect the external ethernet interface of the docking station to a bridge, so that I can use it via qemu-kvm/libvirt. This works just fine, but after I disconnect the laptop, the bridge disappears and does not reappear when I dock the laptop. Also I cannot restart a VM when the laptop is undocked, because the bridge is "gome" and qemu can't initialize the depending network intgerface.
<srhb>
jmorriss[m]: Then you can slowly advance through more complicated topics.
<sphalerite>
funits: I think my first contribution was packaging endless sky
Mateon2 has joined #nixos
<d4g>
I configured the bridge and via nixos.
<jmorriss[m]>
srhb: Where can I learn to do that
<jmorriss[m]>
Should I just rtfm
<srhb>
jmorriss[m]: I'd start by checking out nixpkgs and read the nixpkgs manual :)
<d4g>
No this is just the interface itself. Not the bridge.
<sphalerite>
<name>-netdev.service
<d4g>
ah thanks
<d4g>
this helps
<d4g>
So i coudl just restart the services when I dock the laptop
<d4g>
Which would help at least.
<sphalerite>
yeah… certainly not ideal but it's a start I guess
<sphalerite>
you can dig into nixpkgs/nixos/modules/tasks/network-interfaces-scripted.nix if you dare
<d4g>
Seems a little bit to essential for me to mess around with, yet
<sphalerite>
which is where that stuff is generated. There's also a networkd-based implementation at nixpkgs/nixos/modules/tasks/network-interfaces-systemd.nix but I think it's not as complete as the scripted stuff.
<sphalerite>
You can use the networkd-based one with network.useNetworkd = true;
<d4g>
Ah ok.
<sphalerite>
There's no risk with messing around with it since you have rollbacks ;)
<d4g>
I could give this one a try
<d4g>
Yeah :)
markus1199 has joined #nixos
<d4g>
Experimental and "use on own risk" is less scary, when you can just switch back :)
markus1189 has quit [Ping timeout: 248 seconds]
dywedir has joined #nixos
<d4g>
Playing around with this, I think I found a bug
<d4g>
When an interface which is configured to be ignored by network-manager is not available, the network manager does not start
<d4g>
And then the whole user systemd crashes and does not start
<d4g>
I think of this a little bit as an unexpected behavior, as USB ethernet or wireless adapters aren't that uncommon
M666[m] has joined #nixos
ambro718 has joined #nixos
goibhniu has joined #nixos
<d4g>
Ths sphalerite
<d4g>
*thx
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNoVr
glenn_ has quit [Remote host closed the connection]
glenn_ has joined #nixos
<sphalerite>
rauno: while it's certainly possible to mount the nix store read-write and modify files in it, it's not a good idea because it breaks the guarantees that nix provides you
ylwghst has quit [Ping timeout: 240 seconds]
<sphalerite>
e.g. stuff built from that package will no longer be reproducible
<rauno>
mhm, was just thinking about it, but patching the package and debugging will be problably painful, i need it fast :D
ylwghst has joined #nixos
<sphalerite>
nix-store --verify --check-contents will check all the paths in the store against their expected contents and complain if anything's changed, to account for accidental store corruption caused by any number of other things
<sphalerite>
as a quick-n-dirty one-off solution, remounting the nix store read-write does work. I'd recommend running nix-store --verify --check-contents --repair to have nix repair all the damage you've done to the integrity of the store afterwards
<sphalerite>
for anything that's going to be used more than once, you should fix it properly ;)
<Dezgeg>
I think one way of hacking up stuff is to bind-mount the fixed file on top of the original
<Dezgeg>
haven't tried though
glenn_ has quit [Ping timeout: 265 seconds]
<infinisil>
tbh modifying nix expressions is quiet fast too once you know how
Fare has quit [Ping timeout: 268 seconds]
<infinisil>
and infinitely nicer
<rauno>
indeed, if u once know them all :D
Naughtmare[m] has joined #nixos
<rauno>
anyway, i'll try to do it the right and hard way
ylwghst has quit [Ping timeout: 246 seconds]
<infinisil>
and knowing how to edit the nix files is required if you want your quick patch to actually work in the future and not be a hack
<infinisil>
(my bot would've linked this if it wouldn't stop working after a day or so running)
<tilpner>
Yeah, I was hoping for it :/
<hyper_ch2>
infinisil: I successly converted my Nixos installation (not all media stuff yet but Nixos itself) to the new encryption format
<lejonet>
infinisil: bribe it with tastier electrons? :P
ckauhaus has quit [Remote host closed the connection]
<infinisil>
hyper_ch2: nice :)
ckauhaus has joined #nixos
<infinisil>
lejonet: I think it's a memory leak
<lejonet>
infinisil: oh noes, its has dementia
<infinisil>
(using haskell..)
<lejonet>
That is quite impressive
verite has quit [Quit: Live long and prosper.]
fuyuuri has joined #nixos
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos
asuryawanshi has joined #nixos
<infinisil>
i actually screwed up my haskell development environment by updating nixpkgs..
<infinisil>
i thought about converting from using ghc-mod (which is very shaky) to haskell-ide-engine which should be better and the new thing. But I didn't know how to set it up exactly
oida has joined #nixos
* lejonet
has never even touched haskell
<infinisil>
it's really nice
<lejonet>
Thats not what I've heard... ;)
<infinisil>
you must've heard from the wrong people then. the benefits of functional programming are awesome
<alanz>
infinisil, I have heard rumours that there is a haskell-ide-engine config in the nix stuff somewhere
<tilpner>
Has anyone tried using nixops on Hetzner Cloud yet?
<infinisil>
alanz: just the package got added recently
<infinisil>
that's my main reason for wanting to try it out
<lejonet>
infinisil: I'm partly joking, I have some friends that do or have done haskell and they like it a lot, and I myself like funtional programming a lot too, the bad parts I've heard is mainly the typical "I have a hard time adjusting my imperative/object-oriented knowledge to apply in functional ways", kindof the same problems you've seen me having with the ceph module :P
<simpson>
lejonet: Haskell's got many flaws which add up to it being Just Another Programming Language. The other members of the ML family are interesting and some are more practical.
spear2 has quit [Quit: Leaving]
fuyuuri has quit [Ping timeout: 268 seconds]
<rauno>
if patchPhase is already overridden in package, how to still add a code patch to a package ?
<rauno>
or with what logic are the .patches added ?
quam6246 has joined #nixos
<lejonet>
simpson: Oh, care to point out some?
<lejonet>
simpson: both flaws in haskell and other in the ML family
<infinisil>
alanz: Yeah, although I didn't know about the multiple packages
<simpson>
lejonet: The ideal category Hask isn't the computational category for Haskell, typeclass composition is a little awkward and monad transformers are really awkward, Num is sadness, GHC's created a bit of a monoculture, and there's a lot of misleading memes.
<simpson>
Definitely check out Haskell. Also check out OCaml though, and maybe SML or 1ML or CakeML or F#, all of which have interesting things to offer.
<infinisil>
simpson: I'd argue that haskell is probably the most practical despite its flaws, due to it's decently big ecosystem
<hyper_ch2>
tilpner: hetzner has a cloud?
<tilpner>
hyper_ch2 - As of... recently, it does
<tilpner>
hyper_ch2 - And I don't know how to nixops against it :/
<simpson>
infinisil: Maybe. OCaml's got a better story for native code. Laziness is hard to compile well in general.
<lejonet>
simpson: the only hate I have against haskell is the pain it can be to package... but that might have just been how ganeti was built and not haskell in general, but the version requirements were laughably narrow and damn near impossible to fullfill
<simpson>
lejonet: Oh man, I actually worked in the Ganeti ecosystem on GWM and assorted tooling while I was at OSUOSL. Ganeti upstream is not really great at making packages which are easy to manage and deploy.
vincent_vdk has left #nixos [#nixos]
quam6246 has quit [Ping timeout: 260 seconds]
<infinisil>
Idris is also really nice in the language aspect (but it's super slow currently, and pretty much no ecosystem)
* infinisil
would like to help with idris development efforts eventually
<hyper_ch2>
so hetzner also became victim of that "cloud" hype :)
asuryawanshi has quit [Remote host closed the connection]
nkpart has quit [Quit: Connection closed for inactivity]
jtojnar has joined #nixos
jensens has joined #nixos
christiaanb has joined #nixos
orivej has joined #nixos
<christiaanb>
Is anyone else having problems connecting to cache.nixos.org?
ssmike has quit [Ping timeout: 248 seconds]
hamishmack has quit [Quit: hamishmack]
tmaekawa has joined #nixos
hamishmack has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg force-pushed unstable-aarch64 from dab334d to 01941c5: https://git.io/vSSlm
NixOS_GitHub has left #nixos [#nixos]
tmaekawa has quit [Client Quit]
<tilpner>
Does anyone maybe have an example of terraform and nixops cooperating? :/
sigmundv__ has joined #nixos
sigmundv_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] bkchr opened pull request #34219: googlemaps: Move the .so to the right location (master...googlemaps_fix_plugin_dir) https://git.io/vNoDY
NixOS_GitHub has left #nixos [#nixos]
sigmundv__ has quit [Ping timeout: 256 seconds]
rauno has quit [Remote host closed the connection]
glenn_ has quit [Ping timeout: 276 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vNoyF
<NixOS_GitHub>
nixpkgs/master b309103 Ioannis Koutras: skrooge: 2.9.0 -> 2.10.5...
<hyphon81>
OK, I understood. If we use Azure with NixOps, we should prepare the web app server for authentication...
ckauhaus has quit [Remote host closed the connection]
asuryawanshi has quit [Ping timeout: 240 seconds]
<rnhmjoj[m]>
can someone merge nixpkgs#34144?
quam6246 has quit [Ping timeout: 264 seconds]
92AACRD98 has joined #nixos
<92AACRD98>
[nixpkgs] Mic92 closed pull request #34219: googlemaps: Move the .so to the right location (master...googlemaps_fix_plugin_dir) https://git.io/vNoDY
<Mic92>
(might be wrong page, but there was something that could create local files from templates)
<tilpner>
Wouldn't a terraform targetEnv be better? With your idea, one would still have to use terraform on the original template to e.g. destroy stuff
<tilpner>
I don't know anything about implementing nixops targetEnvs though, and I'm not yet desperate enough to find out how :/
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] erictapen opened pull request #34222: rustc: adjust broken test src/test/run-pass/out-of-stack.rs (release-17.09...34189-rustc-fix) https://git.io/vNo9H
NixOS_GitHub has left #nixos [#nixos]
tmaekawa has joined #nixos
tmaekawa has quit [Client Quit]
MercurialAlchemi has quit [Ping timeout: 264 seconds]
ThatDocsLady has joined #nixos
<sudoreboot[m]>
I'm having some trouble with a nix-derivation; somehow, even though I specified a git commit rev, during the build phase I get compiler error messages that do not correspond to the source code at that commit, but an older one. Does this sound familiar to anyone else?
<lejonet>
simpson: haha, yeah, you don't say? xD
dan_b has quit [Ping timeout: 240 seconds]
<tilpner>
sudoreboot[m] - You need to change the hash, otherwise Nix will look into the store, say "Oh, I already have something that fits your hash", and give you that
<sudoreboot[m]>
tilpner: Ahhh, maybe that's the issue. I was waiting for it to complain about hash mismatch but then I shrugged it off and forgot about it when it never did.
<sudoreboot[m]>
How can I find out the hash before building?
<tilpner>
sudoreboot[m] - Use nix-prefetch-git, or change one character of the hash, and then pick the correct hash from the error message
<sudoreboot[m]>
I could leave it null or something and wait for the error?
<tilpner>
I don't know what null does here
<lejonet>
simpson: needless to say, I gave up and started researching alternative, SANE, solutions xD
ckauhaus has joined #nixos
<sudoreboot[m]>
tilpner: Thanks, nix-prefetch-git does the job
fuyuuri has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
ckauhaus has quit [Ping timeout: 255 seconds]
dan_b has joined #nixos
orivej has joined #nixos
asuryawanshi has joined #nixos
<hyphon81>
Now, I'm interested in how to build GPU cluster with Infrastructure as Code.
<hyphon81>
The NixOps, it can use same OS, same driver, same packages, those are in nixpkgs. Additionally, it need not to use virtual machines or containers, so no those overheads. I think so.
Ivanych has quit [Ping timeout: 240 seconds]
<hyphon81>
However, I practicing on AWS....
asuryawanshi has quit [Ping timeout: 248 seconds]
simukis has joined #nixos
FRidh2 has joined #nixos
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
fendor has joined #nixos
asuryawanshi has joined #nixos
<fendor>
good morning, i wanted to ask, what the recommended nix setup is for c developement
M666[m] has left #nixos ["User left"]
<fendor>
my problem is for example, that i want to use the google gmock test suite but when comppiling with cmake, nixos complains that it does not know the library "<limits>" but as far as i know, according to find, it should be installed somewhere on the system
Ivanych has joined #nixos
<sphalerite>
fendor: use nix-shell
<sphalerite>
fendor: for one-off stuff, just do nix-shell -p gcc foo bar (where foo and bar are any additional dependencies)
<sphalerite>
If you're going to be using the same environment often, it often makes sense to write a nix-shell expression or a full-on expression for building your software
<fendor>
sphalerite, so, gcc will find this way the specified libraries?
<sphalerite>
I'm on my phone right now so I can't provide an example easily just now but I'm sure someone else in here can help you with that, otherwise I can do so later if you want
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peti pushed 2 new commits to master: https://git.io/vNodf
<NixOS_GitHub>
nixpkgs/master 5569851 Daiderd Jordan: R: fix dylib install_name on darwin
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/master 9ffaa69 Peter Simons: Merge pull request #34209 from LnL7/darwin-libR...
<fendor>
sphalerite, there are enough resources on how to write nix-shell expressions, thanks!
<sphalerite>
fendor: yes, nix-shell spawns a shell where you have GCC wrapped with the appropriate variables to find the deps
<sphalerite>
Including the standard C++ library and stuff
hyphon81 has quit [Quit: Konversation terminated!]
<fendor>
sweet, just gonna find out where the limits library is located
quam6246 has joined #nixos
ckauhaus has joined #nixos
glenn_ has joined #nixos
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos
ThatDocsLady_ has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
rauno has joined #nixos
ThatDocsLady has quit [Ping timeout: 265 seconds]
a6a3uh has joined #nixos
la_putin has quit [Read error: Connection reset by peer]
la_putin has joined #nixos
fuyuuri has quit [Ping timeout: 248 seconds]
ThatDocsLady_ has quit [Ping timeout: 268 seconds]
rauno has quit [Ping timeout: 240 seconds]
coot has joined #nixos
<fendor>
hm, error persists, can someone point me how to find out which packages i need? in this case, still cant find the c++ library <limits>
<Taneb>
fendor: that's odd, <limits> is a C++ standard library
TweyII has joined #nixos
<Taneb>
Have you spelt it correctly in your source?
<TimePath>
It should just work?
<Tucky>
Hello, I just installed NixOs yesterday and in my config I add environment.systemPackages = [firefox] but when I opened it it said it was the nightly version (57.0.4). I expected to have the quantum version.
TweyII is now known as Guest94608
<tilpner>
Tucky - It says nightly for legal reasons, it's actually standard Firefox
<leons>
Tucky: Can you send the output of 'nix-channel --list' as root?
<tilpner>
Tucky - And 57 already has/is/? quantum
ssmike has joined #nixos
<fendor>
Taneb, i am using the gmock framework, so it would be difficult for it to be my fault
<Taneb>
Hmm, yeah
<Taneb>
Good point
<Taneb>
This is a mystery that's beyond my not-very-much nix knowledge.
<fendor>
:/
<leons>
tilpner: Can you explain? I always thought Iceweasel was called that way because of legal reasons. Nightly should just be the firefox nightly build, right?
kim0 has quit [Quit: Connection closed for inactivity]
<mbrock>
is there a way to use `callPackage x` while "recursively" overriding a specific package `y`? kind of like a local overlay
<leons>
tilpner: Oh, I didn't know that, thanks. Is it just the nightly build of the same codebase that eventually got into the release? Thats the only way I would consider it stable...
xcmw has joined #nixos
<tilpner>
mbrock - Not really. You can use callPackageWith to override an argument for x, but it will not automatically override arguments of dependencies
<leons>
tilpner: Nevermind, I've just noticed that it downloads the official firefox binary. So I guess it's just a rebranding. Thanks for the link though!
<tilpner>
mbrock - If you really wanted that, you could let callPackage = lib.callPackageWith (import <nixpkgs> { overlays = [ ... ]; }); in ...
<hyper_ch2>
Tucky: are you on Nixos 17.09 or Unstable?
<mbrock>
tilpner: yeah, was just thinking about that option. thanks! (I'll do the surgery by hand though, to avoid such a heavy operation)
<tilpner>
But that's expensive, and not foolproof. You will lose existing config arguments, and <nixpkgs> should probably be pkgs.path
<leons>
tilpner: s/binary/release source code/
<mbrock>
actually I have a pinned nixpkgs to point out, but still
<tilpner>
leons - You're talking about firefox-bin, but Tucky was asking about firefox
<mbrock>
another issue -- it seems that I have to run `systemctl restart hydra-queue-runner` nearly every time my Hydra runs my jobset, because it will just "get stuck" :(
<leons>
tilpner: actually, I looked at firefox (the one built from source). But you're totally right, it just removes the official branding during build time, but uses the release codebase
rauno has joined #nixos
<Tucky>
leons: sorry I am not in front of the said machine
gfixler has quit [Quit: WeeChat 1.4]
<Tucky>
leons: but normaly I use 17.09
<hyper_ch2>
ah, quantum is FF58
<Tucky>
hyper_ch2: Yeah I saw this this morning, I was not aware there were a new version
<joepie91>
quantum is indeed FF58 onwards; and 'quantum' just describes the new components and architecture, so anything FF-derived has it (so long as they follow upstream)
<hyper_ch2>
seems quantum isn't in unstable either
<joepie91>
fwiw, I run firefox-bin instead of firefox
<leons>
Tucky: No Problem. But as tilpner said, the name Nightly is just used for legal reasons. I just checked, 57.0.4 now is the correct version for both the 17.09 and unstable channel. So I guess if you didn't change anything, you are on 17.09
<joepie91>
which is how I have FF58 :P
<tilpner>
joepie91 - Huh, I thought it was FF57+
<joepie91>
58, wasn't it?
<joepie91>
let me double check
<joepie91>
oh
<joepie91>
no, it was indeed 57
<joepie91>
why did I remember it as 57? o_O
rauno has quit [Ping timeout: 256 seconds]
<joepie91>
why did I remember it as 58? o_O *
<joepie91>
okay I clearly haven't had enough sleep tonight, time for me to stop talking I think :P
<tilpner>
:)
jensens has quit [Ping timeout: 248 seconds]
jensens has joined #nixos
<hoverbear>
How do I get the executable location of a nixpkg I have installed?
quam6246 has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<FRidh2>
readlink -f $(which mypkg)
<hoverbear>
Danke
<hyper_ch2>
tilpner: still using your write file nix expression happily :)
civodul has joined #nixos
asuryawanshi has joined #nixos
rauno has joined #nixos
a6a3uh has quit [Quit: Bye]
spietz has quit [Ping timeout: 268 seconds]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
ylwghst has joined #nixos
ylwghst has quit [Ping timeout: 268 seconds]
knupfer has quit [Ping timeout: 255 seconds]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
glenn_ has quit [Ping timeout: 255 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh force-pushed python-unstable from ba11352 to 323b48f: https://git.io/v5aIf
<NixOS_GitHub>
nixpkgs/python-unstable 901ece4 Frederik Rietdijk: python.pkgs.backports_ssl_match_hostname: set disabled
<NixOS_GitHub>
nixpkgs/python-unstable d4f798c Frederik Rietdijk: python.pkgs.tornado: fix optional dependency
<NixOS_GitHub>
nixpkgs/python-unstable 3ffc188 Frederik Rietdijk: python.pkgs.backport_functools_lru_cache: set disabled
NixOS_GitHub has left #nixos [#nixos]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zzamboni has quit [Quit: Leaving.]
iyzsong has joined #nixos
zzamboni has joined #nixos
ckauhaus has quit [Remote host closed the connection]
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
nixpkgs/staging 769342b Frederik Rietdijk: Merge remote-tracking branch 'upstream/master' into HEAD
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/vNojC
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 5 new commits to staging: https://git.io/vNoj4
<NixOS_GitHub>
nixpkgs/staging e9794d5 Frederik Rietdijk: python.pkgs.backports_ssl_match_hostname: set to null conditionally
<NixOS_GitHub>
nixpkgs/staging a6bb228 Frederik Rietdijk: python.pkgs.backport_functools_lru_cache: set to null conditionally
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/staging 18275c6 Frederik Rietdijk: python.pkgs.tornado: fix optional dependency
jensens has quit [Remote host closed the connection]
jensens has joined #nixos
zzamboni has quit [Quit: Leaving.]
ckauhaus has joined #nixos
<Tucky>
Still about firefox, how can I change the application language?
ssmike has quit [Quit: ssmike]
a6a3uh has joined #nixos
Myrl-saki has joined #nixos
Fare has joined #nixos
himmAllRight17_ has quit [Remote host closed the connection]
zzamboni has joined #nixos
Myrl-saki has quit [Read error: Connection reset by peer]
leat1 has joined #nixos
knupfer has joined #nixos
ma27 has joined #nixos
leat has quit [Ping timeout: 248 seconds]
m712 has joined #nixos
ma27 has quit [Client Quit]
orivej has quit [Ping timeout: 248 seconds]
ma27 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] P-E-Meunier opened pull request #34225: Pyrseas: init at 0.8.0 (master...pyrseas) https://git.io/vNKv5
NixOS_GitHub has left #nixos [#nixos]
<m712>
i can't find any docs on changing my session on nixos. I set up an .xinitrc but that didn't do anything, i still get a single xterm. how can i change it?
<infinisil>
m712: .xsession
<m712>
okay, will check it out
<infinisil>
if you have this in your $HOME, nixos will use this instead of the default wm/de in the configuration
a6a3uh has quit [Quit: Bye]
alexteves_ has joined #nixos
Myrl-saki has joined #nixos
LouisDeFunes294 has joined #nixos
LouisDeFunes294 has quit [Client Quit]
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos
ckauhaus has quit [Remote host closed the connection]
ckauhaus_ has joined #nixos
zzamboni has quit [Quit: Leaving.]
ckauhaus_ has quit [Remote host closed the connection]
ckauhaus has joined #nixos
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos
zzamboni has joined #nixos
glenn_ has joined #nixos
ylwghst has joined #nixos
dan_b has quit [Ping timeout: 248 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] thefloweringash opened pull request #34227: rustc: Fix corrupted .rlib files caused by stripping on Darwin (master...rust-darwin-dont-strip) https://git.io/vNKUg
<ij>
How does nix-shell choose its channel if I'ven't overriden it via NIX_PATH or -I?
<tilpner>
It picks it from NIX_PATH
<tilpner>
<nixpkgs> specifically
<ij>
Oh, right I've a default one. :/
<ij>
forgot that
<magnetophon>
tilpner: I have package = (emacs.override { imagemagick = pkgs.imagemagickBig; } );
* tilpner
builds
dywedir has quit [Ping timeout: 260 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] P-E-Meunier opened pull request #34228: Carnix: adding new crate overrides (master...rust-libsodium) https://git.io/vNKLu
NixOS_GitHub has left #nixos [#nixos]
<Baughn>
Is bandwidth on NixOS.org a concern at all?
<Baughn>
I'm working on a Hetzner Cloud module for NixOps, and the easiest way to do it would be nixos-in-place, but it uses the installation CD image.
glenn_ has quit [Ping timeout: 276 seconds]
<tilpner>
:o
ckauhaus_ has joined #nixos
<tilpner>
Baughn - I looked at if their terraform plugin allowed a custom ISO, but there's no docs yet
<tilpner>
Baughn - Apparently, you can just ask them to upload an ISO for you, but they haven't answered my ticket yet
duckwho has joined #nixos
<tilpner>
That would solve the bandwidth problem though
ckauhaus has quit [Ping timeout: 256 seconds]
ckauhaus_ has quit [Read error: Connection reset by peer]
xcmw has joined #nixos
<Baughn>
tilpner: I've asked them if snapshots can be made public, which would be more maintainable. We'll see.
<Baughn>
I bet they're flooded right now.
<tilpner>
I refrained from critising that in my ticket, hoping they will notice how much support overhead this adds
himmAllRight17 has joined #nixos
waleee has joined #nixos
<magnetophon>
tilpner: is it building?
peacememories has joined #nixos
<tilpner>
Oh, sorry, forgot about it. Yes, it finished fine
<magnetophon>
tilpner: what could cause it to fail here?
xcmw has quit [Ping timeout: 256 seconds]
<tilpner>
I have no idea, considering they even have the same hash
<tilpner>
It built /nix/store/074wycdl5nkg43y1k36sv9q9fka9lybs-emacs-25.3 here
<gchristensen>
Baughn: it isn't a concern
<tilpner>
And for you it says building path(s) ‘/nix/store/074wycdl5nkg43y1k36sv9q9fka9lybs-emacs-25.3’
xcmw has joined #nixos
<magnetophon>
tilpner: odd
zzamboni has quit [Quit: Leaving.]
reinzelmann has quit [Quit: Leaving]
<magnetophon>
Anyone have an idea how a build of the same hash could fail on one system but work on the other?
glenn_ has joined #nixos
<tilpner>
Sandboxing can do that, but I don't think it's the case here
<magnetophon>
tilpner: I assume you are on x86_64 too? I'll try without sandboxing, thanks.
<tilpner>
Yes
<tilpner>
Baughn - Do you have a branch somewhere I could look at?
phdoerfler has joined #nixos
<gchristensen>
magnetophon: should always go _to_ sandboxing if there are problems with reproducibility
<waleee>
Is it possible to use CUnit as a system-wide installed C-library or are you forced to use eg. nix-shell -p cunit?
<magnetophon>
tilpner, gchristensen: same result with and without sandboxing... :(
<tilpner>
waleee - Possible, but not supported or practical outside Nix tools
glenn_ has quit [Ping timeout: 246 seconds]
<Baughn>
tilpner: I literally started playing with this yesterday. :P
ThatDocsLady_ has joined #nixos
zzamboni has joined #nixos
* tilpner
too
<Baughn>
tilpner: I haven't written anything yet. Though, even if I had, I couldn't without first checking with my workplace.
<tilpner>
Well, technically just today, my account needed verification
<waleee>
tilpner: I'm using nixos, but are sometimes offline when coding C
<tilpner>
Baughn - Just got a reply: "Additional ISO images will be possible in a few days. Thank you for your patience."
<Baughn>
Ah, cool.
Tucky has quit [Ping timeout: 240 seconds]
fuyuuri has joined #nixos
<tilpner>
Ironically the CS reps last name is "Schade" c.c
<NixOS_GitHub>
[nixpkgs] adisbladis pushed 1 new commit to master: https://git.io/vNKOh
rardiol1 has left #nixos [#nixos]
<d4g>
Is anybody interested in a consistency issue regarding uniqueness and unique derivations?
<d4g>
I found kind of a loophole, that results in disturbing errors
<tilpner>
Easily reproducable?
<d4g>
relatively yes
<d4g>
I already know why it happens
* infinisil
is interested
<d4g>
I also opened a bug regarding this issue
<d4g>
It's regarding the USB images
<d4g>
they try to resolve them selves via /dev/disk/by-label
<d4g>
and try to find a non-unique label
<d4g>
so the label is the same on every stick
<d4g>
I had an issue where $someone flashed a nixos installer to a secondary internal drive
<d4g>
then a few days later he tried to install nixos via a newer version of the image
<hyper_ch2>
d4g: can you post your configuration as well?
<d4g>
that he downloaded and flashed to a usb drive
zzamboni has quit [Ping timeout: 240 seconds]
<d4g>
nixos crashes on boot because there seems to be some kind of race condition, which disk is the one linked by /dev/disk/by-label
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh opened pull request #34231: python37: init at 3.7.0a4 (master...python37) https://git.io/vNK3X
NixOS_GitHub has left #nixos [#nixos]
cement has joined #nixos
<d4g>
So the loarder from the usb drive looks for its kernel on the according nix store path but accesses the wrong disk
magnetop` has joined #nixos
erasmas has joined #nixos
<d4g>
end of story :)
magnetophon has quit [Ping timeout: 268 seconds]
iqubic has quit [Ping timeout: 276 seconds]
<infinisil>
i actually had trouble with something very similar: 3 partitions containing a luks key all with the same label (so i could use any of the three). But when trying to unlock the disk, i got an error that the password was wrong, but only if more than 1 such key partition was connected
<infinisil>
disconnecting everything but one made it work
<hyper_ch2>
d4g: can you post me your systemd networking?
<d4g>
One solution would be to generate a unique disk label in the build job that creates the image
<d4g>
hyper_ch2: on it, need some sonetisation ...
Tucky has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #34232: nix-prefetch-git: fix extraction of submodule hashes on latest git (master...fix/nix-fetchgit-hash-extraction) https://git.io/vNKs3
NixOS_GitHub has left #nixos [#nixos]
<dtz>
^ please merge that soon, barring any objections
<pmeunier>
Hi! How can I make a path relative (or absolute) in nix?
<dtz>
nix-prefetch-git needs to not be broken, is all :)
nuncanada has joined #nixos
<infinisil>
pmeunier: path expressions (such as ./.) expand to an absolute path
<hodapp>
ugggh, why is hcitool missing from 'bluez' but not 'bluez_28'...
<tilpner>
Not very, it seems like an obscure condition that you have to try to trigger. It also doesn't affect installed NixOS, right?
<d4g>
True, but it should be easy to fix?
<hyper_ch2>
d4g: thx
<d4g>
It is probably more likely if you have more than one USB stick inserted or something like that
<d4g>
hyper_ch2: you're welcome.
<hyper_ch2>
d4g: I don't know really anything how bridging works etc... I just setup mine as in the example I've given but I'm sure there's plenty that could be optimized :)
<d4g>
hyper_ch2: I use it mainly for libvirtd, to attach different VMs to different nets and my host only to some of those.
<d4g>
host meaning laptop in this case ;)
adamt has joined #nixos
<typetetris>
Hi there! Are there options to make nixos prefer an ethernet connection if both cable and wifi are present?
<hyper_ch2>
d4g: I also need it for qemu/kvm :)
ckauhaus has joined #nixos
<hyper_ch2>
typetetris: hmmm, add a route?
<adisbladis[m]>
typetetris: Thats the default behaviour if you use networkmanager
iyzsong has quit [Ping timeout: 260 seconds]
<adisbladis[m]>
Or am I wrong? I have always had that impression anyway
<hyper_ch2>
adisbladis[m]: I think it prefers by default ethernet over wifi
<d4g>
But only if the ethernet is also managed by network manager
<hyper_ch2>
and probably wifi over mobile internet (3g/4g/5g)
<d4g>
which is not the case, if you have it on a bridge
<typetetris>
I just noticed that both routes are set for both devices in my actual config.
leat1 has quit [Ping timeout: 248 seconds]
<typetetris>
as soon as i plug in the cable of course.
Drakonis has joined #nixos
thomassgn has quit [Ping timeout: 256 seconds]
<typetetris>
ah, ok. So it will use the route with the lowest metric and that actually is the cable. All fine then.
vidbina has quit [Ping timeout: 264 seconds]
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hodapp>
possibly dumb question: in a shell.nix how would I refer to nixpkgs.bluez rather than nixos.bluez? where does one bring 'nixpkgs' into scope?
<d4g>
is there a way i can override the metric using nixos?
peacememories has joined #nixos
ckauhaus has quit [Remote host closed the connection]
<hodapp>
because for whatever reason nixos.bluez is a newer version than nixpkgs.bluez, but the newer version is missing hcitool.
thomassgn has joined #nixos
ckauhaus has quit [Remote host closed the connection]
<hodapp>
and I don't even know where to start looking for how to resolve this because guess what I get when I search for the attributes "nixos" and "nixpkgs"...
ckauhaus has joined #nixos
a6a3uh has joined #nixos
<d4g>
hyper_ch2: ?
<hyper_ch2>
d4g: [16:33] <d4g> is there a way i can override the metric using nixos? --> you should be able to add your own route commands
<infinisil>
hodapp: what's the output of nix-info?
JosW has joined #nixos
<d4g>
yeah, but this is not "the nix way to do it" :)
<d4g>
I'd prefer not to run arbitary console commands but to use a config option
<hyper_ch2>
it is the nix way -- adding things to configuration.nix is the nix way :)
<hodapp>
maybe I should just figure out why bluez decided to fuck things up for the 1,372nd time and remove useful tools
<hodapp>
because my problems with it didn't start with NixOS
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos
<infinisil>
hodapp: hmm, no idea, having used nix for a while now I still don't know the full thing about nixpkgs and nixos names and channels
<infinisil>
seems you only have one channel which i find weird
<infinisil>
I feel like nix/nixos could really benefit from getting rid of this confusing channel naming thing and stuff
<hyper_ch2>
how about "beginner" "intermediate" and "expert" channels? :)
<infinisil>
hodapp: how did you verify they're a different version?
<hodapp>
well, guess I am gonna go try to remember how to split apart parts of a build into steps so I can figure out what BlueZ fucked up
glenn_ has joined #nixos
<hyper_ch2>
hodapp: what does hcitools do? I tread on the weekend to connect my new wireless earbuds to the notebook BT but the notebook couldn't even detect them
<hyper_ch2>
s/tread/tried/
ThatDocsLady_ has quit [Remote host closed the connection]
<hodapp>
hyper_ch2: gives various bits of functionality that I need for some Bluetooth Low Energy development
ThatDocsLady_ has joined #nixos
<hodapp>
and for whatever reason bluez-5.47 either doesn't build these, or they're not visible
<manveru>
was `nix search` removed from unstable?
<hyper_ch2>
hodapp: ok... well, the earbuds were in pairing mode.... lineageos cellphone and tablet recognized them immediately but not my notebook with nixos... so now I wonder whether it's because of what you wrote
<hodapp>
it's just a userspace tool that afaik isn't needed much for what you describe
<hyper_ch2>
ok
<infinisil>
manveru: works for me
<d4g>
alias nix ?
<manveru>
infinisil: i'm on 1.12pre5849_74f75c85
<infinisil>
d4g: nixUnstable
<hyper_ch2>
manveru: what is "nix search" for?
<infinisil>
manveru: 1.12pre5732_fd10f6f2 for me
<manveru>
lemme check their repo
raynold has joined #nixos
glenn_ has quit [Ping timeout: 255 seconds]
<tilpner>
manveru - nis -p master.nixUnstable --run 'nix search --help' works here
<manveru>
well, it works now...
<disasm>
manveru: did you see my question last night about bundix and how to specify non-ruby dependencies for a gem?
<samueldr>
hmmm, I forgot all about BLE and how it works entirely differently with bluez... a mention should be added to the wiki page about bluetooth
<hodapp>
other dumb question: what is the correct magical incantation to use so that "nix-shell -A bluez" properly drops me into an environment where I could build bluez?
<manveru>
disasm: nope
<hodapp>
it just gives "error: attribute ‘bluez’ in selection path ‘bluez’ not found" presently
elurin has joined #nixos
<hodapp>
likewise for nixos.bluez
<samueldr>
nix-shell -p bluez ?
ckauhaus_ has joined #nixos
ckauhaus has quit [Remote host closed the connection]
rauno has quit [Remote host closed the connection]
<disasm>
manveru: is it possible to specify non-ruby dependencies in a gemset.nix generated by bundix? My use case is gpgme won't compile on osx because ld: library not found for -lobjc (which is darwin.libobjc)
Sonarpulse has joined #nixos
<infinisil>
hodapp: tip: use `nix-env -qaP | fzf` to search for packages
<samueldr>
if it's for a particular nixpkgs checkout, possibly using -I ?
magnetop` has quit [Ping timeout: 240 seconds]
<infinisil>
hodapp: ahh, and you want nix-shell '<nixpkgs>' -A bluez
<infinisil>
(disregard what i said above)
periklis has joined #nixos
oida has quit [Quit: WeeChat 1.6]
<hodapp>
thanks, that's the magical incantation I was looking for that I would have no way of ever discovering on my own nor finding via a search engine except by pure luck
<manveru>
disasm: no, you usually add them to the gem configuration instead of modifying the gemset.nix
<hoverbear>
So I have an overlay I made for nixpkgs which adds a `configured.neovim` which is defined in `overlay/neovim/default.nix` and calls `builtins.readFile ./init.vim`, but it seems to not be getting this file. Is this because the path semantics are different than if I just do `import ./overlay/neovim`?
<brodul>
last commit in this package is 31-12-2017
<brodul>
*2017-12-31
knupfer has quit [Ping timeout: 256 seconds]
johnw has quit [Remote host closed the connection]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 2 new commits to master: https://git.io/vNKBg
<NixOS_GitHub>
nix/master 59086e4 Tuomas Tynkkynen: Fix tests using user namespaces on kernels that don't have it...
NixOS_GitHub has left #nixos [#nixos]
nkaretnikov has joined #nixos
<infinisil>
hoverbear: ~/.config/nixpkgs/overlays
<hoverbear>
infinisil: nixos =D
<infinisil>
hoverbear: (that works on nixos too), so you used nixpkgs.overlays?
<hoverbear>
infinisil: Yes but I just realized that it was actually read fine I just only had an empty file 😊
<hoverbear>
infinisil: Thank you very much for thinking of me
<infinisil>
:P
<hoverbear>
Next task is figure out how to bake a custom ZSH package with a portable config
johnw has joined #nixos
fyuuri has quit [Ping timeout: 246 seconds]
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dezgeg pushed 2 new commits to master: https://git.io/vNK0q
<NixOS_GitHub>
nixpkgs/master cd2e740 Tuomas Tynkkynen: nixos/sd-image-aarch64.nix: Set avoid_warnings in RPi config.txt...
<NixOS_GitHub>
nixpkgs/master d02c2d6 Tuomas Tynkkynen: nixos/sd-image-*.nix: Bring back high consoleLogLevel...
NixOS_GitHub has left #nixos [#nixos]
ckauhaus_ has quit [Remote host closed the connection]
duckwho has quit [Ping timeout: 240 seconds]
ckauhaus has joined #nixos
simendsjo has joined #nixos
<tilpner>
hoverbear - You're going in a good direction, do you have your config visible anywhere?
orivej has quit [Ping timeout: 264 seconds]
leat1 has joined #nixos
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos
ThatDocsLady_ has quit [Ping timeout: 264 seconds]
<hoverbear>
tilpner: yes I plan to once I learn to do it :)
<tilpner>
Do you require the "wrapping over installation" approach, or does it just feel more appropriate to you?
ryanartecona has joined #nixos
<hoverbear>
tilpner: I don't know what the difference is. 🤔
<hoverbear>
tilpner: I mostly just want to be able to define a zsh config/plugins like I do with neovim
Drakonis has quit [Read error: Connection reset by peer]
<tilpner>
The easy way is to just write a file into your home directory. Why is that approach not enough? (I agree it feels wrong, but it's so much less effort)
ryanartecona has quit [Ping timeout: 268 seconds]
<infinisil>
I really want more packages like vim that allow you to create a package that includes a config
dkao has quit [Ping timeout: 268 seconds]
<infinisil>
not how most of stuff is handled today with a nixos module
<infinisil>
having such pkg+config packages also means they're usable from other distros and in nixos/home-manager
hotfuzz has joined #nixos
duckwho has joined #nixos
hotfuzz_ has quit [Read error: Connection reset by peer]
Tucky has quit [Quit: WeeChat 2.0.1]
<tilpner>
Yes, I understand what you want, I'm just curious why you want it. You appear to be on NixOS, so you can use the modules
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dtzWill opened pull request #34235: ipvsadm: init at 1.29 (master...feature/ipvsadm) https://git.io/vNKzs
NixOS_GitHub has left #nixos [#nixos]
swayf has quit [Remote host closed the connection]
lonokhov has quit [Quit: Lost terminal]
ryanartecona has joined #nixos
elurin` has joined #nixos
peacememories has joined #nixos
elurin has quit [Read error: Connection reset by peer]
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos
<gchristensen>
chris|: did you PM me? (grahamc)
pie_ has quit [Ping timeout: 256 seconds]
ckauhaus_ has joined #nixos
<chris|>
gchristensen: I did :)
<gchristensen>
it seems it didn't come through. wannt to try again, but here? :)
<chris|>
I was wondering what that status of the odroid-c2 support was, since the wiki mentions grahamc as the maintainer
<gchristensen>
I think some people have it working, try #nixos-aarch64 :)
ckauhaus has quit [Ping timeout: 256 seconds]
ixxie has joined #nixos
detran has quit [Remote host closed the connection]
<dtz>
ooooooooo
<chris|>
okay, thanks :)
<infinisil>
tilpner: it just feels wrong to use nixos modules for package configuration
ckauhaus_ has quit [Ping timeout: 256 seconds]
<infinisil>
package config belongs to the packages
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil>
A reason I want this is because I'm also using home-manager, which currently would need to duplicate all relevant nixos modules. By being able to create a pkg+config package, nixos and HM could share a single definition (and all other distros)
<tilpner>
infinisil - I've been agreeing with that this entire time, I was just hoping for "I have an actual multi-user machine, so modules don't cut it" or "I want to make it easier for non-NixOS users to define their entire configuration with Nix"
<infinisil>
well the home-manager argument is the most relevant one for me
periklis has quit [Ping timeout: 256 seconds]
elurin` has quit [Remote host closed the connection]
a6a3uh has joined #nixos
<infinisil>
but then again, I'm not sure how to do the configuration without the module system, as being able to use option descriptions, types, etc. are really nice
fendor has quit [Remote host closed the connection]
<dtz>
we need to hire some full-time maintainers haha, so many PR's so little time :D
<superN00b>
^^
fendor has joined #nixos
Itkovian has joined #nixos
<FRidh2>
and a code review bot
<gchristensen>
or figure out how to make better use of the maintainers we have and improve their ability to review
<infinisil>
hmm, a code review bot sounds nice..
<gchristensen>
FRidh2: does a code review bot use magical algorithms (if rand() == 4) to approve PRs?
<FRidh2>
gchristensen: I think 90% of my review comments are just repeating things over and over again
davidcl has joined #nixos
<infinisil>
gchristensen: Hmm maybe just check the formatting for starters. Then maybe also check that meta is set. (Talking specifically about pkgs PRs)
<FRidh2>
which is getting rather frustrating
<infinisil>
FRidh2: Such as?
dbe_ has quit [Ping timeout: 240 seconds]
<gchristensen>
FRidh2: can you help me define some rules here that could be detected?
<FRidh2>
gchristensen: sure, where would you like to collect these?
<srhb>
In most cases where I leave alone a PR it's because I don't feel confident about the topic and I don't know who to refer it to (or whether there's a process for that)
MP2E has joined #nixos
<gchristensen>
FRidh2: it could be an issue here: nixos/ofborg or even just in chat
<FRidh2>
In its simplest form it would be sufficient if it would simply point to certain predefined "comments" based on what files are touched
<srhb>
Somewhat alleviated by githubs auto detection, but could maybe also be helped by a "maintainer catalog" with self-descriptions of topics of interest.
<infinisil>
+1 to that, I don't know 95% of the packages of the PR's
<FRidh2>
simply because guidelines vary per part of Nixpkgs and are updated all the time as well
<dtz>
infinite build power and many more tests, might make reviewing things easier. Doesn't replace using your brain of course but it helps :)
<gchristensen>
FRidh2: if it is that simple, of map files touched -> static comment, this is easy
<FRidh2>
gchristensen: yes, such a bot has been on my todo list :)
pie_ has joined #nixos
<gchristensen>
FRidh2: define some rules, I'll build it
szicari has quit [Ping timeout: 255 seconds]
szicari_ is now known as szicari
<FRidh2>
alright
dkao has joined #nixos
mizu_no__ has joined #nixos
ckauhaus has joined #nixos
a6a3uh has quit [Quit: Hi]
datakurre has quit [Ping timeout: 265 seconds]
pie__ has joined #nixos
knupfer has joined #nixos
Dezgeg has quit [Ping timeout: 246 seconds]
pie_ has quit [Ping timeout: 268 seconds]
mizu_no__ has quit [Quit: Computer has gone to sleep.]
<gchristensen>
I'm in the middle of retooling how ofborg comments on PRs, so this is a perfect time to get this sort of idea in :)
<FRidh2>
great
<FRidh2>
I do think this kind of tool on its own is extremely useful for other projects as well
<gchristensen>
yeah
datakurre has joined #nixos
Dezgeg has joined #nixos
oida has joined #nixos
<gchristensen>
I have a bit of an ecosystem / framework the tools fit in to... other people could set that framework up on their own, or pull out the logical bits, or someone else could build it in such a way that doesn't use the framework I've been working i
<gchristensen>
infinisil: yeah, it isn't crash-proof :)
<tilpner>
infinisil - You don't need the merging functionality of the module system. So you're just missing type checking, right?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 13 new commits to staging: https://git.io/vNKKU
<NixOS_GitHub>
nixpkgs/staging fffd72c Will Dietz: lsof: fix for cross
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub>
nixpkgs/staging b62864a Ben Gamari: e2fsprogs: Enable cross-compilation
<NixOS_GitHub>
nixpkgs/staging 3fe8e61 Will Dietz: e2fsprogs: depsBuildBuild
<infinisil>
Well i can't really say anything since my backend'y been (probably) memory leaking for this whole time and i haven't fixed it
<infinisil>
tilpner: yeah, only part of it would be required
<infinisil>
Guess some new functions are required for it to work nicely
peacememories has joined #nixos
ckauhaus has quit [Remote host closed the connection]
<tilpner>
Just some way to check an attrset against a structure, complain on type mismatch, complain on missing required argument, fill in missing optional arguments as default, right?
<infinisil>
tilpner: hmm yeah, plus some way to generate docs would be nice
<tilpner>
Oh, right
mekeor has joined #nixos
rihards has joined #nixos
ckauhaus has joined #nixos
<infinisil>
tilpner: i guess it's pretty much a function invocation wich checked types, which would be generally useful, not just for this
mekeor has quit [Ping timeout: 255 seconds]
nextos has joined #nixos
musicmatze has quit [Ping timeout: 248 seconds]
<hodapp>
"cannot find -lboost_python-py34" bluuuuuuugh, why is something insisting on... python 3.4 bindings for boost?
<hodapp>
is this even a thing I can install?
musicmatze has joined #nixos
Myrl-saki has quit [Ping timeout: 240 seconds]
dkao has quit [Ping timeout: 260 seconds]
Rusty1_ has joined #nixos
ckauhaus has quit [Remote host closed the connection]
<nextos>
hi, im using nixos and there's a little thing that annoys me but haven't figured out. "nixpkgs.git" maps to "git-minimal" but I'm getting an ugly x11 password popup everytime I need to enter credentials when I push to some repo. Theoretically git-minimal builds with gui=false, so im a bit puzzled
Guest94608 has quit [Ping timeout: 246 seconds]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hoverbear>
nextos: Are you using gpg signing or something maybe?
mekeor has joined #nixos
<hoverbear>
nextos: Nevermind me I don't know what I'm talking about, I just realized you mean the https auth which I've never used. xD
<hodapp>
ugh, fetchFromBitbucket is hard-coded to assume .tar.gz when the repo I'm looking at is providing only .zip
ckauhaus has joined #nixos
vidbina has quit [Ping timeout: 240 seconds]
alexteves has joined #nixos
<nextos>
hoverbear: it seems like a tcl/tk dialog. i get this by simply pushing to a github repo, which asks username/pass credentials.
<nextos>
And by inspecting git derivation, i see that git-minimal makes gui=false
<nextos>
which disables tcl/tk, so i must be missing something
<nextos>
yeah its https auth
<cransom>
nextos: is it possible you have another git in your path/profile that isn't minimal and it's overriding the system?
<digitalmentat>
ah okay, in evangelising Nix to other people in my company, the complaint that lib functions aren't in the manual comes up a lot (that it's hard to search github for the word "version" when what you're looking for is in `nixpkgs/lib/*`)
<digitalmentat>
I will look at that PR and see if there's anything I can do to help
<digitalmentat>
thanks LnL
orivej has joined #nixos
Olgierd has quit [Quit: WeeChat 1.9.1]
morenoh149 has quit [Ping timeout: 248 seconds]
Olgierd has joined #nixos
<hodapp>
weird... keep running into issues because something wants to link against boost_python-py34 (which is missing as I'm on Python 3.6). I applied a patch from a PR to make that boost_python-py36 - but that too is not present, however, libboost_python is; can I rely on this being present and being the correct version?
jrolfs_ has joined #nixos
<hodapp>
I guess I could get the correct library name somehow and put that in the patch...
mkoenig_ has quit [Ping timeout: 265 seconds]
burgdorfer_ has joined #nixos
morenoh149 has joined #nixos
burgdorfer_ has quit [Client Quit]
fendor has joined #nixos
mkoenig has joined #nixos
zzamboni has joined #nixos
Itkovian has joined #nixos
zzamboni has quit [Quit: Leaving.]
<disasm>
manveru: not yet
zarel has quit [Ping timeout: 240 seconds]
asuryawa_ has joined #nixos
<hoverbear>
Huh, for some reason my nixos install is building rustc from scratch
asuryawa_ has quit [Remote host closed the connection]
<srid>
hoverbear I have the same issue on 17.09 (not on unstable though)
<tilpner>
LnL - ^?
asuryawa_ has joined #nixos
<LnL>
hmm?
<nonethejewels>
i'm new to nixos and looking at the example config and online manual i see one can search for packages with `nix-env -qaP`. i tried that but searching for "xmobar" i don't see anything. looking at another person's config i see `haskellPackages.xmobar` but why isn't that among the results of `nix-env -qaP` ? is there some option somewhere that would allow more results (albeit much slower, i'm
<LnL>
ah yes, a fix will be on it's way soon
<nonethejewels>
guessing)?
<LnL>
nix-env won't search everything like haskell stuff by default
<hoverbear>
srid: I think it's ripgrep, hydra might be building i
<hoverbear>
it
<LnL>
nix-env -f '<nixpkgs>' -qaP -A haskellPackages
morenoh149 has quit [Ping timeout: 252 seconds]
<srid>
Yup, ripgrep.
<LnL>
also take a look at nix-index
<srid>
I ripped it away and went back to ag.
<tilpner>
hoverbear - The issue is a few days old, LnL says it'll be fixed soon. For now you can try another channel or not use rustc for now
asuryawanshi has quit [Ping timeout: 256 seconds]
<taktoa>
jeez, I guess it's been a while; `nix-collect-garbage --delete-older-than 45d` just freed up 35 GiB of space
<disasm>
manveru: I tried adding --use-system-libraries and it complained about xcode being required
<tilpner>
hoverbear - Try nixos-unstable, it has prebuilt rustc
<hoverbear>
tilpner: =D Danke
<LnL>
tilpner: hoverbear: well we have the other rustc version that's used by firefox
<disasm>
err You have to install development tools first.
<LnL>
probably works
<tilpner>
LnL - Did you figure out why this happens? Is rustc not a requirement for channel advancement?
<tilpner>
Well, maybe not, if firefox uses another package
<LnL>
tilpner: exactly what I just posed, firefox needs a newer version of rust so that didn't stop the channel update
<tilpner>
LnL - I didn't know about the version pin for FF, so I assumed normal rustc would be covered by Hydra checks. Thanks :)
<tilpner>
(Maybe it should be?)
<hoverbear>
Ripgrep builds fine on nightly so it's fine =D
<tilpner>
s/nightly/unstable/
<tilpner>
Oh, you mean Rust nightly
<tilpner>
Oops
<hoverbear>
tilpner: No I mean rustc nightly. I happen to be a rustdev and usually just use nightly lol
<catern>
nonethejewels: just grepping your local copy of nixpkgs can also work well
<tilpner>
And I know you are! :/
<hoverbear>
tilpner: =D
<hoverbear>
tilpner: Did we meet at a rust conf? I can't remember. :(
<catern>
nonethejewels: nix-index is faster though
lonokhov has joined #nixos
<tilpner>
hoverbear - No, we talked about Rust a few times in 2014/2015(?), and your name is catchy
<hoverbear>
Hahaha
<tilpner>
My logs don't reveal what about though
zarel has joined #nixos
alex`` has joined #nixos
<tilpner>
hoverbear - Earliest thing still in my logs is when we talked about cooperating on an RFC for item references for rustdoc. Which still didn't happen, right?
srdqty1 has joined #nixos
<hoverbear>
tilpner: Actually it just landed on nightly
<cole>
Hi all, I'm trying to install nix from source and I get an error generating the documentation. Does anyone know if there is a way to compile without generating the documentation?
magnetophon has quit [Ping timeout: 246 seconds]
burgdorfer[m] has joined #nixos
<simpson>
cole: It should be taken care of automatically if you're using Nix to run the build. Is this Nix unstable or from a release?
<LnL>
any particular reason you don't want to use nix to build it?
<cole>
I'm using the master branch, so I guess unstable?
jb55 has quit [Ping timeout: 252 seconds]
<cole>
LnL I am trying to install nix package manager on RedHat OS, so I can't use nix to build it unfortunately
<simpson>
Hm. Doesn't the single-user installer work on RHEL?
<cole>
simpson it would, but I don't have root privleges so I need to set a custom locations for the prefix, state, and store
<simpson>
cole: Oh yikes.
<simpson>
I mean, yes, that *can* be done, but every single package must be rebuilt, and you're basically doing Gentoo or LFS at that point.
<MichaelRaskin>
And user namespaces are not enabled, I guess
<simpson>
Maybe just don't use Nix on this machine? It doesn't sound like it's your machine, so it's really not up to you whether it has Nix.
<MichaelRaskin>
Well, if you compare to LFS, it is still A/B LFS
rihards has quit [Quit: rihards]
<MichaelRaskin>
It might still be less annoying to build everything using Nix than update hand-compiled stuff≤
<simpson>
Oh, yeah, the one great thing is that once that Nix build gets started, it'd probably gonna Just Work. But you can't get meaningful sandboxing without the Nix daemon, right?
<maurer>
simpson: One of the nice use cases for non /nix/ located nix-stores _is_ for personal environments where you don't have control over the system
<maurer>
tbh that's how I found it in the first place
<MichaelRaskin>
No sandboxing, that's true.
<simpson>
maurer: Yeah, I know, but it's just at such a high cost... I'd rather just not use those machines.
<MichaelRaskin>
On the other hand, no-sandboxing-only bugs do get fixed if found in Nixpkgs…
<cole>
simpson you have a valid point, but our use case _is_ as a personal environment like maurer
burgdorfer[m] is now known as burgdorfer
<simpson>
cole: I'm not saying that you can't do it. I'm saying that the situation you're finding yourself in is a stupid one, and there's pain in all of the directions.
Myrl-saki has quit [Ping timeout: 265 seconds]
<MichaelRaskin>
If you have more than one machine like that, make sure you set up some way of sharing at least between them
<maurer>
cole: As a warning though, if you don't have root, you're either going to need to engage in shenanigans, or the nixos cache won't work for you (in which case everything will be built locally)
<hoverbear>
tilpner: I think zsh will be quite an interesting project to allow customizations on
alpounet has joined #nixos
<tilpner>
hoverbear - How so? Challenging-interesting?
<hoverbear>
tilpner: I think I will learn a lot, still puzzling how the neovim stuff works
<cole>
simpson correct, I am following those directions. I think I can get it installed if I can somehow skip building the documentation
ryanartecona has joined #nixos
samae has quit [Remote host closed the connection]
alp has quit [Ping timeout: 248 seconds]
alpounet is now known as alp
<maurer>
cole: --disable-doc-gen
yegortimoshenko has quit [Remote host closed the connection]
<maurer>
cole: Be sure to override localstatedir and with-store-dir as well, unless you magically have write access to /nix
<cole>
maurer thank you! I will try out that option. And I am overriding the store directory as well, thanks.
nico202 has joined #nixos
<tilpner>
hoverbear - You need a wrapper, but I don't know how featured it has to be. All I would need is a wrapper that allows me set a custom zshrc
<nico202>
do you remember the name of the nix-based static blog engine?
<hoverbear>
tilpner: I think that some of it I can copy from the programs.zsh thing
<maurer>
styx
<nico202>
maurer: thanks!
<maurer>
Though, tbh I'm not convinced that styx is any better than just writing your own default.nix script around e.g. hakyll inovcation on your source dir or something
<maurer>
Maybe there's some benefit I'm not seeing though
fendor has quit [Quit: Leaving]
<tilpner>
hoverbear - Yes, all of that seems doable with a custom entrypoint. I guess we do need those checked function calls after all...
waleee has quit [Quit: WeeChat 2.0]
hamishmack has joined #nixos
<hoverbear>
tilpner: I don't really see where things get configured though
<tilpner>
hoverbear - Are you looking for nixpkgs/nixos/modules/programs/zsh/zsh.nix ?
* tilpner
.oO( Where is the bot when we need it? :/ )
Itkovian has quit [Remote host closed the connection]
<catern>
hey #nixos
<catern>
can someone check, on their NixOS system
<catern>
in /etc/profile.d, is there both nix.sh and nix-daemon.sh?
Itkovian has joined #nixos
<simpson>
catern: I don't have an /etc/profile.d/
<simpson>
HTH
<catern>
thanks
alexteves has quit [Ping timeout: 252 seconds]
<tilpner>
We do have /nix/store/*-nix-*/etc/profile.d/{nix.sh,nix-daemon.sh} though
athan has quit [Ping timeout: 255 seconds]
<catern>
tilpner: yeah, but they aren't automatically sourced, right?
<catern>
I need to go ahead and actually set up a NixOS system :)
<hoverbear>
tilpner: I will bother with it more later. :)
<hoverbear>
catern: Going from nixos -> nix for something things I've been quite disappointed. Eg no way to configure zsh via override
<tilpner>
hoverbear - Now is a good time, I'll not be here in a few hours. Or tomorrow...
<hoverbear>
catern: Hopefully going from nix->nixos will be very pleasant.
Itkovian_ has joined #nixos
<hoverbear>
tilpner: Sleeping is a better plan. 💤
<catern>
well, I still can't actually use NixOS :)
<catern>
I just need one to tinker with
<tilpner>
It is :)
<hoverbear>
catern: Fire up a vm then =D
<tilpner>
catern - You can get free nixos VPS' for 2 hours at dply.co
<tilpner>
Kind of...
Itkovian has quit [Ping timeout: 240 seconds]
cement has quit [Ping timeout: 240 seconds]
cole has quit [Ping timeout: 264 seconds]
acarrico has quit [Ping timeout: 252 seconds]
cement has joined #nixos
athan has joined #nixos
<catern>
Well, I also want to set up the logic for
<catern>
installing a NixOS system from a running Linux on another partition or in a subdirectory, and then chrooting or container-ing into it
<MichaelRaskin>
With two partitions this should actually be pretty easy
<MichaelRaskin>
nixos-install doesn't really care whether it is called from a true NixOS
acarrico has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] LnL7 opened pull request #34244: rust: disable another fragile test (master...rust-skip-test) https://git.io/vN631
NixOS_GitHub has left #nixos [#nixos]
ixxie has joined #nixos
hamishmack has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
magnetop` has quit [Ping timeout: 260 seconds]
derchris has quit [Read error: Connection reset by peer]
derchris_ has joined #nixos
derchris_ has quit [Read error: Connection reset by peer]
jensens has quit [Ping timeout: 256 seconds]
<catern>
MichaelRaskin: I mean, it's not that easy
<catern>
for some reasons
simukis has quit [Ping timeout: 248 seconds]
<catern>
but yes it's possible
<MichaelRaskin>
I basically use a half of it.
<MichaelRaskin>
The half that is supposed to be the hard part.
<catern>
what part is that?
magnetop` has joined #nixos
<cransom>
💤
<cransom>
oops. apparently lots of double clicking in iterm eventually pastes?
<MichaelRaskin>
nixos-prepare-root. Empty filesystem(s) mounted → /nix/store with specified closure pushed with basic stuff in /etc for having a chance to build
jluttine has quit [Ping timeout: 260 seconds]
magnetop` is now known as magnetophon
swayf has joined #nixos
<MichaelRaskin>
cransom: eventually you hit the wheel/middle button/two-finger-tap
tlotze has joined #nixos
<cransom>
that could be too.
szicari has quit [Quit: szicari]
derchris has joined #nixos
jluttine has joined #nixos
ryanartecona has joined #nixos
<tlotze>
hi, I have the following problem while trying to nix-env -u --leq:
<tlotze>
Package ‘binutils-wrapper-2.28.1’ in /nix/store/mn2p9awcq3s9xcmys7jdhs8yg4vj6ihy-nixpkgs-18.03pre126020.931a0b8be80/nixpkgs/pkgs/build-support/bintools-wrapper/default.nix:300 is not supported on ‘x86_64-linux’, refusing to evaluate.
<tlotze>
What could this be?
<tlotze>
Surely, binutils should be supported. (And it doesn't give me this kind of trouble on another machine with the same nixpkg version.)
swayf_ has quit [Read error: Connection reset by peer]
swayf has joined #nixos
<tlotze>
LnL: I'm on x86_64-linux, using nix on top of another distribution.
<tlotze>
(Same setup as on the machine where it does work, actually.)
<LnL>
oh!
<LnL>
you have stdenv in nix-env -q?
<tlotze>
yes
<tlotze>
ah, I don't on that other machine
swayf has quit [Client Quit]
<LnL>
that doesn't really do anything afaik
<tlotze>
let's try
<LnL>
there are multiple variants of the stdenv and nix-env -u is getting confused about what variant to upgrade to
<tlotze>
tadaa, it breaks the same way on the other machine if I try to install stdenv there
<tlotze>
or install in the first place, as it seems
<LnL>
yes, without -iA you'll run into the same thing while installing
<tlotze>
thanks a lot for finding this so quickly, wouldn't have expected it
cement has quit [Ping timeout: 240 seconds]
<tlotze>
so I've got to find out now why I installed it here...
swayf has joined #nixos
dbe_ has joined #nixos
<tlotze>
probably left-overs from rying out stuff
nico202 has quit [Quit: Leaving]
<tlotze>
might be so it kept some stuff from being gc'ed that would otherwise be pulled over and over again
glenn_ has quit [Ping timeout: 265 seconds]
knupfer has quit [Ping timeout: 260 seconds]
<tilpner>
Hmm, does deadlock: trying to re-acquire self-held lock '/nix/store/7vrk0w2sm13nr2lylbmdmm8i1fkwh222-mounts.sh.lock' seem familiar to anyone?
<clever>
tilpner: is localhost a buildslave?
<tilpner>
I didn't configure anything related, so no
dkao has joined #nixos
<tilpner>
I don't think there's a single non-daemon nix process running
<tilpner>
:/
<tilpner>
Oh, and of course it magically vanishes
<tilpner>
Problem "solved" :(
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
acarrico has quit [Ping timeout: 240 seconds]
erasmas has quit [Quit: leaving]
<tilpner>
I don't really expect there to be, but is there a way for Nix expression to change what <foo> resolves to? Super unsafe is okay
pingveno_ has quit [Quit: leaving]
<MichaelRaskin>
I think there could be if you want the change to apply locally. Globally… there was actually some PR about that.
<MichaelRaskin>
Basically builtins.nixPath is also __nixPath and it is a bit more of a normal variable than one could assume.
vidbina has joined #nixos
dbe_ has quit [Ping timeout: 240 seconds]
<tilpner>
Oh, maybe even that won't be enough :/
quam6246 has joined #nixos
iqubic has joined #nixos
<tlotze>
While I'm here, I have another question. I hope it's not too basic but I didn't find anything relevant-looking in the manual... nix-env -qc gives me a line like this: "libreoffice-5.3.6.1 < 5.4.1.2" But nix-env -u doesn't upgrade libreoffice. What could be keeping it from doing so?
<tilpner>
I've overridden <nixpkgs> and <nixpkgs/nixos>, but now I can't get <nixpksg/nixos/modules/profiles/qemu-guest.nix> to work. I'll try something horrible
<iqubic>
How hard is it for me to write a derivation of my own to install an out of tree package?
<tilpner>
That depends entirely on what you want to package, ranging from "5 minutes" to "nearly impossible"
<tlotze>
iqubic: it certainly depends on the software's build requirements but I found it easy enough for a simple case, it's very well documented.
<iqubic>
This particular software has a list of depedencies on their github page.
<LnL>
depends a lot on the package
<iqubic>
Yeah, I get it.
<LnL>
but for the usual ./configure && make install it's pretty streightforward
<iqubic>
Actually, the install is not that simple.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej opened pull request #34245: addPassthru: fix argument order (master...addPassthru) https://git.io/vN6lH
NixOS_GitHub has left #nixos [#nixos]
<iqubic>
But the project's github page details exactly how to install it.
<iqubic>
So all I need to do is learn how to write a derivation, and how to specify the deps.
<iqubic>
I want to use a different install script than "./configure && make install"