gchristensen changed the topic of #nixos to: Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64
sigmundv_ has quit [Ping timeout: 255 seconds]
mmfom has joined #nixos
cement has quit [Ping timeout: 252 seconds]
jabranham has joined #nixos
<jabranham> new nixos user here. How am I supposed to start gpg-agent? I have programs.gnupg.agent.enable = true; programs.gnupg.agent.enableSSHSupport = true; in my configuration.nix file but trying to do ssh-add ~/.ssh/id_rsa results in "Error connecting to agent: No such file or directory"
fyuuri has quit [Ping timeout: 268 seconds]
kim0 has quit [Quit: Connection closed for inactivity]
digitus has quit [Quit: digitus]
mmfom has quit [Quit: Page closed]
thc202 has quit [Ping timeout: 255 seconds]
spietz has quit [Ping timeout: 240 seconds]
vidbina has quit [Ping timeout: 248 seconds]
<dtz> jabranham: I'm not sure, but I have 'programs.ssh.startAgent = true;'
<dtz> not sure re:gnupg
bfrog_ is now known as submersive
<dtz> oh, reading doc for option you set... o_O
<dtz> nevermind what I said re:startAgent, don't know sorry :).
nithor has quit [Ping timeout: 276 seconds]
ryantrinkle has joined #nixos
vidbina has joined #nixos
<dtz> sometimes installing to a user profile help things that are supposed to launch user services?
<dtz> not saying it's not a bug, but you know :)
<globin> jabranham: can you check if it is running?
<globin> ps aux | grep gpg
<globin> robin 20319 0.0 0.0 386564 3852 ? SLsl Jan09 0:06 /nix/store/l800niv6i4wyjyd44a4cz5lkv5fh4i3y-gnupg-2.2.3/bin/gpg-agent --supervised
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mogorman opened pull request #33730: xscreensaver: 5.37 -> 5.38 (master...xscreensaver) https://git.io/vNO2x
NixOS_GitHub has left #nixos [#nixos]
<jabranham> yeah, appears to be
hellrazor has quit [Ping timeout: 276 seconds]
erasmas has quit [Quit: leaving]
<jabranham> ah, I think I figured it out. I had some dotfiles from a previous linux distro copied over that nix apparently doesn't like
nithor has joined #nixos
<jabranham> now the ssh part is working but it still won't do the gpg part. It insists that the secret key doesn't exist despite listing it when I do gpg --list-secret-keys
<jabranham> ugh
<Ralith> anyone have any insight on managing nix packages in source repos when you have a diamond-shaped dependency graph between packages? My original plan was to use submodules, but duplicate submodules is obviously immensely undesirable
nuncanada has quit [Quit: Leaving]
<Ralith> I feel like nix(pkgs) ultimately really wants your package definitions to be stored separately from your source code, which feels unfortunate
<gchristensen> that is sort of a problem with all tools, diamonds are hard
<gchristensen> oops,
goibhniu has quit [Ping timeout: 268 seconds]
lezed1 has quit [Quit: Connection closed for inactivity]
nfeaokfn has joined #nixos
bennofs has joined #nixos
alexteves has quit [Ping timeout: 256 seconds]
<Ralith> it's not a problem for nixpkgs when used conventionally, clearly
johnsonav has joined #nixos
<gchristensen> nixpkgs doesn't contain much actual software
{^_^} has quit [Remote host closed the connection]
<Ralith> I feel like it's extremely natural to want your nix package definition in-tree wrt. your source code, so you can adjust dependencies, build methods, etc. in the same commit that makes those adjustment necessaries
<Ralith> am I crazy?
{^_^} has joined #nixos
the_vigilante has joined #nixos
the_vigilante has left #nixos [#nixos]
bennofs has quit [Ping timeout: 276 seconds]
<gchristensen> I agreee
sary has quit [Ping timeout: 256 seconds]
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
Acou_Bass has joined #nixos
nithor has quit [Ping timeout: 276 seconds]
Lisanna has joined #nixos
sary has joined #nixos
alexteves has joined #nixos
coot__ has quit [Quit: coot__]
<Lisanna> Can local paths be passed with --arg to things like nix-build (i.e., not strings)? Does this work with remote building?
<Lisanna> e.g. nix-build -A blah --arg src ./blah-src
yegle has joined #nixos
ryanartecona has joined #nixos
sary has quit [Ping timeout: 256 seconds]
nithor has joined #nixos
sary has joined #nixos
jb55 has quit [Ping timeout: 240 seconds]
ryanartecona has quit [Ping timeout: 248 seconds]
la_putin has joined #nixos
coot__ has joined #nixos
el_putin has quit [Ping timeout: 276 seconds]
coot___ has joined #nixos
ryanartecona has joined #nixos
<Lisanna> Answer: yes, local paths can be passed with --arg. I'm going to assume that this "just works" with remote builds
hamishmack has quit [Quit: hamishmack]
coot__ has quit [Ping timeout: 240 seconds]
hamishmack has joined #nixos
<Lisanna> since it should be analogous to the expression itself containing a local path, which plenty of things do
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/f75b9b02ec2 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [Client Quit]
sary has quit [Ping timeout: 256 seconds]
vidbina has quit [Ping timeout: 260 seconds]
<globin> Lisanna: yes, essentially, the local path simply is a fixed-output derivation :)
hellrazor has joined #nixos
<Lisanna> globin yeah, makes sense
afmodf has joined #nixos
<afmodf> What is the problem with my configuration, https://pastebin.com/VvdP8cE4, that is causing this error https://pastebin.com/5EzQ1a7C
<gchristensen> afmodf: the } on line 5 should be at the end of the file
sary has joined #nixos
<afmodf> gchristensen: I have a new error now
<afmodf> error: syntax error, unexpected $end, expecting ';', at /etc/nixos/configuration.nix:18:2 (use ‘--show-trace’ to show detailed location information)
<gchristensen> ok can you paste your now-current config?
<globin> afmodf: fixed version: http://nixpaste.lbr.uno/iJab8hQE?nix
<globin> afmodf: but before you use that what are you trying to achieve?
<afmodf> I'm trying to use xmonad as a window manager
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #33707: nodejs: 9.3.0 -> 9.4.0 (master...nodejs-9.4.0) https://git.io/vNY1m
NixOS_GitHub has left #nixos [#nixos]
<globin> afmodf: while installing?
<afmodf> nixos is already installed
<globin> afmodf: and you have booted the installed nixos?
ma27 has quit [Ping timeout: 240 seconds]
<afmodf> I just appended the xserver onto the original configuration
<afmodf> yes
<globin> afmodf: because that looks like the configuration of the installation image, and not the installed system
<afmodf> i ran nixos-install
<afmodf> and rebooted
<globin> afmodf: as in it looks as if you're trying to edit /etc/nixos/configuration.nix during installation (not /mnt/etc/nixos/configuration.nix)
<globin> afmodf: you are sure you haven't booted the installer again? :)
<afmodf> i logged in using the password i set on the install
<afmodf> i think
<afmodf> this is on a virtual machine
<globin> afmodf: how did you install nixos? format /dev/sdX -> mount /dev/sdX /mnt -> nixos-generate-config --root /mnt -> edit /mnt/etc/nixos/configuration.nix -> nixos-install
nico202 has quit [Ping timeout: 256 seconds]
<afmodf> yes
<afmodf> then reboot
<globin> afmodf: could you paste the output of `mount` somewhere?
<globin> afmodf: you are definitely still running from the installation media
<afmodf> thats weird
<afmodf> ill reboot
nithor has quit [Ping timeout: 255 seconds]
spietz has joined #nixos
afmodf has quit [Ping timeout: 260 seconds]
Guanin has joined #nixos
Guanin has left #nixos [#nixos]
Guanin has joined #nixos
Guanin has left #nixos [#nixos]
Guanin has joined #nixos
steshaw has quit [Quit: Connection closed for inactivity]
jabranham has quit [Remote host closed the connection]
<Guanin> Hi, what is the best way of opening luks devices and mounting the partition after opening and mounting /? I am asking because I use a keyfile for multiple disks where the luks devices form a raid with mdadm.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vNO6I
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 303621c Robin Gloster: awstats: 7.4 -> 7.7...
dieggsy has joined #nixos
nithor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vNO6C
<NixOS_GitHub> nixpkgs/master 95ea79a adisbladis: Merge pull request #33730 from mogorman/xscreensaver...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 8bc2025 Matthew O'Gorman: xscreensaver: 5.37 -> 5.38
alexteves has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vNO60
<NixOS_GitHub> nixpkgs/master 7f5a859 Peter Hoeg: syncthing: 0.14.42 -> 0.14.43
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 7140c4b Jaakko Luttinen: pythonPackages.salmon: bec795cd -> 3.0.0
<NixOS_GitHub> [nixpkgs] adisbladis pushed 3 new commits to master: https://git.io/vNO62
<NixOS_GitHub> nixpkgs/master 1f2e247 Jaakko Luttinen: pythonPackages.salmon-mail: rename from salmon
<NixOS_GitHub> nixpkgs/master f5e39b2 adisbladis: Merge pull request #33727 from jluttine/update-salmon...
NixOS_GitHub has left #nixos [#nixos]
nyberg has quit [Ping timeout: 240 seconds]
ryanartecona has quit [Quit: ryanartecona]
nithor has quit [Ping timeout: 265 seconds]
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #nixos
{^_^} has joined #nixos
mekeor has quit [Ping timeout: 255 seconds]
Guanin has left #nixos [#nixos]
Guanin_ has joined #nixos
Guanin_ is now known as Guanin
rauno has quit [Ping timeout: 276 seconds]
stephenjudkins has quit [Remote host closed the connection]
nithor has joined #nixos
la_putin has quit [Read error: Connection reset by peer]
hellrazo1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] eqyiel opened pull request #33731: nixos/gnome3: use ibus from i18n.inputMethod (master...gnome3-fix-ibus) https://git.io/vNOiZ
NixOS_GitHub has left #nixos [#nixos]
mbrgm has quit [Ping timeout: 240 seconds]
hellrazor has quit [Ping timeout: 264 seconds]
mbrgm has joined #nixos
pie__ has joined #nixos
hellrazo1 has quit [Ping timeout: 260 seconds]
<adisbladis> qmm: haskell.compiler.ghcjs
<adisbladis> Though you probably want to use "nix-shell -p haskell.compiler.ghcjs" for compilers and the like
pie_ has quit [Ping timeout: 265 seconds]
jb55 has joined #nixos
jb55 has quit [Client Quit]
jb55 has joined #nixos
<catern> hmm
<catern> I have a Nix expression that builds a tarball which is useful for deploying Nix, I wonder if it makes sense to upstream
la_putin has joined #nixos
dag has joined #nixos
dag is now known as Guest77289
Supersonic112 has quit [Disconnected by services]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
dag__ has quit [Ping timeout: 260 seconds]
<dhess> Sonarpulse: I am going to do those cross-GHC ARM fixes now
pjan_ has quit [Read error: Connection reset by peer]
<dhess> hopefully it won't change the evaluation on native and it will just work basically instantly.
<catern> is there a Nixpkgs helper for building self-extracting tarballs?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #33721: datadiff: don't restrict to python2 (master...datadiff_python3) https://git.io/vNOq8
NixOS_GitHub has left #nixos [#nixos]
dieggsy has quit [Ping timeout: 276 seconds]
rauno has joined #nixos
<qmm> adisbladis: how might i find out more information about items in haskell.compiler? i would like to discover this on my own than always relying on IRC. you all are really fantastic, but it would be nice to do this myself :)
<qmm> error: selector ‘haskell.compiler.ghcjs’ matches no derivations
rardiol1 has left #nixos [#nixos]
earldouglas has quit [Ping timeout: 276 seconds]
earldouglas has joined #nixos
earldouglas is now known as Guest1620
<qmm> nix-shell -p haskell.compiler.ghcjs seems to work, but i've never understood the appeal of nix-shell. i'm not opposed to it by any means. can you add all your dependencies within a default.nix and then open a shell with all those dependencies? if so, that could present an alternative to docker or vagrant environments
<gchristensen> you can and it doese
<qmm> attention grabbed
<qmm> that is very appealing
<gchristensen> :)
<adisbladis> qmm: We fairly recently had a PR to make it slightly less verbose and more elegant to make such files: https://github.com/NixOS/nixpkgs/pull/30975
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] kamilchm opened pull request #33732: ponyc: FIX $CC undefined, using gcc as the linker (master...ponyc) https://git.io/vNOXn
NixOS_GitHub has left #nixos [#nixos]
xcmw has joined #nixos
<qmm> nix-shell -p haskell.compiler.ghcjs almost worked: https://gist.github.com/qmmdb/3bb39f0b78a9c5da1916172ececb86fd
<qmm> maybe i should put this in #nix-darwin
el_putin has joined #nixos
atrx has joined #nixos
la_putin has quit [Ping timeout: 276 seconds]
rauno has quit [Ping timeout: 276 seconds]
<Aleksejs> Hello, I still have a problem with passing fastcgi_params to phpfpm. What I tried to do: tried to add phpOptions = ''cgi.fix_pathinfo=0'', but this does not appear in php.ini file; tried to add php_value[cgi.fix_pathinfo] = 0 to poolConfig - it appears in file but ignored by php. When I don't provide fastcgi_params php works. But when I provide them it just does nothing and doesn't trigger any error
<Aleksejs> I googled that there was a bug - phpOptions were ignored - but it says it was fixed in 17.03. Is it possible that it was reintroduced?
spietz has quit [Ping timeout: 248 seconds]
<catern> yes, there is a script packaged in nixpkgs for making self-extracting tarballs: makeself
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vNO1s
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 86693dd Jan Tojnar: phpPackages.php-cs-fixer: 2.9.0 → 2.10.0
<el_putin> o.o
Alisa21 has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nfeaokfn has quit [Quit: Page closed]
dax has joined #nixos
orivej has joined #nixos
Alisa21 has quit [Quit: Page closed]
spietz has joined #nixos
dax has left #nixos [#nixos]
nix-gsc-io`bot has joined #nixos
atrx_ has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/c6110153df7 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/d2c9261d56b (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [Client Quit]
contrapumpkin has joined #nixos
rauno has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg closed pull request #33144: Update supervise, supervise_api (master...master) https://git.io/vbFp5
NixOS_GitHub has left #nixos [#nixos]
atrx has quit [Ping timeout: 265 seconds]
jb55 has quit [Ping timeout: 264 seconds]
rcshm has quit [Ping timeout: 264 seconds]
mrkgnao has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
mkoenig has quit [Ping timeout: 268 seconds]
mkoenig has joined #nixos
rauno has quit [Ping timeout: 268 seconds]
jb55 has joined #nixos
<catern> hmm
<catern> should I unpack the Nix bootstrap tarball directly from disk, into the Nix store?
<catern> that is something I can do
<catern> given the characteristics of my tweaked bootstrap tarball
<catern> oh hmm no I can't
<catern> I need the .reginfo inside
hamishmack has quit [Quit: hamishmack]
hamishmack has joined #nixos
hamishmack has quit [Client Quit]
contrapumpkin has quit [Quit: Textual IRC Client: www.textualapp.com]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vNODC
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 15b1432 adisbladis: libvorbis: Fix CVE-2017-14160, CVE-2017-14632 & CVE-2017-14633
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/release-17.09 b9bbd03 adisbladis: libvorbis: Fix CVE-2017-14160, CVE-2017-14632 & CVE-2017-14633...
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to release-17.09: https://git.io/vNODg
NixOS_GitHub has left #nixos [#nixos]
deepfire has quit [Ping timeout: 248 seconds]
<catern> is there a way to determine the Nix prefix that I am building with, in Nixpkgs?
schoppenhauer has quit [Ping timeout: 260 seconds]
atrx has joined #nixos
schoppenhauer has joined #nixos
orivej has joined #nixos
atrx_ has quit [Ping timeout: 276 seconds]
coot___ has quit [Ping timeout: 240 seconds]
rauno has joined #nixos
marusich has joined #nixos
babyflakes has quit [Quit: Connection closed for inactivity]
klntsky has quit [Ping timeout: 272 seconds]
orivej has quit [Read error: Connection reset by peer]
boxofrox has quit [Ping timeout: 272 seconds]
<fearlessKim[m]> catern: $out ?
<fearlessKim[m]> I see that stdenv.lib.closePropagation is deprecated, how should I go about replacing it ?
boxofrox has joined #nixos
hamishmack has joined #nixos
spietz has quit [Ping timeout: 248 seconds]
<benley> any emacs folks around to sanity check a elisp thing for me? https://github.com/travisbhartwell/nix-emacs/pull/45/files <--- literally the first thing I have ever done with elisp
<catern> benley: seems fine to me, though you don't have to do 'shell-quote-argument, you can just do shell-quote-argument
<benley> ah, k
<benley> thanks
<benley> are you sure? I get a warning about referencing it as a free variable when I remove the quote
orivej has joined #nixos
<benley> I guess that's just a linter warning.
<catern> I think I'm sure? I guess you could ask in #emacs, I don't quite remember
dfsf has joined #nixos
<dfsf> I have a base installation of NixOS in a virtualbox with the default configuration.nix
<dfsf> How can I use xmonad instead of KDE
<dfsf> Everything I
<dfsf> *Everything I've tried fucks up the installation
<dfsf> This is my current configuration.nix https://pastebin.com/nqhXTHvb
orivej has quit [Ping timeout: 248 seconds]
<benley> Do you want to keep KDE/plasma around and add xmonad as the window manager? Or get rid of KDE and just use xmonad?
<benley> in either case you'll want to set services.xserver.windowManager.xmonad.enable = true;
<benley> and probably also services.xserver.windowManager.xmonad.enableContribAndExtras = true;
<benley> and ... that's about all?
<mog> yegortimoshenko, let me know if you hit any road blocks
<dfsf> benley: I'll try that
el_putin has quit [Read error: Connection reset by peer]
el_putin has joined #nixos
ma27 has joined #nixos
orivej has joined #nixos
gspia has quit [Quit: Leaving]
gspia has joined #nixos
RayNbow`TU has quit [Ping timeout: 255 seconds]
danl1240 has joined #nixos
Guanin has quit [Ping timeout: 248 seconds]
_alice_ has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
<dfsf> I just started up xmonad but there are no configurations and I can't open a terminal
<dfsf> Is there a way I can open a terminal before logging in
<_alice_> Hey all, I can't update discord to 0.0.4 even though it's updated in the repos, and when i list packages and grep for it it's still 0.0.3
<_alice_> Why is my pc lagging behind / how do I fix it?
<hyper_ch> _alice_: how did you try update?
<_alice_> nix-env -u discord
<hyper_ch> I don't use nix-env... so no idea
<_alice_> nix-channel --upgrade (maybe got that wrong, did it right in my terminal)
<_alice_> oh, is there an alternative?
<hyper_ch> I use nixos, I install all the stuff globally through the configuration.nix and then I run nixos-rebuild boot --upgrade
<_alice_> Ah, makes sense. I'd do that but a rebuild is so much less convenient
ma27 has quit [Ping timeout: 276 seconds]
Guanin has joined #nixos
<hyper_ch> why? it only rebuilds updated stuff
<_alice_> Mostly because a lot of the time it's just "oh i need a new package" nix-env -i, otherwise I gotta go launch emacs and edit my package list
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] MP2E pushed 1 new commit to master: https://git.io/vNOQo
<NixOS_GitHub> nixpkgs/master 8753b10 Will Dietz: discord: fix "corrupt install" warnings, misc cleanup...
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] MP2E closed pull request #33666: discord: fix "corrupt install" warnings, misc cleanup (master...fix/discord-looks-like-corrupt) https://git.io/vNq7M
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] MP2E closed pull request #33585: discord: fix desktop notifications not appearing (master...patch-1) https://git.io/vNIIb
NixOS_GitHub has left #nixos [#nixos]
nyberg has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dhess opened pull request #33733: ghc, haskell-modules: ARM cross build fixes. (master...arm-cross-fixes) https://git.io/vNOQN
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] MP2E pushed 2 new commits to release-17.09: https://git.io/vNOQp
<NixOS_GitHub> nixpkgs/release-17.09 60f71d8 Will Dietz: discord: fix "corrupt install" warnings, misc cleanup...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/release-17.09 eae2506 Cray Elliott: discord: 0.0.3 -> 0.0.4...
spietz has joined #nixos
<MP2E> I'd definitely recommend updating the discord package as soon as the changes hit the release and unstable repos, the new commit by dtzWill fixes it up quite a bit
<MP2E> namely, notifications work now and there's no longer that annoying bar telling you discord is corrupt :P
<_alice_> THANK GOD!
<_alice_> anyone figured out how to install betterdiscord?
<_alice_> Also, my issue right now is I can't launch it at all becuase it wants me to update to 0.0.4
<_alice_> So that's why it's annoying atm
<_alice_> any way I can force nix to get the updated package?
<MP2E> this is a little overkill perhaps, but you could clone the nixpkgs repo and use it for one nix-env call with 'nix-env -f ~/nixpkgs -iA discord'
<MP2E> then nix-env will evaluate the nixpkgs tree you specify instead of the one in your channels
<_alice_> that would likely work tbh but my question is more "how tf do i make it see up to date packages?!?!?"
<_alice_> Because I just realized I don't know how to make sure I'm not installing old shit and that's probably an issue
<MP2E> well we gotta wait for hydra to build the new commits, run some tests, and if they pass the channels get pushed forward
<MP2E> and then you can update your channels
<_alice_> nix-channel --update I presume?
<MP2E> yeah
<_alice_> or along those lines
<_alice_> need I pass parameters?
<MP2E> that should work fine, it will update all the channels you currently have, the optional parameters list is in case you just want to update one channel and not another
<_alice_> Understood, you guys are the best help tbh doing gods work
asuryawanshi has joined #nixos
<_alice_> Since you seem to have some godly nix magic under your sleeves, happen to know if there's a way to make Python's pip function like it would anywhere? I understand nix wants me to make an environment and do things its way, but for small python stuff it's so overbearing
<_alice_> globally installing things like matplotlib, scikitlearn, etc would be so nice @_@
<MP2E> I don't know python unfortunately but perhaps what I do for Haskell could help. What I do is make a global environment in my configuration.nix that has some nice packages that I always want, for instance, so my text editor can find haskell tools I need like hlint
<MP2E> and then for any packages specific to a package I want to develop on, I make a shell.nix file for it
<_alice_> Oh for my haskell environment everyhting is all fine
<MP2E> at first if it seems like too small of a task to make a full shell.nix file, can also use nix-shell and add packages you need directly as command line arguments
<MP2E> ah hmm
<_alice_> What's weird is haskell was actually piss easy, I remember like two years ago trying to read lyah thinking it was some magic voodoo language
<_alice_> I really just want some helpful python packages
<Havvy> You can make Haskell be complicated, and a lot of people do.
<_alice_> That's whack, the way I see it it's simple and elegant on purpose
<srhb> _alice_: If you just want a (one) global environment, pythonWithPackages may help
marusich has quit [Quit: Leaving]
<srhb> Er, python.withPackages I think it is
<_alice_> That's actually all I want thanks a ton
<srhb> (The overhead of turning that into a bunch of shell aliases if you want multiple, in nix shells, is very low too)
<_alice_> Always good to have options moving forward
spietz has quit [Ping timeout: 248 seconds]
<srhb> nix-shell -p 'python.withPackages (ps: with ps; [ matplotlib ])'
<srhb> :)
<srhb> And yes.
<benley> dfsf: you can put stuff in ~/.xprofile and it will be run before your window manager starts up
rauno has quit [Ping timeout: 240 seconds]
<benley> dfsf: also with the default xmonad config, try alt-shift-enter or win-shift-enter and it might open an xterm for you
asuryawanshi has quit [Remote host closed the connection]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/b9bbd039fa1 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [Client Quit]
reinzelmann has joined #nixos
simukis has joined #nixos
babyflakes has joined #nixos
asuryawanshi has joined #nixos
goodwill has quit [Read error: Connection reset by peer]
goodwill has joined #nixos
MercurialAlchemi has joined #nixos
asuryawanshi has quit [Ping timeout: 240 seconds]
a6a3uh has joined #nixos
<Isorkin> Please help to fix error build - http://pastebin.ru/3Cvc3cU2 Config - http://pastebin.ru/bwV9KfC9
klntsky has joined #nixos
spietz has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
FRidh has joined #nixos
MP2E has quit [Remote host closed the connection]
leat has quit [Quit: WeeChat 1.9.1]
dbe_ has joined #nixos
mrkgnao has quit [Ping timeout: 276 seconds]
a6a3uh has quit [Quit: Bye]
leothrix has quit [Quit: ZNC 1.6.5 - http://znc.in]
leothrix has joined #nixos
orivej has joined #nixos
orivej has quit [Ping timeout: 252 seconds]
alex`` has joined #nixos
danl1240 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
alex`` has quit [Quit: WeeChat 1.9]
dbe_ has quit [Ping timeout: 240 seconds]
jmiven has quit [Quit: co'o]
jmiven has joined #nixos
leat has joined #nixos
orivej has joined #nixos
orivej has quit [Ping timeout: 248 seconds]
rauno has joined #nixos
periklis has joined #nixos
ssmike has joined #nixos
orivej has joined #nixos
DerGuteMoritz has joined #nixos
<viric> mh bash commands fully in parentheses are not stored in history. Is this normal?
nix-gsc-io`bot has joined #nixos
<viric> ( echo hello)
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/60f71d83dae (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [Client Quit]
<viric> wait, starting with space parentheses
aloiscochard has joined #nixos
rogue_koder has quit [Quit: Konversation terminated!]
<fearlessKim[m]> so I now have a luarocks2nix capable of generating lua-generated-packages.nix and a lua builder capable of building lua5.2 environments \o/ (like python does: nix-shell -p 'lua5_2.withPackages(ps: [ ps.busted])' -I nixpkgs=$HOME/nixpkgs2)
<fearlessKim[m]> hopefully I can run neovim tests this evening after some tweaks
ThatDocsLady has joined #nixos
raving has joined #nixos
<raving> Is it intended behavior that builtins.typeOf (builtins.toPath "/") == "string" ?
submersive has quit [Ping timeout: 276 seconds]
alex`` has joined #nixos
hiroshi has quit [Ping timeout: 264 seconds]
<srhb> raving: (Quite confusing)
Arcaelyx_ has joined #nixos
Arcaelyx has quit [Ping timeout: 252 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] DerGuteMoritz opened pull request #33734: stumpwm: Work around dependency load errors during build (master...fix-stumpwm) https://git.io/vNOAN
NixOS_GitHub has left #nixos [#nixos]
a6a3uh has joined #nixos
submersive has joined #nixos
Turion has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 968fc0b Bas van Dijk: ogre: 1.10.10 -> 1.10.11
<NixOS_GitHub> [nixpkgs] orivej pushed 14 new commits to master: https://git.io/vNOAp
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master a1c21ef Bas van Dijk: ogre: package old version 1.9.1 for mygui, rigsofrods, and stuntrally
<NixOS_GitHub> nixpkgs/master 4a94001 Bas van Dijk: ogre: 1.9 -> 1.10.10
hotfuzz has joined #nixos
civodul has joined #nixos
hotfuzz_ has quit [Ping timeout: 264 seconds]
<raving> srhb: thanks, that really is confusing ;-)
<dhess> $ cabal2nix cabal://mtl
<dhess> cabal2nix: NoHackageTarballFound
<dhess>
<dhess> anyone seen that also?
<srhb> dhess: Yes, the error message regressed recently. cabal update
<srhb> I'm pretty sure it used to tell you to do that instead of just printing a constructor.
<dhess> srhb: huh I wouldn't have thought I would need to cabal update
<srhb> It uses that tarball in ~/.cabal
<srhb> It's not a snapshot in any way
<dhess> srhb: that worked, thank you!
<srhb> You're welcome. :)
a6a3uh has quit [Quit: Bye]
fuyuuri has joined #nixos
oahong has quit [Quit: 暂离]
<viric> all clear, I had HISTCONTROL=ignoreboth. It was the space thing
markus1199 has joined #nixos
oahong has joined #nixos
markus1189 has quit [Ping timeout: 276 seconds]
peacememories has joined #nixos
pjan_ has joined #nixos
Tucky has joined #nixos
hiroshi has joined #nixos
<dhess> OK folks, I think ghc is good to go on armv7l-linux now. If you're willing to use ghc802, anyway.
a6a3uh has joined #nixos
<dhess> ghc822 looks like it has an upstream issue on armv7l. mitchty is filing a bug.
<dhess> I will ask peti if he's willing to make ghc802 the default haskell on armv7l-linux.
jensens has joined #nixos
jb55 has quit [Ping timeout: 276 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dhess opened pull request #33735: haskell-modules: swagger2 still needs dontHaddock on armv7l-linux. (master...swagger2-armv7l) https://git.io/vNOh1
NixOS_GitHub has left #nixos [#nixos]
verite has quit [Ping timeout: 256 seconds]
earl_fas has joined #nixos
Itkovian has joined #nixos
makefu has quit [Quit: WeeChat 1.9.1]
sigmundv__ has joined #nixos
nico202 has joined #nixos
amir has quit [Ping timeout: 240 seconds]
a6a3uh has quit [Quit: Bye]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vN3eI
<NixOS_GitHub> nixpkgs/master e056315 Luz: librepcb-unstable: init at 2017-12-29 (#33630)
a6a3uh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 4 new commits to master: https://git.io/vN3en
<NixOS_GitHub> nixpkgs/master f1faffa adisbladis: pythonPackages.botocore: 1.8.21 -> 1.8.26
<NixOS_GitHub> nixpkgs/master 10791c4 adisbladis: haveged: 1.9.1 -> 1.9.2
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 663618e adisbladis: awscli: 1.14.17 -> 1.14.22
<srhb> Are Nix attrsets ordered?
peacememories has quit [Quit: Textual IRC Client: www.textualapp.com]
thc202 has joined #nixos
goibhniu has joined #nixos
<silver_hook> Is there a reason why Akonadi is missing Akonadi Console?
orivej has quit [Ping timeout: 276 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 26ddcd5 adisbladis: calibre: 3.14.0 -> 3.15.0
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] adisbladis pushed 1 new commit to master: https://git.io/vN3eP
a6a3uh has quit [Quit: Bye]
atrx has quit [Read error: Connection reset by peer]
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] adisbladis pushed 1 new commit to master: https://git.io/vN3vC
<NixOS_GitHub> nixpkgs/master d491769 adisbladis: faad2: 2.7 -> 2.8.8
amir has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #33736: materia-theme: 20171213 -> 20180110 (master...upd.materia) https://git.io/vN3vR
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/staging 28a7865 adisbladis: e2fsprogs: 1.43.7 -> 1.43.8
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] adisbladis pushed 1 new commit to staging: https://git.io/vN3v0
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 3 new commits to master: https://git.io/vN3v6
<NixOS_GitHub> nixpkgs/master 18ca43f Michael Raskin: Merge pull request #33612 from fare-patches/master...
<NixOS_GitHub> nixpkgs/master 699c8cc Francois-Rene Rideau: gerbil: 0.12-DEV-836-gcde6802 -> 0.12-DEV-1030-gbbed3bc
<NixOS_GitHub> nixpkgs/master aa87655 Francois-Rene Rideau: gambit: 4.8.8-415-g29ed48bb -> 4.8.8-427-g37b111a5
NixOS_GitHub has left #nixos [#nixos]
<Aleksejs> Hello, I'm sure there's a bug with phpOptions. Can someone please check? http://vpaste.net/mmp6Q
johann__ has joined #nixos
orivej has joined #nixos
asuryawanshi has joined #nixos
dfsf has quit [Quit: Page closed]
longrin1 has joined #nixos
hiroshi has quit [Ping timeout: 264 seconds]
ThatDocsLady has quit [Remote host closed the connection]
fuyuuri has quit [Ping timeout: 240 seconds]
ThatDocsLady has joined #nixos
Arcaelyx_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FRidh has quit [Ping timeout: 264 seconds]
FRidh has joined #nixos
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/b9bbd039fa1 (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [Client Quit]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
longrin1 has quit [Ping timeout: 255 seconds]
__Sander__ has joined #nixos
rauno has quit [Remote host closed the connection]
johann__ has quit [Quit: Leaving.]
a6a3uh has joined #nixos
<LnL> srhb: depends on what you mean
johann__ has joined #nixos
hiroshi has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
asuryawanshi has quit [Ping timeout: 256 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix opened pull request #33737: gzip: 1.8 -> 1.9 (staging...gzip_1_9) https://git.io/vN3Ux
NixOS_GitHub has left #nixos [#nixos]
tmaekawa has joined #nixos
MercurialAlchemi has quit [Ping timeout: 265 seconds]
MercurialAlchemi has joined #nixos
nico202 has quit [Ping timeout: 276 seconds]
<symphorien> out of curiosity, why did nixos-unstable revert to "old-style" network interface names ? (wlan0, eth0) etc.
<srhb> LnL: After thinking about it, I don't know what I mean. :-)
<srhb> symphorien: Since when?
<srhb> I don't think I've noticed that.
a6a3uh has quit [Ping timeout: 252 seconds]
<Li[m]> iv enabled grub zfs support and grub-probe still wont recognize it
<etu> symphorien: kernel version?
<LnL> srhb: something like this will be ordered mapAttrsToList (n: v: n) { a = 42; b = 42; } # => [ "a" "b" ]
<symphorien> I did a nixos-rebuild boot --upgrade yesterday, and when rebooting today I had old style nic name
<srhb> LnL: Right, because attrsToList promises to sort them by name.
<symphorien> etu: 4.9.75
<adisbladis> Oh yeah I spotted that too.. On 4.14
<adisbladis> Completely forgot about it
* etu haven't noticed that on 4.14.12
<srhb> LnL: I guess I was wondering because nix-instantiate --eval --expr reorders attributes.
<srhb> Just rebooted on 4.14.12 from 4.14.11 and yes, the interface names are now not deterministic. So I guess it's not *just* kernel version
periklis has quit [Ping timeout: 268 seconds]
<srhb> And networking.usePredictableInterfaceNames is still true, so I guess it's a bug.
<alp> symphorien, running 4.9.75 here too, but I have the "modern" interface names
<symphorien> hum
<srhb> Is someone filing an issue?
johann__ has quit [Quit: Leaving.]
<therp> srhb: found that yesterday as well
orivej has joined #nixos
<srhb> I'll file it then
<therp> symphorien: I have the same issue.
<therp> srhb: Thank you! btw I am on 4.14.13, and I skipped over the 4.14.12->4.14.13 changelog where nothing sticks out. I don't think that it's the kernel causing this
<symphorien> I have usePreditableInterfaceNames = true according to nixos-option
<symphorien> this indeed seems like a bug
<symphorien> i'll open a issue
<symphorien> :)
johann__ has joined #nixos
johann__ has quit [Client Quit]
alexpx has joined #nixos
<alexpx> hello, i read https://nixos.wiki/wiki/Packaging_Binaries but I can't find nix-locate
<Li[m]> why wouldnt grub-proble recognize zfs? looks like nixpkgs builds libzfs support by default anyway
<srhb> alexpx: It's in nix-index I think
<alexpx> ok thx
<alexpx> Just read:)
<adisbladis> Mic92: ^
patrl has joined #nixos
patrl has quit [Client Quit]
<hyper_ch> hmmm, how do I generate a systemd-bootchart on nixos?
<Mic92> adisbladis: well, when this option is enabled you get new interface names as documented
ckauhaus has joined #nixos
knupfer has joined #nixos
<Mic92> one need `networking.usePredictableInterfaceNames = false;` to the eth0, eth1 etc
<Mic92> *to get
<srhb> Mic92: That's not the case.
<adisbladis> Mic92: No thats a regression.
<srhb> Mic92: if usePredictableInterfaceNames does anything now, it's doing the opposite of what it used to (and the docs say)
<Mic92> srhb: does /etc/udev/rules.d/80-net-setup-link.rules exists on your system?
<srhb> Mic92: Yep.
<Mic92> srhb: this file should not exists
<Mic92> but this is unrelated to my commit
<srhb> Fun!
<srhb> It's not in the nix store either
<Mic92> can you double check that usePredictableInterfaceNames is not set to true somewhere else?
alexpx has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
<srhb> Mic92: It _is_ set to true, but it doesn't work
<srhb> Gotta go, lunch
<adisbladis> Mic92: I just checked and same behaviour here.
<Mic92> srhb: it should NOT be set to rue
<therp> Mic92: I am confused. I want predictable interface names, hence I set it to true. Also I had them effectively couple of days ago, before this commit hit the repo, which changed it to unpredictable ones (eth0, ...) again
<therp> Mic92: so to me, this looks like a regression. (Unfortunately, my udev debugging skills are quite limitted.)
<Mic92> therp: I cannot reproduce this on my system. When the file exists, new interfaces should be renamed to wlp3s0 and so on
<Mic92> I tested this by rmmod $ sudo rmmod iwlmvm && sudo modprobe iwlmvm
<hyper_ch> Mic92: do you know where/when the zfs root pool is being imported? I'm still trying to write a script that will set a mirror disk offline before the computer gets turned off
<Mic92> (iwlmvm is my wifi driver)
<adisbladis> Mic92: And you made sure the udev rules were reloaded?
<therp> Mic92: /etc/udev/rules.d/80-net-setup-link.rules exists and points to /nix/store/ih7k4hfabs55xim8jx9qzrcgi7vbgchk-udev-rules
aarvar has quit [Ping timeout: 246 seconds]
makefu has joined #nixos
TweyII has joined #nixos
<therp> ``IMPORT{builtin}="net_setup_link"'' seems to not do what we want
knupfer has quit [Ping timeout: 264 seconds]
hgdcs55322 has joined #nixos
<therp> "udevadm test-builtin net_setup_link /sys/class/net/eth0" doesn't give me an interface name
<therp> The only property that this builtin gets to set is "ID_NET_DRIVER=igb"
<therp> IMPORT{builtin}="net_id" would give me the correct interface name.
ckauhaus_ has joined #nixos
lexsomething has joined #nixos
ckauhaus has quit [Quit: Leaving.]
Shados has quit [Remote host closed the connection]
ckauhaus_ has left #nixos [#nixos]
mkoenig has quit [Ping timeout: 276 seconds]
ckauhaus has joined #nixos
earl_fas has quit [Quit: Leaving]
Shados has joined #nixos
mkoenig has joined #nixos
<Mic92> therp: it seems that this only works correctly in combination with networkd https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
<Mic92> they disable predictable network interfaces by: $ ln -s /dev/null /etc/systemd/network/99-default.link
<Mic92> so we probably need to live with the old broken udev rule
<Mic92> and maybe only enable the new one, when networkd is enabled
ssmike has quit [Ping timeout: 255 seconds]
<lexsomething> Guys, just want to you to know, I solved my 'increased UI after gpu driver upgrade' problem, by reducing DPI from hardware 141 back to 96. thnx 4 advices. :P https://www.youtube.com/watch?v=zYvTBWZ7Eug
<therp> Mic92: I don't see how Line 11 in this udev rule makes any sense https://pastebin.com/ABMv4Mk4 . I'd argue that the udev rule misses IMPORT{builtin}="net_id". I don't see how adding another userland demon could fix the $env{ID_NET_NAME} variable
coot___ has joined #nixos
<Mic92> therp: networkd renames interfaces on its own behalf otherwise
<therp> Sorry gotta go for food. Thanks for your efforts, Mic92.
ckauhaus has quit []
<therp> Mic92: I was suspecting that, but still then the renaming here doesn't make sense as ENV{ID_NET_NAME}!="" is almost guaranteed to be "".
hamishmack_ has joined #nixos
ckauhaus has joined #nixos
<therp> Anyway.. details..
hamishmack has quit [Read error: Connection reset by peer]
hamishmack_ is now known as hamishmack
Mateon1 has quit [Ping timeout: 252 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vN3qU
<NixOS_GitHub> nixpkgs/master 788c519 Jörg Thalheim: Revert "nixos/udev: fix outdated udev rules for network devices"...
NixOS_GitHub has left #nixos [#nixos]
<Mic92> therp: adisbladis srhb ^ reverted for the moment. This needs more thought
rauno has joined #nixos
lonokhov has joined #nixos
<srhb> Mic92: Thanks for looking into it! :)
ckauhaus has quit []
tmaekawa has quit [Quit: tmaekawa]
Mateon2 has joined #nixos
tmaekawa has joined #nixos
tmaekawa has quit [Client Quit]
asuryawanshi has joined #nixos
orivej has quit [Read error: Connection reset by peer]
asuryawanshi has quit [Remote host closed the connection]
orivej has joined #nixos
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
raynold has quit [Quit: Connection closed for inactivity]
asuryawa_ has joined #nixos
TweyII has quit [Remote host closed the connection]
asuryawa_ has quit [Remote host closed the connection]
asuryawanshi has quit [Ping timeout: 248 seconds]
TweyII has joined #nixos
asuryawanshi has joined #nixos
TweyII is now known as Guest44147
otti has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti closed pull request #33735: haskell-modules: swagger2 still needs dontHaddock on armv7l-linux. (master...swagger2-armv7l) https://git.io/vNOh1
NixOS_GitHub has left #nixos [#nixos]
<joko> Is there any equivalent of fetchurl for ssh?
orivej has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 255 seconds]
swayf has joined #nixos
<gchristensen> joko: probably not, because it is unsafe to let the nix build users have SSH credentials
buovjaga has joined #nixos
<makefu> joko: check out fetchgit
<Li[m]> gchristensen: potentially. depends on the SSH crdential
<buovjaga> the width of tables in the wiki needs to have a maximum: https://nixos.wiki/wiki/Cheatsheet I tried fiddling with the CSS, but could not figure out why the table width is expanding like that. Normally it would just conform to its container width.
lexsomething has quit [Quit: list]
steshaw has joined #nixos
<joko> Li[m]: I don't mind using fetchGit, but if I understood well, that would require Nix 1.12, right?
oscarduignan has quit [Read error: Connection reset by peer]
sdemos has quit [Read error: Connection reset by peer]
oscarduignan has joined #nixos
sdemos has joined #nixos
zzamboni has joined #nixos
<Li[m]> joko: thats what edolstra said. I havent tried it
<Li[m]> > the resulting lack of laziness may be a problem for some users.
LangeOortjes has quit [Ping timeout: 252 seconds]
orivej has joined #nixos
oida has joined #nixos
LangeOortjes has joined #nixos
temphenk has joined #nixos
zzamboni has quit [Quit: Leaving.]
asuryawanshi has quit [Ping timeout: 240 seconds]
zzamboni has joined #nixos
<temphenk> Is there a way to quickly determine which settings in my configuration file are the culprit of having to compile a package rather using the one from (hydra's?) cache.
<temphenk> Or is bisecting my configuration file the only option?
<temphenk> I'm building from the latest checkout of the master branch
klntsky has quit [Remote host closed the connection]
yegortimoshenko has quit [Remote host closed the connection]
martinklepsch has quit [Ping timeout: 246 seconds]
yegortimoshenko has joined #nixos
klntsky has joined #nixos
lebel has quit [Remote host closed the connection]
zzamboni has quit [Ping timeout: 256 seconds]
lebel has joined #nixos
17WAAJG0C has joined #nixos
<17WAAJG0C> [nixpkgs] andir opened pull request #33739: Apache Spark address CVE-2017-12612 (master...spark) https://git.io/vN33w
17WAAJG0C has left #nixos [#nixos]
<07IACCI4V> [nixpkgs] andir opened pull request #33740: [17.09] Apache Spark address CVE-2017-12612 (release-17.09...17.09/spark) https://git.io/vN33o
07IACCI4V has left #nixos [#nixos]
07IACCI4V has joined #nixos
zzamboni has joined #nixos
deepfire has joined #nixos
oahong has quit [Ping timeout: 256 seconds]
mjvoge02 has quit [Ping timeout: 256 seconds]
hoverbear has quit [Ping timeout: 256 seconds]
ssmike has joined #nixos
justanotheruser has quit [Ping timeout: 256 seconds]
<aminechikhaoui> temphenk: I guess you could add --dry-run which I think should show what is going to be built vs substitued
bgamari has quit [Ping timeout: 256 seconds]
yegortimoshenko has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
oahong has joined #nixos
yegortimoshenko has joined #nixos
zzamboni has quit [Ping timeout: 240 seconds]
bgamari has joined #nixos
user__ has quit [Ping timeout: 260 seconds]
johann__ has joined #nixos
zzamboni has joined #nixos
ertes has joined #nixos
justanotheruser has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
dieggsy has joined #nixos
johann__ has quit [Client Quit]
<temphenk> @aminechikhaoui: Thanks, I now know which derivations are going to be build. But does building derivations also imply compilation?
zzamboni has quit [Ping timeout: 256 seconds]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/e056315a3e7 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<temphenk> I used the dry-build options for nixos-rebuild
nix-gsc-io`bot has quit [Client Quit]
rauno has quit [Ping timeout: 255 seconds]
zzamboni has joined #nixos
rardiol1 has joined #nixos
rauno has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/60f71d83dae (from 6 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [Client Quit]
zzamboni has quit [Ping timeout: 260 seconds]
<michaelpj> temphenk: if you're building off master it's unlikely that you will get *anything* cached. My technique is usually to base my changes off the branch in the `channels` repo corresponding to the channel my machine is on
lebel has quit [Ping timeout: 240 seconds]
<makefu> michaelpj: i do pretty much the same, on top of the channels i also cherry-pick the extra stuff i need for my setup
zzamboni has joined #nixos
klntsky has quit [Ping timeout: 272 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/vN3GQ
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master b5b6656 zimbatm: aws-vault: init at 4.1.0
eoifmom has joined #nixos
<eoifmom> when running "systemctl start display-manager" I get the error "Failed to start display-manager.service: Unit display-manager.service not found."
<eoifmom> has anyone experienced this before
<adisbladis> michaelpj: Thats not true. I run off master and mostly hit the binary cache.
<michaelpj> adisbladis: you are much luckier than I :) once bitten, twice shy...
<aminechikhaoui> temphenk: yeah what michaelpj said :)
<joko> Could anyone explain to me ordering in definitions, e.g. mkBefore and mkAfter? https://github.com/NixOS/nixpkgs/blob/213bd2847bb6590126591435766793df0410b4d1/lib/modules.nix#L499
zzamboni has quit [Quit: Leaving.]
<joko> eoifmom: could you post somewhere your configuration.nix? It appears you don't have a display manager :D
user__ has joined #nixos
<temphenk> Will try to use nixpkgs-channels instead, thanks
<temphenk> Now to clean up the mess I made in git :|
<gchristensen> temphenk: are you using this for NixOS?
<temphenk> yes
<eoifmom> joko: its a bit hard to actually copy the configuration
<gchristensen> !which channel
<eoifmom> but i do have i3 enabled
<gchristensen> temphenk: ^ have you read that?
<joko> eoifmom: do you have lightdm, sddm or another display manager?
<temphenk> I don't understand
<temphenk> !which channel
ckauhaus has joined #nixos
<eoifmom> joko: i have lightdm enabled
<temphenk> A check, its a bot. No I haven't, will do.
zzamboni has joined #nixos
ssmike has quit [Remote host closed the connection]
ssmike has joined #nixos
<adisbladis> michaelpj: Sometimes you do end up rebuilding the world though... I dont really recommend running master to other people.
<elisaado> nyberg: HEY
coot___ has quit [Quit: coot___]
<joko> eoifmom: I don't have any experience with lightdm on NixOS, but a simple enable would suffice, strange
<eoifmom> joko: i tried switching over to xmonad but it wasnt logging in, after switching back to i3 this problem started
<eoifmom> it boots straight into a terminal
<eoifmom> whereas before it would have a working login screen
coot___ has joined #nixos
rauno has quit [Remote host closed the connection]
zzamboni has quit [Quit: Leaving.]
Philonous has quit [Quit: (<<<)]
nico202 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir pushed 1 new commit to release-17.09: https://git.io/vN3nm
<NixOS_GitHub> nixpkgs/release-17.09 d63edb3 Andreas Rammhold: discoard: fix eval on 17.09 broken in 60f71d83
NixOS_GitHub has left #nixos [#nixos]
dieggsy has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
romildo has joined #nixos
<romildo> On unstable NixOS all GTK3 applications is giving the warning Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-cbjLtIjt2o: Connection refused
<romildo> Any clues?
ShalokShalom has joined #nixos
<romildo> I have on configuration.nix: services.gnome3.at-spi2-core.enable = true
ShalokShalom has quit [Remote host closed the connection]
martinklepsch has joined #nixos
raynold has joined #nixos
eoifmom has quit [Quit: Page closed]
YaZko has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/d63edb3571d (from 16 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [Client Quit]
<temphenk> romildo: I had similar problems with gnome3 and other programs that use dbus. For systemd services that do require dbus I use the following in execstart:
<temphenk> 'dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY'.
<temphenk> And I didn't really need gnome3 so I dropped it. Not sure if you need the entire environment or just a few programs/services.
<YaZko> Hello. I have a problem with my nix on Mac Os: I get the following error on most operations: « error: syntax error, unexpected $undefined, expecting IND_STR or DOLLAR_CURLY or IND_STRING_CLOSE, at /nix/store/(…)/gnuplot/default.nix»
<joko> Is there a way to include explicitly a closure in NixOS /nix/store?
<YaZko> Looking around on the net, it seems that it simply is that my nix is too old and some changes are not retrocompatible
<YaZko> But sadly, I get the same error when doing a « nix-env -u nix» :’(
<YaZko> Would anyone know what is my best shot at solving this?
orivej_ has joined #nixos
orivej has quit [Ping timeout: 264 seconds]
<romildo> temphenk, I am not using the GNOME3 desktop, but only some applications, like you.
<romildo> temphenk, where in the configuration does execstart you mentioned go?
<temphenk> systemd.user.services = {
<temphenk> jackdbus = {
<temphenk> description = "Runs jack, and points pulseaudio at it";
<temphenk> serviceConfig = {
<temphenk> Type = "oneshot";
<temphenk> ExecStart = pkgs.writeScript "start_jack.sh" ''
<temphenk> #! ${pkgs.bash}/bin/bash
<temphenk> . ${config.system.build.setEnvironment}
<temphenk> dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY
<temphenk> ${pkgs.jack2Full}/bin/jack_control start
<temphenk> sleep 3 # give some time for sources/sinks to be created
<temphenk> pactl load-module module-jack-sink channels=2
<temphenk> pactl load-module module-jack-source channels=2
<temphenk> pacmd set-default-sink jack_out
<makefu> coooombo breaker
<makefu> temphenk: please use a pastebin service next time :)
<temphenk> tried to do a private message
<makefu> haha okay, no prob
<temphenk> not sure why it didn't work
nmikhailov[m] has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix opened pull request #33742: gdbm: 1.13 -> 1.14 (staging...gdbm_1_14) https://git.io/vN3l3
NixOS_GitHub has left #nixos [#nixos]
Guest1620 has quit [Quit: leaving]
earldouglas has joined #nixos
alex____ has joined #nixos
orivej has joined #nixos
<alex____> hello
freusque has quit [Ping timeout: 246 seconds]
orivej_ has quit [Ping timeout: 268 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vN3lP
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master eb0ecd7 Tim Steinbach: linux-copperhead: 4.14.12.a -> 4.14.13.a
temphenk has quit [Ping timeout: 260 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/release-17.09 01c18ee Andreas Rammhold: linux_hardened_copperhead: 4.14.11a -> 4.14.12a...
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to release-17.09: https://git.io/vN3l9
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/release-17.09 d7ce22e Tim Steinbach: linux-copperhead: 4.14.12.a -> 4.14.13.a...
Neo-- has joined #nixos
freusque has joined #nixos
alexteves_ has joined #nixos
<srhb> anyone have an idea why my nixops virtd deployments might be failing with mknod: /dev/vda1: File exists ?
temphenk has joined #nixos
<ryantrinkle> has anyone tried storing nixops's state in something more distributed than sqlite?
<ryantrinkle> i think i'd (much) prefer if it were in something like git
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 8c1e47a adisbladis: aws-vault: Fix eval
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] adisbladis pushed 1 new commit to master: https://git.io/vN38r
<srhb> ryantrinkle: There are people out there that export it to a file (is it json?) and commit it.
<srhb> ryantrinkle: Using git-crypt around it to make it safeish
<romildo> temphenk, I have opened an issue for it: https://github.com/NixOS/nixpkgs/issues/33744
<aminechikhaoui> srhb: I think I saw it was fixed recently
<ryantrinkle> srhb: yeah, that sounds good
<srhb> ryantrinkle: Maybe is relevant to your interests. :-)
<ryantrinkle> i'm actually not *that* worried about the security aspect, since i would just put the *whole* git repo in an encrypted/secure location
<ryantrinkle> it shouldn't have much in it
<srhb> ryantrinkle: private root keys at least.
<Dezgeg> srhb: I broke it; https://github.com/NixOS/nixops/pull/826 fixes/fixed it; I don't know if it's in a nixops release
<ryantrinkle> srhb: awesome
<temphenk> romildo: do you have gnome3 as desktopmanager enabled? If not did you manually enable dbus?
<srhb> aminechikhaoui, Dezgeg: Thank you! :)
YaZko has quit [Quit: YaZko]
<srhb> ryantrinkle: (I'm actually investigating a completely stripped down version of nixops that's stateless and uses the users' credentials currently. Unfortunately the project is complex enough that I had to start by ripping out all the provisioning, which I guess is why most people use nixops over copy-closure and friends.)
<temphenk> romildo, your description however does fit my experience
<ryantrinkle> ah yeah
<ryantrinkle> we've been using copy-closure at obsidian
ma27 has joined #nixos
<ryantrinkle> after i gave up on nixops state management at a previous company
<srhb> ryantrinkle: It's becoming palatable with liberal use of turtle to tie everything together. Wishing for nix bindings though :)
<ryantrinkle> (admittedly without trying especially hard)
<ryantrinkle> haha yeah
<srhb> shell is a poor api. :-)
<ryantrinkle> indeed
YaZko has joined #nixos
<ryantrinkle> we've started to gradually build up a haskell -> nix-* binding library
<ryantrinkle> for nix-build, etc.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 1 new commit to master: https://git.io/vN34c
<NixOS_GitHub> nixpkgs/master 65774cb adisbladis: busybox: 1.27.2 -> 1.28.0
NixOS_GitHub has left #nixos [#nixos]
<ryantrinkle> it's something we need quite badly
<srhb> ooooh
<srhb> Do tell more when there's more to tell!
<ryantrinkle> definitely :)
<aminechikhaoui> srhb: sounds like https://github.com/awakesecurity/nix-deploy ?
fuyuuri has joined #nixos
<srhb> aminechikhaoui: nix-deploy is one-host-at-a-time, I want that but with nixops definitions.
<romildo> temphenk, the gnome3 desktop is not enabled.
temphenk has quit [Ping timeout: 248 seconds]
rauno has joined #nixos
<aminechikhaoui> srhb: ah I see, btw couldn't that be achieved with none backend
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/d63edb3571d (from 51 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [Client Quit]
<srhb> aminechikhaoui: I think so, yes. :)
<srhb> aminechikhaoui: You could more or less fake the state then.
orivej has quit [Ping timeout: 240 seconds]
YaZko has left #nixos [#nixos]
<aminechikhaoui> srhb: yeah the state of the none backend is pretty minimal
ckauhaus has quit [Remote host closed the connection]
kim0 has joined #nixos
alex____ has quit [Ping timeout: 240 seconds]
mr_sm1th has joined #nixos
alex____ has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
nico202 has quit [Ping timeout: 248 seconds]
<catern> is there a good overview of how various filesystem permissions should be set on /nix and things within it?
<gchristensen> catern: like excluding /nix/store ?
<gchristensen> I mean /nix/store/*
<catern> gchristensen: right
<catern> i know of /nix/store, the socket, the gc-roots/per-user and profiles/per-user that should be set specially
<gchristensen> its a bit tricky, I had to reverse it
Turion has quit [Remote host closed the connection]
stepcut has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 8d12c26 Yegor Timoshenko: sylpheed: 3.5.1 -> 3.6.0
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nixpkgs] yegortimoshenko pushed 1 new commit to master: https://git.io/vN3Rs
ertes-w has quit [Quit: Bye!]
ckauhaus has joined #nixos
ckauhaus has quit [Remote host closed the connection]
<catern> gchristensen: do you actually have to do everything in that first step? the /nix/var/log/nix/drvs in particular seems unnecessary
<catern> since that is created automatically anyway
<gchristensen> I don't know, and didn't care to find out
ertes-w has joined #nixos
<joko> Any way to store explicitly a path in nix store which is not necessarily a package?
orivej has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus opened pull request #33746: docker-edge: 17.12.0 -> 18.01.0 (master...docker_18_01) https://git.io/vN305
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg created unstable-aarch64 from master (+0 new commits): https://git.io/vSSlm
NixOS_GitHub has left #nixos [#nixos]
nslqqq has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/vN3Et
<NixOS_GitHub> nixpkgs/master 1276a3b zimbatm: nixos/acme: configurable TOS hash (#33522)...
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 0578f07 Shea Levy: postgresql: Respect dontDisableStatic
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vN3En
NixOS_GitHub has left #nixos [#nixos]
alex____ has quit [Quit: Lost terminal]
mjvoge02 has joined #nixos
hoverbear has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master fb069b7 Shea Levy: Merge branch 'callCabal2nix-cleanSourceWith'
<NixOS_GitHub> [nixpkgs] shlevy pushed 2 new commits to master: https://git.io/vN3EP
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master fb2b6ac Shea Levy: callCabal2nix: Use cleanSourceWith for composable filtering
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy closed pull request #33712: callCabal2nix: Use cleanSourceWith for composable filtering (master...callCabal2nix-cleanSourceWith) https://git.io/vNYS6
NixOS_GitHub has left #nixos [#nixos]
romildo has quit [Quit: Leaving]
saurabhnanda has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ttuegel opened pull request #33747: qt5: reduce evaluation memory use (master...bugfix/qt-5/eval-size) https://git.io/vN3uZ
NixOS_GitHub has left #nixos [#nixos]
<saurabhnanda> finally planning to bite the nixos bullet :)
<saurabhnanda> where in the documentation can I read about deploying my custom app via nixops?
<srhb> saurabhnanda: In the NixOps manual :)
<saurabhnanda> srhb: got that :) which section?
<saurabhnanda> https://nixos.org/nixops/manual/ makes it sound like the config file has only certain key/value pairs that it supports. How do I tell nixops to deploy branch X of my code?
<srhb> Erm, all sections! :)
<srhb> saurabhnanda: Aaah, okay
<srhb> saurabhnanda: So, you probably want the NixOS manual.
jtojnar has quit [Read error: Connection reset by peer]
<srhb> saurabhnanda: nixops configs are just NixOS configs with some extra modules for the target environments.
jtojnar has joined #nixos
<srhb> saurabhnanda: So, deploying with nixops becomes deploying on NixOS + the target environment.
<srhb> (More or less)
<saurabhnanda> okay, understood
<saurabhnanda> but https://nixos.org/nixos/manual/index.html#module-postgresql also makes it sound like there are specific packages that nixos gives special treatment to
<saurabhnanda> does this mean I have to use the underlying nix config language to write something for my own app?
<srhb> saurabhnanda: Those are NixOS modules (distinct from nix packages) and yes, that's essentially your deployment
<alp> saurabhnanda, you should probably first define a nixos module for your service. maybe the one for xmonad can help: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/x11/window-managers/xmonad.nix
<srhb> saurabhnanda: If I remember your name correctly you'll be deploying Haskell things, right?
<alp> then in the nixops config of your deployment, you include that module and enable your service and possibly specify a few options etc.
<saurabhnanda> srhb: correct, Haskell **and** ruby deployment. Haskell + Rails + Redis + Postgres + Nginx + haproxy to be precise.
<saurabhnanda> is there an emacs layer for nix config files, btw?
<srhb> saurabhnanda: OK, here's a small sample of the most trivial deployment I could conjure up with a binary web server without its own module (using only the systemd module)
<alp> saurabhnanda, yes, nix-mode
<saurabhnanda> alp: thanks
<saurabhnanda> what's the mental model I should use to "humanly parse" this nix recipe: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/x11/window-managers/xmonad.nix
<srhb> saurabhnanda: You should read the NixOS module section :)
<srhb> saurabhnanda: (Essentially it's a function from pkgs, lib, config, ... to (an xmonad window manager service)
<srhb> saurabhnanda: Yep :)
leat has quit [Quit: WeeChat 1.9.1]
<alp> saurabhnanda, the gist of it is that the "options" section is the "public API" for the module, because those are the options that you'll be enabling and setting to something in your system config.
dieggsy has joined #nixos
freusque has quit [Ping timeout: 256 seconds]
<alp> and the contents of the "config" section is the implementation
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master 7fedfea Thomas Tuegel: Merge pull request #33747 from ttuegel/bugfix/qt-5/eval-size...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master a8e7ac2 Thomas Tuegel: qt5: reduce evaluation memory use
<NixOS_GitHub> [nixpkgs] ttuegel pushed 2 new commits to master: https://git.io/vN32l
thetet has joined #nixos
<saurabhnanda> hang on, basic questions - (a) 'options' will expose a subset of options of the underlying service/component and ASSUME settings for others? (b) how does one output the config file for a service, once certain options are known
patrl has joined #nixos
<catern> gchristensen: so I have this deploy script (an ansible playbook, urgh) which creates the /nix/var/nix/{gcroots,profiles}/per-user explicitly https://github.com/catern/nix-utils/blob/master/nix-role.yml#L36
<catern> and I feel like that is a much less obviously necessary thing than the other couple things it does
<saurabhnanda> for example, in https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/x11/window-managers/xmonad.nix where is the config file for xmonad finally being written?
<catern> which are just "put Nix on system, start Nix systemd service" (which are sufficient to set up a multi-user Nix)
<srhb> saurabhnanda: a) yes ish, it will expose whatever the module writer has exposed. The config section may eventually make assumptions (also based on your settings). The files are ultimately in the nix store, and the systemd service (usually) that runs the service may create symlinks and other files at runtime.
<srhb> saurabhnanda: Uh, b started somewhere inside there :-)
<srhb> saurabhnanda: That service does not write an xmonad config file as far as I can see.
<saurabhnanda> (b) how does one output a config file for the final service from the nix recipe, i.e. how does one generate postgresql.conf?
<srhb> saurabhnanda: But if it did, it would be something like /nix/store/HASH-xmonad.hs
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/unstable-aarch64 cdf3d7b Tuomas Tynkkynen: nixos/release.nix: Refactoring for better multi-system support...
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to unstable-aarch64: https://git.io/vN3ax
NixOS_GitHub has left #nixos [#nixos]
<catern> gchristensen: so, in pursuit of an absolutely minimal script, I am trying to think of a way of creating /nix/var/nix/{gcroots,profiles}/per-user automatically. as a fellow person-who-deploys-multi-user-Nix-on-a-diverse-platform, maybe you have some ideas :)
<srhb> saurabhnanda: In the case of postgresql it's generated for you (somewhere in the nix store) and the systemd service will point postgres at it, iirc.
<srhb> saurabhnanda: That line will write a /nix/store/HASH-postgresql.conf
patrl has quit [Client Quit]
<saurabhnanda> and how are the options being exported by the nix recipe being plugged into the pg config file?
spietz has quit [Ping timeout: 268 seconds]
<srhb> saurabhnanda: They're substituted in at build time for that file
iyzsong has joined #nixos
<srhb> saurabhnanda: The line I just linked symlinks the store path to a path in cfg.dataDir that postgresql will find at runtime
Guanin has quit [Remote host closed the connection]
<srhb> saurabhnanda: `pkgs.writeText "filename" "contents"` will return the store path of the filename file.
reinzelmann has quit [Quit: Leaving]
Lisanna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb> saurabhnanda: So the value of configFile, for instance, is the store path of the configuration file.
<srhb> Hmm, doesn't look too scary to me. :-)
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/d7ce22e713a (from 79 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [Client Quit]
<catern> gchristensen: (automatically in nix-daemon.cc or nix-store --init or something, I mean)
ryantrinkle has quit [Ping timeout: 248 seconds]
orivej has quit [Ping timeout: 256 seconds]
<gchristensen> catern: me? I either use the install scripts Nix provides, or use a version I have in puppet-and-tragically-cannot-share, which follows exactly the same steps as the install script
<saurabhnanda> srhb: okay, so IIUC this is a giant function from config-file-sha1 (or some hash function) => system configuration, right?
<gchristensen> it took reverse engineering the single-user install script, the NixOS installer, and the bash profiles that NixOS contained. however, you can skip most of this since it is pretty well all contained in the darwin installer now.
<srhb> saurabhnanda: Morally, yes.
<gchristensen> I think "look at the darwin installer, and do that" is pretty much the best advice I can give you
<saurabhnanda> what happens if I add a newline at the end of a nix recipe that is depended by a lot of other packages?
euniarte has joined #nixos
<srhb> saurabhnanda: Nothing, it's not actually a hash of the text.
nico202 has joined #nixos
<srhb> saurabhnanda: But the input values. :)
<Dezgeg> but if you were to add the newline to e.g. glibc's build script, then you would recompile the world
<srhb> saurabhnanda: Think normalized nix expression or something like that (I don't know the actual approach)
dieggsy has quit [Remote host closed the connection]
<saurabhnanda> srhb: and the "function definition" itself, right? because at the end-of-the-day it *has* to run a bunch of shell commands. What if the order of shell commands change?
<Dezgeg> build script as in the string of bash commands executed
<srhb> saurabhnanda: As Dezgeg said, build scripts eventually do matter.
<srhb> saurabhnanda: If you added a blank line to the postgresql config, for instance, you've altered a nix string, and the dependents on that string will rebuild
<Dezgeg> yes, that's one example
<srhb> saurabhnanda: Yep
<srhb> saurabhnanda: That would change the config and thus the systemd service
<saurabhnanda> okay, so at core it's still a bunch of bash scripts and config files and string manipulation of config files, but the inventive step is the ability to detect that something is change and rebuild everything in the dependency chain.
<srhb> That's a big part of it, yes.
<saurabhnanda> s/something is change/something has changed
<catern> gchristensen: no no, I am aware that the darwin installer is a great resource now if I just want to install multi-user Nix - but I want to simplify the process required to install multi-user Nix so other people don't have to go through the same reverse-engineering process that I also have done
<gchristensen> well and the immutability of it, once something is, it will be unchanged
<catern> so that's why I'm talking about how/what could be done automatically by Nix itself to make multi-user Nix simpler to install
<gchristensen> catern: probably best to write a multi-user installer that works on other linuxes then, and upstream it
<gchristensen> I don't think it is appropriate for Nix to do itautomatically
<srhb> saurabhnanda: Right, re. immutability the new config will result in a new store path for it (which is what propagates down to the systemd unit)
<catern> do what automatically? :) surely it's possible that there's something that is useful to do automatically
<gchristensen> catern: on other words, I think the division of responsibilities that already exists sense
martinklepsch has quit [Remote host closed the connection]
asuryawanshi has quit [Ping timeout: 260 seconds]
<saurabhnanda> i thought nix was written in haskell, but I can see C++ and Python and Java!
<gchristensen> java?
<srhb> saurabhnanda: and originally mostly perl!
<gchristensen> python?
<gchristensen> where
larsvm has quit [Remote host closed the connection]
<srhb> Nix /= NixOps
<gchristensen> and where is the java? :P
<nixy> Nix has many components, not all of which are "Nix"
<srhb> It's funny about the Haskell assumption though. A lot of people think thus, probably because how big it is in the Haskell ecosystem :P
<catern> gchristensen: hmm, I'm not convinced... there is a lot of code in the install-darwin-multi-user.sh script, and say I upstream an install-linux-multi-user.sh script. people who are using other kinds of configuration management will still need to reverse-engineer those scripts and translate them, into a Debian package, Ansible/Puppet/Chef/CFEngine/...
<catern> that's a lot of duplicated code
<gchristensen> ok
<saurabhnanda> java is all the IDE plugins
<srhb> Huh, didn't know we had that.
<gchristensen> sure, making plugins is good for users
<gchristensen> Nix is all C++ and Perl, soon: all C++
MercurialAlchemi has quit [Ping timeout: 240 seconds]
cement has joined #nixos
<saurabhnanda> so, I'm wondering whether there will be significant advantage in choosing nix vs docker (or custom AMIs) for putting together a server that runs a bunch of standard services, and deploys a specific branch of our app on top of it?
<srhb> saurabhnanda: Nix(OS) subsumes docker entirely.
<saurabhnanda> IIRC, docker also has a "little bit" of this functional goodness. It takes a "snapshot" of the file-system after every command in the dockerfile. If any command changes, it rebuilds the file-system from that point onwards.
orivej has joined #nixos
pjan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen> the difference is in purity and caching: docker's layers are actually very ineffective caches because of the simplistic model. additionally, it is common practice now to eliminate all layering and just have one fat layer, in order to save disk space.
<srhb> But to me, the real win is power of expression
<srhb> Sure, if you're just running a single binary from a one-instruction Dockerfile, that's probably fine.
<gchristensen> the purity issue is of caching: if you have `apt-get update` in any step, that will never rebuild unless you either change the layer above it, or force it to rerun. this means your apt-get update is effectively useless. Nix's model of purity ensures that if dependencies change or security patches are released, you will get them.
<LnL> it's fine unless you need to change anything about it
<srhb> (But heck, I'd rather build my docker containers with Nix when I have to :))
<gchristensen> ^ Nix can make docker containers :)
iyzsong has quit [Ping timeout: 260 seconds]
<saurabhnanda> gchristensen: what's the part about FS layers and disk-space? I was under the impression that some efficient delta-algorithm is used underneath.
Snappys has joined #nixos
Lisanna has joined #nixos
Snappys has left #nixos ["Leaving"]
<gchristensen> if you add dev tools in one layer, then build your software in a layer, then remove dev tools in another layer, you still ship all the dev tools to the production server, as an example
<LnL> it's layer based, so a + b != b + a
<catern> wow that's terrible
<saurabhnanda> in nix(os) what do I add to my repo? the nix files for all the packages that I'm using or just my own service? if the latter, who is guaranteeing uptime of the global nix files?
<saurabhnanda> gchristensen: oh, so that means it's additive and removals don't reduce the FS size
<gchristensen> right, but also if you change a file trivially lower in the layers that has nothing to do with stuff later in the layers, all those layers must rebuild even though they have no reason
<srhb> saurabhnanda: Generally you have one repo for your application with a nix file that pulls in nixpkgs as an argument for all its dependencies (at some pinned revision, optionally) -- then you have one repo for your deployment which probably includes your nixos modules for some service. At least, that's what I do.
<srhb> saurabhnanda: The application nix expression is just the package, while the deployment has the module. Of course, if you share that module, you might want to do something else.
<srhb> saurabhnanda: (for instance, the module could live with the application and just be imported into the deployment)
<saurabhnanda> srhb: I don't think I've grasped the difference between a module and a package in nix parlance.
<srhb> saurabhnanda: modules are what put together NixOS
<srhb> saurabhnanda: Services and the like
<srhb> saurabhnanda: packages are the build products of some application, usually.
<saurabhnanda> so, modules are the NIX files themselves, and packages are the resultant "binaries" that live on the file-system?
<srhb> saurabhnanda: nixpkgs packages are often OS agnostic. NixOS modules are NixOS only.
<srhb> No no.
<srhb> saurabhnanda: packages and modules alike are nix expressions. There's often no 1-1 correspondence between package/module and file
<srhb> saurabhnanda: modules specifically are the { config, pkgs, ... }: { options = ...; config = ...; } type expressions in the writing modules section I linked you to.
<srhb> saurabhnanda: I think you should experiment a bit to get a feel for it :-)
NixOS_GitHub has joined #nixos
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 4e78aeb Shea Levy: callCabal2nix: Fix calling with a path in the store.
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vN36P
<srhb> We can only digest the whole system so much in an irc session.
<gchristensen> !m srhb
<[0__0]> You're doing good work, srhb!
rauno has quit [Remote host closed the connection]
<srhb> \o/
<Dezgeg> github down?
<srhb> yeah.
<gchristensen> wooooo
<Yaniel> guess they installed meltdown patches
<Dezgeg> time to go outside then I guess
<srhb> hah, just got a 404 on the status page
<srhb> It's there now
<srhb> (it's nginx!)
<gchristensen> Dezgeg: `git remote add graham dezgeg@gsc.io` ;)
<LnL> Yaniel: or didn't :)
<LnL> :p
<Dezgeg> I was trying to hit the pull request button actually
<srhb> lol, if you refresh it, the historical status messages also change.
<srhb> Oh, HA things...
<Yaniel> backlog powered by mongodb?
<andi-> looking at the statuspage they had a few rough days
erasmas has joined #nixos
<gchristensen> andi-: their backlog says they've been down since November
<andi-> gchristensen: so we have all been dreaming?!? /o\
<srhb> These past few weeks have felt like a blur...
<andi-> what kind of matrix is this?
contrapumpkin has joined #nixos
zzamboni has quit [Quit: Leaving.]
<catern> is there a nixpkgs helper for building a Debian package?
<catern> (I want to use Nix to build a Debian package)
<andi-> that would indeed be very sweet
<gchristensen> there is, but it doesn't do what you think.
<gchristensen> it doesn't use nix's build of anything and instead uses standard debian tools in a debian vm to build the deb
<gchristensen> see: nix's .deb and .rpm tooling in the nix repo
Tucky has quit [Quit: WeeChat 2.0.1]
<saurabhnanda> thanks shrb & gchristensen
<saurabhnanda> thank srhb & gchristensen
<saurabhnanda> I'll spend some more time on nix...
orivej has quit [Ping timeout: 276 seconds]
<srhb> saurabhnanda: Cool! :-)
mizu_no_oto has joined #nixos
<catern> dang I was hoping for something different from that
<catern> oh well, I guess I can always just use debhelper or whatever directly, assuming the right tools are packaged in nix
<catern> in a custom script
<srhb> woo, github back.
<Lisanna> Hey, I need to do a nixos-rebuild of my /mnt while booted into a live install image. Is there a way to do this? Will the regular nixos-install work?
<Lisanna> I already have a nixos install on /mnt
<srhb> Lisanna: Yes and yes. nixos-install has a --chroot option you can use for the former option
danl1240 has joined #nixos
<srhb> Which will give you a root from whence you can nixos-rebuild
ma27 has quit [Ping timeout: 276 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg opened pull request #33749: nixos/release.nix: Refactoring for better multi-system support (master...release-refactor-1) https://git.io/vN3iQ
NixOS_GitHub has left #nixos [#nixos]
<adisbladis> catern: I had to do some deb/rpm packaging at work recently and used fpm. That would be pretty easy to wrap up in a nix expression.
<hyper_ch> the only problem is if you're using unstable channel
<hyper_ch> not sure how to switch to that in the nixos live environment
<srhb> hyper_ch: As normal, I'd think?
<hyper_ch> srhb: it's more complicated
<srhb> hyper_ch: Oh?
<hyper_ch> I think so
<srhb> Hm, pretty sure I've done that in the past.
<adisbladis> hyper_ch: Its not. Youd just set your NIX_PATH (nix.nixPath) and be on your merry way :)
<hyper_ch> adisbladis: and how do you that in detail?
<srhb> hyper_ch: If you're referring to <unstable> for instance, NIX_PATH=unstable=http:....:$NIX_PATH nixos-install
<Lisanna> srhb Okay - I do nixos-install --chroot, and then nixos-rebuild boot, and I'm getting error: file nixpkgs/nixos was not found in the Nix search path
<srhb> Lisanna: nixos-install --chroot /mnt I think
<shlevy> Anyone ever seen the haskell buidler segfault in configurePhase? :o
<srhb> Maybe I'm mistaken
<adisbladis> hyper_ch: What srhb said or set in configuration.nix (nixPath = [ "nixpkgs=http://nixos.org/channels/nixos-unstable/nixexprs.tar.xz" ];) and nixos-rebuild switch
<Lisanna> no, arguments after --chroot are commands to run
<Lisanna> it defaults to /mnt
<hyper_ch> more complicated - as I said
bennofs has joined #nixos
<srhb> Lisanna: You'll have to set NIX_PATH manually I guess.
<Lisanna> adisbladis but won't that just set the nix path for users who are booted in regularly? My shell isn't going to pick that up just by chrooting
nuncanada has joined #nixos
<srhb> Weird though.
<Lisanna> yeah, I'll try setting NIX_PATH manually
<srhb> Lisanna: You can rebuild the live nixos as well, including any nix path you like
<srhb> Lisanna: Which will affect nixos-install and co
<srhb> I also think it takes the regular -I option to include a path in NIX_PATH
ma27 has joined #nixos
<srhb> nixos-install, that is
<__Sander__> hmm
<__Sander__> error: Multiple exceptions: string index out of range, string index out of range, string index out of range
dieggsy has joined #nixos
<__Sander__> when running nixops
mk-fg has quit [Ping timeout: 255 seconds]
fuyuuri has quit [Ping timeout: 246 seconds]
<Sonarpulse> dhess: thanks!
<Lisanna> Okay, I try to do just a regular nixos-install, but any file that I refer to directly in an expression is not being found
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
<srhb> Lisanna: Absolute paths that are no longer true?
<Lisanna> e.g. "getting attributes of path `/home/lisanna/foo.txt`: No such file or directory"
<srhb> Lisanna: Right, it's /mnt/home now...
<Lisanna> but it definitely exists... but at /mnt
<srhb> Absolute paths hurt like that.
<Lisanna> ugh
<srhb> I changed everything to refer to <home> because of that :P
<srhb> So I can at least parameterize it with NIX_PATH
<Lisanna> I could just change everything to ../../<whatever>
<Lisanna> :/
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lebastr opened pull request #33750: tifffile: init at v0.13.0 (master...master) https://git.io/vN3XE
NixOS_GitHub has left #nixos [#nixos]
<srhb> Yeah..
<Lisanna> I always hated that though
<srhb> same.
<srhb> Hence the <home> solution
<manveru> for some reason watch(1) doesn't support unicode anymore...
LysergicDreams has joined #nixos
ma27 has quit [Ping timeout: 252 seconds]
ryanartecona has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti closed pull request #33733: ghc, haskell-modules: ARM cross build fixes. (master...arm-cross-fixes) https://git.io/vNOQN
NixOS_GitHub has left #nixos [#nixos]
dieggsy has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<Lisanna> okay, I changed all my paths to relative and am just doing a regular nixos-install now
<Lisanna> this is what I get for not using LVM the first time x_x
alexteves has joined #nixos
dieggsy has joined #nixos
macslayer has joined #nixos
saurabhnanda has quit [Remote host closed the connection]
alexteves_ has quit [Ping timeout: 240 seconds]
stepcut has quit [Remote host closed the connection]
<macslayer> Hmmmm-- how do I install a package from the current git version of `nixpkgs`, without breaking my current system?
<macslayer> I'm on 17.09, but the package `woeusb` isn't available in 17.09.
<macslayer> However, when I search the git repo of `nixpkgs`, it's in there.
<Lisanna> macslayer use the unstable channel, and if your system breaks, just do a rollback
<Lisanna> and if it doesn't break, you're good :)
<macslayer> Well, I'd rather not install anything else from the `unstable` channel.
<Lisanna> something something overlays I think
<macslayer> Hmmm okay
<macslayer> I don't know specifically how to do that
<Lisanna> well, make sure you have the unstable channel added in addition to whatever you currently use, and then import it directly from that channel with an overlay: https://nixos.org/nixpkgs/manual/#chap-overlays
<toppler> Anyone using node2nix?
YaZko has joined #nixos
MercurialAlchemi has joined #nixos
bitchecker has quit [Remote host closed the connection]
bitchecker has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ankhers opened pull request #33751: Update Elixir 1.6 RC (master...update_elixir_rc) https://git.io/vN3Ms
NixOS_GitHub has left #nixos [#nixos]
<alexteves> toppler: I used it, but not much
bennofs has quit [Ping timeout: 252 seconds]
YaZko has left #nixos [#nixos]
<alexteves> among other things, needed the node 8 support version to be in nixpkgs, which happened like yesterday
<toppler> Might be needing some quite specific tips. My problem might be with angular.
contrapumpkin has quit [Quit: Textual IRC Client: www.textualapp.com]
ambro718 has joined #nixos
<Lisanna> should /boot point to the EFI system partition or the BIOS boot partition?
dieggsy has quit [Remote host closed the connection]
bennofs has joined #nixos
<Lisanna> nixos-generate-config isn't picking it up automatically
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
therp has quit [Quit: Leaving]
schoppenhauer has quit [Ping timeout: 256 seconds]
<etu> Lisanna: I have all my EFI systems having the EFI system partition mounted on /boot
<Lisanna> okay
<etu> Lisanna: Make sure to mount it before running nixos-generate-config
<Lisanna> ah, that might help
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vN3Dt
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 4cd40bb Justin Wood: Update Elixir 1.6 RC
<NixOS_GitHub> nixpkgs/master e42c4c0 adisbladis: Merge pull request #33751 from ankhers/update_elixir_rc...
<Lisanna> okay, but how do I get it to pick up swap?
<etu> swapon it I guess
<Lisanna> okay, it's picking them up correctly now
<etu> :)
orivej has joined #nixos
<Sonarpulse> dtz: btw we should really factor out the common parts of the gcc derivations
<Sonarpulse> I doubt we're done tweaking them
<Sonarpulse> and its a big pain right now
<Dezgeg> should drop the oldest gccs like 4.5 first, though
<dtz> OMG yes it is
<dtz> They're so much alike :(
aanderse has quit [Ping timeout: 240 seconds]
<dtz> Also, LLVM ones after that. I actually have a start on those a bit unintentionally-- I added a "track master" expression locally over a year ago and it has grown to handle all versions since haha
<dtz> But it also builds things together so not quite ready as-is (and need support for older versions but they're similar too)
<dtz> But anyway LLVM stuff isn't as bad IMO, those gcc derivations are intense
<dtz> I have musl things to add there too but can add after -- but if we're doing a rebuild of them might wanna sneak those in too O:)
aanderse has joined #nixos
<macslayer> Would that achieve the same thing?
Itkovian has quit [Ping timeout: 240 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #33726: glusterfs: 3.12.3 -> 3.12.4 (master...glusterfs-3.12.4) https://git.io/vNOnW
NixOS_GitHub has left #nixos [#nixos]
<Yaniel> oh dear, this is going to be fun to package
jabranham has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to unstable-aarch64: https://git.io/vN3yJ
<NixOS_GitHub> nixpkgs/unstable-aarch64 7563089 Tuomas Tynkkynen: nixos/release.nix: More refactoring for multi-arch...
NixOS_GitHub has left #nixos [#nixos]
<Guest44147> Yaniel: Doesn't seem so bad. If you want a challenge, try packaging OSS4 ;)
<Yaniel> I mean
<jabranham> I'm trying to install a package in R with install.packages("curl") and it keeps failing because it can't find libcurl, despite curl being installed on the computer. Any ideas why this is the case?
<Yaniel> it does wget | tar -xvf | make install there
orivej has quit [Quit: No Ping reply in 180 seconds.]
<Lisanna> ah, that message at the top of hardware-configuration.nix was right - don't modify it directly!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vN3y9
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master bb9bcfa Jörg Thalheim: doc/cross-compilation: fixes typos
<jabranham> also, am I supposed to install things like openssl and gcc by putting them in environment.systemPackages?
contrapumpkin has joined #nixos
<etu> Lisanna: I tend to ignore that.
sigmundv__ has quit [Ping timeout: 276 seconds]
orivej has joined #nixos
<Yaniel> jabranham: that's one way, the other is nix-env
ryantrinkle has joined #nixos
nmikhailov[m]1 has joined #nixos
<jabranham> Yaniel: are those two things identical?
<Yaniel> no
<jabranham> is there someplace that descibes how they're different?
macslayer has quit [Quit: Konversation terminated!]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aforemny closed pull request #33494: Bullet: upgrade and fix on aarch64 (master...bullet) https://git.io/vNUNp
NixOS_GitHub has left #nixos [#nixos]
<Yaniel> nix-env is user-specific for one
<etu> Lisanna: Since I don't usually regenerate the file, as well as I control it in git so I can review the changes.
<Yaniel> IIRC the manual has something about that
<Yaniel> declarative vs imperative package management
<jabranham> Right, but if I run nix-env as root (via sudo), then those two things should be identical, right (except for the syntax/how they're declared to the system)?
dieggsy has joined #nixos
<Yaniel> root is a user too
jensens has quit [Ping timeout: 260 seconds]
<jabranham> so if I install something with sudo nix-env -i foo then user alice won't be able to use it unless she installs it with nix-env -i foo?
dieggsy has quit [Read error: Connection timed out]
<jabranham> but if I put it in environment.systemPackages then root and alice can both use it?
dieggsy has joined #nixos
<Yaniel> the latter yes, the former AFAIK too but am not sure
<jabranham> gotcha, thanks
civodul has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
Neo--- has joined #nixos
leat has joined #nixos
Neo-- has quit [Ping timeout: 265 seconds]
<alexteves> won't any user that is member of the wheel group be able to use "sudo nix-env -i" packages?
<alexteves> e.g. "sudo foo"
hotfuzz_ has joined #nixos
remexre has joined #nixos
tobiasBora has joined #nixos
<tobiasBora> Hello,
<hyper_ch> seems not all of them
<tobiasBora> Is it possible in nixos to configure a list of user/database in the configuration file for a postgresql configuration ?
<Mic92> hyper_ch: but you want a different target
<hyper_ch> I tried now with zfs.target
<Isorkin> Please help to fix error build - http://pastebin.ru/3Cvc3cU2 Config - http://pastebin.ru/bwV9KfC9
Slabity has joined #nixos
hotfuzz has quit [Ping timeout: 268 seconds]
<hyper_ch> Mic92: but there was another issue I encountered... I made another encrypted zfs pool..... I added it to the hardware-configuration.nix and during initrd boot it didn't ask me for the password for it and then boot stopped because it couldn't be mounted
<Mic92> hyper_ch: is your rootfs also on the same pool?
<Mic92> hyper_ch: maybe you need to add the devices nodes for the other pool also here? https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/tasks/filesystems/zfs.nix#L314
Lisanna has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Slabity> When I run `nix-shell -p gcc5`, I get gcc 6.4.0. Does anyone else have this issue? (unstable)
asuryawanshi has joined #nixos
<Mic92> hyper_ch: mhm. you pool would be needed in https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/tasks/filesystems/zfs.nix#L51 as well
<hyper_ch> Mic92: I wrote not a small shell script that checks if those pools are mounted before using them :)
<hyper_ch> Mic92: I'm testing now this: https://paste.simplylinux.ch/view/raw/60f51459
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg force-pushed unstable-aarch64 from 7563089 to 21540a9: https://git.io/vSSlm
<NixOS_GitHub> nixpkgs/unstable-aarch64 21540a9 Tuomas Tynkkynen: nixos/release.nix: Add preferLocalBuild to makeNetboot result
<NixOS_GitHub> nixpkgs/unstable-aarch64 4a6f811 Tuomas Tynkkynen: nixos/release.nix: Clean some syntax
<NixOS_GitHub> nixpkgs/unstable-aarch64 9e159d2 Tuomas Tynkkynen: nixos/release.nix: More refactoring for multi-arch...
NixOS_GitHub has left #nixos [#nixos]
<Mic92> hyper_ch: should work on the first glance unless your rootfs is on that devices.
<Mic92> hyper_ch: but you still need a wantedBy target
<Mic92> otherwise it is never started by systemd
<Mic92> wantedBy = [ "zfs.target" ]; should work
jabranham has quit [Remote host closed the connection]
Slabity has quit [Remote host closed the connection]
knupfer has joined #nixos
stephenjudkins has joined #nixos
orivej has joined #nixos
<hyper_ch> Mic92: it doesn't work and rootfs is on those devices.. it mirror
<hyper_ch> Mic92: I attach usb 3 external drives for mirroring
<hyper_ch> and the should be set to "offline"
<hyper_ch> when powering down so that resilvering is faster
<hyper_ch> but it's not working
<Mic92> hyper_ch: if you use the exact code, you have just pasted, the service is not enabled yet as I wrote
<hyper_ch> Mic92: altering it now
<Mic92> hyper_ch: systemctl status stopResilver should show a running status after reboot
<hyper_ch> the following new units were started: stopResilver.service
<Mic92> looks good then
Slabity has joined #nixos
<hyper_ch> I'll have to see on shutdown
<hyper_ch> seems to look good
<Slabity> Anyone know why `nix-shell -p gcc5` would use gcc 6.4.0 instead of 5.x?
<hyper_ch> Mic92: it's 2x SSD in the notebook
MercurialAlchemi has quit [Ping timeout: 256 seconds]
<hyper_ch> and 1x usb 3.0 disk at home and one at office
<Slabity> Same with gcc7 and gcc4. It always connects me to gcc 6.4.0
<Mic92> Slabity: it seems that gcc6 gets priority in the PATH for some reason
<Mic92> weired
xcmw has joined #nixos
<Isorkin> Please help to fix error build - http://pastebin.ru/3Cvc3cU2 Config - http://pastebin.ru/bwV9KfC9
<Slabity> Mic92: I shouldn't even have gcc6 though. Running gcc outside of the nix-shell says command not found
<dtz> whoa whoa I can repro re:'nix-shell -p gcc5' --- and I, too, don't have it locally installed outside of shell
<Mic92> Slabity: if you use that file in a nix-shell, it will give your gcc the correct priority
<Mic92> Slabity: gcc6 is coming from stdenv. However I don't know, why it has priority over the rest.
pie_ has joined #nixos
<Slabity> That file doesn't seem to work. Creating a nix-shell on it still results in 6.4.0
<dtz> maybe it's using ... runCommand instead of runCommandNoCC or something?
Guest44147 has quit [Ping timeout: 252 seconds]
<dtz> FWIW, mostly because it's interesting to me, 'nix run' does the right thing, as in: 'nix run -f channel:nixos-unstable gcc5'
<Mic92> dtz: are you using nix or nixUnstable?
<Mic92> dtz: nix run also works correctly for me
<dtz> I'm on 1.12
<Mic92> but behavior seems to be also consistent for both nix and nixUnstable
pie__ has quit [Ping timeout: 276 seconds]
lonokhov has quit [Quit: leaving]
<dtz> Mic92: gold star, I wanted to chase that down but got distracted :3. Okay so at least there the behavior is "expected" re:code, but...
<dtz> why is the code that way? :D
FRidh2 has joined #nixos
<ocharles> Has anyone seen this before?
<hyper_ch> Mic92: can't normally power off my notebook anymore https://images.sjau.ch/img/6c56812d.jpg
<ocharles> hydra-eval-jobs returned exit code 1:
<ocharles> error: bad archive: unknown field
asuryawanshi has quit [Remote host closed the connection]
<Mic92> hyper_ch: ExecStop looks unsuspicious, do you have strange stuff in postShutdown?
<hyper_ch> Mic92: no
<hyper_ch> wireguard is still a mess for some reason
<Mic92> I don't now any circumstance where `ip link del dev` would hang at shutdown
<dtz> ocharles: I.. have not seen that. Corrupt nar, maybe?
<Mic92> hyper_ch: was your tunnel correctly started, before you poweroff?
<dtz> looks like it's nix throwing that, the 'archive' I think is a nar (vs some format it's decompressing)
<hyper_ch> Mic92: as said, wg still has issues
Arcaelyx has joined #nixos
<dtz> (I'm looking at https://github.com/NixOS/nix/blob/master/src/libutil/archive.cc if you didn't already find your way there lol)
<ocharles> I didn't look at the source, no
<hyper_ch> and it went on and on and on and after 7 1/2 minutes I was tired of waiting longer
<ocharles> I'll clear everything I can on that hydra machine
Shados has quit [Remote host closed the connection]
Shados has joined #nixos
asuryawanshi has joined #nixos
Lisanna has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
<hyper_ch> Mic92: so, lets try again, did properly (manually) start wg
jabranham has joined #nixos
<Mic92> hyper_ch: and the service is also started?
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/d7ce22e713a (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [Client Quit]
<hyper_ch> Mic92: and it wasn't set to offline https://paste.simplylinux.ch/view/raw/5e07a094
aarvar has joined #nixos
<hyper_ch> Mic92: stopResilver service is running
<hyper_ch> Mic92: I just can't manage to set the usb 3 drive to offline when powering down
<Mic92> sorry I cannot reproduce this setup here.
klntsky has joined #nixos
jb55 has joined #nixos
<Mic92> you have to figure it out on your own
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to release-17.09: https://git.io/vN3F2
<NixOS_GitHub> nixpkgs/release-17.09 febf14e Benjamin Hipple: Init Centos 7.3 vmTools diskImage...
<NixOS_GitHub> nixpkgs/release-17.09 3007961 Benjamin Hipple: Init Centos 7.4 vmTools diskImage...
NixOS_GitHub has left #nixos [#nixos]
<hyper_ch> Mic92: been trying to figure that out for ages and I have no idea what it's not working
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jabranham> the output of nix-env -q contains "python3-3.6.4" and "python3.6-numpy-1.13.3", but starting python and doing "import numpy as np" can't find the numpy module. Am I doing something wrong?
<jabranham>
xcmw has joined #nixos
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<symphorien> you are not supposed to install libraries or python modules globally on with Nix
<FRidh2> jabranham: yes, you are. Have a look at the Python section in the Nixpkgs docs
digitus has joined #nixos
<hyper_ch> Mic92: is this the problem: Active: active (exited) since Thu 2018-01-11 18:24:41 CET; 8min ago --> I mean the exited one
<dtz> lmao, found this in a build log: -Lsh: -Lpkg-config: -Lcommand -Lnot -Lfound
<dtz> hahaha
<jabranham> FRidh2: thanks
<Mic92> hyper_ch: this looks fine to me
<Mic92> hyper_ch: you can query the journal for output on shutdown
<Mic92> dtz: build system with stringly typed DSLs
pkill9 has joined #nixos
ThatDocsLady has quit [Remote host closed the connection]
<hyper_ch> Mic92: hmmm, I think I foudn the issue
<hyper_ch> no, didn't find it
_alice_ has quit [Ping timeout: 252 seconds]
Lisanna has quit [Quit: Lisanna]
<Mic92> hyper_ch: the service seems to works correctly, your script then does either discard errors or is working not correct.
<hyper_ch> Mic92: if I run script manually it works
<Mic92> hyper_ch: then you run it not as described in the service, or there dependencies in your $PATH that are not available in the service.
vidbina has joined #nixos
<hyper_ch> I'll check :) need to fix wireguard now
hgdcs55322 has quit [Ping timeout: 268 seconds]
marzzzello has joined #nixos
goibhniu has quit [Ping timeout: 264 seconds]
vidbina has quit [Ping timeout: 264 seconds]
<hyper_ch> Mic92: actually, my stop script isn't working anymore :)
schoppenhauer has joined #nixos
jabranham has quit [Read error: Connection reset by peer]
ssmike has quit [Remote host closed the connection]
alex`` has joined #nixos
vidbina has joined #nixos
thetet has quit [Quit: Leaving.]
ssmike has joined #nixos
<hyper_ch> Mic92: so, my wireguard starting fix: https://raw.githubusercontent.com/sjau/nix-expressions/master/wgStartFix.nix --> "*/5 * * * * root wgStartFix 'wg_home wg_office'"
schoppenhauer has quit [Ping timeout: 255 seconds]
alex`` is now known as alexherbo2
alexherbo2 is now known as alex``
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schoppenhauer has joined #nixos
rardiol1 has left #nixos [#nixos]
datakurre has quit [Ping timeout: 240 seconds]
xcmw has joined #nixos
ent has quit [Ping timeout: 252 seconds]
<jluttine> in python package derivation, i've set src=/some/local/path and when i make changes to the files in that path, the files in the installed python package don't change.. what could be wrong?
seequ has quit [Ping timeout: 268 seconds]
Dezgeg has quit [Ping timeout: 264 seconds]
ma27 has joined #nixos
<etu> jluttine: do you update the hash?
Lisanna has joined #nixos
<etu> I'm pretty sure you need a hash of the dir with the code and update it
<jluttine> etu: i don't set any hash, i just put src=/some/local/path
LysergicDreams has quit [Remote host closed the connection]
<jluttine> i'm not sure if that's allowed, or how i should use local directories as a source
<etu> Oh, I didn't know that works. But I think it doesn't rebuild it because the hash of the instructions are the same.
<jluttine> etu: but it does rebuild whenever i change any of the files though :o
<jluttine> and the nix path where it copies that source directory, contains the changed files
ssmike has quit [Ping timeout: 252 seconds]
<etu> Yeah, but if you don't change the nix file, I don't think it will rebuild. So if you had a hash, version variable or anything you would change it would probably work.
ckauhaus has joined #nixos
drakonis has joined #nixos
<jluttine> i changed the version string of the python package derivation, didn't help :(
dan_b has joined #nixos
<FRidh2> are you sure you are building that derivation and not maybe from another say Nixpkgs package set?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir closed pull request #33739: Apache Spark address CVE-2017-12612 (master...spark) https://git.io/vN33w
NixOS_GitHub has left #nixos [#nixos]
sigmundv_ has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tmaekawa has joined #nixos
xcmw has joined #nixos
ckauhaus has quit []
datakurre has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
eljih has joined #nixos
aloiscochard has quit [Quit: Connection closed for inactivity]
nico202 has quit [Ping timeout: 240 seconds]
eljih has quit [Client Quit]
eljih has joined #nixos
noxid has quit [Ping timeout: 246 seconds]
ent has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edolstra pushed 1 new commit to master: https://git.io/vNseJ
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master dddcd10 Eelco Dolstra: Don't set 'config.xorg = {}'...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gnidorah opened pull request #33753: avidemux: support alsa (master...avidemux) https://git.io/vNse3
NixOS_GitHub has left #nixos [#nixos]
<hyper_ch> Mic92: d'oh, I think I fixed it
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nix/memoise 0395b9b Eelco Dolstra: Add memoise primop...
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> [nix] edolstra created memoise (+1 new commit): https://git.io/vNseW
rauno has joined #nixos
<LnL> ^ :D
<dtz> lol cross paths get a bit silly: -- Check for working C compiler: /nix/store/d36vzq103mv00ap1wak4ssz5wmjlp47d-x86_64-unknown-linux-musl-gcc-cross-wrapper-6.4.0-x86_64-unknown-linux-musl-stage-final/bin/x86_64-unknown-linux-musl-gcc -- works
<gchristensen> :O
<dtz> neat re:memoise
primeos has quit [Ping timeout: 252 seconds]
<etu> dtz: such path, I'd remember that :D
<etu> I like the unkown parts
primeos has joined #nixos
dan_b has quit [Ping timeout: 240 seconds]
marzzzello has quit [Ping timeout: 252 seconds]
m0rphism has quit [Quit: WeeChat 1.9.1]
coot___ has quit [Quit: coot___]
Neo--- has quit [Ping timeout: 255 seconds]
mrkgnao has joined #nixos
oida has quit [Quit: WeeChat 1.6]
martinklepsch has joined #nixos
<fgaz> hi
ssmike has joined #nixos
<fgaz> i'm building an overlay with some additional packages
<fgaz> i plan to add it to some server's configuration
rauno has quit [Ping timeout: 252 seconds]
<fgaz> is there a way to build those packages individually?
<fgaz> when I work on nixpkgs i can do `nix-build ~/nixpkgs -A somepkg`
<fgaz> I want to do the same with the overlay
<fgaz> without actually applying it to my system
sigmundv__ has joined #nixos
reinzelmann has joined #nixos
<rnhmjoj[m]> fgaz: i don't know if it's the best way but I usually take the expression out the system configuration, put it into a default.nix and call nix-build
simendsjo has joined #nixos
sigmundv_ has quit [Ping timeout: 248 seconds]
rauno has joined #nixos
<rnhmjoj[m]> then I use nix-copy-closure to copy the package to different machines
orivej has quit [Ping timeout: 248 seconds]
tmaekawa has quit [Quit: tmaekawa]
<fgaz> rnhmjoj[m]: so basically a default.nix the same as the overlay's one but without the super and self arguments?
ssmike has quit [Ping timeout: 255 seconds]
<fgaz> hmm I keep getting a "value is a function while a set was expected"
rauno has quit [Ping timeout: 264 seconds]
<fgaz> which is not very helpful
aborsu has joined #nixos
m0rphism has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] erosennin opened pull request #33754: virt-manager: add gobjectIntrospection to nativeBuildInputs (master...virt-manager-gobject-introspection) https://git.io/vNsTF
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] srhb opened pull request #33755: nixos/tests/keymap: disable xterm DM (master...keymap-test-disable-xterm-dm) https://git.io/vNsTb
NixOS_GitHub has left #nixos [#nixos]
m0rphism has quit [Client Quit]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] srhb closed pull request #33719: nixos/tests/keymap: Workaround xterm not in focus (master...xterm-keymap-workaround) https://git.io/vNOTb
NixOS_GitHub has left #nixos [#nixos]
<srhb> fgaz: Am I understanding correctly that you want to build a system configuration without applying it to your system?
<srhb> fgaz: And just build, not run it in a vm or anything?
<fgaz> srhb: just a single derivation
<fgaz> yeah, just build
<srhb> fgaz: nixos-rebuild can do this, if you set nixos-config to the configuration file in question.
<fgaz> ah, nixos-rebuild build
<srhb> fgaz: Yeah, setting NIXOS_CONFIG to the path you're interested in
ryanartecona has joined #nixos
<fgaz> but then i'm building the while configuration
<fgaz> whole
<srhb> Indeed.
<fgaz> is there a way to build a single package from the overlay?
<srhb> Package yes, nixos system not really.
<qknight> hey. if i use lib.unqiue on a list it prints the list content in one line. is there a way to output it pretty? my list contains sets which are basically none-human-readable
<srhb> fgaz: Or hm, I don't know how to actually evaluate the overlays by hand, but it should be doable to find the mechanics...
<srhb> fgaz: Essentially I think you want to evaluate nixpkgs (default.nix) passing your overlays, and then specifying just your attribute
<fgaz> srid: tried for a while, but i keep getting that uninformative "value is a function while a set was expected"
<srhb> fgaz: The question is how to pass the overlay...
<srhb> fgaz: Oh, it takes that as an argument
rauno has joined #nixos
eljih has quit [Quit: Leaving]
<srhb> nix-build '<nixpkgs>' --arg overlays '[ (self: super: { foobarbaz = super.hello; }) ]' -A foobarbaz
eljih has joined #nixos
orivej has joined #nixos
<srhb> Or instead of specifying it there as self: super, have [ (import ./path/to/your/overlay.nix) ]
<srhb> fgaz: Makes sense?
vidbina has quit [Ping timeout: 264 seconds]
<fgaz> srhb: trying it now
raynold has quit [Quit: Connection closed for inactivity]
ryanartecona has quit [Quit: ryanartecona]
<fgaz> srhb: it works!
<srhb> fgaz: Good! :)
<fgaz> (well, except some not really realted error which i wasn't getting before)
simendsjo has quit [Remote host closed the connection]
jabranham has joined #nixos
nithor has quit [Ping timeout: 265 seconds]
jensens has joined #nixos
<fgaz> srhb: so with that command I'm building <nixpkgs> but with the overlays attribute set to my overlay?
<srhb> fgaz: overlays is an argument to the main nixpkgs function, and yes.
simendsjo has joined #nixos
<srhb> You can take a look in nixpkgs/pkgs/top-level/impure.nix (which is what nixpkgs/default.nix imports)
reinzelmann has quit [Quit: Leaving]
<fgaz> oh right, it is an attribute in the config and an _argument_ in nixpkgs
<fgaz> srhb: many thanks!
<srhb> fgaz: You are welcome :)
sigmundv__ has quit [Ping timeout: 264 seconds]
ryanartecona has joined #nixos
<fgaz> srhb: oh, last thing
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/9ab77680b6a (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] primeos pushed 1 new commit to master: https://git.io/vNsIb
<NixOS_GitHub> nixpkgs/master e4cad91 Michael Weiss: lf: 2017-10-30 -> 2018-01-11
NixOS_GitHub has left #nixos [#nixos]
nix-gsc-io`bot has quit [Client Quit]
Itkovian has joined #nixos
<fgaz> you found about the overlay arg in pkgs/impure.nix ?
<srhb> fgaz: You mean pkgs/top-level/impure.nix ? Yes, I figured it would have to enter as an argument somewhere, and in general all the stuff that enters from the surroundings are from there. :)
<srhb> fgaz: But you could ultimately have thought "it's an argument..." and gone from default.nix to there
<srhb> (or maybe just grepped for great justice)
<srhb> :)
<jabranham> does anyone here run i3blocks? Where are the example scripts for that put? (how can I use the 'memory' script that comes with it?)
* rnhmjoj[m] sent a long message: rnhmjoj[m]_2018-01-11_19:39:56.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/WcrcZxxMQMbTJMCaMHUvpyHN>
<rnhmjoj[m]> but srhb's solution it definitely better
orivej has quit [Ping timeout: 252 seconds]
nithor has joined #nixos
orivej has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srhb> rnhmjoj[m]: The similar nix file to yours would be quite short too with overlays :)
xcmw has joined #nixos
<srhb> { pkgs ? nixpkgs { overlays = [ (import ./overlay.nix) ]; } }: pkgs.thingFromOverlay
<srhb> er, <nixpkgs>
<srhb> sigh, "import <nixpkgs> { ... }" of course :-P
kier has quit [Ping timeout: 248 seconds]
nithor has quit [Ping timeout: 255 seconds]
rauno has quit [Ping timeout: 264 seconds]
Orbstheorem has left #nixos ["User left"]
maiksen has joined #nixos
<fgaz> srhb: actually that gives me an infinite recursion
<srhb> fgaz: What does exactly?
<fgaz> "at undefined position"
<srhb> fgaz: the nix-build command?
<fgaz> yup
<srhb> fgaz: You probably have used self somewhere where you shouldn't. Did you pastebin it somewhere?
<fgaz> nope, but i actually did'nt even use self
<srhb> fgaz: Hmm, well, need more info. :)
kier has joined #nixos
<fgaz> my overlay/default.nix is just `self: super: { mypkg = super.callPackage ./pkgs/mypkg; }`
<fgaz> and overlay/pkgs/mypkg/default.nix is an ordinary package which builds normally
<fgaz> well, at least it did build when it was standalone
<srhb> fgaz: That does look peculiar. And the nix-build command?
<srhb> Peculiar that it's erroring out, I mean.
<fgaz> nix-build default.nix, where the default.nix is the one you provided
<fgaz> i can push a branch with all this if you want
<srhb> fgaz: Please, I find it hard to keep track of :)
<fgaz> oh wait
<fgaz> it builds now
<fgaz> wat
<srhb> er um. :-)
<fgaz> aaah sorry. i forgot to save after adding the parentheses around "import ./overlay"
<remexre> Are other people able to build 1bg9yjdwdnl2pnbnlbxzx40nyngbfk41-perl-DBD-SQLite-1.54.drv ? I'm getting what look like failures in the test phase
<srhb> fgaz: Oh goodie. :) Things make sense again.
<fgaz> ahem, while we are at it...
<srhb> remexre: I'm able to build /nix/store/92adaxcn4y8dhi3zf1d0yc3rd5piivgh-perl-DBD-SQLite-1.54.drv
<fgaz> srhb: i use ${someotherpkg}/bin/thing in my buildPhase
<remexre> hmm, different hash though
<pkill9> might switch to NixOS sometime
<srhb> remexre: That's what I had around...
<srhb> remexre: :)
<fgaz> and that gives me a "cannot coerce a set to a string"
<remexre> Yeah, that means that mine is probably the strange one
nithor has joined #nixos
<fgaz> shouldn't it return the package's path in the store?
<srhb> fgaz: Assuming someotherpkg is what you think it is, yes, but I guess it isn't.
<fgaz> ok, just wanted to confirm
<fgaz> i want static types >.<
<srhb> fgaz: dhall2nix for great justice?
<srhb> :-)
nico202 has joined #nixos
<srhb> But yes, definitely.
<fgaz> dhall seems nice
<srhb> remexre: I'm on unstable though
<srhb> Yeah, very.
<fgaz> would it work as a nix frontend language?
<remexre> srhb: ditto...
<srhb> I don't see why not.
<srhb> But that's kind of saying "in an alternate universe where Nix was a different language, could Nix be X?" -- so I guess that's sort of free "wisdom" :-P
<marek> I'm really trying hard to contribute to nixpkgs, but almost everywhere is already there! :) is there any kind of WishList or something, somewhere?
<toppler> marek: I want to get this game oolite packaged.
* marek googles
<buovjaga> marek: do you have a Raspberry Pi? :)
<srhb> marek: I think there's also a lot of issues on the tracker with requests :)
<marek> toppler: well, I hoped for something easy :)
rauno has joined #nixos
<marek> srhb: on github?
<marek> buovjaga: no :( why?
<toppler> marek: It might be easy now. Last I looked, it was some problem with it being based on Objective-C.
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/3007961d3de (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
<buovjaga> marek: well NixOS for aarch64 needs more love :)
nix-gsc-io`bot has quit [Client Quit]
<marek> srhb: that might be the best way to start probably
nithor has quit [Ping timeout: 252 seconds]
<srhb> marek: At least worth looking through. There's probably also a lot that aren't even tagged. :)
<buovjaga> marek: Wayland support would be nice to have :) https://github.com/NixOS/nixpkgs/issues/5071
<buovjaga> I think that is on the wishlist of many
<gchristensen> buovjaga: perhaps you'd be interested in #nixos-aarch64
<buovjaga> gchristensen: I've been there once and it was ok :)
<srhb> gchristensen: Any idea what gcofborg is on about? https://github.com/NixOS/nixpkgs/pull/33755#issuecomment-357031712
<buovjaga> (they didn't slap me for asking silly things)
<srhb> I can't reproduce that locally.
<gchristensen> uhh that should definitely be fixed :|
<srhb> Hehe, no rush
<gchristensen> (I mean, already)
<srhb> Ah.
<gchristensen> the problem is nix-instantiate ./nixos/release.nix -A tests.keymap.colemak produces .x86_64-linux and .aarch64-linux test drvs, which is ... weird
<srhb> Aaaah
<gchristensen> but, I had a patch in to fix this, I'm not sure how it got rolled back by mistake
<srhb> Of course that's how it evaluates them. I calling the keymap.nix expression directly. Now it makes sense, thank you :)
<srhb> I was*
<gchristensen> I'll check in to why it is doing the wrong thing again tonight
<srhb> !m gchristensen
<[0__0]> You're doing good work, gchristensen!
<gchristensen> :)
mrkgnao has quit [Quit: WeeChat 2.0]
nithor has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
concatime has joined #nixos
<nico202> any way to have nested nix-shells? I mean, nix-shell --pure on a shell.nix file, then nix-shell'ing other shell.nix to add things without having to close the first one and the childs. Or a "live switch" to the new shell.nix
<srhb> nico202: Not in any good way
<toppler> I do it a fair bit and my PS1 and terminal aren't happy.
<toppler> So would like to hear about the issues.
nithor has quit [Ping timeout: 255 seconds]
balsoft has joined #nixos
balsoft has left #nixos [#nixos]
<nico202> yes the terminals screws up, that's why I'm asking .-. found issue #1671
<LnL> it should work with 1.12
<LnL> yeah
bpa has joined #nixos
<nico202> LnL: oh I'm on 1.11.6, I'll have to wait. However there are various open issues around, some might be closed
<nico202> *1.11.16
nithor has joined #nixos
concatime has quit [Quit: Page closed]
m0rphism has joined #nixos
buovjaga has quit [Remote host closed the connection]
mk-fg has quit [Ping timeout: 265 seconds]
mk-fg has joined #nixos
mk-fg has quit [Changing host]
mk-fg has joined #nixos
leapingfrogs has joined #nixos
fyuuri has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
asuryawanshi has quit [Ping timeout: 265 seconds]
<srhb> uh oh... even rolling back nixpkgs doesn't fix the test issues
* srhb thinks
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to master: https://git.io/vNs3X
NixOS_GitHub has left #nixos [#nixos]
<NixOS_GitHub> nixpkgs/master 1566b47 José Romildo Malaquias: materia-theme: 20171213 -> 20180110
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee closed pull request #33736: materia-theme: 20171213 -> 20180110 (master...upd.materia) https://git.io/vN3vR
NixOS_GitHub has left #nixos [#nixos]
<srhb> Nevermind it does. Phew.
JosW has joined #nixos
leapingfrogs has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
hamishmack has quit [Quit: hamishmack]
eljih has quit [Quit: Leaving]
eljih has joined #nixos
<aborsu> Hello, is there a function in the lib to get the bin folder of a package? In cas there is a sbin instead of bin?
<srhb> aborsu: Not that I know of. You could write your own logic for it though.
raynold has joined #nixos
<cransom> aborsu: the default for most packages is that the fixupPhase will move sbin/* to bin/
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] acowley opened pull request #33756: pngpp: darwin support (master...pngpp-darwin) https://git.io/vNssF
NixOS_GitHub has left #nixos [#nixos]
<copumpkin> I thought we generally tried to avoid sbin inside packages
<srhb> We do..
bennofs has quit [Ping timeout: 255 seconds]
dan_b has joined #nixos
bennofs has joined #nixos
swayf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dezgeg has joined #nixos
eljih has quit [Quit: Leaving]
eljih has joined #nixos
eljih has quit [Client Quit]
eljih has joined #nixos
<LnL> l
<thoughtpolice> Is there a standardized situation for handling packages that just have upstream Nix expression? In particular, I have been adding/working on bcachefs in my spare time and added some nice expressions there -- is there a precedent in Nixpkgs already for just replacing *our* bcachefs-tools with something like, `import "${fetchFromGitHub { ... }}/default.nix"` or something?
<LnL> that's not allowed in nixpkgs
<thoughtpolice> I was wondering if there was a policy on this (it wasn't always possible in any case)
<LnL> hydra runs evaluation in restricted mode so it wouldn't work
<thoughtpolice> Ah, right.
balsoft has joined #nixos
balsoft has left #nixos [#nixos]
nithor has quit [Ping timeout: 240 seconds]
<Ankhers> I have recently been asked to submit a talk to the MongoDB World 2018 conference. I am trying to collect a couple ideas right now. If anyone has a topic that they would like to hear about, please let me know.
<Ankhers> I apologize if that message is offtopic.
JosW has quit [Quit: Konversation terminated!]
alex`` has quit [Ping timeout: 276 seconds]
simendsjo has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
nithor has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/3007961d3de (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [Client Quit]
Slabity has quit [Ping timeout: 248 seconds]
jmiven has quit [Quit: co'o]
nithor has quit [Ping timeout: 265 seconds]
ryanartecona has quit [Quit: ryanartecona]
jmiven has joined #nixos
hamishmack has joined #nixos
Slabity has joined #nixos
vidbina has joined #nixos
doctorrockso has joined #nixos
noobly has joined #nixos
nithor has joined #nixos
<doctorrockso> is anyone here able to build cabal-install on current nixpkgs-unstable? For me, running `nix-build '<nixpkgs>' -A haskell.packages.ghc802.cabal-install` fails because cabal-install doesn't have the right version of the Cabal package
<doctorrockso> this doesn't seem like a platform thing, but I'm running OSX
<noobly> hello, what should be a simple solution of connecting to a new wireless network is giving me a big headache. I followed this https://chris-martin.org/2015/installing-nixos but it failed, and also followed the nixos guide on wireless networks and edited both my config.nix and wpa_supp.conf with the appropriate info, but upon both restarting wpa_supp and nixos-rebuild switch-ing nothing has worked
<noobly> SSID and key are confirmed as correct as well ;-)
<noobly> networking.wireless is enabled, networking.networkmanager is disabled
<Slabity> noobly: Any information on what failed? Were you able to build your configuration?
<el_putin> patchelf reads elf files right?
<Aleksejs> noobly: on my side, notworking.networkmanager.enabled=true and adding wifi via nmtui did the trick. Do not forget to check Available for all users
nithor has quit [Ping timeout: 255 seconds]
<noobly> That's better information to provide, thanks. I'll get it one sec! Build is successful, and actually indicates good news by saying wpa_supplicant.serivce was started as one of the "following new units"
<noobly> Aleksejs: It's just that I did it flawlessly a couple nights under a diff network, now I'm having all sorts of trouble!
<Slabity> noobly: +1 on using networkmanager with nmtui. It's much more convenient than rebuilding your system when you add a new access point
<Aleksejs> I had some sorts of trouble when I tried to do it via .nix. Then I let nmtui do the job and everything works flawlessly
<noobly> Slabity: Ok, I'll look into that immediately after hacking this together. I definately need an easier system than my existing one. I don't switch networks often but when I do it's painful
Slabity has quit [Remote host closed the connection]
szicari has joined #nixos
<noobly> After stopping systemctl, following up wpa_supplicant -B -i 'my_interface' -c <(wpa_passphrase 'my_SSID' 'my_key'), I get the errors "Failed to open config file /dev/fd/63, no such file or directory AND failed to read or parse configuration "/dev/fd/63"
<noobly> which is a bunch of jibberish to me, but probably an important bit of info, unfortunately Slabity has left just in time lol
<Aleksejs> have you tried nmtui yet?
<noobly> No, I'll do that now. I just felt like I was so close to getting this to work, but long term it certainly sounds like nmtui is the way to go
pkill9 has quit [Quit: WeeChat 2.0]
<noobly> Aleksejs: so in this case, I want to comment out networking.wireless.enable = true; correct?
sigmundv__ has joined #nixos
<Aleksejs> networking.networkmanager.enable=true
FRidh2 has quit [Quit: Konversation terminated!]
nithor has joined #nixos
hiratara has quit [Ping timeout: 255 seconds]
<noobly> Aleksejs: I've got that, but I thought you can't have networking.wireless and networking.networkmanager enabled in tandem
<Aleksejs> yes, I don't have wireless.enabled in .nix file
<noobly> tandem was the wrong word, enabled simultaneously woudl be better
<noobly> oh ok just making sure, thx
hiratara has joined #nixos
doctorrockso has quit [Ping timeout: 252 seconds]
nithor has quit [Ping timeout: 276 seconds]
swayf has joined #nixos
Intensity has quit [Ping timeout: 246 seconds]
swayf_ has joined #nixos
klntsky has quit [Ping timeout: 272 seconds]
swayf has quit [Client Quit]
thc202 has quit [Ping timeout: 260 seconds]
klntsky has joined #nixos
<LnL> ofborg will be down for the next >1h so evaluations, etc. won't run
ryanartecona has joined #nixos
nix_newb has joined #nixos
<nix_newb> hello, i used patchelf to add zlib to rpath and i still get cannot load libz.so.1 when starting the binary
<nix_newb> ldd shows libz.so.1 not found
nithor has joined #nixos
<LnL> what's the output of ldd
<el_putin> try using patchelf --add-needed
<el_putin> replacing libz.so.1 with the full path to the libz.so.1
nithor has quit [Ping timeout: 246 seconds]
<nix_newb> el_putin: add_needed fixed it thanks
alexteves has quit [Ping timeout: 246 seconds]
<nix_newb> do you know why i needed to use that
orivej has quit [Ping timeout: 248 seconds]
thc202 has joined #nixos
<el_putin> so it does not search for it and fail if it is in a non standard location such as /tmp/libz.so.1
<nix_newb> is there way to locate which pacakge a lib belong to ?
<el_putin> idk
<LnL> !nix-index
<LnL> hmm, guess that doesn't exist yet https://github.com/bennofs/nix-index
cement has quit [Ping timeout: 264 seconds]
<nix_newb> LnL: thanks
nithor has joined #nixos
jabranham has quit [Ping timeout: 276 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 closed pull request #33756: pngpp: darwin support (master...pngpp-darwin) https://git.io/vNssF
NixOS_GitHub has left #nixos [#nixos]
szicari has quit [Quit: szicari]
hiratara has quit [Remote host closed the connection]
hiratara has joined #nixos
Intensity has joined #nixos
drakonis has quit [Ping timeout: 255 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Nadrieril opened pull request #33757: pythonPackages.weboob: 1.1 -> 1.3 (master...update-weboob) https://git.io/vNs09
NixOS_GitHub has left #nixos [#nixos]
ryanartecona has quit [Quit: ryanartecona]
simukis has quit [Ping timeout: 240 seconds]
concatime has joined #nixos
<concatime> Hi guys.
<concatime> (or girls)
coot___ has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
jtojnar has quit [Ping timeout: 264 seconds]
bpa has quit [Remote host closed the connection]
bennofs has quit [Ping timeout: 276 seconds]
noobly has quit [Quit: Page closed]
pjan_ has joined #nixos
xcmw has joined #nixos
<aborsu> @cransom thanks. Thats the info i needed
marcinkuzminski has quit [Ping timeout: 268 seconds]
ambro718 has quit [Ping timeout: 240 seconds]
davidcl has quit [Ping timeout: 240 seconds]
linarcx has joined #nixos
davidcl has joined #nixos
kgz has quit [Ping timeout: 268 seconds]
linarcx has quit [Read error: Connection reset by peer]
linarcx has joined #nixos
marcinkuzminski has joined #nixos
drakonis has joined #nixos
<sphalerite> Is there a way to have /run/user/$uid continue to exist even if the user isn't logged in? I keep losing my tmux sessions on a remote server because it gets unmounted when I log out
<sphalerite> I can send tmux the USR1 signal to have it recreate the socket, but it's an annoying workaround and there are some other things that don't go right because of the missing directory too
mkoenig_ has joined #nixos
<samueldr> I think it's related to lingering
<samueldr> weirdly, on nixos, it seems my tmux session continues to live (17.09, pretty much default tmux)
mkoenig has quit [Ping timeout: 260 seconds]
jtojnar has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
linarcx has quit [Remote host closed the connection]
yegle has quit [Quit: WeeChat 2.0]
Adluc has joined #nixos
alpha_sh_ has quit [Ping timeout: 265 seconds]
drakonis has quit [Read error: Connection reset by peer]
nithor has quit [Ping timeout: 255 seconds]
<sphalerite> oh yeah it's because I have it set up to use /run/user/$uid using a wrapper
<aborsu> If any one is still awake, I would love to have some feedback on my first attempt at packaging a new module. https://github.com/NixOS/nixpkgs/pull/33673
<sphalerite> so it would work if I just left that bit alone
<sphalerite> but regardless, nix-shell also doesn't like /run/user/1000 not being there and I need it to be able to run when I'm not logged in
alpha_sh has joined #nixos
marzzzello has joined #nixos
marzzzello has quit [Client Quit]
aborsu has quit [Remote host closed the connection]
verite has joined #nixos
<LnL> yeah, that's annoying
nithor has joined #nixos
aborsu has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] flokli opened pull request #33758: python: remove unneeded name attributes, remove rec, make afew an application (master...py-fixes) https://git.io/vNs2F
NixOS_GitHub has left #nixos [#nixos]
aborsu has quit [Client Quit]
aborsu has joined #nixos
<flokli> ^ FRidh: can you take a look at this? I'm still a bit unsure if this should be done like its now, with the pname and version inside the let, to get rid of the rec
nithor has quit [Ping timeout: 276 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] basvandijk opened pull request #33759: pgmanage: 10.0.2 -> 10.1.0 (master...pgmanage-10.1.0) https://git.io/vNsaC
NixOS_GitHub has left #nixos [#nixos]
verite has quit [Ping timeout: 240 seconds]
vidbina has quit [Ping timeout: 248 seconds]
alexteves has joined #nixos
alexteves has quit [Remote host closed the connection]
alexteves has joined #nixos
<Wizek> Anyone knows what this error means?
<Wizek> bunch of lines `like .: File exists \n ..: File exists \n lib: /nix/store/wswca6xr92pybgk72krdki0b5h140wnw-vector-th-unbox-0.2.1.6/lib`
<Wizek> When trying to run `nix-shell -p 'haskell.packages.ghc822.developPackage{root=./.;}' -j4`
MP2E has joined #nixos
nithor has joined #nixos
kragniz has joined #nixos
ma27 has quit [Ping timeout: 255 seconds]
<Wizek> Actually, this seems to be the offending line instead: `/nix/store/wb62hy9zcxj33spy9nqi2312p0m3b9q8-hook/nix-support/setup-hook: line 40: /nix/store/wf6qggqwj041pvyrmz82bphjm9gms63s-ghc-8.2.2-with-packages/bin/ghc: Permission denied`
<Wizek> seems like /nix/store/wf6qggqwj041pvyrmz82bphjm9gms63s-ghc-8.2.2-with-packages/bin/ghc is missing
<Wizek> I wonder how that is possible
<Wizek> Any idead?
<Wizek> *ideas
nithor has quit [Ping timeout: 276 seconds]
pjan_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aborsu has quit [Quit: aborsu]
remexre has quit [Quit: Leaving]
erasmas has quit [Quit: leaving]
nix_newb has quit [Quit: Page closed]
sigmundv__ has quit [Ping timeout: 240 seconds]
concatime has quit [Quit: Page closed]