<NixOS_GitHub>
[nixpkgs] cleverca22 opened pull request #27196: enable split-output builds for all haskellPackages (master...haskell-split-output) https://git.io/vQrAi
NixOS_GitHub has left #nixos []
thmzlt has quit [(Quit: leaving)]
filterfish has joined #nixos
Supersonic112 has quit [(Disconnected by services)]
<Infinisil>
Ohh, your config clever reminds me of something I might wanna do, which is to instead of `ninja`, to use `${pkgs.ninja}/bin/ninja`
<Infinisil>
This ensures that the package is actually installed
<Infinisil>
I have lots of such commands in my xmonad config and I don't want to keep track of them manually
<clever>
Infinisil: ah yeah, that can also be done
spinus has quit [(Ping timeout: 240 seconds)]
ryanartecona has joined #nixos
not_enough_chara has joined #nixos
pmade has quit [(Ping timeout: 255 seconds)]
<not_enough_chara>
hello! can I get help with nixops here, or should I be somewhere else ?
<simpson>
not_enough_chara: This is the place.
<not_enough_chara>
i'll ask anyway, i'm trying to deploy multiple machines on digitalocean
<not_enough_chara>
but i've run into something weird
AluisioASG has quit [(Quit: No Ping reply in 180 seconds.)]
<not_enough_chara>
i get the same error message (3 machines by the way) that the ssh key is already added
alanz has quit [(Ping timeout: 255 seconds)]
<not_enough_chara>
i've cleared all my ssh keys and started from scratch, but it seems that new keys arent generated for each droplet, but rather 1 for all 3
kmicu has quit [(Ping timeout: 255 seconds)]
<not_enough_chara>
this means that it tries to add it 3 times, and digitalocean doesnt allow duplicate keys
aneeshusa has joined #nixos
<not_enough_chara>
surely im doing something wrong or someone else has run into this
AluisioASG has joined #nixos
kmicu has joined #nixos
<not_enough_chara>
by the way im on windows in virtualbox running nixos shelled into one of my failed deployment nixos servers with nix-shell irrsi, so if i drop out i'll join back in as soon as i can :)
pmade has joined #nixos
alanz has joined #nixos
<not_enough_chara>
let me know if i should make a github issue for this or if it's intended behaviour / a stupid mistake i made
calvertvl has quit [(Quit: leaving)]
<simpson>
No idea about deploying to DO, sorry.
<not_enough_chara>
well, its to reproduce, just run the virtualbox multi machine deployment example, but instead deploy to digitalocean
<not_enough_chara>
*to reproduce
lvernschrock has left #nixos []
<not_enough_chara>
simpson: well, actually what would help is if you could explain the ssh-key option in resources
<simpson>
The DO backend is relatively new, and we use kind of a hacky way to get onto those machines.
<Infinisil>
not_enough_chara: I assume you're using nixops?
<not_enough_chara>
yeah
<Infinisil>
Yeah, DO isn't well established
Zer000 has quit [(Quit: Leaving)]
<simpson>
I don't know anything about the SSH key configuration; I always use the defaults and let nixops set up keys for me.
<Infinisil>
Maybe you can fix it though :)
<not_enough_chara>
ok well then i guess this is my opportunity to contribute to nix finally
<not_enough_chara>
i've got a flight and a free weekend, i'll take a look at it
<not_enough_chara>
let me get a bouncer in here and i'll see what i can find
<celph>
Does wicd normally not mix well with nixos? It has trouble connecting, I think it's creating a tempfile to indicate it's connected and nix is forcing a reversion.
johnsonav has left #nixos ["ERC (IRC client for Emacs 25.1.1)"]
aneeshusa has joined #nixos
<catern>
aha, Nix *is* the solution to my problem, I knew it
<catern>
I only had to think think think until I figured it out
<catern>
in other news I wish nix-store --gc had an option to only GC things that have been dead for more than N minutes/hours/days/months
<catern>
might need to add some information into the database for that...
<catern>
or you could do it with a layer in front of nix-daemon
<catern>
which maintains the time informations and watches the GC roots directory for changes and keeps a huge number of temp roots open to the nix-daemon and kicks off GCs when prompted
<celph>
buh I'm trying to switch back to wpa_supplicant but it keeps failing to build when systemctl tries to start it
phreedom has quit [(Ping timeout: 248 seconds)]
<boomshroom>
From my understanding, nix determines what files are dependencies via string searching the files. Is it possible to do this for files not part of a derivation? Nim config files let you specify a gcc path and I'm curious if I can make Nix look at that file directly to determine what gets GCed.
aneeshusa has quit [(Ping timeout: 248 seconds)]
ndrei has joined #nixos
<catern>
boomshroom: what would you put in that file? the important part is the hash in store paths - Nix searches for hashes to find dependencies
<boomshroom>
catern: `i386.standalone.gcc.path = "/nix/store/5vraan7p52bhpazb558dqdwm8pldb92a-gcc-i686-elf/bin"` I haven't touched the file in a while and I just checked and that path was garbage collected at some point, but I should be able to rebuild it.
<boomshroom>
And if I can't rebuild that specific hash, I can rebuild gcc and replace it with the new path and then try to register as a gc-root.
myguidingstar has quit [(Quit: ChatZilla 0.9.93 [Firefox 53.0.3/20170608225630])]
pxc1 has joined #nixos
<boomshroom>
What I'm wondering is if I can mark an arbitrary ascii file as a GC root.
schoppenhauer has quit [(Ping timeout: 255 seconds)]
schoppenhauer has joined #nixos
pxc1 has quit [(Ping timeout: 240 seconds)]
ryanartecona has quit [(Quit: ryanartecona)]
snikkers has quit [(Remote host closed the connection)]
vaibhavsagar has quit [(Ping timeout: 240 seconds)]
aneeshusa has joined #nixos
andchat has joined #nixos
<andchat>
hi
<andchat>
what methods are there for creating a download accelerator (or atleast downloading files faster then curl/wget can)
filterfish has quit [(Read error: Connection reset by peer)]
filterfish has joined #nixos
<unlmtd>
what's keeping virt-manager from redirecting USB devices? (insufficient permission)
<unlmtd>
bugger!
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] kquick opened pull request #27197: yices library: enable full functionality by adding libpoly polynomial library and fix soname linking. (master...master) https://git.io/vQoUH
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] kquick opened pull request #27198: Add ABC verifier library in addition to the executable. (master...add_abc_library) https://git.io/vQoTt
<clever>
nekroze: nix-build release.nix -A tests.something
<clever>
nekroze: it can help to "nix-repl release.nix" and then tab-complete tests.
<nekroze>
clever: always forget about nix-repl, I will install that again, thanks. Not I have tried `nix-build release.nix -A test.x86_64-linux` but it says attribute test does not exist
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
eacamero_ has joined #nixos
<nekroze>
clever: Gotta run but I think nix-repl will get me where I need, thanks again mate!
<nekroze>
\q
nekroze has quit [(Quit: leaving)]
eacameron has quit [(Ping timeout: 260 seconds)]
eacamero_ has quit [(Ping timeout: 260 seconds)]
johnw_ has joined #nixos
johnw_ has quit [(Client Quit)]
johnw_ has joined #nixos
aneeshusa has quit [(Ping timeout: 260 seconds)]
johnw_ has quit [(Ping timeout: 246 seconds)]
marsel has joined #nixos
myguidingstar has quit [(Ping timeout: 260 seconds)]
<MoreTea>
I don't know shit about the haskell build stuff.
<MoreTea>
but based on the stacktrace, i'd say that you're providing a wrong argument to either haskell.lib.dontCheck, or haskell.lib.justStaticExecutables
<MoreTea>
callPackage is supposed to return a finished package (which is a function)
<MoreTea>
so I would bet on that you can't use 'justStaticExecutables' like this.
<MoreTea>
Please remove the haskell.lib.{dontCheck,justStaticExecutables} calls
<MoreTea>
does this make any sense to you kuznero :)?
<kuznero>
MoreTea: Thanks, but the whole idea was to start using justStaticExecutables. I will try getting rid of dontCheck though
<MoreTea>
does it work without the justStaticExecutables?
<MoreTea>
I'd look up the implementation of that in github.com/nixos/nixpkgs
<MoreTea>
and then see which arguments it expects.
<MoreTea>
at the moment you're feeding it the wrong type of argument.
<Isorkin>
Help. How to build php56Packages.apcu with my custom php56 ?
<kuznero>
MoreTea: Thanks, will try without it for now to see if it works.
<MoreTea>
kuznero, good luck :)
Itkovian has joined #nixos
<kuznero>
MoreTea: it seams that the problem was in callPackage instead. So I just used `cabal2nix --shell . > default.nix` now and then just imported it without callPackage. And it seems to be a valid nix now.
<MoreTea>
@Isorkin, I haven't done that before, but we can take a look at this together.
<MoreTea>
php56Packages is probably defined in <nixpkgs/pkgs/top-level/all-packages.nix>
<sphalerite>
cinimod: of course ideally you'd write a nix expression for building A and use nix-shell on that
* cinimod
has been using nix for a day
<cinimod>
Googling for ghc.withPackages has not given me very much
<sphalerite>
If you just run nix-shell -p 'ghc.withPackages (ps: [ps.B])' you'll get a shell where ghc is wrapped to find B
FRidh has joined #nixos
<sphalerite>
and the transitive dependency on C and D is sorted out automatically
marsel has joined #nixos
* cinimod
will be back shortly
<MoreTea>
Isorkin, something like that yes.
<cinimod>
In `chart-unit` I have libraryHaskellDepends = [ base colour diagrams-lib diagrams-svg foldl formatting lens linear numhask numhask-range text ];
<cinimod>
<cinimod>
But numhask only exists as source in `../numhask`
<cinimod>
So do I replace B in nix-shell -p 'ghc.withPackages (ps: [ps.B])' with ../numhask?
<MoreTea>
Isorkin, I don't know, haven't tried it ;) but that looks like it should be the way to do it.
ennui has joined #nixos
Christian[m]1 has left #nixos ["User left"]
<andchat>
is this the fastest way to achieve the highest download speed? aria2c "${URL[i]}" --split=512 --max-connection-per-server=16 --min-split-size=1M --max-concurrent-downloads=512 --continue --conditional-get=true --allow-overwrite=true -o ../"${destination[i]}"
<Isorkin>
nix-build ~/mypack -A php56Packages.imagick - error: cannot coerce a set to a string, at /nix/store/bp3v6p37yc2p6balzh53j6d8rb1i2ki5-nixos-17.09pre110213.01c3847b9c/nixos/pkgs/build-support/build-pecl.nix:14:3
<Isorkin>
How to fix&)
<sphalerite>
cinimod: if it's not in hackage (⇒ not in nixpkgs) then I don't really know. You'd probably need to write an expression for it, but I don't know that much about the haskell ecosystem in general, nor haskell's interaction with nix in particular. Have you read the relevant manual section? https://nixos.org/nixpkgs/manual/#users-guide-to-the-haskell-infrastructure
pie_ has quit [(Ping timeout: 260 seconds)]
ertes has quit [(Ping timeout: 248 seconds)]
<cinimod>
It's not in hackage
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vQoOI
<NixOS_GitHub>
nixpkgs/master 3ff4054 Victor Calvert: leo-editor: Don't hardcode pythonX.Ym
<NixOS_GitHub>
nixpkgs/master e17054a Frederik Rietdijk: Merge pull request #27192 from calvertvl/fix_leo-editor_no-hardcode-python...
<sphalerite>
andchat: it depends on a lot of things, but usually just downloading a file normally (i.e. using one connection, just using the regular download functionality in your browser or wget or curl or whatever) is the way to go as you're letting systems work the way they were designed to work.
<sphalerite>
andchat: if you want it to go faster consider looking for a torrent for whatever you're downloading.
Wizek has joined #nixos
<andchat>
those download at under 200kb/s
bkchr has joined #nixos
Wizek_ has joined #nixos
<andchat>
aria2c with the current configs can download at up to 1.1mb/s
<bkchr>
Hi, does someone also can not open the digital clock configuration or the volume settings in plasma 5.10.3?
indi_ has quit [(Remote host closed the connection)]
indi_ has joined #nixos
indi_ has quit [(Remote host closed the connection)]
<Isorkin>
replace to - php56Packages.apcu = recurseIntoAttrs (pkgs.php56Packages.override - error while evaluating ‘versionAtLeast’ at /nix/store/bp3v6p37yc2p6balzh53j6d8rb1i2ki5-nixos-17.09pre110213.01c3847b9c/nixos/lib/strings.nix:363:24, called from /nix/store/bp3v6p37yc2p6balzh53j6d8rb1i2ki5-nixos-17.09pre110213.01c3847b9c/nixos/pkgs/top-level/php-packages.nix:10:12:
<Isorkin>
while evaluating ‘versionOlder’ at /nix/store/bp3v6p37yc2p6balzh53j6d8rb1i2ki5-nixos-17.09pre110213.01c3847b9c/nixos/lib/strings.nix:351:22, called from /nix/store/bp3v6p37yc2p6balzh53j6d8rb1i2ki5-nixos-17.09pre110213.01c3847b9c/nixos/lib/strings.nix:363:29:
<Isorkin>
attribute ‘version’ missing, at /nix/store/bp3v6p37yc2p6balzh53j6d8rb1i2ki5-nixos-17.09pre110213.01c3847b9c/nixos/pkgs/top-level/php-packages.nix:10:36
boomshroom has quit [(Quit: Page closed)]
<MoreTea>
ah, that's a misunderstanding.
<MoreTea>
I meant that you can't build php56Packages, because it is an attribute set (nix-speak for dict/hashmap)
<MoreTea>
that's what your previous error said
<MoreTea>
"cannot build an attributeset".
johann__ has quit [(Quit: Leaving.)]
johann__ has joined #nixos
<cinimod>
Ok apparently I should have `~/.config/nixpkgs/config.nix` but I don't
<cinimod>
Should that have been created when I installed nix?
<MoreTea>
cinimod, nope, it will get included if it's there, otherwise, it will be ignored.
<NixOS_GitHub>
[nix] edolstra closed pull request #1445: Don’t hardlink disallowed paths in OS X. (master...macos-skip-hardlink) https://git.io/vQrRP
NixOS_GitHub has left #nixos []
<cinimod>
impredicative: this https://gist.github.com/idontgetoutmuch/fee0f8c8280ad2d4cdb79bb77cf022fb fails with error: value is a function while a set was expected, at /nix/store/k7ggnnjn7m9621y9my0lfm2vgbbg3ij3-nixpkgs-17.09pre108299.ec9a23332f/nixpkgs/pkgs/development/haskell-modules/lib.nix:6:28
<cinimod>
I think this works but I have a different error
<cinimod>
error: anonymous function at /Users/dom/Dropbox/Private/NumMethHaskell/numhask/default.nix:1:1 called with unexpected argument ‘mkDerivation’
<cinimod>
But this was generated using cabal2nix
<apeyroux>
Hello, i want to use nix-shell with shebang but i would like to add doCheck = false in nix-shell params ( https://pastebin.com/J7QH66w3 ). Its possible ?
pie_ has joined #nixos
<jophish>
hmm, what format should signing-key.sec be in?
* LnL
should add a page about distributed builds to the wiki
<manveru>
man... i really wanted to like fish, but its vi mode support feels like early alpha since years :(
<jophish>
ah, thanks manveru
<manveru>
thank LnL, he figures this shit out :)
<jophish>
:D thanks too LnL!
<jophish>
Ah, seems to be working
<cinimod>
I nuked my config.nix file and am trying again
<cinimod>
But I seem to be downloading the world
<jophish>
It seems very odd that I have to have signing-key.pub in the target machine's /etc/nix
<jophish>
what if I want to use more than one remote builder
<jophish>
will they have to sign with the same secret key?
ertes has quit [(Quit: Bye!)]
<LnL>
maybe you can add multiple keys in there like ssh
<jophish>
ah, good thinking
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
<cinimod>
If I have no config.nix then `nix-shell -p haskellPackages.numhask` works as far as trying to build the tests and fails with a compilation error but if I have a config.nix then I get a nix rror: error: anonymous function at /Users/dom/Dropbox/Private/NumMethHaskell/numhask/default.nix:1:1 called with unexpected argument ‘mkDerivation’
mpcsh has joined #nixos
<LnL>
clever: around?
pie_ has quit [(Ping timeout: 260 seconds)]
canndrew has joined #nixos
<impredicative>
cinimod: I cloned numhask and was able to get this working
<impredicative>
Let me upload a gist with what I have
<cinimod>
Wow that's very generous of you to take the time
<canndrew>
hello people, i want to use a tar archive as the src in a derivation I'm writing. what's the best way to do this?
<canndrew>
sorry, a local tar archive, on my computer
<impredicative>
cinimod: I'm currently trying to understand the haskell builder to make more serious changes to it, so time spent understanding problems there is well spent :-)
<LnL>
^ stdenv.mkDerivation will unpack that for you
<canndrew>
MoreTea: does it need to be rel? I tried with an absolute path and it complained about permissions
<MoreTea>
then the nix builder might not be able to read it
<canndrew>
can i or should i just add hte archive to the store somehow?
<MoreTea>
if you make it world readable, it should work
<canndrew>
hmm, the file is already world-readable..
<impredicative>
Differences from yours: I did not use the "--shell" argument to cabal2nix, because that already includes the "callPackage". I also added "doCheck = false" to the derivation itself
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] edolstra pushed 1 new commit to master: https://git.io/vQo48
<gchristensen>
from time to time I feel something similar, too. but it isn't nix wins I lose, nix loses and I lose, because the program I'm trying to use is untamable
phreedom has joined #nixos
ebopp has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vQoRQ
<srhb>
Has anyone gotten the Haskell library inline-java to build recently? I'm a bit confused with the error message: "javac: callProcess: runInteractiveProcess: exec: does not exist (No such file or directory)"
<ebopp>
hello. i am having a bit of trouble building a Python package that's not on nixpkgs yet.
CodeWarrior has joined #nixos
cpennington has joined #nixos
<impredicative>
srhb: I work with the people who wrote it, let me ask them
<ebopp>
it depends on numpy, thus i added this to its propagatedBuildInputs field, but when building pip (presumably?) complains that it can't find a version that satisfies the requirement… i am fairly new to Nix, so might do something completely wrong.
<srhb>
impredicative: Nice, thanks!
pie_ has joined #nixos
<nvd>
Does anyone have an example of using hail I could look at?
<srhb>
impredicative: Looks like it's just a missing dependency on jdk.
<srhb>
impredicative: I'll fix it (I think)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vQo0o
<NixOS_GitHub>
nixpkgs/master 69a8564 Daniel Brockman: go-ethereum: 1.4.7 -> 1.6.6
<oifgjregesgoern>
I'm trying to use nix-shell from a tutorial - typing `$nix-shell -p git`. It says "Can't locate utf8.pm: /home/x/.nix-profile/lib/perl5/site_perl/utf8.pm: Permission denied at /run/current-system/sw/bin/nix-shell line 3.
<oifgjregesgoern>
BEGIN failed--compilation aborted at /run/current-system/sw/bin/nix-shell line 3.". How can you repair permissions on these files?
<srhb>
oifgjregesgoern: Which nixpkgs version?
<oifgjregesgoern>
srhb: I don't know... How do you find out?
<srhb>
oifgjregesgoern: Are you using nix-channels? If so, nix-channel --list
<oifgjregesgoern>
When running that as my user I get the same permissions error. When running as root it returns "nixos https://nixos.org/channels/nixos-17.03"
<srhb>
oifgjregesgoern: Oh ouch, I wonder how your permissions got messed up. :/
<oifgjregesgoern>
Ok. If I want to remove a user, nuke 'em from the machine, do I just have to remove them from the `users.extraUsers` mapping in configuration.nix? Is that all required?
marrek has joined #nixos
marrek has quit [(Client Quit)]
pxc1 has joined #nixos
<LnL>
yep
<FRidh>
ebopp: if you have questions about expressions, then you best paste it
<ebopp>
fridh: sure, will do. i solved my problem now, but i actually don't understand how.
pxc1 has quit [(Ping timeout: 260 seconds)]
filterfish_ has quit [(Ping timeout: 260 seconds)]
<ebopp>
when did you last work with it? just judging by the GitHub history, it seems development has slowed down a bit since 2015
Wizek_ has joined #nixos
Wizek__ has quit [(Ping timeout: 276 seconds)]
<FRidh>
ebopp: last time I checked the code and docs is maybe a year ago. I think they had just begun work on a higher-level api but I think development on that indeed did not go so fast
indi_ has joined #nixos
cinimod has joined #nixos
ryantrinkle has joined #nixos
indi_ has quit [(Ping timeout: 255 seconds)]
Wizek__ has joined #nixos
Wizek has quit [(Ping timeout: 248 seconds)]
Wizek has joined #nixos
Wizek__ has quit [(Ping timeout: 240 seconds)]
Wizek__ has joined #nixos
johann__ has quit [(Quit: Leaving.)]
Wizek has quit [(Ping timeout: 255 seconds)]
Rajsun has quit [(Ping timeout: 276 seconds)]
Wizek_ has quit [(Ping timeout: 260 seconds)]
Wizek_ has joined #nixos
indi_ has joined #nixos
Rajsun has joined #nixos
<canndrew>
I'm trying to execute a proprietary executable and I'm getting "libFoo.so: cannot open shared object file: No such file or directory"
<canndrew>
I've used patchelf to set tyhe rpath to where libFoo.so is
<canndrew>
but I'm still getting the error :/
<canndrew>
what could possibly be happening?
mkoenig has quit [(Remote host closed the connection)]
<spacefrogg>
canndrew: You also have to set the interpreter. This is the libc loader that is used to load the binary.
<canndrew>
spacefrogg: thanks, I've set the interpreter though
<canndrew>
it's specifically complaining about the missing library, which shouldn't be missing
<spacefrogg>
canndrew: The command 'file libFoo.so' will show you what the interpreter is set to.
<spacefrogg>
canndrew: When the interpreter is not set correctly you get the error message you have posted. (Which is, indeed, misleading.)
<canndrew>
libFoo.so is installed properly in my nix store, but it can't find
<canndrew>
*find it
<spacefrogg>
canndrew: libFoo.so does also need the interpreter set correctly as is needed for the binary calling libFoo.so
indi_ has quit [(Ping timeout: 268 seconds)]
<canndrew>
the full error (to be less confusing): ./houdini-bin: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory
<canndrew>
but patchelf --print-rpath houdini-bin gives...
<canndrew>
can pastebin the full output if you like. just wondering what could possibly be causing this since the rpath is setup correctly afaict
cinimod has quit [(Ping timeout: 260 seconds)]
<spacefrogg>
canndrew: Well, it is not. There is no path to libGLU.so.1 in your rpath setup.
Wizek_ has quit [(Ping timeout: 246 seconds)]
Wizek_ has joined #nixos
<spacefrogg>
Did you verify that libGLU.so.1 is in any of your rpath paths?
<canndrew>
ls /nix/store/j1axmg8l6xzgdr9xyklsmmwhdgiwdpg1-glu-9.0.0/lib/libGLU.so.1
<canndrew>
says it's there... :/
tmaekawa has joined #nixos
<canndrew>
confusing... I might just try using makeWrapper instead and set LD_LIBRARY_PATH
<canndrew>
though it'd be nice to have some clue what's going on
abcrawf has quit [(Remote host closed the connection)]
<canndrew>
spacefrogg: thanks!
oifgjreg` has joined #nixos
faffolter has quit [(Read error: Connection reset by peer)]
justbeingglad has joined #nixos
justbeingglad has left #nixos []
abcrawf has joined #nixos
oifgjregesgoern has quit [(Ping timeout: 248 seconds)]
cpennington has quit [(Remote host closed the connection)]
Wizek has joined #nixos
Wizek__ has quit [(Ping timeout: 248 seconds)]
tmaekawa has quit [(Quit: tmaekawa)]
Wizek__ has joined #nixos
Wizek has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nthorne opened pull request #27206: git-big-picture: init at 0.9.0 (master...InitGitBigPicture) https://git.io/vQowK
NixOS_GitHub has left #nixos []
Sonarpulse has joined #nixos
orivej has joined #nixos
alfie has quit [(Ping timeout: 246 seconds)]
<ebopp>
ok, new problem with vispy… it requires fontconfig as a runtime dependency. but naturally it does not find it, even when I specify it under propagatedBuildInputs. is there a way to wrap a Python module to find libraries from the nix store?
<ebopp>
is there any way to clean that up or does it have be this way?
<tommyangelo[m]>
gchristensen: Did not work, and I ran out of time, it'll have to stay manual for now. Thanks for the help!
<FRidh>
ebopp: you'll need to patch the vispy source and hardcode paths to the libraries you need
<ebopp>
fridh: and i can do that in vispy.nix using some patching function from nixpkgs, i guess?
Wizek has joined #nixos
indi_ has joined #nixos
<FRidh>
ebopp: yep, either you create a patch externally and add it to the `patches` list, or you put in a `postPatch` and use substituteInPlace or sed to make the modifications
<FRidh>
you'll want to search for occurences of LoadLibrary
ryantrinkle has quit [(Ping timeout: 276 seconds)]
sary has quit [(Ping timeout: 255 seconds)]
tmaekawa has joined #nixos
sary has joined #nixos
Wizek_ has quit [(Ping timeout: 248 seconds)]
Wizek has quit [(Ping timeout: 255 seconds)]
Wizek_ has joined #nixos
Tucky has joined #nixos
adeohluwa has quit [(Quit: Connection closed for inactivity)]
srhb has quit [(Quit: Quit)]
seppellll has quit [(Quit: Leaving)]
srhb has joined #nixos
earldouglas has joined #nixos
sary has quit [(Ping timeout: 255 seconds)]
vaibhavsagar has joined #nixos
sary has joined #nixos
<LnL>
FRidh: any idea why building a wheel would result in libffi.so.6 => not found
nschoe has joined #nixos
hiberno has quit [(Quit: WeeChat 1.6)]
<FRidh>
LnL: you get that while building a wheel? With a nix-build or without nix?
<LnL>
with nix but not using buildPythonPackage
<FRidh>
which python version?
<LnL>
2.7.13
<FRidh>
anyway, likely you need to hardcode a path to a library somewhere
<FRidh>
what package is it?
<LnL>
cffi
<FRidh>
checking the expression I see it doesn't hardcode any path.
<LnL>
let me try with the same version that we have in nixpkgs
<FRidh>
which is most likely why it doesn't work during runtime but does while building with nix-build
<LnL>
same thing with 1.10.0
indi_ has joined #nixos
spacefrogg has joined #nixos
Wizek_ has quit [(Ping timeout: 248 seconds)]
<FRidh>
Did you make libffi available?
indi_ has quit [(Ping timeout: 260 seconds)]
<LnL>
yes the wheel builds fine, but stuff that tries to use it doesn't work unless I set LD_LIBRARY_PATH
Wizek_ has joined #nixos
<LnL>
the python stuff in nixpkgs also goes through a wheel build right?
<FRidh>
yes
<FRidh>
when it builds the wheel, the wheel contains some compiled code that should retain the reference to libffi
Rotaerk has quit [(Quit: Leaving)]
romildo has joined #nixos
tmaekawa has quit [(Ping timeout: 240 seconds)]
<LnL>
yeah my stuff basically does the same
DrWaste has quit [(Quit: Run away!)]
<LnL>
the main difference is that it doesn't include any dependency information so you can easily generate expressions from a requirements.txt
<gchristensen>
any go wizards around? I have a go package that, I believe, needs to keep a reference to the go compiler
<LnL>
why does it need that?
<FRidh>
LnL: did you check whether a reference to libffi still exists somewhere in the package? E.g. $ grep -R $(nix-build -A libffi) $(nix-build -A python.pkgs.cffi)
<gchristensen>
ohh looks like it is as easy as allowGoReference = true
<LnL>
yeah there's some stuff in the go builder to remove the references by default
Rotaerk has joined #nixos
<LnL>
FRidh: nope, nothing I'm just wondering why it works with the standard python infrastructure
<gchristensen>
it makes sense, though, there is no reason you'd have this tool if you weren't also in possession of a go compiler
<srhb>
Are there any nixos services that use a postgresql or some other service as a backing store that I can take a look at?
<srhb>
I'm wondering how one would structure such a module
<dalaing>
Hydra uses postgresql I think
<srhb>
dalaing: Thanks! Though that's probably not a simple example :D
<FRidh>
LnL: maybe you have an impurity? That it finds a libffi elsewhere during build
<dalaing>
Gitlab as well
<srhb>
dalaing: Neat
<dalaing>
srhb: I'm starting to wonder what other tech you're into - reflex and Nix are both pretty awesome and not as widely known as I think they should be
<dalaing>
I should probably ask Ryan and Cale the same question :)
<srhb>
dalaing: That's about it, though my day job is devopsing (sigh, mostly opsing...) some very enterprisey things in a Mesos cluster environment
<srhb>
Wishing I could use the tools I love more for that :-)
<srhb>
dalaing: Yourself?
<dalaing>
.Those are my top two for now :)
* srhb
nods
<dalaing>
Probably something with session types when that tech matures
<impredicative>
I'm doing devops-y stuff at the moment mostly with nix :-)
<srhb>
interesting!
<srhb>
impredicative: Tweag sounds like magic wonderland ;-)
<dalaing>
Types for protocols seem like a big win
<dalaing>
Yeah, Tweag sounds great
<catern>
what is reflex?
nslqqq has quit [(Ping timeout: 240 seconds)]
<srhb>
catern: reflex-frp, a functional reactive framework for Haskell
<catern>
ah
<srhb>
catern: Lots of cross-pollination since its creator decided to package it up with Nix due to the difficult ghcjs builds at the time. Great stuff :)
<srhb>
(Or at least I think that was the motivation)
<dalaing>
both have a very nice power-to-weight ratio
<nvd>
Right, so, what I am doing: I have written a shell script which I would like to turn into a systemd unit. I would like to do this with nix. Furthermore, I would like to distribute this with hail. Unfortunately, I don't know how to do any of those things
<gchristensen>
does "hoist" have special meaning in functional programming?
<srhb>
gchristensen: Mostly in Haskell land, I think, compared to lift
vaibhavsagar has quit [(Ping timeout: 240 seconds)]
* gchristensen
goes looking
<gchristensen>
"Best Hoists in Haskell, New Jersey with Reviews - YP.com"
<srhb>
Haha
<srhb>
gchristensen: iirc you lift something into a context, or hoist something out of. The former is a lot more common.
<srhb>
(That doesn't really go with my "out of" claim. When i doubt, listen to Gabriel, not me.)
<impredicative>
Hmm, I tend to think of hoist as lifting things over natural transformations
<gchristensen>
will do :) it is still a bit of a struggle for me to read this sort of post, lots of context I'm not aware of (since I'm a lowly imperative programmer 99% of the time)
<impredicative>
As in switching out the undelying functor or similar
<srhb>
impredicative: That makes great sense, thanks.
<NickHu>
Can someone help me override haskellPackages.xmonad-contrib to be built from github instead of hackage?
<srhb>
NickHu: Sure
<LnL>
gchristensen: yeah haskell people use all kinds of strange words :D
<srhb>
You'll learn to love it, we've infected #nixos by now ;-P
<srhb>
NickHu: Have you used any overlays yet?
<gchristensen>
nix has helped me understand several functional concepts, and I think Rust has, too, to some degree
<ToxicFrog>
nvd: "turn into a systemd unit" as in "you have a script that you want to be launched and managed automatically by systemd" or as in "you have a sysvinit management script that you want to convert to a systemd unit file"?
<gchristensen>
though perhaps Rust has helped me learn to trust and really deeply read compiler error messages :P
<dalaing>
Hail is great, but I have only used it for a blog so far, so I'm not confident I could help with it
indi_ has quit [(Ping timeout: 260 seconds)]
<dalaing>
And it's after midnight here and I've had a drink or two
<ToxicFrog>
I definitely can't help with the Hail part but I've done a bunch of [writing systemd unit files for existing programs, converting sysvinit control scripts to systemd, writing systemd units in nix]
ryantrinkle has joined #nixos
<gchristensen>
LnL: IMO a major problem with haskell, as a person who doesn't use haskell, is once you learn haskell you forget how to be not academic and relate to anyone else :o
<disasm>
nvd: what's the script do?
nslqqq has joined #nixos
<disasm>
nvd: also, to your 2nd point, wanting to distribute with nix, are the systems your distributing to nixos or just nix on another OS?
<disasm>
err wanting to do this with nix. I've never heard of hail btw, so don't think I can help you on part 3.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] nc6 opened pull request #27209: Nc/haskell multiple out (master...nc/haskell-multiple-out) https://git.io/vQo9v
NixOS_GitHub has left #nixos []
phinxy has joined #nixos
sary has quit [(Remote host closed the connection)]
<nvd>
disasm: the script sends info about disk and memory usage to a graphite server
<nvd>
disasm: and nix on another OS
Wizek has joined #nixos
bennofs has joined #nixos
<nvd>
disasm: it seems not many people have used hail (it is pretty recent tbf)
<srhb>
NickHu: You seemed to disappear, but you want to use something like this if you're doing it via overlays: http://nixpaste.lbr.uno/F6Fa_SqC?nix
<srhb>
(Well, it's quite similar even if you're not using overlays)
Wizek_ has quit [(Ping timeout: 248 seconds)]
<nvd>
I'm pretty new to nix and I'm probably diving in at the deep end here....
<srhb>
nvd: I'm not sure if Nix (without NixOS) has a concept of systemd services at all
tokudan has joined #nixos
kuznero has joined #nixos
<kuznero>
Hi All!
ison111 has quit [(Quit: WeeChat 1.7.1)]
<gchristensen>
srhb, nvd: it does not
<disasm>
nvd: so I think you can do stdenv.mkDerivation { with a src of your bash script and an installPhase that copies it to $out. I don't think nix without nixos can manage systemd services at all, so you'd probably need to create a systemd unit separate from nix.
<kuznero>
How do I do something like `COPY` or `ADD` in Dockerfile with `dockerTools.buildImage`?
<gchristensen>
nixpkgs can create systemd unit files but then you have to do whatever you have to do with them to use it
<nvd>
Right, I see
<clever>
LnL: yeah
<disasm>
kuznero: I think you'd write a derivation with an installPhase that copies to $out
<LnL>
clever: I used your kexec + justdoit thing today <3
<kuznero>
Ah... that didn't come to mind :) Thanks! :)
<kuznero>
disasm: thanks!
<srhb>
kuznero: There's only ever one layer produced from buildImage :)
<LnL>
clever: had my system up in like 2 minutes
Wizek_ has joined #nixos
<kuznero>
srhb: I just want some files by default in my volume if it happen not to be mounted
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vQoQJ
<NixOS_GitHub>
nixpkgs/master 14f2083 Thorsten Weber: git-ftp: init at 1.4.0
<disasm>
gchristensen: it can? I thought the systemd stuff was all at the nixos level.
<clever>
LnL: nice
Wizek__ has quit [(Ping timeout: 260 seconds)]
<nvd>
disasm: it's not that tricky to output a file, I guess, but it's slightly trickier to put it where it needs to go
oifgjreg` has quit [(Ping timeout: 240 seconds)]
<kuznero>
nvd: you mean in docker image not under /nix/store?
indi_ has joined #nixos
<gchristensen>
disasm: nixpkgs can write out any text file you want, is what I mean
<nvd>
kuznero: where did docker come into it?
<srhb>
I think we're mixing up topics now :-)
<kuznero>
nvd: sorry, I unintentionally mixed things up...
Wizek__ has joined #nixos
zetok has joined #nixos
<disasm>
gchristensen: ah k, that makes more sense :)
<nvd>
kuznero: no worries :)
<disasm>
nvd: I don't know if this helps, but applications/networking/syncthing/default.nix does something similar I think to what you want to do.
ryanartecona has joined #nixos
yegortimoshenko has joined #nixos
indi_ has quit [(Ping timeout: 260 seconds)]
<disasm>
then after you install the derivation on the system you want the monitoring on, you'd just need to symlink the unit file to /etc/systemd/system/ and run systemctl daemon-reload && systemctl start mymonitor.service
<disasm>
hail and hydra I have no experience with yet. Been meaning to play with hydra for some time, just don't have the free time.
Wizek_ has quit [(Ping timeout: 255 seconds)]
eacameron has joined #nixos
<kuznero>
disasm: adding content with another derivation helped. Thanks again!
<disasm>
kuznero: awesome, glad to hear it! Did you get that docker image shrinked?
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 248 seconds)]
<kuznero>
disasm: oh yes :) pure pleasure :) from 1,67G to 62M (scotty web server + bunch of other small stuff)
<disasm>
kuznero: would you mind sharing the nix derivation? I'm curious what the fix in the end was.
<kuznero>
Sure, just a few minutes - I will finish up adding content files and will post a link
sary has joined #nixos
<srhb>
Hmms. nixos-rebuild switch is stuck after "setting up tmpfiles" with no further output. How might I diagnose what's going on?
yegortimoshenko has quit [(Remote host closed the connection)]
indi_ has quit [(Ping timeout: 260 seconds)]
FRidh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #27214: unzip: Use less lines of context in patch so NLS patch commutes (staging...unzip-nls) https://git.io/vQoNa
NixOS_GitHub has left #nixos []
eacameron has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 1 new commit to master: https://git.io/vQoNj
<NixOS_GitHub>
nixpkgs/master 93b1b3d Robert Helgesson: perl-PDF-API2: 2.030 -> 2.033
NixOS_GitHub has left #nixos []
snikkers has quit [(Remote host closed the connection)]
eacameron has joined #nixos
g^k_1^w^m_s^u has joined #nixos
g^k_1^w^m_s^u has quit [(Excess Flood)]
Tucky has quit [(Quit: WeeChat 1.9)]
k0001 has quit [(Remote host closed the connection)]
ebopp has quit [(Ping timeout: 240 seconds)]
k0001 has joined #nixos
tosmi has joined #nixos
<tosmi>
hi
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 opened pull request #27215: Harden stdenv in two misc ways (master...stdenv-harden) https://git.io/vQoxd
NixOS_GitHub has left #nixos []
ennui has joined #nixos
<Eisfreak7>
/
bennofs has quit [(Ping timeout: 255 seconds)]
<gchristensen>
neato...
<tosmi>
i'm just on my way learning nixos and desperatly trying to build a ruby dev env with the help of nix-shell
<tosmi>
but i'm always getting "build input ... does not exist"
phreedom has quit [(Ping timeout: 258 seconds)]
<tosmi>
i've tried various examples on how to build a dev env, the result is always the same...
freusque has quit [(Quit: WeeChat 1.7.1)]
alfie has joined #nixos
<tokudan>
tosmi, i don't think it's a problem with your nix expression
<tokudan>
tosmi, see the comment i just made on that gist
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rnhmjoj opened pull request #27216: only add existing directories to PATH (master...path) https://git.io/vQopy
NixOS_GitHub has left #nixos []
<tosmi>
ok, thanks
<tokudan>
I'm not really sure what that message means, but it's probably something along the line of "this nix store path should exist, but I cannot find it. HELP me!"
<srhb>
Yeah, and presumably that's stdenv things.
<srhb>
Which is bad.
<tosmi>
yeah, i check the paths and they are in the nix store...
phreedom has joined #nixos
bkchr has joined #nixos
bennofs has joined #nixos
<tokudan>
hmm... you could try something like nix-store --realise /nix/store/b43ww9wkpwjxha7ql7mizxpa2vb6yk5r-gcc-wrapper-5.4.0
<tokudan>
for each of the paths mentioned
<gchristensen>
ugh I hate how I hurt myself... currently considering installing hydra on a ScientificLinux box ....
Wizek_ has joined #nixos
<tokudan>
and if that does not help, maybe nix-store --repair-path /nix/store/b43ww9wkpwjxha7ql7mizxpa2vb6yk5r-gcc-wrapper-5.4.0
<tokudan>
tosmi, it could be something completely different, though. i have little experience there
ryanartecona has quit [(Quit: ryanartecona)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vQohw
<NixOS_GitHub>
nixpkgs/master fbbf5e7 Frederik Rietdijk: python.pkgs.virtualenv: move to separate expression
NixOS_GitHub has left #nixos []
indi_ has joined #nixos
<tosmi>
ok, but thanks anyways
ryanartecona has joined #nixos
<tosmi>
i'll try it with just one package (patchelf) the result is the same
<tosmi>
16.09 is just the version i used for installation. i'm currently on 17.03.
<srhb>
does nixos-version give a commit if you're running off channels?
<tosmi>
17.03.1387.25a8ba5baf (Gorilla)
<tosmi>
this is on my workstation, the other machine is currently updating
marsel has quit [(Ping timeout: 240 seconds)]
<srhb>
tosmi: Works for me on that commit as well, so I guess we can rule that out.
sibi has quit [(Quit: Connection closed for inactivity)]
<srhb>
tosmi: But the fact that it's occurring on both machines makes it sound like we need to check if something odd is happening in your configuration
<tosmi>
ok, just give me a sec
<tosmi>
i just ran 'nix-channel --update' and 'sudo nix-channel --update'
<tosmi>
and now i'm just running nix-shell again
<tosmi>
i'll post my config in a second gist, if nix-shell fails again
<tosmi>
it's currently downloading packages, i can see paxctl-0.9 beeing fetched...
<tosmi>
nop, failed again, same message
<tokudan>
same paths?
<tosmi>
yeah, no difference
<tokudan>
then either something's wrong with your config or your nix store caught a cold or something
<Ralith>
what's the magic nix-build incantation to build a package that's written to be invoked by callPackage but which doesn't actually have a top-level expression anywhere
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 3 new commits to staging: https://git.io/vQKTn
<NixOS_GitHub>
nixpkgs/staging a14cf06 John Ericson: stdenv: Harden hook runners...
<NixOS_GitHub>
nixpkgs/staging e57a220 John Ericson: stdenv, swift: Use `local fd` in is* bash functions for hygiene
<NixOS_GitHub>
nixpkgs/staging f536412 John Ericson: Merge pull request #27215 from obsidiansystems/stdenv-harden...
NixOS_GitHub has left #nixos []
<gchristensen>
Sonarpulse: interesting, with vcunat's recent pushing of your code to master's stdenv, I'm not sure why those three commits should go to the staging stdenv
<Sonarpulse>
gchristensen: oh and I pushed the code and merged it :)
<Sonarpulse>
the contributors-push-to-PR feature :D
<gchristensen>
:D
<Sonarpulse>
I alos just merged an actual staging thing
<Sonarpulse>
then I need to merge those two PRs to make base commit for a 3rd
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] aschmolck opened pull request #27221: git: add missing deps for filter-branch etc (master...fix-git-deps) https://git.io/vQKTD
NixOS_GitHub has left #nixos []
<Sonarpulse>
nixpkgs history, ...I'm sorry
<gchristensen>
meh
<gchristensen>
a clean history is for the birds. real life is complicated
<Infinisil>
Staging is one thing of git/version management I don't quiet get yet
<gchristensen>
git's staging? or nixpkgs' staging branch?
Wizek_ has joined #nixos
<Infinisil>
Both I guess?
<gchristensen>
well they're different
<Infinisil>
I don't know either :)
ambro718 has joined #nixos
Wizek__ has joined #nixos
<ambro718>
I want to use pkgs.lib.linkFarm (to create a directory with symlinks), but is it possible to extract the paths from the result?
sary has quit [(Ping timeout: 258 seconds)]
<Ralith_>
tokudan: that just gives me errors from unrelated packages, which is weird, because presumably it's pulling in my perfectly good system nixpkgs
sary has joined #nixos
<tokudan>
Ralith_, probably errors from dependencies? not only direct dependencies count
<Ralith_>
tokudan: I don't think my nodejs package depends on agda.
cmr has quit [(Quit: FIN)]
<Sonarpulse>
Infinisil: I suppose it can be argued that both are hacks
<Sonarpulse>
though in different ways
<tokudan>
Ralith_, i don't know how you have to call nodejs packages
<Ralith_>
it is a normal package.
<Ralith_>
no special calling needed
ebopp has joined #nixos
<tokudan>
well, then nix shouldn't evaluate agda if it's not in the dependency path somewhere
cmr has joined #nixos
cmr has quit [(Changing host)]
cmr has joined #nixos
<tokudan>
maybe it's onyl required to build something?
<Infinisil>
Sonarpulse: I'll read up on it when I need it
<Sonarpulse>
+1
<gchristensen>
tokudan, Ralith_: it sounds like whatever you're doing is trying to evaluate all of nixpkgs
<tokudan>
gchristensen, what I've sent Ralith_ as command to build a package is: nix-build -E 'with import <nixpkgs> { }; callPackage ./default.nix { }'
<tokudan>
gchristensen, i dont think that should evaluate all of nixpkgs
<tokudan>
gchristensen, well, unless the default.nix does it, of course
indi_ has joined #nixos
<Infinisil>
tokudan: If you're currently in the nixpkgs directory where the main default.nix lives, then i'm pretty sure this would evaluate all of nixpkgs
<tokudan>
Infinisil, Ralith_ has that problem, not me
indi_ has quit [(Ping timeout: 260 seconds)]
<Infinisil>
tokudan: Yeah, I meant 'you' as a in 'any person'
<Ralith_>
I'm not doing anything remotely like that, no, as explained above
Isorkin has quit [(Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)]
<gchristensen>
can I make a persistent GC root for a `.drv`? I'm trying to work around a temporary problem where a nix-shell environment is over aggressively being GC'd, while the real solution is put in to place
<slabity>
So there's no nixos wiki, right? Is there a place I can help with documentation?
indi_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 3 new commits to openssl-1.1: https://git.io/vQKYl
<NixOS_GitHub>
nixpkgs/openssl-1.1 b7128d5 Robin Gloster: transmission: add patch to build with openssl 1.1
<NixOS_GitHub>
nixpkgs/openssl-1.1 5766383 Robin Gloster: aws-sdk-cpp: 1.0.153 -> 1.1.7
<NixOS_GitHub>
nixpkgs/openssl-1.1 055d97f Robin Gloster: mariadb: use connector-c for libmysqlclient
NixOS_GitHub has left #nixos []
orivej has joined #nixos
<Infinisil>
gchristensen: Does nix-store --add-root <path> not work?
danl1240 has joined #nixos
<grahamc>
Infinisil it seems to want to build the drv first
carlosda1 has joined #nixos
ris has quit [(Ping timeout: 255 seconds)]
ericsagnes has quit [(Ping timeout: 258 seconds)]
<danl1240>
can some point me to a ELI5 description of how I can install an older version of Mercurial using nix?
indi_ has quit [(Ping timeout: 260 seconds)]
<srhb>
danl1240: If it's not already in nixpkgs, you can either get an older nixpkgs or manually override (or make a new) derivation with the version you want
<srhb>
danl1240: In which case you basically want to know how to override packages.
<Infinisil>
grahamc: Ohh right
darlan has joined #nixos
<danl1240>
srhb: yeah... it's not in nixpkgs, and I don't know how to do those things.......
<srhb>
danl1240: You'll want something like that in ~/.config/nixpkgs/overlays/oldmercurial.nix
<cwre>
ugh, can't type.
<srhb>
danl1240: You'll want to fill in the src bit with the sources you want. Find something similar from mercurials definition in nixpkgs (grep for mercurial)
<srhb>
danl1240: That should get you started.
<srhb>
cwre: I switched from Arch myself.
<srhb>
cwre: No luck on pushing NixOS yet, sadly. :-)
<cwre>
srhb: what was your reasoning for switching?
<srhb>
cwre: Declarative system, basically. It was love at first sight.
<srhb>
And the hackability of just altering a git repository to alter your distro radically is just fantastic.
<cwre>
I do find it interesting, but I guess I don't understand how awesome it can be.
<Sonarpulse>
slabity: there is the nixpkgs and nixos manuals within the nixpkgs repo
<cwre>
I'm downloading it right now to try it in a VM.
<srhb>
cwre: Cool. :)
<cwre>
So basically I'll have a huge config file for my system?
<srhb>
cwre: You should be the one to convince you anyway. :-)
<srhb>
cwre: Not so huge, necessarily, but yes.
<srhb>
cwre: And for other systems too, possibly.
<cwre>
Yeah yeah, that's what's really cool.
<danl1240>
srhb: I have ~/.config but not those subdirs... I assume I can just make them
<srhb>
danl1240: Correct.
<cwre>
But so it says that it creates new installs for each version... Does it garbage collect after a certain time? How does binary switching work?
<srhb>
cwre: You can control how often (if automatically at all) garbage is collected
<srhb>
Essentially a timer that does nix-collect-garbage
<srhb>
cwre: Switching is swapping out symlinks, mostly.
<srhb>
danl1240: Take a look at pkgs/applications/version-management/mercurial/default.nix for the src block of the original
<srhb>
danl1240: That's the bit you want to override with your version :)
<cwre>
Is that a manual process or is there a nix command? Sorry, I haven't trolled through a ton of documenation yet, just reading the about page.
<srhb>
cwre: nixos-rebuild switch builds and switches in the new configuration
<srhb>
cwre: There's also boot, build-vm, build...
<cwre>
:O
<srhb>
cwre: They do what you might expect
<danl1240>
srhb: where is pkgs?
<srhb>
danl1240: in your nixpkgs checkout. :-)
<cwre>
What about packages that aren't currently available for NixOS? Is there a AUR or similar?
<srhb>
cwre: No, we have overlays though (as of 17.03)
<cwre>
Overlays?
<srhb>
cwre: and it's easy to branch and alter nixpkgs to your liking
<srhb>
cwre: I'm actually explaining a small overlay right now to danl1240
<disasm>
cwre: if you want to contribute, clone nixpkgs and add it there. Otherwise, you can use the same derivations in your own config if it's not something you want to contribute.
<srhb>
cwre: In this case it just overrides the version of mercurial, but it could just as well be a new package or several
<srhb>
cwre: But agian, branching nixpkgs and contributing the package instead is just as easy.
<cwre>
Mmm, this is cool. Is NixOS considering "Rolling Release"?
Sonarpulse has quit [(Ping timeout: 276 seconds)]
<srhb>
cwre: A lot of users keep a local checkout of nixpkgs that they use as the base of their system instead of the "snapshots" (called channels)
<disasm>
cwre: the declarative syntax make it really easy to package most things from source. Packaging from existing binaries is a little trickier involving patching the binary itself, wrappers, etc...
<srhb>
cwre: So you can just addd the functionality whenever, no need to wait for the PR to go through
<srhb>
cwre: I actually don't know. :-P I find it hard to classify.
<srhb>
cwre: I'm on the nixos-unstable branch, I guess it's sort of rolling release.
<srhb>
cwre: Whereas nixos-17.03 branch is somewhat more stable
<disasm>
cwre: I come from archlinux as well. Actually have a dual boot on my nixos desktop, but I've rebooted into arch, maybe twice. When I do boot into arch, I use the same nix store on arch so I can run anything I have installed in nixos.
<cwre>
Oh crap, so this is ***similar*** to Homebrew for MacOS.
<srhb>
cwre: How so?
<cwre>
Well, at least for how packages are managed.
<srhb>
(I don't know homebrew)
<danl1240>
srhb: so, looking at the history of .../mercurial/default.nix I see the previous version had a Mercurial version I can use... can I override "version" and "src" in that overlay?
<disasm>
cwre: kinda, you can also run nix on MacOS :) Although not every package is available.
<cwre>
Wait...
<cwre>
What?
<srhb>
danl1240: Yup.
<srhb>
cwre: nix is the package manager, nixpkgs are the packages, NixOS is the OS that uses both
<srhb>
cwre: But nix and nixpkgs is cross-platform
<srhb>
danl1240: If you do that, you might actually want to not override mercurial at all, but simply call the new attribute mercurial_yourversion
<srhb>
danl1240: Then you can have both.
<danl1240>
srhb: ah... I thought that was what this was doing... yes that is better
<disasm>
cwre: if your like most of us here, you'll never go back to another distribution... I cringe everytime I have to do something on a non-nix system nowadays.
<srhb>
danl1240: If you call it mercurial = ... you simply "overwrite" the package entirely
<danl1240>
srhb: right, just the name (of the derivation and the file) must change
<srhb>
disasm: I think that's called selection bias. ;-)
<srhb>
danl1240: Not the file. Just that name.
<srhb>
danl1240: You might want to change the name attribute too, though, or they will appear with the same name when you search through nix-env
<srhb>
(but not the same attribute path)
<danl1240>
srhb: got it
endformationage has joined #nixos
<srhb>
danl1240: When you're done you can test with nix-shell -p yourattributename
<gchristensen>
thank you, Infinisil & FRidh :D
<danl1240>
srhb: I'm trying this, but it's complaining about undefined variables (name and version, depending): http://nixpaste.lbr.uno/vd7aLr3_?nix
<srhb>
danl1240: Ah, you'll need to make the attribute set recursive
<srhb>
danl1240: oldAttrs: rec {
<srhb>
danl1240: Otherwise it cannot refer to its own attributes at all
<danl1240>
srhb: now "infinite recursion encounter..."
<srhb>
danl1240: Woops
<srhb>
danl1240: I think that's fetchurl
<danl1240>
srhb: I can 'let' those vars outside the block, right
<srhb>
danl1240: You'll want to get that from self (or super, it doesn't really matter as we're not altering it)
<srhb>
danl1240: So simply self.fetchurl
<srhb>
danl1240: both self and super are nixpkgs at various stages of the override process
<srhb>
well, before and after. :-P
ryanartecona has quit [(Quit: ryanartecona)]
mudri has joined #nixos
<srhb>
super is the old nixpkgs, self is the new, to be exact.
k0001 has quit [(Ping timeout: 240 seconds)]
<Infinisil>
Soo, FRidh or gchristensen, how do you undo nix-instantiate --add-root ?
<danl1240>
srhb: that did it, success!
<srhb>
danl1240: Yay! :-)
<srhb>
danl1240: See, not too painful.
indi_ has joined #nixos
<gchristensen>
Infinisil: `rm` I imagine :)
<danl1240>
srhb: very obscure tho O_o
<Infinisil>
gchristensen: Ohh, right, that should work
<danl1240>
srhb: I can see the power here
<srhb>
danl1240: Not so much once you get it. Basically we're redefining ALL of nixpkgs
<srhb>
danl1240: But you're only adding a single attribute to it, in this case.
<srhb>
danl1240: Referring to values from the old (or new, laziness is cool) package set.
<danl1240>
srhb: yeah I basically created a new package with a handful of lines... and I didn't need to clone the nixpkgs repo either
<srhb>
danl1240: :-)
<srhb>
Is there a function that will raise an exception after a certain date?
xadi has joined #nixos
<srhb>
I tend to leave temporary fixes around and never get rid of them, even if they might have been fixed upstream
<srhb>
I was thinking if I could wrap them in a timed exception...
<Infinisil>
srhb: Interesting idea, I never thought of that
<Infinisil>
Don't think there is such a thing today
<srhb>
Well, it is impure :-P
<srhb>
unless the current time is an input.
<srhb>
(I don't think it is)
<gchristensen>
nix-repl> __currentTime
<gchristensen>
1499452062
<srhb>
oooh
<srhb>
Then it should be easy
<gchristensen>
there are some things like this that are not allowed to be used in nixpkgs
<srhb>
Obviously. :)
indi_ has quit [(Ping timeout: 240 seconds)]
<gchristensen>
!m srhb
<[0__0]>
You're doing good work, srhb!
<srhb>
:3 thanks
jbaum98 has quit [(Quit: Connection closed for inactivity)]
<LnL>
FRidh: I found the issue
ndrei has quit [(Ping timeout: 240 seconds)]
bit_lySLH2uSZHed has joined #nixos
bit_lySLH2uSZHed has quit [(K-Lined)]
bit_lySLH2uSZHed has joined #nixos
bit_lySLH2uSZHed has left #nixos []
<Infinisil>
gchristensen: Damn, didn't know about __currentTime, nasty stuff
<gchristensen>
there are a few like that :)
<FRidh>
LnL: impurity?
<LnL>
FRidh: I have a separate drv for the wheel and the installed package, it looks like pip just starts messing around with the object files if it can't access things during the installation
<gchristensen>
things that are not officially documented, recommended, or guaranteed to exist in the future
<FRidh>
LnL: that would be really wrong....the wheel should just be unpacked
<FRidh>
it didn't actually download a wheel in the background?
<LnL>
no I have sandboxing enabled
<LnL>
and the object files in the wheel look fine
Sonarpulse has joined #nixos
moet has joined #nixos
justelex has joined #nixos
bit_lySLH2uSZHed has joined #nixos
bit_lySLH2uSZHed has quit [(K-Lined)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Ericson2314 pushed 5 new commits to master: https://git.io/vQKWA
<NixOS_GitHub>
nixpkgs/master 4cf4d71 John Ericson: stdenv: Conservatively move `mkDerivation` into it's own file
<NixOS_GitHub>
nixpkgs/master afc2023 John Ericson: stdenv: Have mkDerivation pull the "extra" arguments from stdenv instead...
<NixOS_GitHub>
nixpkgs/master a302d73 John Ericson: top-level: {build,host,target}Platform are defined in the stdenv instead...
NixOS_GitHub has left #nixos []
MrSchwifty has joined #nixos
MrSchwifty is now known as GRBurst
marsel has joined #nixos
<tosmi`>
@tokudan, @srhb thanks for you help with my nix-shell problem
orivej has quit [(Ping timeout: 255 seconds)]
xadi has quit [(Quit: Leaving.)]
<tosmi`>
the problem is my environment, just created a new test user and everything works
<cwre>
disasm: eh... I'm just learning this for reference. I find the idea awesome, but I don't run Linux at home at all. It's not worth the hassle of having to dual boot when I spend most of my time in Windows for games.
<cwre>
If my CPU supported GPU passthrough, I might do that. But it doesn't... Damn you, 3770K.
schoppenhauer has quit [(Ping timeout: 240 seconds)]
<lfam__>
I changed the channel from nixos-unstable-small to nixos-17.03-msall, and now `nixos-rebuild test` errors out with several messages like: error: file ‘nixpkgs/nixos’ was not found in the Nix search path (add it using $NIX_PATH or -I)
<lfam__>
Any advice?
<disasm>
cwre: haha, yeah, I have a separate gaming desktop, although it's about 5 years old now and probly needs some upgrades.
<Eisfreak7>
Is there a reason `home-manager` isn't in nixpkgs?
<disasm>
cwre: my server next to it runs nixos though, and all my laptops (including my macs) are running nixos.
<cwre>
disasm: Completely blowing my Mac install away scares me.
<disasm>
Eisfreak7: it's brand spanking new, I literally saw the e-mail on the listserv about it this past week.
<srhb>
Eisfreak7: Wasn't it announced, like, two days ago?
<cwre>
disasm: and I stil play games on my laptop because I don't have my desktop with me currently :(\
<srhb>
I also don't think it's considered production ready
<srhb>
cwre: Get hooked on Paradox games, never need anything not supported on Linux... :-P
<cwre>
srhb: I like my AAA games, though. I can't abandon Geralt or Senua, man.
<Eisfreak7>
disasm srhb: The first commit was ~4 month ago. May be that it was developed in private back then though
<cwre>
Also, I've been playing Path of Exile and that's not crossplatform either... :(
<cwre>
OMG and you guys default Nightly on the graphical installer?
<cwre>
<333333
<srhb>
cwre: I didn't know we had a graphical installer. :-P
<disasm>
Eisfreak7: me too :) that games fun.
<disasm>
err cwre not Eisfreak7
<cwre>
I'm really excited for Senua's Sacrifice. It comes out on my wedding :o
<srhb>
Eisfreak7: Well, if it's not dangerous it looks completely trivial to add. :)
<disasm>
cwre: cool to PM you?
phreedom has quit [(Ping timeout: 260 seconds)]
Wizek has joined #nixos
<srhb>
Can contributors add labels to issues?
<srhb>
I don't know if it's even a restricted thing or I just have no idea how to
<LnL>
no, I'm not even sure if it's possible to allow that
<srhb>
OK.
schoppenhauer has joined #nixos
GRBurst has joined #nixos
<disasm>
cwre: there isn't a graphical installer per say, it's just a live CD, install is all command-line.
<cwre>
disasm: It's got a display manager, is what I meant, haha.
<cwre>
The manual opens up in Nightly
Wizek__ has quit [(Ping timeout: 240 seconds)]
Wizek_ has quit [(Ping timeout: 240 seconds)]
Wizek_ has joined #nixos
sary has quit [(Ping timeout: 276 seconds)]
sary has joined #nixos
thaega has quit [(Ping timeout: 255 seconds)]
oida has joined #nixos
lfam__ has quit [(Ping timeout: 260 seconds)]
oida_ has quit [(Ping timeout: 255 seconds)]
indi_ has joined #nixos
lfam__ has joined #nixos
ris has joined #nixos
ris has quit [(Client Quit)]
ris has joined #nixos
indi_ has quit [(Ping timeout: 260 seconds)]
_ris has joined #nixos
tvon has joined #nixos
juselius has joined #nixos
athan has quit [(Ping timeout: 260 seconds)]
ris has quit [(Ping timeout: 255 seconds)]
juselius has quit [(Client Quit)]
juselius has joined #nixos
marsel has quit [(Ping timeout: 255 seconds)]
<Infinisil>
,<<<,,,,,,,,,
<Infinisil>
whoops, don't mind that
<disasm>
Infinisil: is that some secret coded message?
<disasm>
haha
<Infinisil>
Heh
<manveru>
looks like brainfuck :)
<Infinisil>
I need to press a key to wake up the screen, looks like i pressed enter this time :P
<disasm>
I stick to control, hence why my control key has completely no lettering left on it!
<manveru>
i always press shift :)
<Infinisil>
My keyboard has no lettering on it by design :P
mrcheeks has quit [(Quit: ERC (IRC client for Emacs 26.0.50))]
<manveru>
technically i have letters, they're just black on a black keyboard
<Infinisil>
Ohh, well
<Infinisil>
As long as you can see them
lfam__ has quit [(Ping timeout: 276 seconds)]
katyucha is now known as Guest42568
Guest42568 has quit [(Killed (niven.freenode.net (Nickname regained by services)))]
katyucha_ is now known as katyucha
juselius has quit [(Ping timeout: 240 seconds)]
katyucha_ has joined #nixos
<Olgierd>
hi, should I use unstable on a desktop, given I want the newest versions of programs? (development box)
lfam__ has joined #nixos
<srhb>
Olgierd: You can mostly switch back and forth as you like.
<Infinisil>
Olgierd: Or you could just use a few packages from unstable
<LnL>
^ I would recommend you use the release and import specific stuff from unstable
<disasm>
so... I have a derivation in the nix store. I want to use that on another system that doesn't have nix on it. Is it possible to just copy that derivation and it's dependencies without having a full nix install on the other system?
<LnL>
yes, you can create a tar for the entire closure
ebopp has quit [(Quit: leaving)]
<disasm>
LnL: ooh, how do I do that?
leothrix has quit [(Ping timeout: 240 seconds)]
<disasm>
oh, that's with nix-build isn't it?
<LnL>
nix-store -qR $(nix-build '<nixpkgs>' -A hello) | tar czf hello-closure.tar.gz -T -
<eacameron>
Is it easy to enable swapfile in NixOS?
griff_ has joined #nixos
<dtzWill>
hmm, well GL Infinisil sorry O:)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel opened pull request #27224: KDE PIM Applications (master...kdepim) https://git.io/vQKwR
NixOS_GitHub has left #nixos []
<Infinisil>
dtzWill: Eh, whatever, I have a working terminal for now
<dtzWill>
Infinisil: whatcha using? :)
<Infinisil>
dtzWill: gnome-terminal for now, previously used sakura
<Infinisil>
eacameron: Yup, super easy, hold on
<Infinisil>
dtzWill: What about you?
<dtzWill>
Infinisil: coolies. using termite myself for now
<dtzWill>
long time rxvt-unicode user previously, lol
<cwre>
Hmm looks like it was an error with my packages... I don't really understand how to install a DE...
<disasm>
LnL: that worked almost too well...
<LnL>
why wouldn't it? :D
<dtzWill>
:D that's the power of Nix
<dtzWill>
*glory
<disasm>
and 31 MB for /nix... Can't complain there.
<dtzWill>
cwre: if you give more details folks can probably help. DE's are usually just a flag in configuration.nix
<cwre>
dtzWill: I'm looking to install XFCE
griff_ has quit [(Quit: griff_)]
<tokudan>
cwre, services.xserver.desktopManager.xfce.enable = true; in /etc/nixos/configuration.nix
<dtzWill>
"services.xserver.desktopManager.xfce.enable = true"; should do the trick? Haven't used XFCE on NixOS but would be shocked if prosed the error you're encountering
<LnL>
yeah hard to tell from those lines, I'm suspecting you added something to systemPackages that's not a package
lambdael has quit [(Quit: WeeChat 1.7.1)]
<tokudan>
you will also need a display manager, i use sddm with xfce (services.xserver.displayManager.sddm.enable = true;)
<Infinisil>
eacameron: I personally use zfs, so `fallocate --length=4GiB swapfile` doesn't work, I'm using `dd if=/dev/zero of=swapfile bs=1048576 count=4096` instead, this just creates some space. Use `mkswap swapfile` to actually make it a swap (duh). Then you can call `swapon swapfile` to have the system use that swap. If you want to keep that setting, a simple `nixos-generate-config` should add a swap to
<disasm>
Infinisil: that was a single derivation I'm pushing to a centos 7 box so I don't have to mess with building an rpm
<dtzWill>
disasm: only thing is you sometimes need to /unset/ LD_LIBRARY_PATH to make Nix things happy
carlosda1 has joined #nixos
<tokudan>
dtzWill, what does TIL stand for?
<disasm>
today I learned
<tokudan>
ah
<dtzWill>
I've only encountered that problem really when dealing with folks (myself included) who used to install things into local prefix and setup PATH/LD_LIBRARY_PATH accordingly... basically for users who would be better off using Nix anyway :P :D
romildo has joined #nixos
<dtzWill>
(yes, "today I learned". Anyway thanks for sharing about nixos-option, tokudan! :))
<Infinisil>
nixos-option hasn't worked for me a lot, it's pretty limited and I'm not using it anymore because of that
<dtzWill>
oh :(
<Infinisil>
And it takes ages to show the result sometimes
<disasm>
lately I just git grep in nixpkgs for what I'm looking for
<tokudan>
it basically parses all of nixpkgs to figure out what you want... and is useless if you want to figure out what options exist in a list
<Infinisil>
tokudan: Ah that makes sense then, it's much less useful like this though
<tokudan>
faster than starting a browser if I'm in a terminal for these simple things though
<Infinisil>
ripgrepping nixpkgs even faster :D (if you know where to look)
<MP2E>
i usually just grep the nixpkgs tree using ripgrep
<Infinisil>
Especially since my firefox takes 15 seconds to start for whatever reason..
<tokudan>
Infinisil, that's the point... do you know which file to grep for e.g. desktop managers? ;)
<dtzWill>
'man configuration.nix' solves most of the option discoverability problems for me, with inspecting a nixpkgs tree for more complicated investigations/queries (+1 for rg (ripgrep))
<celph>
I've been stuck trying to get networking up since yesterday
<celph>
for some reason systemctl can't start wpa_supplicant
<celph>
because of that I can't connect to anything or rebuild
<celph>
I'm super confused, I've wiped and reinstalled, literally done nothing that's not just running nixos-install and setting a password and trying to rebuild
<celph>
or use wpa_cli
<MP2E>
celph: do you have the line "networking.wireless.enable = true;" in your /etc/nixos/configuration.nix ?
<MP2E>
wireless tools won't be installed to your new installation without that
<celph>
yup
<MP2E>
ah hm
Itkovian has joined #nixos
<cwre>
Any of you have a preferred hypervisor on windows? I'm looking for something under the "not VB but also still Open Source" category
MercurialAlchemi has quit [(Ping timeout: 268 seconds)]
sary has quit [(Remote host closed the connection)]
<celph>
There's always qemu
sary has joined #nixos
celph-alt has joined #nixos
jhinkle has quit [(Ping timeout: 260 seconds)]
<celph-alt>
https://pastebin.com/fs3e8SBH my configuration.nix, not sure what might be the source of the networking issue
digitus has quit [(Quit: digitus)]
<cwre>
celph: does qemu run on windows?
digitus has joined #nixos
<Infinisil>
celph-alt: Do you have an ethernet connection?
<Infinisil>
celph-alt: Hmm, did you run nixos-generate-config? What's in /etc/nixos/hardware-configuratixon.nix?
<Infinisil>
I for example needed the broadcom module for wireless which was put in there via nixos-generate config
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<celph-alt>
Infinisil: yeah, I've slightly modified hadware-configuration for mount options and because the autogen tried to map my filesystem more than once, otherwise it's exactly as-is
<celph-alt>
not sure if I should file a bug report over the multiple mapping issue, it's easy to fix by hand but it'll bork the install if you don't. seems specific to btrfs subvolumes.
<celph-alt>
or maybe just my particular btrfs-on-luks setup
<Infinisil>
celph-alt: How have you tried to set up wpa_supplicant? Via /etc/wpa_supplicant?
<celph-alt>
Infinisil: so according to the arch wiki, wpa_cli needs at least one configuration file to work
<celph-alt>
that's really bizarre but okay
magnetophon1 has joined #nixos
<Infinisil>
celph-alt: Try putting something like
<Infinisil>
network={
<Infinisil>
ssid="<ssid of your network>"
<Infinisil>
psk="<password of that network>"
<Infinisil>
}
<Infinisil>
in /etc/wpa_supplicant.conf
<Infinisil>
Then `systemctl restart wpa_supplicant
<Infinisil>
celph-alt: Why is that bizarre?
<eacameron>
Infinisil: Thank you!
<magnetophon1>
Is it possible to have a verbose version of "nix-env --list-generations", one that tells you the system version, and maybe more info (kernel name?, ...). GRUB knows all this, so it should be possible...
<celph-alt>
Infinisil: usually when I install a thing I don't expect it to break updating until I configure it
FRidh has quit [(Quit: Konversation terminated!)]
<Infinisil>
celph-alt: So wireless worked before?
<celph-alt>
Infinisil: kind of. I was using wicd previously but it seems to write state info somewhere that nix doesn't like it to be written, so it wouldn't actually keep a connectioon up
<celph-alt>
Infinisil: I connected once or twice, but it wasn't reliable
<Infinisil>
celph-alt: I see, I know nothing about wicd though, does using /etc/wpa_supplicant.conf work?
jonte has quit [(Ping timeout: 248 seconds)]
<Infinisil>
magnetophon1: I only know that you can find the generations in /nix/var/nix/profiles
<Infinisil>
Or /nix/var/nix/profiles/per-user/$USER
sidpatil has joined #nixos
celph-alt has quit [(Ping timeout: 260 seconds)]
<sidpatil>
I've been trying to enable Bonjour in Pidgin, and it keeps giving me an "unable to establish connection with the local mDNS server" error.
<sidpatil>
Does anyone know what's going on? I've installed Avahi through services.avahi.enable = true
<LnL>
magnetophon1: this will kind of show it, ls -l /nix/var/nix/profiles/system-*/kernel
celph-alt has joined #nixos
<celph-alt>
Infinisil: anyway thanks, I can actually get some work done now :D
<Infinisil>
celph-alt: Soo did it work or not?
celph-alt has quit [(Client Quit)]
<Infinisil>
Okay then
<MP2E>
heh
<celph>
Infinisil: sorry I yanked my ethernet cable and the message saying it worked didn't send lol
<MP2E>
well at least it was fixed :p
<MP2E>
haha oh i see
<Infinisil>
celph: Ahh nice, glad I could help :)
carlosda1 has quit [(Ping timeout: 276 seconds)]
<sidpatil>
I'm running Pidgin 2.12.0
<sidpatil>
Avahi version 0.6.32
<celph>
I'm hoping I can switch to wicd long-term but already nixos has some serious advantages that I don't want to give up
<Infinisil>
sidpatil: No idea, you might need to dig a bit, using strace, -vvv flags or just running from the command line to see the output
<MP2E>
Haven't tried wicd, but I use network-manager on nixos to good effect, interfacing through the nmcli program
<celph>
I'll give it a shot
<sidpatil>
Infinisil: I'll try that.
sidpatil has quit [(Quit: Leaving.)]
sidpatil has joined #nixos
<magnetophon1>
Infinisil and LnL: Thanks!
sidpatil has quit [(Client Quit)]
sidpatil has joined #nixos
<Infinisil>
magnetophon1: No problem
sidpatil has left #nixos []
Ivanych has joined #nixos
<celph>
wpa_supplicant is still breaking rebuild T__T
<celph-alt>
It looks like rebuild is trying to start it while it's already running, but at the same time if I try to stop it before rebuild I get the same error
<Infinisil>
celph-alt: Nah it has nothing to do with that, nixos know when it needs to stop/start/restart services
<Infinisil>
I don't know what's exactly the problem, you could maybe debug it by manually starting it
<Infinisil>
systemctl cat wpa_supplicant shows you the service file
<Infinisil>
The ExecStart is what's being called when the service starts
<Infinisil>
You could try running that in the terminal and maybe adding some -v's or with strace
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rnhmjoj opened pull request #27227: fish-foreign-env: hide warnings when setting PATH (master...fish) https://git.io/vQKyZ
NixOS_GitHub has left #nixos []
hiratara has quit [(Ping timeout: 276 seconds)]
<Infinisil>
For me, the contents of the file at execstart contain a small script that calls wpa_supplicant with some options, you could try calling that with these options directly
<celph>
I'm not really sure how to parse strace, manual start happens without error though
<Infinisil>
Also have a look at `man wpa_supplicant`, maybe there's some debug option
hiratara has joined #nixos
<Infinisil>
celph: Well if you can run wpa_supplicant manually and you have working internet then systemd should be able to do it as well
<celph>
no never mind it absolutely fails to start after being killed and no output
celph-alt has quit [(Ping timeout: 260 seconds)]
copumpkin has quit [(Remote host closed the connection)]
<celph>
Infinisil: I tried a couple things - if I kill wpa_supplicant I can start it again manually as before, but systemctl can't start it, and starting it via wpa_supplicant-start doesn't do anything and doesn't output any error messages
MP2E has quit [(Read error: Connection reset by peer)]
MP2E has joined #nixos
<Infinisil>
celph: And?
eacameron has quit [(Remote host closed the connection)]
<celph>
Infinisil: so wpa_supplicant-start is a script that calls wpa_supplicant with /etc/wpa_supplicant.conf, I was using a file at /etc/wpa_supplicant/exapmle.conf, a simlink fixed the problem
<Infinisil>
celph: Ahh lol
eacameron has joined #nixos
<Infinisil>
Well that's kinda stupid
<Infinisil>
:p
<celph>
Infinisil: I'm not sure if this is the packagers' fault or the writers of wpa_supplicant
<earldouglas>
Anyone familiar with running Graphite on NixOS? I'm trying to figure out what I need to do to run it, aside from services.graphite.web.enable = true.
<celph>
I think it's wpa_supplicant not providing a default config file in the expected place, but requiring a config file to launch and expecting one in the launch script provided for systemd
<Infinisil>
celph: well why is the file not in the right spot? did you put it there or somebody else?
<celph>
Infinisil: I put it there, because I didn't realize that wpa_supplicant expected it to be in a certain place
<celph>
Infinisil: or rather, the launch script expects it
mudri has quit [(Quit: WeeChat 1.8)]
<simpson>
earldouglas: I highly recommend that you not run Graphite, period. It's got version mismatches and security iffiness and upstream is stuck chasing a release that'll never happen.
<simpson>
earldouglas: But yes, that would be how to run graphite-web.
<earldouglas>
Ah, nuts. Any recommendations for an alternative? I just need simple metrics reporting.
<Infinisil>
celph: Well you can't put it anywhere and expect it to work.. /etc/wpa_supplicant.conf is *the* location to put it, it's all over the manuals
eacameron has joined #nixos
<celph>
Infinisil: I have forgotten the contents of many a manual in my time, but yes I should have gone back and looked through it
<Infinisil>
celph: Glad you got it to work :D
endformationage has joined #nixos
<celph>
Infinisil: same, once I can figure out eduroam I'll be overjoyed
<chominist[m]>
How do I change my terminal appearance, do I have to do this through configuration.nix?
<chominist[m]>
(Or if I don't have to, would you recommend doing so, and how?)
<celph>
chominist: local preferences for xterm can be set in home, global preferences I think go in /etc
<celph>
chominist: xterm prefs are managed through xresources
<Infinisil>
chominist[m]: Yeah it all depends on the terminal you're using
sary has quit [(Ping timeout: 248 seconds)]
tmaekawa has joined #nixos
eacameron has quit [(Ping timeout: 276 seconds)]
MP2E has quit [(Read error: Connection reset by peer)]
MP2E has joined #nixos
<catern>
whenever I try to install with nixos-install, I see it is buildling /nix/store/j7siszihkmd12kq5c3wz1hrbs9f24nrs-nixos-system-earth-17.09pre110215.7d36ae33df.drv
<catern>
with "nix-env -i -A config.system.build.nixos-install -A config.system.build.nixos-option -A config.system.build.nixos-generate-config -f default.nix"
ryanartecona has quit [(Ping timeout: 260 seconds)]
ryanartecona_ is now known as ryanartecona
justbeingglad has joined #nixos
<chominist[m]>
celph (IRC): Infinisil (IRC): would you change keyboard settings in this manner as well? I want to switch to programmer's dvorak + custom settings but having trouble
<Infinisil>
catern: I think it might be using your user channels, what does `sudo nix-channel --list` say?
eacameron has quit [(Ping timeout: 260 seconds)]
akaWolf has joined #nixos
<chominist[m]>
And more importantly, what is global/local/in configuration.nix? Packages and system settings in conf.nix, and package confs are in local/global?
<celph>
chominist: some global keyboard conf can be done via services.xserver
<Infinisil>
chominist[m]: Ah no, keyboard settings aren't specific to your terminal, if you want programmer dvorak you can do `setxkbmap -layout us -variant dvp`, and if you want to put this is configuration.nix you need to do services.xserver.layout = "us", services.xserver.xkbVariant = "dvp";
<celph>
chominist: you probably want to set services.xserver.layout for keyboard
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
aanderse has joined #nixos
eacameron has joined #nixos
<sphalerite[m]>
Does anyone else really not like how the names shown on emails from nix-dev are now e.g. "Daniel Peebles via nix-dev" rather than just "Daniel Peebles"?
eacameron has quit [(Ping timeout: 268 seconds)]
eacameron has joined #nixos
simukis has quit [(Ping timeout: 276 seconds)]
earldouglas has quit [(Quit: leaving)]
<Infinisil>
That reminds me of having to follow the mailing list, still not doing it currently
ryanartecona has quit [(Ping timeout: 260 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
digitus has quit [(Quit: digitus)]
erasmas has quit [(Quit: leaving)]
eacameron has quit [(Ping timeout: 260 seconds)]
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
ryanartecona has joined #nixos
eacamero_ has joined #nixos
markus1199 has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
markus1189 has quit [(Ping timeout: 240 seconds)]
eacamero_ has quit [(Ping timeout: 260 seconds)]
ryantrinkle has quit [(Ping timeout: 268 seconds)]
Nobabs27 has joined #nixos
Sonarpulse has quit [(Ping timeout: 268 seconds)]
Nobabs25 has joined #nixos
Nobabs227 has joined #nixos
Nobabs27 has quit [(Ping timeout: 268 seconds)]
Nobabs25 has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vQKAh
<NixOS_GitHub>
nixpkgs/master 1a7d9f5 Tim Steinbach: gradle: 4.0 -> 4.0.1
NixOS_GitHub has left #nixos []
Nobabs227 has quit [(Ping timeout: 240 seconds)]
Nobabs227 has joined #nixos
tmaekawa has quit [(Quit: tmaekawa)]
<lvernschrock>
sphalerite[m]: huh. I hadn't noticed until you said something...
ryanartecona has quit [(Ping timeout: 260 seconds)]