<Infinisil> That seems wrong
telotortium has quit [(Read error: Connection reset by peer)]
<clever> the priority order is the users profile, roots profile, then configuration.nix
<clever> 2017-06-28 20:32:35 < mellowmaroon> clever: `which rustc` gives => /run/current-system/sw/bin/rustc
telotortium has joined #nixos
<clever> and we already confirmed, only systemPackages was at play
<Infinisil> Ohh yeah
dalaing_ has joined #nixos
dalaing_ has quit [(Remote host closed the connection)]
ryanartecona has joined #nixos
<Infinisil> clever: Hmm.. Okay I guess the priority makes sense when you think about it..
<clever> yeah, people will expect things they install as root to be available to everybody
<clever> so nix has to provide that "feature"
dalaing_ has joined #nixos
<Infinisil> And I just learned about the --referrers option of nix-store, used it to track down where rust came from
<Infinisil> Wait
<clever> i usually nix-store --query --roots and --query --graph
<clever> and -qR
<Infinisil> Oh it outputs a dot graph, fancy
<clever> oh oops, meant to say --query --tree
<clever> but both work
acarrico has joined #nixos
erictapen has joined #nixos
MP2E has quit [(Quit: off home from work!)]
thc202 has quit [(Ping timeout: 258 seconds)]
GetalMear has quit [(Ping timeout: 260 seconds)]
orivej has joined #nixos
eacameron has joined #nixos
<Infinisil> Oh another question: In man nix-shell, it documents the verbosity levels. The default is 1 and it can be increased with multiple -v's, but how can I get level 0?
<clever> i think it defaults to 0
<clever> so just none
<clever> oh
<clever> let me check the sources
JagaJaga has joined #nixos
<Infinisil> Well man says default is 1
<clever> yeah, just noticed that
erictapen has quit [(Ping timeout: 240 seconds)]
<clever> /home/clever/nix/src/libstore/gc.cc: debug(format("downgrading to read lock on ‘%1%’") % state->fnTempRoots);
<clever> /home/clever/nix/src/libutil/logging.hh:#define debug(args...) printMsg(lvlDebug, args)
<clever> Infinisil: a random debug msg, and how the debug macro works
noobly has joined #nixos
<noobly> Hello, is Sage (SageMath) available on this OS?
<clever> Infinisil: line 8 has the enum, at level 0, errors can still be seen
<gchristensen> noobly: yeah
<noobly> gchristensen: i'm having trouble both finding and installing it, how did you do so?
<gchristensen> I don't remember, I just know I've compiled it :o
<clever> noobly: nix-env -iA nixos.sage
<noobly> thank you clever1
<noobly> !
<noobly> it's marked as broken?
<clever> ah, slightly different variant of that issue
<clever> $ nix-build -A sage '<nixpkgs>' --arg config '{allowBroken=true;}'
<clever> Infinisil: this is another handy trick, i can override config.nix on the fly, temporarily
<noobly> clever: thanks again
<Infinisil> clever: Yeah I've seen that
mkoenig has quit [(Remote host closed the connection)]
darlan has joined #nixos
Rotaerk has joined #nixos
Coyin has quit [(Quit: Leaving)]
noobly has quit [(Quit: Page closed)]
hellrazo1 has quit [(Ping timeout: 240 seconds)]
<Infinisil> clever: I don't know why, but using -Q works, it suppresses the whole curl download output
JagaJaga has quit [(Ping timeout: 260 seconds)]
<clever> Infinisil: the curl's are ran in the sandbox as normal builds, and -Q is the only way i know of to hide them
<clever> and the source says that the verbosity defaults to lvlError, which is 0
<clever> so the docs are wrong
<Infinisil> clever: Well that's good enough for me
<clever> nix-build -A cardano-sl --no-build-output --keep-going || nix-build -A cardano-sl -j 1 ;
<clever> Infinisil: i also just wrote this, because -Q hides the errors
<clever> so in the event of failure, it will re-build whatever just failed, without -Q
<Infinisil> clever: Nice
<clever> thats pretty old though
<clever> like, back when i was still getting into linux old, lol
hellrazo1 has joined #nixos
<Infinisil> Just yesterday I transfered some more files over from macOS, and damn, the design it actually really good, I'm missing it a bit tbh
mellowmaroon has joined #nixos
<Infinisil> Like all applications are super well designed in a uniform style
<Infinisil> And the trackpad driver is so much better than what I got now (that I could configure with synaptics maybe, would be hard to get the same behaviour as on mac though)
ebzzry has quit [(Ping timeout: 240 seconds)]
<Infinisil> If I want a nice looking linux I have to configure the hell out of it, takes so long
<clever> ive heard that the macs have crazy power saving features, and that linux has worse battery life on the same hardware
<Infinisil> clever: Sadly true..
<mellowmaroon> clever: I tried running that nix-build for rustc, but it says it can't find default.nix
aneeshusa has joined #nixos
<gchristensen> clever: owning the entire stack lets them optimize like crazy
<Infinisil> mellowmaroon: Then you don't have the default.nix file? Where did you put the expression?
<clever> mellowmaroon: you may need to pass it '<nixpkgs>' and setup the overlay in your ~/.config/nixpkgs/config.nix
<clever> gchristensen: yeah
<mellowmaroon> ah ok
noobly has joined #nixos
<Infinisil> clever gchristensen: Safari is especially good on power saving, they also recently introduced Metal (a mac hardware optimized opengl) which now handles the whole graphics stack
ebzzry has joined #nixos
<noobly> So the other day I was on here and someone mentioned getting vim plugins to work is notoriously difficult in NixOs?
<clever> noobly: i have them working just fine
<noobly> Did you have to set them up any differently than you would in a debian like system?
<Infinisil> noobly: I'm using a stateful nix config for now
<clever> noobly: yeah, opening that config now
<mellowmaroon> clever: I set up the overlay again in ~/.config/nixpkgs/overlays, how do I include <nixpkgs>
<noobly> thanks :-)
<clever> mellowmaroon: nix-build '<nixpkgs>' -A rustStable.rustc -o rustc-stable-root
<clever> noobly: line 29 does the main plugins, 24 configures a vundle plugin, and 8-22 do the rest of my config
<clever> noobly: all of that gets baked into a bash script called "vim" that is contained in the myVim derivation
<Infinisil> mellowmaroon: Are you not using the one in configuration.nix now because it's still using the old version?
<clever> noobly: and then 36 puts that into the systemPackages
<noobly> clever: where does that config text go exactly? I don't know that I have a vim.nix, but have a blank ~/.vimrc
<clever> noobly: that goes into /etc/nixos/ and then i do imports = [ ./vim.nix ];
<mellowmaroon> Infinisil: right, I need rustc-1.17+
<noobly> Oh ok, I'll go poke around there and see if anything makes sense
<Infinisil> mellowmaroon: rustc is on 1.20 for me using the overlay in configuration.nix:
<Infinisil> `rustc --version`
<Infinisil> rustc 1.20.0-nightly (f590a44ce 2017-06-27)
<Infinisil> mellowmaroon: Are you willing to try and find out why you're getting 1.17?
<mellowmaroon> Infinisil: I wanted to use it from the stable channel
<Infinisil> mellowmaroon: Ah, so you want 1.18
<mellowmaroon> Infinisil: I wanted the feature std::ptr::eq, but I don't really want to have to deal with the instability of the Nightly compiler
<Infinisil> mellowmaroon: Soo, what's not working with the overlay? is it using 1.16?
<mellowmaroon> Infinisil: the rustc that comes with NixOS doesn't have that function. The overlay is working :)
taktoa has quit [(Remote host closed the connection)]
<mellowmaroon> Infinisil: But I'm putting all compilers I need in .config/nixpkgs/compilers, and using nix-build to create links to them
<Infinisil> mellowmaroon: The rust version on nixos is exactly the same as on other distros, are you sure that function is in 1.17?
<mellowmaroon> Infinisil: Yep. See https://doc.rust-lang.org/std/ptr/fn.eq.html
<Infinisil> mellowmaroon: Hmm, it sure should be
ris has quit [(Ping timeout: 260 seconds)]
<Infinisil> mellowmaroon: Can you show me the code?
<noobly> clever: ok, so I went through and pasted that stuff in vim.nix and then pasted the imports line into my config, and to be clear this only came with the plugins "vundle", "vim-nix" "youcompleteme" "Syntastic", right? And if I want more, I simply paste them into there?
<mellowmaroon> Infinisil: the rust code?
ryanartecona has quit [(Quit: ryanartecona)]
<Infinisil> mellowmaroon: I mean what's the error? Because like if the compiler is 1.17 this function *must* exist
<clever> noobly: yeah
<mellowmaroon> Infinisil: ...it does work when I use the nightly compiler
<noobly> clever: ok, nice, thanks. How do you so much about nixOS and how do I become a wizard like you?
<manveru> that's what i get when i try to run the not-os runner... clever :) https://www.irccloud.com/pastebin/NFcfGjbG/out.log
<mellowmaroon> Infinisil: not nightly, the overlay I mean
<noobly> so you don't even have a ~/.vimrc?
<clever> noobly: correct
<Infinisil> mellowmaroon: Oh but the one from here does not? http://nixos.org/nixos/packages.html
<clever> noobly: i just read any source i can to find out how things work
<clever> manveru: looking...
<mellowmaroon> Infinisil: when I use the NixOS rustc, it doesn't compile. It only works with the rustc from the Mozilla overlay
<manveru> the /nix/store/dk5cgc47x30ikclxp45ppa3kkjpkls4p-not-os/init exists on my host, but seems like it's not in the initrd?
<clever> manveru: looks like it failed to mount the nix store
<clever> manveru: line 5 of the paste
<mellowmaroon> Infinisil: Right, rustc stable is 1.15.1
hellrazo1 has quit [(Ping timeout: 240 seconds)]
<manveru> hm
<Infinisil> mellowmaroon: Yeah
jgertm has quit [(Ping timeout: 276 seconds)]
<manveru> is that the squashfs.img?
<clever> yep
<clever> testing it on this end
<Infinisil> mellowmaroon: Oh I see your problem now
hellrazo1 has joined #nixos
dalaing_ has quit [(Remote host closed the connection)]
<Infinisil> mellowmaroon: So it works now with the overlay?
<mellowmaroon> Infinisil: yep :)
cpennington has joined #nixos
<Infinisil> mellowmaroon: Nice :), did you use the config or the files for the overlay?
<mellowmaroon> Infinisil: I ended up cloning the repo nixpkgs-mozilla from git into .config/nixpkgs
<mellowmaroon> Infinisil: and symlinking the right file from that into .config/nixpkgs/overlays
<Infinisil> mellowmaroon: Ahh, I think you should just be able to put overlays = [ ... ] in ~/.config/nixpkgs/config.nix
<manveru> clever: fwiw i'm using 17.03 channel
<Infinisil> mellowmaroon: The nixpkgs option in configuration.nix is just the attributes in ~/.config/nixpkgs/config.nix
<mellowmaroon> Infinisil: I'm afraid I don't really follow...sorry
<clever> manveru: i have recently done some changes to make the store r/w, and that might not have been fully tested
mudri has quit [(Ping timeout: 268 seconds)]
<Infinisil> mellowmaroon: I'll gist it
<clever> manveru: yep, its broken on this end
<mellowmaroon> Infinisil: Ok, thanks. I'll have to save it and take a closer look tomorrow, need to sign off fairly soon
aneeshusa has quit [(Ping timeout: 240 seconds)]
<Infinisil> mellowmaroon: I'd think something like this should work: https://gist.github.com/b3eefa8f673ffe23ba211a09866b6417
<clever> manveru: strange, /dev/vda isnt the squashfs anymore...
<manveru> clever: well, good to know, i'll get some sleep now :)
<mellowmaroon> Infinisil: aahhhh yeah haha, that was the same one clever showed me earlier
<Infinisil> mellowmaroon: Yeah I got it from there too, but you can put it in ~/.config/nixpkgs/config.nix
<mellowmaroon> I'll put that in my user config.nix and pick it back up tomorrow. Thanks :)
<Infinisil> mellowmaroon manveru: Good night you two then!
<mellowmaroon> Good night everyone!
mellowmaroon has quit [(Quit: Leaving)]
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
<clever> manveru: strange, its not loading virtio_blk
<Infinisil> Wait that doesn't work, clever: Does the overlays attribute in ~/.config/nixpkgs/config.nix not work?
vaibhavsagar has joined #nixos
<clever> Infinisil: i would expect it to work
<clever> but ive not actually used it yet
<clever> manveru: it boots!
<Infinisil> clever: Doesn't look like it.. :( http://nixos.org/nixpkgs/manual/#chap-overlays
<clever> ah
cheshircat has joined #nixos
noobly has quit [(Quit: Page closed)]
<Fare> does nixos have a fix for http://people.canonical.com/~ubuntu-security/cve/2017/CVE-2017-9445.html yet? Yet another systemd remote vulnerability.
<gchristensen> Fare: I believe it is committed but not yet released
jgertm has joined #nixos
aneeshusa has joined #nixos
<clever> Fare: systemd-resolved isnt running on my machine
<clever> acording to that link, it will only be an issue if i manualy run systemd-resolve, while an attacker can control the dns replies
s33se has joined #nixos
s33se_ has quit [(Ping timeout: 260 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03 advanced to https://github.com/NixOS/nixpkgs/commit/a2c7482319 (from 13 hours ago, history: https://channels.nix.gsc.io/nixos-17.03)
nix-gsc-io`bot has quit [(Client Quit)]
darlan has quit [(Quit: Communi 3.5.0 - http://communi.github.com)]
hellrazor has joined #nixos
noobly has joined #nixos
<noobly> I can't seem to find the package for DrRacket, any pointers?
danl1240 has quit [(Quit: Textual IRC Client: www.textualapp.com)]
hellrazo1 has quit [(Ping timeout: 276 seconds)]
<tilpner> noobly - It should be in the same package that you got Racket from
<tilpner> So probably pltScheme
justelex_ has joined #nixos
<noobly> tilpner: is pltScheme the racket package?
<tilpner> Yes
aneeshusa has quit [(Quit: WeeChat 1.9)]
justelex has quit [(Ping timeout: 260 seconds)]
<noobly> hmm whenever I type "sudo nix-env -i racket-6.8" I get told error: selector ‘racket-6.8’ matches no derivations
<clever> noobly: you usualy dont want to use sudo nix-env
<noobly> oh! nevermind, I see the install command now on the package searc, how nice
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 closed pull request #26884: Purge stdenv cross (master...purge-stdenv-cross) https://git.io/vQGHR
NixOS_GitHub has left #nixos []
<noobly> clever: is the proper way to use my nixos configuration.nix?
<clever> nix-env will never read configuration.nix
<clever> it only ever reads ~/.config/nixpkgs/config.nix
<noobly> oh damn racket isn't available on my 32 bit machine
<noobly> clever: Ok, not sure I understand the technical implications just yet though
<clever> when nixos loads a copy of nixpkgs to pass to configuration.nix, it will override the config to be the value of nixpkgs.config
<clever> in any other case, it loads ~/.config/nixpkgs/config.nix by default
henrycrutcher has quit [(Ping timeout: 260 seconds)]
<gchristensen> clever: check this out ...
<noobly> Oh ok
<drakonis> clever girl
<Infinisil> gchristensen: ??
Ralith_ has joined #nixos
lambdamu has joined #nixos
<noobly> the C compiler is buitin right?
<noobly> GCC?
mbrgm has quit [(Ping timeout: 240 seconds)]
<gchristensen> yeah
<gchristensen> oh I haven't told you
ryanartecona has joined #nixos
<gchristensen> clever: these docs are auto-generated from nixos/tests/installer.nix
<clever> oh, i think i saw you mention that earlier
<clever> thats pretty neat
mbrgm has joined #nixos
mbrgm has quit [(Changing host)]
mbrgm has joined #nixos
<gchristensen> still work to be done, but I think interesting
<gchristensen> ok going offline, bye!
<clever> gchristensen: i generally want to put /nix/ on its own volume
<clever> so i can exclude it from snapshots
lambdamu_ has quit [(Ping timeout: 276 seconds)]
zeus_ has quit [(Remote host closed the connection)]
<adisbladis> clever: Is there any point to snapshotting anything besides /home?
zeus_ has joined #nixos
<Infinisil> adisbladis: I don't have my system configs in /home, so there's that
<Infinisil> and some things in /var I think should be backed up
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vQWhi
<NixOS_GitHub> nixpkgs/master f57fadc Tomas Hlavaty: sbcl: 1.3.18 -> 1.3.19...
NixOS_GitHub has left #nixos []
<adisbladis> Infinisil: Ah. I have them in a git repo :)
<adisbladis> So I don't need to snapshot those
<adisbladis> Infinisil: /var is a good point though
<clever> adisbladis: i usualy just make seperate volumes for / /nix and /home
<clever> then i can choose all 3 seperately at a later point
<Infinisil> adisbladis: I don't commit nearly enough in my config, my snapshots run every 5 minutes though
<adisbladis> Infinisil: Yeah you are right. And one does not exclude the other
<Infinisil> adisbladis: Ohh yeah, maybe /root if you need it
zeus_ has quit [(Ping timeout: 246 seconds)]
<clever> i generally set com.sun:auto-snapshot=true on my filesystems, and services.zfs.autoSnapshot.enable=true;
ryanartecona has quit [(Quit: ryanartecona)]
<clever> then zfs does snapshots every 15min, 1h, 1day, 1 week, and 1 month
<clever> each with its own limit
<Infinisil> clever: I prefer to use znapzend, which can also do backups to external and remote disks
<clever> dont yet have the disk space on a single machine that can take it all
endformationage has quit [(Quit: WeeChat 1.7)]
<clever> and they already have redundancy
<clever> amd is an SSD mirror
<clever> nas is a raidz1
<clever> so both systems can survive loosing a single drive
<Infinisil> clever: I thought about making a snapshot each time a command is run
<Infinisil> And keep like 8 of them
<Infinisil> So I can rollback if I fucked up
<clever> lvm internally does that, when modifying the lvm metadata
<Infinisil> Just need some way to figure out what paths the command touches
<Infinisil> To get the right dataset
<clever> there is a "zfs diff"
<clever> if i diff 2 previous snapshots, i can see changes in a /tmp/nix-build
<clever> and the systemd journal
<Infinisil> clever: Yeah but I need it before making a snapshot, because I have different datasets
<Infinisil> And I don't want to backup every single one of them on every command if I can avoid it
<clever> hmmm, between april and may, my rootfs went up by 5gig
<clever> i think i left a linux kernel build in /tmp/nix-build-linux-4.9.25.drv-0
<Infinisil> clever: I wish I could delete a single file from all snaps
<clever> yeah
<clever> i have sometimes cleaned things up, but had to delete months worth of backups to reclaim any space
<Infinisil> I once downloaded 20 gigs from a torrent which now travels up in my snaps list
<Infinisil> I may actually just delete those 2 snaps that stil have it
<clever> oh there is another cmd that isnt well documented
<clever> [root@nas:~]# zfs list -t snapshot -r naspool/nas -o name,used,refer,written
<clever> Infinisil: this reveals another column, that gives a better view into the disk usage
<Infinisil> Ohh, I deleted the 2 snaps now.. +35GB :D
<Infinisil> Was more than I thought
<Infinisil> clever: Yeah I know about that option
<clever> i think the used field, is the difference between that snapshot, and the next one
<clever> but it doesnt update when things expire
<clever> naspool/nas@zfs-auto-snap_hourly-2017-06-28-23h00 0 1.05T 0
<clever> so, why am i using 1.05 tb!
<clever> ncdu -x /nas/
ryanartecona has joined #nixos
<Infinisil> I haven't looked much into the what is what regarding size/alloc/free/used/<whatever else there is>
<clever> naspool/nas compressratio 1.06x -
<Infinisil> That's not much :o
<clever> it may not have been on at all times
<clever> naspool/root compressratio 1.95x -
<Infinisil> clever: Have you ever looked at zfs allow/unallow? It didn't work for me
<clever> arcstat.py -f time,read,dmis,dhit,dh%,mrug,mru,mfu,mfug,mread,c,ph%,pm%,mm%,miss,hits,mhit,mh%,mmis,hit%,eskip,arcsz 10
<clever> Infinisil: oh, this is another one
<Infinisil> clever: Huh?
<clever> Infinisil: every 10 seconds, it will show a crap-ton of starts
<clever> including on-demand read misses, hit rate, arc size, and more
<clever> time read dmis dhit dh% mrug mru mfu mfug mread c ph% pm% mm% miss hits mhit mh% mmis hit% eskip arcsz
<clever> 23:13:46 2.7K 475 1.7K 78 113 813 933 4 1.8K 1.4G 75 24 22 588 2.1K 1.4K 77 418 78 801 1.4G
<clever> 23:14:36 1.0K 205 586 74 37 372 213 53 785 758M 75 24 17 260 754 649 82 136 74 739 758M
<clever> c is the goal size for the arc, and arcsz is the current size
<Infinisil> Well, a lot of those are 0 for me
<Infinisil> 04:15:05 1.8K 667 1.1K 62 0 71 1.0K 0 1.7K 3.9G 31 68 38 677 1.1K 1.1K 61 665 62 0 3.0G
<Infinisil> 04:15:15 23 0 22 97 0 5 17 0 10 3.9G 50 50 5 0 22 10 94 0 97 0 3.0G
roconnor has quit [(Ping timeout: 258 seconds)]
<clever> mrug : MRU Ghost List hits per second
<Infinisil> I don't know what 60 percent of those are
<clever> when things expire off the most-recently-used list and vanish from the arc, it keeps the id of the block in a ghost list
<clever> and if that ghost list gets a hit, it knows that the MRU half of the arc is too small
<clever> so it allocates more of the arc to recent, rather then freq
pie_ has joined #nixos
ericsagnes has quit [(Ping timeout: 255 seconds)]
<clever> your system is probably idle, so its not missing the arc
pie_ has quit [(Client Quit)]
<clever> my stats are during an ncdu run over 1tb of data
<Infinisil> clever: I see (more or less)
<clever> ah, the miss and hits columns
<clever> you had 22 hits to the cache, and 0 misses, on that second sample
<clever> so its fairly idle
<clever> [root@amd-nixos:~]# arcstat.py -v
roconnor has joined #nixos
<clever> hits : ARC reads per second
<clever> this explains what every field is
<Infinisil> "explains"
<clever> yeah, not very well
<clever> you need to know the internals some and make an educated guess
ryanartecona has quit [(Quit: ryanartecona)]
jgertm has quit [(Ping timeout: 260 seconds)]
ryanartecona has joined #nixos
roconnor has quit [(Ping timeout: 276 seconds)]
<copumpkin> shlevy: you around?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus opened pull request #26945: virtualbox: Add ability to disable 32-bit guest support (master...virtualbox_32bit) https://git.io/vQler
NixOS_GitHub has left #nixos []
<Infinisil> clever: Do you know how non-root users can run zfs commands?
<clever> open("/dev/zfs", O_RDWR) = -1 EACCES (Permission denied)
<Infinisil> clever: Using zfs allow doesn't work for some reason, it gets blocked before that even, "Permission denied the ZFS utilities must be run as root."
<clever> Infinisil: i think the bulk of it relies on +w to this device
<clever> crw------- 1 root root 10, 58 Jun 14 22:02 /dev/zfs
<clever> if i chown it to myself, i can run "zpool status" without root
<clever> i can probably also delete any filesystem or mount things anywhere, so keep that in mind
<Infinisil> clever: Oh yeah..
[0x4A6F]1 has joined #nixos
<Infinisil> clever: Probably a zfs group would work nicely
<clever> yeah
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus closed pull request #26945: virtualbox: Add ability to disable 32-bit guest support (master...virtualbox_32bit) https://git.io/vQler
NixOS_GitHub has left #nixos []
<Infinisil> But then zfs allow/unallow doesn't even work..
[0x4A6F] has quit [(Ping timeout: 246 seconds)]
[0x4A6F]1 is now known as [0x4A6F]
<Infinisil> Whyyy
ryanartecona has quit [(Quit: ryanartecona)]
cpennington has quit [(Remote host closed the connection)]
<Infinisil> I'd love to use that permission system, even though I don't have any use for it
ericsagnes has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus closed pull request #26915: terraform: 0.9.6 -> 0.9.9. (master...terraform) https://git.io/vQcqa
NixOS_GitHub has left #nixos []
<clever> Infinisil: if you run the command with strace, can you see what fails?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 pushed 2 new commits to master: https://git.io/vQlvu
<NixOS_GitHub> nixpkgs/master b0ada07 John Ericson: wxMSW: Fix syntax --- travis eval did not catch
<NixOS_GitHub> nixpkgs/master eb052ed John Ericson: Merge pull request #26946 from obsidiansystems/wxmsw-fix...
NixOS_GitHub has left #nixos []
<Infinisil> clever: You mean zfs list or something without having access to /dev/zfs?
<clever> something like zfs allow
<clever> when you do have access to /dev/zfs
<Infinisil> clever: the command zfs allow doesn't fail
<Infinisil> but the resulting permissions aren't applied
<clever> ah
<Infinisil> Oh wait, zfs list isn't one of the possible permissions..
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vQlv6
<NixOS_GitHub> nixpkgs/master 80e0cda Michał Pałka: xen: patch for XSAs: 216, 217, 218, 219, 220, 221, 222, and 224...
<NixOS_GitHub> nixpkgs/master 4cc7296 Tim Steinbach: Merge pull request #26867 from michalpalka/xen-security-2017.06-new...
NixOS_GitHub has left #nixos []
<clever> Infinisil: you know about /.zfs/ ?
<Infinisil> clever: Yeah
<clever> i believe rm on a directory in snapshots will delete a snapshot
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus closed pull request #26868: xen: patch for XSAs: 216, 217, 218, 219, 220, 221, 222, and 224 (release-17.03) (release-17.03...xen-security-2017.06-backport-new) https://git.io/vQ3Qj
NixOS_GitHub has left #nixos []
<Infinisil> clever: Have you tried it? If so this must be a feature
<clever> [root@amd-nixos:~]# rmdir /.zfs/snapshot/zfs-auto-snap_hourly-2017-06-28-23h00
<clever> Infinisil: this works to delete a snapshot
<Infinisil> Or just how it works I guess, that like the .zfs folder holds all the references, just like nix' gcroots :D
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] cstrahan pushed 1 new commit to master: https://git.io/vQlv5
<NixOS_GitHub> nixpkgs/master f4e04c3 Charles Strahan: clac: 20170416 -> 20170503
NixOS_GitHub has left #nixos []
drakonis has quit [(Read error: Connection reset by peer)]
<clever> MODULE_PARM_DESC(zfs_admin_snapshot, "Enable mkdir/rmdir/mv in .zfs/snapshot");
<Infinisil> Nice
<clever> Infinisil: that option appears to have been added in the same commit as zfs allow
<clever> correction, that commit changed the default of that option from 0 to 1
indi_ has joined #nixos
<clever> so the /.zfs/snapshot directory is more like /proc, its not the real references
<clever> and it will just call dsl_destroy_snapshot behind the scenes when you try to rmdir
<Infinisil> And that's one more thing learned today
MP2E has joined #nixos
snikkers has quit [(Ping timeout: 276 seconds)]
<Infinisil> Damnit, the thing I need to change my keyboard layout (firmware) doesn't run correctly on nixOS, it can't open the device (the keyboard)
<clever> run it as root?
<clever> strace it?
CcxWrk has quit [(Ping timeout: 240 seconds)]
<Infinisil> Lol
<Infinisil> I did not even think of running it as root
<Infinisil> thanks it worked
<clever> libusb permissions are missing a bit on nixos
CcxWrk has joined #nixos
<clever> i have used libusb before to try and get more features out of my wireless headset
<clever> i am able to detect every button and switch, even power
<clever> but not the battery level
<clever> and you need windows-only software to hear the low battery beep
<Infinisil> Seems like it could use some work
<Infinisil> clever: Does it run in wine?
<clever> granting normal users access to the usb nodes of a keyboard would allow keyloggers and break keyboard grabs
<clever> probably doesnt
<clever> wine doesnt do driver level things
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 pushed 1 new commit to staging: https://git.io/vQlJ4
<NixOS_GitHub> nixpkgs/staging 16be434 John Ericson: Merge accepted cross compilation PRs into staging
NixOS_GitHub has left #nixos []
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f57fadc536 (from 87 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<Infinisil> Yay, I got my keyboard layout integrated with nix now :d
<Infinisil> :D
jgertm has joined #nixos
roconnor has joined #nixos
ndrei has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fare opened pull request #26947: Update gambit and gerbil (master...master) https://git.io/vQlTB
NixOS_GitHub has left #nixos []
<Fare> after much sweating, I at last created this PR ^
reinzelmann has joined #nixos
<Infinisil> Fare: :)
<Infinisil> Fare: You may want to make a separate branch for that next time
<Infinisil> I don't actually think there's a benefit to that when only doing a PR, more so when you actually use your fork for more other things
<Fare> and now, I realize that a lot of languages with source debugging may want the build to happen from $out/ or ${source} so the source code is available with M-.
<Fare> Infinisil, what do you mean, separate branch? It's already a separate repo.
<Infinisil> Fare: Usually you'd create a branch called fix-<foo>-<bar> or something on your fork and use that for the PR
<Fare> OK. And create a branch off of what?
<Infinisil> Fare: The master of your fork
<Fare> master? nixos-unstable?
<Fare> OK.
<Infinisil> Fare: You can see that on any other PR :P
<Fare> Has anyone seen MichaelRaskin recently?
<Infinisil> Don't remember seeing him here recently
ebzzry has quit [(Quit: WeeChat 1.8)]
ebzzry has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 opened pull request #26948: stdenv: Simplify dependency code (master...stdenv-map) https://git.io/vQlkX
NixOS_GitHub has left #nixos []
jgertm has quit [(Ping timeout: 260 seconds)]
justelex_ has quit [(Ping timeout: 240 seconds)]
jgertm has joined #nixos
jbaum98 has quit [(Quit: Connection closed for inactivity)]
Sonarpulse has quit [(Ping timeout: 240 seconds)]
dmr has joined #nixos
<dmr> hey folks, i just learned about nixos & am trying it out with vagrant. none of the regular emacs-style terminal line editing stuff seems to work. even 'backspace' seems to be bound to 'move cursor forward' or 'space' or something. is this some kind of difft configuration that lots of nixos people like, or a sign that something else is broken?
zeus_ has joined #nixos
<dmr> it's entirely possible that i picked some guy's weirdly-cfg'd vm img
<MP2E> sounds like a missing terminfo, or incorrectly set TERM or XTERM environment variable. Are you using a terminal in X11 or just a tty, and what shell?
<dmr> host term/shell is rvxt/zsh
<dmr> guest shell is bash
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] falsifian pushed 1 new commit to master: https://git.io/vQlI6
<NixOS_GitHub> nixpkgs/master 8157640 Karn Kallio: Fix akonadi build....
NixOS_GitHub has left #nixos []
<dmr> guest $TERM = host $TERM tho
Sonarpulse has joined #nixos
ebzzry has quit [(Quit: WeeChat 1.8)]
<MP2E> host may need to install rxvt.terminfo to systemPackages, which is the official way. However, I actually use urxvt and zsh on 2 nixos computers and when I would ssh into the other one, I would get the exact same breakage, even with the correctly installed terminfo file
<dmr> maybe host doesn't have /nix/store/badc0deddeadbeef/rxvt.terminfo or something
<MP2E> couldn't find a proper fix for it so I found a workaround: add 'export XTERM="rxvt-256color"' to the zshrc of the computer used to log in to the server
<dmr> (it's arch linux)
<MP2E> suddenly it worked perfectly
<dmr> presumably that should be whatever my TERM is (rxvt-unicode-256color), not that specific value; trying
<MP2E> aha, I have rxvt-unicode-256color as well
<MP2E> from what i can tell the definitions are missing for the unicode version
<MP2E> so that's why you need to do the awful thing of pretending it's actually rxvt-256color
<MP2E> but it seems to just work
<MP2E> i don't know why they're missing now though, they used to be there
alx741 has quit [(Quit: alx741)]
<dmr> that does work
<dmr> altho it's not specifically putting it in zshrc tho
<dmr> i don't think
hellrazor has quit [(Ping timeout: 260 seconds)]
<dmr> yeah, as i suspected, `TERM=rxvt-256color vagrant ssh` is just as good
<dmr> thanks man
<MP2E> no problem, glad it works
<dmr> now i can actually explore the thing, anyway
hellrazor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] falsifian pushed 1 new commit to master: https://git.io/vQlLk
<NixOS_GitHub> nixpkgs/master 13ab06b Karn Kallio: kde applications : fix builds by adding missing dependencies...
NixOS_GitHub has left #nixos []
abrar has quit [(Ping timeout: 240 seconds)]
zarkone has joined #nixos
<zarkone> Hello! I'm using nixops first time and wonder how to use env vars in config files. I have file `default.nix` and `url` param, which I prefer to be taken from env var. Could you point me how to use env vars? thanks!
raunov has quit [(Ping timeout: 260 seconds)]
orivej has quit [(Ping timeout: 260 seconds)]
orivej has joined #nixos
abrar has joined #nixos
ebzzry has joined #nixos
<clever> zarkone: builtins.getEnv
Fare has quit [(Remote host closed the connection)]
marsel has joined #nixos
zeus_ has quit [(Remote host closed the connection)]
zeus_ has joined #nixos
<Infinisil> clever: Umm, I used nix-instantiate on an expression (without --add-root), but I can't nix-store --delete without --ignore-liveness
<Infinisil> clever: Neither nix-store -q --roots nor --referrers prints anything, only --referrers-closure, which prints the path itself
zeus_ has quit [(Ping timeout: 246 seconds)]
<clever> Infinisil: never use ignore liveness
<clever> Infinisil: it can also check env variables and many other places for liveness
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/1201ddaf36 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
nix-gsc-io`bot has quit [(Client Quit)]
<Infinisil> clever: Could the fact that I used --argstr have anything to do with that? I don't think so
<clever> to start with, what is the exact --delete command you are running?
<Infinisil> clever: Ohhh, I'm running it from a script.. opened files or something
<clever> yeah, it will check the open file handles, and env variables
<Infinisil> clever: I just used nix-store --delete <path>
<clever> try not using export on that variable
<Infinisil> That's my script, I'm only saving the path string I think
<clever> 1, dont use ls $result/hex/*
<clever> it should work the same with just -w $result/hex/*
<Infinisil> clever: It didn't, that's why I'm using ls
<clever> why didnt it work?
Itkovian has joined #nixos
<Infinisil> -w $result/bin/* didn't work
<Infinisil> do I need some braces?
<clever> shouldnt
<Infinisil> It just didn't expand the *
<clever> ls doesnt expand * either
<clever> its bash that expands it, when passing it to ls
hellrazor has quit [(Quit: WeeChat 1.9)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 4 new commits to master: https://git.io/vQlq1
<NixOS_GitHub> nixpkgs/master e636454 Michael Alan Dorman: elpa-packages: 2017-06-28
<NixOS_GitHub> nixpkgs/master b2e148f Michael Alan Dorman: melpa-stable-packages: 2017-06-28...
<NixOS_GitHub> nixpkgs/master 37f381a Michael Alan Dorman: melpa-packages: 2017-06-28...
NixOS_GitHub has left #nixos []
<Infinisil> Doing only echo * in a file works
<Infinisil> From the output:
<Infinisil> + sudo teensy-loader-cli -mmcu=atmega32u4 -v -w '/nix/store/ap1ikwbjgpbm87iw3f9xx29b0p6f31yy-qmk_firmware/bin/*.hex'
<Infinisil> Teensy Loader, Command Line, Version 2.1
<Infinisil> error reading intel hex file "/nix/store/ap1ikwbjgpbm87iw3f9xx29b0p6f31yy-qmk_firmware/bin/*.hex"
<clever> why did that have single quotes?
<clever> was that in the code or just the set -x output?
<Infinisil> It's not in the code
<clever> and why does the error say bin when the gist said hex?
<Infinisil> I found that if I remove set -x it works..
<Infinisil> Ohhhhh
<Infinisil> Lol
<Infinisil> I used /bin
<Infinisil> Too used to using /bin
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Infinisil> Alright but the nix-store --delete error I still don't get
<clever> sudo strace -o logfiles -ff nix-store --delete $drv
<clever> or maybe
<clever> sudo strace -o logfiles -ff -s 5000 nix-store --delete $drv
<clever> then grep the logfiles it generates for the hash of the storepath your trying to delete
zeus_ has joined #nixos
eacameron has quit [(Remote host closed the connection)]
<zarkone> clever: thanks! will try it out
eacameron has joined #nixos
marsel has quit [(Ping timeout: 240 seconds)]
<Infinisil> clever: Weird, this works: https://gist.github.com/4a93de3ae1cb9ad9be2e1c02782ced55
<Infinisil> I tried to make it reproducible
<clever> Infinisil: also, i would rather rewrite this code to store the password in the teensy's eeprom
<clever> Infinisil: and then talk to it over serial after flashing, to set a pw
eacameron has quit [(Ping timeout: 258 seconds)]
<Infinisil> clever: I have no idea how to do that :)
<Infinisil> But I found out that the teensy command is the culprit
<clever> Infinisil: did you write this firmware?
<Infinisil> clever: Nah, https://github.com/qmk/qmk_firmware
<clever> ah
<Infinisil> Using it for my ErgodoxEZ
<clever> ah yeah, the keyboard you where flashing earlier?
nslqqq has quit [(Ping timeout: 240 seconds)]
<Infinisil> Yes
<clever> nix doesnt really deal with passwords very well
<Infinisil> clever: Yeah
<clever> there is no safe way to pass them into a build
<Infinisil> This script is my only hope
<clever> how long does the build take?
<Infinisil> Just a couple seconds
<Infinisil> Btw here is the source for teensy-loader-cli, it's pretty small, only 1 file: https://github.com/PaulStoffregen/teensy_loader_cli/blob/master/teensy_loader_cli.c
<clever> i would just only build it under nix-shell then
<clever> i have used the teensy before
<Infinisil> clever: > only build it under nix-shell. Why?
<clever> i would do something like nix-shell --run "something" and then have the something do everything, it can be impure
<clever> the stuff built under nix-shell never goes into the store
<clever> so you dont have to deal with nix when cleaning the files up
<Infinisil> clever: Oh right
<clever> just rm -rf
<Infinisil> That makes it easier
<clever> its also not sandboxed, so you can run pass and sudo teensy-loader right from nix-shell
<clever> its normaly the wrong solution, but you need the password hidden, and are deleting it asap anyways
<Infinisil> Yeah
jacob_ has joined #nixos
jacob_ is now known as Guest23060
<Infinisil> Wait no, wrong paste
<sphalerite> Infinisil: do you live at night or something? O.o
<Infinisil> What's wrong with nix-shell --argstr "$password" --run "teensy-loader-cli" default.nix
<Infinisil> sphalerite: Currently yes :)
<Infinisil> sphalerite: I'll probably end up not sleeping today at all
<sphalerite> D:
<clever> Infinisil: the .drv file still gets made
<clever> Infinisil: by default, nix-shell lets env vars leak in
<clever> so you can FOO=bar nix-shell ....
<sphalerite> and I thought my getting only 7 hours of sleep was bad (which it is by my standards)
<clever> sphalerite: it is currently 3:27 am here
<adisbladis> sphalerite: I used to only get 4 per night for years :/
telotortium has quit [(Read error: Connection reset by peer)]
<Infinisil> WHAT
<Infinisil> clever: the original thing worked now
telotortium has joined #nixos
<sphalerite> I stop functioning properly when I don't get 8h of sleep
<Infinisil> clever: Soo, this works now: https://gist.github.com/75560f29139173582c99f69e57f827f1
<Infinisil> clever: Also the original gist works now...
<Infinisil> I should just stay away from state, it doesn't do good
nslqqq has joined #nixos
[0x4A6F] has quit [(Remote host closed the connection)]
Itkovian has joined #nixos
<Infinisil> clever: Oh and regarding a serial interface, @fredizzimo is working on his fork to add just that, currently it's not supported https://github.com/fredizzimo/qmk_firmware
<clever> ah
zarkone` has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #26919: moka-icon-theme: 2017-02-13 -> 5.3.6 (master...upd.moka-icon-theme) https://git.io/vQcz9
NixOS_GitHub has left #nixos []
dmr has quit [(Ping timeout: 268 seconds)]
zarkone has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Profpatsch opened pull request #26949: adbfs-rootless: init at 2016-10-02 (master...adbfs-rootless) https://git.io/vQlOv
NixOS_GitHub has left #nixos []
jgertm has quit [(Ping timeout: 268 seconds)]
<Infinisil> I'm just trying to think of how passwords could work nicely with nix.
DrWaste has joined #nixos
freusque has joined #nixos
Thra11 has quit [(Remote host closed the connection)]
Thra11 has joined #nixos
tsmeets has joined #nixos
<tsmeets> Hello, is it possible to get the result of a shell command as a string inside nix?
<tsmeets> Something like 'runCommand' but instead of a derivation path return a string?
<tsmeets> the stdout of a command for example
<clever> tsmeets: is the command pure or not? (does it use the network)
ebzzry has quit [(Ping timeout: 260 seconds)]
<tsmeets> clever: not exactly, that is why i need a external command
Thra11 has quit [(Ping timeout: 268 seconds)]
<tsmeets> I want to download a file from 'moddb.com' but the urls keep changing
<clever> tsmeets: that can easily be done
<clever> tsmeets: look at the factorio downloader
<clever> and fetch.nix in the same dir
<clever> tsmeets: as long as you know what the hash of the final $out will be, you are free to do whatever you want with the network access
<clever> nix will enforce the output having the same result every time, via that hash
<tsmeets> clever: ok, thanks! :) The hash should be the same.
Thra11 has joined #nixos
<Infinisil> clever: What prevents me from using `read` in a derivation? A simple runCommand "x" {} "read x" fails already
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/vQlsJ
<NixOS_GitHub> nixpkgs/master 2cb5246 Josef Kemetmueller: gogs: 0.10.18 -> 0.11.19
<NixOS_GitHub> nixpkgs/master f14cd40 Jörg Thalheim: gogs: remove old deps.nix...
<NixOS_GitHub> nixpkgs/master 793620e Jörg Thalheim: Merge pull request #26898 from knedlsepp/update-gogs...
NixOS_GitHub has left #nixos []
<Infinisil> I mean yeah it doesn't make sense, but somewhere it's detecting I used read because it fails instantly
<clever> Infinisil: stdin is connected to /dev/null, try checking "ls -l /proc/self/fd"
<Infinisil> Hmm...
<Infinisil> I'd need to change nix itself then
<clever> why?
<clever> asking for the pw on stdin?
<Infinisil> Yeah
<clever> that would be an impurity, and nix doesnt allow them
indi_ has quit [(Remote host closed the connection)]
<clever> the only way you can make it work is by turning off the sandbox and just reading from /home/foo/bar, but the password will still be in the .hex in $out
<clever> so your never going to have it secure
<Infinisil> I'm trying to think of how a function that gets a password and returns an encrypted derivation
indi_ has joined #nixos
<Infinisil> could work
<Infinisil> Probably needs to be builtin
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
ambro718 has joined #nixos
marsel has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 3 new commits to master: https://git.io/vQlsE
<NixOS_GitHub> nixpkgs/master da012dd Profpatsch: adbfs-rootless: init at 2016-10-02
<NixOS_GitHub> nixpkgs/master fa68544 Jörg Thalheim: adbfs-rootless: limit platform to linux
<NixOS_GitHub> nixpkgs/master e5eccf3 Jörg Thalheim: Merge pull request #26949 from Profpatsch/adbfs-rootless...
NixOS_GitHub has left #nixos []
indi__ has joined #nixos
jtojnar has joined #nixos
indi_ has quit [(Ping timeout: 240 seconds)]
indi__ has quit [(Ping timeout: 246 seconds)]
Thra11 has quit [(Remote host closed the connection)]
Thra11 has joined #nixos
thc202 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] kamilchm opened pull request #26950: go2nix: 1.2.0 -> 1.2.1 (master...go2nix) https://git.io/vQlGk
NixOS_GitHub has left #nixos []
zeus_ has quit [(Remote host closed the connection)]
zeus_ has joined #nixos
tsmeets has quit [(Quit: leaving)]
Wizek has joined #nixos
Wizek_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vQlGu
<NixOS_GitHub> nixpkgs/master 8461e31 Johannes Frankenau: mergerfs: 2.16.1 -> 2.22.1
<NixOS_GitHub> nixpkgs/master d0a6e05 Jörg Thalheim: Merge pull request #26929 from jfrankenau/mergerfs-2.22.1...
NixOS_GitHub has left #nixos []
<Infinisil> Well, private files is still being discussed: https://github.com/NixOS/nix/issues/8 , was one of the first issues every
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #26950: go2nix: 1.2.0 -> 1.2.1 (master...go2nix) https://git.io/vQlGk
NixOS_GitHub has left #nixos []
slyfox has quit [(Quit: :))]
zeus_ has quit [(Ping timeout: 246 seconds)]
<Infinisil> And here's an RFC: https://github.com/NixOS/rfcs/pull/5
Thra11 has quit [(Read error: Connection reset by peer)]
Thra11 has joined #nixos
slyfox has joined #nixos
raunov has joined #nixos
<raunov> any hints how to set permanent env variable while building/installing package ?
civodul has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix opened pull request #26952: screen: 4.5.1 -> 4.6.0 (master...update_screen) https://git.io/vQlnq
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] np opened pull request #26953: jd: init at 0.3.1 (master...jd) https://git.io/vQlnm
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jfrankenau opened pull request #26954: buku: 2.9 -> 3.0 (master...buku-3.0) https://git.io/vQlnl
NixOS_GitHub has left #nixos []
<raunov> tilpner: i'm trying out your code to write dotfiles to root homedir
<raunov> somewhy getting: cannot coerce a set to a string
<raunov> any ideas ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jfrankenau opened pull request #26955: plowshare: 1.1.0 -> 2.1.6 (master...plowshare-2.1.6) https://git.io/vQlcY
NixOS_GitHub has left #nixos []
jensens has joined #nixos
MP2E has quit [(Quit: leaving)]
ambro718 has quit [(Ping timeout: 246 seconds)]
eacameron has joined #nixos
<seanparsons_> Is the cron package broken for anyone else on 17.03? (just did a rebuild with --update and it blew out)
Thra11 has quit [(Read error: Connection reset by peer)]
seanparsons_ is now known as seanparsons
goibhniu has joined #nixos
Thra11 has joined #nixos
eacameron has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jfrankenau opened pull request #26956: neomutt: 20170602 -> 20170609 (master...neomutt-20170609) https://git.io/vQlWU
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] np opened pull request #26958: electrum-{ltc,dash}: use protobuf3_2 (master...electrum-ltc-dash-protobuf3_2) https://git.io/vQlWn
NixOS_GitHub has left #nixos []
pietranera has joined #nixos
jbgi has quit [(Quit: WeeChat 1.7)]
ertes has quit [(Ping timeout: 260 seconds)]
douglass has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jfrankenau opened pull request #26959: beets: 1.4.3 -> 1.4.5 (master...beets-1.4.5) https://git.io/vQllX
NixOS_GitHub has left #nixos []
m0rphism has joined #nixos
Thra11 has quit [(Remote host closed the connection)]
Thra11 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] np opened pull request #26960: electrum-ltc: 2.6.4.2 -> 2.8.3.5 (master...electrum-ltc-beta) https://git.io/vQl8N
NixOS_GitHub has left #nixos []
<douglass> Hi all. What is the recommended way to to make an include directory of C++ header files available inside an environment that is created with nix-shell? The library is specified under buildInputs inside the environment's nix expression. Currently I am setting the CPATH environment variable to point toward the include directory inside shellHook, but I am wondering whether this is the proper way to do this with Nix.
roconnor has quit [(Ping timeout: 276 seconds)]
mudri has joined #nixos
ThatDocsLady has joined #nixos
mmmrrr has joined #nixos
mmmrrr has quit [(Remote host closed the connection)]
Neo-- has joined #nixos
turion has joined #nixos
ertes-w has joined #nixos
<turion> Can I configure nixos to have a separate boot partition?
<turion> i.e. a boot partition, a / partition and a /home partition?
<turion> (Basically, I already have those partitions and don't know how to change them, so I'd rather reuse them)
<raunov> turion: check /etx/nixos/hardware-configuration.nix there should be definitions for partitions
<taeradan_> turion: if you have not yet installed nixos, the easiest way is to mount them juste after mounting /mnt in the installation process, then nixos-generate-config will include them in hardware-configuration.nix
<turion> I have it installed on a tiny harddrive and want to install it on my bigger one (in order to make it the builtin
Thra11 has quit [(Read error: Connection reset by peer)]
taeradan_ is now known as taeradan
Thra11 has joined #nixos
<turion> So I'm thinking of just keeping the config and changing the partition definitions slightly
orivej has quit [(Ping timeout: 260 seconds)]
<turion> Well I guess what I was proposing wasn't that clever... from my former Gentoo installation, I have a 1GB boot partition containing just kernels, a 100 GB system partition and a 899 GB home partition
<taeradan> I think that actuelly if you mount the partitions within your installed NixOS and do nixos-generate-config, it will also include the mountpoints in hardware-configuration.nix (juste make a backup of this file before, just in case)
<turion> ah ok
mmmrrr has joined #nixos
<taeradan> what I recommend (and do on all my NixOS machines) is to make/etc/nixos a Git repo
<taeradan> this way you can play with such commands without taking too much risk
orivej has joined #nixos
<turion> taeradan, but then root commits to that repo? So it's an offline repo? (Or is it safe to use git online as root?)
snikkers has joined #nixos
<adisbladis> taeradan: I do the same with nixpkgs as a submodule, so all my system states are version pinned
<adisbladis> If you revert to a commit you get that same nixpkgs commit sha too :>
<adisbladis> turion: It doesn't matter which user who commits. Just push to a remote as another user
<turion> adisbladis: Ah, I didn't know that's possible. I thought if you push you have to have write access
<turion> (to the local repo)
<taeradan> turion: just add your root public ssh key to the git repo you are using and set the comiter's name in the local repo, and from the external world only this name will appear
<turion> taeradan, yes, I was just wondering whether it's unsafe to use git online as root, in the same way as it's not recommended to use browsers and so on as root
<adisbladis> turion: I would not recommend running any internet connected thing as root if you can avoid it
<adisbladis> turion: Just do "sudo git commit ..." and then "git push"
<turion> Yes, that sounds good
<goibhniu> you can also symlink /etc/nixos/configuration.nix to e.g. ~/.config/nixos/configuration.nix
<turion> Yes, that feels even better...
JagaJaga has joined #nixos
<goibhniu> nix will figure out paths relative to that too ... which is nice
snikkers has quit [(Quit: Lost terminal)]
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
<taeradan> or chown the whole directory if you have multiple files (I have usually 3 or 4 files + 2 git submodules containing templates that I share accross my computers)
<goibhniu> e.g. if you import ~/.config/nixos/base.nix ... you don't need to also symlink it to /etc/nixos/base.nix ... if that makes sense
Thra11 has quit [(Remote host closed the connection)]
Thra11 has joined #nixos
mpcsh has joined #nixos
aminechikhaoui has joined #nixos
aminechikhaoui has quit [(Client Quit)]
aminechikhaoui has joined #nixos
<turion> Configuring nixos seems like a great pastime ;)
simukis has joined #nixos
<taeradan> you're right, but the result can be great (like having all my computers sharing the same configuration, with some flags to activate specific parts like multimedia/development/etc...)
<turion> Yes, absolutely
<taeradan> add some Makefile in /etc/nixos to automagically update git submodules and channels, apply the changes, and run the garbage collector, and it becomes smooth
<turion> The thought of just putting my current config there and just running nixos-install to get the same system again rewards me for so many hours of painfully trying to remember how I set up the last Arch/Gentoo/whatever installation
<taeradan> my update process : 'cd /etc/nixos && sudo make'
<adisbladis> I would skip garbage collecting too often :)
<adisbladis> I do "nix-env -p ..." quite a bit
<adisbladis> So not collecting the cache is useful
<turion> As long as the disk space allows it there is no problem with leaving the local cache around, right?
<adisbladis> turion: Nope, you can leave it around
<taeradan> I started using gc a lot after my hard drive became full often during NixOS updates
<adisbladis> taeradan: How much disk space do you have?
<taeradan> 80GB
<adisbladis> Ah, that's understandable then
<taeradan> (/home is in another partition)
<taeradan> so basically 80GB is only for /nix/store and some logs in /var
apeyroux has quit [(Quit: Lost terminal)]
apeyroux has joined #nixos
<taeradan> but when a critical system lib is updated, as a huge number of packages are recompiled, the whole update is often big
mudri has quit [(Ping timeout: 260 seconds)]
GetalMear has joined #nixos
<GetalMear> Question: Where is pkgs.python27Packages.uritemplate defined? I can only see it in propagatedBuildInputs of various other packages, but it's apparently defined nowhere.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 239 opened pull request #26962: opera: 45.0.2552.812 -> 45.0.2552.898 (master...patch-1) https://git.io/vQl2m
NixOS_GitHub has left #nixos []
eacameron has joined #nixos
vaibhavsagar has quit [(Ping timeout: 260 seconds)]
FRidh has joined #nixos
<FRidh> GetalMear: git grep uritemplate
Thra11 has quit [(Remote host closed the connection)]
eacameron has quit [(Ping timeout: 276 seconds)]
Thra11 has joined #nixos
JagaJaga has quit [(Ping timeout: 240 seconds)]
Acou_Bass has quit [(Ping timeout: 240 seconds)]
erictapen has joined #nixos
<GetalMear> FRidh: Does using the GitHub search count? Because that turned up nothing but commits which have since been superseded.
<turion> I'm not sure how to set boot.loader.grub.device. Right now, it's set to /dev/sda, where my current internal disk is. The new disk, where I want to install nixos, is external, so right now it's /dev/sdb. But when I reboot, I want to make the new disk the internal one, and then it'll be /dev/sdb
<turion> Sorry, then it'll be /dev/sda!
<turion> So as soon as I boot into the new system, the config is incorrect
<turion> Is this a problem or should I just put /dev/sdb and change it after the first boot?
Thra11 has quit [(Remote host closed the connection)]
Thra11 has joined #nixos
Thra11 has quit [(Read error: Connection reset by peer)]
<FRidh> GetalMear: GH search isn't really good actually
Thra11 has joined #nixos
erictapen has quit [(Ping timeout: 246 seconds)]
<adisbladis> turion: Just change it to /dev/disk/by-path/ ??
<adisbladis> Or something like that which will be persistent
<adisbladis> turion: by-id is probably better
<pietranera> Hello, I would like to install python36packages.virtualenv but the buld fails because the test of some build inputs fail. Is there a way to tell nix-env to install a package but not run the tests (from the command line)?
<turion> adisbladis: That would be good, but I think both by-path and by-id change when you connect differently
<adisbladis> turion: by-id won't
<adisbladis> turion: Mine is ata-INTEL_SSDSC2BW480A3L_CVCV316405HA480DGN for example, which is disk model/serial number
noobly has quit [(Ping timeout: 260 seconds)]
<turion> adisbladis: But the "ata" bit will change
<turion> For example, my external drive starts with usb-Mass-Storage-Device instead of ata
<adisbladis> turion: Iirc that's an identifier the disk tells the OS
<adisbladis> turion: For example my external usb disk is also ata-...
<turion> Hm strange
GetalMear has quit [(Ping timeout: 260 seconds)]
<adisbladis> turion: Maybe your usb controller masking which disk it actually is?
ertesx-w has joined #nixos
siel has quit [(Ping timeout: 258 seconds)]
siel has joined #nixos
<adisbladis> turion: Anyway. You should be able to use /dev/sdb, install grub to that disk, boot up nix and change the boot.loader.grub.device line
<adisbladis> turion: That line controls what "grub-install" does
<turion> adisbladis: Ah thanks, I guess that explains it: by-id includes the controller subsystem, in my case usb mass storage != ata
ertes-w has quit [(Read error: Connection reset by peer)]
ertesx-w is now known as ertes-w
magnetophon1 has quit [(Ping timeout: 276 seconds)]
<turion> ok, great! I'll do it like that then
douglass has quit [(Quit: ERC Version 5.3 (IRC client for Emacs))]
erictapen has joined #nixos
turion has quit [(Read error: Connection reset by peer)]
cpennington has joined #nixos
<mmmrrr> On NixOS (17.03), using gnome3/gdm, I cannot configure mysql.service. When it is enabled the system freezes when the display manager should start up after boot. Has anyone an idea on how to get around this?
Neo-- has quit [(Remote host closed the connection)]
Neo-- has joined #nixos
<tilpner> raunov - Still having a problem with that?
<raunov> yep
<raunov> tilpner:
<tilpner> raunov - What's the error messages, and could you paste the relevant part of your configuration.nix again? (With a few extra lines below and above the relevant section)
<raunov> i ain't doing it in configuration.nix, im trying to use it in package definition
<raunov> tilpner: this is the part from package definition default.nix: https://pastebin.com/ZJnnE4kk
<raunov> and error is: somewhy getting: cannot coerce a set to a string
<tilpner> Oh, but dotfiles-activation is meant to be used as part of the activation script! Are you fine with having to call an extra command that will link your file to the correct place, every time you install/update that package?
k0001 has joined #nixos
iyzsong has joined #nixos
turion has joined #nixos
<gchristensen> raunov: why do you have a string inside a nix expr inside a string?
peacememories has joined #nixos
<gchristensen> specifically ${''
<raunov> tilpner: ok, makes sense to move it to configuration.nix
<raunov> gchristensen: had issues escaping curly brackets
k0001 has quit [(Ping timeout: 240 seconds)]
<raunov> as i'm writing terraform config which has them in it
<gchristensen> sounds like you probably confused an error, because curly brackets can be in strings no problem
<raunov> weird, cause i had issues with them when using variables ${}
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jfrankenau opened pull request #26963: vaapiIntelG45H264: init at 1.8.2 (master...vaapiIntelG45H264) https://git.io/vQl6E
NixOS_GitHub has left #nixos []
<gchristensen> anyway, the problem is: I believe in /dotfiles-activation.nix
<gchristensen> because that is the only place you're passing a set somewhere
magnetophon1 has joined #nixos
<gchristensen> and you should definitely remove the ${'' / ''} because it is too confusing and isn't needed
<raunov> gchristensen: okay, well i got it from tilpner and it was working for him used in configuration.nix
<gchristensen> which part?
<Infinisil> Damnit, I made a simple PR to a python project but CI failed but all but the latest version, now I gotta fix it but I have no idea about the python environment
<tilpner> No, I didn't give you the string inside string part
<manveru> i have this little snippet to parse .env files (with or without export and "/' quotes)... is there anything more robust builtin already? https://www.irccloud.com/pastebin/6QoXFDqA/dotenv2nix.nix
mudri has joined #nixos
<raunov> i'm talking about the dot-actication.nix
<tilpner> And I have another dotfiles-*.nix to be used outside of configuration.nix, but it won't be called automatically
<raunov> i'm talking about the dotfiles-activation.nix
<raunov> haven't modified it
<tilpner> But you use it outside of its intended purpose
<raunov> yep, thought maybe it would work
<raunov> that's why im asking for additonal help :)
<raunov> kind of a beginner in nix exp
<tilpner> Can you show the whole file that the snippet is from?
Thra11 has quit [(Read error: Connection reset by peer)]
Thra11 has joined #nixos
<raunov> here you go tilpner : https://pastebin.com/CeEx7acv
mudri has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #26964: lumina: 1.2.0-p1 -> 1.3.0 (master...upd.lumina) https://git.io/vQli4
NixOS_GitHub has left #nixos []
<Infinisil> manveru: Regarding getting info of a derivation
<tilpner> raunov - You didn't answer the question. Are you fine with having to call an extra command that will link your file to the correct place, every time you install/update that package? It's fine to do that from a shell alias or your shellrc
<Infinisil> manveru: You can use nix-store -q --binding <derivation attribute> <derivation path>
<raunov> in a perfect situation it would nice so the .terraformrc would be correctly created with package install
<raunov> or from the configuration.nix
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<raunov> manual extra cmd won't be any good if ur referring to it
<ertes-w> if a python package doesn't exist in nixpkgs, is writing an expression my only option? is there something like haskellPackages for python?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rbvermaa pushed 1 new commit to release-17.03: https://git.io/vQlPt
<NixOS_GitHub> nixpkgs/release-17.03 26d750e Rob Vermaas: Make cron build.
NixOS_GitHub has left #nixos []
<Infinisil> ertes-w: nix-env -iA nixos.pypi2nix
JagaJaga has joined #nixos
mmmrrr has quit [(Ping timeout: 268 seconds)]
<tilpner> raunov - The common solution to this (a package requiring extra config) is a NixOS module. It can't be used on non-NixOS systems, but it would it would install the package and activationScript by just putting programs.terraform.enable = true; in your configuration.ni
mkoenig has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/ae953c22ed (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
andymandias has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
astsmtl has quit [(Ping timeout: 258 seconds)]
<Infinisil> manveru: Ohhh sorry, I read .drv files
<manveru> :)
andymandias has joined #nixos
<Infinisil> manveru: But wouldn't it be better to go from nix -> .env?
<Infinisil> Or is that not possible in your case?
<manveru> not really, unfortunately
<tilpner> raunov - But really the best solution would be to make that .terraformrc unnecessary. Patch the default config, create a wrapper that passes a command-line argument pointing to a /nix/store config, etc.
<ertes-w> i have trouble figuring out the fetchurl URL i should use for this package: https://pypi.python.org/pypi/py-zabbix/1.1.3
<ertes-w> this doesn't seem to work: mirror://pypi/p/py-zabbix/py_zabbix-1.1.3-py2.py3-none-any.whl
astsmtl has joined #nixos
astsmtl has quit [(Changing host)]
astsmtl has joined #nixos
<ertes-w> (does nix-prefetch-url even support mirror URLs?)
k0001 has joined #nixos
aanderse_ has quit [(Read error: Connection reset by peer)]
<Infinisil> ertes-w: Does that url come from pypi2nix?
johann__ has joined #nixos
mudri has joined #nixos
<ertes-w> Infinisil: no, pypi2nix gets confused entirely… it somehow points to a 1.1.0 version
<ertes-w> using a direct link, no mirror
<Infinisil> ertes-w: Well 1.1.0 doesn't seem too bad
<ertes-w> it's still not 1.1.3
<ertes-w> nevermind, i'm not sure anymore whether i want to use that package
arjen-jonathan has joined #nixos
<raunov> tilpner: okay
<raunov> so basically i should modify terraform package to build that plugin and then wrapit to terraform binary
cpennington has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #26965: pythonPackages.py3status: 3.0 -> 3.5 (master...py3status) https://git.io/vQlMh
NixOS_GitHub has left #nixos []
<turion> I just finished installing. When entering the root password, I mistyped. How can I enter the correct root password without running the whole installation again? (I know, the files won't be copied again, but it still needs to completely evaluate the config, which takes a long time on my crappy machine)
ThatDocsLady is now known as ThatDocsLady_afk
<raunov> for the last thing, is there a way how to search store for a file ?
<tilpner> Something like $ chroot /mnt; passwd root could work
eacameron has joined #nixos
<tilpner> Unless you made that immutable, maybe
<tilpner> raunov - I always just use "find"
JagaJaga has quit [(Ping timeout: 246 seconds)]
<raunov> tilpner: i mean in package definition
reinzelmann has quit [(Quit: Leaving)]
<raunov> something similar like ${lib.getLib
erictapen has quit [(Ping timeout: 260 seconds)]
<tilpner> Uh oh, that sounds like a workaround. What do you want to do?
Thra11 has quit [(Remote host closed the connection)]
Thra11 has joined #nixos
eacameron has quit [(Ping timeout: 276 seconds)]
<raunov> ok, nvm will try another way :)
Neo-- has quit [(Remote host closed the connection)]
<raunov> thought there's some easy way for that
Neo-- has joined #nixos
<FRidh> ertes-w: you can't always use the "url api" with .whl
<FRidh> its not supported by pypi
<ertes-w> yeah, i found a different package that does what i need, which comes with a regular .tar.gz
<ertes-w> can't say that i know what i'm doing, but it works
<turion> tilpner: Ah good idea, but it says "chroot: der Befehl „/run/current-system/sw/bin/bash“ konnte nicht ausgeführt werden: No such file or directory"
<turion> Wait... is that a bug in the chroot config maybe?
<tilpner> Uhh, I don't know. It's probably easiest to just run nixos-install again, that way you don't need to figure out why this doesn't work
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 3 new commits to master: https://git.io/vQlS9
<NixOS_GitHub> nixpkgs/master 6b35f22 Tim Steinbach: linux: 4.4.74 -> 4.4.75
<NixOS_GitHub> nixpkgs/master d1aff8d Tim Steinbach: linux: 4.9.34 -> 4.9.35...
<NixOS_GitHub> nixpkgs/master 37bc494 Tim Steinbach: linux: 4.11.7 -> 4.11.8
NixOS_GitHub has left #nixos []
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/26d750ebbe (from 61 minutes ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
nix-gsc-io`bot has quit [(Client Quit)]
kthnnlg has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 4 new commits to release-17.03: https://git.io/vQl9q
<NixOS_GitHub> nixpkgs/release-17.03 94ed59f Tim Steinbach: linux: 4.4.73 -> 4.4.74...
<NixOS_GitHub> nixpkgs/release-17.03 c88fa5b Tim Steinbach: linux: 4.4.74 -> 4.4.75...
<NixOS_GitHub> nixpkgs/release-17.03 a03777e Tim Steinbach: linux: 4.9.34 -> 4.9.35...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus closed pull request #26935: skopeo: 0.1.18 -> 0.1.22 (master...upstream-skopeo) https://git.io/vQCdg
NixOS_GitHub has left #nixos []
turion has left #nixos []
lewo has quit [(Quit: ZNC - http://znc.in)]
lewo has joined #nixos
sary has quit [(Remote host closed the connection)]
Thra11 has quit [(Remote host closed the connection)]
Thra11 has joined #nixos
sary has joined #nixos
magnetophon1 has quit [(Ping timeout: 240 seconds)]
jensens has quit [(Ping timeout: 240 seconds)]
Itkovian_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] roberth opened pull request #26966: elm-github-install: init at 1.0.1 (master...elm-github-install) https://git.io/vQlQp
NixOS_GitHub has left #nixos []
peacememories has joined #nixos
Itkovian has quit [(Ping timeout: 240 seconds)]
peacememories has quit [(Ping timeout: 260 seconds)]
adfaure has joined #nixos
<adfaure> Hello everyone, I am trying to use nix-env behind a proxy. But settings the variables *_proxy does not work. Someone can someone help me please ? Thanks!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edolstra pushed 1 new commit to master: https://git.io/vQl7D
<NixOS_GitHub> nixpkgs/master 6feedb4 Eelco Dolstra: Forks::Super: Build on Hydra
NixOS_GitHub has left #nixos []
freusque has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edolstra pushed 1 new commit to release-17.03: https://git.io/vQl7A
<NixOS_GitHub> nixpkgs/release-17.03 fc3f38d Eelco Dolstra: Forks::Super: Build on Hydra...
NixOS_GitHub has left #nixos []
freusque has joined #nixos
raunov has quit [(Ping timeout: 260 seconds)]
<S0rin> Hey, mailutils seems broken on master does anyone seens that problem ?
roconnor has joined #nixos
<S0rin> I would like to run on 17-03 stable but some version of packages are not up enought so I run master but it break regulary
hke has quit [(Ping timeout: 260 seconds)]
Thra11 has quit [(Remote host closed the connection)]
Thra11 has joined #nixos
freusque has quit [(Ping timeout: 246 seconds)]
turion has joined #nixos
<turion> Is there a guide anywhere how to set up ecryptfs for nixos?
magnetophon1 has joined #nixos
<Infinisil> S0rin: I'm trying to compile it now
adfaure has quit [(Ping timeout: 260 seconds)]
<S0rin> Infinisil: I've did it several time this morning and coreutils fails with -chown: invalid user: 'root:mail'
<S0rin> Here what I get http://dpaste.com/1NHFMAX
<S0rin> instead of reverting mabe it is better to try the other way and override the recipe in a overlay
<Infinisil> S0rin: Yeah I saw that too, it happens in the check phase, so I think it should work if you do `doCheck = false`
<Infinisil> Doing that now
<S0rin> I am coming from gentoo where user overlay are mostly trivial and encouraged and I feel that is is my main grief in nixos
<Infinisil> S0rin: What's the problem?
<S0rin> Infinisil: Oh I'll try it now
<S0rin> Infinisil: I really like to be able to bump/fix/change any package of the distro in a user overlay, and I did not figure it out in nixos
orivej has quit [(Remote host closed the connection)]
<Infinisil> Oh and the mail user thing is in the build phase, doesn't work, maybe you could try adding that user, make root part of that, then relog and try again with sudo
zarkone` has quit [(Ping timeout: 276 seconds)]
<Infinisil> S0rin: You totally can: http://nixos.org/nixpkgs/manual/#sec-overrides
orivej has joined #nixos
<S0rin> Infinisil: Thank you I will look into it
<Infinisil> It's pretty easy
turion has quit [(Remote host closed the connection)]
<Infinisil> S0rin: See https://github.com/NixOS/nixpkgs/issues/26682 it's a know issue with mailutils
Turion has joined #nixos
<Turion> ecryptfs correctly configured as a one-liner. nixos rules.
earldouglas has joined #nixos
<Infinisil> Turion: gist?
<Turion> Infinisil, I'll write it in the user's wiki
<S0rin> Infinisil: Thank you
<Infinisil> Turion: Can you just put it here? I'm interested
<Turion> Well, the thing I don't know is how to set up ecryptfs under nixos. I already had the home partition from gentoo
<Infinisil> Well in addition to the wiki
<Turion> it's just config.security.pam.enableEcryptfs = true;
Rotaerk has quit [(Quit: Leaving)]
<Turion> I should have been more specific, I wanted to configure the automatic mounting upon login
<Infinisil> OHhhhhh
<Infinisil> The whole time i was searching for eNcryptfs and sure as hell couldn't find a single thing
Thra11 has quit [(Remote host closed the connection)]
Thra11 has joined #nixos
<Infinisil> Who the hell thought it would be a good idea to just drop a letter
<Turion> Infinisil: Oh no :/ well there you go, problem solved..?
<Infinisil> Yes
<Turion> Wohoo, first time I help someone something with nixos :D
<Infinisil> :P
<Turion> Ok, that's enough good deeds for now, see you later
<Infinisil> See ya
Neo-- has quit [(Remote host closed the connection)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/9e5a13f6f1 (from 77 minutes ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
nix-gsc-io`bot has quit [(Client Quit)]
Neo-- has joined #nixos
froglegstew has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
snikkers has joined #nixos
freusque has joined #nixos
eacameron has joined #nixos
<gchristensen> distro goals: don't do this: https://twitter.com/astarrb/status/880170781841514496
<ikwildrpepper> gchristensen: we should add that as an april fools joke
<gchristensen> >.> "how to alienate all your users in one easy step"
<Infinisil> gchristensen: Lol
<ikwildrpepper> gchristensen: or to be nicer to your users, add an opt-in option for it :D
<Infinisil> What do you think about a user counter? Like a very simple script that tells nixos.org once a week if the system has been used during that time
<gchristensen> `debconf-set show-me-ads-please true` (or whatever their syntax is)
<LnL> gchristensen: euh
<LnL> who thought that was a good idea
<domenkozar> we can create a non profit for that
<domenkozar> and feed our children with revenue
<makefu> or an opt-out addon for chrome and firefox which rewrites amazon affiliate links
<Infinisil> but only flash ones
freusque has quit [(Ping timeout: 240 seconds)]
<domenkozar> and round robin algorithm for top 100 contributors?
<domenkozar> sounds like that bitcoin commit website, but better
<makefu> or cross-finance typed nix
<Infinisil> Is it possible to have network access in the checkPhase?
<domenkozar> nope
<gchristensen> makefu: we haven't gotten cross-compilation quite right, let's get that before cross-finance ;)
<Infinisil> domenkozar: :(
<gchristensen> Infinisil: it is if you're a fixed output derivation, like fetchurl ;)
<gchristensen> I say, unhelpfully answering the question
<Infinisil> gchristensen: Well it's a test that fetches google.com
eacameron has quit [(Remote host closed the connection)]
<Infinisil> So I guess it could work somehow
<Infinisil> But not worth the effort tbh
eacameron has joined #nixos
<Infinisil> I'm waiting for this to be merged: https://github.com/NixOS/nixpkgs/pull/26954
<Infinisil> I'll then make my PR which adds tests and all shell completions
ThatDocsLady_afk is now known as ThatDocsLady
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar pushed 2 new commits to master: https://git.io/vQlh5
<NixOS_GitHub> nixpkgs/master 3107f33 Johannes Frankenau: buku: 2.9 -> 3.0
<NixOS_GitHub> nixpkgs/master 87cfea9 Domen Kožar: Merge pull request #26954 from jfrankenau/buku-3.0...
NixOS_GitHub has left #nixos []
freusque has joined #nixos
<Infinisil> Heh, thanks :)
Thra11 has quit [(Read error: Connection reset by peer)]
Thra11 has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
mudri has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] florianjacob opened pull request #26967: Fix systemd resolved nsswitch loading (master...fix-systemd-resolved-nsswitch-loading) https://git.io/vQ8eP
NixOS_GitHub has left #nixos []
erasmas has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Infinisil opened pull request #26968: buku: Enabled tests and added shell completion (master...buku-tests-and-completions) https://git.io/vQ8eA
NixOS_GitHub has left #nixos []
<Infinisil> ^
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/fc3f38d67f (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
nix-gsc-io`bot has quit [(Client Quit)]
<Infinisil> I mean Travis is nice, but holy hell can't we come up with something more efficient??
orivej has quit [(Ping timeout: 276 seconds)]
ryanartecona has joined #nixos
eacameron has joined #nixos
bbarker has quit [(Ping timeout: 255 seconds)]
Thra11 has quit [(Remote host closed the connection)]
Thra11 has joined #nixos
bbarker has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
orivej has joined #nixos
erictapen has joined #nixos
<Infinisil> Well okay, some of it is necessary to make it deterministic I guess
<dash> Infinisil: travis is free, how much more efficient could you get tha nthat
<Infinisil> dash: Well, that's one way to see it
<Infinisil> Is the mention bot broken? Didn't tag anybody on my PR
sigmundv__ has joined #nixos
alfie has quit [(Remote host closed the connection)]
orivej has quit [(Ping timeout: 276 seconds)]
freusque has quit [(Quit: WeeChat 1.7.1)]
cpennington has joined #nixos
Thra11 has quit [(Ping timeout: 260 seconds)]
alfie has joined #nixos
justelex_ has joined #nixos
MoreTea has joined #nixos
<gchristensen> I'm going to merge my docs change in a few minutes if anyone wants to take a look first: https://github.com/NixOS/nixpkgs/pull/26940 (cc niksnut)
<niksnut> gchristensen: the reason for not using jing is that it pulls in the jre
<niksnut> making the nixos system closure dependent on the JDK is very undesirable
<gchristensen> even though nixpkgs' docs use jing?
<gchristensen> oh I see
<gchristensen> maybe a manual_debug output that uses jing for validation
<MoreTea> is kamilchm from github here as well?
<MoreTea> I would like to package `godep` with go2nix
<MoreTea> this go dep https://github.com/golang/dep, not the one that is already in nixpkgs
<niksnut> gchristensen: yes that would be good
<gchristensen> niksnut: beyond jing, the PR looks good to you?
detran has joined #nixos
Itkovian_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<niksnut> what does it do other than xmllint -> jing?
Thra11 has joined #nixos
<gchristensen> it performs the xinclude step in a discrete step, producing a single monolithic .xml file that is then used to build the results
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix opened pull request #26969: libgcrypt: 1.7.7 -> 1.7.8 [For CVE-2017-7526] (master...update_libgcrypt) https://git.io/vQ8Ii
NixOS_GitHub has left #nixos []
<gchristensen> it speeds up the rest of the steps, which don't have to do it again, and makes more sensible error messages from xmllint (the line numbers make sense)
<schoppenhauer> is there any package that provides some full unicode font that also does emojis and stuff?
<niksnut> gchristensen: sounds good
<gchristensen> cool, I'll remove jing, and it'll be a big step already towards sensible errors :) thank you!
<gchristensen> and great catch on it making adding jdk to the system closure
mmmrrr has joined #nixos
Wizek_ has quit [(Ping timeout: 240 seconds)]
Thra11 has quit [(Ping timeout: 268 seconds)]
bennofs has joined #nixos
spacefrogg has quit [(Quit: Gone.)]
<mmmrrr> I am trying to build a nix expression for the wire-desktop messanger (https://www.wire.com). I figured it would be best to use the slack expression as a basis. Now everything is installing fine with, I am linking the executable to the bin/ directory, but when I issue the command I always get a "command not found". My question is: why? :) The current state looks like this: https://pastebin.com/KF76uSE1
earldouglas has quit [(Ping timeout: 240 seconds)]
bennofs has quit [(Ping timeout: 246 seconds)]
earldouglas has joined #nixos
bennofs has joined #nixos
DrWaste has quit [(Quit: Run away!)]
iyzsong has quit [(Quit: bye.)]
spacefrogg has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 3 new commits to master: https://git.io/vQ8q5
<NixOS_GitHub> nixpkgs/master 78377ae Peter Simons: haskell: fix builds of hledger-iadd, opencv-extra, and logging-facade-syslog
<NixOS_GitHub> nixpkgs/master 46fe4bd Peter Simons: ghc-syb-utils: disable test suite for GHC 8.x or later...
<NixOS_GitHub> nixpkgs/master ad6c235 Peter Simons: hackage-packages.nix: automatic Haskell package set update...
NixOS_GitHub has left #nixos []
magnetophon1 has quit [(Ping timeout: 255 seconds)]
digitus has joined #nixos
<Infinisil> I just wondered why the variable sha236 wasn't declared...
nh2 has joined #nixos
goibhniu has quit [(Ping timeout: 240 seconds)]
bennofs has quit [(Ping timeout: 276 seconds)]
bennofs has joined #nixos
Neo-- has quit [(Remote host closed the connection)]
Neo-- has joined #nixos
sigmundv__ has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus closed pull request #26969: libgcrypt: 1.7.7 -> 1.7.8 [For CVE-2017-7526] (master...update_libgcrypt) https://git.io/vQ8Ii
NixOS_GitHub has left #nixos []
nevermind has joined #nixos
bugworm has joined #nixos
bugworm has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to release-17.03: https://git.io/vQ8OD
<NixOS_GitHub> nixpkgs/release-17.03 2e983f1 Lancelot SIX: libgcrypt: 1.7.7 -> 1.7.8...
NixOS_GitHub has left #nixos []
magnetophon1 has joined #nixos
<dtzWill> mmmrrr: probably need to use patchelf to set the interpreter on the binaries
<dtzWill> mmmrrr: this looks like a reasonable quick example/intro of how to do this: https://github.com/nixos-users/wiki/wiki/FAQ#ive-downloaded-a-binary-but-i-cant-run-it-what-can-i-do
<dtzWill> for just the "command-not-found" that's actually what happens when trying to execute an ELF program that specifies an interpreter not on your system, definitely a bit cryptic at first
<gchristensen> niksnut: I wasn't sure about adding it to release.nix since it'll build by default, so I made a debugging notice: https://github.com/NixOS/nixpkgs/pull/26940#issuecomment-312013425 do you hate this? should I add the manual-debug output anyway, even though it'll always be built?
<gchristensen> the manual's default.nix is very inconvenient to build on its own
<mmmrrr> dtzWill: ah ok - I'll try that :)
earldoug1as has joined #nixos
aneeshusa has joined #nixos
snikkers has quit [(Ping timeout: 240 seconds)]
earldouglas has quit [(Ping timeout: 258 seconds)]
zeus_ has joined #nixos
<mmmrrr> dtzWill: yey thanks a bunch! It works now! :) Thanks for the pointer.
<dtzWill> ٩(^ᴗ^)۶
<dtzWill> welcome! :)
magnetophon1 has quit [(Ping timeout: 255 seconds)]
hotfuzz has quit [(Quit: WeeChat 1.7.1)]
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
ris has joined #nixos
zeus_ has quit [(Read error: Connection reset by peer)]
zeus_ has joined #nixos
<ris> hello humans, how would i go about doing an `args@{...}` pattern which included the applied argument defaults to `args`?
civodul has quit [(Remote host closed the connection)]
earldoug1as is now known as earldouglas
marsel has quit [(Ping timeout: 260 seconds)]
<bennofs> ris: i don't think there is a way to do that
<ris> ohhhhhhhhhhhhhh
<sphalerite> ris: I'm not sure there's a pre-built thing for that unfortunately. You could simply not specify the defaults and instead do ` args: {default1 = value1; ...} // args`
<ris> yeah ... just ... ugly.
<sphalerite> use a let-binding to give that a name and use that from there
<ris> maybe
<sphalerite> indeed
<ris> thanks
<nixos-users-wiki> "eCryptfs" created by turion https://git.io/vQ8ZR
<sphalerite> the advantage of how it works, I suppose, is that you can tell apart cases where it fell back to the default from cases where the default was explicitly passed in. Not sure if that's actually helpful in any way though
<nixos-users-wiki> "eCryptfs" edited by turion https://git.io/vQ8ZV
<bennofs> when I run a script on nixos that makes repeatedly makes 100 parallel connections to a server i quickly get to a point where even ping does not work anymore. Is there any way to improve this?
ambro718 has joined #nixos
eacameron has joined #nixos
mmmrrr has quit [(Remote host closed the connection)]
bennofs has quit [(Quit: WeeChat 1.8)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQ8n6
<NixOS_GitHub> nixpkgs/master 10fe275 Vincent Laporte: ocamlPackages.uutf: 1.0.0 -> 1.0.1
NixOS_GitHub has left #nixos []
eacameron has quit [(Ping timeout: 255 seconds)]
mmmrrr has joined #nixos
jgertm has joined #nixos
magnetophon1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQ8cG
<NixOS_GitHub> nixpkgs/master 4a60c51 Vincent Laporte: ocamlPackages.uunf: 2.0.0 -> 10.0.0
NixOS_GitHub has left #nixos []
eacameron has joined #nixos
mmmrrr has quit [(Remote host closed the connection)]
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 276 seconds)]
kier has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQ8CY
<NixOS_GitHub> nixpkgs/master 52ecd54 Vincent Laporte: ocamlPackages.uuseg: 1.0.0 -> 10.0.0
NixOS_GitHub has left #nixos []
Thra11 has joined #nixos
Thra11 has quit [(Read error: Connection reset by peer)]
eacamero_ has quit [(Ping timeout: 276 seconds)]
eacameron has joined #nixos
Thra11 has joined #nixos
<bennofs[m]> And the surprising thing is: when I run the same script with Ubuntu 16.04.01 on the same machine, everything works fine!
aneeshusa has quit [(Ping timeout: 276 seconds)]
kier has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
mudri has joined #nixos
eacameron has joined #nixos
<Turion> Where can I get a list of all services that I could enable from configuration.nix? Concretely, I want to know where to look if I want to enable and configure gpg-agent
<gchristensen> Turion: man configuration.nix, or nixos.org/nixos/options.html
<Turion> gchristensen: Ah great :)
<Turion> Strangely, nothing related to gpg at all... yet it was started automatically. What started it?
<gchristensen> probably gpg
<Turion> systemctl | grep gpg doesn't show anything
<gchristensen> gpg will start its own agent
mudri has quit [(Ping timeout: 260 seconds)]
<Turion> How does it do that? What starts gpg?
eacameron has quit [(Ping timeout: 276 seconds)]
<Turion> Oh you mean whenever I call gpg?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] garbas opened pull request #26970: rust uplift for 17.03 (master...rust-uplift-for-17.03) https://git.io/vQ8lG
NixOS_GitHub has left #nixos []
<gchristensen> presumably you do, by calling gpg
<Turion> Ah right well then I may happily kill it without regret ;)
<gchristensen> I think you need to configuer your own agent in ~/
bennofs has joined #nixos
<Turion> Right
eacameron has joined #nixos
MoreTea has quit [(Ping timeout: 276 seconds)]
<Turion> gchristensen, thanks, it works :)
<gchristensen> great! :)
<catern> wow
<catern> peter simons needs to relax
<catern> re: his complaint about patches being submitted by mailing list
<bennofs> catern: I think he was just confused. I can understand if you don't like to use GitHub, but using GitHub to create an issue to point to a patch on the ML feels backwards :)
arjen-jonathan has quit [(Ping timeout: 255 seconds)]
Ivanych has quit [(Quit: Leaving.)]
<the-kenny> I agree, combining both ways is a bit redundant :)
<the-kenny> Btw. another option would be just throwing the patch into an issue, if you don't want to fork nixpkgs
<catern> ehhhhh... it seems like something I would do :)
<catern> the-kenny: that is not an option really, it's the worst of both worlds; submitting patches with email is very easy with git send-email, but creating an issue is not
<catern> actually
<catern> I take it back, you can do both things with email
jtojnar has quit [(Quit: jtojnar)]
<catern> you can submit your patch to the mailing list with email
<catern> then reply to the github issue from your email
<catern> so it's not too weird at all
<bennofs> catern: creating a pull request can be as easy as hub pull-request using https://github.com/github/hub
<catern> bennofs: it can also be as easy as git request-pull :)
aneeshusa has joined #nixos
<catern> but the difference is that one of those uses the API of a proprietary web service, and the other doesn't
<bennofs> catern: yeah. but one also allows commenting on changes inline and cross-referencing other issues/prs
HurricaneHarry has quit [(Read error: Connection reset by peer)]
<nixos-users-wiki> "eCryptfs" edited by Mic92 https://git.io/vQ84X
jgertm has quit [(Ping timeout: 260 seconds)]
<bennofs> Is there anything that NixOS configures differently regarding Networking compared to Ubuntu / ArchLinux that could cause packet drops when the network interface is under load?
<nixos-users-wiki> "eCryptfs" edited by Mic92 https://git.io/vQ84p
<ToxicFrog> ...if there is that might explain some weirdness I've seen.
HurricaneHarry has joined #nixos
Thra11 has quit [(Ping timeout: 276 seconds)]
<bennofs> because ping sometimes times out on NixOS when I do a lot of requests, but this doesn't seem to happen on ubuntu or arch
cpennington has quit [(Ping timeout: 260 seconds)]
jonte has joined #nixos
ambro718 has quit [(Ping timeout: 240 seconds)]
bennofs has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQ8RK
<NixOS_GitHub> nixpkgs/master 5ab2a51 Vincent Laporte: ocamlPackages.uucd: 4.0.0 -> 10.0.0
NixOS_GitHub has left #nixos []
ryanartecona has quit [(Quit: ryanartecona)]
<Turion> I tried to start alsamixer and got this:
<Turion> Weirdly, I've been using the same config before on the same machine today (just a different hard drive and a fresh install)
ryanartecona has joined #nixos
<clever> Turion: what do you see in cat /proc/asound/cards
<Turion> clever: I think I might just found the problem: I had an .asoundrc in my home folder
<clever> ah
<Turion> And it wanted to create a pulse device
<Turion> (Which I didn't install yet
<clever> nixos automaticaly does that if you set hardware.pulseaudio.enable = true;
<clever> which both configures and installs in the same step
<Turion> clever: sounds good, I'll do that
cpennington has joined #nixos
taktoa has joined #nixos
bernas has joined #nixos
<bernas> hey guys
faffolter has joined #nixos
faffolter has quit [(Changing host)]
faffolter has joined #nixos
<bernas> anyone having trouble building nixos with a "download-from-binary-cache.pl" error?
<Infinisil> bernas: All the time, the reason is probably because my internet is so bad
<bernas> this has never happened to me though... I suspect that it's either something wrong with my nixos or the cache servers
<bernas> because my internet connection is AOK on all my other machines
<Infinisil> bernas: Does it work when you just retry?
ris has quit [(Ping timeout: 276 seconds)]
aneeshusa has quit [(Ping timeout: 260 seconds)]
<garbas> does anybody objects uplifting rust changes to 17.03? https://github.com/NixOS/nixpkgs/pull/26970
jgertm has joined #nixos
<garbas> the-kenny: qknight: ^^ is see you were editing in pkgs/development/compilers/rust
<bernas> i've been retrying for 30 minutes now, rebooting the machine 5 times in the process and nothing
ktosiek has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03 advanced to https://github.com/NixOS/nixpkgs/commit/9e5a13f6f1 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-17.03)
<the-kenny> garbas: from the rust or the nix side of things?
nix-gsc-io`bot has quit [(Client Quit)]
marsel has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQ8zL
<NixOS_GitHub> nixpkgs/master e10e3c1 Vincent Laporte: ocamlPackages.uucp: 2.0.0 -> 10.0.1
NixOS_GitHub has left #nixos []
<garbas> the-kenny: bumping rust from 1.15 to 1.17 with few other commits that happen around pkgs/development/compilers/rust folder
<garbas> for 17.03 branch
<the-kenny> garbas: lgtm then :)
<garbas> what does lgtm means?
<garbas> :)
<the-kenny> patch is a bit too big for me to review in a hurry ;)
endformationage has joined #nixos
<the-kenny> looks good to me
<garbas> ag right
bennofs has joined #nixos
Neo-- has quit [(Remote host closed the connection)]
Neo-- has joined #nixos
<swflint> Is there a way to get mopidy to recognize installed plugins?
bernas has quit [(Ping timeout: 260 seconds)]
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
aneeshusa has joined #nixos
jonte has quit [(Ping timeout: 240 seconds)]
kthnnlg has quit [(Ping timeout: 246 seconds)]
mudri has joined #nixos
<Infinisil> Lol, installing Ubuntu right now, one of the install messages is "Preparing to remove <foo> completely"
<Infinisil> Why not just "Removing <foo>"
<Infinisil> And why was it not removed completely before
<Infinisil> And why do you remove stuff you just downloaded a minute ago
<swflint> Infinisil: i was not using the service.
<Infinisil> swflint: Ahh, well I guess that solves your problem :)
cpennington has quit [(Ping timeout: 255 seconds)]
ndrei has quit [(Ping timeout: 260 seconds)]
<swflint> I guess so.
tvon has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/2e983f14f6 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
nix-gsc-io`bot has quit [(Client Quit)]
cpennington has joined #nixos
kthnnlg has joined #nixos
ixxie has joined #nixos
telotortium has quit [(Read error: Connection reset by peer)]
telotortium has joined #nixos
MP2E has joined #nixos
mudri has quit [(Ping timeout: 246 seconds)]
mudri has joined #nixos
fnlkj has joined #nixos
<Infinisil> Okay I still don't get nativeBuildInputs vs buildInputs
<Infinisil> Does anybody have a good example?
<clever> Infinisil: when cross-compiling, buildInputs will be for the target, and nativeBuildInputs for the host
<clever> so libraries go into buildInputs, but build-time tools like cmake go in nativeBuildInputs
<Infinisil> clever: Ah, and what would be a good example of buildInputs vs propagatedBuildInputs?
<gchristensen> python deps
jonte has joined #nixos
phinxy has joined #nixos
<clever> Infinisil: propagatedBuildInputs are put into $out/nix-support/propagated-build-inputs
hke has joined #nixos
<clever> Infinisil: and when the stdenv finds that in any input, it will iterate over its contents, and behave as if they where also in the inputs
<clever> Infinisil: so you can for example have package a, that propagates package b
<clever> and if a is in the inputs of c, it will behave like b was also in the inputs
arjen-jonathan has joined #nixos
<Infinisil> clever: Oh okay
<Infinisil> That's a good example gchristensen
<Infinisil> I should make a note of that, or better yet, add these do the docs
nevermind has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ixxie has quit [(Quit: Lost terminal)]
apeyroux has quit [(Remote host closed the connection)]
<Infinisil> The relevant section doesn't have any good examples: http://nixos.org/nixpkgs/manual/#ssec-stdenv-attributes
tvon has quit [(Remote host closed the connection)]
riclima has joined #nixos
tvon has joined #nixos
orivej has joined #nixos
Itkovian has joined #nixos
tvon has quit [(Ping timeout: 276 seconds)]
ambro718 has joined #nixos
bernas has joined #nixos
<bernas> just ran a NixOS VM on my laptop really quick to test if the problem was with my desktop
<bernas> idk what's happening but I think the cache servers are busted somehow
ertes-w has quit [(Ping timeout: 260 seconds)]
ris has joined #nixos
aneeshusa has quit [(Ping timeout: 255 seconds)]
bernas_ has joined #nixos
bernas_ has quit [(Client Quit)]
bernas has quit [(Ping timeout: 260 seconds)]
bernas has joined #nixos
<clever> bernas: thats just normal network issues with cloudfront, happens on and off all the time
<bernas> clever: yeah i just got it to work with my LTE connection
<bernas> really weird though, never had this problem before
<bernas> And I'm on a 1gbps connection with my ISP, and currently have no packet loss/jitter with servers from all over the world
<bernas> thanks anyway guys, what matters is that I got it to build the system again :p
<clever> same problem here, my internet is too fast and nothing can keep up, lol
<clever> 370mbit downstream
<Infinisil> I think this could be improved, I haven't seen any other package manager have such a struggle
<simpson> Infinisil: Most package managers are a dependency graph and a pile of tarballs.
<Infinisil> clever: Daamn, so jealous, I got only 4mbs recently..
<clever> most package managers setup normal http servers with either round-robin dns, http redirects, or a mirror list right in the client
<clever> but nix relies purely on a single dns entry, cache.nixos.org, and AWS cloudfront to do all mirroring and load balancing
athan has quit [(Ping timeout: 260 seconds)]
nevermind has joined #nixos
<clever> Infinisil: and i know somebody else that has google fiber, he gets 670mbit down, 860mbit up!
ryanartecona has quit [(Quit: ryanartecona)]
<Infinisil> Damn
<Infinisil> And switzerland is supposed to be advanced in technology
<clever> but i think mine is more abnormal, the google fiber guy is in the middle of a major city near a backbone
<clever> but me, i'm in the middle of nowhere, lol
<clever> my ISP just decided to replace all the phone lines with fiber
<Infinisil> We get fiber.. eventually, may take another 5 years..
apeyroux has joined #nixos
<Infinisil> I'll go log into osx to build a package now, hopefully it works
<manveru> wish we had at least LTE here... but i'll forever be around 1.5MB/s on my shitty DSL :(
bernas_ has joined #nixos
Infinisil has quit [(Quit: leaving)]
<manveru> oh well, usually still faster than building from scratch
bernas has quit [(Ping timeout: 260 seconds)]
jgertm has quit [(Ping timeout: 276 seconds)]
pie_ has joined #nixos
marsel has quit [(Ping timeout: 255 seconds)]
<bennofs> is the user journal missing for anyone else here?
<bennofs> journalctl --user just returns "no journal found"
civodul has joined #nixos
mudri has quit [(Ping timeout: 240 seconds)]
<clever> bennofs: strange, i'm seeing that here too, but i remember it doing something diff before
<bennofs> yes. normally it should show you at least logs from the systemd user instance i think
<clever> bennofs: on my router (16.03pre76756.885acea) it still works
Mateon3 has joined #nixos
Mateon1 has quit [(Ping timeout: 240 seconds)]
Mateon3 is now known as Mateon1
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
apeyroux has quit [(Quit: Lost terminal)]
<bennofs> clever: thanks, I may bisect this later
<bennofs> not sure if i care about it enough though :)
oida has joined #nixos
oida_ has quit [(Ping timeout: 276 seconds)]
Wizek_ has joined #nixos
apeyroux has joined #nixos
jgertm has joined #nixos
Wizek_ has quit [(Ping timeout: 246 seconds)]
bernas_ has quit [(Ping timeout: 260 seconds)]
_ris has joined #nixos
lambdael has quit [(Quit: WeeChat 1.7.1)]
lambdael has joined #nixos
lambdael has quit [(Client Quit)]
ris has quit [(Ping timeout: 240 seconds)]
disasm has quit [(Quit: WeeChat 1.8)]
Wizek_ has joined #nixos
justanotheruser has quit [(Ping timeout: 260 seconds)]
justanotheruser has joined #nixos
goibhniu has joined #nixos
Infinisil has joined #nixos
Sonarpulse has quit [(Ping timeout: 276 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Katyucha closed pull request #26130: vault: 0.6.5 -> 0.7.2 with service (master...vault) https://git.io/vHZcN
NixOS_GitHub has left #nixos []
tvon has joined #nixos
riclima has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
riclima has joined #nixos
erictapen has quit [(Ping timeout: 276 seconds)]
c74d has quit [(Ping timeout: 260 seconds)]
pie_ has quit [(Read error: Connection reset by peer)]
pie_ has joined #nixos
pie__ has joined #nixos
riclima has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
pie__ has quit [(Remote host closed the connection)]
mkoenig_ has joined #nixos
erictapen has joined #nixos
mkoenig has quit [(Ping timeout: 276 seconds)]
aneeshusa has joined #nixos
justanotheruser has quit [(Quit: WeeChat 1.7.1)]
justanotheruser has joined #nixos
<Infinisil> How do I pretty print stuff in Nix?
<Infinisil> I saw there's toPretty, but I don't know how to import it
c74d has joined #nixos
faffolter has quit [(Read error: Connection reset by peer)]
<Infinisil> Oh it's because that was only added very recently
Sonarpulse has joined #nixos
faffolter has joined #nixos
faffolter has quit [(Changing host)]
faffolter has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
<Infinisil> Well whatever I'll just do my own print function
erictapen has quit [(Ping timeout: 276 seconds)]
MP2E has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 1 new commit to master: https://git.io/vQ8dF
<NixOS_GitHub> nixpkgs/master c4430ba Peter Simons: bind: update to version 9.10.5-P2 to fix CVE-2017-3142 and CVE-2017-3143
NixOS_GitHub has left #nixos []
MP2E has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 1 new commit to release-17.03: https://git.io/vQ8dp
<NixOS_GitHub> nixpkgs/release-17.03 9fe5282 Peter Simons: bind: update to version 9.10.5-P2 to fix CVE-2017-3142 and CVE-2017-3143
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zx2c4 opened pull request #26972: wireguard: 0.0.20170613 -> 0.0.20170629 (master...patch-5) https://git.io/vQ8Fy
NixOS_GitHub has left #nixos []
<clever> Infinisil: i usualy just toJson it
<clever> Infinisil: and maybe pipe it thru jq
hotfuzz has joined #nixos
aneeshusa has quit [(Quit: WeeChat 1.9)]
mkoenig_ has quit [(Ping timeout: 260 seconds)]
k0001 has quit [(Remote host closed the connection)]
<Sonarpulse> Dezgeg: any more comments on that bootstrap tools PR?
k0001 has joined #nixos
<Sonarpulse> I fixed the nuke references and cpio issue
<Dezgeg> I can try it out again
<Sonarpulse> Dezgeg: thanks!
<Sonarpulse> granted, the cross one will still fail to build
<Sonarpulse> as I haven't had time to dive into fixing the cross-built gcc yet
<Sonarpulse> but at least it should eval right
<Sonarpulse> glibcCross, nukeReferences, and cpio should all be cached
k0001 has quit [(Remote host closed the connection)]
faffolter has quit [(Read error: Connection reset by peer)]
k0001 has joined #nixos
faffolter has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/e10e3c1d1a (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
ris has joined #nixos
faffolter has quit [(Read error: Connection reset by peer)]
faffolter has joined #nixos
k0001 has quit [(Remote host closed the connection)]
mkoenig has joined #nixos
orivej has quit [(Ping timeout: 276 seconds)]
k0001 has joined #nixos
_ris has quit [(Ping timeout: 246 seconds)]
orivej has joined #nixos
ryanartecona has joined #nixos
faffolter has quit [(Read error: Connection reset by peer)]
faffolter has joined #nixos
aneeshusa has joined #nixos
k0001 has quit [(Remote host closed the connection)]
arjen-jonathan has quit [(Ping timeout: 276 seconds)]
k0001 has joined #nixos
pie_ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
Sonarpulse has quit [(Ping timeout: 246 seconds)]
cpennington has quit [(Remote host closed the connection)]
k0001 has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantrinkle opened pull request #26974: cc-wrapper: improve response file parsing speed (staging...response-file-parsing-speed) https://git.io/vQ8pL
NixOS_GitHub has left #nixos []
k0001 has joined #nixos
civodul has quit [(Read error: Connection reset by peer)]
hotfuzz has quit [(Quit: WeeChat 1.7.1)]
simukis has quit [(Ping timeout: 246 seconds)]
faffolter has quit [(Ping timeout: 255 seconds)]
hotfuzz has joined #nixos
ris has quit [(Ping timeout: 240 seconds)]
Sonarpulse has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fadenb opened pull request #26975: radarr: 0.2.0.696 -> 0.2.0.778 (master...radarr_778) https://git.io/vQ8jm
NixOS_GitHub has left #nixos []
k0001 has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fadenb opened pull request #26976: emby: 3.2.19.0 -> 3.2.20.0 (master...emby_3.2.20.0) https://git.io/vQ8j0
NixOS_GitHub has left #nixos []
k0001 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] DanOlivier closed pull request #1423: Adding CMake support (1.11-maintenance...1.11-maintenance) https://git.io/vQs2k
NixOS_GitHub has left #nixos []
<Infinisil> clever: I just needed to print a list a string of an attribute, I ended up using "{${lib.concatMapStringsSep ", " (a: a.name) list}}"
<clever> ah
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] DanOlivier opened pull request #1427: CMake support (master...CMakeSupport) https://git.io/vQ4eE
NixOS_GitHub has left #nixos []
ris has joined #nixos
<aneeshusa> Infinisil: I like to use builtins.toJSON, which IIRC also does escaping
apeyroux has quit [(Quit: Lost terminal)]
MP2E has quit [(Quit: brb)]
apeyroux has joined #nixos
mkoenig has quit [(Ping timeout: 260 seconds)]
danl1240 has joined #nixos
athan has joined #nixos
<Infinisil> I'd really like just this:
Filystyn has quit [(Quit: Konversation terminated!)]
<Infinisil> `nix-instantiate --eval --strict -E 'map (a: a.name) [{ name = "test";} { name = "hi";}]'`
<Infinisil> [ "test" "hi" ]
<Infinisil> Wait, doesn't toString do that
<Infinisil> `nix-instantiate --eval --strict -E 'builtins.toString (map (a: a.name) [{ name = "test";} { name = "hi";}])'`
<Infinisil> "test hi"
<Infinisil> nope
<Infinisil> Eh whatever, I'm having a bigger problem right now, which is that my package I'm still trying to add (scyther) builds correctly on nixos-17.03 but doesn't on master
<Infinisil> In master I get a python error that a package couldn't be found
<Infinisil> The thing that doesn't get run automatically in master (which was in 17.03) is some wrapping phase which wraps all executables it can find
ertes has joined #nixos
<Infinisil> And I need this behaviour back, but I don't know how
<Infinisil> But the only thing I'd think would do that is for Gapps: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/setup-hooks/wrap-gapps-hook.sh#L38-L48
<Infinisil> And I'm still not sure how I could follow the build process exacly, it's very confusing with all these hooks and stuff, and doing unpackPhase configurePhase etc. manually doesn't seem to produce the same results
Guest23060 has quit [(Quit: Lost terminal)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
bennofs has quit [(Ping timeout: 246 seconds)]
bennofs has joined #nixos
orivej has quit [(Ping timeout: 260 seconds)]
<tilpner> Is there a way to use nixos-config/configuration.nix without <nixpkgs>, <nixos>, or other equivalent path items?
<tilpner> I'd like to try to manage the nixpkgs version that's used for nixos-rebuild from my nixos-config
alx741 has joined #nixos
<tilpner> Currently I have nixPath = ["nixpkgs=${stable.path}"], where stable is nixpkgs from fetchgit, but that requires another login to update NIX_PATH
hiratara has quit [(Ping timeout: 276 seconds)]
spinus has joined #nixos
<gchristensen> tilpner: no, because it will always use the version of nixpkgs from your previous verssion
<Infinisil> tilpner: You can use the -Inixpkgs=/path/to/nixpkgs I guess, don't know if that's what you want though
mkoenig has joined #nixos
pie_ has quit [(Changing host)]
pie_ has joined #nixos
<Infinisil> If I have a problem with getting a specific package working when I'm very close to done, can I do a PR and ask for help? Or just an issue? Or what else it there?
hiratara has joined #nixos
<gchristensen> Infinisil: you can open a PR and ask for help
<gchristensen> I've done it a few times
<Infinisil> gchristensen: Ah ok thanks
<Infinisil> I may just do that then
Decoy_ has joined #nixos
<Decoy_> Hello folks! Recently converted to NixOS - hoping to get some advice! It seems that whenever I try to open / save a file with Chrome / chromium, the browser crashes. Not sure if this is a KDE thing or something else - has anyone else had this issue, and is there a way around it?
<Decoy_> I am guessing it is to do with the system file picker
nevermind has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
jonte has quit [(Ping timeout: 260 seconds)]
mudri has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 closed pull request #26948: stdenv: Simplify dependency code (master...stdenv-map) https://git.io/vQlkX
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] tohl opened pull request #26977: tested on nixos x86_64 (master...master) https://git.io/vQ4Ix
NixOS_GitHub has left #nixos []
<tilpner> gchristensen, Infinisil - You're right. I think I'll try adding a package that wraps nixos-rebuild with a nixpkgs taken from nixos-config. That would only require extra arguments for the first time setup
justan0theruser has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 pushed 1 new commit to staging: https://git.io/vQ4L4
<NixOS_GitHub> nixpkgs/staging d61c223 John Ericson: Merge accepted cross compilation PRs into staging
NixOS_GitHub has left #nixos []
justanotheruser has quit [(Ping timeout: 260 seconds)]
Fare has joined #nixos
<Fare> How do I get a list of packages available to nixos-rebuild? I tried nix-env -I $NIX_PATH --query --attr-path --available but it keeps showing packages from an earlier nixpkgs
k0001 has quit [(Remote host closed the connection)]
<Infinisil> Fare: Did you use sudo?
<gchristensen> tilpner: well you can set NIX_PATH=nixpkgs=/path/on/disk/to/nixpkgs for nixos-rebuild and it'll use that
k0001 has joined #nixos
<tilpner> gchristensen - But I don't want any moving pieces. It'd be better to have that nixpkgs maintained by Nix as well, no?
<gchristensen> tilpner: "don't want any moving pieces" <- means you can't move forward
<tilpner> I'm fine with having to update the fetchgit arguments from time to time, if that's what you mean
<Infinisil> tilpner: Well if you use channels you only update when you tell it to I think
riclima has joined #nixos
earldouglas has quit [(Quit: leaving)]
<Infinisil> tilpner: I'm pretty sure you just want the channels
<Infinisil> While it's not managed with nix expressions, it's still managed with nix
<Fare> Infinisil, should I use sudo for that?
<Infinisil> And if you want to do it truly yourself you could add the channels git repo
<Infinisil> Fare: Yeah, since you need sudo nixos-rebuild, nix is handled separately for all users
<Fare> I tried as root, with the same results: nix-env sees an ancient view of the nixpkgs, not the same thing seen by nixos-rebuild (which I specified in $NIX_PATH)
fresheyeball has joined #nixos
<gchristensen> Fare: sorry, what exactly are you looking for?
<joepie91> tilpner: are you trying to install things from master, or?
<Fare> I want an up-to-date list of packages potentially installed in my configuration.nix
<Fare> I tried this, but it's not up-to-date: nix-env -I $NIX_PATH --query --attr-path --available
<Sonarpulse> does find utils really take that long?
<Sonarpulse> I don't think the log has budged for 10 minutes
<fresheyeball> anyone around used CUPS before?
<Fare> fresheyeball, it seems to be working for me on nixos with minimal configuration.
nevermind has joined #nixos
<aneeshusa> tilpner: I use builtins.fetchTarball to fetch and then import my desired nixpkgs
<Fare> fresheyeball, did you go to http://localhost:631/ to add printers to it?
<fresheyeball> I went to that location
<fresheyeball> Fare: there it is!
<fresheyeball> I was looking in the wrong spot
<tilpner> Infinisil - I don't strictly need it, and what I have is working, it just needs a logout/login, which is annoying. I went from channels to local nixpkgs because I wanted more control, then realized it was a little too much control (that I didn't need, because I now have overlays). Channels would work, but I like the idea of my setup being completely stateless
kthnnlg has quit [(Ping timeout: 268 seconds)]
<tilpner> joepie91 - Nah, I want to control which nixpkgs is used for things like services.* or programs.* (<nixpkgs/nixos>)
<tilpner> aneeshusa - How do you import them?
<fresheyeball> Fare: what is a PPD file?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth opened pull request #26978: lighttpd: add collectd submodule (master...lighttpd-collectd-submodule) https://git.io/vQ4mT
NixOS_GitHub has left #nixos []
goibhniu has quit [(Ping timeout: 255 seconds)]
<fresheyeball> The printer website has simple deb files
<tilpner> aneeshusa - Oh, you're just using the pkgs, are you? Not the nixos files...
<aneeshusa> tilpner: I have a little different setup locally (semiprivate nixpkgs) but `builtins.fetchTarball https://github.com/NixOS/nixpkgs/archive/dc9f69c260139c23fa4944826acc3d46ef1a3237.tar.gz` should work
<aneeshusa> tilpner: and then I import nixos from inside there!
<fresheyeball> can I simply install a .deb file somehow?
<aneeshusa> tilpner: `let pin = builtins.fetchTarball <that-long-url-from-before>`
hiratara has quit [(Quit: ZNC - http://znc.in)]
<aneeshusa> tilpner: `let nixos = pin + "/nixos"`
<aneeshusa> tilpner: `import nixos {...}`
<fresheyeball> is there a download .deb and install builtin?
hiratara has joined #nixos
<Fare> fresheyeball, configuration for the postscript to produce for your printer
<tilpner> aneeshusa - I don't understand how you use after nixos after you imported it. Is there any way I can look at the structure of the whole file?
<Fare> gchristensen, so, no idea how to get nix-env to see the same world as nixos-rebuild ?
<aneeshusa> tilpner: let me sanitize what I have and post it for you, just a minute
<tilpner> aneeshusa - Oh, you do import nixos { configuration = ./configuration.nix } or similar?
<gchristensen> I thought it did already, fare :/
<aneeshusa> tilpner: yep, that's right
<tilpner> aneeshusa - Okay, I might not need to look at it then
pxc has joined #nixos
<aneeshusa> tilpner: btw, I just filed https://github.com/NixOS/nix/issues/1425 about improving this use case of fetchTarball :)
<fresheyeball> Fare: ok so it looked like I got it all hooked up
<fresheyeball> but when I go to print
<tilpner> aneeshusa - I'm using fetchGit instead of fetchTarball for that
<fresheyeball> the CUPS web interface shows "Unable to locate printer "BRWF8DA0C0B76B0.local"."
<aneeshusa> tilpner: is fetchGit in builtins?
<fresheyeball> tilpner: awesome!
<tilpner> aneeshusa - Unfortunately not, so I have another bootstrap nixpkgs for that c.c
* dtzWill sets up a wacky waving inflatable arm-waving tube man in vicinity of https://github.com/NixOS/nixpkgs/pull/26939
<dtzWill> *arm-flailing O:)
<tilpner> But since I'm only using fetchGit from that one, I can just leave it pinned to an old version
<tilpner> fresheyeball - Did you mean to talk to Fare?
riclima has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<fresheyeball> tilpner: no I was happy about fetchTar
<Infinisil> dtzWill: Nice, someone was complaining about mailutils not building before and I think that fixes it
justan0theruser has quit [(Quit: WeeChat 1.7.1)]
<tilpner> But I didn't file that issue...
justanotheruser has joined #nixos
riclima has joined #nixos
<Fare> fresheyeball, I could connect to my Brother printer using the connection URL ipp://192.168.xx.yy/ipp
justbeingglad has joined #nixos
Turion has quit [(Read error: Connection reset by peer)]
<fresheyeball> Fare: do you use the Generic PostScript Printer Driver?
earldouglas has joined #nixos
noobly_ has joined #nixos
earldouglas has quit [(Client Quit)]
<noobly_> Shot in the dark but yesterday I tried installing racket only to find it's not available for 32-bit, so I went to the site and downloaed the .sh file and upon installing got this error "error: could not find "rm" and found this relevant thread: https://github.com/racket/distro-build/issues/1
<noobly_> but I didn't find much useful info in there, does anyone know a fix or maybe an alternative install method?
<fresheyeball> Fare: I just keep getting Printer not responding now
<Fare> fresheyeball, first thing, can you access the printer from the command line with some URL ?
<Fare> or from your browser?
<fresheyeball> I can ping it
<fresheyeball> oh whodillooly
<fresheyeball> I think I got it
<fresheyeball> socker://hostname
<fresheyeball> seems to have done it
<noobly_> gonna try to tinker with the zip now, if anyone's interested
_ris has joined #nixos
justbeingglad has left #nixos []
<tilpner> noobly_ - Do you know why it's not available for your 32-bit system
<noobly_> In the nixos package search it only came up as 64 bit
<noobly_> and this was verified after I tried to install
ryanartecona has quit [(Quit: ryanartecona)]
<tilpner> Did it give a better error than "this package was declared to be x86_64 only"?
ris has quit [(Ping timeout: 240 seconds)]
<noobly_> tilpner: error: Package ‘racket-6.8’ in ‘/nix/store/x6056f4pvrcwygq5zwvfp6sb7chf2yrl-nixos-17.03.1188.9fd6417e27/nixos/pkgs/development/interpreters/racket/default.nix:70’ is not supported on ‘i686-linux’, refusing to evaluate.
<noobly_> copy+paste of the error
<tilpner> What happens if you take the expression, remove or change all of .meta, then try to build it?
<noobly_> I would have to do some reading on how to do that first :)
Acou_Bass has joined #nixos
Turion has joined #nixos
eacameron has quit [(Remote host closed the connection)]
<tilpner> noobly_ - Save https://gist.github.com/4f95dd8ffe4f29358f8e17f450a7b32d into racket.nix, then run $ nix-build -E 'let p = import <nixpkgs> {}; in p.lib.callPackageWith (p) (import ./racket.nix) {}'
nevermind has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<noobly_> tilper: where should racket.nix be located? etc/nixos/ ?
phreedom has quit [(Quit: No Ping reply in 180 seconds.)]
<tilpner> In any current directory
<noobly_> oh ok, and it's not a dotfile?
Turion has quit [(Ping timeout: 260 seconds)]
Piece_Maker has joined #nixos
<noobly_> and I need to set it into my imports in configuration.nix?
endformationage has quit [(Quit: WeeChat 1.7)]
<tilpner> No, just put it anywhere for now
phreedom has joined #nixos
<fresheyeball> 233
<fresheyeball> .
<fresheyeball> .
<tilpner> And run that command from the same directory
Acou_Bass has quit [(Ping timeout: 276 seconds)]
justelex_ has quit [(Ping timeout: 276 seconds)]
Piece_Maker is now known as Acou_Bass
<tilpner> E.g. /tmp
digitus has quit [(Quit: digitus)]
<noobly_> oh ok I just did everything from /home/, hopefully I'm not dead
<noobly_> it's running that nix-build command now
<tilpner> It should build Racket. If that works, you can try importing it from your config and see if it runs well
<tilpner> (This will take... a while)
<noobly_> what do you mean "importing it from my config"? As in adding racket.nix to the imports function in the config?
<noobly_> just to be clear for my amatuer self
nevermind has joined #nixos
johnw has quit [(Ping timeout: 240 seconds)]
Neo-- has quit [(Ping timeout: 255 seconds)]
<tilpner> noobly_ - Put something like (pkgs.callPackage (import path/to/racket.nix)) into your systemPackages
<noobly_> ok, thanks
ambro718 has quit [(Quit: Konversation terminated!)]
johnw has joined #nixos
alfie has quit [(Ping timeout: 276 seconds)]
erasmas has quit [(Quit: leaving)]
srk has quit [(Quit: ZNC - http://znc.in)]
alfie has joined #nixos
Rotaerk has joined #nixos
nevermind has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] sifmelcara opened pull request #26979: crystal: 0.22.0 -> 0.23.0 (master...update/crystal-0.23.0) https://git.io/vQ4Zk
NixOS_GitHub has left #nixos []
k0001 has quit [(Remote host closed the connection)]
k0001 has joined #nixos
justelex_ has joined #nixos
nh2 has quit [(Quit: Leaving.)]
zeus_ has quit [(Remote host closed the connection)]
erictapen has joined #nixos
k0001 has quit [(Remote host closed the connection)]
k0001 has joined #nixos
rmarko has joined #nixos
rmarko has quit [(Changing host)]
rmarko has joined #nixos
data has joined #nixos
data is now known as Guest80784
erictapen has quit [(Ping timeout: 276 seconds)]
rmarko is now known as srk
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #26940: NixOS Manual: Make it easier to debug (master...nixos-manual) https://git.io/vQWa4
NixOS_GitHub has left #nixos []
erictapen has joined #nixos
markus1189 has joined #nixos
markus1199 has joined #nixos
riclima has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<tilpner> noobly_ - Did that work?
<noobly_> tilpner: still nix-build'ing :)
phinxy has quit [(Quit: Leaving)]
markus1219 has quit [(Ping timeout: 240 seconds)]
markus1209 has quit [(Ping timeout: 276 seconds)]
<noobly_> what's the right way to install a library in Nix?
<noobly_> I have a freshly unzipped C Library and don't wanna screw anything up, I know for Python at least you can't do an imperative install
<noobly_> but not really sure what this means / how to do properly
<spinus> noobly_: do you want it as part of the system or you need it to build some specific project?
Guest80784 has quit [(Quit: hello world)]
<noobly_> also, does 'make' command not exist? is there a "make install" syntatic equivelant?
<noobly_> spinus: I think I want it as part of the system, I'm going to be using for the next couple months at least
data8 has joined #nixos
<noobly_> I'm doing Harvard's CS50 MOOC, so I wanted their library on my OS
<spinus> so, in nix you usually have a lib as dependency for specific project, installing globally is possible, but probably not needed
JagaJaga has joined #nixos
<spinus> if you want to install it as part of user profile (globally for the user, but not systemwise) you can add derivation in ~/.nixpkgs/config.nix
justelex_ has quit [(Ping timeout: 260 seconds)]
<spinus> you can find in manual how to create derivation (search for stdenv.mkDerivation)
<noobly_> spinus: oh ok, sounds good. I don't necassarily need it as part of profile, but if I did add the derivation like you mention, then it would be reproducible right?
<noobly_> are there downsides to doing it globally?
<noobly_> spinus: but from what you say, it seems it might be easier to do it non-globally, and at this point the easier the better
<spinus> noobly_: so, the only way how you install stuff in nix is through derivations, so they are reproducible