astronavt has quit [Read error: Connection reset by peer]
astronavt has joined #nixos
<Lisanna>
Running a nix-build with sandboxing turned off... is there a shell hack I can do that will enable a child process to persist beyond the end of the nix build? Or, to rephrase: a way to make nix not wait around for the child/background process/job to finish?
<Lisanna>
or will my build have to do something crazy like conspire with cron or systemd to get something resembling this behavior?
jperras has quit [Ping timeout: 272 seconds]
sigmundv has quit [Ping timeout: 244 seconds]
<Lisanna>
s/crazy/crazier
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fxg4a
<Church->
Lisanna: Why do you want this?
Rusty1 has joined #nixos
<Lisanna>
Church- because sometimes you need an impure solution to handle impurity
<Lisanna>
In this case, I need to start some kind of daemon that will wait for a bit, and then kill the host with a particular command (not shutdown).
<Lisanna>
to give the nix build time to clean up and get out before the ship sinks
<Lisanna>
but why is largely irrelevant - I'm just wondering if there's a way for a process to escape the watch of the nix builder/daemon, so tthat it no longer thinks that it's part of the build
<fiatjaf>
how can I get dependencies from a nix-shell to not be garbage-collected?
jperras has joined #nixos
<YellowOnion>
how well does nix handle large derivations?
mutlu has joined #nixos
mutlu has quit [Client Quit]
kiloreux has joined #nixos
<Lisanna>
YellowOnion do you mean derivations that produce large outputs?
mutlu has joined #nixos
<YellowOnion>
Lisanna, I guess? I'm kinda new to how this all works, I basically want to "nixify" my game server, but the game is about 30GB and the server has only 44GB of disk space.
<Lisanna>
I have derivations hat when built produce outputs that are well in excess of 10GB
<Lisanna>
you will run into trouble in that scenario as soon as you try to build it a second time, since there will then be two slightly different copies of the game output
<YellowOnion>
Yeah, I was thinking it might cause issues on 2nd update.
jb55 has joined #nixos
<Lisanna>
you can use nix-store --delete <output path> and then nix-collect-garbage to delete the output every time you want to rebuild
<Lisanna>
nix can perform optimizations on the /nix/store by hardlinking identical files that it finds between two outputs, but that is run independently after the fact
<YellowOnion>
Lisanna, the nix store is all symlink based right? So it's actually better than say ArchLinux packages, because I don't have to build the .tar.xz file?
<Lisanna>
YellowOnion it's not really "all symlink based"... anything that goes into or comes out of a nix derivation will get copied into the store one way or another
<YellowOnion>
I'm using Vultr's $10/month service.
Supersonic has quit [Ping timeout: 260 seconds]
<aleph->
Who's the vps through? Can usually get an additional disk fairly cheap
<aleph->
Oh vultr, you should be able to get an extra disk
<YellowOnion>
aleph-, not in Sydney lol, and I'm unemployed at the moment so I'm making sure I don't burn through what little money I have till I get a job.
<aleph->
Ah aye, I know the feeling. Job hunting myself.
<aleph->
Have one lined up but he "needs" 80 hr weeks to compete with google. Bollocks, you ain't going to compete with google, get more employees if you want to
<YellowOnion>
Ironically I've been trying to think of how to depoly a friends website to the server since she needs some hosting and I can apparently do it cheaper than her current service.
<YellowOnion>
I kinda wish Vultr was as flexible as Amazon, just getting more disk or CPU or memory depending on what you need.
Supersonic has joined #nixos
jasongrossman has joined #nixos
silver has quit [Read error: Connection reset by peer]
<gchristensen>
amazon isn't flexible like that, but GCP is -- you request a specific amount of ram and cpu and they bill you accordingly. for amazonyou have to decipher their great big matrix of instance types to get what you need
dvim has quit [Ping timeout: 246 seconds]
<infinisil>
There's this scary button on GitHub on reviews "Dismiss review"
<fiatjaf>
c15ade4, nix-shell is exactly the command that is failing
<c15ade4>
gchristensen: ah, it is inline :) thank you
<gchristensen>
c15ade4: (note the second listing, in all-packages.nix :))
<fiatjaf>
how come rebase is missing? what should I do bring it back?
sgillespie has joined #nixos
wpcarro has quit [Ping timeout: 252 seconds]
<infinisil>
fetchFromGitHub should be taken out of all-packages.nix really
<gchristensen>
fiatjaf: the truth is I don't know. I don't know what "rebase" is, or what Setup is. these must be part of your project somehow
<fiatjaf>
gchristensen, I don't know either. they are subdependencies
<fiatjaf>
apparently a subdependency is missing somewhere.
nuncanada has joined #nixos
<Arahael>
I'm planning on installing NixOS on a brand new machine - all for the first time. Any tips, particularly as I intend to setup LVM.
julm has joined #nixos
<fiatjaf>
I don't know why nix isn't able to find it.
<gchristensen>
fiatjaf: nix isn't unable to find it, whatever Setup is, can't find it
<fiatjaf>
if it can find its dependant
<fiatjaf>
gchristensen, I don't understand the difference
<gchristensen>
Arahael: give /nix a good bit of disk space :)
<fiatjaf>
or why does it matter
<samueldr>
Arahael: any insecurities we could assuage?
<Arahael>
gchristensen: ;) I intend to! I figure with a 500GB drive, I should give 500MB /boot, and 499.5GB all to LVM and / :)
<gchristensen>
Arahael: perfect :D
<Arahael>
samueldr: I'm just not sure about best practices in terms of UEFI, /boot, and that sort of thing.
<gchristensen>
well because knowing what Setup is might help you find your solution. fiatjaf, are you working on a project using Nix with another person or team?
<Arahael>
I'm also thinking of avoiding swap, as well. (Might setup zram, for swap, but that's it)
<samueldr>
Arahael: the default nixos options assume the ESP is mounted directly at /boot, otherwise not much
<samueldr>
and as for swap, Arahael, swap files should work nicely
<samueldr>
[citation needed] they apparently are as quick as using partitions or LVM "partitions"
<fiatjaf>
gchristensen, well, Setup is probably the name of the file that sets up the package. but the name of the package is 'rerebase'.
<samueldr>
(though that's not nixos specific here)
<Arahael>
samueldr: Yeah - does that mean that my /boot could *be* the uefi partition thing?
<fiatjaf>
'rerebase' depends on 'rebase'
<Arahael>
samueldr: I've seen some people have separate efi and /boot partitions.
<emily>
fiatjaf: this is Haskell-specific stuff
<samueldr>
Arahael: the default in nixos is that /boot is assumed to be where the ESP is mounted at, but yes, you can mount it elsewhere
<sgillespie>
What I don't quite understand is the user vs root nix-channel
<fiatjaf>
emily, how?
<Arahael>
samueldr: I might as well keep put it at /boot, it's vfat, though, right?
<fiatjaf>
a missing dependency isn't a haskell problem, it's a nix problem!
<gchristensen>
Nix just gives you the dependencies it is told to provide
sigmundv__ has quit [Ping timeout: 252 seconds]
nuncanada has quit [Quit: Leaving]
<samueldr>
Arahael: might be easier to do as the defaults expect, but once you has done it, you can play around on other systems (vms even) to better grok that
<Arahael>
samueldr: Wikipedia says that the efi partition is in /boot/efi, though they've taken Ubuntu as the source of truth *sigh*. So in Nix, it defaults to just /boot - nice and simple, awesome.
<sgillespie>
For instance, If I have the same channel with `nix-channel --list` and `sudo nix-channel --list`, are they redundant?
<samueldr>
Arahael: if you intend to use systemd-boot, the kernels and initrds will need to be copied to the ESP; grub can deal with a couple of FS and keep them in the main partition
<fiatjaf>
gchristensen, how can I know what dependencies nix is being told to provide?
<samueldr>
Arahael: though with 500MB it might not be an issue for a couple generations where the initrd and kernels change
<fiatjaf>
if for example there's a bug in the nix expression for a dependency
<fiatjaf>
such that a subdependency isn't being provided
<sgillespie>
Arahael: the manual covers ESP quite well (especially compared to other manuals)
<gchristensen>
fiatjaf: if you have a shell.nix, whatever it is doing in there is providing the dependencies. if you don't, then a default.nix
<Arahael>
sgillespie: Why do you call it ESP? (Most people seem to call it "the EFI partition")
dvim has joined #nixos
<samueldr>
EFI System Partition
<Arahael>
Ah, of course. :)
<Arahael>
I guess I'll play with it in any case once I get it. :)
<Arahael>
500MB is heaps, right?
<fiatjaf>
gchristensen, I'm providing the dependencies, but not subdependencies
<gchristensen>
Arahael: out of curiousity, why LVM?
<fiatjaf>
in my default.nix there's no mention of the dependencies that are failing
<fiatjaf>
because they're not direct dependencies
<samueldr>
Arahael: four initrd, three kernels, 58.1 MiB [# ] /kernels
<Arahael>
gchristensen: I like the flexibility. I can easily resize partions later, or add a second disk and suddenly have / take 1 GB instead of 500MB.
<Arahael>
Erm, 1TB rather than 500 GB. :)
<Arahael>
samueldr: Heaps - awesome. :) /boot will be 500MB then. :)
<gchristensen>
you may need to add those too, I don't know, if emily is right that it is a Haskell proect, I don't know what Haskell needs.
<samueldr>
a whole gigaboop for the whole root partition, you're generous!
<gchristensen>
Arahael: ah cool, ok. fair enough :)
<samueldr>
Arahael: make it 1GB if you want to have a full nixos rescue system as a boot option
<Arahael>
samueldr: Heh, that was a bad typo. :)
<samueldr>
461.5 MiB [##########] rescue-initrd
<Arahael>
samueldr: I can cope with having a USB stick for my rescue.
<gchristensen>
you (probably) won't need it anyway :)
<Arahael>
samueldr: Actually, that might well be convenient, I might as well make it 1GB.
<fiatjaf>
gchristensen, please forget emily and help me understand
<gchristensen>
but emily is a good helper too!
<sgillespie>
Whenever I run `nix-env -qa` I get this: error: attribute 'bench' missing, at /nix/store/.../nixos/pkgs/top-level/all-packages.nix
<fiatjaf>
but gchristensen, this is a generic question that should be applicable to every kind of project
<Arahael>
Gotta go - thanks for the discussion!
<fiatjaf>
if there's a dependency
<samueldr>
Arahael: have fun!
<gchristensen>
it isn't necessarily.
<Arahael>
samueldr: I intend to! :)
<gchristensen>
depends on the software.
<sgillespie>
I can run the same command as root and it works fine
<fiatjaf>
my project depends on A, A depends on B, B depends on C, but its build fails
<fiatjaf>
how can I inspect the nix expression for B
<fiatjaf>
if in my project I only specify A
<samueldr>
sgillespie: I think your question fell in the cracks (busy minutes here!); all user's channels are independent from each-others, they can point to the same channel, and the downloaded channel might even be the same, but they are updated independently and managed independently
<samueldr>
sgillespie: so if you nix-channel --update for your user, root's won't be updated, and vice-versa
<fiatjaf>
there's a bug in the nix expression for 'rerebase' on master
<sgillespie>
So if I look at `ls -l ~/.nix-defexpr/channels_root`, does this refer to `sudo nix-channel --list`?
<samueldr>
sgillespie: if it points to the same location as mine does, yes
<sgillespie>
What is strange to me is I get `error: attribute 'bench' missing, at /nix/store/172f032q2c4pr8802pkkhl1b91dv1g7c-nixos-18.09.892.c06f5302f63/nixos/pkgs/top-level/all-packages.nix:19676:45`
<sgillespie>
That hash is the same exactly as the path for the root channel
<sgillespie>
So it would seem to me that if I get an error as sgillespie, it should also give me an error as root
<fiatjaf>
gchristensen, :D
<fiatjaf>
how do I submit a fix?
<gchristensen>
fiatjaf: now you almost certainly need emily's help. I don't know how Haskell is packaged
<clever>
drakonis: nix-store --verify --check-contents is the command does that, but it doesnt check the ownership of things
<samueldr>
gchristensen: yeah, fake it, looks good
<drakonis>
would probably be good to check permissions as an emergency thing
<gchristensen>
drakonis: +1
<gchristensen>
good night
<{^_^}>
Night!
<drakonis>
good bot
<drakonis>
good night
<drakonis>
yay things are fine now
Mateon2 has joined #nixos
Mateon1 has quit [Ping timeout: 252 seconds]
Mateon2 is now known as Mateon1
lopsided98 has quit [Quit: Disconnected]
lopsided98 has joined #nixos
<drakonis>
THIS IS FINE
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #48602 → Set CMAKE_SYSTEM_* for cross compiling → https://git.io/fxgzd
sablad has joined #nixos
<sablad>
Hello, I recently tried updating from 18.03 to 18.09, but it fails to boot with this error: Failed to start File System Check on /dev/disk/by-uuid/5BAD-DF26
<sablad>
I'm about to try to figure out why, but wanted to check first if there's a known breaking change with how file systems are loaded
<{^_^}>
[nixpkgs] @lopsided98 opened pull request #48603 → lirc: add support for Python bindings → https://git.io/fxggu
<jackdk>
I am trying to help a friend build taffybar against an old ghc, because apparently it leaks memory on ghc >= 8.4. I have this nix expression: https://pastebin.com/Wa1apu2i but am getting errors about a missing haskell-gi-overloading dep. What am I doing wrong?
Izorkin has joined #nixos
<jackdk>
oh, I'm a twit - that sets an attribute called super.haskell-gi-overloading
pie_ has quit [Ping timeout: 268 seconds]
EarlDeLaWarr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Arahael>
What's Steam like on NixOS? Worth it, or a waste of time?
<clever>
Arahael: most games that work on linux just work in nixos too
<Arahael>
(Note: It's a games thing, so it could be worth it *and* be a waste of time, that's acceptable)
<Arahael>
clever: Very awesome. :)
<clever>
and a couple windows games even work
<Arahael>
Nice - I'll only have intel graphics, so my selection will be more limited, but if it's known to work in general, that means I can put in the time play with a few specific games.
<clever>
the steam homeplay stuff also works, so i can run any windows game on that box, and then stream it over the network
<Arahael>
What's that?
<clever>
steam can stream the gameplay from a windows box to the nixos box
<aleph->
clever: How about getting steams proton running?
<clever>
and then stream your input devices back the other way
<aleph->
Been keen to play Nier Automata on my beast
<clever>
aleph-: yeah, proton just works, for games that are compatible
<aleph->
Sweet
<Arahael>
That's pretty awesome, I'm impressed.
<aleph->
Need something to detract from my ongoing panic
<clever>
only bug i saw with proton was failing to find python3 in PATH, which has been fixed in nixos-unstable
<aleph->
Awesome
<Arahael>
NixOS will also be a crash course in Nix, for me. :)
<aleph->
Reminds me, anybody get a bug with nix-env not working?
<Arahael>
I'm a software dev,and whilst I normally very much dislike rolling releases, I'm hoping that nixos's advantages mitigate a lot of those annoyances
<clever>
Arahael: how is it not working?
<aleph->
Running it to install any package gets me this:
<Arahael>
clever: What do you mean? (Btw: I don't have it installed yet - still waiting on the hardware)
<aleph->
"error: syntax error, unexpected $end, at /nix/store/qchpbs64ppkl54mbmz5hk0ffhg29p902-env-manifest.nix:1:1
<aleph->
A path that doesn't exist.
<clever>
aleph-: your manifest.nix was corrupted by an improper shutdown i think
<aleph->
Bollocks
<clever>
aleph-: ls -lh /nix/store/qchpbs64ppkl54mbmz5hk0ffhg29p902-env-manifest.nix
<aleph->
Oh it does exist
<aleph->
0 bytes
<aleph->
Can I just rm it?
carlosdagos has joined #nixos
<clever>
yeah, your FS truncated it after an improper shutdown
<Arahael>
aleph-: The :1:1 thing is shorthand in some languages to mean "line 1, character 1".
<clever>
deleting it wont help any
<aleph->
Bollocks
<clever>
aleph-: try nix-env --rollback
<aleph->
Nada
<aleph->
No older generations
<clever>
ah, then your only option is to nuke the profile
<aleph->
Didn't set it up to do so. Forgot to and never got around to it
<aleph->
Just so used to doing package management under root
<clever>
aleph-: what setup is missing?
<aleph->
Huh, for some reason I just assumed my noah user couldn't
<aleph->
So it can, and it gets this error when installing wine: rror: assertion failed at /nix/store/n4izhhaqpkv2mcg5n3xiwqrnzd81f9vw-nixpkgs-19.03pre155263.20c4986c4dd/nixpkgs/pkgs/development/libraries/vulkan-loader/default.nix:4:1
<aleph->
Let me try another package
<aleph->
Neat, so I don't care that much anymore
<aleph->
Weird error though
<clever>
4 assert version == vulkan-headers.version;
<clever>
the version of vulkan-loader must match the vesion of vulkan-headers
<{^_^}>
[nixpkgs] @noneucat opened pull request #48610 → polar-bookshelf: init at 1.0.2 → https://git.io/fxgMy
jasongrossman has joined #nixos
<Cheery>
"GC Warning: Bad initial heap size 100000 - ignoring it
<Cheery>
otherwise the nixos-install seems to work
thc202 has joined #nixos
<clever>
teto: what does `nixops info` return?
<teto>
clever: starts with error: stack overflow (possible infinite recursion) then itgives some info on the deployment
freeman42y has quit [Read error: Connection reset by peer]
garbas has joined #nixos
freeman42y has joined #nixos
<teto>
maybe I need to update it
<sphalerite>
gchristensen: I think infinisil is right that I should have done it as a PR — it's not so critical (few affected applications) that at least the ofborg stuff could have happened for example. Even if I just went and merged it myself
<Cheery>
how many maintainers there are in the NixOS, and how many packages there are?
<jasongrossman>
Cheery: There are tens of thousands of packages, but a lot of them are auto-translated from Haskell packages, Emacs packages, etc. I don't know how many have been written by hand.
<{^_^}>
[nixpkgs] @FRidh opened pull request #48611 → nfs-utils: add python3 to buildInputs → https://git.io/fxgD9
<Cheery>
just wondering because this seems to install neat, and it's bringing in something that looks recent.
<clever>
teto: line 5 refers to 2 nix giles, can you also pastebin those files?
Acou_Bass has joined #nixos
<teto>
clever: I had a look at these files already, tried to comment parts of it to no avail. They include some others so I am not sure how I can convey the final result to you. Isn't there any trick, environment variable I could set to give me a hint, it's a bit frustrating. I am not sure if strace would help me
<srhb>
Do we have any mount tests going on anywhere? My system always fails to unmount home and var, which is not terribly nice.
<jasongrossman>
srhb: I've had that on and off with zfs filesystems.
<srhb>
Yeah, I suspect zfs as well.
<jasongrossman>
srhb: But I don't think I've had it recently (since some weeks before 18.09), although I'm not positive I'd notice if it happened occasionally because I also have a VPN service that often fails to terminate correctly, so I sometimes force reboot.
<srhb>
Hm..
<jasongrossman>
Yes, hm.
<jasongrossman>
srhb: And it was /home for me too (not /var, but my /var is not a separate partition).
<srhb>
Home is more weird than var... Why would it be busy.
<srhb>
Seems we have some broken dependencies.
<clever>
teto: when did it start giving the recursion error?
<{^_^}>
[nixpkgs] @volth opened pull request #48615 → chromium: propagate stdenv for "chromium.override{ stdenv=gcc8Stdenv; }" → https://git.io/fxgNY
<Taneb>
symphorien: alp: thank you both for your help!
jD91mZM2_ has joined #nixos
* Taneb
has finally got our local hydra server working as a binary cache
jD91mZM2_ has quit [Client Quit]
<kyren>
Is there anything special about the name "nixos" vs "nixpkgs", I think I understand how NIX_PATH works and it makes sense, but I'm a bit fuzzy on what tools will look for <nixpkgs> and what will look for <nixos>. or does everything always use <nixpkgs>? This is really hard to google for
<symphorien>
for legacy reasons, nixos is the name of nixpkgs on NixOS
<teto>
clever: dunno what I did, cleaned up some things and it seems ok now. A better solution would be nice though
<betaboon>
hello #nixos. is there a way to do the following: i have N services running on a machine, each service needs to be assigned a single port, currently i have to assign the ports manually, i would like to define a range of ports and have a unique port assigned to each service automatically. any ideas ?
orivej has joined #nixos
<kyren>
so if I have a channel named nixos AND a channel named nixpkgs, what will happen?
<infinisil>
betaboon: What service? If it's in the NixOS config, you can just do some programming to generate them
<hyper_ch2>
nixpkgs is a collection of packages for the Nix package manager. Nixos is a linux distribution based soley on the nix package maanger
<betaboon>
infinisil: i have my own nixos-service-module which runs python-flask-applications in systemd-units. can you point me somewhere on how to generate them ?
<symphorien>
kyren: not sure, but new ui tools (nix build, nix eval ...) should use nixpkgs and old tools like nix-env will use nixos
<{^_^}>
undefined variable 'nameValuePair' at (string):200:36
<kyren>
I know this sounds a bit silly, I got into this situation by having no root channels and only a nixpkgs channel (pointing to nixpkgs-unstable) on nixos (I'm using nixos-rebuild strangely), and I wanted to add a default channel and a separate nixos channel for nixops / nixos-rebuild, and I named it 'nixos' before figuring that might be a bad idea
<{^_^}>
{ service-0 = { port = 0; }; service-1 = { port = 1; }; service-2 = { port = 2; }; service-3 = { port = 3; }; }
<infinisil>
betaboon: Something like this ^?
<betaboon>
infinisil: yeah something like that :)
<betaboon>
infinisil: so assuming i have a set which defines the services i could take the length of the set to define the range and assign a port for each of them, right ?
<kyren>
symphorien: so nix-env works with only a 'nixpkgs' channel AND with only a 'nixos' channel... does it check every channel or just those two? I'm really confused and I just can't find the documentation on this
<symphorien>
nix-env ignores NIX_PATH
<symphorien>
it uses ~/.nix-defexpr
<symphorien>
and on NixOS, this will usually only contain a nixos channel which points to root's nixpkgs channel
<kyren>
yeah I get that part, so does it check every channel in ~/.nix-defexpr/channels?
<infinisil>
betaboon: Oh wait, you have services that aren't all the same?
<kyren>
or I guess yeah also ~/.nix-defexpr/channels_root
<betaboon>
infinisil: they are not all the same, but all of them have a port-option
<symphorien>
I don't know the details
<infinisil>
betaboon: Ah I see, then you can just do something like `listToAttrs (imap (n: name: nameValuePair name (services.${name} // { port = n; })) (attrNames services))`
<betaboon>
infinisil: thanks for these pointers. i believe i can arrive at a working solution with those :)
<kyren>
symphorien: okay, I think I understand it now. nix-env doesn't care at all about what the channels are called, it will check every channel in some kind of order, or maybe all of them all the time, other things like nixos-rebuild just look for nixpkgs and that's it, but also obey NIX_PATH so they get redirected to the nixos channel for root
<kyren>
so literally the only thing that the nixos channel seems to be is a convention that is codified in the default NIX_PATH env variable, and everything is looking for <nixpkgs>? I know you don't know the details and maybe don't actually care haha, but does that sound plausible / correct?
<kyren>
this is just what I've discovered through experimentation
<symphorien>
the history is: formerly nixos and nixpkgs were two different repos
<symphorien>
nixos would only contains the modules, and use nixpkgs to provide software
<symphorien>
but they are somwhat coupled so it was decided to put the nixos repo in the nixos directory of nixpkgs
<symphorien>
but to keep some sort of backward compatibility, <nixos> points to <nixpkgs> today
<kyren>
that makes sense, I saw the commit where at some point the structure of the two became exactly the same
<symphorien>
NIX_PATH is probably a later addition
<kyren>
NIX_PATH has 'nixpkgs' point to 'nixos', or it seems that way? it has: nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos
carlosdagos has quit [Quit: Connection closed for inactivity]
<lunik1>
Hi, I'm having some trouble building findutils on nixpkgs 18.09
<symphorien>
ah maybe, but in fine, nixos is a tarball of the nixpkgs repo on github
lostman has joined #nixos
<kyren>
that makes sense, I *think* the way its set up makes sense now actually, thank you for your help!
<azazel>
i'm trying to use makeWrapper during installPhase, but it's complaining that's missing..I'm doing something wrong?
Izorkin has quit [Remote host closed the connection]
Izorkin has joined #nixos
<azazel>
do I need to add something to the buildInputs to make makeWrapper work?
<cocreature>
azazel: yes you need to add makeWrapper to buildInputs :)
<lostman>
hi folks. I have an attribute set with a bunch of haskell packages and I'm wondering what is a good way to control the `-O` flags. I would like nix-shell to set `-O` or maybe `-O1` so everything builds faster
<fiatjaf>
yes, I'm building my own haskell package
<fiatjaf>
and it depends on something that depends on something that depends on rerebase. rerebase depends on rebase, but that dependency is specified wrongly on master.
<infinisil>
So you want to haskellPackages.callPackage with rerebase set to some override
<fiatjaf>
ideally I should be able to stop 'rerebase' from depending on 'rebase', but instead depend on 'rebase_1_3'
<fiatjaf>
why weren't my 'config.packageOverrides' definitions and 'override' calls not working?
<infinisil>
Um, probably something with haskell.packages != haskellPackages when overriding, not sure
<infinisil>
packageOverrides is kinda deprecated too, overlays should be used instead
<fiatjaf>
what is an overlay?
<infinisil>
And they can be used easily with pkgs.haskellPackages.extend
<fiatjaf>
does that apply to all kinds of dependencies, not only haskell?
<infinisil>
fiatjaf: Pretty much just a function like `self: super: { <things I want to change> }`
<Lisanna>
Hey, need some performance tuning advice
<infinisil>
fiatjaf: There's a toplevel overlay thing for nixpkgs which replaces packageOverrides
<fiatjaf>
thank you very much, infinisil
<infinisil>
,overlay fiatjaf
<{^_^}>
fiatjaf: Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
<infinisil>
But haskellPackages also has such overlays with extends
<infinisil>
,profiling Lisanna: this?
<{^_^}>
Lisanna: this?: Use NIX_COUNT_CALLS=1 and/or NIX_SHOW_STATS=1 to profile Nix evaluation
<Lisanna>
When doing a remote build against a machine that has a *VERY* slow CPU, after the derivation build has finished, there's about 2 minutes of delay before it reaches the phase where it starts copying the result paths from the remote
<Lisanna>
wondering what kind of operation is likely happening during this time window
<Lisanna>
infinisil would either of those show any useful info for that?
<{^_^}>
[nixpkgs] @teto closed pull request #48616 → Kernel: support shellHook when defining kernel → https://git.io/fx2ed
<Lisanna>
oh, I guess I could try running in verbose mode
<infinisil>
Ah yeah, verbose mode for that
<infinisil>
the profiling stuff up there is only for nix evaluation
<Lisanna>
Huh... for some reason default-builder.sh is having trouble exiting
orivej has joined #nixos
EarlDeLaWarr has joined #nixos
<Lisanna>
ps lists the PID that default-builder.sh was running under as <defunct>
<Lisanna>
and I can't kill it
<Lisanna>
(sandboxing is off here)
patrl has joined #nixos
<Lisanna>
if I kill the nix-build then the PID goes away though
init_6 has joined #nixos
<Lisanna>
-vv isn't showing anything interesting... I'll try increasing it more I guess
<infinisil>
Isn't defunct a zombie?
<srhb>
Lisanna: defunct means it's already dead (zombie) but the parent process has not yet reaped it
<srhb>
Meaning, it did exit.
<Lisanna>
why would a bash -e default-builder.sh process become a zombie?
sb0 has joined #nixos
<Lisanna>
with -vvvv nix-build is stuck at "waiting for children"
<sphalerite>
Lisanna: yeah that sounds like it'd be nix's fault
<sphalerite>
when you kill the parent, the child is inherited and reaped by init, so that's why it disappears
<Lisanna>
sphalerite I'm guessing the parent is "nix-daemon --stdio"?
<sphalerite>
yeah should be
<sphalerite>
you could try stracing it to see what it's doing instead of waiting for its child
<Lisanna>
yeah, that's the parent
<Lisanna>
I'll try stracing it
<srhb>
If that does yield a proper wait syscall, time to check dmesg.
<{^_^}>
[nixpkgs] @Zimmi48 opened pull request #48617 → coq: add ocamlPackages in passthru → https://git.io/fx2Ju
<Lisanna>
"select(12, [11], NULL, NULL, NULL"
<Lisanna>
nothing interesting in dmesg
<sphalerite>
hm, weird. What's fd 11 of the process? (lsof it)
philippD has joined #nixos
<Lisanna>
sphalerite it has four FIFOs named "pipe" open with device 0,11
<sphalerite>
realrokka: this stopped working the last few days you said, did you do an upgrade between it last working and it first not working?
<sphalerite>
and what does `nixos-option programs.light.enable` show? And `nixos-option security.wrappers.light.source`?
<realrokka>
sphalerite: iam on autoupdate, there where at least 2 derivations build since it stopped working, https://pastebin.com/8ta2UguY security.wrapper.light.source output is empty
<Lisanna>
nix on the remote is on commit e2f56c1333d542b8022205215b637a30e71314c7 (somewhere between 2.0 and 2.0.1) and nix on the local machine is release 2.0.4
<realrokka>
sphalerite: should i file a bug report/github issue?
<octe>
if i have "home.packages = [ ... ];" in one nix-file and import another nix-file in it that also has "home.packages = [ ... ];", why does home.packages become a list of both? why doesn't one override the other?
haitlah has joined #nixos
<haitlah>
Hey guys !
<haitlah>
Anyone can help me sort out stuff about haskell integration in nix ?
<haitlah>
I'm trying to run a pure shell with my package, overriding it to have cabal in buildInputs but cabal is still not found
<Lisanna>
nix doesn't always get stuck like this... I was able to run a few remote builds against this target successfully until it started getting stuck. seems like all future attempts are getting stuck
<haitlah>
I am getting /tmp/nix-shell-4084-0/rc: line 1: cabal: command not found
<sphalerite>
realrokka: yeah, I'm not sure what's going wrong here.
<Lisanna>
OK, hang on, I found a really strange common factor with the ones that get stuck
<haitlah>
clever: If I addcabal x.env it tells me that overrideDerivation is not an attribute
<haitlah>
This function is needed to override the package
<clever>
haitlah: its simpler to use Setup.hs
mekeor has joined #nixos
<haitlah>
clever: what do you mean I just have to run ghc directly insead of cabal ?
<Lisanna>
oh, nevermind, I'm really dumb... I found a bug in my logic that causes that process to stick around if it was passed "infinity" for the sleep duration
<clever>
haitlah: if you manually compile Setup.hs with ghc, then you can use the Setup binary in-place of cabal
<clever>
haitlah: and `./Setup repl` will be identical to `cabal repl`
<haitlah>
clever: will try that thanks :)
astronavt has quit [Ping timeout: 244 seconds]
<Lisanna>
wait... nevermind. I'm not really dumb... well, I am, but my logic actually looks correct ):
<{^_^}>
[nixpkgs] @Chiiruno opened pull request #48619 → Update bcachefs (cherry pick for 18.09) → https://git.io/fx2kV
<haitlah>
clever: worked like a charm !
<clever>
haitlah: the root problem, is that nixpkgs provides a Cabal package (as a haskell library) but no cabal executables
<clever>
haitlah: and Setup.hs is just a thin wrapper around the main function in the cabal executable
<kreisys>
When I use `builtins.fetchGit ./.` I get an object where rev/revCount/shortRev are all 0 or strings of 0s... is that expected? https://pastebin.com/eLTEsSrf
<clever>
haitlah: you can also use haskell.lib.overrideCabal to add to the executableSystemDepends or similar
<Lisanna>
OK. I've confirmed that for some reason a process that I'm *confirming is getting killed with SIGTERM*, if it was sleeping, nix will think that the process is still alive, and wait for it.
<haitlah>
clever: Will have a look at it thanks :)
<clever>
kreisys: if the repo is dirty, it will just return all 0's
<Lisanna>
i.e., kill -TERM $pid; wait $pid; is completing fine, verified with echos and the shell message that the process was terminated. But nix is still seeing some remanent of it somehow and so the builder refuses to exit, stuck waiting for children
<kreisys>
ah! perfect thanks!
<Lisanna>
if I never launch the process in the first place this problem doesn't happen.
<haitlah>
clever: As you mentionned, lib.overrideDerivation is working nicely, I can addCabal pkg.env now :)
<haitlah>
clever: Having access to cabal in the pure shell now, thank you
pie_ has joined #nixos
<Lisanna>
How does nix wait for all the children of the build process? I was screwing around with it a bit earlier, and it seems very sophisticated - attempting to disown background process by e.g. double forking wasn't enough to fool it.
<symphorien>
maybe a cgroup ?
<Lisanna>
'cause it's being a bit overzealous here... even though the background process was verifiably killed, nix still thinks its alive, so it's refusing to exit
<symphorien>
they just inherited it as their stdout
<Lisanna>
oh my god... the sleep got orphaned and re-assigned to init
dvim has joined #nixos
<Lisanna>
OK, this is pretty annoying. In general, when I kill a shell script I've launched, I want everything that *it* has spawned to *die*. Is there a mode I can set that will do that? I remember reading something about this involving nohup...
<Lisanna>
...might be a better question for #linux
<symphorien>
hum if you setsid you script, signal sent to the script will be relayed to the children, iirc
<Lisanna>
looks like I can deal with it by sending SIGTERM to the process group instead
<symphorien>
where is the boundary between process groups ?
<Lisanna>
*shrugs*
<clever>
symphorien: most of the time, everything shares a process group, but there is a special syscall to make yourself the leader of a new group
<symphorien>
setsid, right ?
silver has joined #nixos
<clever>
yeah, i believe thats it
<symphorien>
my point is: if bash calls setsid at the beginning of a script, and then you call another shell script, you end up with two process groups
<clever>
ah
<symphorien>
(that was an hypothesis, not an affirmation)
<clever>
kiloreux: its not clear where the .packages from line 8 is defined
<sphalerite>
realrokka: could you run `grep light /run/current-system/activate`?
wpcarro has joined #nixos
davenpcm has joined #nixos
<wpcarro>
Is there a known way in NixOS to change the brightness of your webcam? I have an interview upcoming in an hour and forgot that this would be a problem!
davenpcm has quit [Client Quit]
<realrokka>
sphalerite: sry, ill correct this, the grep hast no output at all
<sphalerite>
wpcarro: I think it depends on the webcam but usually this sort of thing auto-adjusts I think
davenpcm has joined #nixos
<wpcarro>
sphalerite: interesting... mine looks kind of bad. I'm using `hardware.facetimhd`
<wpcarro>
for the MBP
<wpcarro>
It's really red and kind of dark
<exarkun1>
wpcarro (IRC): First step is probably to figure out how you would reconfigure your webcam with its native tools and configuration. Once you know that, you can figure out how to control those tools and configuration with NoxOS.
<exarkun1>
wpcarro (IRC): Also you might just turn on a light.
<__monty__>
You're not using something like f.lux, are you?
<wpcarro>
__monty__: no
<wpcarro>
exarkun1: I think I may need to just flood my face with light during this thing
<wpcarro>
as for the redness... I can try and budget some time to investigate how to configure it ad-hoc - as you suggest
<sphalerite>
wpcarro: if you run cheese (nix run nixpkgs.gnome3.cheese -c cheese), does adjusting the parameters in Preferences > Image make a difference?
fendor has joined #nixos
<wpcarro>
sphalerite: I can try that! I don't have Gnome though but I'll give it a shot
<wpcarro>
sphalerite: no worries. I'm still learning ab the Linux Desktop environment etc
<clever>
kiloreux: ah, yeah, that does look like it
<clever>
kiloreux: so that will be whatever the fold on 158 returned
<sphalerite>
wpcarro: but again stuff like that *should* be autoadjusting for most hardware… I never had a problem with my MBP camera (quite an old mbp though, from 2011, who knows what's changed since then)
<wpcarro>
sphalerite: not seeing `Preferences > Image`
<exarkun1>
Should I tag the maintainers of the tor package on my PR for improving NixOS tor configuration?
<sphalerite>
wpcarro: Preferences should be in the Cheese menu at the top
<sphalerite>
exarkun1: yes
<wpcarro>
sphalerite: sorry I should've been more clear. I see Preferences... let me list which options are available to me though
<sphalerite>
you don't have to but it can be very helpful to avoid nasty surprises and get your PR reviewed and merged quicker
<wpcarro>
sphalerite: Device, Photo resolution, Video resolution
<kiloreux>
clever, and how can I use that from buildEnv ? because if I run nix-env -i sample.nix it's installed perfectly. Not the case when I use it from buildEnv inside a nix file however.
<sphalerite>
wpcarro: yes, that's what shows for me too, in the webcam tab
<sphalerite>
wpcarro: but there are two other tabs, "Image" and "Capture" in that dialog for me
<wpcarro>
sphalerite: ah! I see now... my GUI settings are super flat
<clever>
kiloreux: did the buildEnv one give any errors?
<wpcarro>
will need to fix that eventually...
<exarkun1>
sphalerite (IRC): thank you.
<kiloreux>
clever, not really it doesn't. It's just that my desired packages aren't installed at all.
<kiloreux>
Without any error
<wpcarro>
sphalerite: I see brightness now... adjusting it works as well!
<clever>
kiloreux: if you run nix-instantiate on the buildEnv, then `nix show-derivation` on that drv, what is in the paths attribute?
<wpcarro>
sphalerite: thanks for the tips. Hopefully these changes can persist for Google Hangout
<kiloreux>
clever, I had already shortened that one to be clear on the gist. The actual file is bigger. But I can see all python packages in the path there, sample :""pkgs": "[{\"paths\":[{\"LinkChecker\":\"/nix/store/x6p35p1l0kan3mcgmvkg5ki3ylxpc3w5-python2.7-LinkChecker-9.2\",\"PyYAML\":\"/nix/store/56xyr9qhp8shqb7kzx5bi0bvv28g13rf-python2.7-PyYAML-3.12\",\"awscli\":\"/nix/store/b5yvwmbs4cdba26v473h4gs7k6yq9ldw-python2.7-awscli-1.11.165\""
haitlah has quit [Remote host closed the connection]
mayhewluke has quit [Ping timeout: 245 seconds]
mayhewluke has joined #nixos
<Taneb>
If I were setting up a machine with NixOS with the intent of configuring it remotely with NixOps, do I need to give it much of a configuration to begin with?
iyzsong has quit [Ping timeout: 276 seconds]
<srhb>
Taneb: Not really, just ssh.
reinzelmann has quit [Quit: Leaving]
o1lo01ol1o has quit [Remote host closed the connection]
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr>
gchristensen: why would you stop?
mkaito has joined #nixos
<gchristensen>
I don't know :')
<mokasin>
symphorien, thx, that's a start
<samueldr>
do pause, but never stop :D
azdle has joined #nixos
johanot has quit [Quit: WeeChat 2.2]
<gchristensen>
samueldr: I was thinking, wouldn't it be neat if I didn't have to add that fake pkgs stuff to test.py, but instead right next to the example, but in such a way that it isn't published? https://gist.github.com/grahamc/7a0a55be92c452495a31989aa9f826df
<samueldr>
gchristensen: much more elegant, and with less side-effects :)
<samueldr>
fewer*
* samueldr
thinks: should side-effects be counted as a volume or as discrete things?
<gchristensen>
hehe
<gchristensen>
well anyway, so that took me down this road of figuring out how the heck to do _that_
<{^_^}>
[nixpkgs] @clefru opened pull request #48632 → Fix hostapd's place in systemd dependency tree. (#45464) → https://git.io/fx20I
Mikaela- has joined #nixos
dweller has joined #nixos
pointfourone has joined #nixos
<samueldr>
<3 gchristensen maybe the system-built documentation can be ported to the same styles (minus the top bar) than the website use that way (not sniping you, but since it's paving the road maybe I'd take a detour)
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
philippD has joined #nixos
<Cheery>
I think you've failed at documentation. I don't have a clear idea of how this thing works after reading the manual.s
<Taneb>
I don't think believing there's a secret second implementation is a documentation failure
<schmittlauch[m]>
should `enableParallelBuilding` work out of the box? Becuase for me both opencv3 and clementine seem to use only one core/hw-thread when building them locally.
<gchristensen>
schmittlauch[m]: you'll need to set /etc/nix/nix.conf's `cores` value
<schmittlauch[m]>
ah
<Cheery>
Taneb: losing your prototype is a pretty bad failure and makes me a bit angry.
<Cheery>
Taneb: but I'm not meaning that.
<Taneb>
There was never a Haskell prototype
<schmittlauch[m]>
gchristensen (IRC): Is this documented somewhere? Otherwise this might be a good thing to include into installation instructions – or to be automatically derived from /proc/cpuinfo
<samueldr>
though it looks like the svn repo isn't avialable
trebuh has joined #nixos
siers has quit [Ping timeout: 260 seconds]
<Cheery>
Specifically, I'd like to understand how the Nix package manager layers over the Linux, what functions it keeps up, where does the information go, how it's stored, what kind of basis the scripts follow? etc.
Ariakenom has quit [Remote host closed the connection]
<Cheery>
the manual only tells me how to use it
Ariakenom has joined #nixos
jabranham has joined #nixos
<gchristensen>
what do you mean by "functions it keeps up"?
<o1lo01ol1o>
I'm getting a strange error, I have ssh access to a gitlab repo that is cloned as part of my build. I'm able to clone that repo as root using the ~/.ssh/* keys. however, in the course of my nix-build, I get: No user exists for uid 1000 fatal: Could not read from remote repository. Does anyone know what this might be? I'm on nix 2.1
<schmittlauch[m]>
gchristensen (IRC): newbie question: /etc/nix/nix.conf states that file is "generated from the nix.* options in your NixOS configuration". But:
<schmittlauch[m]>
error: The option `nix.cores' defined in `/etc/nixos/configuration.nix' does not exist.
__Sander__ has quit [Quit: Konversation terminated!]
<Cheery>
gchristensen: it's doing plenty of things and the system I tried seems to setup itself neatly. But I don't have any idea of how it functions other than that it keeps some kind of memoization that's calculated from the configuration file.
<Cheery>
and there seems to be going a lot in the distribution.
<gchristensen>
I'm sorry, I'm not sure how I can help
Ariakenom has quit [Ping timeout: 252 seconds]
<Cheery>
gchristensen: you don't need to. but all of this frustrates me because if you don't have these things documented, then it's not guaranteed that things keep working like they should.
<gchristensen>
even documenting things doesn't guarantee they will continue working that way
lonokhov has quit [Quit: WeeChat 2.2]
Lisanna has quit [Quit: Lisanna]
aristid has quit [Ping timeout: 264 seconds]
<cransom>
adhering to an implementation submitted in a paper nearly 20 years ago would be a bit rigid
aristid has joined #nixos
<Cheery>
cransom: yeah.. but wouldn't it be nice to know what that actually is now?
<cransom>
i do... github.com/nixos/nix and github.com/nixos/nixpkgs ?
<gchristensen>
of course, our docs could and should be better. tomorrow, and every day someone chips in and helps expand our documentation, it will improve
<FRidh>
gchristensen: I think what Cheery meant is that if you don't document requirements, then you don't know whether what you get is what is expected or not.
<Cheery>
I'll read the pills through next.
<gchristensen>
FRidh: definitely true
sphalerite_ is now known as sphalerite
<FRidh>
gchristensen: which is why I think we need a lot more unit tests for the various builders and utils like patchShebangs. Not that I have written any for buildPythonPackage...
<o1lo01ol1o>
infinisil: ah, ok. Can I pass nix-build the ssh_key it should be using?
<Cheery>
If I'm looking at the manuals for makefiles, they tell me what the command is doing. There are examples of how to use it, either as an user or developer. And the commands are explained in detail.
<gchristensen>
o1lo01ol1o: better to use builtins.fetchGit which runs git as your user, and thus has access to your SSH key
* ivan
looks at
<ivan>
# !!! These were renamed the other way, but got reverted later.
<sphalerite>
Cheery: we get it, the docs aren't brilliant. It's not because nobody knows.
<fiatjaf>
how can I make a gcroot from a nix-shell environment?
<o1lo01ol1o>
gchristensen, infinisil: builtins.fetchGit and fetchGithub are the only methods used to access repositories in this .nix build
<samueldr>
gchristensen: that's no good, you're making the doc fail tests :(
magnetophon has joined #nixos
<gchristensen>
haha, on purpose!
<infinisil>
o1lo01ol1o: Well it's pretty obvious that fetchFromGitHub is causing your issue, so use fetchGit instead
<sphalerite>
o1lo01ol1o: are you sure it's builtins.fetchGit and not pkgs.fetchgit you're using?
drakonis has joined #nixos
<tazjin>
I've been thinking a little bit about making a Kubernetes controller that can build (and serve) container images on-demand using Nix expressions in API resources with gchristensen's `dockerTools.buildLayeredImage`
<tazjin>
has someone thought of something similar before? is there interest for it? Feedback welcome!
<o1lo01ol1o>
infinisil, sphalerite: this .nix builds for other users on different machines on nix 2.0.x, I'm just trying to figure out why it won't work on this 2.1 AMI.
<zimbatm>
tazjin: maybe post it on Discourse, seems interesting
<sphalerite>
o1lo01ol1o: could we have the nix-info for a machine where it works and for one where it doesn't?
<{^_^}>
[nixpkgs] @costrouc opened pull request #48633 → Refactor another ~100 package from python-packages.nix -> python-modules → https://git.io/fx2rJ
init_6 has quit [Ping timeout: 244 seconds]
fragamus has joined #nixos
<o1lo01ol1o>
sphalerite: looks like this is actually also running 2.1.3 and successfully builds: - system: `"x86_64-darwin”`. - host os: `Darwin 17.7.0, macOS 10.13.6` - multi-user?: `yes` - sandbox: `no` - version: `nix-env (Nix) 2.1.3` - channels(root): `"nixpkgs-19.03pre152857.947ae71dcec"` - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
<sphalerite>
o1lo01ol1o: since it's not using sandboxing, it might just be getting the git stuff impurely within a fixed-output derivation as opposed to using fetchGit
<fiatjaf>
how can I make a gcroot from a nix-shell environment?
<o1lo01ol1o>
sphalerite: that's possible, however, I believe our build server is running sandboxing. I'll have to send an email about that though, one sec
<sphalerite>
fiatjaf: you need to have keep-outputs set for that to be effective, and I think there are circumstances where it's not entirely effective
<sphalerite>
fiatjaf: https://github.com/lheckemann/dotfiles/blob/master/gcroots.sh is a rather gung-ho approach to just creating roots for *everything* including all the outputs in a shell's closure which may be useful, but it's really not pretty :p
<fiatjaf>
sphalerite, thanks, it seems that the first command will work well enough
zopsi has joined #nixos
ryantrinkle has joined #nixos
mokasin has quit [Remote host closed the connection]
Ariakenom has joined #nixos
Itkovian has joined #nixos
nckx has joined #nixos
Itkovian has quit [Ping timeout: 244 seconds]
gudea[m] has quit [Ping timeout: 264 seconds]
roconnor has joined #nixos
<roconnor>
jb55: Are you using the trezor password manager? Is it working for you?
Izorkin has quit [Remote host closed the connection]
Izorkin has joined #nixos
zopsi has quit [Quit: Oops]
nbardiuk has joined #nixos
[Leary] has joined #nixos
pointfree has joined #nixos
YellowOnion has joined #nixos
Khetzal has joined #nixos
MarkOtaris has joined #nixos
Jackneill has joined #nixos
Ralith has joined #nixos
h30 has joined #nixos
fyuuri has joined #nixos
ent has joined #nixos
realrokka has joined #nixos
spacefrogg has joined #nixos
mic921 has joined #nixos
MarkOtaris has quit [Read error: Connection timed out]
Izorkin has quit [Remote host closed the connection]
zopsi has joined #nixos
jedahan has joined #nixos
Izorkin has joined #nixos
<fiatjaf>
here's an unsolvable problem: inside my nix-shell the backspace key does not work, it prints a space instead of erasing a character
<symphorien>
export TERM=linux
<symphorien>
(more a workaround than a solution, but...)
<gchristensen>
I want need to create a dir in nixpkgs/doc/ which contains some build-time files and which does not contain docs. All the names I've thought of could easily collide with a topical docs directory. any suggestions?
* emily
wonders why you call it an "unsolvable problem"
<{^_^}>
[nixpkgs] @xeji pushed commit from @romildo to master « deepin-desktop-base: init at 2018.7.23 (#48552) »: https://git.io/fx2Pw
jabranham has joined #nixos
phreedom has joined #nixos
fragamus has quit [Ping timeout: 246 seconds]
eacameron has joined #nixos
<roconnor>
jb55: the chrome app doesn't even recognize the new trezord bridge ;_;
oida has joined #nixos
metalrex has joined #nixos
<metalrex>
anyone here running gitlab? I have it running myself but having issues with gitlab-runner, the runners page does not show any active runners
<metalrex>
>starting the following units: gitlab-runner.service
shabius has quit [Quit: Leaving]
<roconnor>
jb55: oh nevermind. It's just that closing chrome doesn't actually stop chrome.
<{^_^}>
[nixpkgs] @codefionn opened pull request #48635 → tor-browser-bundle-bin: Added download link → https://git.io/fx21L
gilligan_ has joined #nixos
<{^_^}>
[nixpkgs] @samueldr merged pull request #48634 → Update Monero for upcoming hard fork [fix] → https://git.io/fx2iG
<judson>
Hm. I have dnsmasq enabled in NixOS, and it seems to confuse NetworkManager. I worry a little bit that it also makes my system non-deterministic, since there seems to be a possibility of a race for DNS: NM's dnsmasq or Systemd's
<judson>
But I can't see how else to add config to dnsmasq - and can't see at all how to control dhclient
<espg>
second, how do you specify the config itself? The example shows that you just pass as a string, but I'm wondering if it needs to be key value pairs
<kiloreux_>
I have tons of derivations, how can I get all their sources? Is there any parser library for that ?
<kiloreux_>
Couldn't get something to work with nix-repl
<symphorien>
map (x: x.src) drvs ?
kiloreux has quit [Ping timeout: 252 seconds]
<espg>
I get """error: The option value `networking.vpnc.services' in `/etc/nixos/configuration.nix' is not of type `attribute set of strings'. """ when I try nixos-rebuild switch
<kiloreux_>
symphorien, I don't have drvs as a list. Since it's rec { package = pkgscallPackage ./package1.nix {}; ......
<kiloreux_>
So it's not a list per se.
<symphorien>
mapAttrs may do the trick
<symphorien>
or something like that
aleph- has joined #nixos
<dhess>
gchristensen: yay!
<dhess>
Is that some kind of record? ;)
<espg>
I can do something like """networking.vpnc.services.myvpn = '' ... '' "" and then nixos-rebuild works, but I'm still unclear how or if this integrates with openconnect
<dhess>
For the record, it was elvishjerricco's suggestion. I just made the PR. Anyway it's awesome and I love that I can build Haskell things on aarch64 and have most of them hit the cache.
justbeingglad has joined #nixos
<elvishjerricco>
:)
<gchristensen>
elvishjerricco++
<{^_^}>
elvishjerricco's karma got increased to 7
<gchristensen>
dhess++
<{^_^}>
dhess's karma got increased to 5
Itkovian has joined #nixos
<dhess>
Someone mentioned the other day that the Packet.net ARMv8 Caviums are sold out?
<gchristensen>
definitely very low stock ...
<dhess>
gchristensen: and the community builder model, that's not generally available yet?
<gchristensen>
I'm not sure it ever will be :(
<dhess>
oh no!
<dhess>
That thing is quite fast.
espg has quit [Ping timeout: 256 seconds]
pepesza has quit [Quit: ZNC 1.6.3+deb1ubuntu0.1 - http://znc.in]
<kiloreux_>
How can I list all available variables in nix-repl ?
<espg>
... is there a functional way to define vpn tunnels for nixos? The documentation references examples using OpenVPN... but to use with a compatible cisco system, the client side connection is handled by openconnect and vpnc :-/
<samueldr>
kiloreux_: not that I know of :/
<ivan>
do you need this cisco system involved? if not you can set up tunnels with wireguard
<kiloreux_>
samueldr, how about listing attributes of a defined list ?
<symphorien>
> lib.attrNames { a = 1; b = 2; }
<{^_^}>
[ "a" "b" ]
<espg>
My university uses cisco to run their VPN, so if we want to connect my desktop or our research groups HPC... then yes I do
<espg>
i can connect by running "openconnect -s vpnc vpn.colorado.edu", but then I have to provide all of the login varibles, and still have to set the default ip route... which is fine, but a bit cumbersome. I feel like there should be a way to automate this via services and config files
<kiloreux_>
list = [
<kiloreux_>
atomicparsley
<kiloreux_>
cipherscan
<kiloreux_>
clamav
<kiloreux_>
consul
<kiloreux_>
consul-ui
<kiloreux_>
curl
<kiloreux_>
dash
<kiloreux_>
dtrx ];
<kiloreux_>
symphorien, that's what I meant.
<samueldr>
kiloreux_: for more than 2 lines, please use a pastebin next time, thanks
<haitlah>
gchristensen: Ohh, will have a look at it !
<gchristensen>
see also Example 15.2 through 15.6
espg has quit [Ping timeout: 245 seconds]
judson has quit [Remote host closed the connection]
<haitlah>
gchristensen: what's the difference btw ?
<gchristensen>
builtins.fetchGit executes git as your user, and thus can access your ssh key. pkgs.fetchgit runs in a nix-build and has no access to your ssh key at all. pkgs.fetchGitPrivate uses a horrible no good very bad insecure hack to share your private key with the build.
sablad has quit [Ping timeout: 256 seconds]
<haitlah>
ok
<haitlah>
gchristensen: thanks, but this is kinda 'impure' isn't it ?
<clever>
gchristensen: the trick, is to tell the build to use /tmp/hax as a unix socket for the agent
<gchristensen>
don't this is so evil.
<clever>
because ssh-agent detects that the client is in a different uid, it needs an socat proxy
<gchristensen>
_sigh_
<andi->
o.o
<roconnor>
jb55: seems updating my terzor firmware fixed my issue. I'll make a PR for a new trezord since I've already written it.
nbardiuk has joined #nixos
<haitlah>
gchristensen: this is enough for me thank you very much
<gchristensen>
great :) please pretend that clever didn't say any of those things.
Mr_Keyser_Soze has quit [Ping timeout: 245 seconds]
<hlolli>
I'm making a java jna-native app, and for jna to look for .so files on my system, it needs to look in `/run/current-system/sw/lib` I was just wondering is there some env-variable that I could use, that could list this directory, or this directory plus LD_LIBRARY_PATH?
haitlah has quit [Remote host closed the connection]
espg has joined #nixos
<hlolli>
or maybe more basic question, is "/run/current-system/sw/lib" a default path for all nixos users? I could just detect the distro and append it to jna's native path on runtime, along with ld-path.
<eddyb>
has anyone had weird wifi problems lately?
patrl has quit [Ping timeout: 252 seconds]
<gchristensen>
yes, but only because I need to go hang an AP back up on an exterior wall... but it is cold so I haven't yet.
<eddyb>
so what I've been hitting for the past few weeks, maybe after the last update I did, (although not sure exactly when it started) is the wifi driver restarts the card because of a queue timeout (after 2s), and appears to be connected still, but there's no actual internet access
<eddyb>
so I have to disconnect and reconnect
<eddyb>
I also suspect some packet loss (IRCCloud sometimes misbehaves because of it) but I'm not sure whether that's related or not, instances of it don't show up in the kernel log like the wifi card restarts do
<eddyb>
oh great I also GC'd so I don't even know what I upgraded from
<eddyb>
at least I know I upgraded on 16th of september
<eddyb>
to 19.03pre152634.218ce4de508
sevcsik[m] has joined #nixos
<azazel>
how i can set an attr whose name is specified in a variable? like aset["foo"] = bar in js or python?
<eddyb>
actually, the problem might be a few months older, but my memory is a bit fuzzy because I needed to use nmtui-connect for a while (something about the kde nm integration was broken)
<azazel>
as a newbie, the real problem was documentation. I was even missing a real functional background, so maybe I had/have more obstacles than the usual nix user, but really there's a ton of stuff in the changelogs, in the wiki and ultimately in the code. For example, it's a shame that the docs on the functions in lib/ isn't really exposed in the manual, it's very useful
<gchristensen>
hopefully other people will participate too :)
judson has joined #nixos
<jackjennings>
I'm having a lot of trouble mounting an EBS filesystem with the latest AMIs. Trying to deploy this machine with nixops just hangs after the message `[attached]` appears. Here's is my server declaration: https://gist.github.com/jackjennings/1ca53db2f453c943e52e6616109c34e5
<jackjennings>
I assume the issue is with the device name, but I can't find anything that works
<azazel>
gchristensen: how? with another PR? (anyway, I've so much stuff to finish) anyway, always on a repo wit so many changes, so many contributors and so many open PR / issues is a bit intimidating for me
<azazel>
i spend a way much "mind resources" trying to keep track of what is "happening around"... but maybe it's just me..
<azazel>
it's like it's a matter of "bandwidth"....
<{^_^}>
[nixpkgs] @Ma27 pushed to release-18.09 « nixos/weechat: add setuid wrapper for `screen' to ensure true multiuser capabilities »: https://git.io/fxaqY
<jackjennings>
how can I make a systemd service on a machine deployed with nixops start when the service is created. The services that I have defined don't start on the initial deploy. Is this the default behavior or am I doing something wrong?
random_yanek has joined #nixos
shabius_ has joined #nixos
<ashkitten>
how can i install mingw-w64 on my nixos machine for building proton?
<azazel>
jackjennings: I usually enable them and add wantedBy = [ "multi-user.target" ];
<azazel>
drakonis has quit [Quit: WeeChat 2.2]
<jackjennings>
azazel: just realized that I had left it out :(
<gchristensen>
13yrs on IRC and you'd think I'd have used ZNC by now :P
fragamus has joined #nixos
<aleph->
So question, trying to package a ruby application and following the ruby wiki page I need to run the first nix file and then run the two desired shell commands underneath before running the second nix file. My question is how would I run the fist nix file from the second? I thought my final nix file and shell script at the bottom would work however it errors out. The files and the error are here:
<aleph->
gchristensen: Only issue is no weechat client to weechat relay yet
<aleph->
Currently being slowly worked on by one dev
<gchristensen>
dang, okay
<aleph->
gchristensen: Only mobile and web clients
<mskalski>
can you use with weechat relay any irc client or only one which implements this specific protocol?
<aleph->
Hmm ruby, such a butt.
<aleph->
mskalski: Only specific clients
<samueldr>
nothing stops you from using znc in front, more moving parts, more fun ;)
<aleph->
True
* samueldr
uses quassel server on top of znc
<gchristensen>
samueldr: #nixos is all about moving parts
fendor has quit [Remote host closed the connection]
<aleph->
Okay anybody see a way around this issue with ruby? Ideally I need to import the packages and run bundle and bundix on them in the same directory, since I solved my first issue. Was being an idiot
<aleph->
However it shunts me off to a non home dir obviously.
<{^_^}>
[nixos-artwork] @flokli opened pull request #40 → bootloader/nix-wallpaper-simple-dark-gray_bootloader: convert to svg, add some padding → https://git.io/fxaGy
o1lo01ol1o has quit [Ping timeout: 252 seconds]
init_6 has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
lsyoyom has quit [Read error: Connection reset by peer]
<aleph->
samueldr: So reading over the example in the read me, not sure I see how the proper nixpkgs way does is any differently. Seems it still requires running bundix seperately outside the .nix file
<worldofpeace>
Cough, just gonna drop this here #48637 :P
<{^_^}>
[nixpkgs] @Ma27 pushed commit from @jerith666 to release-18.09 « clementine: add gst_plugins to buildInputs so setup hooks work »: https://git.io/fxaCu
YellowOnion has quit [Read error: Connection reset by peer]