pxc has joined #nixos
<tgunb> drp: i think you just need to set an environment variable to ~/.nix-profile/share/man or so. man man should tell you which one
<ldlework> tgunb use pkgs.pidgin-otr
<tgunb> idlework: ***idlework tries <- this one
miriam59 has joined #nixos
noobly has quit [(Quit: Page closed)]
<ldlework> Even with, https://gist.github.com/dustinlacewell-wk/513e1acfebf55061ee61ddbaac76f553 I get "Package ‘FSharp.AutoComplete-0.18.2’ in /nix/store/nixpkgs/pkgs/top-level/dotnet-packages.nix:537 is not supported on ‘x86_64-darwin’, refusing to evaluate."
<tgunb> thats better, but look again at my gist ( i updated it)
<drp> tgunb looks like I just have to set $MANPATH or add it into /etc/manpath.config Thank you!
miriam59 has quit [(Ping timeout: 248 seconds)]
MP2E has joined #nixos
nisstyre has joined #nixos
roi_du_silence has joined #nixos
<drp> interesting, I can see that .nix-profile already has been mapped if I type in manpath, but none of them work, presumably because they're all in subfolders as the nixpkgs manual implies
nisstyre has quit [(Ping timeout: 252 seconds)]
drp has quit [(Remote host closed the connection)]
nisstyre has joined #nixos
<disasm> ldlework: should be pkgs.stdenv
<disasm> ldlework: oh platforms, that would be lib.meta.platforms
drp has joined #nixos
<disasm> tgunb: the package is pidginotr (no -)
python476 has quit [(Ping timeout: 246 seconds)]
<disasm> drp: so... a lot of man pages are put in different outputs you can try nix-env -i yourpackage.man and see if it works.
<disasm> drp: as to the desktop files... you'd need to symlink the desktop file in the nix store (if there is one) to where they need to go
<disasm> actually that's how the package creates it, lemme dig further
<disasm> drp: ok, have no idea how it works... but on the live cd, it does this for the manual: ln -sfT ${desktopFile} /root/Desktop/nixos-manual.desktop
pxc has quit [(Ping timeout: 248 seconds)]
orivej has joined #nixos
<tgunb> disasm: its really late. thanks. the folder layout of the new pidgin-with-plugins doesnt contain a link to libotr, but i will testart python.
tgunb has quit [(Quit: Leaving.)]
tgunb has joined #nixos
<tgunb> it worked.
<disasm> it does seem like it's standard if a package has a desktop file it goes in $out/share/applications
<drp> okay it looks like tmux just doesn't have man pages in the tmux nixpkgs
<drp> everything else works automatically
<disasm> tgunb: glad to hear it :)
<drp> I am sorry
<disasm> hmm works here
<tgunb> the only thing missing are now friends who use xmpp or at least irc and are willing to install otr...
<disasm> drp: nix-env -iA nixos.tmux.man (or nixpkgs if not nixos)
boomshroom has joined #nixos
<boomshroom> Hello!
<disasm> tgunb: 30 seconds...
<boomshroom> My area had a power outage most of today, so I figure I may as well setup my OS to display my ups battery level.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Gerschtli opened pull request #30669: php couchbase: remove warnings on php startup (master...fix/php-couchbase-warnings) https://git.io/vdNEg
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Gerschtli closed pull request #30293: php couchbase: remove warnings on php startup (master...fix/php-couchbase) https://git.io/vdw3m
NixOS_GitHub has left #nixos []
<boomshroom> I just enabled apcupsd from configuration.nix, but running apcaccess status seems to give the same output each time. It doesn't even update the time.
<disasm> tgunb: ok, a lil' longer than 30 seconds
<tgunb> boomshrooms: good thing that your using a transactional package manager. otherwise your package database could be screwed up.
<tgunb> (thats more or less why i switched today)
<boomshroom> tgunb: This your first day with NixOS? Congratulations; welcome to the club!
<disasm> boomshroom: might be worthwhile to strace it and see if you can see if it's trying to access the ups or not. I don't have a ups to test with, sorry
Nobabs25 has quit [(Quit: Leaving)]
<boomshroom> disasm: Good news: unplugging the USB cable changed the status to go from ONLINE to COMMLOST, so there's one mystery solved.
<tgunb> tethering?
srhb has quit [(Quit: Quit)]
pxc has joined #nixos
<disasm> tgunb: I sent you a private message from disasm|otr and tried initiating an otr session, did it work?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mdorman opened pull request #30671: Semi-automated Emacs package updates (master...emacs-local) https://git.io/vdNuJ
NixOS_GitHub has left #nixos []
<tgunb> disasm: the plugin was disabled. now
pxc has quit [(Ping timeout: 240 seconds)]
<tgunb> good night
tgunb has quit [(Quit: Leaving.)]
<disasm> boomshroom: could go all out and issue a status while ups power cable unplugged if your daring.
nisstyre has quit [(Changing host)]
nisstyre has joined #nixos
<disasm> drp: did that work for you?
mc_der has quit [(Ping timeout: 240 seconds)]
<disasm> ldlework: did that work? changing the platforms to include darwin?
nh2 has quit [(Quit: Leaving.)]
<boomshroom> disasm: I'm not quite willing to do that yet.
sigmundv__ has quit [(Ping timeout: 240 seconds)]
<boomshroom> Hey, the charge increased from 20% to 21%! :D
sigmundv has quit [(Ping timeout: 248 seconds)]
<drp> disasm, nixpkgs worked for installing but still shows no manpage, everything else works though
pxc has joined #nixos
scribbler has joined #nixos
<drp> I copied the files from .nix-profile/share/apps to .local/share/apps and gnome picked everything up
<drp> thank you!
<drp> it appears to just be tmux? I've installed and tested quite a few other man pages now
<drp> they all work automatically, except for tmux
<drp> ln cries a lot if the folder already exists, I will find a more automatic solution as there are doubtless many options
<disasm> ooh, they're in .nix-profile/share/apps good to know!
oida has joined #nixos
<drp> sorry, .nix-profile/share/applications
<drp> it mirrors /local/share/applications which according to XDG also has a .local variant
<drp> horay for standards
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vdNuA
<NixOS_GitHub> nixpkgs/master 1b2cc71 Nikolay Amiantov: cura: build with Qt 5.6...
NixOS_GitHub has left #nixos []
<boomshroom> Does anyone know if DejaVu Sans Mono Bold supports emojis? I'd like to use icons to annotate my i3bar. The clock and battery emojis don't seem to print, but the timer clock does. I think I had most of them working on Arch.
ivanivan has joined #nixos
ivanivan has quit [(Quit: WeeChat 1.9.1)]
<boomshroom> Alternatively, what's a good font that I can use to display emojis in my status bar?
hamishmack has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar pushed 6 new commits to master: https://git.io/vdNzO
<NixOS_GitHub> nixpkgs/master 3264001 Nikolay Amiantov: python.pkgs.python-utils: init at 2.2.0
<NixOS_GitHub> nixpkgs/master 5ba9411 Nikolay Amiantov: python.pkgs.numpy-stl: init at 2.3.2
<NixOS_GitHub> nixpkgs/master 6c5184f Nikolay Amiantov: python.pkgs.libarcus: 2.6.1 -> 3.0.3
NixOS_GitHub has left #nixos []
mbrgm has quit [(Ping timeout: 240 seconds)]
orivej has quit [(Read error: Connection reset by peer)]
pxc has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
<boomshroom> Quickly add symbola to fonts.fonts -> Suddenly emojis in the status bar.
lambdamu has joined #nixos
pxc has joined #nixos
ison111 has quit [(Ping timeout: 258 seconds)]
lambdamu_ has quit [(Ping timeout: 248 seconds)]
demego has quit [(Ping timeout: 264 seconds)]
hamishmack has joined #nixos
<ldlework> disasm no I did not understand what I needed to change from your reply
<ldlework> disasm you around?
Arcaelyx has quit [(Quit: Textual IRC Client: www.textualapp.com)]
<ldlework> Can anyone tell me what is wrong with this package override? https://gist.github.com/dustinlacewell-wk/1c8d3d2408896ae2f169f5ccbb13f28a
<ldlework> I'm specifying darwin in the platforms, but it still complains it wont evaluate on darwin.
ison111 has joined #nixos
<disasm> ldlework: s/platforms/lib.meta.platforms
jb55 has quit [(Ping timeout: 255 seconds)]
<jtojnar> ldlework: overrideAttrs
<jtojnar> instead of override
<disasm> jtojnar: oh yeah, good catch
slack1256 has joined #nixos
<disasm> also, I think it's with pkgs.stdenv.lib;
<ldlework> ok
dieggsy has quit [(Ping timeout: 246 seconds)]
<disasm> because with puts all the attrs in what follows in scope
<ldlework> still doesn't work
<disasm> ldlework: in that case, get rid of the with, not needed
<ldlework> Without the `with` it complains linux and darwin are undefined
<disasm> oh, yeah
<ldlework> though
<ldlework> it doesn't seem to matter what I put in the with
<ldlework> I can put gobbeldygook
<ldlework> and it doesn't complain about linux and darwin anymore
<ldlework> but it still says it wont evaluate on darwin
<jtojnar> ldlework: what package are you trying to build?
<ldlework> dotnetPackages.FSharpAutoComplete
<ldlework> on darwin
<ldlework> by overriding it's "platforms" meta
<disasm> ldlework: ldlework lib.platforms.linux and lib.platforms.darwin
Supersonic112 has quit [(Disconnected by services)]
<ldlework> that just complains that there's undefined variable lib
<ldlework> 🤣
<ldlework> Sorry if I'm being stupid here...
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
<jtojnar> dotnetPackages seem to accept overrides argument. can you try something like https://gist.github.com/jtojnar/8d4a65a841a4f277fd36473d9ccf9a67
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/85143e2ee2 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [(Client Quit)]
pxc has quit [(Ping timeout: 248 seconds)]
pxc has joined #nixos
<jtojnar> ldlework: yours should work if you s/lib.meta.platforms/meta.platforms/
<ldlework> undefined variable lib
<ldlework> jtojnar I added back the with statement
<ldlework> But the package still complains about being installed on darwin
jb55 has joined #nixos
<jtojnar> ldlework: also the platforms should be in a list https://gist.github.com/jtojnar/8d4a65a841a4f277fd36473d9ccf9a67
<ldlework> are you sure? I thought they were lists
<ldlework> I'll try it
<ldlework> still complains
<ldlework> disasm that still complains
<ldlework> haha this is silly :D
<disasm> really? :) what's it say?
<ldlework> Package ‘FSharp.AutoComplete-0.18.2’ in /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/pkgs/top-level/dotnet-packages.nix:537 is not supported on ‘x86_64-darwin’, refusing to evaluate.
<disasm> ah
<jtojnar> also is there `pkgs.stdenv`? I do not see it in all-packages.nix
<ldlework> I have no idea...
<ldlework> I'm am out of my element heh
<disasm> jtojnar: there is, but I don't know how it gets there, lol
<disasm> ldlework: ok... just clone nixpkgs down and lets see if this actually works...
<ldlework> lol
<ldlework> jeeze it is huge
<disasm> ldlework: when it finishes cloning, download this patch (or make the change yourself) https://gist.github.com/16aecfcc54d6bfa3acbc7ffeb9d02bef
<ldlework> How do I get HM/Nix to use this clone?
<disasm> to apply the patch if that's the route you go, git apply -v --index <file>
<jtojnar> ldlework: I do not think linux is a list since the platforms are usually listed in a list
<disasm> then in the nixpkgs dir: nix-build -A dotnetPackages.FSharpAutoComplete
<ldlework> ah
dbmikus has joined #nixos
<disasm> jtojnar: I think platforms can be either a list or a single platform
<disasm> lots of stuff in nixpkgs does linux ++ darwin;
<ldlework> hmm says corrupt patch at line 13
pxc has quit [(Ping timeout: 240 seconds)]
pxc has joined #nixos
<ldlework> just did it manually
<ldlework> Now I get: Package ‘FSharp.Compiler.Service-0.0.90’ in /Users/dustinlacewell/src/nixpkgs/pkgs/top-level/dotnet-packages.nix:569 is not supported on ‘x86_64-darwin’, refusing to evaluate.
<ldlework> I'll change that one too
<jtojnar> looks like I misremembered, grepping for 'platforms = [' there are only strings, not the lib.members
<drp> I can clearly see dwarf-fortress as a package but nix-env -qa doesn't show it, is it a special case?
<disasm> drp: is it unfree?
<drp> ah yes it would be
<ldlework> After adding darwin to a bunch of things, I'm now fetching and building stuff
<disasm> drp: yeah, that's the reason
<ldlework> So it seems like we don't know how to override packages that are in namespaces like dotnetPackages
<drp> thanks
<ldlework> jtojnar disasm heh what are we doing wrong
<ldlework> Built successfully.
pxc has quit [(Ping timeout: 248 seconds)]
pxc has joined #nixos
<disasm> ldlework: cool :)
<ldlework> There must be something about overriding meta maybe?
<ldlework> disasm just with editing the git repo directly. The override still doesn't work.
<infinisil> drp: Hmm, I see dwarf-fortress in my nix-env -qaP
<disasm> ldlework: can you PR that?
scribbler has quit [(Ping timeout: 258 seconds)]
pxc has quit [(Ping timeout: 240 seconds)]
<drp> infinisil: do you have unfree enabled? when I do -qaP I get dwarf fortress utils
<drp> but not dwarf fortress
<infinisil> Ahh yeah i have unfree enabled
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dustinlacewell opened pull request #30672: Enable darwin platforms for dotnetPackages.FSharpAutoComplete (master...master) https://git.io/vdN2C
NixOS_GitHub has left #nixos []
<ldlework> disasm does that work for config.nix?
<ldlework> where does the "nixpkgs" name come from etc? I'm not sure how to use this example.
<ldlework> oh I see
<ldlework> the attrset in config.nix is the one assigned to nixpkgs.config
pxc has joined #nixos
glenn has joined #nixos
<ldlework> disasm https://gist.github.com/dustinlacewell-wk/1c8d3d2408896ae2f169f5ccbb13f28a now I get: value is a function while a set was expected
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jonafato opened pull request #30673: python3.6: 3.6.2 -> 3.6.3 (master...python-3.6.3) https://git.io/vdN2K
NixOS_GitHub has left #nixos []
<ldlework> I feel like I did it right
<simpson> ldlework: I don't know this corner of nixpkgs, but do you know about --show-trace? It will give you a traceback, which might help.
<ldlework> I'm getting a traceback but I don't understand what they're telling me really
<simpson> Yeah, I know that feeling. Normally this is the point where I step away from the computer for a bit.
<ldlework> I don't think I'm fatigued, I simply haven't learned what I need to to understand how to utilize the tracebacks.
<disasm> ldlework: yeah, I'm getting it too... trying to track it down
<ldlework> disasm it isn't the oldAttrs function being passed to overrideAttrs, because changing that to a set you get the same error
pxc has quit [(Ping timeout: 240 seconds)]
<ldlework> its the only function in our override :P
<ldlework> disasm apparently .override is for overriding the arguments passed to a package module
<ldlework> not for overriding its attrs!
<ldlework> Oh I see it accepts 'overrides' as a parameter
<ldlework> disasm could it be because the FSharpAutoComplete package is defined in terms of buildDotnetPackage ?
<ldlework> And so the structure of the package definition is different than we expect or something?
<ldlework> Oh I think I got it
<ldlework> hmm nope, I think I just overwrote the package lol
<ldlework> hmm that just creates a mkDerivation
<disasm> ldlework: I'm stuck... maybe check with clever
<ldlework> Yeah I tried so many things
schoppenhauer has quit [(Ping timeout: 240 seconds)]
<infinisil> ldlework: Open `nix-repl '<nixpkgs>'`
<ldlework> infinisil ?
<infinisil> nix-repl> dotnetPackages.override
schoppenhauer has joined #nixos
<infinisil> «lambda»
pxc has joined #nixos
<infinisil> nix-repl> dotnetPackages.override { overrides = self: super: {}; }
<infinisil> error: value is a function while a set was expected
<infinisil> The only function we have is self: super: {}
<ldlework> Yeah figured that out :)
<ldlework> infinisil do you know the right answer overall?
<infinisil> What's the problem currently
<ldlework> infinisil write an override that adds darwin to dotnetPackages.FSharpAutoComplete
<ldlework> dotnetPackages.FSharpAutoComplete.meta.platforms that is
<adisbladis> How do people usually deploy secrets to nixops managed deployments?
<ldlework> adisbladis what do you mean more specifically? Where is NixOS in this question?
<infinisil> ldlework: Does dotnetPackages.FSharpAutoComplete.overrideAttrs (old: { meta.platforms = [ "foo" ]; }) work?
<adisbladis> ldlework: I have a deployment done with nixops, and I have a unique private key per machine in the deployment. How would I go about managing the private keys?
<ldlework> infinisil edit this to show what you mean and I'll try it, https://gist.github.com/dustinlacewell-wk/14cb3b5db420e1e861e343766850a524
<ldlework> we've tried various variations of overrideAttrs
<ldlework> infinisil https://gist.github.com/dustinlacewell-wk/14cb3b5db420e1e861e343766850a524 still complains that it doesn't want to evaluate
<ldlework> Package ‘FSharp.AutoComplete-0.18.2’ in /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/pkgs/top-level/dotnet-packages.nix:537 is not supported on ‘x86_64-darwin’, refusing to evaluate.
<adisbladis> Or maybe I should just try a different way forward with these keys..
<infinisil> ldlework: overrideAttrs (old: { meta.platform.... })
<ldlework> adisbladis what is your primary key? You'll have to put those keys on the server one way or another.
pxc has quit [(Ping timeout: 252 seconds)]
<infinisil> overrideAttrs takes a function
<ldlework> infinisil same complaint
<infinisil> adisbladis: What do you mean by manage them? nixops does that for you
<ldlework> adisbladis sorry primary concern* lol
<adisbladis> infinisil: They cannot be a part of the deployment, it's too sensitive.
<infinisil> Ahh, you mean private keys on the server for other stuff, I thought you meant the deployments private keys for the serve
<ldlework> adisbladis you want the servers to use the keys but not have them?
<ldlework> sounds like a paradox :)
<adisbladis> ldlework: No I want the server to have the keys :) I don't want ME or anyone else deploying to have them
<infinisil> adisbladis: activationScript?
<adisbladis> I think just speaking out loud made me think of a good solution.
<adisbladis> infinisil: Sounds good :)
<ldlework> infinisil so yeah, making it function doesn't help
pxc has joined #nixos
<ldlework> Ill try figuring it out with nix-repl like you showed
<infinisil> ldlework: Um, it works for me?
<infinisil> How exactly are you testing if it works and what is the error you get
<ldlework> infinisil I have https://gist.github.com/dustinlacewell-wk/14cb3b5db420e1e861e343766850a524 in config.nix and I'm adding pkgs.dotnetPackages.FSharpAutoComplete to home.packages
<ldlework> infinisil what config.nix did you use for it to work?
<infinisil> I see
<infinisil> the same as you did, but I didn't try to build the package, i just checked if it evaluated correctly
pxc has quit [(Ping timeout: 260 seconds)]
<infinisil> You could probably just add allowUnsupportedSystem = true; to config.nix and be done with it
<ldlework> pffff
<ldlework> Something tells me it has to do with the thing we want to override being in the meta key
<ldlework> but I'm just guessing blindly
<ldlework> don't you wanna know?!
<ldlework> #> nix-repl --help
<ldlework> Usage: nix-repl [--help|--version]
<ldlework> lol...
<infinisil> That is a really weird issue
lukec has quit [(Ping timeout: 246 seconds)]
dbmikus has quit [(Ping timeout: 260 seconds)]
<ldlework> Yeah I've been trying a lot of things
<ldlework> infinisil I wish we could inspect the full structure of the FSharpAutoComplete package when it comes out of buildDotnetPackage
pxc has joined #nixos
<ldlework> So we could be sure about what attribute is supposed to be overriden
<ldlework> It seems to call mkDerivation right?
<ldlework> so we actually need to overwrite whatever mkDerivation outputs
<infinisil> You can
<infinisil> with trace
<infinisil> builtins.trace
sroedal has joined #nixos
xelxebar has quit [(Ping timeout: 248 seconds)]
<ldlework> infinisil that forces evaluation of the thing you pass to it
<ldlework> and the whole problem is that it is refusing to evaluate on darwin :P
<infinisil> well yeah, but you can debug with it
lukec has joined #nixos
<infinisil> inspect attrsets and such
<ldlework> I mean the closest you can get is dotnetPackages
dbmikus has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #30674: nixos/services.nginx: Fix globalRedirect example (master...patch-1) https://git.io/vdNVo
NixOS_GitHub has left #nixos []
pxc has quit [(Ping timeout: 260 seconds)]
<ldlework> infinisil hmm
<ldlework> stdenv.mkDerivation (attrs // (builtins.removeAttrs attrsOrig [ "buildInputs" ] ))
pxc has joined #nixos
<ldlework> infinisil wont this merge the original attributes over the override attributes?
hellrazor has joined #nixos
<ldlework> disasm how do I get home-manager to use my cloned nixpkgs?
sroedal is now known as srodal
dbmikus has quit [(Ping timeout: 252 seconds)]
kiloreux has joined #nixos
kiloreux__ has joined #nixos
Wizek has quit [(Quit: Connection closed for inactivity)]
<infinisil> Well, that's really really really odd
<infinisil> I have some traces now that check if foo has the meta attribute, and output that
<infinisil> oh wait
slack1256 has quit [(Remote host closed the connection)]
<infinisil> I probably should sleep, I'm doing stupid stuff
<ldlework> lol
pxc has quit [(Ping timeout: 252 seconds)]
<infinisil> Ohh
<ldlework> its the // no?
<ldlework> its backwards
srodal has quit [(Ping timeout: 246 seconds)]
<ldlework> in buildDotnetPackage
srodal has joined #nixos
<infinisil> You can't override meta :/
<ldlework> hmm maybe not i dunno. im out at sea.
<ldlework> oh?
<ldlework> its evaluated before overrides?
hellrazor has quit [(Ping timeout: 240 seconds)]
<infinisil> not sure why, but it has nothing to do with dotnetPackages
<infinisil> overriding meta does'nt work, at all
<ldlework> I see
<ldlework> That's probably intentional? no idea.
<ldlework> infinisil oh well I made the PR here, https://github.com/NixOS/nixpkgs/pull/30672
<infinisil> i mean we're not using overrideDerivation here
<infinisil> not sure what that functions for exactly anyways
<infinisil> that one seems to pass meta along
<infinisil> Well whatever, I'll go to bed, see ya!
glenn has quit [(Remote host closed the connection)]
ghostyyy has joined #nixos
<ghostyyy> hi, can someone help me do something? i have an encrypted root with a detached header and /boot on a thumb drive, but i cant seem to get the bootloader to find my header even though it is on the thumb drive
<ghostyyy> is it that the boot.initrd.luks.devices.<name>.header file refers to files inside of the initramfs? is it possible to include specific files in that?
<clever> ghostyyy: you will need to add a script somewhere to tell the initrd to mount the usb stick, copy the header into the ramdisk, and then umount it
endformationage has joined #nixos
<clever> ghostyyy: is the luks flagged as before or after lvm?
<ghostyyy> i dont have the prelvm flag set
<clever> default is before
<ghostyyy> i also dont use lvm
<ghostyyy> (if thats relevant)
<clever> boot.initrd.preLVMCommands = concatStrings (mapAttrsToList openCommand preLVM);
<clever> so the luks will be opened in the preLVMCommands phase
<clever> ghostyyy: my guess, change the luks to preLVM = false;, then set
<clever> boot.initrd.preLVMCommands = ''
<ghostyyy> the script that mounts the usb stick and copies the header - willthat run on every boot?
<clever> mount /dev/sd?? /somewhere
<clever> cp /somewhere/header /header
<clever> umount /somewhere
<clever> '';
<clever> ghostyyy: by changing the luks to be post lvm, it will be opened at line 198
<ghostyyy> i see, thank you very much!
<clever> ghostyyy: and then you can safely insert some commands before it, at 189
<clever> that will make the header available at /header within the initrd
<clever> so you can just set .header = "/header";
<ghostyyy> will there be some support in the future for directly including files into the initramfs? thats what i do now for gentoo, i have a little script to generate one and it has all of my headers and etc already in it
<ghostyyy> ah thats great
<clever> the gentoo version will embed the file into the initrd when you do "nixos-rebuild switch"
<clever> so it will be world readable within your /boot folder
<clever> nixos version, oops!
<ghostyyy> ah, i guess that might be a hassle - old headers can be bad to have lying around/publicly available
<clever> yeah
<clever> and an advesary could just archive the /boot and ciphertext at once, and steal your pw later
<clever> which leaves little point in having it detatched
<ldlework> clever disasm thinks you might clever enough to figure out why you can't override dotnetPackages.FSharpAutoComplete.meta.platforms in config.nix
<ldlework> Maybe you might have caught some of the discussion
<clever> ldlework: meta has a special override function
<ldlework> Oh?
<clever> let me see...
<clever> /home/clever/apps/nixpkgs/lib/meta.nix:/* Some functions for manipulating meta attributes, as well as the
<clever> 15 addMetaAttrs = newAttrs: drv:
<clever> addMetaAttrs {description = "Bla blah";} somePkg
<ldlework> huh
<ldlework> clever and you do that from inside config.nix?
<clever> ldlework: i cant see why not
<clever> ldlework: ah, i see the problem
<clever> ldlework: the platform stuff, stops you from ever reading the original dotnetPackages.FSharpAutoComplete
<clever> so you cant read it, to make an override
<ldlework> Yeah that's what I thought!
<clever> one min
glenn has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #30675: go-ethereum service: init (master...service/go-ethereum) https://git.io/vdNrq
NixOS_GitHub has left #nixos []
<clever> ldlework: in that case, it takes a name, and returns a bool, so you can manage allowUnfree on a per-name basis
<clever> else if !allowUnsupportedSystem && !allowBroken && attrs.meta.platforms or null != null && !lib.lists.elem system attrs.meta.platforms then
<clever> { valid = false; reason = "broken"; errormsg = "is not supported on ‘${system}’"; }
<clever> ldlework: looks like such a thing doesnt exist yet, your only option is either allowBroken or allowUnsupportedSystem in config.nix
<clever> or modify the package directly
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/e458c44c2b (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
<ldlework> i submitted a pr
<ldlework> not sure about the velocity on those
kiloreux has quit [(Ping timeout: 240 seconds)]
kiloreux__ has quit [(Ping timeout: 240 seconds)]
<ldlework> Hmm looks like the binary explodes anyway.
<ldlework> lame.
<ghostyyy> clever, question: in the prelvm command, is udev started yet? (or, more specifically: do the /dev/disk/by-uuid/<uuid> nodes exist at that point?)
oida has quit [(Ping timeout: 252 seconds)]
pxc has joined #nixos
<ghostyyy> ooh i wonder if boot.loader.grub.extraInitrd might work too
<ghostyyy> The path to a second initramfs to be supplied to the kernel. This ramfs will not be copied to the store, so that it can contain secrets such as LUKS keyfiles or ssh keys. This implies that rolling back to a previous configuration won't rollback the state of this file.
oida has joined #nixos
iqubic has joined #nixos
<iqubic> People of nixos: it is time for me to partition my new laptop. Can I have some help with this?
<iqubic> What filesystem should I use?
<adisbladis> iqubic: ZFS of course ;)
<ghostyyy> i like ZFS too
pxc has quit [(Ping timeout: 248 seconds)]
<iqubic> Why do you recomend that?
<ghostyyy> i have been using it for many years now on many different systems, including os x and freebsd
<ghostyyy> it is actually (across unix-like systems at least) the most supported filesystem
<clever> ghostyyy: line 179-185 handled all of udev
<ghostyyy> except for FAT and NTFS
<adisbladis> iqubic: Imo full data checksumming should be a base requirement nowadays so choices are esentially btrfs or zfs.
<adisbladis> And I've had some issues with btrfs in the past
<ghostyyy> clever, ah thank you!
redCOAT_ has joined #nixos
<iqubic> Why is ext4 bad?
<ghostyyy> no checksums, snapshots
<adisbladis> iqubic: It does not checksum your data. It does not do snapshotting.
<adisbladis> It will eat your homework.
<ghostyyy> i use ext4 for my /boot
<iqubic> Do I need to dual bootw
<adisbladis> iqubic: Granted ext4 will perform a bit better, but if the fs can't be trusted then performance doesn't matter.
<ghostyyy> i actually dont use any partition tables except for that one partition
srodal has quit [(Ping timeout: 248 seconds)]
<adisbladis> ghostyyy: Same here. ext4 /boot and the rest is zfs with subvolumes.
<clever> iqubic: for zfs, i would keep a seperate /boot partition
<ghostyyy> :D
<iqubic> I may do that
<clever> iqubic: i dont trust grub with zfs, and it has had problems in the past
<adisbladis> And grub tends to lag behind on features you may want to use (like native encryption).
<clever> iqubic: and if you want to see an example of how to do a nixos install with zfs, https://github.com/cleverca22/nix-tests/blob/master/kexec/justdoit.nix#L38
<adisbladis> The wiki article is pretty good https://nixos.wiki/wiki/NixOS_on_ZFS
<iqubic> Do I need to dual boot?
<adisbladis> iqubic: Dual boot with what?
<adisbladis> Why would you need to?
<iqubic> window10
<iqubic> I need adobe lightroom
<adisbladis> iqubic: I don't understand the question. If you need to dual boot or not is up to you.
<iqubic> How hard is it to install window10 in a vm?
<adisbladis> 5.
<iqubic> Out of.....?
<adisbladis> Just 5. Not out of anything.
<iqubic> Do I need a windows10 license?
<iqubic> How do I check if I have one?
<redCOAT_> iqubic download software to check the original key on the machine already using windows 10
<iqubic> Also, how well does Adobe Lightroom work on a vm?
<redCOAT_> iqubic depends on your system... cpu, storage, memory
<iqubic> Also, redCOAT_ what tool is that?
<redCOAT_> iqubic i don't remember the tool i used i was little tipsy went through 3 computers that deal to fix one
<redCOAT_> do a google search
<redCOAT_> day *
<ldlework> Hmm, the mono tooling seems very broken on OSX
<iqubic> My bios gives me my windows license. Do I trust that?
betaboon has quit [(Ping timeout: 240 seconds)]
<redCOAT_> iqubic probably not
<redCOAT_> call and verify it with microsoft
<iqubic> I might do that
<iqubic> Can I install a windows vm without having a license key?
<ldlework> clever, What happens when I use anything mono related with Nix on OSX: https://gist.github.com/dustinlacewell/efb91390a6e461e4296b19e4bf7ecf90
<ldlework> Should I open an issue against nixpkgs?
<ghostyyy> iqubic, you can, if youre willing to do...... certain things.....
<ghostyyy> by which of course i mean purchasing a license key from a certified vendor
<clever> ldlework: sure
<iqubic> Well. This sucks. The live usb is not recognizing my laptop's touchpad
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dustinlacewell closed pull request #30672: Enable darwin platforms for dotnetPackages.FSharpAutoComplete (master...master) https://git.io/vdN2C
NixOS_GitHub has left #nixos []
<iqubic> I can't interact with kde plasma in the live environment.
iyzsong has joined #nixos
<iqubic> What do I do?
<ghostyyy> do you have a USB mouse?
<ghostyyy> touchpads never seem to work well on linux, at least in my experience
<iqubic> I can try a usb mouse
<iqubic> usb mouse works
<ghostyyy> you might be able to get the touchpad working later
<iqubic> How?
<iqubic> Is that going to be hard?
<clever> it might even be automatic
<iqubic> What do you mean, clever?
<clever> nixos-generate-config may auto-detect it and make the config for you
iqubic has left #nixos ["Quit"]
Mateon2 has joined #nixos
iqubic has joined #nixos
glenn has quit [(Remote host closed the connection)]
<iqubic> So I have a few windows partitions, and I cannot tell what is what.
jacob has joined #nixos
endformationage has quit [(Quit: WeeChat 1.9.1)]
jacob is now known as Guest80156
glenn has joined #nixos
<clever> iqubic: mount /dev/sd?? -v -o ro -t ntfs /mnt/ && ls /mnt/
<iqubic> lsblk is giving me some weird results
glenn has quit [(Remote host closed the connection)]
<iqubic> Where did the rest of /dev/sda go? http://dpaste.com/2FND28Z
<clever> iqubic: what does "fdisk -l /dev/sda" say?
ma27 has joined #nixos
<clever> looks like you simply have unpartitioned space
<clever> about half of the disk is in use
iyzsong has quit [(Ping timeout: 240 seconds)]
<iqubic> Also, I have a weird issue. On both Windows, and nixos, the numlock light is reversed. When the light is OFF numlock is ON, and vice versa.
<iqubic> clever: Yeah, that's the Windows stuff.
<iqubic> What is up with this numlock indicator being reversed on BOTH OSes?
<clever> could be a hardware problem
<iqubic> But how would I fix that?
srodal has joined #nixos
<iqubic> I just purchased this laptop earlier today. That would be a stupid problem to have on day one
<clever> iqubic: have you checked google to see what others have siad about that model?
<iqubic> no.
<clever> that would be the next thing to check
<ldlework> I suppose for now I can just use 🐳 to study F#
<iqubic> I have a new Lenovo Ideapad 320 15
<iqubic> And it should be working, but it isn't
<iqubic> CapsLock works just fine.
<clever> iqubic: if you connect up a usb keyboard, what does its numlock do?
<iqubic> I'm not sure yet.
<iqubic> Is it safe to unplug the live USB installation media after I have booted?
<clever> with the default options, no
<clever> iqubic: you have to add copytoram to the kernel params when you boot, then you can unplug it
<ghostyyy> that is also a GRUB menu option i think
<ghostyyy> or, it is on mine at least
<clever> ghostyyy: ah, i see that in the source
<iqubic> What does it mean for numlock to be on?
<clever> iqubic: it means the numpad will type numbers instead of arrow keys
<iqubic> Oh, so this is working correctly. My understanding was just backwards
hellrazor has joined #nixos
<ghostyyy> hm, well, i have my disk decrypting now
<iqubic> It
<iqubic> It
<ghostyyy> but it seems to look for the ZFS root pool before it asks me to decrypt it?
<ghostyyy> i hope that is the preLVM setting thats doing that
<clever> ghostyyy: the zfs always happens after the postlvm i believe
<iqubic> it's been a while since I've had a machine with numlock key and an indicator light too.
<ghostyyy> ah, so ill turn off preLVM = false
<iqubic> Now, what is going on with my current partitioning scheme?
<clever> ghostyyy: line 446 of stage-1 is where it mounts all filesystems
dbmikus has joined #nixos
<clever> iqubic: do you want to keep windows?
<iqubic> I'd like to try.
<iqubic> I haven't pulled out my windows license key yet, so I don't want to nuke Windows yet.
<iqubic> s/pulled/found/
<clever> iqubic: you will need a new partition for nixos, which will probably be sda4, then mount sda4 to /mnt/ and sda1 to /mnt/boot/, and run nixos-generate-config
<clever> and if your using zfs, mounting it to /mnt is a bit more complex
p4cman has joined #nixos
<iqubic> Do I want to use zfs?
<adisbladis> iqubic: ZFS or btrfs
<iqubic> Which is better out of those two?
<adisbladis> Up to you, zfs is a bit more of a learning curve & departure from traditional file systems
<clever> i like zfs more then btrfs
* adisbladis too
<clever> iqubic: some steps will have to be modified, and dont use sfdisk like this guide showed
<iqubic> How hard is it to get a working nixos and zfs setup, with windows10 dual boot?
<clever> iqubic: fairly easy
<iqubic> Really?
<clever> iqubic: to start with, use fdisk to create an sda4 that uses up the rest of the drive
demego has joined #nixos
<iqubic> clever: I actually want to leave some space free, to create a partition that can be I can read to and write to from both Windows and Nixos.
<clever> then make sda4 smaller
<iqubic> Yeah, I will.
<clever> then you will need to pick a name for the zfs pool
<clever> and run "zpool create -o ashift=12 -o altroot=/mnt NAME /dev/sda4"
<iqubic> What I want to do is leave 10 G unallocated at the end of my sda4 block.
<clever> which will format sda4 to be a zfs device
<clever> if you already know you want 10gig, it may be simpler to make sda4 10gig, then make sda5 take the rest
<adisbladis> iqubic: That ashift=12 is because disks lie about sector size
<iqubic> I will do that. Then I can reformat sda4 from windows, and then add a section to my configuration.nix.
<adisbladis> Actually zfs has a lot of disk ids hard coded to set a sane default.
<adisbladis> But my disk is missing from that list even though it has 4k sectors.
<adisbladis> Which reminds me. I should make a PR with that.
ma27 has quit [(Ping timeout: 260 seconds)]
<iqubic> When using zfs do I need to create two partitions, on for home, and one for root?
<clever> iqubic: all of that goes inside one partition
<iqubic> Also, what should I name the zpool?
<clever> i name the pool after the hostname
<iqubic> I haven't set my host-name yet.
<clever> sometimes i just call it "laptop"
<clever> but it should be unique when you make a second one
<clever> zfs create -o mountpoint=legacy rpool/home
<iqubic> Is there a limit to the length of a hostname?
<iqubic> clever: I don't need to zpools do I?
<iqubic> s/to/two/
<clever> after you have the pook, you want to create a few filesystems inside it, i usually make one for root, home, and nix
<clever> you only need 1 zpool
<iqubic> Cool. Time to make a zpool.
<hyper_ch> and after that an encrypted data set that can then be used as encrypted root?
<iqubic> the zpool command is not found. :(
<iqubic> Do I need to install that?
<clever> iqubic: add boot.supportedFilesystems = [ "zfs" ]; to /etc/nixos/configuration.nix and run "nixos-rebuild test"
<iqubic> On the livesystem?
<clever> yes
<hyper_ch> clever: do you know why zfs isn't on the live iso by default?
<clever> hyper_ch: licensing problems
glenn has joined #nixos
<clever> ah, it got moved there, not removed
<iqubic> Building the system configuration is taking a while after I added zfs support. Is that an issue?
<iqubic> Wait, there it goes.
<clever> iqubic: just give it time
<hyper_ch> clever: :( if everyone was just gplv3 live could be so simple
<iqubic> So, I have a configuration.nix file from my old laptop. Can I use that on my new machine?
<clever> iqubic: yeah, just copy it to /mnt/etc/nixos/ after you have mounted everything
<iqubic> Cool. I will need to change the version number thing.
ma27 has joined #nixos
<clever> yeah, this is the only time its right to update stateVersion
glenn has quit [(Ping timeout: 246 seconds)]
<drp> licensing issues which Ubuntu thinks don't exist
<iqubic> yeah, I'm going to update stateVersion to tell nix that this new machine started life on 17.09 and not 17.03
<drp> are a bunch of distros just waiting for Cannonical to get sued and win/lose before deciding on zfs?
<iqubic> zpool created.
<iqubic> Now what?
<clever> zfs create -o mountpoint=legacy rpool/home
<clever> iqubic: use a command like this to make 3 filesystems, called home, nix, and root
<clever> then:
<clever> mount -t zfs rpool/root /mnt/
<iqubic> Why mountpoint=legacy?
<clever> mkdir -pv /mnt/nix /mnt/home
<clever> mount -t zfs rpool/home /mnt/home
<clever> mount -t zfs rpool/nix /mnt/nix
<clever> iqubic: nixos requires legacy mountpoints to boot
<iqubic> I see.
<iqubic> That
<iqubic> That is odd.
<clever> and also mount sda1 to /mnt/boot/ (and mkdir that first)
glenn has joined #nixos
<avn> Also ensure that dedup is off, and lz4 compression is on
<iqubic> Also, I'm still getting used to this bigger keyboard. I may hit the enter key at weird times.
<iqubic> avn: Is that for me?
<clever> iqubic: if you want lz4 compression: zfs set compression=lz4 POOLNAME
<clever> dedup is off by default
chakra has quit [(Quit: Konversation terminated!)]
<iqubic> Do I want lz4 compression? I don't know what that even is.
<hyper_ch> (dedup requires a lot of ram while lz4 is hardly noticeable as system impact)
<clever> iqubic: lz4 will compress all files you write to disk
<iqubic> I don't know if I want tha.
<iqubic> Should I get that?
<clever> iqubic: you usually want some compression
<iqubic> I'll do that then.
<clever> iqubic: after mounting everything, including boot, you can run "nixos-generate-config --root /mnt" to generate the config
<clever> then copy configuration.nix over
glenn has quit [(Remote host closed the connection)]
dbmikus has quit [(Ping timeout: 255 seconds)]
<iqubic> Alright, time to copy over my configuration.nix
<ghostyyy> does anyone know anything about the boot.loader.grub.extraInitrd option?
<ghostyyy> i assumed that it just overlayed the contents of the initramfs in its parameter over the one nix generates
srodal has quit [(Quit: WeeChat 1.9.1)]
<ghostyyy> i looked through that file earlier but it doesnt seem to tell me much
<ghostyyy> i can also see that the file gets added to the initrd line in grub.cfg
<clever> ghostyyy: that line of the config goes into an xml file
<ghostyyy> https://www.gnu.org/software/grub/manual/grub/grub.html#initrd this doesnt even mention multiple initrd files as being possible
<clever> ghostyyy: it looks like the path is added directly to the grub config
<ghostyyy> yeah, what i dont understand though is what actually the initramfs looks like when you have two
<ghostyyy> i assume that it overlays it? but then why am i getting an error if thats the case...
<clever> the kernel will just unpack each to a tmpfs, in order
<clever> and if any files get in the way, it overwrites them
<ghostyyy> is there some kind of transformation done on the paths?
<clever> nope
<ghostyyy> hm
<ghostyyy> i am very confused then
<clever> the file you refer to must be in a region that grub can read
<ghostyyy> well, its in /boot
<clever> and must already be a full cpio archive, gziped
<iqubic> Now that I have copied over my configuration.nix and made the proper changes, do I go ahead and run "nixos-install"?
<ghostyyy> it is indeed that
simukis has joined #nixos
<ghostyyy> maybe i am generating it wrong
<ghostyyy> although, it works fine with gunzip and cpio -i
<clever> you have to set the cpio archive to the newc format
justbeingglad has joined #nixos
<clever> the man page says how
<ghostyyy> ah, i see a "premature end of archive" error
justbeingglad has left #nixos []
<ghostyyy> with the --verbose flag, despite the fact that it works
<iqubic> Will my Windows10 stuff go out the window (lol) when I install nixos?
<clever> iqubic: if you install things properly, it wont
<iqubic> Can I run "nixos-install" now?
<clever> yeah, i believe its ready for that
<iqubic> That's going to take a while.
<iqubic> I have a lot of stuff to be installed globally.
<jtojnar> how does php derivation work?
<iqubic> What does config.networking.hostId do, and why does zfs want me to set that?
<jtojnar> I do not see any mentions of flags or cfg
<clever> iqubic: zfs uses the hostid to figure out what system last mounted a pool
<clever> iqubic: the man page for configuration.nix tells you how you can generate a hostId, just search for hostId with /
<iqubic> So what should I set it to?
<clever> jtojnar: it reads the config you set in config.nix or nixpkgs.config
<iqubic> So I'll just generate a random number than.
<clever> iqubic: yep
<hyper_ch> it's just a 8 character hex number... you can use anything you like :)
<hyper_ch> [0-9a-f]
<iqubic> What? just what? http://dpaste.com/1VYY9B4
<iqubic> What is going on there?
<hyper_ch> show your configurationnix
<clever> iqubic: did you add something starting with config?
<iqubic> yes.
<iqubic> config.networking.hostId
<clever> remove the config. prefix on that line
<clever> its just networking.hostId
<iqubic> Now we wait a long while
glenn has joined #nixos
<hyper_ch> I have started just to install the essential things during the live installer session, then reboot in the installed system and install all of the rest
<hyper_ch> so I can see quickly if the base installation went ok :)
<iqubic> I'm doing all of everything right now.
<jtojnar> clever: how does the config even work? does hydra build exponential number of all possible configurations?
glenn has quit [(Ping timeout: 248 seconds)]
<clever> jtojnar: hydra only pre-builds one arrangement, so any changes you do get built locally
<jtojnar> clever: I added a flag but there was no rebuild of PHP
<hyper_ch> well, I just noticed compiling vbox on the live iso often does not work :)
<clever> jtojnar: where did you add the flag, and where are you referencing php?
Isorkin has quit [(Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)]
<jtojnar> clever: to configuraion.nix: nixpkgs.config.php.bz2 = true;
<jtojnar> and I just use default php through phpfpm
srodal has joined #nixos
<clever> jtojnar: oh, its using composableDerivation.composableDerivation
<clever> so its probably configured the same way as vim
<clever> but i dont see the right configure function...
andymandias has quit [(Ping timeout: 252 seconds)]
mrkgnao has joined #nixos
<jtojnar> oh, the rebuild did not happen because I tried overriding the package manually before
<iqubic> what the hell?!?!?!
<clever> jtojnar: i cant see an easy way to just turn on bz2 support
<iqubic> So nixos install go for long time, and fails.
<clever> iqubic: fails with what error?
andymandias has joined #nixos
<iqubic> I fix the issues, and ran "nixos install" again.
<iqubic> New error: "error: writing to file: No space left on device
<clever> iqubic: df -h, what is full?
<iqubic> The nix-store
<clever> iqubic: can you pastebin the full df output?
<clever> yeah, its the tmpfs for the live image
<clever> iqubic: how much ram does this machine have?
<iqubic> How do I check?
<clever> iqubic: free -m
<iqubic> And where do I look?
<clever> under total
glenn has joined #nixos
<iqubic> 8GB of Ram
<clever> iqubic: mount -o remount,size=7G /nix/.rw-store
<iqubic> and back to the install
<srodal> I set nixPath to point to a local checkout of nixpkgs which is at channels/nixos-unstable, but after "nixos-rebuild switch --upgrade" nix-env still installs old packages from 17.09, any clues?
<clever> srodal: nix-env basically ignores NIX_PATH
<srodal> :'(
<srodal> so how do I get nixos to build a profile based on a local checkout of nixpkgs?
<clever> srodal: for nix-env, you can do: nix-env -f '<nixpkgs>' -iA firefox
<clever> which forces it to look in nixpkgs, within NIX_PATH
<srodal> yeah, that works
glenn has quit [(Remote host closed the connection)]
<srodal> but actually I'd like to do a system wide install based on a local checkout of nixpkgs if that's possible
glenn has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jpotier opened pull request #30677: nixos/xl2tpd: add the xl2tpOptions (master...upgrade-nix-module-xl2tpd-final) https://git.io/vdN63
NixOS_GitHub has left #nixos []
mkoenig has quit [(Ping timeout: 248 seconds)]
<clever> srodal: you will probably want to remove the old nixpkgs within nix-channel at a minimum
Ivanych has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jpotier opened pull request #30678: nixos/libreswan: add missing runtime dependencies (master...upgrade-nix-module-libreswan) https://git.io/vdN6R
NixOS_GitHub has left #nixos []
mkoenig has joined #nixos
jensens has joined #nixos
Isorkin has joined #nixos
<srodal> clever: ah, that seems to have gotten me a bit closer
<srodal> clever: now however nix-env complains about 'matches no derivations' for just about any package, which I guess might be related to there not being a manifest file in /etc/nixos ...
<clever> it doesnt use a manifest file
<srodal> what are the manifest files for?
<clever> [clever@amd-nixos:~]$ cat .nix-defexpr/test/foo/default.nix
<clever> import /home/clever/apps/nixpkgs
glenn has quit [(Remote host closed the connection)]
<clever> srodal: by default, nix-env will only look in ~/.nix-defexpr
iqubic has quit [(Ping timeout: 260 seconds)]
<srodal> which seems to be rather empty atm except for channels and channels_roots symlinks pointing to a folder with a single manifest.nix file containing an empty array ("[ ]")
dbmikus has joined #nixos
<clever> srodal: nix-env will only use things that contain a default.nix
<clever> above is an example of how to make your own entry
b has quit [(Quit: Lost terminal)]
iqubic has joined #nixos
<iqubic> So my machine hung in the middle of installing nix, and I had to reboot. How do I mount zfs partitions again?
<iqubic> I need to mount my zfs things again.
<clever> iqubic: zpool import /dev/sda? -o altroot=/mnt/
<clever> and re-run all of the mount commands
<avn> zpool import, mount -t zfs/root /mnt
<clever> oops, give a pool name, not a device name
<iqubic> What does that do?
<clever> import makes the pool available
<clever> zpool import NAME -o altroot=/mnt/
<clever> mount NAME/root /mnt -t zfs
<iqubic> but how do I mount it?
<clever> mount NAME/home /mnt/home -t zfs
<clever> mount NAME/nix /mnt/nix -t zfs
<clever> mount /dev/sda1 /mnt/boot/
<srodal> clever: alright, a symlink to nixpkgs from .nix-defexpr seems to help
<clever> srodal: yeah, that should also work
srodal has quit [(Quit: WeeChat 1.9.1)]
srodal has joined #nixos
<srodal> clever: great, thanks
glenn has joined #nixos
orivej has joined #nixos
<fearlessKim[m]> Just want to make sure: if A has a setupHook that installs envHook+=(hookA) and A is a dependency of B, is hookA run on B ?
<clever> fearlessKim[m]: i think so
Thra11_ has joined #nixos
dbmikus has quit [(Ping timeout: 252 seconds)]
oahong has quit [(Ping timeout: 258 seconds)]
iqubic has quit [(Ping timeout: 260 seconds)]
<fearlessKim[m]> arf my understanding was no :/ in setup.sh envHook is called via ${nativePkgs+"${nativePkgs[@]}"}; do
<fearlessKim[m]> _addToNativeEnv "$i" (calls runHook envHook
<fearlessKim[m]> done
oahong has joined #nixos
oahong has quit [(Changing host)]
oahong has joined #nixos
simendsjo has joined #nixos
k2s has joined #nixos
k2s has quit [(Client Quit)]
guillaum2 has joined #nixos
glenn has quit [(Remote host closed the connection)]
<guillaum2> Pull request question: I want to edit a package (libraries/alembic) for which I'm the maintainer. It actually depends on `hdf5` and it will work best with a custom build of hdf5 (which enable thread safety). How do I patch that? I can change the alembic/default.nix to include the changes to hdf5 directly. I can change `all-packages.nix` to override the hdf5 specifically for alembic, or I can introduce a
<guillaum2> new `hdf5_threadsafe` package in `all-packages.nix` and make alembic depends on it. Which solution is the recommanded one? (Note: I cannot simply patch the original `hdf5` derivation because thread-safety have drawback in hdf5)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ma27 opened pull request #30679: pythonPackages.pandas: fix evaluation (master...fix-python-packages-pandas-eval) https://git.io/vdNPr
NixOS_GitHub has left #nixos []
ylwghst has joined #nixos
orbekk1 has quit [(Remote host closed the connection)]
orbekk1 has joined #nixos
hotfuzz_ has joined #nixos
fendor has joined #nixos
FRidh has joined #nixos
hotfuzz has quit [(Ping timeout: 248 seconds)]
<sphalerite> apt may break depending on the PATH environment variable 😱
<sphalerite> So glad I can usually use nix
simendsjo has quit [(Remote host closed the connection)]
thc202 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #30679: pythonPackages.pandas: fix evaluation (master...fix-python-packages-pandas-eval) https://git.io/vdNPr
NixOS_GitHub has left #nixos []
MP2E has quit [(Remote host closed the connection)]
FRidh has quit [(Ping timeout: 255 seconds)]
glenn has joined #nixos
boomshroom has quit [(Quit: Page closed)]
srhb has joined #nixos
mrkgnao has quit [(Ping timeout: 255 seconds)]
cyraxjoe has quit [(K-Lined)]
orivej has quit [(Ping timeout: 260 seconds)]
cyraxjoe has joined #nixos
glenn has quit [(Ping timeout: 260 seconds)]
iyzsong has joined #nixos
jb55 has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 1 new commit to release-17.09: https://git.io/vdN10
<NixOS_GitHub> nixpkgs/release-17.09 c5ce2b5 Pascal Wittmann: remove unused pythonPackages.requests_1
NixOS_GitHub has left #nixos []
glenn has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 1 new commit to master: https://git.io/vdN1E
<NixOS_GitHub> nixpkgs/master db4b872 Pascal Wittmann: remove unused pythonPackages.requests_1
NixOS_GitHub has left #nixos []
JosW has joined #nixos
glenn has quit [(Ping timeout: 248 seconds)]
mrkgnao has joined #nixos
<hoverbear> omg this font rendering is amazing
pxc has joined #nixos
Thra11_ has quit [(Ping timeout: 255 seconds)]
Isorkin has quit [(Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh force-pushed python-unstable from af6c775 to 3b31caa: https://git.io/v5aIf
<NixOS_GitHub> nixpkgs/python-unstable 3b31caa Frederik Rietdijk: pip 10 at 37f236de70fd22782c2948362ff0ed0ba2cf1d17
NixOS_GitHub has left #nixos []
FRidh has joined #nixos
Thra11_ has joined #nixos
<srhb> Has anyone set up runners declaratively with the nixos gitlab-runner service? I can't figure out which token to use, so my runner is just forbidden from doing anything.
pxc has quit [(Ping timeout: 240 seconds)]
FRidh has quit [(Client Quit)]
glenn has joined #nixos
k2s has joined #nixos
glenn has quit [(Ping timeout: 240 seconds)]
k2s has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 2 new commits to master: https://git.io/vdNMJ
<NixOS_GitHub> nixpkgs/master ba56345 Pascal Wittmann: vimpc: 0.09.0 -> 0.09.1
<NixOS_GitHub> nixpkgs/master 3c32c41 Pascal Wittmann: unibilium: 1.2.0 -> 1.2.1
NixOS_GitHub has left #nixos []
JosW has quit [(Quit: Konversation terminated!)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 1 new commit to master: https://git.io/vdNMs
<NixOS_GitHub> nixpkgs/master f94d6f7 Pascal Wittmann: pdf2djvu: 0.9.5 -> 0.9.7
NixOS_GitHub has left #nixos []
glenn has joined #nixos
fendor has quit [(Ping timeout: 260 seconds)]
datakurre has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] erickg opened pull request #30681: strongSwan: Enable EAP Radius plugin for remote authentication of dia… (master...master) https://git.io/vdNMV
NixOS_GitHub has left #nixos []
glenn has quit [(Ping timeout: 246 seconds)]
mrkgnao has quit [(Ping timeout: 248 seconds)]
Mic92_ has quit [(Quit: WeeChat 1.9.1)]
oahong has quit [(Ping timeout: 248 seconds)]
sigmundv has joined #nixos
betaboon has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] guibou opened pull request #30682: (Discussion) alembic: use threadsafe hdf5 and add (szip zlib) input format (master...guibou_alembic_hdf5) https://git.io/vdNDt
NixOS_GitHub has left #nixos []
oahong has joined #nixos
oahong has quit [(Changing host)]
oahong has joined #nixos
steshaw has quit [(Quit: Connection closed for inactivity)]
glenn has joined #nixos
Thra11_ has quit [(Ping timeout: 240 seconds)]
<sphalerite> hoverbear: which font rendering?
ison111 has quit [(Ping timeout: 240 seconds)]
<hoverbear> sphalerite: In my terminal
<sphalerite> how is it amazing?
<hoverbear> sphalerite: Looks gorgeous
Isorkin has joined #nixos
<sphalerite> clever: just thinking about the "make --optimise only link large files" thing again (https://botbot.me/freenode/nixos/msg/90842994/ ), wouldn't it also improve performance quite a bit (particularly on spinning disks) by avoiding reading the files themselves?
glenn has quit [(Ping timeout: 255 seconds)]
python476 has joined #nixos
<clever> sphalerite: that could reduce the number of links within .links/
<clever> sphalerite: i think having subdirs would also help a lot as well
<sphalerite> yes, but it could also make --optimise itself faster, couldn't it?
<clever> it would still have to scan the metadata of the dirs, but it can omit reading the data for the small files
fendor has joined #nixos
<clever> another difference that could be improved
<clever> what does --optimize do when reading a storepath thats already been optimized?
<clever> i highly suspect it doesnt notice, and re-reads all directory metadata on every run
<clever> and just skips because the hardlink count is >1
<clever> optimisePath_ will recursively call itself on any directories
dbmikus has joined #nixos
<clever> and if the link count is >1, it will check the inode hashmap
<sphalerite> huh, why do all the filenames in /nix/store/.links start with 0 or 1?
<sphalerite> oh, I'm guessing that's just an artifact of base32
<sphalerite> because 256 isn't divisible by 5
ylwghst has quit [(Quit: Lost terminal)]
<sphalerite> (and log2(32) is 5)
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c5ce2b53ac (from 65 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [(Client Quit)]
<clever> sphalerite: mine go as high as 1zzzy73
<sphalerite> the hash is just padded to the left rather than the right I guess
<clever> yeah
<sphalerite> Weird though, that's different from the store paths, isn't it
<sphalerite> because it seems a lot more evenly distributed in the store
<clever> Path linkPath = linksDir + "/" + hash.to_string(Base32, false);
<clever> sphalerite: the algo for storepaths is pretty complex
<clever> + compressHash(hashString(htSHA256, s), 20).to_string(Base32, false)
<clever> ah, and it also runs thru compressHash
fendor has quit [(Read error: Connection reset by peer)]
<sphalerite> Hm, I have 2758 files bigger than 1M in .links, and 512844 less than 1M
<clever> sphalerite: oh, i think i see the reason
<clever> sphalerite: storepaths, use the first 20 bytes of a sha256
<clever> 20 / 5
<sphalerite> aah ok
<clever> Hash hash = hashPath(htSHA256, path).first;
<clever> Path linkPath = linksDir + "/" + hash.to_string(Base32, false);
<clever> while .links uses the full sha256
<clever> so storepaths can possibly have collisions
<clever> but there is several layers of hashing hashes
Thra11_ has joined #nixos
jushur has quit [(Quit: The Borg joined forces with Skynet, Resistance is futile! Uploading has begun!)]
hamishmack has quit [(Quit: hamishmack)]
<sphalerite> Huh. Apparently the symlinking of files <1k in size is saving some 1.7GB of space. Or my calculations are wrong, which is also very possible
<sphalerite> `find /nix/store/.links -size -1024c | while read link ; do stat -c '%h %b %B %n' $link ; done | (total=0 ; while read links blocks blocksize filename ; do ((total+=links*blocks*blocksize)) ; done ; echo $total )`
Wizek has joined #nixos
<sphalerite> I wonder if it would be faster or slower if I collapsed the two while loops into one
<clever> sphalerite: what filesystem are you on?
<sphalerite> zfs
<clever> block size is horribly wrong on zfs
<sphalerite> oh yeah
<clever> File: /nix/store/.links/1zzzy73kdz5jdmgf4dy4yiij72j1fb8bpsvza25fsv3fdvxaq38s -> /nix/store/xp5b1nzlxxjsblkp66wr7xyqnxi9sw17-ncurses-6.0-man/share/man/man3/update_panels_sp.3x.gz
<clever> Size: 97 Blocks: 1 IO Block: 512 symbolic link
<sphalerite> I'll just try using the file content sizes, even though those won't be an accurate indication of the space used either
<clever> File: /nix/store/.links/1zzzranqs5bvyvb1i1ing6nbj0yni0wihgmfs276w9bifv1gaccw
<clever> Size: 3759 Blocks: 9 IO Block: 4096 regular file
<clever> sphalerite: for example, compare the block count to the block size!
<sphalerite> yeah
hamishmack has joined #nixos
<clever> [clever@amd-nixos:~]$ ls -lhs /nix/store/.links/1zzzranqs5bvyvb1i1ing6nbj0yni0wihgmfs276w9bifv1gaccw
<sphalerite> wtf zsh isn't drawing the prompt right anymore
<clever> 4.5K -r--r--r-- 2 root root 3.7K Dec 31 1969 /nix/store/.links/1zzzranqs5bvyvb1i1ing6nbj0yni0wihgmfs276w9bifv1gaccw
<clever> sphalerite: i'm not even sure how ls knows its using 3.7k on-disk and 4.5k of actual data
p4cman has quit [(Quit: Connection closed for inactivity)]
<clever> i think i have those backwards
<clever> [clever@amd-nixos:~]$ cat /nix/store/.links/1zzzranqs5bvyvb1i1ing6nbj0yni0wihgmfs276w9bifv1gaccw | wc -c
<clever> 3759
drp has quit [(Quit: drp)]
<sphalerite> I'm confused, why is the line-editing in my zsh broken :(
glenn has joined #nixos
Thra11_ has quit [(Ping timeout: 264 seconds)]
Thra11_ has joined #nixos
<hoverbear> sphalerite: Looks like normal behaivor to me
<sphalerite> uh... how?
__monty__ has joined #nixos
<sphalerite> It works fine if I resize the terminal to 64 columns >_>
<clever> sounds like desync
<sphalerite> huh, maybe a tmux bug
<sphalerite> `tput cols` is just saying 64
<sphalerite> even when I make it wider
<clever> i have noticed some weird conflicts when i used screen under tmux
deltasquared has joined #nixos
<sphalerite> there's no screen involved here
<clever> i also ran into a problem where i copy/pasted strings from the aws docs into vim, and i wound up with a 3 byte unprintable character
deltasquared has left #nixos []
<clever> the tty said it was 0 columns wide
dbmikus has quit [(Ping timeout: 240 seconds)]
<clever> vim said it was 3 columns wide
<clever> desync ensues :P
python476 has quit [(Ping timeout: 260 seconds)]
redCOAT_ has quit [(Remote host closed the connection)]
simendsjo has joined #nixos
<sphalerite> how do I get tmux to report the size correctly again :(
<clever> sphalerite: what happens if you run "reset" ?
<sphalerite> no change
<sphalerite> well, it clears it and delays for a second or so, but the columns reported are still wrong
Mic92 has joined #nixos
bennofs has joined #nixos
nliadm has quit [(Ping timeout: 240 seconds)]
nliadm has joined #nixos
<nixngo> just installed nixos with i3, working like a charm. only thing I can't get to work is my wacom pro tablet
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/c5ce2b53ac (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
betaboon has quit [(Quit: WeeChat 1.9.1)]
betaboon has joined #nixos
mc_Der has joined #nixos
<CcxWrk> clever: error: build of ‘/nix/store/744bnfr803zr9jhxnrfxcg86hf985hrc-hello-2.10.drv’ failed
<CcxWrk> Yes, it took so long.
<clever> CcxWrk: what error did it show above that?
<mc_Der> hey, how can I specify branch in fetchFromGithub fn?
<CcxWrk> "../../libtool: line 912: print: command not found" is the likely culprit
ssmike has quit [(Quit: ssmike)]
<clever> mc_Der: the rev argument can also take a branch name
<clever> CcxWrk: can you gist more of that error?
<mc_Der> clever: thanks
<CcxWrk> make[4]: Leaving directory '/tmp/nix-build-xz-5.2.3.drv-0/xz-5.2.3/src/liblzma'
<clever> CcxWrk: that error wasnt in hello
<clever> CcxWrk: nix gives the entire dependency chain when it fails
glenn has quit [(Ping timeout: 252 seconds)]
knupfer has joined #nixos
<knupfer> How can I use firefox beta with alsa support etc?
<knupfer> firefox-beta-bin and firefox-beta-bin-unwrapped don't seem to work with alsa
<CcxWrk> back in a bit, lunch
<clever> CcxWrk: yeah, xz is what had failed
<clever> CcxWrk: it hasnt even finished the stdenv
<knupfer> I already tried overriding firefox-unwrapped with the sources of firefox-beta-bin-unwrapped, but with no success
<srhb> Err
<srhb> is "${toString true}" supposed to be "1" ?
<clever> srhb: and false is ""
<srhb> Hm..
<clever> srhb: i have no idea why, but thats the way it is
<srhb> Weird. :-P
<clever> yeah
glenn has joined #nixos
<knupfer> srhb: nixlang is the php under the functional languages :)
<srhb> knupfer: Heretic! :-)
betaboon has quit [(Quit: WeeChat 1.9.1)]
<gchristensen> knupfer: I'd be honored to be one of the most well used languages, powering the vast majority of the internet!
betaboon has joined #nixos
<knupfer> It's quite curious that nix uses a dsl and not a edsl in e.g. haskell. The argument against it I've read is size. But since we've got nixops, that's no longer valid.
<srhb> knupfer: I don't think it'd be very fun to compile that haskell program on each rebuild :P
<aristid> knupfer: what does nixops have to do with it?
<LnL> nixops has nothing to do with that
<aristid> not having a GHC dependency is a pretty real advantage
<knupfer> aristid: because it copies only the closure, you don't need the haskell toolchain, which is quite big.
glenn has quit [(Ping timeout: 248 seconds)]
<aristid> considering that one of the main features of Nix 1.12 is that it removes the perl dependency
<aristid> knupfer: not everybody uses nixops, besides nixops i think still installs nix on the target
<clever> aristid: nix depends on ghc now, thats blocking some of my arm builds
<clever> aristid: shellcheck
<aristid> clever: nix depends on ghc now?!
ssmike has joined #nixos
<clever> aristid: there is something in the nix build process that runs shellcheck over a few things
<clever> aristid: and shellcheck is haskell
<knupfer> ghc can crosscompile to arm
<knupfer> or be compiled on arm, if you've got some hours spare time
<clever> knupfer: nixpkgs ghc needs a bootstrap that is already built for that platform
<LnL> knupfer: you would have to rebootstrap ghc and all of it's dependencies everytime something in the stdenv changes
<clever> knupfer: an thats missing for arm
<aristid> clever: ah, but it's not a runtime dependency at least
<aristid> clever: still, a valid annoyance
<clever> aristid: yeah
<knupfer> hm
<knupfer> I'd love a rewrite of nix in haskell, but that will propably never happen
<aristid> knupfer: don't get me wrong, i love haskell. i just don't think nix is the place for it. :)
<knupfer> aristid: The errors of nix are driving me nuts
<aristid> i think nix needs to become far easier to port to different platforms, not less
<aristid> knupfer: i would also like a better nix language. but it doesn't have to be haskell
<taktoa> rewrite nix in ATS
<taktoa> compiles to C, has dependent types, small dependency footprint (just GMP)
<aristid> knupfer: statically typed with good record types would be lovely
<knupfer> aristd: and automatically good docs for functions
<aristid> i haven't tried it, but gabriel gonzalez added Dhall support to nixpkgs (you can compile dhall expressions to nix expressions, and use them right within nixpkgs)
<knupfer> (I consider hackage to be full of good docs, not everybody would agree)
<knupfer> yeah, I've read it
<knupfer> I'm a big fan of Gonzalez.
<knupfer> srhb: There is no reason to recompile on every rebuild, only on updates. Most time being spend in external commands (ala shake), you could just use runhaskell
<srhb> knupfer: I suppose so.
<srhb> Hrmm.. I think the gitlab smtp sender is broken.
<srhb> I thought initially it was because the toString on enable produced a 1, but that seems to be true in ruby anyway.
betaboon has quit [(Quit: WeeChat 1.9.1)]
betaboon has joined #nixos
ryantrinkle has joined #nixos
roi_du_silence has quit [(Ping timeout: 260 seconds)]
b has joined #nixos
dbmikus has joined #nixos
sigmundv has quit [(Ping timeout: 240 seconds)]
Neo-- has joined #nixos
glenn has joined #nixos
roi_du_silence has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vdN7E
<NixOS_GitHub> nixpkgs/master 922e747 Robin Gloster: gitAndTools.git-extras: 4.2.0 -> 4.4.0
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] brainrape opened pull request #30684: nixos/gitlab: fix startup script (master...fix-gitlab) https://git.io/vdN76
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vdN7S
<NixOS_GitHub> nixpkgs/master d1c8c04 Robin Gloster: git-lfs: 2.3.3 -> 2.3.4
NixOS_GitHub has left #nixos []
grw has joined #nixos
<CcxWrk> clever: Actual culprit: ENOSPC; enlarged nix volume, will update channels and try again.
<clever> CcxWrk: kk
dbmikus has quit [(Ping timeout: 240 seconds)]
dragon_ has joined #nixos
roi_du_silence has quit [(Ping timeout: 240 seconds)]
ma27 has quit [(Ping timeout: 246 seconds)]
knupfer has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vdN5s
<NixOS_GitHub> nixpkgs/master 4147207 Simon Lackerbauer: gitlab-module: fix hooks links for older repositories
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to release-17.09: https://git.io/vdN5n
<NixOS_GitHub> nixpkgs/release-17.09 aac85e1 Simon Lackerbauer: gitlab-module: fix hooks links for older repositories...
NixOS_GitHub has left #nixos []
<srhb> What on earth...
<srhb> if cfg.lookupMX || cfg.relayHost == "" then cfg.relayHost
<srhb> Oh, I see.
stanibanani has joined #nixos
ssmike has quit [(Ping timeout: 258 seconds)]
glenn has quit [(Ping timeout: 240 seconds)]
ma27 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] srhb opened pull request #30685: nixos/postfix: support alternate smtp ports when relaying (master...postfix-relayPort) https://git.io/vdN5A
NixOS_GitHub has left #nixos []
JosW has joined #nixos
glenn has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 2 new commits to master: https://git.io/vdNdZ
<NixOS_GitHub> nixpkgs/master 38a66bb Pascal Bach: prometheus-node-exporter: 0.14.0 -> 0.15.0
<NixOS_GitHub> nixpkgs/master 0f0f0cb Pascal Bach: prometheus-node-exporter service: update for new arguments handling...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gnidorah opened pull request #30686: pam: add optional pam_gnome_keyring integration (master...keyring) https://git.io/vdNdR
NixOS_GitHub has left #nixos []
<gchristensen> Profpatsch: ping?
julm has quit [(Remote host closed the connection)]
<srhb> Any postfix gurus out there? https://git.io/vdN5A -- does it make sense to also add the port when doing the MX lookup?
<srhb> I wonder if anyone ever uses that..
<clever> srhb: you could also just set the default to 25 and type int
<clever> that should have the same effect
<srhb> True.
<srhb> That's a better idea.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] tex opened pull request #30687: add new application: terminal kitty (opengl, c, python) (master...kitty) https://git.io/vdNdX
NixOS_GitHub has left #nixos []
<srhb> clever: Thanks.
<Neo--> does anyone here use (la)tex? I've tried to use pkgs.texlive.combined.scheme-full but it just timeouts on a couple of packages and fails to build
<srhb> Hmm. But then I'm not sure about the empty case.
<srhb> Yeah, :25 is not valid. Sigh, messy.
<mc_Der> clever: thanks/quit
mc_Der has quit [(Quit: leaving)]
<clever> Neo--: latex2pdf = name: input: runCommand name { buildInputs = [ (texlive.combine { inherit (pkgs.texlive) scheme-full lm tipa; }) pandoc ]; } ''
<clever> Neo--: this is something i have used before
aanderse has quit [()]
tgunb has joined #nixos
<CrazedProgrammer> i'm new to submitting packages. am i allowed to take assets from the AUR site (for example *.desktop files) and use them for derivations that i might want to PR into nixpkgs?
p4cman has joined #nixos
<sphalerite> CrazedProgrammer: yes, a number of expressions in nixpkgs already do that. Make sure to get a stable URL though, where the contents won't change
<CrazedProgrammer> all right :)
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/6d86fcb86d (from 12 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/6d86fcb86d (from 12 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] bjornfor closed pull request #1284: Improve install script (master...install-script) https://git.io/vyAiE
NixOS_GitHub has left #nixos []
aanderse has joined #nixos
srodal has quit [(Ping timeout: 240 seconds)]
drp has joined #nixos
glenn has quit [(Ping timeout: 248 seconds)]
aanderse has quit [(Client Quit)]
fendor has joined #nixos
aanderse has joined #nixos
<disasm> CrazedProgrammer: there's also makeDesktopItem you might be interested in
<disasm> CrazedProgrammer: here's the code for how that works: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/make-desktopitem/default.nix
<__monty__> I have some issues with graphical programs I've installed through nix. This is the most common error: http://ix.io/BC6
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vdNFQ
<NixOS_GitHub> nixpkgs/master a89b28f Márton Boros: nixos/gitlab: fix startup script...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to release-17.09: https://git.io/vdNFd
<NixOS_GitHub> nixpkgs/release-17.09 8fefa85 Márton Boros: nixos/gitlab: fix startup script...
NixOS_GitHub has left #nixos []
pxc has joined #nixos
glenn has joined #nixos
pxc has quit [(Ping timeout: 240 seconds)]
mrkgnao has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 2 new commits to master: https://git.io/vdNbG
<NixOS_GitHub> nixpkgs/master d6e423c Vincent Laporte: ocamlPackages.merlin: 3.0.2 -> 3.0.3
<NixOS_GitHub> nixpkgs/master 4e0a952 Vincent Laporte: gringo: use scons version 2...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vdNbi
<NixOS_GitHub> nixpkgs/master ad5b75d Erick Gonzalez: strongSwan: Enable EAP Radius plugin for remote authentication of dial in ipsec clients
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #30678: nixos/libreswan: add missing runtime dependencies (master...upgrade-nix-module-libreswan) https://git.io/vdN6R
NixOS_GitHub has left #nixos []
betaboon has quit [(Quit: WeeChat 1.9.1)]
betaboon has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vdNbH
<NixOS_GitHub> nixpkgs/master 3c48a1e Jan Tojnar: nixos/services.nginx: Fix globalRedirect example...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 3 new commits to master: https://git.io/vdNbQ
<NixOS_GitHub> nixpkgs/master 9ba279f Michael Alan Dorman: elpa-packages: 2017-10-21
<NixOS_GitHub> nixpkgs/master fb2ad53 Michael Alan Dorman: melpa-stable-packages: 2017-10-21
<NixOS_GitHub> nixpkgs/master 5f8bbb9 Michael Alan Dorman: melpa-packages: 2017-10-21
NixOS_GitHub has left #nixos []
srodal has joined #nixos
betaboon has quit [(Quit: WeeChat 1.9.1)]
betaboon has joined #nixos
betaboon has quit [(Client Quit)]
<CrazedProgrammer> disasm: thanks! making a "proper" derivation for astah-community right now :)
<Neo--> clever, thanks!
<Neo--> clever, in the end I manage to resolve it by referancing the package in the master branch because the stable is broken because of this: https://github.com/NixOS/nixpkgs/blob/0529e4d90885b4e911162e8f8be077ae22322eba/pkgs/tools/typesetting/tex/texlive/default.nix#L115
nschoe has joined #nixos
glenn has quit [(Ping timeout: 255 seconds)]
dragon__ has joined #nixos
glenn has joined #nixos
dragon_ has quit [(Ping timeout: 255 seconds)]
proteusguy has quit [(Remote host closed the connection)]
Neo-- has quit [(Remote host closed the connection)]
Neo-- has joined #nixos
betaboon has joined #nixos
azdle has joined #nixos
dragon__ has quit [(Quit: Leaving)]
dragon__ has joined #nixos
<betaboon> hello. how do i properly escape strings like "${colors.background}" in a multiline-string in nix (where i want that exact string to end up in the multiline-string)
<infinisil> betaboon: "''${foo}"
<infinisil> um no
<infinisil> "\${foo}" or ''''${foo}'' (with the other quotes)
<betaboon> infinisil: thank you. i was doing ''\${foo}'' and thought i was crazy xD
<infinisil> ;)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bobvanderlinden opened pull request #30688: vrb: init at 0.5.1 (master...pr-vrb-init) https://git.io/vdNAo
NixOS_GitHub has left #nixos []
<betaboon> just converting my setup from i3bar+py3status to polybar.
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/8fefa85f5c (from 46 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [(Client Quit)]
<aminechikhaoui> Hello, anyone knows what can be the issue leading to this kind of error messages
<aminechikhaoui> Oct 22 16:08:40 nixos wpa_supplicant[916]: wlp2s0: CTRL-EVENT-DISCONNECTED bssid=24:00:ba:94:d7:bc reason=4 locally_generated=1
<aminechikhaoui> Oct 22 16:08:40 nixos NetworkManager[803]: <warn> [1508681320.8566] sup-iface[0x27c0380,wlp2s0]: connection disconnected (reason -4)
<__monty__> This is another error related to libgl drivers: http://ix.io/BCa
<sphalerite> aminechikhaoui: I don't really know but maybe https://askubuntu.com/questions/518383/networkmanager920-warn-connection-disconnected-reason-4 changing the channel and/or disabling bluetooth could help
kiloreux__ has joined #nixos
kiloreux has joined #nixos
<sphalerite> __monty__: endless sky ♥
<azdle> I installed the gcc package, but I don't have an assembler, is that in a diffferent package?
<sphalerite> __monty__: Is this on a nixos box?
<azdle> ("bash: as: command not found")
<sphalerite> azdle: nixpkgs doesn't work very well with installing compilers and such, you're better off using nix-shell (`nix-shell -p gcc`) to get it
<__monty__> sphalerite: No, arch linux.
<aminechikhaoui> sphalerite: yeap just found that, I'll try that
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/aac85e1b77 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
<azdle> sphalerite: Good to know, will will try that.
<sphalerite> azdle: as it happens, nix-shell with gcc does include as :) (I think it's technically in binutils)
jensens has quit [(Ping timeout: 264 seconds)]
<sphalerite> Dezgeg: I seem to recall you having a hydra/binary cache with armv7l? Could I have a link to that?
<woffs> __monty__: or https://github.com/guibou/nixGL/
<azdle> sphalerite, great that fixed that error, thanks!
dbmikus has joined #nixos
<sphalerite> Thanks!
<clever> sphalerite: ive also got a hydra, its building the armv7 gcc right now
<__monty__> woffs: I take it the first solution messes with pacman provided packages?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vdNxX
<NixOS_GitHub> nixpkgs/master c7dec7a mimadrid: aria2: 1.32.0 -> 1.33.0
NixOS_GitHub has left #nixos []
GRBurst has joined #nixos
<GRBurst> hey - i just read the part about distributed builds in nixos. i want to switch to nixos on my pi1. my pc is already running nixos. is it possible to distribute cross compiled builds out of the box?
<sphalerite> clever: cool, thanks
<clever> GRBurst: the build slave stuff needs the slaves to have the right cpu for target your building for
<sphalerite> clever: can I pick your brains on some of that qemu-user magic?
<clever> sphalerite: sure
<sphalerite> I want to chroot into an ARM debian installation, but I'm not sure how exactly to fit all the pieces together to get that to work
<clever> sphalerite: nix-build -A qemu-user-arm && ./result/bin/register
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/8fefa85f5c (from 66 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
<sphalerite> clever: yeah I've got qemu-arm itself working
<clever> sphalerite: once thats done, binfmt-misc will be configured, and you can just run any arm binary
<sphalerite> the problem is just how to get that working in combination with chroot
<clever> oh right
<clever> at the same path
<clever> you have to copy the qemu binary into that new root
<clever> or just bind-mount all of /nix into the chroot
<sphalerite> ooh or I could bind-mount my nix store in I guess
<clever> yep
<sphalerite> right
<sphalerite> oooh but the chroot also has nix installed and I don't want to break that either >_>
<clever> if you imperatively copy the qemu binary into the store (mine is static), then nix will ignore it until you run a GC
<GRBurst> clever: So you are saying that it if I have an armv6 pi i can not distribute cross-compilation to a x86_64 server?
<sphalerite> ooh if it's static I can just stick it in / as well
<clever> GRBurst: you would need to use the qemu-user stuff, and it would greatly slow it down
<clever> sphalerite: yeah, that also works, just update the register script for binfmt-misc
glenn has quit [(Ping timeout: 248 seconds)]
<clever> that line contains the raw bytes to look for in the header of a file, and a mask of what bytes actually matter
<GRBurst> clever: damn - okay thanks :-)
<sphalerite> clever: hm, the registration seems to have worked but the wrapping doesn;t
<clever> sphalerite: oh, qemu-wrap has an absolute path in it, that was to fix a bug
Singularity[m] has joined #nixos
<clever> sphalerite: you can try the unwrapped qemu-arm instead, and remove the P flag at the end of the register string
glenn has joined #nixos
<sphalerite> clever: it's not liking that arm is already registered
<clever> sphalerite: there is a delete file under /proc/sys/fs/binfmt_misc/ somewhere, that you can write a 1 to
<sphalerite> nope, just arm, register, and status
<clever> hmmm
<clever> sphalerite: i think you can write it to arm, instead of register, to overwrite an existing type
kiloreux__ has quit [(Ping timeout: 240 seconds)]
kiloreux has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vdNpD
<NixOS_GitHub> nixpkgs/master 97c5dfc Vincent Laporte: ocamlPackages.yojson: 1.2.3 -> 1.3.3
NixOS_GitHub has left #nixos []
<clever> You can remove one entry or all entries by echoing -1 to /proc/.../the_name or /proc/sys/fs/binfmt_misc/status.
<clever> sphalerite: ah, -1
srodal has quit [(Ping timeout: 248 seconds)]
<sphalerite> aah right
<sphalerite> Far more obvious than just using the unlink syscall, right? 🤔
<clever> yeah, lol
<clever> i think the /proc api is fairly limited
<sphalerite> yaaay I'm running apt for ARM on my intel laptop xD
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vdNpb
<NixOS_GitHub> nixpkgs/master 2cc79e9 b123400: buildNodePackage: fix issue with impure version handling (#30577)
NixOS_GitHub has left #nixos []
FrozenCow has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #30574: pythonPackages.phonenumbers: 8.8.2 -> 8.8.4 (master...phonenumbers-8.8.4) https://git.io/vd7Kz
NixOS_GitHub has left #nixos []
hotfuzz_ is now known as hotfuzz
infinisil has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
dbmikus has quit [(Ping timeout: 240 seconds)]
infinisil has joined #nixos
iyzsong has quit [(Ping timeout: 264 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/5f8bbb96f8 (from 82 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #30617: iniparser: 3.1 -> 4.0 (master...iniparser) https://git.io/vdbfU
NixOS_GitHub has left #nixos []
shymega has quit [(Ping timeout: 240 seconds)]
<Thra11_> Does nix have any sort of 'quiet' option, so it hides most of the output while building unless the build fails? (like recent versions of cabal do)
<infinisil> -Q
infinisil has quit [(Remote host closed the connection)]
<clever> the only downside of -Q, is that it wont show the error output either
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vdNjT
<NixOS_GitHub> nixpkgs/master 909fd5e Tim Steinbach: kubernetes: 1.7.8 -> 1.7.9
NixOS_GitHub has left #nixos []
<clever> so you have to re-do the build without -Q and wait for it to re-fail
<clever> CrazedProgrammer: one trick you could do, line 11, icon = desktopIcon; then it will use the file directly from the store and you dont have to copy it anywhere special
<sphalerite> does nixos require an initrd?
infinisil has joined #nixos
<clever> CrazedProgrammer: lib is also present at stdenv.lib, so the lib on line 1 is optional
<CrazedProgrammer> thanks! will change those things
<Profpatsch> gchristensen: pong
<clever> sphalerite: if you can manage to mount the rootfs without relying on kernel modules, you could boot it without an initrd
<clever> sphalerite: but the default kernel has too much as modules, and it cant mount any filesystem on its own
<Thra11_> clever: thanks
<sphalerite> clever: right, I was plannign on using the stock kernel from my chromebook for a start and that is capable of mounting some filesystems without modules
<clever> sphalerite: ah, that should work then, just pass the right root=/dev/sda1 to the kernel, in addition to the existing init= that the nixos bootloader generates
<clever> sphalerite: the tricky part is the init=, but you could cheat some
<clever> sphalerite: init=/nix/var/nix/profiles/system/init will always point to the current generation, and now you dont have to make nixos manage a bootloader config
nixos1022 has joined #nixos
<clever> sphalerite: you could even symlink /bin/init to /nix/var/nix/profiles/system/init and then the kernel default would work
<sphalerite> sweet
<clever> sphalerite: there is also a default root device in the kernel (file will tell you what it is)
<clever> [root@amd-nixos:~]# file /nix/store/38x3r16rhpiwcvnsp1gsm04zfnixllpx-linux-4.9.46/bzImage
<clever> /nix/store/38x3r16rhpiwcvnsp1gsm04zfnixllpx-linux-4.9.46/bzImage: Linux kernel x86 boot executable bzImage, version 4.9.46 (nixbld@localhost) #1-NixOS SMP Wed Aug 30 08:24:43 UTC 2017, RO-rootFS, swap_dev 0x3, Normal VGA
<clever> hmmm, root dev is missing now
shymega has joined #nixos
<clever> sphalerite: thats the code responsible for starting pid 1
<clever> sphalerite: when using an initrd, init= has basicaly zero impact, and it will only appear in /proc/cmdline, and rdinit= is what actually affects the kernel
<CrazedProgrammer> clever: changed those things, about to PR https://github.com/CrazedProgrammer/nixpkgs/commit/c52629555a5f6a0db88b775f7ec9bd8bf1593636
<clever> and the stage-1 script in the initrd is what chooses to obey init=
<sphalerite> right
<clever> and if there is no initrd, and no init flags, it will try /sbin/init, /etc/init, /bin/init, and /bin/sh
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pbogdan opened pull request #30689: irssi: 1.0.4 -> 1.0.5 (master...update-irssi) https://git.io/vdNjS
NixOS_GitHub has left #nixos []
<clever> CrazedProgrammer: yeah, that looks good, only other thing i can think of would be to squash it into a single commit
<sphalerite> TIL I can `nix-build '<nixpkgs/nixos>' -A config.system.build.nixos-{install,generate-config,rebuild}`
<clever> sphalerite: you can even install them with nix-env
<sphalerite> and just _:{} is enough for config
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] maximedenes opened pull request #30690: coqPackages.{ssreflect,mathcomp}: 1.6.1 -> 1.6.2 (master...mathcomp.1.6.2) https://git.io/vdNj7
NixOS_GitHub has left #nixos []
<sphalerite> yeah
<clever> sphalerite: that was in the old linode guide, on the previous wiki
<clever> sphalerite: i have also installed nixos, without nixos-install or nixos-rebuild
<clever> sphalerite: basically, just: nix-build '<nixpkgs/nixos>' -I nixos-config=/etc/nixos/configuration.nix -A config.system.build.toplevel && touch /etc/NIXOS && ./result/bin/switch-to-configuration boot
<clever> sphalerite: the above will build nixos in /nix, on any distro, and then overwrite the bootloader config
<clever> sphalerite: then it will boot nixos, on the previous rootfs
<clever> only problem, is that the garbage in /bin and /etc breaks nixos :P
<clever> sphalerite: "touch /etc/NIXOS_LUSTRATE" will fix that
<woffs> clever: is this written somewhere outside this irc channel?
ison111 has joined #nixos
<clever> woffs: which part?
<woffs> nix-build config.system.build.toplevel
<clever> woffs: ah, not really, i just read the source for nixos and nixos-rebuild
<__monty__> woffs: About the links you gave me. The first solution looks more convenient but I'm wondering whether it will mess up packages installed with pacman?
<woffs> maybe I just should note it on a slip of paper
<clever> woffs: oh, and -A system is an alias to that full attrpath
<nschoe> Hi everyone, I'm trying to setup an environment for my haskell program which uses `gloss`, which internally uses opengl. When developping haskell packages, `cabal2nix --shell` and `nix-shell --command "cabal configure"` are usually enough, but not this time, because it requires the C library for opengl.
<clever> woffs: that nix-build command is basically the same as "nixos-rebuild build"
<nschoe> Can someone point me to the right direction? It's the first time I'm building a "complex" Haskell package in nixOS, I'd like to do The Right Thing.
<woffs> __monty__: I think it will not break anything, though I cannot guarantee of course
<woffs> thanks clever
<__monty__> woffs: Then could you clarify where you ran the ln from?
<vaibhavsagar> hey, is there a guide on declaratively defining hydra projects?
<clever> nschoe: have you tried using cabal2nix?
<clever> nschoe: just running it directly on the directory and then using nix-shell on the resulting expression
<vaibhavsagar> I did services.hydra.enable = true but now I can't figure out how to actually use it
<clever> nschoe: and is librarySystemDepends set in that expression?
<clever> vaibhavsagar: you first need to create a user using a CLI program, ran as the hydra user
<vaibhavsagar> because the manual says 'create a user, then log in' but I can't follow those instructions and there doesn't appear to be a users table
<clever> vaibhavsagar: hydra-create-user admin --password hunter2 --role admin
fendor has quit [(Ping timeout: 264 seconds)]
<vaibhavsagar> tried that, doesn't work
<clever> vaibhavsagar: you may also need to: export HYDRA_DBI=dbi:Pg:dbname=hydra;user=hydra;
tgunb has quit [(Ping timeout: 246 seconds)]
<woffs> __monty__: look at it, it does not matter where run from
ma27 has quit [(Quit: WeeChat 1.9.1)]
<nschoe> clever, yes I aways use cabal2nix. My workflow is as follow: use `cabal init` to bootstrap the directory structure. Then edit the *.cabal file, and add the dependencies. Then I run `cabal2nix --shell > shell.nix`. And then `nix-shell --command "cabal configure"`.
<vaibhavsagar> clever: now I get this error 'DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI connect('dbname=hydra','',...) failed: FATAL: Peer authentication failed for user "vaibhavsagar" at /nix/store/pjbrsfridmqzyjdvb89gb5fbjx2rhnjg-hydra-perl-deps/lib/perl5/site_perl/5.24.2/DBIx/Class/Storage/DBI.pm line 1517. at /nix/store/pjbrsfridmqzyjdvb89gb5fbjx2rhnjg-hydra-perl-deps/lib/perl5/site_perl/5.24.2/Catalyst/Model/DBIC/Schema.pm line
<vaibhavsagar> 526'
<nschoe> clever, AFAIK the `cabal2nix` call takes care of transforming the *.cabal file into a suitable *.nix derivation file, reading to be built.
<nschoe> by adding the corresponding haskellPackages. So here I tried adding `gloss-examples` in the *.cabal file, but the `cabal configure` command failed.
<vaibhavsagar> nschoe, what happens if you run `nix-build`?
<vaibhavsagar> where does it fail?
<nschoe> vaibhavsagar, haven't tried, let me try.
<clever> nschoe: what about making a Setup.hs and using runhaskell on it, rather then using nix-shell again
infinisil has quit [(Quit: ZNC 1.7.x-git-unknown - https://znc.in)]
<clever> vaibhavsagar: you have to run those commands as the hydra user
<clever> vaibhavsagar: sudo -u hydra -i
ylwghst has joined #nixos
<vaibhavsagar> ahh, that makes sense, thanks clever
<sphalerite> I've put `binary-caches = https://nixos-arm.dezgeg.me/channel` in my /etc/nix/nix.conf but nix doesn't seem to be using it. Am I missing something?
infinisil has joined #nixos
<Dezgeg> the public key?
<clever> sphalerite: did you restart nix-daemon?
<nschoe> vaibhavsagar, yes `nix-build` fails with "Setup: Encountered missing dependencies:
<nschoe> gloss-examples -any"
<sphalerite> oooh, I need to restart the daemon
<sphalerite> I have the public key too
<nschoe> clever, currently, there is a Setup.hs that contains the minimal `main = defaultMain`.
<__monty__> woffs: That seems to have resolved the problem, the link was indeed necessary. Turns out my opengl is too old though.
<vaibhavsagar> nschoe: do you have a link to this project you can share?
<clever> url: (7) Failed to connect to nixos-arm.dezgeg.me port 443: Connection refused
<clever> sphalerite: also, that server isnt listening on 443
<Dezgeg> no ssl on the namecheap redirector, yes
<clever> Dezgeg: and port 80 redirects elsewhere
<nschoe> vaibhavsagar, not really I just created it o nthe laptop 10 minutes ago. There is basically nothing yet. It's fresh from `cabal init`, adding 'gloss' and 'gloss-examples' in the cabal file and then the build failed.
darlan has joined #nixos
<nschoe> vaibhavsagar, but when I entered the shell with `nix-shell shell.nix` and ran `cabal install gloss-examples` inside it, it installed a bunch of dependencies and then it failed, telling me that it was missig the C library "GL".
darlan has quit [(Client Quit)]
<__monty__> woffs: Seems to have worsened the other problem though: http://ix.io/BCv
derped has joined #nixos
ylwghst has quit [(Remote host closed the connection)]
<sphalerite> rather than restarting the daemon each time I can just run nix tools with NIX_REMOTE unset as root, right?
<Dezgeg> yes
<clever> sphalerite: yeah
<clever> if it has +w to the store and the var is unset, it will just directly spawn the worker
infinisil has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] CrazedProgrammer opened pull request #30691: astah-community: init at 7.2.0 (master...package/astah-community) https://git.io/vdAvC
NixOS_GitHub has left #nixos []
<woffs> __monty__: I cannot say anything about 'Failed to load module "canberra-gtk-module"'
infinisil has joined #nixos
ryantrinkle has quit [(Ping timeout: 240 seconds)]
<__monty__> woffs: That message was already there, the other two weren't though.
<woffs> __monty__: maybe they don't mean too much
<clever> nschoe: can you throw that project and its .cabal file onto github?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 3 new commits to master: https://git.io/vdAvB
<NixOS_GitHub> nixpkgs/master ac2acca Tuomas Tynkkynen: Merge remote-tracking branch 'upstream/staging' into master
<NixOS_GitHub> nixpkgs/master a483373 Tuomas Tynkkynen: cntk: Disable parallel building...
<NixOS_GitHub> nixpkgs/master 94e88d6 Tuomas Tynkkynen: collectd: Fix build after LVM2 upgrade
NixOS_GitHub has left #nixos []
<sphalerite> clever: AFAICT nix doesn't seem to even be trying to access the binary cache. How can I debug this?
<__monty__> woffs: Possible, the canberra message is enough to trip up my application launcher though.
<clever> sphalerite: -vvvvv maybe
<clever> sphalerite: the redirects may also be upsetting nix, try using the destination instead: https://www.cs.helsinki.fi/u/tmtynkky/nixos-arm/channel
infinisil has quit [(Remote host closed the connection)]
<hyper_ch> (no need to use the "v" sparsely... there's no shortage of them)
<woffs> clever: it's interesting to dive into the secrets of NixOS. Just reading lustrateRoot() :-)
<Dezgeg> something like this I'd try: nix-store -vvvvvvv -r /nix/store/m5pq3pi5m3yhaqn8fa86nf69jfg6cpw0-stdenv
glenn has quit [(Ping timeout: 255 seconds)]
<clever> woffs: somebody in #nixos made lustrateRoot after hearing the story of how i manually did that when installing nixos onto a netbook without the install media
infinisil has joined #nixos
<clever> Dezgeg: ah, yeah, that will force it to only go thru the cache, it will fail to build
<woffs> that community is great
<hodapp> lustrate? o_O
<clever> hodapp: it will move everything in / to /old-root, except /nix
<woffs> commit 3d16af7
<sphalerite> it seems to be trying 3 substituters and none of them succeed
<clever> sphalerite: can you gist the full output?
<ghostyyy> do any of you have any experience with the boot.loader.grub.extraInitrd setting? i cant seem to get my LUKS header available at boot time
<ghostyyy> if there was some way to open a shell in the initramfs that would also be very helpful
<woffs> clever: everything is explained in the commit message to commit 3d16af7. Great.
<woffs> hodapp: ^^^
<clever> ghostyyy: add boot.debug1 to the kernel params and it will force a shell
* sphalerite sent a long message: sphalerite_2017-10-22_15:47:55.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/btqYMIWmjvStaDRRfFYjuplC>
<sphalerite> clever: ^
<ghostyyy> oh lovely thank you!
glenn has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jonafato opened pull request #30692: keepassx-community: 2.2.1 -> 2.2.2 (master...keepassx-community-2.2.2) https://git.io/vdAv5
NixOS_GitHub has left #nixos []
<clever> sphalerite: try again with "strace -e trace=connect,execve -s 300 -f" at the start
<clever> sphalerite: we are looking for an IP starting with 128
dbmikus has joined #nixos
<sphalerite> I don't see any IPs there :|
iqubic has joined #nixos
<clever> sphalerite: oh, and also, try deleting /nix/var/nix/binary-cache-v3.sqlite* then try again
derped has quit [(Ping timeout: 260 seconds)]
<sphalerite> nope, also hasn't helped
<clever> sphalerite: can you gist the output of the strace?
<sphalerite> apparently not
<sphalerite> Riot is being a pain
<sphalerite> oh wait I can ssh into the chromebook and copy it from there
<iqubic> Well, my touchpad isn't working on this new nixos installation on this new laptop.
<iqubic> Also, the time is wrong.
<clever> iqubic: time, or timezone?, does "date" show the right zone?
<sphalerite> iqubic: have you enabled lilbinput and set the right timezone?
<iqubic> clever: The time seems to have fixed itself
<clever> iqubic: oh, is this going to be a dual-boot?
<iqubic> sphalerite: I have not enabled lilbinput
<iqubic> clever: It already is a dual boot.
<clever> iqubic: yeah, thats the issue, windows sets the hardware clock to local
Neo-- has quit [(Remote host closed the connection)]
<clever> iqubic: linux sets the hardware clock to UTC
<iqubic> But I'm planning on telling Windows that the system clock is in UTC
<clever> iqubic: so every time you change OS, the clock is off by a few hours
<iqubic> clever: I see.
<clever> iqubic: https://nixos.org/nixos/options.html#hardwareclockin is the reverse option
<sphalerite> clever: so… in the terminal where I SSHed in, it *does* connect to the new binary cache
Neo-- has joined #nixos
<clever> iqubic: so you can fix it on either OS
<clever> sphalerite: double-check the value of $NIX_REMOTE in both shells
<iqubic> clever: I'm just going to tell Windows to use UTC for the hardware clock.
<clever> sphalerite: and make sure you unset, rather then setting it to an empty string
<iqubic> Now, how do I enable libinput?
<sphalerite> aaaah it's fully working now!
<sphalerite> fetching stdenv from the binary cache ♥ oh sweet timesaving goodness
<sphalerite> thanks for the help
<sphalerite> it's set to the empty string in both shells
kuznero has joined #nixos
<kuznero> Hi All!
<hodapp> hiiiii
<iqubic> Huh...?
<kuznero> If I have to use pre-built binary for my package that is built for let's say ubuntu, how do I make it run in my nixos?
<clever> kuznero: patchelf, it should be in the nixpkgs manual
nix-gsc-io`bot has joined #nixos
<kuznero> clever: thanks!
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/c5ce2b53ac (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
<hodapp> kuznero: it's an Ubuntu package, that is?
nix-gsc-io`bot has quit [(Client Quit)]
<iqubic> - synaptics and libinput are incompatible, you cannot enable both (in services.xserver)
<iqubic> The heck?
<kuznero> hodapp: there is ubuntu binary available too, so I can choose
<adisbladis> iqubic: Why is that strange?
<clever> iqubic: set synaptics.enable = false;
<hodapp> kuznero: just a single binary?
<iqubic> I will. Should I remove the rest of my synaptics config to?
<iqubic> I have a few synaptics settings set.
<kuznero> hodapp: as far as I know - yes, but I might be wrong. Is it important?
<clever> iqubic: it will ignore it if its disabled
<hodapp> kuznero: not especially, I'm just trying to make sure I get you right
<iqubic> Enabling libinput does not seem to fix my issues. Do I need to reboot to get it to work?
<clever> iqubic: xorg will have to be restarted, systemctl restart display-manager
<kuznero> hodapp: should I only set interpreter or rpath or more?
<iqubic> Ah, I see
<clever> kuznero: you need to set both the interpreter and rpath
<kuznero> sorry for stupid question: what is rpath?
<clever> kuznero: where the binary will search for its libraries
<kuznero> ah, thanks
endformationage has joined #nixos
iqubic has quit [(Quit: Page closed)]
ylwghst has joined #nixos
<kuznero> clever: setting interpreter worked, now I see it want some libraries, so that is why I need rpath too?
iqubic has joined #nixos
<iqubic> So, enabling libinput did nothing at all. Touchpad still not working.
<sphalerite> kuznero: yep
<clever> iqubic: anything interesting in the journal? journalctl -u display-manager, scroll near the bottom
nschoe has quit [(Ping timeout: 240 seconds)]
<kuznero> how can I expand ${stdenv.cc.gcc} while I am in nix-shell?
<tobiasBora> Hello,
<tobiasBora> I'd like to compile nix from sources, but I can't find the list of the dependencies...
leat has quit [(Ping timeout: 258 seconds)]
<tobiasBora> and when I run the script ./bootstrap.sh, I get the error m4: stack overflow
leat has joined #nixos
<clever> kuznero: $NIX_CC will have that path, as long as gcc is in the inputs (nix-shell -p gcc)
GRBurst has quit [(Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)]
<kuznero> clever: not sure if I completely understand that. Let's say `patchelf --set-rpath "${stdenv.cc.cc.lib}/lib64" dotnet` - how this will be expanded?
<kuznero> Into $NIX_CC (/nix/store/m3hr6jjlg637240q67as3js21dg6h218-gcc-wrapper-6.4.0 on my machine)?
<clever> kuznero: you want to write a nix expression that will patch it for you
<kuznero> yes
c0bw3b has joined #nixos
<seequ> Heh, cache.nixos.org went down at a terrible time
Thra11_ has quit [(Quit: IRC for Sailfish 0.9)]
glenn has quit [(Ping timeout: 240 seconds)]
<kuznero> clever: I mean I understand what patchelf is doing, I need to do it myself by calling to patchelf bash function while I am in nix-shell. But at that context ${stdenv.cc.cc.lib} does not want to be expanded.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg merged master into staging: https://git.io/vdAJy
NixOS_GitHub has left #nixos []
<iqubic> clever: Here is the output of "journalctl -u display-manager" https://paste.pound-python.org/show/19P76IL9dVmEd0vbqFVc/
<clever> kuznero: you can eval that part in nix-repl
<clever> kuznero: nix-repl '<nixpkgs>' then "${stdenv.cc.cc.lib}"
<hodapp> tobiasBora: did you start from https://nixos.org/nix/manual/#chap-hacking ?
<hodapp> disclaimer: I have never built Nix
<kuznero> clever: that is very clever! thanks!
<clever> iqubic: there is a lot of xorg output missing, is there an xorg log within /var/log/ ?
<kuznero> clever: that is super cool, now I can debug all my new packages! :D
<kuznero> works! :)
dbmikus has quit [(Ping timeout: 240 seconds)]
<iqubic> clever: http://termbin.com/aogm
<iqubic> I think that looks right.
pxc has joined #nixos
justin-sleep has joined #nixos
<justin-sleep> is there a way to just use startx rather than a display manager? I've tried adding xinit, startx and xlaunch to the system package list but none of them are valid.
<iqubic> clever: does that log help?
<clever> iqubic: what was the model of laptop again?
<iqubic> lenovo ideapad 320 15
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/vdAUn
<NixOS_GitHub> nixpkgs/staging f906d6d Jon Banafato: python36: 3.6.2 -> 3.6.3
NixOS_GitHub has left #nixos []
<clever> iqubic: not sure what else to check
<iqubic> darn it.
pxc has quit [(Ping timeout: 240 seconds)]
FrozenCow has quit [(Remote host closed the connection)]
dragon__ has quit [(Ping timeout: 258 seconds)]
glenn has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to release-17.09: https://git.io/vdAUR
<NixOS_GitHub> nixpkgs/release-17.09 df8e85f Jon Banafato: python36: 3.6.2 -> 3.6.3...
NixOS_GitHub has left #nixos []
FRidh has joined #nixos
tgunb has joined #nixos
<tgunb> what is the game on the install medium called? the terminal rpg?
ylwghst has quit [(Ping timeout: 248 seconds)]
<iqubic> Why does that recognize ideapad extra buttons, but not my touchpad?
<iqubic> tgunb: I think it's nethack.
<sphalerite> tgunb: rogue iirc
<MichaelRaskin> rogue
<sphalerite> yep rogue
<sphalerite> nethack is better though ;)
<tobiasBora> hodapp: Thank you for the link. So I tried to run "nix-build --arg storeDir "${NIX}/store" --arg stateDir "${NIX}/var" --arg confDir "${NIX}/etc" release.nix -A build.x86_64-linux", it writes lot's of things (I fell like it's installing a whole OS, with all tools like chuser...), and finally it fails: https://pastebin.com/JRxS9MKw
<MichaelRaskin> Or we can stand out of the crowd and provide zangband.
<tobiasBora> the main error is "/nix/store/5pfzydfayff461z78xibv34rz5bz8sxs-gnum4-1.4.18/bin/m4:configure.ac:1: cannot open `m4sugar/foreach.m4': Bad address
nschoe has joined #nixos
kuznero has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
<sphalerite> Why does nixos-install not build the system directly in the target nix store?
<sphalerite> As in, build target system's nix in host's store, copy closure over, chroot in and perform the rest of the build there
<clever> sphalerite: thats a bug that got introduced a few months ago by some refactorings
<sphalerite> oh ok
nschoe has quit [(Client Quit)]
<sphalerite> so it's not intentional
<clever> yeah
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Moredread opened pull request #30693: calibre: 3.9.0 -> 3.10.0 (master...bump/calibre) https://git.io/vdAUy
NixOS_GitHub has left #nixos []
datakurre has quit [(Quit: all work no play makes jack a dull boy)]
<tgunb> is there any doc on the game?
datakurre has joined #nixos
<sphalerite> tgunb: press ? ingame
Isorkin_ has joined #nixos
erictapen has joined #nixos
ma27 has joined #nixos
<iqubic> Well, this issue seems to be affecting many people.
<sphalerite> tgunb: also see share/doc/rogue.*
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vdATL
<NixOS_GitHub> nixpkgs/master 460c3f4 André-Patrick Bubel: calibre: 3.9.0 -> 3.10.0
<NixOS_GitHub> nixpkgs/master 24c61ca Frederik Rietdijk: Merge pull request #30693 from Moredread/bump/calibre...
NixOS_GitHub has left #nixos []
<nixos1022> Hi there, small question: How can I make nautilus/thunar to give me a thumbnail for every file (like a pdf lookingish symbol for pdf files and a small version of the image for all images)
<seequ> Can I choose which nvidia drivers nixos uses?
Isorkin has quit [(Ping timeout: 260 seconds)]
<clever> seequ: which one do you want to use?
<seequ> I don't actually know. Setting services.xserver.videoDrivers = ["nvidia"]; results in a black screen with a blinking cursor.
<Yaniel> seequ: you're not the krtdex seequ, are you?
<iqubic> So, why is my touchpad being a pain in the butt?
<seequ> Yaniel: I am.
<Yaniel> and you're not here via matrix? :P
<Yaniel> iqubic: touchpads are; next question?
<iqubic> How can I fix this?
<sphalerite> nixos1022: install gdk_pixbuf into your user profile or systemPackages
<clever> seequ: this is where most of the closed-source nvidia driver names are defined
<MichaelRaskin> To be honest, normal touchpads are a pain in the fingers.
<seequ> Yaniel: IRC rooms have a tendency to destroy my server. :P
erictapen has quit [(Ping timeout: 240 seconds)]
<Yaniel> do you have synaptic drivers installed?
<clever> Yaniel: that one didnt work, and neither does libinput
<iqubic> I tried both of them already. This is just being a pain in the butt.
ylwghst has joined #nixos
<Yaniel> seequ: you're not in the native one either :o then again that one is dead most of the time :/
<seequ> clever: Thanks, I'll test them out
<sphalerite> nixos1022: this is just a workaround, it should really work out of the box and I think jtojnar 's fixed it somewhere, it'll just be a while until it gets into a release version
<seequ> Yaniel: I didn't even know one existed
zraexy has quit [(Remote host closed the connection)]
<nixos1022> thx
<Yaniel> #nix:matrix.org
endformationage has quit [(Quit: WeeChat 1.9.1)]
<gchristensen> Profpatsch: disregard :)
<iqubic> What is the latest kernel I can pull from Nixos-unstable?
<tobiasBora> How can I install checking for libcrypto... no
<tobiasBora> from nix, I can't find the package that implement it...
<clever> iqubic: 4.9 i believe
<clever> iqubic: maybe 4.12
<sphalerite> nah, at least 4.13 is there
<iqubic> I'd like to try pulling the latest kernel.
<sphalerite> 4.13.8
Thra11 has joined #nixos
<clever> iqubic: boot.kernelPackages = pkgs.linuxPackages_4_12; for example
<tobiasBora> (libssl is not present in nix...)
<sphalerite> set `boot.kernelPackages = pkgs.linuxPackages_latest;`
<sphalerite> tobiasBora: it's in openssl
<iqubic> sphalerite: And that will pull the latest kernel?
<sphalerite> iqubic: the latest that's in nixpkgs, yes
<sphalerite> in the nixpkgs version your system is on*
<iqubic> Not the latest unstable?
<iqubic> I want the latest unstable.
<sphalerite> latest unstable kernel?
<sphalerite> like the rc for 4.14? Or what
srodal has joined #nixos
<iqubic> No, like latest in unstable.
<ghostyyy> um... i put the debug1 option in my grub.cfg (in the in-grub editor), to debug my initramfs, and it does ask if i want to start a shell, but my USB keyboard doesnt work?
<clever> ghostyyy: you need to include usb drivers in the initrd, boot.initrd.availableKernelModules
<clever> usbhid, and a driver for the usb controller i believe
<sphalerite> iqubic: if you're on the unstable channel, then yes it'll get 4.13.8 which is the latest kernel in nixos-unstable
<ghostyyy> ahh i see
<ghostyyy> thank you! you are very helpful!
<iqubic> I'm not on the unstable channel.
<iqubic> I'd like to get my kernel from unstable.
<tobiasBora> sphalerite: I don't understand, openssl is supposed to be installed: https://pastebin.com/0VaPH1Pj
<sphalerite> tobiasBora: you don't install libraries on nixos
JaakkoLuttinen[m has joined #nixos
<clever> tobiasBora: nothing you install with nix-env can be found by the compiler
dywedir has joined #nixos
kiloreux__ has joined #nixos
kiloreux has joined #nixos
<iqubic> sphalerite: How can I get the latest kernel from unstable, while remaining mostly on 17.09
<JaakkoLuttinen[m> I don't understand why "nix-rebuild build" wants build a certain derivation. How can I find what other derivation is causing this?
tgunb has quit [(Ping timeout: 246 seconds)]
<sphalerite> iqubic: if you have a nixos-unstable channel you can do boot.kernelPackages = (import <nixos-unstable> {}).kernelPackages;
<clever> JaakkoLuttinen[m: run "nix-store -q --tree" on the root .drv that nixos-rebuild prints
<iqubic> I don't have an unstable channel.
<sphalerite> or if you have a checkout replace `<nixos-unstable>` with the path to that checkcout
<sphalerite> well get one :p
<iqubic> How can I add an unstable channel
glenn has quit [(Ping timeout: 248 seconds)]
<sphalerite> nix-channel --add https://nixos.org/channels/nixos-unstable ; nix-channel --update
erictapen has joined #nixos
<JaakkoLuttinen[m> clever: thanks, that helped!
zraexy has joined #nixos
riclima has joined #nixos
<clever> sphalerite: i'm currently fighting a very weird chromium bug, [pid 13045] mmap(0x9448d800000, 2097152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)
glenn has joined #nixos
<iqubic> Well, this is a thing: error: file ‘nixos-unstable’ was not found in the Nix search path (add it using $NIX_PATH or -I), at /etc/nixos/configuration.nix:13:33
<sphalerite> iqubic: did you nix-channel --update? What's your NIX_PATH?
<iqubic> I did.
<iqubic> nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
<sphalerite> iqubic: did you run the nix-channel commands as root?
<iqubic> Yes.
<iqubic> nix-channel --add https://nixos.org/channels/nixos-unstable ; nix-channel --update
<iqubic> That is what I ran.
<sphalerite> what does nix-channel --list say, as root?
erictapen has quit [(Ping timeout: 240 seconds)]
<tobiasBora> sphalerite: really ? Whow... I think I'll read a bit about that before continuing to build nix from nix ^^
glenn has quit [(Ping timeout: 252 seconds)]
<sphalerite> huh, it changed your main channel to unstable
<sphalerite> nix-channel --add https://nixos.org/channels/nixos-17.09 nixos ; nix-channel --add https://nixos.org/channels/nixos-unstable nixos-unstable ; nix-chanenl --update
<sphalerite> tobiasBora: to do that, `nix-build '<nixpkgs>' -A nix`
ryantrinkle has joined #nixos
<iqubic> And now it has to go fetch 17.09 for me.
<iqubic> Which is stupid
<sphalerite> yeah
<hyper_ch> good that it can easily be reverted
<tobiasBora> sphalerite: this will take the sources from the repo, or from the current folder ? And can I usk to nix-build to automatically choose the needed nixpkgs ?
<sphalerite> tobiasBora: it'll get the sources from a release tarball. If you want to make local changes, do `nix-shell '<nixpkgs>' -A nix` to get a shell where all of nix's dependencies are available
<iqubic> Well. The attribute kernelPackages is missing.
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
infinisil has quit [(Remote host closed the connection)]
<clever> iqubic: what line did you add to configuration.nix?
<iqubic> boot.kernelPackages = (import <nixos-unstable> {}).kernelPackages;
<iqubic> nixos-rebuild tells me the error occurs at the open paren there.
<clever> iqubic: its linuxPackages at the 2nd one
<sphalerite> tobiasBora: or just `nix-build release.nix -A build.x86_64-linux` if you want to get a completely clean build that resembles the nix from nixpkgs maximally
infinisil has joined #nixos
<sphalerite> iqubic: what clever said. My bad!
<sphalerite> And what you want is linuxPackages_latest
<iqubic> Seems to work
dbmikus has joined #nixos
<clever> sphalerite: found part of the issue, chromium is using ulimit to limit itself to 2gig of ram
<tobiasBora> sphalerite: sphalerite I don't know why, but when I run it in the git version, I get this error: https://pastebin.com/Gw3ssJQD
<sphalerite> clever: nice
<tobiasBora> /nix/store/5pfzydfayff461z78xibv34rz5bz8sxs-gnum4-1.4.18/bin/m4:configure.ac:1: cannot open `m4sugar/foreach.m4': Bad address
<iqubic> Is it possible to enable/disable individual kernel modules with this setup?
<clever> sphalerite: and it fails 100% of the time when trying to load a given page
taktoa has quit [(Remote host closed the connection)]
<seequ> Is there a way to give services.compton just a config file and ignore all the nix options?
FRidh has quit [(Quit: Konversation terminated!)]
<Unode> Hi all, I'm trying to increase the resolution of the screen during boot (before X). I've set gfxmodeEfi and gfxmodeBios but resolution remains low. Are there any other options to set this?
<infinisil> How do I put stuff on NTFS from nixos? It mounts as read-only by default
<clever> sphalerite: aha, tracefile.25892:prlimit64(0, RLIMIT_DATA, {rlim_cur=2147483647, rlim_max=2147483647}, NULL) = 0
<seequ> infinisil: I have a working config for that, seec
<MichaelRaskin> infinisil: you could use ntfs-3g
<iqubic> infinisil: try adding ntfs3g to systemPackages.
<iqubic> Thats what worked for me.
<infinisil> I'll try that, thanks!
<iqubic> No need to mount differently.
<seequ> Yeah apparently that's all I did too.
kiloreux__ has quit [(Remote host closed the connection)]
kiloreux has quit [(Remote host closed the connection)]
<infinisil> That worked, nice!
<sphalerite> tobiasBora: that's weird. Is the checkout dirty?
<sphalerite> kernel builds are not fast.
<tobiasBora> sphalerite: I tried from the direct "git clone ...", and then I tried to download the tar, untar it. In both cases I've this error.
zraexy has quit [(Quit: Leaving.)]
<sphalerite> tobiasBora: in the git clone, what does git clean -nxd say?
<gchristensen> Yaniel: I don't think we _can_ bridge the Nix room with IRC
stanibanani has quit [(Ping timeout: 260 seconds)]
<tobiasBora> sphalerite: Would remove autom4te.cache/
<tobiasBora> and also config.log, configure
<MichaelRaskin> gchristensen: because matrix can only bridge preexisting IRC rooms?
<sphalerite> tobiasBora: try git clean -fxd and then run the nix-build one again
<gchristensen> MichaelRaskin: well there is already a bridge room and I'd be surprisede if you could merge two rooms
zraexy has joined #nixos
<tobiasBora> sphalerite: same error: https://pastebin.com/YKNpfZdq
<MichaelRaskin> Hm, independently bridge it to IRC and merge them via IRC…
<tobiasBora> sphalerite: I don't know if it can help, but I'm running nix in a proot "chroot"
<sphalerite> tobiasBora: that's weird, I don't know why this would happen. It works for me.
<sphalerite> Hm, that could break nix. I'm not sure. But I think nix itself would complain about that…
Neo-- has quit [(Remote host closed the connection)]
<sphalerite> Why are you running it in proot?
Neo-- has joined #nixos
<tobiasBora> sphalerite: I'll try to install nix outside of any proot to see if it's better...
erictapen has quit [(Ping timeout: 255 seconds)]
<Yaniel> nothing prevents bridging two matrix rooms to the same irc channel
<Yaniel> but it's heavily discouraged
<Yaniel> and having a completely separate room has its own merits
<sphalerite> clever: will qemu-user typically perform better than emulating a whole system?
Arcaelyx has joined #nixos
<clever> sphalerite: yeah, because it wont need to emulate a kernel
<clever> sphalerite: also, qemu-system-arm doesnt have SMP support, so its limited to 1 core
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<clever> but qemu-user just maps guest threads to host threads, and can use all the cores
<sphalerite> ooh ok
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
glenn has joined #nixos
erictapen has joined #nixos
<sphalerite> It's crazy to me how qemu-user actually works
<sphalerite> I mean, I see no technical reason why it shouldn't
<sphalerite> but it still feels like it shouldn't
<clever> sphalerite: whats even more crazy, i just typed in the x86-64 arch one day, and built the same nix expression on a raspberry pi
<clever> sphalerite: and it sorta worked! (pulseaudio threw an exception though)
<clever> sphalerite: ive even made an x86-64 qemu-user, on x86-64, and it was able to reproduce problems qemu-system-x86-64 had, without having to emulate the full kernel
thblt has joined #nixos
<sphalerite> nice
<clever> sphalerite: turns out, 64bit qemu emulates the very first 64bit cpu, one that lacks sse3 features that are now considered standard
<clever> sphalerite: so a qemu without kvm, lacks sse3 support by default
<clever> then cryptonite in haskell segfaults
<clever> or rather, dies due to an illegal instruction
<clever> sphalerite: and because i have kvm enabled on my machine, i could never reproduce the problem
<clever> sphalerite: the presense of /dev/kvm inside the nix sandbox is an impurity, that controled if the problem happened or not!
<sphalerite> nice…
ma27 has quit [(Ping timeout: 248 seconds)]
<bennofs> does hydra build python3 packages for aarch64?
<sphalerite> Where was the nix patch that you used to convince it to use binfmt-misc stuff?
<clever> sphalerite: in nix-misc
<sphalerite> oh I see it's right there in the repo
<clever> yep
<clever> that adds a new nix.conf field, a list of platforms the cpu "supports"
<clever> i still need to file a PR for that
<clever> its been on my todo list for 2 years...
ylwghst has quit [(Quit: Lost terminal)]
dbmikus has quit [(Ping timeout: 248 seconds)]
FRidh has joined #nixos
FRidh has quit [(Client Quit)]
dywedir has quit [(Remote host closed the connection)]
<clever> sphalerite: and interestingly, lines 429-436 dont exist on the copy i'm running in nix
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/df8e85f22f (from 88 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
ivanivan has joined #nixos
<ivanivan> Is there any color picker readily available in a nix package?
<ivanivan> I looked for gpick and pick, but found neither
<tobiasBora> sphalerite: so I tried to compile it from a real /nix, no chroot, and it's a bit better, but it fails the tests at the end: https://pastebin.com/1hwjgW6H
<clever> error: cloning builder process: Operation not permitted
nix-gsc-io`bot has joined #nixos
<sphalerite> 1ULL… that looks like a typo, but no
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/8fefa85f5c (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
nix-gsc-io`bot has quit [(Client Quit)]
<clever> sphalerite: i believe that forces gcc to treat the literal as a 64bit, even though 1 could fit into a 32bit
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vdAtM
<NixOS_GitHub> nixpkgs/master 28494e9 Tuomas Tynkkynen: falkon: Disable parallel building...
NixOS_GitHub has left #nixos []
<clever> sphalerite: so when it gets shifted by 33 bits, it doesnt overflow
<sphalerite> yeah I guessed as much
<sphalerite> looks like it's supposed to be NULL though
<sphalerite> visually
<clever> sphalerite: but the interesting part, is that the comment perfectly describes my problem, and that whole if statement is missing from the version i'm currently running
<ivanivan> oh, i see there's a gcolor2 package
ivanivan has quit [(Quit: WeeChat 1.9.1)]
stanibanani has joined #nixos
erictapen has quit [(Ping timeout: 260 seconds)]
katyucha has joined #nixos
ma27 has joined #nixos
stabbmesiter has joined #nixos
<clever> so, version 60.0.3112.90 is bork, nixpkgs master is at version 62.0.3202.62
<clever> and 62 does have the fix
glenn has quit [(Ping timeout: 246 seconds)]
jb55 has joined #nixos
<jluttine> in mkDerivation, name should contain version number, right? name = "package-name-1.2.3". is there some attribute value that could be the package name without the version number?
<jluttine> i'd like to use the app name without the version number for other purposes
<clever> jluttine: some languages use pname for that
abbradar has quit [(Remote host closed the connection)]
<clever> nix-repl> builtins.parseDrvName "package-name-1.2.3"
<clever> { name = "package-name"; version = "1.2.3"; }
glenn has joined #nixos
<clever> jluttine: this is also a thing you can use
<jluttine> clever: oh, ok. so it's ok if name doesn't contain version..?
<clever> it generally helps for name to contain the version, but you can also add a pname that lacks the version
<jluttine> ok, pname seems to work
<jluttine> thanks!
goibhniu has joined #nixos
Tekmo_ has joined #nixos
<Tekmo_> Is there a way to add an artificially synthesized `*.drv` file manually to the `/nix/store` (mainly for teaching purposes)?
<clever> Tekmo_: it might be simpler to call builtins.derivation with the right args, and let nix generate it
<Tekmo_> I tried copying a `*.drv` file out of the `/nix/store` and adding it back in using `nix-store --add` but then I get a `derivation has incorrect output` error
<Tekmo_> Yeah, I figure I can use `nix-instantiate`. I was just curious if there was a way to do this without the Nix language as an intermediate
<clever> what about nix-store --add-fixed?
<clever> Tekmo_: this is where the nix language tries to write it to the store: https://github.com/NixOS/nix/blob/master/src/libexpr/primops.cc#L743-L744
<clever> Tekmo_: ah, the tricky part that the CLI api wont allow, the .drv must depend on the input .drv's
<clever> and --add/--add-fixed only allow things that have no deps
stabbmesiter has quit [(Quit: leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vdAmK
<NixOS_GitHub> nixpkgs/master c815637 Piotr Bogdan: irssi: 1.0.4 -> 1.0.5...
<NixOS_GitHub> nixpkgs/master ec5f9c8 Tim Steinbach: Merge pull request #30689 from pbogdan/update-irssi...
NixOS_GitHub has left #nixos []
<tobiasBora> sphalerite: I put here the code I use to create a proot nix install. To use it just git clone, and "./nix_local_install.sh". And then type the two commands that are written at the end of the script to get a shell "prooted" on $HOME
<tobiasBora> (with nix installed)
<Tekmo_> It seemed like it almost worked. I'm still debugging
<sphalerite> tobiasBora: why are you using proot?
nh2 has joined #nixos
nh2 has quit [(Client Quit)]
<clever> sphalerite: ive been thinking, the fhs userenv stuff is able to use mount namespaces without root, to fake /lib and /bin...
<sphalerite> tobiasBora: if you want to use nix without root access, nix-user-chroot [https://github.com/lethalman/nix-user-chroot] is probably a better option if it works
<clever> sphalerite: how hard would it be to patch it to fake /nix instead?
<sphalerite> clever: to what end?
<tobiasBora> sphalerite: because I'd like to provide a way to get nix when you are not a super user, with a bare minimal installation. So the idea was to use proot to get the binaries, and then compile the nix version so that I can use it without proof (which is very slow)
<clever> sphalerite: so map $HOME/nix to /nix, on systems where you lack root
<Tekmo_> clever: I figured it out. The issue I was running into was that Nix doesn't like the file that you `nix --add` having a hash in its name. Once I stripped the leading hash from the `.drv` file I copied out of the `/nix/store` I was able to `nix-add` it back without any issues
<sphalerite> tobiasBora: nix-user-chroot does that basically
<clever> Tekmo_: ah, but does it have the same path after being added back?
<sphalerite> and doesn't use ptrace, so it's less likely to break stuff
<Tekmo_> clever: No
<clever> Tekmo_: that could be a problem
<sphalerite> clever: but tha'ts what nix-user-chroot already does basically
<clever> sphalerite: ah
<Tekmo_> clever: What problem might it cause?
<tobiasBora> sphalerite: it also compiles it so that it can run natively ?
<nixos1022> sphalerite installing gdk_pixbuf doesn't help showing previews of images.
nixos1022 has quit [(Remote host closed the connection)]
<Tekmo_> For my use case, it's totally fine if Nix treats this as a completely different derivation that just happens to produce the same build product
<clever> Tekmo_: .drv files are supposed to be storepaths that have deps, and the hash of the contents (in non-fixed mode) matches the storepath
<sphalerite> tobiasBora: no, but it provides you with a /nix so that you can just run nix's normal install script
<sphalerite> tobiasBora: I used this to install nix on my user account at uni for instance
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to release-17.09: https://git.io/vdAYe
<NixOS_GitHub> nixpkgs/release-17.09 526d41e Tuomas Tynkkynen: falkon: Disable parallel building...
NixOS_GitHub has left #nixos []
<tobiasBora> sphalerite: but it's as efficient as if you compile it with ~/nix ?
<clever> sphalerite: ah, nice, feel free to open a PR
nixos1022 has joined #nixos
<sphalerite> tobiasBora: it's more efficient probably, because it uses namespaces instead of proot
<clever> [488/28739] STAMP obj/components/base32/base32.inputdeps.stamp
<clever> ehgads, i thought chrome was nearly done building when it claimed 700/800!!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vdAYt
<NixOS_GitHub> nixpkgs/master c529454 Tim Steinbach: linux: 4.9.57 -> 4.9.58
<NixOS_GitHub> nixpkgs/master 69ebd73 Tim Steinbach: linux: 4.13.8 -> 4.13.9
NixOS_GitHub has left #nixos []
dywedir has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to release-17.09: https://git.io/vdAYO
<NixOS_GitHub> nixpkgs/release-17.09 e934c69 Tim Steinbach: linux: 4.9.57 -> 4.9.58...
<NixOS_GitHub> nixpkgs/release-17.09 b6a32fe Tim Steinbach: linux: 4.13.8 -> 4.13.9...
NixOS_GitHub has left #nixos []
<tobiasBora> sphalerite: I mean compared to "native" compilation
<sphalerite> tobiasBora: nix already runs natively on the machine…
<Tekmo_> clever: `nix-store --realise` seems to work on it just fine, even if `nix-store --requisites` doesn't detect any dependencies
<clever> Tekmo_: it may cause problems down the road, when the drv's it references get deleted
Thra11 has quit [(Ping timeout: 240 seconds)]
Thra11 has joined #nixos
<ldlework> Can I force nix-env to reinstall a package and all of its dependencies?
<sphalerite> clever: hold on that PR, it's got a few issues
<clever> kk
<Tekmo_> clever: Yeah, I confirmed that deleting an upstream derivation gets it into a bad state with the: "don't know how to build these paths" error
<tobiasBora> sphalerite: I mean, if you compile it with the options that change the /nix. Because for example, proot does lot's of operation to simulate the /nix, that make it not usable in real life (I tried to run qemu with it... It took 10s just to prompt the bios). That's why I'm asking if I need to compile myself nix even if I use this solution to bootstrap the system, or if it's efficient enough to be usable alone.
<Tekmo_> Either way, this answers my question. This is good enough for teaching purposes even if it doesn't enforce the `nix-store` invariants correctly
<Tekmo_> I'll just add lots of warnings explaining the issues
ma27 has quit [(Quit: WeeChat 1.9.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vdAYE
<NixOS_GitHub> nixpkgs/master e9aa686 Tim Steinbach: linux-copperhead: 4.13.8.a -> 4.13.9.a
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vdAYu
<NixOS_GitHub> nixpkgs/release-17.09 873f27d Tim Steinbach: linux-copperhead: 4.13.8.a -> 4.13.9.a...
NixOS_GitHub has left #nixos []
<sphalerite> clever: any reason to copy all of the args rather than just reusing the pointers in qemu-wrap.c?
<sphalerite> tobiasBora: compiling nix yourself won't help with that.
<tobiasBora> sphalerite: why ? I saw that I can use some options to change the base /nix directory.
<tobiasBora> sphalerite: and by the way, your solution does not work for me, I get "unshare(): Operation not permitted
<clever> sphalerite: cant think of any, see what happens if you just copy the pointers
<MichaelRaskin> clever: re: Chromium: yes, that's a nice mind trick Chromium build plays.
<sphalerite> tobiasBora: nix-user-chroot uses namespaces rather than ptrace though, so it should be much, much faster
<clever> MichaelRaskin: the problem i ran into, is that chromium sets a data size limit of 2gig on every render process
<clever> MichaelRaskin: and one of my extensions needs >2gig for a single tab
Thra11 has quit [(Ping timeout: 240 seconds)]
<tobiasBora> sphalerite: ok. And do you know if I've any solution for this unshare(): Operation not permitted bug ?
ma27 has joined #nixos
<MichaelRaskin> clever: we all know what to do when Blink wants too much RAM.
Thra11 has joined #nixos
<clever> MichaelRaskin: in this case, i have 32gig of total ram, and 64gig of swap, but the process is setting a fairly low 2gig limit on itself
<clever> MichaelRaskin: so it can never even attempt to use enough ram to run
mizu_no_oto has joined #nixos
<MichaelRaskin> Well, as long as you do not migrate to Gecko, obviously!
<clever> MichaelRaskin: and when linking the source, i noticed there is what appears to be a fix: https://cs.chromium.org/chromium/src/content/common/sandbox_linux/sandbox_linux.cc?q=LimitAddressSpace&sq=package:chromium&dr=CSs&l=434
<clever> MichaelRaskin: which isnt present in the version 60 i'm currently running
nkpart[m] has quit [(Ping timeout: 240 seconds)]
Obscurity[m] has quit [(Ping timeout: 240 seconds)]
trevorriles[m] has quit [(Ping timeout: 248 seconds)]
reactormonk[m] has quit [(Ping timeout: 246 seconds)]
sirius[m] has quit [(Ping timeout: 246 seconds)]
Dezgeg[m] has quit [(Ping timeout: 246 seconds)]
tokudan[m] has quit [(Ping timeout: 246 seconds)]
necronian has quit [(Ping timeout: 246 seconds)]
aminech[m] has quit [(Ping timeout: 240 seconds)]
FRidh[m] has quit [(Ping timeout: 240 seconds)]
nh2[m] has quit [(Ping timeout: 240 seconds)]
regnat[m] has quit [(Ping timeout: 240 seconds)]
jsv[m] has quit [(Ping timeout: 240 seconds)]
benkolera has quit [(Ping timeout: 246 seconds)]
M-liberdiko has quit [(Ping timeout: 246 seconds)]
thematter[m] has quit [(Ping timeout: 255 seconds)]
AlanPearce[m] has quit [(Ping timeout: 255 seconds)]
baconicsynergy[m has quit [(Ping timeout: 255 seconds)]
cornu[m] has quit [(Ping timeout: 255 seconds)]
timclassic has quit [(Ping timeout: 248 seconds)]
fgaz[m] has quit [(Ping timeout: 246 seconds)]
sziszi[m] has quit [(Ping timeout: 264 seconds)]
aniketd[m] has quit [(Ping timeout: 240 seconds)]
<tobiasBora> I think that on debian your not allowed to use unshare by default
Li[m]1 has quit [(Ping timeout: 258 seconds)]
smbarte2[m] has quit [(Ping timeout: 276 seconds)]
mpuppe[m] has quit [(Ping timeout: 276 seconds)]
hedning[m] has quit [(Ping timeout: 248 seconds)]
dtz has quit [(Ping timeout: 248 seconds)]
trikl[m] has quit [(Ping timeout: 246 seconds)]
r3mfKm[m] has quit [(Ping timeout: 246 seconds)]
chominist[m] has quit [(Ping timeout: 246 seconds)]
offlinehacker[m] has quit [(Ping timeout: 246 seconds)]
admin[m] has quit [(Ping timeout: 240 seconds)]
adisbladis[m] has quit [(Ping timeout: 258 seconds)]
hendrik[m]1 has quit [(Ping timeout: 264 seconds)]
maralorn[m] has quit [(Ping timeout: 246 seconds)]
magnap has quit [(Ping timeout: 246 seconds)]
ssmike has joined #nixos
Thra11 has quit [(Ping timeout: 240 seconds)]
Thra11 has joined #nixos
justanotheruser has quit [(Ping timeout: 248 seconds)]
mith[m] has quit [(Ping timeout: 240 seconds)]
rycee has quit [(Ping timeout: 240 seconds)]
TaoHansen[m] has quit [(Ping timeout: 240 seconds)]
etcinit[m] has quit [(Ping timeout: 246 seconds)]
puffnfresh has quit [(Ping timeout: 246 seconds)]
spacekitteh[m] has quit [(Ping timeout: 246 seconds)]
Oo[m] has quit [(Ping timeout: 240 seconds)]
bdimcheff has quit [(Ping timeout: 255 seconds)]
sudoreboot[m] has quit [(Ping timeout: 255 seconds)]
apocolocyntos[m] has quit [(Ping timeout: 240 seconds)]
lecorpsnoir[m] has quit [(Ping timeout: 240 seconds)]
codyopel has quit [(Ping timeout: 240 seconds)]
itorres has quit [(Ping timeout: 240 seconds)]
AmineChikhaoui[m has quit [(Ping timeout: 240 seconds)]
malteof[m] has quit [(Ping timeout: 240 seconds)]
pierrebeaucamp[m has quit [(Ping timeout: 240 seconds)]
ipj[m] has quit [(Ping timeout: 246 seconds)]
a123123123[m] has quit [(Ping timeout: 246 seconds)]
bennofs[m] has quit [(Ping timeout: 246 seconds)]
Sovereign_Bleak has quit [(Ping timeout: 246 seconds)]
Manish[m] has quit [(Ping timeout: 248 seconds)]
AdamSlack[m] has quit [(Ping timeout: 248 seconds)]
revoltmedia[m] has quit [(Ping timeout: 248 seconds)]
akavel[m] has quit [(Ping timeout: 248 seconds)]
jack[m] has quit [(Ping timeout: 248 seconds)]
ArdaXi[m] has quit [(Ping timeout: 248 seconds)]
bachp has quit [(Ping timeout: 248 seconds)]
sphalerite has quit [(Ping timeout: 248 seconds)]
hl has quit [(Ping timeout: 276 seconds)]
__monty__ has left #nixos []
noctuid has quit [(Ping timeout: 246 seconds)]
tommyangelo[m] has quit [(Ping timeout: 246 seconds)]
voobscout[m] has quit [(Ping timeout: 246 seconds)]
DIzFer[m] has quit [(Ping timeout: 246 seconds)]
Exee7uvo[m] has quit [(Ping timeout: 246 seconds)]
teh[m] has quit [(Ping timeout: 246 seconds)]
Wysteriary[m] has quit [(Ping timeout: 246 seconds)]
krawiec[m] has quit [(Ping timeout: 264 seconds)]
octalsrc[m] has quit [(Ping timeout: 264 seconds)]
mtncoder[m] has quit [(Ping timeout: 264 seconds)]
abbafei[m] has quit [(Ping timeout: 264 seconds)]
onito[m] has quit [(Ping timeout: 264 seconds)]
NickHu has quit [(Ping timeout: 264 seconds)]
WinterFox[m] has quit [(Ping timeout: 264 seconds)]
JaakkoLuttinen[m has quit [(Ping timeout: 252 seconds)]
kevincox has quit [(Ping timeout: 252 seconds)]
kitten[m] has quit [(Ping timeout: 252 seconds)]
efx[m] has quit [(Ping timeout: 252 seconds)]
peel[m] has quit [(Ping timeout: 252 seconds)]
aspiwack[m] has quit [(Ping timeout: 252 seconds)]
EB[m] has quit [(Ping timeout: 255 seconds)]
spawnthink[m] has quit [(Ping timeout: 255 seconds)]
zigschots20[m] has quit [(Ping timeout: 255 seconds)]
unlmtd has quit [(Ping timeout: 255 seconds)]
davidar has quit [(Ping timeout: 255 seconds)]
bendlas has quit [(Ping timeout: 255 seconds)]
dalaing has quit [(Ping timeout: 240 seconds)]
dash has quit [(Ping timeout: 240 seconds)]
Phil[m]1 has quit [(Ping timeout: 255 seconds)]
moredhel1 has quit [(Ping timeout: 255 seconds)]
sargon[m] has quit [(Ping timeout: 255 seconds)]
nixo[m] has quit [(Ping timeout: 255 seconds)]
myklam[m] has quit [(Ping timeout: 255 seconds)]
copumpkin has quit [(Ping timeout: 255 seconds)]
Barnabas[m] has quit [(Ping timeout: 255 seconds)]
AsherGottlieb[m] has quit [(Ping timeout: 246 seconds)]
icetan has quit [(Ping timeout: 246 seconds)]
Pneumaticat has quit [(Ping timeout: 246 seconds)]
dibblego[m] has quit [(Ping timeout: 246 seconds)]
nocent has quit [(Ping timeout: 246 seconds)]
thomad[m] has quit [(Ping timeout: 246 seconds)]
ycy[m] has quit [(Ping timeout: 246 seconds)]
M-berdario has quit [(Ping timeout: 246 seconds)]
edef[m] has quit [(Ping timeout: 246 seconds)]
Nobabs27[m] has quit [(Ping timeout: 246 seconds)]
peterhoeg has quit [(Ping timeout: 258 seconds)]
gudea[m] has quit [(Ping timeout: 248 seconds)]
jlle[m] has quit [(Ping timeout: 240 seconds)]
JameySharp[m] has quit [(Ping timeout: 255 seconds)]
fearlessKim[m] has quit [(Ping timeout: 255 seconds)]
StuK[m] has quit [(Ping timeout: 255 seconds)]
yochai[m] has quit [(Ping timeout: 255 seconds)]
freeman42x has quit [(Ping timeout: 255 seconds)]
ninegua[m] has quit [(Ping timeout: 246 seconds)]
Elephant454[m] has quit [(Ping timeout: 246 seconds)]
ison[m] has quit [(Ping timeout: 276 seconds)]
wizzup[m] has quit [(Ping timeout: 276 seconds)]
wmertens[m] has quit [(Ping timeout: 276 seconds)]
zoya-kosova[m] has quit [(Ping timeout: 276 seconds)]
danielrf has quit [(Ping timeout: 264 seconds)]
kainospur[m] has quit [(Ping timeout: 264 seconds)]
dylanjust[m] has quit [(Ping timeout: 264 seconds)]
musicmatze[m] has quit [(Ping timeout: 264 seconds)]
scott1 has quit [(Ping timeout: 264 seconds)]
Ralith has quit [(Ping timeout: 255 seconds)]
AndersonTorres[m has quit [(Ping timeout: 252 seconds)]
Phyra[m] has quit [(Ping timeout: 252 seconds)]
Kallegro[m] has quit [(Ping timeout: 252 seconds)]
wak-work has quit [(Ping timeout: 252 seconds)]
xurxo[m] has quit [(Ping timeout: 246 seconds)]
Vincenzo[m] has quit [(Ping timeout: 246 seconds)]
qrilka[m] has quit [(Ping timeout: 246 seconds)]
tobim[m] has quit [(Ping timeout: 240 seconds)]
Naughtmare[m] has quit [(Ping timeout: 240 seconds)]
herzmeister[m] has quit [(Ping timeout: 240 seconds)]
Leo[m]1 has quit [(Ping timeout: 246 seconds)]
M-gst has quit [(Ping timeout: 246 seconds)]
stanibanani has left #nixos []
retrry[m] has quit [(Ping timeout: 248 seconds)]
florianjacob has quit [(Ping timeout: 248 seconds)]
AllanDaemon[m] has quit [(Ping timeout: 255 seconds)]
Singularity[m] has quit [(Ping timeout: 255 seconds)]
jyp[m] has quit [(Ping timeout: 255 seconds)]
equalunique[m] has quit [(Ping timeout: 255 seconds)]
<clever> matrix is at it again...
mrdaak[m] has quit [(Ping timeout: 240 seconds)]
demyan[m] has quit [(Ping timeout: 240 seconds)]
TimePath has quit [(Ping timeout: 240 seconds)]
pstn has quit [(Ping timeout: 252 seconds)]
primeos[m] has quit [(Ping timeout: 264 seconds)]
maigel[m] has quit [(Ping timeout: 276 seconds)]
EuAndreh[m] has quit [(Ping timeout: 276 seconds)]
M-fishy has quit [(Ping timeout: 255 seconds)]
Khorne[m] has quit [(Ping timeout: 255 seconds)]
the_m4ur1[m] has quit [(Ping timeout: 255 seconds)]
corngood has quit [(Ping timeout: 240 seconds)]
berot3[m] has quit [(Ping timeout: 240 seconds)]
bhipple[m] has quit [(Ping timeout: 246 seconds)]
olejorgenb[m] has quit [(Ping timeout: 246 seconds)]
<adamt> clever: How so -- is half the channel in here through a matrix-irc bridge of sorts?
Drakonis[m] has quit [(Ping timeout: 264 seconds)]
matrixkrav has quit [(Ping timeout: 264 seconds)]
guest521[m] has quit [(Ping timeout: 276 seconds)]
eqyiel[m] has quit [(Ping timeout: 276 seconds)]
sk23[m] has quit [(Ping timeout: 276 seconds)]
mankyKitty[m] has quit [(Ping timeout: 276 seconds)]
indefini has quit [(Ping timeout: 276 seconds)]
grahamc has quit [(Ping timeout: 276 seconds)]
rnhmjoj[m] has quit [(Ping timeout: 255 seconds)]
seif[m] has quit [(Ping timeout: 255 seconds)]
Johnny44[m] has quit [(Ping timeout: 255 seconds)]
<clever> adamt: looks like it
mhsjlw[m] has quit [(Ping timeout: 255 seconds)]
Yaniel has quit [(Ping timeout: 255 seconds)]
Geeky[m] has quit [(Ping timeout: 276 seconds)]
viaken[m] has quit [(Ping timeout: 276 seconds)]
pvn[m] has quit [(Ping timeout: 276 seconds)]
maiksen_ has joined #nixos
maiksen_ has quit [(Client Quit)]
mizu_no_oto has quit [(Ping timeout: 260 seconds)]
dywedir has quit [(Remote host closed the connection)]
ma27 has quit [(Ping timeout: 248 seconds)]
stanibanani1 has joined #nixos
glenn has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vdAOg
<NixOS_GitHub> nixpkgs/master 917bd0b Tuomas Tynkkynen: souffle: Disable parallel building...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to release-17.09: https://git.io/vdA3c
<NixOS_GitHub> nixpkgs/release-17.09 7c4c71a Tuomas Tynkkynen: souffle: Disable parallel building...
NixOS_GitHub has left #nixos []
<iqubic> why so many disconnects?
<justin-sleep> is anyone running LUKS on LVM with linuxPackages_latest? It doesn't prompt me for a password, says the device can't be found (in contrast to the default linuxPackages)
<clever> iqubic: those are all running on a single machine
<iqubic> Wha...? HOW?!?!
mizu_no_oto has joined #nixos
<clever> iqubic: matrix got an exception to allow it
<iqubic> So is it just one user, or what?
<clever> its a bouncer
mizu_no_oto has quit [(Client Quit)]
linus1 has joined #nixos
stanibanani1 has quit [(Ping timeout: 260 seconds)]
linus1 is now known as sphalerite_
<sphalerite_> well that would explain why I wasn't getting any messages
<seequ> What, did the matrix bridge go down?
<sphalerite_> seems like it
<seequ> I have ignored all joins and parts :P
glenn has joined #nixos
<clever> seequ: it was nearly 10 minutes of people ping-timeouting
<seequ> yeah, it'd be nifty if we got a bridge that acted like an irc node
Thra11 has quit [(Ping timeout: 255 seconds)]
<iqubic> Is there a list of acceptable values for boot.kernelPatches anywhere?
<iqubic> Like what packages can I use as kernel patches?
<sphalerite_> iqubic: they're attrsets
<iqubic> What does that mean?
thblt has quit [(Ping timeout: 246 seconds)]
<iqubic> is there a list attrsets?
<sphalerite_> iqubic: have a look at nixpkgs/pkgs/os-specific/linux/kernel/patches.nix for some examples
Thra11 has joined #nixos
glenn has quit [(Ping timeout: 264 seconds)]
<clever> sphalerite_: i think updating to chrome 62 fixed the problem
Tekmo_ has quit [(Ping timeout: 260 seconds)]
<sphalerite_> iqubic: bridge_stp_helper, p9_fixes, etc. are all patches that can be put in kernelPatches
<iqubic> As pkgs.whatever?
ma27 has joined #nixos
<iqubic> How do I know what those patches do?
<ldlework> How can I force nix to rebuild packages?
<clever> ldlework: why do you want to force a rebuild?
<iqubic> Also, not too many patches are there.
ylwghst has joined #nixos
<ldlework> clever, I dunno man - my mono/fsharp is totally busted. I was thinking maybe when I was screwing with forcing overrides to be evaluated and stuff that maybe I caused the package to build poorly
<clever> ldlework: nix knows when the overrides have changed, and will use a different storepath for the overridden and non-overridden version
<clever> ldlework: so that kind of mess cant happen
<sphalerite_> iqubic: if you don't know what they do you probably don't need them :)
<sphalerite_> iqubic: what do you want kernel patches for?
<iqubic> acpi is giving me weird results.
<iqubic> Battery 0: Unknown, 97%
<sphalerite_> do you know of a patch that fixes it?
<clever> Battery 0: design capacity 5200 mAh, last full capacity 1741 mAh = 33%
<clever> iqubic: thanks for reminding me to check, this battery is toast
<iqubic> sphalerite_: I don't
<iqubic> I'm not sure there is one.
<iqubic> I also want to fix my touchpad.
<iqubic> I'm going to try the latest unstable kernel to get that to work
Thra11 has quit [(Ping timeout: 255 seconds)]
<sphalerite_> iqubic: yeah nixpkgs is probably not going to be where you find a patch to fix that. If you find one floating about on the internet that you'd like to try I can help you apply it if you need help with that though.
Thra11_ has joined #nixos
Thra11_ has quit [(Client Quit)]
<iqubic> I will.
<clever> Battery 0: design capacity 2400 mAh, last full capacity 1543 mAh = 64%
Thra11 has joined #nixos
<clever> hmmm, this battery looks a bit better
<iqubic> I have other things I need to work on right now though.
<clever> wait no
<clever> its % is better, but its capacity is much worse, lol
<iqubic> Did you have a spare battery laying around?
<clever> iqubic: i have 3
<iqubic> How does acpi give such detailed information for you?
<clever> Battery 0: design capacity 7800 mAh, last full capacity 3542 mAh = 45%
<clever> thats better
iqubic has quit [(Quit: Page closed)]
<sphalerite_> clever: I'm trying to nix-build -E 'with import <nixpkgs> { system = "armv7l-linux"; }; nix', but it says while setting up the build environment: executing ‘/nix/store/1zfrihkxqjqph4kd70syz14zbkmhcps5-busybox’: No such file or directory
<sphalerite_> clever: I can run /nix/store/1zfrih*-busybox ash just fine though
glenn has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] flokli opened pull request #30695: libcap: already patch Make.Rules in prePatch (staging...libcap-pkgconfig) https://git.io/vdAGE
NixOS_GitHub has left #nixos []
<clever> sphalerite_: oh, right, nix sandbox, the qemu isnt present
<clever> sphalerite_: the closure of qemu-user has to be added to build-sandbox-paths
justanotheruser has joined #nixos
<sphalerite_> what's a neat way to do that in the system config?
jb55 has quit [(Ping timeout: 260 seconds)]
<clever> build-sandbox-paths = ${toString cfg.sandboxPaths} /bin/sh=${sh} $(echo $extraPaths)
<clever> sphalerite_: nix.sandboxPaths
<clever> and because its staticly linked, it can probably just be (import <nix-misc> {}).qemu-user
srodal has quit [(Ping timeout: 240 seconds)]
<sphalerite_> yay it seems to be working!
<sphalerite_> (I did nix.sandboxPaths = [ "${nix-misc.qemu-user-arm}" ];)
<clever> nice
<clever> Oct 22 16:26:20 amd-nixos systemd-coredump[22563]: Process 19452 (chromium) of user 1000 dumped core.
<clever> hmmm, chrome is still coredumping
<infinisil> Oh, btw, to get ntfs support, a better way would be to add `boot.supportedFilesystems = [ "ntfs" ]`
<Dezgeg> don't you then get the R/O kernel driver
<infinisil> Which effectively does the same as adding ntfs3g
<infinisil> this also works to get exfat support
<infinisil> (and more)
glenn has quit [(Ping timeout: 246 seconds)]
justanotheruser has quit [(Quit: WeeChat 1.7.1)]
justanotheruser has joined #nixos
dbmikus has joined #nixos
<sphalerite_> heh. Right when I've got my main laptop building ARM stuff successfully, my chromebook finishes building its kernel itself
<clever> sphalerite_: but you could now repeat the qemu-user stuff against all your x86 machines, and then add them all as build slaves
<clever> and cluster that build!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] nckx pushed 3 new commits to master: https://git.io/vdAGh
<NixOS_GitHub> nixpkgs/master e53785a Dmitry Kalinkin: proot: static by default
<NixOS_GitHub> nixpkgs/master 10cc95e Dmitry Kalinkin: proot: 5.1.0 -> 5.1.0.20171015
<NixOS_GitHub> nixpkgs/master 4333b94 Tobias Geerinckx-Rice: Merge pull request #30495 from veprbl/patch-2...
NixOS_GitHub has left #nixos []
<sphalerite_> I don't have many x86 machines :p
glenn has joined #nixos
darlan has joined #nixos
kuznero has joined #nixos
<Dezgeg> now which one's faster, qemu or the chromebook?
<sphalerite_> that's the question
<sphalerite_> Now I'm trying to get your binary cache working on my main laptop too >_>
<clever> even if qemu is 50% the speed, you can still build at an effective 150%, by building across both machines with nix build slaves
<sphalerite_> oh I was just using the wrong version of nixpkgs
michaelpj has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
demego has quit [(Read error: Connection reset by peer)]
michaelpj has joined #nixos
<sphalerite_> will compare qemu vs metal as soon as the deps have finished downloading…
<kuznero> After patchelf with --set-interpreter and --set-rpath I have my executable fail with: Failed to bind to CoreCLR at '/home/kuznero/Projects/Kuznero/public/nixpkgs-dotnet/cli/cli-2.0.2/.dotnet_stage0/x64/shared/Microsoft.NETCore.App/2.0.0/libcoreclr.so'
glenn has quit [(Ping timeout: 264 seconds)]
<sphalerite_> oh yeah, I imagine qemu will be a fair bit faster also partly due to storage speed. I've got an nvme ssd in the big laptop and an SD card in the chromebook :p
<kuznero> Is that an indication that I need to patchelf --set-rpath all the .so libs as well?
<clever> sphalerite_: also, how many cores in the chromebook vs laptop?
<sphalerite_> clever: 4 in chromebook, 4 with 2 threads each on main laptop
<clever> ah
ipj[m] has joined #nixos
darlan has quit [(Quit: Communi 3.5.0 - http://communi.github.com)]
<clever> so it will be even to double, depending on how hyperthreading handles qemu-user
<sphalerite_> well the chromebook spent 10 minutes running cp on an 800MB dir
<clever> thats mostly IO bound
<sphalerite_> exactly
<sphalerite_> so I think that'll give the big laptop a major edge
<sphalerite_> also — the kernel took about 6 hours I think. Funny thing is, I'm probably not even going to use it >_>
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jwiegley pushed 1 new commit to master: https://git.io/vdAZD
<NixOS_GitHub> nixpkgs/master 89720d8 John Wiegley: coqPackages_8_7: New expression, but don't make it the default yet
NixOS_GitHub has left #nixos []
katyucha has quit [(Ping timeout: 240 seconds)]
sphalerite has joined #nixos
<sphalerite> heeey are we back?
<sphalerite> we are!
<sphalerite_> whoopee!
mrkgnao has quit [(Ping timeout: 248 seconds)]
<ldlework> Hmm, things compiled with mcs work 👍 with mono
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vdAnU
<NixOS_GitHub> nixpkgs/release-17.09 52f381c Tim Steinbach: Merge pull request #30689 from pbogdan/update-irssi...
NixOS_GitHub has left #nixos []
fendor has joined #nixos
<sphalerite_> Is theere a simple way to get the output of ps -ef --forest but rather than showing everything, only showing all the descendent processes of a given process?
<sphalerite_> --ppid allows showing only child processes of a given process, but I want all descendentes
<clever> i use either "ps -eH x" or pstree for that kind of output, but they show the entire system
<sphalerite_> checking whether we are cross compiling... no
<sphalerite_> Hehehehe autotools has been bamboozled
<clever> :D
<clever> one minor problem ive run into, qemu emulates a v7 with v6 backwards compat
<sphalerite_> pstree -p seems to do what I want
<clever> openssl (i think) will notice the v7 support when doing a v6 only build, and force v7 opcodes into the product
<clever> and then things fail when moved to a real v6, that lacks v7 support
ylwghst has quit [(Remote host closed the connection)]
<sphalerite_> ah. I guess that can be remedied by getting qemu to emulate armv6?
<sphalerite_> armv6 only that is
<clever> i think there is a CLI arg you can pass to do that
<clever> which qemu-wrap can set
<sphalerite_> In my case it won't be a problem because the chromebook is armv7
<clever> but the bigger issue is that the ELF header saying v6 or v7 is too complex for binfmt-misc
<Mic92> sphalerite_: emulation is pretty slow
<clever> so you have to lock the entire x86 machine to one type
<sphalerite_> ok, qemu is definitely a lot slower thtan native compilation
<sphalerite_> Mic92: yes, just noticed that :D
<Dezgeg> heh
<clever> sphalerite_: how many mhz on the chromebook?
<sphalerite_> clever: ah, that sucks
<ldlework> I'm trying `nix-env -i dotnetev` but it says the selector isnt' found. I also tried dotnetenv40
<sphalerite_> clever: http://sprunge.us/RJER
<clever> sphalerite_: ah, it can go a almost twice as fast as an rpi
<Dezgeg> well it's a completely different microarchitecture as well
<sphalerite_> hm apparently my main laptop's cpu goes up to 3.8GHz, but it's currently running at 2.8
<sphalerite_> how do I actually get it to go there?
<clever> sphalerite_: it will dynamicaly adjust based on cpu load
<sphalerite_> clever: so is the cpu mhz number reported by lscpu actually a lie?
<sphalerite_> because I've never seen it change
<clever> sphalerite_: what does /proc/cpuinfo say?
<sphalerite_> 2800 for all of them
<clever> sphalerite_: one min
fendor has quit [(Remote host closed the connection)]
<sphalerite_> there's probably something in sysfs that'll be more accurate
fendor has joined #nixos
glenn has joined #nixos
<ldlework> nix-env -i pkgs.dotnetPackages.MonoAddins
<ldlework> error: selector ‘pkgs.dotnetPackages.MonoAddins’ matches no derivations
<clever> ldlework: you need -A
<ldlework> ah
<clever> and it must start with the name of a channel from "nix-channel --list"
<ldlework> that is empty
<clever> as root
<ldlework> still blank
<ldlework> oh nm
<ldlework> wierd
<clever> sudo on darwin sets $HOME wrong
<clever> which breaks "sudo nix-channel --list"
<clever> you need to open a shell with "sudo -i" then "nix-channel --list"
<sphalerite_> clever: ah yes, they seem to be hovering close to 3.8GHz :)
nixo[m] has joined #nixos
ArdaXi[m] has joined #nixos
unlmtd has joined #nixos
kitten[m] has joined #nixos
cornu[m] has joined #nixos
Phyra[m] has joined #nixos
nkpart[m] has joined #nixos
grahamc has joined #nixos
moredhel1 has joined #nixos
abbafei[m] has joined #nixos
mankyKitty[m] has joined #nixos
sirius[m] has joined #nixos
aspiwack[m] has joined #nixos
primeos[m] has joined #nixos
peterhoeg has joined #nixos
efx[m] has joined #nixos
bachp has joined #nixos
berot3[m] has joined #nixos
davidar has joined #nixos
7F1AAQYQ9 has joined #nixos
timclassic has joined #nixos
NickHu has joined #nixos
mith[m] has joined #nixos
kainospur[m] has joined #nixos
TimePath has joined #nixos
Naughtmare[m] has joined #nixos
Nobabs27[m] has joined #nixos
the_m4ur1[m] has joined #nixos
zoya-kosova[m] has joined #nixos
jyp[m] has joined #nixos
baconicsynergy[m has joined #nixos
M-liberdiko has joined #nixos
wak-work has joined #nixos
Kallegro[m] has joined #nixos
bdimcheff has joined #nixos
peel[m] has joined #nixos
rycee has joined #nixos
nh2[m] has joined #nixos
Oo[m] has joined #nixos
sudoreboot[m] has joined #nixos
octalsrc[m] has joined #nixos
matrixkrav has joined #nixos
AlanPearce[m] has joined #nixos
teh[m] has joined #nixos
chominist[m] has joined #nixos
Exee7uvo[m] has joined #nixos
Li[m] has joined #nixos
itorres has joined #nixos
olejorgenb[m] has joined #nixos
copumpkin has joined #nixos
trikl[m] has joined #nixos
Elephant454[m] has joined #nixos
Geeky[m] has joined #nixos
reactormonk[m] has joined #nixos
myklam[m] has joined #nixos
herzmeister[m] has joined #nixos
FRidh[m] has joined #nixos
a123123123[m] has joined #nixos
tokudan[m] has joined #nixos
AndersonTorres[m has joined #nixos
kevincox has joined #nixos
rnhmjoj[m] has joined #nixos
magnap has joined #nixos
<clever> sphalerite_: and they are back!
viaken[m] has joined #nixos
spacekitteh[m] has joined #nixos
fearlessKim[m] has joined #nixos
thematter[m] has joined #nixos
edef[m] has joined #nixos
sargon[m] has joined #nixos
necronian has joined #nixos
lecorpsnoir[m] has joined #nixos
florianjacob has joined #nixos
revoltmedia[m] has joined #nixos
Wysteriary[m] has joined #nixos
spawnthink[m] has joined #nixos
M-gst has joined #nixos
qrilka[m] has joined #nixos
aminech[m] has joined #nixos
offlinehacker[m] has joined #nixos
nocent has joined #nixos
hl has joined #nixos
freeman42x has joined #nixos
benkolera has joined #nixos
pstn has joined #nixos
Yaniel has joined #nixos
Phil[m]1 has joined #nixos
jsv[m] has joined #nixos
krawiec[m] has joined #nixos
Obscurity[m] has joined #nixos
wmertens[m] has joined #nixos
yochai[m] has joined #nixos
AmineChikhaoui[m has joined #nixos
EuAndreh[m] has joined #nixos
dtz has joined #nixos
bennofs[m] has joined #nixos
codyopel has joined #nixos
WinterFox[m] has joined #nixos
bhipple[m] has joined #nixos
adisbladis[m] has joined #nixos
aniketd[m] has joined #nixos
pvn[m] has joined #nixos
trevorriles[m] has joined #nixos
Sovereign_Bleak has joined #nixos
puffnfresh has joined #nixos
sk23[m] has joined #nixos
Dezgeg[m] has joined #nixos
equalunique[m] has joined #nixos
Pneumaticat has joined #nixos
Johnny44[m] has joined #nixos
pierrebeaucamp[m has joined #nixos
onito[m] has joined #nixos
seif[m] has joined #nixos
AdamSlack[m] has joined #nixos
mpuppe[m] has joined #nixos
Leo[m]1 has joined #nixos
apocolocyntos[m] has joined #nixos
tommyangelo[m] has joined #nixos
thomad[m] has joined #nixos
zigschots20[m] has joined #nixos
Vincenzo[m] has joined #nixos
Singularity[m] has joined #nixos
StuK[m] has joined #nixos
wizzup[m] has joined #nixos
ison[m] has joined #nixos
mrdaak[m] has joined #nixos
maigel[m] has joined #nixos
Khorne[m] has joined #nixos
guest521[m] has joined #nixos
icetan has joined #nixos
corngood has joined #nixos
M-fishy has joined #nixos
etcinit[m] has joined #nixos
EB[m] has joined #nixos
eqyiel[m] has joined #nixos
ninegua[m] has joined #nixos
tobim[m] has joined #nixos
regnat[m] has joined #nixos
voobscout[m] has joined #nixos
bendlas has joined #nixos
dash1 has joined #nixos
JaakkoLuttinen[m has joined #nixos
Drakonis[m] has joined #nixos
fgaz[m] has joined #nixos
musicmatze[m] has joined #nixos
malteof[m] has joined #nixos
mtncoder[m] has joined #nixos
sziszi[m] has joined #nixos
scott1 has joined #nixos
Ralith has joined #nixos
ycy[m] has joined #nixos
TaoHansen[m] has joined #nixos
DIzFer[m] has joined #nixos
mhsjlw[m] has joined #nixos
indefini has joined #nixos
dibblego[m] has joined #nixos
hedning[m] has joined #nixos
jack[m] has joined #nixos
Barnabas[m] has joined #nixos
demyan[m] has joined #nixos
M-berdario has joined #nixos
r3mfKm[m] has joined #nixos
dalaing has joined #nixos
dylanjust[m] has joined #nixos
<clever> let the spam ensue!
noctuid has joined #nixos
maralorn[m] has joined #nixos
AllanDaemon[m] has joined #nixos
AsherGottlieb[m] has joined #nixos
retrry[m] has joined #nixos
jb55 has joined #nixos
jlle[m] has joined #nixos
Manish[m] has joined #nixos
smbarte2[m] has joined #nixos
JameySharp[m] has joined #nixos
gudea[m] has joined #nixos
akavel[m] has joined #nixos
danielrf has joined #nixos
admin[m]1 has joined #nixos
xurxo[m] has joined #nixos
<sphalerite_> building (and testing) nix took 28 minutes on the big laptop…
<sphalerite_> now to compare on the chromebook.
<sphalerite_> Well, once it's done copying the system to the USB hard drive. Which may be another while.
<infinisil> How does nixos determine what network interface to use by default?
<sphalerite> hooray!
<sphalerite> FWIW I was back earlier :p
<ldlework> hrm, gtk-sharp wont install on darwin because it depends on libpcap which has some linux assertions
<sphalerite_> infinisil: dark magic
<infinisil> Damnit
<sphalerite_> ldlework: try overriding it with libpcap = null;
fendor has quit [(Quit: Leaving)]
<ldlework> sphalerite with packagesOverride in config.nix?
<seequ> Hmm, are nixos VMs useful as a replacement for desktop virtualbox vms and like?
<seequ> They seem extremely slow in comparison.
c0bw3b has left #nixos []
<sphalerite_> ldlework: or an overlay
<ldlework> I'm not exactly what in the dependency chain of gtk-sharp actually relies on libpcap though
<ldlework> exactly sure*
<sphalerite_> ldlework: maybe just make libpcap = null generally in the overlay then
Guest80156 has quit [(Quit: Lost terminal)]
<sphalerite_> ldlework: wait, what's the assert in question?
<ldlework> libpcap/default.nix : assert pam != null -> stdenv.isLinux;
<sphalerite_> huh, I don't see htat assertion
<ldlework> lien 2
<sphalerite_> in fact it doesn't even have pam in its deps…?
<sphalerite_> which version of nixpkgs are you on?]
<ldlework> woah I don't see it either!
<ldlework> in git anyway
<ldlework> sphalerite_ whatever gets installed with the Nix installation script for OSX
jcarr has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ttuegel closed pull request #30208: massif-visualizer: 0.4.0 -> 0.7.0 (master...massif-visualizer) https://git.io/vdzCu
NixOS_GitHub has left #nixos []
<ldlework> oh
<ldlework> its libcap
<ldlework> not libpcap
<ldlework> lmao
<sphalerite_> ooooh that explains it
<kuznero> clever: after I have patchelf executable as well as all the *.so libraries that were distributed with the executable I still cannot execute the binary. It is complaining that one of the libs cannot be bound. Then `ldd lib.so` shows that libunwind is not found. But libunwind is the arg for default.nix as well as buildInput. What am I missing potenti
<kuznero> ally?
<clever> kuznero: buildInputs dont show up in the rpath when you patchelf
<clever> kuznero: you have to add libunwind to the rpath
<sphalerite_> ldlework: yeah that's a linux-specific thing. Just make it null in an overlay
<sphalerite_> ldlework: if that breaks anything it wasn't going to work on OSX anyway :p
<kuznero> clever: how do I do that?
<clever> kuznero: by adding ${libunwind}/lib to the rpath list
<kuznero> clever: Thanks!
<ldlework> sphalerite it complains that features.h is missing
<sphalerite> ldlework: what does?
<ldlework> In file included from libattr.c:25:
<ldlework> ../include/attr/xattr.h:23:10: fatal error: 'features.h' file not found
<sphalerite> ldlework: also it really bothers me how your nick isn't Idlework :p
<ldlework> 🤣
<ldlework> I think something with libgnomecups?
jcarr has quit [(Read error: Connection reset by peer)]
<sphalerite> ldlework: could you post a full build log?
leat has quit [(Ping timeout: 240 seconds)]
<sphalerite> (not directly in here ;P )
jcarr has joined #nixos
simendsjo has quit [(Remote host closed the connection)]
<sphalerite> yeah it's libattr as I thought… it shouldn't be trying to build that on OSX
<sphalerite> have you set allowBroken to true?
<sphalerite> Try setting attr = null; in your overlay too
<ldlework> checking for attr/xattr.h... no
<ldlework> FATAL ERROR: attr/xattr.h does not exist.
jcarr has quit [(Read error: Connection reset by peer)]
<sphalerite> I think acl will fail too, so add acl = null; as well
<tobiasBora> Have you heard of any script that install the dependencies needed to compile nix ?
jcarr has joined #nixos
<sphalerite> in which derivation?
<sphalerite> (look for the "builder for … failed with exit code" line)
<ldlework> ../../include/local.h:47:2: error: Header defining endianness not defined
jcarr has quit [(Read error: Connection reset by peer)]
<ldlework> #error Header defining endianness not defined
<ldlework> after disabling acl
<kuznero> How to see what package provides libuuid.so ?
<ldlework> builder for ‘/nix/store/364vzkpa08ylhh4pkisrfll9ykr4p27b-alsa-lib-1.1.4.1.drv’ failed with exit code 2
<kuznero> libuuid does not seem to do it for some strange reason
jcarr has joined #nixos
jcarr has quit [(Read error: Connection reset by peer)]
<ldlework> kuznero what platform are you building for?
<kuznero> Linux for now
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pbogdan opened pull request #30696: torcs: fix build & cleanups (master...torcs-fix-build) https://git.io/vdACk
NixOS_GitHub has left #nixos []
jcarr has joined #nixos
adamt has quit [(Ping timeout: 240 seconds)]
<kuznero> ldlework: NixOS, I mean
Piece_Maker has joined #nixos
glenn has quit [(Ping timeout: 255 seconds)]
Acou_Bass has quit [(Ping timeout: 248 seconds)]
Piece_Maker is now known as Acou_Bass
jcarr has quit [(Read error: Connection reset by peer)]
leat has joined #nixos
<clever> libuuid.out 0 s /nix/store/aswq968ln90nrykgi7902lg80vmibygf-util-linux-2.29.2/lib/libuuid.so
<kuznero> clever: what means out?
<clever> kuznero: libuuid is just an alias to util-linux
jcarr has joined #nixos
<clever> and util-linux is the one that has libuuid.so
<clever> ${libuuid.out}/lib/
jcarr has quit [(Read error: Connection reset by peer)]
<clever> heading off to bed now
<sphalerite> clever: are you in Europe physically or just with your biological clock? xD
<kuznero> clever: I have tried ${libuuid}, ${utillinux} - none have libuuid.so. So, what is the difference with ${libuuid.out}, why does it have it, but two others not
<kuznero> ?
jcarr has joined #nixos
<clever> kuznero: util-linux defaults to the .bin output
<sphalerite> ldlework: same for alsa, it's linux-specific. Again, do you have allowBroken set to true? It shouldn't even be trying to build this stuff
<kuznero> clever: thanks
jcarr has quit [(Read error: Connection reset by peer)]
<ldlework> sphalerite I have allowUnsupportedPlatform because otherwise gtk-sharp just refused to build. Without gtk-sharp, you can do basically no windowed programming with Mono on OSX.
jcarr has joined #nixos
<sphalerite> ldlework: if you unset it, what error do you get?
jcarr has quit [(Read error: Connection reset by peer)]
<ldlework> gtk-sharp/2.0.nix:18 is not supported on ‘x86_64-darwin’, refusing to evaluate.
<sphalerite> it should be a lot quicker to give you helpful errors if you don't have allowUnsupportedPlatform enabled
<ldlework> And you cannot override meta.platforms with an override or overlay
<infinisil> I'm trying out networkmanager the first time, isn't there supposed to be a GUI? Because I don't have one
<ldlework> I should probably just give up trying to mono on OSX with Nix for now. It doesn't seem like many people use mono on OSX.
<ldlework> At least with Nix I mean.
<symphorien> infinisil: nm-applet
<infinisil> Ohhhh
<infinisil> I thought it would be something like that
<sphalerite> ldlework: yes you can. gtk-sharp_2_0 = super.gtk-sharp-2_0.overrideAttrs (o: {meta.platforms = stdenv.lib.platforms.all;});
<sphalerite> infinisil: nm-connection-editor/nm-applet for GUIs
<ldlework> I've been down this road heh
<clever> sphalerite: the platform asserts stop you from reading super.gtk-sharp-2_0 in any way
<infinisil> symphorien: sphalerite: Thanks, will check them out
<ldlework> infinisil ^
<sphalerite> infinisil: nmtui and nmcli for managing connections on the commandline
glenn has joined #nixos
<sphalerite> ldlework: clever : Oh I see
<sphalerite> so you can only reduce, not increase the platforms? >_>
<clever> yeah
<sphalerite> because setting meta.platforms to [] using overrideAttrs causes it to break for me on linux
<sphalerite> right
<clever> try setting it to null
<sphalerite> ldlework: so you'll probably want to use a nixpkgs checkout instead
* clever heads off to bed
<sphalerite> regardless, allowUnsupportedPlatforms will probably continue to waste a lot of time for you
<sphalerite> clever: one more quick thing
<infinisil> Damn, nmtui is fancyyyy
<sphalerite> just FYI — nix built exactly 2× faster on the chromebook
<clever> nice
<sphalerite> gnight!
<clever> sphalerite: also, what is the build-cores of each in nix.conf?
<sphalerite> infinisil: that impression sort of breaks down when you realise that it doesn't support any of the more advanced options…
<kuznero> Is that a good practice to change LD_LIBRARY_PATH in shellHook?
<sphalerite> clever: I set it on the commandline, 9 for the main laptop and 5 for the chromebook
<infinisil> sphalerite: It has ncurses /shadow/ though!!1!
<clever> sphalerite: dang!
<infinisil> Soo, nm-applet doesn't start for me :/
<sphalerite> infinisil: lol
<infinisil> And nmtui seems to fail because some missing /etc/NetworkManager/system-connections
python476 has joined #nixos
<infinisil> I might just go back to my previous network setup
jb55 has quit [(Ping timeout: 252 seconds)]
<sphalerite> huh, just saw that there's a networkmanager_dmenu
<nocent> infinisil: there's also plasma-nm which is part of KDE
<sphalerite> that's cool
<infinisil> Yeah I should check the issues or create one and help debug the problem, but I can't be bothered with this right now
<ldlework> sphalerite how do I actually tell nix to use my nixpkgs checkout?
<sphalerite> that's super neat!
<ldlework> using nix-channel?
<kuznero> clever: is there way to
Arcaelyx_ has joined #nixos
dbmikus has quit [(Ping timeout: 264 seconds)]
<sphalerite> ldlework: pass `-I nixpkgs=path/to/checkout`
<sphalerite> or add nixpkgs=path/to/checkout to your NIX_PATH env var
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vdAWT
<NixOS_GitHub> nixpkgs/master 4ace0da Vincent Laporte: coqPackages.fiat_HEAD: mark as broken with Coq ≥ 8.6
NixOS_GitHub has left #nixos []
<kuznero> clever: sorry, is that a good thing to setup LD_LIBRARY_PATH in shellHook?
Arcaelyx has quit [(Ping timeout: 240 seconds)]
<sphalerite> infinisil: how does nm-applet fail to start?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] earldouglas opened pull request #30697: avian: add meta.maintainers (master...avian-maintainers) https://git.io/vdAWq
NixOS_GitHub has left #nixos []
<sphalerite> kuznero: I'd say typically no
<ldlework> sphalerite I did "nix-env --show-trace -I nixpkgs=/Users/dustinlacewell/src/nixpkgs -iA nixpkgs.gtk-sharp-2_0" after editing the file to allow darwin, and I still get Package ‘gtk-sharp-2.12.10’ in /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/pkgs/development/libraries/gtk-sharp/2.0.nix:18 is not supported on ‘x86_64-darwin’, refusing to evaluate.
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/52f381cda8 (from 67 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
dbmikus has joined #nixos
<ldlework> platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
<sphalerite> ldlework: try nix-env -f /Users/dustinlacewell/src/nixpkgs -iA gtk-sharp-2_0
<ldlework> nix-env --show-trace -f /Users/dustinlacewell/src/nixpkgs -iA nixpkgs.gtk-sharp-2_0
<ldlework> error: attribute ‘nixpkgs’ in selection path ‘nixpkgs.gtk-sharp-2_0’ not found
<sphalerite> didn't realise you were using nix-env
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] maximedenes opened pull request #30698: Partial revert of 89720d851aafe7be2aafc129fd729941a4db18af. (master...fix-coq-dpdgraph) https://git.io/vdAWn
NixOS_GitHub has left #nixos []
<kuznero> sphalerite: my problem now is that one of the binaries that I patchelf'ed requires `export LD_LIBRARY_PATH="${icu}/lib:$LD_LIBRARY_PATH"`. Currently I do it on buildPhase instead of shellHook.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] earldouglas opened pull request #30699: picat: add meta.maintainers (master...picat-maintainers) https://git.io/vdAWc
NixOS_GitHub has left #nixos []
<sphalerite> without the nixpkgs.
<ldlework> oh
<sphalerite> kuznero: sounds like something that should be done by patching the rpath instead if possible
<infinisil> And within 1 minute of trying out networkmanager_dmenu I got a python stacktrace :/
<sphalerite> aww
<kuznero> sphalerite: I thought I did. Let me try to check again
<infinisil> With nm-applet i just get a bunch of usual gtk warnings and nothing more
<infinisil> no gui, no messages, just a process running that i can terminate
<sphalerite> right
<sphalerite> it makes a system tray icon
<symphorien> infinisil: which dm are you using ?
<infinisil> none
<sphalerite> idk if whatever info bar you're using supports that
<symphorien> sorry window manager
<infinisil> xmonad
<sphalerite> polybar supports it, and i3bar does too last I checked
<sphalerite> with xmobar?
<infinisil> meh whatever
<infinisil> Maybe later this week
<sphalerite> yeah xmobar doesn't seem to support system tray stuff
<sphalerite> you could run trayer in addition, or use some other bar that supports it
<infinisil> i am running xmobar which i think supports it, not sure
<infinisil> Ahh no it doesnt
<infinisil> Unrelated: Just today I was so happy that I'm using nixos + nix + nixops for my server
<infinisil> Wanted to use latest git master version of znc
<infinisil> Just added an overlay that does that, nixops deploy, boom new version running, client even reconnects automatically
<infinisil> itsmagic.gif
dbmikus has quit [(Ping timeout: 240 seconds)]
<samueldr> I'm trying to see which tests are ran on hydra, am I right to assume that if it isn't in still failing or there it's not used for channel advance? https://hydra.nixos.org/eval/1403782?full=1&filter=nixos.tests&compare=1403681#tabs-still-succeed
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to release-17.09: https://git.io/vdAW7
<NixOS_GitHub> nixpkgs/release-17.09 47d0cf7 Vladimír Čunát: gcj, gccgo: port fixes for 4.9 to 6...
NixOS_GitHub has left #nixos []
<ghostyyy> hi, i am having trouble debugging my initramfs, i have set boot.availableKernelModules = ["usbhid" "hid_generic" "ahci" "xhci_pci" "xhci_hcd" "hid" "ehci_hcd"];
<ghostyyy> but i still cant type into the stage 1 debug shell when i set debug1 kernel option
<ghostyyy> am i missing any?
<samueldr> laptop, tower? USB keyboard I assume?
<ghostyyy> also i do not get an error when i try to include modules in that that dont exist, which i find extremely worrying
<ghostyyy> usb keyboard, yeah
<ghostyyy> its a tower
erictapen has joined #nixos
ma27 has quit [(Ping timeout: 255 seconds)]
<samueldr> try adding `atkbd`
<ghostyyy> ah ill add that too
<samueldr> not sure it'll help
<samueldr> that's usually for PS/2 kayboards
<ghostyyy> i added a few more
bennofs has quit [(Ping timeout: 252 seconds)]
<ghostyyy> nope didnt work
glenn has quit [(Remote host closed the connection)]
glenn has joined #nixos
ssmike has quit [(Ping timeout: 248 seconds)]
betaboon has quit [(Ping timeout: 258 seconds)]
<ldlework> sphalerite heh this is a rabbit hole
<sphalerite> ldlework: not entirely surprised :/
<sphalerite> ghostyyy: can you boot into some linux system with the keyboard available?
<ldlework> It might take people smarter than me to get gtk-sharp (and so dotnet framework all together) going on OSX
<sphalerite> ghostyyy: if so, have a look at what driver it's using (probably the USB HID driver but who knows). ls -l /dev/input/by-id to find out which event node it is, then you can find the driver using ls -l /sys/class/input/eventXY/device/device/driver
<ldlework> I think brew has abandoned gtk support for Mono
<ldlework> And uses Quartz
<MichaelRaskin> You could make _all_ modules available in initrd, actually.
<MichaelRaskin> That would require a large initrd, but why care.
abbradar has joined #nixos
<ghostyyy> MichaelRaskin, how do you do that?
<ghostyyy> i have been at this for two days
<ghostyyy> i am far beyond caring about initrd sizes at this point
<ghostyyy> sphalerite, i dont see any drivers in the /sys path
<sphalerite> ghostyyy: did you substitute XY for the number of the device?
<ghostyyy> yes, i see some files, bind, new_id, uevent, unbind
<ghostyyy> and some numeric identifiers for something else
<ldlework> sphalerite gtk-sharp relies on libgnomegui which relies on libcanberra which I disabled, and it go so far to start compling and compiles for a while but then fails "No package 'libcanberra' found" from the compiler.
<ldlework> So pretty close, but I don't think I can disable libgnomegui :)
kuznero has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
JosW has quit [(Quit: Konversation terminated!)]
<sphalerite> ldlework: but enabling libcanberra should probably be ok :p
Thra11 has quit [(Ping timeout: 240 seconds)]
<ldlework> It depends on all those linux sound systems
<ldlework> libalsa, libcap and the others
<sphalerite> disable alsaLib (by setting it to null in the overlay I'd say)
<sphalerite> you've already disabled libcap right?
<sphalerite> ghostyyy: ls -l the driver one without the trailing /
<sphalerite> to see where the symlink leads
<ghostyyy> oh its a symlink
<ghostyyy> they all just say hid-generic
<sphalerite> right
<sphalerite> meh, I think hid-generic should be in the initrd anyway… but you might as well try adding it to the list?
<ghostyyy> ah but ive included hid_generic
<ghostyyy> with te underscore
<ghostyyy> im assuming thats an error?
<MichaelRaskin> ghostyyy: I guess you could just list the output of:
<MichaelRaskin> find $(nix-build --no-out-link '<nixpkgs>' -A linux_latest) | grep 'ko.xz'|xargs -l1 basename | cut -d . -f 1 | sed -e 's/.*/"&"/'| tr '\n' ' '
<sphalerite> no I think that's the right way
<MichaelRaskin> underscore and dash are the same for linux kernel module names
<ldlework> sphalerite libcanberra complains, #include <gdk/gdkx.h> is missing
<ldlework> I believe that has something to do with the X11 system?
<sphalerite> huh, that should be in gtk
<ghostyyy> sphalerite, well, ive already got hid-generic in there, and it doesnt work
<sphalerite> oooh yeah you amy be right
<sphalerite> yeah, that is X-specific
<ghostyyy> im starting to wonder if this availablekernelmodules thing is even having any effect at all
<ldlework> Ah I disabled the passthrough when experimenting
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vdA8G
<NixOS_GitHub> nixpkgs/master 4068703 Tuomas Tynkkynen: x42-plugins: Hack to attempt fixing the perpetual build problem...
NixOS_GitHub has left #nixos []
<MichaelRaskin> Maybe not, because NixOS initrds are tiny and try to be modest
<infinisil> Damn, that's a lot of modules..
<MichaelRaskin> Well, if you are really desperate, you could remove evbug from there and try to _load_ all the modules.
<MichaelRaskin> evbug — you definitely don't want that.
Thra11 has joined #nixos
<infinisil> What is it?
<MichaelRaskin> evbug seems to be a fault injector.
<MichaelRaskin> ghostyyy: also, I have an initrd generator that can give you a console that runs eudev on initramfs.
<MichaelRaskin> You could try to use it to see what it loads at least.
Wizek has quit [(Quit: Connection closed for inactivity)]
<ghostyyy> well the whole point of this was to debug my initramfs
<ghostyyy> the keyboard works when i dont put in debug1
<ghostyyy> but when i do (to debug something else) it doesnt work
<ghostyyy> the thing i am actually trying to do is get the initrd to see my LUKS header
simukis has quit [(Ping timeout: 258 seconds)]
<ghostyyy> i have it in a separate initrd file that i specify with boot.grub.extraInitrd option
<Dezgeg> debug1 breaks before loading any of the modules, doesn't it?
<ghostyyy> it seems so, yeah
<MichaelRaskin> That should build you a huge initramfs that hopefully can load your keyboard module.
<ghostyyy> MichaelRaskin, wow, thank you O_O
<MichaelRaskin> It also includes cryptsetup by default
<Dezgeg> well how about just boot.debug1devices instead?
<MichaelRaskin> Dezgeg: well, the problem is lack of keyboard.
<MichaelRaskin> My initrd run eudev to load keyboard drivers.
<MichaelRaskin> And everything else.
<Dezgeg> yes, if you literally put 'debug1' on the command line, it breaks to the prompt before loading the drivers
<ghostyyy> if there is some way to break right before trying to mount root
<ghostyyy> because thats where the trouble is
<sphalerite> ldlework: right, I'm at a loss and need some sleep… sorry
<ldlework> heh I wear everyone out :D
<sphalerite> ghostyyy: boot.debug1|debug1) # stop right away boot.debug1devices) # stop after loading modules and creating device nodes boot.debug1mounts) # stop after mounting file systems
<sphalerite> ldlework: nah it's mostly just not having slept enough last night :p
<Dezgeg> so no amount of putting things to boot.initrd.availableKernelModules affects plain 'debug1'
<ghostyyy> oooooooooh
<ldlework> sphalerite thanks for your help today
<ghostyyy> Dezgeg, ah!
<ldlework> At least we tracked it down to libcanberra missing gdk/gdkx.h
<ghostyyy> ill try debug1devices then!
<sphalerite> ldlework: my best guess from there would be to patch libcanberra not to require it...
<sphalerite> probably best to look at how homebrew does it, I think they have libcanberra?
<MichaelRaskin> Ouch. I haven't used NixOS initramfs for too long.
<ldlework> They do
ryantrinkle has quit [(Ping timeout: 248 seconds)]
<ghostyyy> :| so debug1devices didnt work... furthermore, why doesnt it give me an option to put me in the initramfs shell after it cant mount root?
<ghostyyy> it just tries to mount root
<Dezgeg> did you spell it "boot.debug1devices" ?
<ghostyyy> i put it in the grub menu editor on the linux line
<symphorien> ghostyyy: boot.shellonfail
<MichaelRaskin> debug1mounts maybe
<MichaelRaskin> boot.debug1mounts could be
<sphalerite> ghostyyy: boot.shell_on_fail may also be useful
jb55 has joined #nixos
<symphorien> not sure about the exact spelling
<sphalerite> ghostyyy: see nixos/modules/system/boot/stage-1-init.sh for all the options
hiratara has quit [(Ping timeout: 252 seconds)]
hiratara has joined #nixos
Nobabs27 has joined #nixos
Ivanych has quit [(Ping timeout: 240 seconds)]
chris| has quit [(Quit: Quit)]
chris| has joined #nixos
<ldlework> How can I tell what provides gdk/gdkx.h ?
pikajude has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<ldlework> Enable GTK+: no
* ldlework gasps!
<MichaelRaskin> No idea, but the answer is gtk3.dev
<ldlework> could this be it?!
<ldlework> MichaelRaskin haha
<MichaelRaskin> I mean, I really don't have a good answer to «how to tell».
<ldlework> MichaelRaskin I'm trying to build libcaberra on OSX and its blowing up because it can't find that header.
<ldlework> MichaelRaskin yeah fair enough
<MichaelRaskin> Do you pass pkgconfig?
<MichaelRaskin> Because it is inside include/gtk-3.0/
<MichaelRaskin> Not just include/
<MichaelRaskin> this is supposed to be handled by pkgconfig.
<MichaelRaskin> Or you can mess with CFLAGS or NIX_CFLAGS_COMPILE
<ldlework> I notice the passthrough...
<MichaelRaskin> Wait, it still assumes gtk2?
<MichaelRaskin> Maybe its gtkModule is not that important, though.
<ldlework> I do notice it says " Enable GTK+: no"
<ldlework> when printing out the configuration options
<ghostyyy> thank god i am finally in the initramfs shell
<ldlework> MichaelRaskin even building libcanberra_gtk3 same issue
<ghostyyy> oh, here we go, the real error is "Attaching loopback device failed (loopback device with autoclear flag is required)."
<ghostyyy> what in the hell is an autoclear flag
<ldlework> (which I think sets gtk = gtk3)
<ghostyyy> cat the header to /dev/ram0 then pass /dev/ram0 to --header
<ghostyyy> why in the absolute heck do i need to do that
<ghostyyy> well, i am at least finally able to get into the system, although i have to do this bizarre "cat the luks header to /dev/ram0 before calling cryptsetup" ritual
pikajude has joined #nixos
<ldlework> I'm totally lost. 😔
civodul has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 2 new commits to master: https://git.io/vdABX
<NixOS_GitHub> nixpkgs/master fe41e17 Vincent Laporte: ocamlPackages.merlin: fix homepage URL
<NixOS_GitHub> nixpkgs/master 97d02a7 Vincent Laporte: 0ad: fix homepage URL
NixOS_GitHub has left #nixos []
Thra11 has quit [(Quit: IRC for Sailfish 0.9)]
<ldlework> MichaelRaskin do you think maybe the gtk support for darwin just isn't there yet?
<MichaelRaskin> No idea.
<ldlework> I mean I can build both gtk2 and gtk3 on their own I guess.
<ldlework> Just this damn libcanberra can't find either of them
<ldlework> gtk-sharp wont build without libgnome and libgnome wont build without libcanberra
<MichaelRaskin> Try explictly adding -I to NIX_CFLAGS_COMPILE?
<MichaelRaskin> Just to check where the problem is
nixos1022 has quit [(Read error: Connection reset by peer)]
<ldlework> I don't know how to do that :3
civodul has quit [(Ping timeout: 255 seconds)]
<MichaelRaskin> Just set NIX_CFLAGS_COMPILE as a parameter to mkDerivation
hiratara has quit [(Quit: ZNC - http://znc.in)]
hiratara has joined #nixos
civodul has joined #nixos
<ldlework> Hmm I'm not sure how that was supposed to change the output
ylwghst has joined #nixos
<ldlework> though now it complained that there is no makefile lol
<ldlework> oh
<MichaelRaskin> What value did you set it to, though?
<ldlework> NIX_CFLAGS_COMPILE = "-I";
<ldlework> I added --no-create to something else because I saw homebrew doing that
<ldlework> I think that prevented the makefile from being created
<ldlework> sec
<MichaelRaskin> Well, you need to set it to "-I ${gtk.dev}/include/gtk-3.0/"
<ldlework> what is gtk.dev ?
<MichaelRaskin> The package name
<ldlework> I don't see it defined in the gtk2 or gtk3 packages
<MichaelRaskin> It is about multiple outputs.
<MichaelRaskin> Maybe read Nix manual and Nixpkgs manual…
<MichaelRaskin> GTK doesn't sound like something eady to fix without understanding how Nix works…
<ldlework> I've read quite a lot of it, but not back to back.
<ldlework> I admit to being underwater here
<ldlework> adding NIX_CFLAGS_COMPILE = "-I ${gtk.dev}/include/gtk-3.0/"; didn't change the output
<ldlework> And to be fair, it seems like gtk2 and gtk3 both build fine. I think this libcanberra package is to blame.
<infinisil> Umm, could it be that nixops doesn't prevent its builds from being gc'd?
<ldlework> talking to me?
<infinisil> I think that's the case, but I'd like it to not do that
<infinisil> Nah, to the channel
ylwghst has quit [(Remote host closed the connection)]
ylwghst has joined #nixos
<MichaelRaskin> ldlework: pastebin what you run
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/47d0cf72e8 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
<Unode> Hi all, currently nixpkgs includes (for instance) mopidy and a bunch of extensions mopidy-soundcloud, mopidy-spotify, ... If I want to run mopidy as my user, how do you make it find such extensions? It doesn't seem to by default.
<Unode> in other words, how are these extensions supposed to be used in nixos?
Alling has joined #nixos
<MichaelRaskin> And the Nix expression?
<sphalerite> Unode: there seems to be a nixos module for it
dhess has joined #nixos
<Alling> How can I get access to beautifulsoup4 in mitmproxy? It seems like SUCH a small change, just adding it to propagatedBuildInputs or something. How do I do this?
<dhess> Any Hydra-running folks around?
<ylwghst> Unode: https://nixos.org/nixos/options.html#mopidy.extensionpackages
<Unode> sphalerite: I saw the module but I didn't want to run it system-wide as otherwise I have to store secrets in system config.
<Unode> and then when I tried as user, it made me wonder how would this be used.
<sphalerite> Unode: and in there it seems to use python's buildEnv so you should be able to get it working for your user by e.g. installing `python.withPackages (ps: with ps; [mopidy mopidy-foo mopidy-bar])`
<Unode> (the question is broader as it applies to other such kinds of modules)
<Alling> Background: In mitmproxy, I want to run a Python script which uses bs4. But mitmproxy cannot "see" global Python packages, because it has its own Python environment.
<ldlework> MichaelRaskin also with your NIX_CFLAGS_COMPILE addition
<Unode> sphalerite: so you basically "re-install" it on the user environment while wrapped with said extensions?
<ldlework> though the result is the same with or without
<ldlework> and the platforms to support darwin so it will build
<Unode> sphalerite: I've added each one to systemPackages. Though I guess unecessary if they are to be installed in user environment anyway.
<sphalerite> Unode: yeah you install the python env
<Unode> I see
<Unode> sphalerite: thanks. I'll give that a look.
Arcaelyx_ has quit [(Ping timeout: 240 seconds)]
<MichaelRaskin> ldlework: well, add a preConfigure, echo NIX_CFLAGS_COMPILE there. Maybe ls the added include directory.
Arcaelyx has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to release-17.09: https://git.io/vdA0g
<NixOS_GitHub> nixpkgs/release-17.09 7a6c7ab Tuomas Tynkkynen: x42-plugins: Hack to attempt fixing the perpetual build problem...
NixOS_GitHub has left #nixos []
FrozenCow has joined #nixos
<Unode> sphalerite: any idea what might be wrong here: http://dpaste.com/30TDG3Q
<sphalerite> :/ not really
<sphalerite> does nix-build -E 'with import <nixpkgs> {}; python.withPackages (ps: with ps; [mopidy mopidy-spotify mopidy-soundcloud mopidy-youtube])' give more helpful info by any chance?
<Unode> sphalerite: gives no error and /nix/store/f7y7gc6kl9icaivskkrk3sl55cpgcdhc-python-2.7.14-env
<sphalerite> and nix-env -iE (same thing)?
<sphalerite> my best guess would be a collision
<Unode> error: attempt to call something which is not a function but a set, at undefined position
<Unode> or you mean "nix-env -iE ('with ...youtube])') ?
<Unode> no that doesn't make sense :/
<sphalerite> aw pff bloody nix-env
<sphalerite> `nix-env -i $(previous nix-build command --no-out-link)`?
<Unode> sphalerite: that give a very odd error message. I'm probably doing something wrong.
<sphalerite> what's the error message?
<Unode> error: getting status of ‘/home/unode/with import <nixpkgs> {}; python.withPackages (ps: with ps; [mopidy mopidy-spotify mopidy-soundcloud mopidy-youtube])’: No such file or directory
<Unode> :S
<Unode> using: nix-env -i $(nix-build --no-out-link -iE 'with import <nixpkgs> {}; python.withPackages (ps: with ps; [mopidy mopidy-spotify mopidy-soundcloud mopidy-youtube])')
erictapen has quit [(Ping timeout: 240 seconds)]
<sphalerite> I think that'll be the -i that you passed to nix-build
dbmikus has joined #nixos
<Unode> yup that did it
<Unode> no error this time
<Unode> which... erm.. why did nix-repl fail in the first place ?
<sphalerite> idk
<Unode> ylwghst: thanks, I'll read on this
Wizek has joined #nixos
<ghostyyy> hm, do any of you know anything about low 3d framerates on nixos? i am getting about 9000 FPS in glxgears, with an nvidia radeon 1060
<ghostyyy> on debian i get like 50,000 or something
<ghostyyy> ive set the driver to nvidia, and glxinfo says 3d acceleration is enabled and is using the nvidia drivers
<MichaelRaskin> Nvidia radion?
<ghostyyy> er
<MichaelRaskin> radeon
<ghostyyy> geforce...
<ghostyyy> lol
<ghostyyy> basically on the other OS i run on this same machine, it is much faster
<ghostyyy> i also have set off vblank so its not that
<ylwghst> ghostyyy: which driver?
<ghostyyy> services.xserver.videoDrivers = ["nvidia"];
<ghostyyy> i dont know which specific version
<ghostyyy> oh here it says it
<ghostyyy> opengl core profile version string: 4.5.0 NVIDIA 384.90
<sphalerite> ghostyyy: glxgears is a terrible benchmark
<ghostyyy> sure, but it's an order of magnitude difference
<ghostyyy> (at least)
<sphalerite> There could be any number of reasons for that
<sphalerite> Do you notice a difference in performance with stuff that actually uses your graphics properly?
<ghostyyy> i havent used any graphics applications yet
<ghostyyy> i just wanted to make sure it was working
<sphalerite> Try that before trying to dig into optimising for glxgears :p
<ghostyyy> well, im just wondering where my order of magnitude of framerate went
goibhniu has quit [(Ping timeout: 258 seconds)]
<sphalerite> It's not relevant
hamishmack has quit [(Read error: Connection reset by peer)]
hamishmack has joined #nixos
<Unode> ghostyyy: optimus/bumblebee?
<sphalerite> It's 0.1ms of difference in render time. If it scales up and turns out to amount to 10ms when rendering is a lot more complex, *that's* where it starts mattering
<dhess> gchristensen: around?
<Unode> i.e do you have more than one graphic card on your system?
<sphalerite> But an order of magnitude isn't very meaningful in the context of glxgears
<ghostyyy> Unode, i think so, there is one in my mohterbord i dont use although its an amd
<Unode> ghostyyy: then glxgears might just be using the wrong one.
<Unode> wait, amd?
<ghostyyy> the video card on the motherboard is an amd
<Unode> ghostyyy: check the output of glxinfo. Which Vendor do you see there?
<ghostyyy> there i see nvidia
<gchristensen> dhess: sort of, what's up?
<Unode> ghostyyy: then there shouldn't be any confusion.
<dhess> gchristensen: you wrote this new multi-user installer for Darwin, yes?
<gchristensen> yeah
p4cman has quit [(Quit: Connection closed for inactivity)]
sigmundv__ has joined #nixos
<ghostyyy> the drivers are the latest version too
<dhess> gchristensen: so I've been running Nix for years on Darwin with the old single-user setup, but am just setting up a new Mac, so decided to try the multi-user installer
<gchristensen> oh nice, are you on high sierra? :/
<Unode> ghostyyy: try something heavy instead.
<dhess> gchristensen: yeah is that an issue?
<ghostyyy> yeah, i guess ill try that
<ghostyyy> i think blender has a benchmarking program
<gchristensen> yeah :(
<dhess> gchristensen: I just took my old environment over there and it seems to be working OK so far except for a permission issue
<gchristensen> oh interesting
<dhess> gchristensen: what's the High Sierra issue?
<gchristensen> nix trips a bug in the kernel where nix kills the whole system :?
<gchristensen> I've gotta go, but I'll be back in a bit
<dhess> ohhh shit
<Unode> ylwghst: even with the simple examples on the python page, "nix-env -iA nixpkgs.myEnv" fails with: "error: attribute ‘nixpkgs’ in selection path ‘nixpkgs.myEnv’ not found" any suggestions?
<dhess> right I think I saw something on the tracker about that.
<gchristensen> dhess: theere is an issue about H.S. in the nixos/nix issue tracker
<dhess> Anyway that's not my current problem. I'll wait until you're back.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zimbatm pushed 7 new commits to master: https://git.io/vdAEj
<NixOS_GitHub> nixpkgs/master 1d6eaac zimbatm: rust: remove beta and nightly releases...
<NixOS_GitHub> nixpkgs/master e30e201 Maximilian Güntner: rust: unbreak building with bundled LLVM
<NixOS_GitHub> nixpkgs/master 7bd191d zimbatm: rust: 1.17.0 -> 1.20.0...
NixOS_GitHub has left #nixos []
<Unode> ghostyyy: by far the best (heaviest) one I know
markus1189 has joined #nixos
dieggsy has joined #nixos
<ylwghst> Unode: why dont declare it in config?
<ylwghst> u
<Unode> ylwghst: my config http://dpaste.com/05EJ62V
markus1199 has quit [(Ping timeout: 240 seconds)]
<Unode> ylwghst: as per instructions on that python guise
<Unode> guide
<Unode> ylwghst: any idea what I'm missing?
Neo-- has quit [(Ping timeout: 240 seconds)]
thc202 has quit [(Ping timeout: 255 seconds)]
python476 has quit [(Ping timeout: 240 seconds)]
<sphalerite> ylwghst: myEnvFun is deprecated iirc
<Unode> ylwghst: I get the same error. There's something off with 'nixpkgs'. When I do "nix-env -iA nixpkgs...." what is nixpkgs? what does it refer to?
<dmj`> is it possible to use multiple authentication providers w/ the nixos oauth2 proxy module
civodul has quit [(Ping timeout: 255 seconds)]
<Unode> is "nixpkgs" the name of the channel ? or something else?
<sphalerite> Unode: ~/.nix-defexpr/*/nixpkgs. Nix-env is a real pain in the arse in that way. It's almost always better to do nix-env -f '<nixpkgs>'
<dmj`> Unode: nixpkgs isn’t the name of a channel, nixpkgs-unstable would be though. <nixpkgs> is a symbol that resolve to the location of your NIX_PATH
<sphalerite> Nix-env needs to go die in a fire IMHO
<Unode> sphalerite: seems like I don't have ~/.nix-defexpr/channels/nixpkgs only "nixos" and "nixos-unstable"
<dmj`> yea, nix-shell/build 4 lyfe
<Unode> is there something special about the name nixpkgs?
<dmj`> Unode: <nixpkgs> resolves to NIX_PATH which is the location of where your nixpkgs on disk is
<sphalerite> Unode: exactly. That's why nix-env -iA nixpkgs.xyz won't work
nix-gsc-io`bot has joined #nixos
<Unode> dmj`: I see
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/7a6c7ab980 (from 50 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
<sphalerite> Unode: nix-env -f '<nixpkgs>' -iA xyz is much more reliable and you should use that instead
<dieggsy> anyone worked with chicken scheme installed with nix? chicken-install keeps trying to use /usr/local/bin/csc even though PREFIX was set correctly...
<Unode> sphalerite: so "nix-env -f '<nixpkgs>' -iA pkg"?
<sphalerite> Reliable, and consistent with other tools
<Unode> sphalerite: you were quicker.
<sphalerite> :)
<Unode> any reason why I shouldn't simply alias nix-env to "nix-env -f '<nixpkgs>'" ?
<sphalerite> In case you want to use nix-env with -f passing a different path
<Unode> sphalerite: if I pass 2 -f... does the 2nd override the 1st?
<sphalerite> I do recommend making an alias for it, just probably not calling it nix-env
<sphalerite> Actually I don't know that
<sphalerite> If it does then yeah that alias is great
<Unode> sphalerite: if yes, then ... it doesn't really matter right?
<sphalerite> Could you try it and let me know? I'm on my phone so I can't really check
<Unode> Let me see if I understand this.
<justin-sleep> does nixos have a way to easily view/change compilation flags a la gentoo?
<justin-sleep> looking for an analogue to USE flags
<Unode> Overriding NIX_PATH with 2 paths with different names, and then checking if the 2nd is picked up. sphalerite something along these lines?
<sphalerite> justin-sleep: not quite as uniform, but yes
dbmikus has quit [(Read error: Connection reset by peer)]
dustmote has joined #nixos
<sphalerite> Unode: nah I mean just nix-env with 2 -f arguments and see if it complains or which one it uses
<Unode> sphalerite: it doesn't complain. But as to "which one it uses" I need 2 environments with different things in them :P
dbmikus has joined #nixos
hotfuzz has quit [(Ping timeout: 240 seconds)]
<justin-sleep> sphalerite: is there an option I should set, then?
<sphalerite> Unode: echo {} > /tmp/empty.nix; nix-env -f '<nixpkgs>' -f /tmp/empty.nix -iA hello
<Unode> sphalerite: hehe cheater. Testing.
<sphalerite> justin-sleep: not really, it's more a matter of overriding arguments for individual packages using .override and .overrideDerivation
<Unode> sphalerite: hello not found
<sphalerite> Unode: perfect!
<justin-sleep> okay, I'll look at those, thanks.
<Unode> sphalerite: so I guess success
<sphalerite> That's exactly what we want :D
* sphalerite will alias nix-env to nix-env -f '<nixpkgs>' tomorrow
<Unode> sphalerite: :)
* Unode just did
FrozenCow has quit [(Remote host closed the connection)]
dustmote has quit [(Client Quit)]
* sphalerite should also sleep
hotfuzz has joined #nixos
<sphalerite> Gnight!
<Unode> o/
<Unode> and thanks
<Unode> ylwghst: thanks. The problem wasn't the writing of the expression. But the calling of nix-env. It's working now.