hc_ has joined #nixos
<disasm> symphorien: ah k, so that file defines config.boot.kernelPatches but kernelPackages needs to use the variable kernelPatches, so the let is inheriting the later defined config.boot.kernelPatches
<symphorien> mmmh
<disasm> so if a user wants to add a kernel patch, they just pass an array of the patches they want (a number are predefined in pkgs.kernelPatches) applied to the kernel
<disasm> sorry, took me a second to wrap my head around what was going on myself :)
<symphorien> ok
<symphorien> thanks
hc has quit [(Ping timeout: 240 seconds)]
hc_ has quit [(Ping timeout: 240 seconds)]
hc has joined #nixos
orivej has quit [(Ping timeout: 258 seconds)]
MichaelRaskin has quit [(Ping timeout: 255 seconds)]
asdfoiawe has quit [(Ping timeout: 258 seconds)]
Guest69682 has quit [(Ping timeout: 255 seconds)]
erictapen has quit [(Ping timeout: 248 seconds)]
Wizek_ has quit [(Ping timeout: 240 seconds)]
<iqubic> I can't tell if it does or not.
<juriq> Hi, I started to try nixos today. Up and running but I am a bit confused about some missing packages. For example I see that there should be a package 'uzbl', but 'nix-env -qa uzbl' does not return a match. I have added nixpgs-unstable as a channel.
pxc has quit [(Ping timeout: 246 seconds)]
<symphorien> use -qaP
<juriq> symphorien: no match with that either
<tilpner> nix-env -qa uzbl.\*
justan0theruser has quit [(Ping timeout: 255 seconds)]
<tilpner> iqubic - Should not
MichaelRaskin has joined #nixos
Sonarpulse has quit [(Ping timeout: 260 seconds)]
<juriq> tilpner: ah, that works. Thanks.
<iqubic> tilpner: yeah, I just noticed that.
<tilpner> juriq - If I want to see if a package exists, I use zsh tab-completion. nix-shell -p uz<TAB> completes to uzbl
<tilpner> Or "rg uzbl" in my nixpkgs clone
<iqubic> Is it possible to have NixOS run an arbitrary command as my WM?
<tilpner> When?
<juriq> tilpner: any setup needed for that, if I start zsh and type that I don't see that I can autocomplete on any letter
p4cman has quit [(Quit: Connection closed for inactivity)]
<tilpner> juriq - I have my own zsh config, but programs.zsh.enableCompletion or programs.zsh.enableAutosuggestions might do it
<iqubic> juriq: I think you need the "nix-zsh-completions" package added to your environment.systemPackages.
<tilpner> Maybe also add an alias for nix-shell...
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
mkoenig has quit [(Ping timeout: 240 seconds)]
erictapen has joined #nixos
<iqubic> I think just adding nix-zsh-completions should work.
<tilpner> I don't think so
<iqubic> tilpner: Why not?
jb55 has quit [(Ping timeout: 240 seconds)]
<disasm> I hardly see how that would work...
<tilpner> Unless /share/zsh/site-functions is in pathsToLink
<iqubic> Ah, I see.
<iqubic> Well, I have enableCompletions set to true.
<tilpner> /share/zsh is in pathsToLink. Hmm
<iqubic> I thought that was the case.
<tilpner> Still think it shouldn't work
<nh2> what's the right way to enable core dumps on NixOS, but not using systemd's (slow) core dump feature?
<iqubic> Either using nix-zsh-completions, or setting enableCompletion to true made my nix autocomplete stuff work.
<tilpner> Just enableCompletion will do it, if either of that did it
<disasm> tilpner: your correct, environment.pathsToLink = optional cfg.enableCompletion "/share/zsh"; so that's only in pathsToLink if enableCompletion is set
<juriq> hm didn't work for me. I have set both enableCompletion, enableAutosuggestions and added nix-zsh-completions
<iqubic> Have you shut off the terminal and turned it back on again?
<disasm> juriq: are you using any additional custom configuration for zsh?
<disasm> or using oh-my-zsh or prezto?
<juriq> it was not installed so I simply installed it. Done nothing at all with it
<iqubic> juriq: Did you edit your configuration.nix?
<iqubic> Did you then run "nixos-rebuild switch" afterwards.
<juriq> iqubic: yes with the three settings I mentioned above
<iqubic> Alright, just checking.
<juriq> then ran nixos-rebuild switch
<iqubic> As root, right?
<tilpner> Did you do what iqubic said about restarting your terminal?
<juriq> yes, with sudo
<iqubic> juriq: Have you restarted your terminal?
<juriq> yes started zsh again
<iqubic> How?
<juriq> bash is default so ctrl-c and then types zsh again
<tilpner> ^C would not exit zsh
<juriq> but tried to open a new terminal too now and same there
<juriq> sorry ctrl-d
<iqubic> ctrl-d won't close zsh either.
<tilpner> iqubic - With an empty input line it will
<juriq> I clearly get back to bash at least
<iqubic> Oh. Yeah. I guess it will
<juriq> I have however not tried anything with environment.pathsToLink mentioned above
<iqubic> juriq: You shouldn't need to mess with that right now.
<juriq> ok
jgertm has quit [(Ping timeout: 258 seconds)]
kp__ has quit [(Quit: WeeChat 1.4)]
<disasm> juriq: is programs.zsh.enable = true; set?
<juriq> disasm: aha, that worked. Thanks :)
<iqubic> Right. That is the issue.
ris has quit [(Ping timeout: 240 seconds)]
<iqubic> Nix only uses your zsh configuration stuff I you tell it that you want to use zsh.
<disasm> juriq: if you want to change your default shell for all users you can set users.defaultUserShell = "/run/current-system/sw/bin/zsh";
<disasm> or users.users.<username>.shell = "/run/current-system/sw/bin/zsh"; for a single user
nliadm has quit [(Quit: I'M OUT)]
<tilpner> users.users.<name>.shell = pkgs.zsh;
<iqubic> or users.defaultUserShell = pkgs.zsh;
justan0theruser has joined #nixos
juriq has quit [(Ping timeout: 255 seconds)]
athaller has quit [(Read error: Connection reset by peer)]
<disasm> you know, that makes a lot more sense, lol, fixing my config now
athaller has joined #nixos
<disasm> wait... wouldn't that be "${pkgs.zsh}/bin/zsh"
<tilpner> No, but I forgot why
<disasm> because pkgs.zsh.outPath would just be the path to where it is in the store, not the zsh binary
<tilpner> Ahh, types.shellPackage seems to be the reason
<tilpner> Later it does utils.toShellPath u.shell
<disasm> aha type = types.either types.path types.shellPackage;
iqubic has quit [(Remote host closed the connection)]
<disasm> so the zsh package defines the attr shellPath
<disasm> tilpner: now I'm curious, what's getent passwd show for your shell with pkgs.zsh set?
<tilpner> /run/current-system/sw/bin/zsh
<disasm> interesting...
mudri has joined #nixos
<tilpner> Did you expect something else?
<clever> the last user i saw having trouble with this, had the wrong value in $SHELL because they didnt fully relog
<disasm> aha... nixos/lib/utils.nix
<disasm> "/run/current-system/sw${shell.shellPath}" where zsh package defines shellPath as /bin/zsh
<disasm> clever: yeah, no problem here, was just really curious at how pkgs.zsh could be set as the defaultUserShell. 5 or 6 layers of nix files and I found the magic function!
<clever> ah
<disasm> it's toShellPath if anyone else is interested :)
<tilpner> "030454 tilpner | Later it does utils.toShellPath u.shell" :/
nliadm has joined #nixos
AAxxAA has joined #nixos
AAxxAA has quit [(Remote host closed the connection)]
<eqyiel[m]> how can I help autoconf find the correct CC here? https://gist.github.com/eqyiel/93185de6939d0b278cbf27784fa0961e
jtojnar has quit [(Read error: Connection reset by peer)]
jtojnar_ has joined #nixos
<eqyiel[m]> the derivation is libelf and it's being cross compiled
slack1256 has joined #nixos
<clever> eqyiel[m]: is $CC set?
sigmundv__ has quit [(Ping timeout: 260 seconds)]
<eqyiel[m]> according to the env-vars file that --keep-failed left behind, it's not
<eqyiel[m]> should that be provided by the glibc input?
<clever> eqyiel[m]: it looks like the .drv file you pointed to didnt load
<clever> you need to re-run nix-shell against the .drv that actually failed
<clever> and then check what genericBuild does
<clever> builder for ‘/nix/store/d2kl6ic7ydi9llfq6ggcq35yq8drpn0d-libelf-0.8.13-armv7l-unknown-linux-gnueabi.drv’ failed with exit code 1
mudri has quit [(Ping timeout: 260 seconds)]
<eqyiel[m]> clever: it seems like that does the right thing https://gist.github.com/f94e59565cea5fd487f53dee9dc7044d
hiratara has quit [(Quit: ZNC - http://znc.in)]
<clever> eqyiel[m]: what if you do that with nix-shell --pure?
<eqyiel[m]> unpacker appears to have produced no directories: https://gist.github.com/58d12ce45c641686392e8d7a5a7d5343
lambdamu has joined #nixos
<clever> eqyiel[m]: not sure then
hiratara has joined #nixos
<eqyiel[m]> yeah, I thought it would have failed in the same way at least
<clever> yeah
erictapen has quit [(Remote host closed the connection)]
lambdamu_ has quit [(Ping timeout: 240 seconds)]
<eqyiel[m]> I wonder if glibc should have gone into nativebuildinputs in this commit https://github.com/NixOS/nixpkgs/commit/2e337fe969a55f66dcd41715b73f9c68acc38867#diff-18be7a223ee081c723d7ae0da58fa818
hellrazor has joined #nixos
hellrazo1 has quit [(Ping timeout: 240 seconds)]
mbrgm has quit [(Ping timeout: 260 seconds)]
mbrgm has joined #nixos
jushur has quit [(Quit: The Borg joined forces with Skynet, Resistance is futile! Uploading has begun!)]
Supersonic112 has quit [(Ping timeout: 248 seconds)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
ebzzry has quit [(Ping timeout: 240 seconds)]
ebzzry has joined #nixos
slack1256 has quit [(Remote host closed the connection)]
nslqqq has quit [(Ping timeout: 246 seconds)]
jgertm has joined #nixos
drakonis has joined #nixos
jb55 has joined #nixos
Wizek has quit [(Quit: Connection closed for inactivity)]
nslqqq has joined #nixos
ertes has joined #nixos
pxc has joined #nixos
pxc has quit [(Ping timeout: 258 seconds)]
jb55 has quit [(Ping timeout: 240 seconds)]
kyren has quit [(Ping timeout: 248 seconds)]
kyren has joined #nixos
nh2 has quit [(Quit: Leaving.)]
hellrazor has quit [(Ping timeout: 240 seconds)]
hellrazor has joined #nixos
shanemikel has joined #nixos
schoppenhauer has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Gabriel439 opened pull request #30399: `NIX_PATH`-free `nixpkgs` (master...gabriel/nixpath_free_nixpkgs) https://git.io/vdXyI
NixOS_GitHub has left #nixos []
<shanemikel> anybody a haskell user?
schoppenhauer has joined #nixos
<shanemikel> i'm trying to make my project with docs (using doHaddock = true)... and i see docs generating during the build, but they dont end up in ./result
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] goffrie opened pull request #30400: Fix plymouth.themePackages. (master...master) https://git.io/vdXyl
NixOS_GitHub has left #nixos []
shanemikel has quit [(Ping timeout: 255 seconds)]
jgertm has quit [(Ping timeout: 240 seconds)]
shanemikel has joined #nixos
shanemik_ has joined #nixos
shanemikel has quit [(Ping timeout: 255 seconds)]
riclima has joined #nixos
<hl> Hello. How can I put the development headers of a package in the include path?
<hl> I have something which can't find libcap's <sys/capability.h>, even though it's in /nix/store/...-libcap-2.25-dev/include
notdaniel has joined #nixos
Nobabs27 has quit [(Quit: Leaving)]
Cronz0 has joined #nixos
<fearlessKim[m]> hl tlibcp is multioutput it seems. sho the path is libpcap.dev/include
<hl> fearlessKim: I added libcap.dev to environment.systemPackages, it doesn't work?
<adisbladis> hl: Don't add things like libcap to systemPackages
<hl> What do I do?
<adisbladis> hl: I'd do it in a nix-shell like so "nix-shell -p libcap"
<adisbladis> And in that shell "gcc -lcap ..."
<hl> That still doesn't work.
<adisbladis> Works just fine building one of my projects with caps
<hl> nix-shell -p libcap.dev
<hl> clang -c x.c
<hl> <sys/capability.h> not found.
<adisbladis> hl: Try adding clang to your nix-shell: nix-shell -p libcap clang
jgertm has joined #nixos
<hl> Works. How can I cause NIX_CFLAGS_COMPILE to be set properly outside of nix-shell?
Oida has quit [(Ping timeout: 240 seconds)]
oida has joined #nixos
iqubic has joined #nixos
justanotheruser has joined #nixos
justan0theruser has quit [(Ping timeout: 248 seconds)]
jlle[m] has quit [(Ping timeout: 252 seconds)]
corngood has quit [(Ping timeout: 252 seconds)]
Exee7uvo[m] has quit [(Ping timeout: 252 seconds)]
csingley has quit [(Ping timeout: 258 seconds)]
jlle[m] has joined #nixos
jgertm has quit [(Ping timeout: 240 seconds)]
corngood has joined #nixos
Exee7uvo[m] has joined #nixos
shanemik_ has quit [(Quit: My MacBook Air has gone to sleep. ZZZzzz…)]
notdaniel has quit [(Read error: Connection reset by peer)]
notdaniel has joined #nixos
drakonis has quit [(Quit: Leaving)]
fader_ has quit [(Read error: Connection reset by peer)]
fader_ has joined #nixos
shanemikel has joined #nixos
endformationage has quit [(Quit: WeeChat 1.9.1)]
pxc has joined #nixos
shanemikel has quit [(Quit: Textual IRC Client: www.textualapp.com)]
pxc has quit [(Ping timeout: 248 seconds)]
notdaniel has quit [(Ping timeout: 240 seconds)]
<hyper_ch> makefu: ???
riclima has quit [(Quit: riclima)]
tmaekawa has joined #nixos
tmaekawa has quit [(Client Quit)]
Fare has joined #nixos
<Fare> I installed 17.09, and chromium-browser started behaving in strange ways that make it unusable
<hyper_ch> worked for me just fine on 17.09
<Fare> weird.
<Fare> maybe it doesn't like something about one of my extensions
<hyper_ch> don't know which one you use
<hyper_ch> try to run with with an empty provilde
<hyper_ch> and see how it behaves there
<Fare> looks like actually my video driver might be at stake
<Fare> mplayer won't play anymore (but vlc will) and ubuntu's chrome (in a chroot) will have funny window redrawing glitches.
jgertm has joined #nixos
CHIPPY has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/c46fa38c90 (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<hyper_ch> how would I create a .nix for a custom compiled curl that I can use within another nix-expression?
notdaniel has joined #nixos
Itkovian has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 2 new commits to master: https://git.io/vdXHd
<NixOS_GitHub> nixpkgs/master b2c1020 Anthony Cowley: pcl: qt4 -> qt5; 1.8.0 -> 1.8.1
<NixOS_GitHub> nixpkgs/master 2fdfefa Peter Hoeg: Merge pull request #30342 from acowley/pcl-qt5...
NixOS_GitHub has left #nixos []
Ivanych has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg opened pull request #30401: neomutt: 20170912 -> 20171013 (master...u/mutt) https://git.io/vdXHb
NixOS_GitHub has left #nixos []
Fare has quit [(Ping timeout: 260 seconds)]
pie_ has quit [(Ping timeout: 258 seconds)]
iqubic has quit [(Remote host closed the connection)]
iyzsong has joined #nixos
CHIPPY has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 22 new commits to master: https://git.io/vdXQ6
<NixOS_GitHub> nixpkgs/master 65b73d7 Peter Hoeg: ssh: deprecate use of old DSA keys...
<NixOS_GitHub> nixpkgs/master 1917e69 Peter Hoeg: dnsmasq nixos: make sure it always runs...
<NixOS_GitHub> nixpkgs/master 41306ca Peter Hoeg: smartd: set drive timeout
NixOS_GitHub has left #nixos []
<peterhoeg> Arrgh. Merge from wrong branch. I'm so sorry.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vdXQX
<NixOS_GitHub> nixpkgs/master cb61845 Vincent Laporte: ocamlbuild: remove unused arguments
NixOS_GitHub has left #nixos []
<hyper_ch> how would I create a .nix for a custom compiled curl that I can use within another nix-expression?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 21 new commits to master: https://git.io/vdXQD
<NixOS_GitHub> nixpkgs/master f359096 Peter Hoeg: Revert "sddm: silence error about missing wayland directory"...
<NixOS_GitHub> nixpkgs/master 2c67873 Peter Hoeg: Revert "include firmware with enableAllFirmware"...
<NixOS_GitHub> nixpkgs/master 5f6d2d1 Peter Hoeg: Revert "nvidia-firmware: init at 325.15"...
NixOS_GitHub has left #nixos []
jgertm has quit [(Ping timeout: 255 seconds)]
<adisbladis> peterhoeg: Oops :>
<peterhoeg> adisbladis: yeah....
<peterhoeg> Not such a proud moment.
<hyper_ch> good that git just can revert things "easily"*
<peterhoeg> hyper_ch: Assuming reverts count as well as I'm going to be WAAAAY ahead in the contributor stats...
<hyper_ch> :)
<ldlework> god damn Nix is amazing
<adisbladis> peterhoeg: You are twice as productive as everyone else! ;)
<peterhoeg> adisbladis: If you need help with "git revert", just let me know. I managed to squeeze in a bit of training time earlier.
<adisbladis> Haha :D
amir has quit [(Remote host closed the connection)]
<adisbladis> Nothing like training in production
<hyper_ch> that's how I revert https://xkcd.com/1597/
jacob has joined #nixos
jacob is now known as Guest63487
<adisbladis> hyper_ch: Just "git reset --hard" and force push
<adisbladis> Makes teams happy
amir has joined #nixos
<hyper_ch> not deleting and re-fetching everything?
<clever> hyper_ch: a hard reset just changes the local branch to point to any given commit in the repo
<clever> hyper_ch: and force push just changes the remote branch
<hyper_ch> clever: that's all git wizzardry for advanced magic users :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #30402: kde-applications: 17.08.1 -> 17.08.2 (master...kdeapplications_17_08_2) https://git.io/vdXQb
NixOS_GitHub has left #nixos []
<hyper_ch> clever: good that you're not in bed currently... I'm trying to compile a custom rtorrent version and for that I need custom curl, c-ares, xmlrpc libs with certain versions and comilation flags.... so, I can write nix expressions for all those libs as well, but how would I tell the rtorrent.nix to use those custom expressions?
<clever> hyper_ch: what do you want to change about rtorrent?
<clever> hyper_ch: why cant you just build rtorrent.overrideDerivation (drv: { src = ....; }); ?
<hyper_ch> compiling rtorrent-ps
<hyper_ch> ‎[08:56] ‎<‎clever‎>‎ hyper_ch: why cant you just build rtorrent.overrideDerivation (drv: { src = ....; }); ? --> because I have no idea what it is or even that it existed before you told me ;)
<clever> its in the nixpkgs manual
<hyper_ch> well, the manuals
<hyper_ch> there's just all information scattered all over the place....
<hyper_ch> and rtorrent and rtorrent-ps aren't the same
<clever> how much do they differ?
<hyper_ch> well, rtorrent-ps uses specific rtorrent version, there are tons of patches applied... it relies on specific curl, c-ares, xmlrpc versions
odi_ has joined #nixos
<clever> what happens if you just change the src to rtorrent-ps and see what nix does with it?
<hyper_ch> no idea what you mean by that
<clever> rtorrent.overrideDerivation (drv: { src = pkgs.fetchFromGitHub { owner = "pyroscope"; repo = "rtorrent-ps"; sha256 = "fixme"; rev = "fixme"; }; })
<clever> try building that expression
<hyper_ch> that won't work
<clever> why wont it work?
<clever> have you tried what i said yet?
odi__ has quit [(Ping timeout: 246 seconds)]
<hyper_ch> I know it won't work
kkini has quit [(Remote host closed the connection)]
kkini has joined #nixos
<adisbladis> hyper_ch: I just had a look of the arch aur package and the gentoo ones.
<adisbladis> Doesn't look like you have to patch curl or c-ares
<hyper_ch> adisbladis: maybe not... but need specific versions
<adisbladis> It doesn't look too bad
<hyper_ch> no idea what that all is
<clever> hyper_ch: the above nix expression fails, for different reasons
<clever> rtorrent-ps contains no actual code
<clever> its a heap of patches, lol
<clever> thats not how you fork things!!
<hyper_ch> anyway, still no inch further
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthewbauer opened pull request #30403: sqitch: fix on Darwin (master...sqitch-fix) https://git.io/vdX72
NixOS_GitHub has left #nixos []
<peterhoeg> hyper_ch: so instead of overriding src, you can try overriding patches and then use a list of fetchpatch expressions to apply the stuff from rtorrent-ps/patches
<clever> yeah
<clever> its mostly a puzzle of finding the right list of patches
<hyper_ch> peterhoeg: there's the next problem... how to supply a list of patches and checksums
<adisbladis> clever: Which the arch pkgbuild I sent the link to already did
<adisbladis> So it should be fairly easy to port
<hyper_ch> and still, it's all tested against specific versions of curl, xmlrpc and c-ares
<adisbladis> hyper_ch: The other distros don't seem to care about that
<hyper_ch> adisbladis: that's up to them
<adisbladis> I'd just go for it and see what breaks
<sphalerite> Anybody know where I could hunt down the source of a project that's basically dead, i.e. project site is down, was never on source forge or github, and such?
<hyper_ch> and where do I even put soemthing ike rtorrent.overrideDerivation (drv: { src = pkgs.fetchFromGitHub { owner = "pyroscope"; repo = "rtorrent-ps"; sha256 = "fixme"; rev = "fixme"; }; }) ? seperate .nix file? it also is needed for libtorrent
<hyper_ch> sphalerite: archive.org ?
<sphalerite> hyper_ch: ooooh of course! I'll give that a shot, thanks
<peterhoeg> hyper_ch: take a look at this gist: https://gist.github.com/2fece259026aa15d4a8f59fcada3ec3f
<peterhoeg> stick that into ~/.nixpkgs/config.nix
<peterhoeg> then do "nix-env -iA nixos.rtorrent-ps"
<hyper_ch> why config.nix?
<clever> thats how you apply package overrides
<peterhoeg> I only added one of the patches
<hyper_ch> I don't wanna build anything in user space
<peterhoeg> hyper_ch: you can always move it later
<clever> you want to test things with nix-build first
<peterhoeg> This is just one way to make sure you get it working
<hyper_ch> I have no idea what nix-build is or how to test things with it
<clever> hyper_ch: read the man page for it
<hyper_ch> and where to move it later?
<clever> nixpkgs.config in configuration.nix
<hyper_ch> clever: unfortunately nix/os' man pages aren't helpful
<peterhoeg> hyper_ch: if you try it the way I described, you will be able to see if you can get it to compile with the patches
<peterhoeg> We can then add it to nixpkgs afterwards
<hyper_ch> gotta go now anyway
hotfuzz_ has joined #nixos
hotfuzz has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vdX7b
<NixOS_GitHub> nixpkgs/master 0bd108d Vincent Laporte: ocamlmod: 0.0.8 -> 0.0.9
NixOS_GitHub has left #nixos []
orivej has joined #nixos
juriq has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix pushed 2 new commits to master: https://git.io/vdX5L
<NixOS_GitHub> nixpkgs/master 52bedcb Gleb Peregud: pgadmin3: 1.22.1 -> 1.22.2...
<NixOS_GitHub> nixpkgs/master c4160a4 Lancelot SIX: Merge pull request #30329 from gleber/pgadmin-upgrade-fix...
NixOS_GitHub has left #nixos []
juriq has quit [(Ping timeout: 248 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Mateon3 has joined #nixos
Mateon1 has quit [(Ping timeout: 240 seconds)]
Mateon3 is now known as Mateon1
rtjure has quit [(Ping timeout: 248 seconds)]
ma27 has joined #nixos
orivej has quit [(Ping timeout: 264 seconds)]
fendor has joined #nixos
akamaus has joined #nixos
<akamaus> hi all
fendor has quit [(Ping timeout: 246 seconds)]
<akamaus> does anybody know, how to specify a particular gcc version to be used by buildPythonPackage?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix pushed 1 new commit to release-17.09: https://git.io/vdX5M
<NixOS_GitHub> nixpkgs/release-17.09 f36ff95 Gleb Peregud: pgadmin3: 1.22.1 -> 1.22.2...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gnidorah reopened pull request #30358: mailang: fix working (master...mailnag) https://git.io/vd6FA
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix closed pull request #30321: Add postgis 2.4.0 (master...add-postgis-2.4.0) https://git.io/vdo82
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vdXde
<NixOS_GitHub> nixpkgs/master c275890 Vincent Laporte: ocamlPackages.ansiterminal: 0.6.5 -> 0.7
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] j-hao opened pull request #30404: qt5: fix Darwin build for 5.9.2 (master...master) https://git.io/vdXdv
NixOS_GitHub has left #nixos []
MP2E has quit [(Remote host closed the connection)]
ambro718 has joined #nixos
hellrazo1 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vdXdK
<NixOS_GitHub> nixpkgs/staging 6525c22 Vladimír Čunát: Merge branch 'master' into staging...
NixOS_GitHub has left #nixos []
fadenb has quit [(Ping timeout: 246 seconds)]
hellrazor has quit [(Ping timeout: 248 seconds)]
Itkovian has joined #nixos
<srhb> akamaus: Context?
thc202 has joined #nixos
<srhb> akamaus: I'm not sure exactly what you want to achieve, possibly override the stdenv python is using entirely.
mrkgnao has joined #nixos
Itkovian has quit [(Client Quit)]
juriq has joined #nixos
ixxie has joined #nixos
mrkgnao has quit [(Ping timeout: 248 seconds)]
<srhb> Speaking of which, I find it really unintuitive that python2.override { stdenv = overrideCC stdenv gcc5; } overrides the python2 gcc but (python2.override { stdenv = overrideCC stdenv gcc5; }).withPackages does not.
<srhb> In fact, isn't that a bug?
<ixxie> Say I install a package with Nix on Linux and want to deploy it as a service
<ixxie> I can't do it declaratively like with NixOS right?
<srhb> ixxie: Indeed.
jluttine has quit [(Remote host closed the connection)]
<srhb> ixxie: You could probably reuse the systemd service machinery and get the manual work down to linking the service in place on the system.
<ixxie> is it somehow more difficult to do so with Nix packaged software than with a native packager to the OS?
<srhb> No.
<srhb> Same deal. :)
<ixxie> yesterday I broke the CentOS box at work by abusing pip
<srhb> :|
<srhb> Ouch
<ixxie> so time to really start using Nix at work
<srhb> Yeah, good plan.
<ixxie> and since others share the machine and Delivery only supports CentOS officially, I will go for Nix on CentOS rather than NixOS
<ixxie> although of course, if I had it my way.... xD
<srhb> I think it's still far superior. The store is a huge advantage.
<srhb> I mean, superior to just CentOS.
<ixxie> yeah
roconnor_ has quit [(Ping timeout: 246 seconds)]
<ixxie> but the thing is, that machine is used for developing an analytics tool, so its A. actively ssh'ed into by team members, each with their own tooling and B. serves Jupyterhub
<akamaus> srhb, I'm trying to add cuda support to pytorch. And I get nvcc errors during build saying it doesn't support gcc-6
<ixxie> its the latter part I was worried about
<srhb> ixxie: Why?
<ixxie> srhb: well, first of all, Jupyterhub isn't packaged yet (but I will try and give that a shot this weekend myself)
<srhb> Oh, you want to replace the existing services?
<srhb> With nixified ones?
<ixxie> srhb: the thing is, I think I botched the system so bad we are better off reinstalling
<LnL> srhb: try with python27Packages.python.override ...
<srhb> Yeah..
<srhb> LnL: But why doesn't the other version work?
<ixxie> so I will need to redeploy the service anway
<akamaus> srhb, I tried using overrideCC like so https://pastebin.com/CeRcR0qc without any visible results.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vdXbt
<NixOS_GitHub> nixpkgs/master 5cca880 Justin Humm: notmuch-bower: init at 2017-09-27 (#29856)...
NixOS_GitHub has left #nixos []
jluttine has joined #nixos
<LnL> because withPackages uses the pythonPackages set
<srhb> LnL: Weird...
<LnL> changing pkgs.python has no impact on that
pxc has joined #nixos
<ixxie> srhb: I guess my main worry here is that I want to create reproducable development environments with Nix, but ideally also be able to create Jupyter notebooks with them too
Itkovian has joined #nixos
Wizek_ has joined #nixos
Wizek has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bendlas pushed 1 new commit to master: https://git.io/vdXbc
<NixOS_GitHub> nixpkgs/master 30b3b5d Herwig Hochleitner: announce myself as a maintainer...
NixOS_GitHub has left #nixos []
Itkovian has quit [(Remote host closed the connection)]
<ixxie> FRidh[m]: maybe you have an idea?
<ixxie> I am curious how you use jupyter in conjuction with Nix
Itkovian has joined #nixos
b has quit [(Quit: Lost terminal)]
pxc has quit [(Ping timeout: 246 seconds)]
ambro718 has quit [(Quit: Konversation terminated!)]
fadenb has joined #nixos
<srhb> LnL: (python27Packages.python.override { stdenv = ... ;}).withPackages (...) has the same issue..
ris has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ma27 opened pull request #30406: pythonPackages.yowsup: init at v2.5.2 (master...init/python-yowsup) https://git.io/vdXbQ
NixOS_GitHub has left #nixos []
ixxie has quit [(Ping timeout: 248 seconds)]
fadenb has quit [(Remote host closed the connection)]
fadenb has joined #nixos
<musicmatze> Good morning! What does this error message mean: "warning: Nix search path entry ‘/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs’ does not exist, ignoring" ?
<musicmatze> I just removed an old channel on my server (17.03) and added the new one (17.09)
<srhb> musicmatze Did you update the channel?
<srhb> I'm not entirely sure, but looks like it could happen if it weren't downloaded yet.
<musicmatze> as in `nixos-rebuild --upgrade` ?
<srhb> as in nix-channel --update
<srhb> (which is implied by nixos-rebuild --upgrade)
<musicmatze> when doing `nixos-rebuild --upgrade build -Q` the same error message is shown...
<srhb> musicmatze: sudo nix-channel --list ?
<musicmatze> Ah, after running `nix-channel --update` the error message is gone.
<srhb> Ah, good.
<musicmatze> so `nixos-rebuild --upgrade` seems to not work as intended?
<srhb> Not sure if it should work when it can't find nixpkgs really.
<musicmatze> well, now it works. Lets see what I have to update in my expressions to get the upgrade going :-)
<srhb> I agree that it's a little unintuitive.
<musicmatze> can you explain why the docs suggest to use the -small channel for servers? I'm running the non-small on my VPS and it works beautifully...
<srhb> Link?
<srhb> I've never heard that before.
<musicmatze> grep for "If you have a server, you may want to use the “small” channel instead"
<srhb> Ah, the explanation looks sensible to me
<srhb> What don't you like about it?
Cronz0 has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
<srhb> The test set that the small channels run are also smaller. The tests must complete before the channels update. KDE tests are irrelevant to your server, so having them block this or that security update is probably not something you want.
<musicmatze> there is no explanation... it just says "if server -> small channel", but not _why_
<musicmatze> that's true
<srhb> "hese are identical to the stable and unstable channels described above, except that they contain fewer binary packages. This means they get updated faster than the regular channels (for instance, when a critical security patch is committed to NixOS’s source tree), but may require more packages to be built from source than usual. They’re mostly intended for server environments and as such contain few GUI
<srhb> applications."
<adisbladis> musicmatze: Because on a server you generally require security upgrades faster
<musicmatze> sounds right.
<musicmatze> running two channels in parallel a good option, or should I completely switch to the small channel?
<adisbladis> These reach unstable-small pretty fast generally but might take time to backport and the unstable channel does desktop tests which might make it lag behind
<srhb> musicmatze: The small channel is just "ahead" of the regular ones.
<srhb> musicmatze: I'd say it makes little sense to have both.
<fearlessKim[m]> any idea how to best package the python bindings for gpg ? https://github.com/NixOS/nixpkgs/issues/30392
ison111 has quit [(Ping timeout: 248 seconds)]
<eqyiel[m]> can I add arbitrary environment variables in a derivation? I find myself needing to do this: `CFLAGS="-nostdlib -nostartfiles -nodefaultlibs -ffreestanding" CC="$NIX_BUILD_CC/bin/$BUILD_CC"CC="$NI
<eqyiel[m]> X_BUILD_CC/bin/$BUILD configurePhase`
<eqyiel[m]> I think it would work to abuse configureScript (like configureScript="CC=... ./configure" but I'd rather not do that
<eqyiel[m]> oops, I messed up pasting that command a bit
musicmatze has quit [(Ping timeout: 240 seconds)]
orivej has joined #nixos
schoppenhauer has quit [(Ping timeout: 248 seconds)]
<Moredread> I get a black screen after a second boot of a 'nixos-rebuild build-vm' vm. Any ideas how I can avoid this?
schoppenhauer has joined #nixos
<Moredread> I guess it does have an issue with the mode switch, but I can't find the option to disable it
pie_ has joined #nixos
<Moredread> setting boot.vesa = true works... still not ideal but it has to suffice
tmaekawa has joined #nixos
musicmatze has joined #nixos
simukis has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vdXNo
<NixOS_GitHub> nixpkgs/master eef496f Maximilian Bosch: pythonPackages.yowsup: init at v2.5.2 (#30406)...
NixOS_GitHub has left #nixos []
<srhb> fearlessKim[m]: something like src = "${gpgme.src}"; and then configurePhase = '' ./configure; cd lang/python ''; ?
h30_ is now known as h30
<Olgierd> hi. my nixos is not booting because stage 1 can't find /nix/store/somehash-nixos-system-somehostname-otherjunk/init, and makes the kernel panic. I booted from a special recovery partition I prepared for such occasions and indeed there is no file with that hash
hellrazo1 has quit [(Quit: WeeChat 1.9.1)]
hellrazor has joined #nixos
<Olgierd> how do I fix that without regenerating the system? running nixos-rebuild from chroot doesn't work
<Olgierd> and I can't boot older generations since I overuse nix-collect-garbage -d
<Olgierd> (by regenerating I mean building it clean from the configuration and moving /home /var etc.)
mortum5 has joined #nixos
<CrazedProgrammer> mount it to /mnt and nixos-install?
<Olgierd> will it work right for an installed system?
<CrazedProgrammer> probably, yes. i'd back up important files just to be sure
ma27 has quit [(Quit: WeeChat 1.9)]
<CrazedProgrammer> if you're using uefi, mount the efi partition on /mnt/boot too
ma27 has joined #nixos
<Moredread> now nscd.service fails after the first boot, even with a minimal config...
Capprentice has joined #nixos
arjen-jonathan has joined #nixos
<jluttine> how do i add zip support for ark in nixos?
<Moredread> nvm had no hardware configuration imported
<sphalerite> jluttine: I don't know how ark interfaces to its backends but maybe just installing zip and unzip will do the trick
ixxie has joined #nixos
ma27 has quit [(Ping timeout: 240 seconds)]
<jluttine> sphalerite: yes! unzip package solved the issue. i had zip already, i thought it was sufficient..
<sphalerite> :)
<freeman42x> I put `(python35.withPackages (ps: with ps; [ numpy toolz tensorflow Keras]))` in `systemPackages` but when I enter python shell and type import tensorflow it can not find the module. What am I missing?
<freeman42x> ah, I also had `python35Full` previously installed, I'll remove it, probably collision
<freeman42x> yup, that was it, now I can import tensorflow
Curiontice has joined #nixos
Itkovian has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 1 new commit to master: https://git.io/vdXAD
<NixOS_GitHub> nixpkgs/master 60a7a4d Daiderd Jordan: erlang: fix ssl on darwin
NixOS_GitHub has left #nixos []
Capprentice has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
ma27 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 1 new commit to release-17.09: https://git.io/vdXAH
<NixOS_GitHub> nixpkgs/release-17.09 c492a74 Daiderd Jordan: erlang: fix ssl on darwin...
NixOS_GitHub has left #nixos []
Curiontice has quit [(Ping timeout: 255 seconds)]
Itkovian has quit [(Client Quit)]
bennofs has joined #nixos
iyzsong has quit [(Read error: Connection reset by peer)]
Guest63487 has quit [(Quit: Lost terminal)]
asdfoiawe has joined #nixos
tmaekawa has quit [(Quit: tmaekawa)]
<sphalerite> How can I use nixos-option for attrpaths that include a . ?
<sphalerite> nix-instantiate --eval '<nixpkgs/nixos>' -I nixos-config=/etc/nixos/configuration.nix -A 'config.systemd.services."network-addresses-tinc.lugnet"'
<sphalerite> works
<sphalerite> but `nixos-option 'systemd.services."network-addresses-tinc.lugnet"'` doesn't
<avn> sphalerite: I think quotes expands too early
erictapen has joined #nixos
<sphalerite> right, but what can I do about that :/
<sphalerite> I guess file a bug report against nixpkgs :p
csingley has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #30358: mailnag: fix working (master...mailnag) https://git.io/vd6FA
NixOS_GitHub has left #nixos []
<srhb> sphalerite: Can't you just drop the quotes entirely?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to release-17.09: https://git.io/vdXxS
<NixOS_GitHub> nixpkgs/release-17.09 0127638 gnidorah: mailnag: fix working (#30358)...
NixOS_GitHub has left #nixos []
<sphalerite> srhb: no, because network-addresses-tinc.lugnet is an attribute name with a dot in it, not an attribute path :(
<srhb> Oh, right.
<sphalerite> it's a bug in nixos-option. I don't know if there's a workaround
<srhb> None obvious at least, yeah.
seppellll has joined #nixos
<srhb> 'systemd.services.\"my.test\".foo' "works"
<srhb> As in, the value is actually extracted, but you also get "An error occurred while looking for attribute names."
<sphalerite> you do? I don't get any output when nixos-option fails
xdelv has quit [(Ping timeout: 240 seconds)]
xdelv has joined #nixos
<srhb> As long as I don't try to get the entire my.test attributeset, I do.
<tilpner> If you pass --verbose, this translates to let option = nixos.options.systemd.services.my.test.foo
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/f36ff9596b (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
zetok has quit [(Ping timeout: 248 seconds)]
<tilpner> sphalerite - Try nixos-option systemd.services.'\"network-addresses-tinc.lugnet\"' --verbose
<sphalerite> `result='error: syntax error, unexpected $end, expecting '\''"'\'''`
<srhb> That's nixos-option 'systemd.services.\"my.test\".enable' --verbose
<srhb> I cannot get the entire definition of my.test though.
<srhb> Has an earlier stateVersion ever been deprecated yet, and how does that work?
zetok has joined #nixos
<freeman42x> any ideas if there is a python package for `ImportError: No module named 'quiver_engine'` I couldn't find any on https://nixos.org/nixos/packages.html
csingley has quit [(Quit: WeeChat 1.9.1)]
csingley has joined #nixos
<srhb> freeman42x: Looks like it's not packaged.
arjen-jonathan has quit [(Ping timeout: 255 seconds)]
mrkgnao has joined #nixos
<freeman42x> srhb: cheers, yeah, I think it is not. I really need to study the nix language
ma27 has quit [(Ping timeout: 248 seconds)]
ma27 has joined #nixos
<srhb> freeman42x: You can probably use one of the nix expression generators to get started. Pypi2nix for instance
<srhb> Or find a python package with similar dependencies to copy.
<elvishjerricco> Ugh. `linuxPackages_testing` doesn't seem compatible with nvidia X drivers at the moment. Unsurprising, but disappointing
b has joined #nixos
<ixxie> any Jupyter users around?
<fearlessKim[m]> srhb: thanks for the tip, I am going to try it. I might have been missing the --enable-python flag (which is strange since in my test, it geenrated the setup.py without it)
joepie91 has quit [(Read error: Connection reset by peer)]
joepie91___ has joined #nixos
joepie91___ has quit [(Changing host)]
joepie91___ has joined #nixos
<sphalerite> ixxie: please ask your question, not if any xyz user is around…
<freeman42x> > freeman42x: You can probably use one of the nix expression generators to get started. Pypi2nix for instance
<freeman42x> Thank you. That's very useful
pxc has joined #nixos
<bennofs> Is there a NixOS rpi image that can boot headless?
<bennofs> I don't have any HDMI monitor around... :/
<srhb> fearlessKim[m]: honestly I don't think that flag matters much
<srhb> fearlessKim[m]: The big deal was the split derivations, I think.
pxc has quit [(Ping timeout: 255 seconds)]
<srhb> fearlessKim[m]: Which I'm not sure I got quite right, but hopefully you can play around with it.
adisbladis has quit [(Read error: Connection reset by peer)]
adisbladis has joined #nixos
<ixxie> alrighty, what are some ways of working with Jupyter in Nix? Like say I want to supply particular environments - defined with Nix expressions - to my Jupyter notebooks, are there tried and proven ways of doing that?
<srhb> fearlessKim[m]: (I'm worried I might have pointed "too much" at the include dirs, so I'm not sure the libraries do survive"
<fearlessKim[m]> srhb: I confirm it works. It's weird, you do "preConfigure = ''
<fearlessKim[m]> ./configure --enable-languages=python
<fearlessKim[m]> cd lang/python" while I thought the buildPythonPackage would do it automatically. Then I had a postConfigure = ''cd lang/python''.
JosW has joined #nixos
<srhb> fearlessKim[m]: Do which part exactly?
<fearlessKim[m]> srhb: yes that's why I want to send a patch upstream so that it doesn't break on the next gpg iteration
<srhb> fearlessKim[m]: Basically I'm using the preConfigure to run the outer configure script which seems to generate the normal python stuff for a regular buildPythonPackage configurePhase
<srhb> fearlessKim[m]: So I'm assuming the regular configurePhase will use the generated setup.py
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/c492a74af9 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
<fearlessKim[m]> anyway a big thanks !
joepie91___ is now known as joepie91
acarrico has quit [(Ping timeout: 240 seconds)]
ShalokShalom_ has joined #nixos
<srhb> fearlessKim[m]: You are welcome :)
chreekat has joined #nixos
ShalokShalom has quit [(Ping timeout: 240 seconds)]
<hyper_ch> peterhoeg: so, I'm back... I don't have a ~/.nixpkgs folder
<hyper_ch> peterhoeg: so, I'm back... I don't have a ~/.nixpkgs folder and neither a config.nix
asdfoiawe has quit [(Ping timeout: 246 seconds)]
<srhb> hyper_ch: Might want to check the nixpkgs manual. :)
<srhb> hyper_ch: Neither the NixOS or the Nix one is concerned with this.
<hyper_ch> srhb: not sure how that is related
<srhb> hyper_ch: Oh, I thought you were trying to make a package override in ~/.config/nixpkgs/config.nix
erictapen has quit [(Ping timeout: 260 seconds)]
<hyper_ch> srhb: well, just trying to do what peterhoeg told me... he said to pout some code into the config.nx... but neither the folder nor the file exist
arjen-jonathan has joined #nixos
mrkgnao has quit [(Ping timeout: 260 seconds)]
<srhb> hyper_ch: ~/.config/nixpkgs/config.nix doesn't pop into existence on its own.
<hyper_ch> srhb: so I noticed... hence my question how to make it? Do I need to do something special.. can I just create it.... I have no idea
<srhb> hyper_ch: You can just create it.
<hyper_ch> srhb: which leads to the next problem: error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied
<srhb> What caused that error?
<hyper_ch> so just creating that file and trying to run that nix-env -iA leads to another error
<hyper_ch> [hyper@rubi:~]$ nix-env -iA nixos.rtorrent-ps
<hyper_ch> error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied
<srhb> What's in your config file?
<hyper_ch> and as you said, I created now that file, added the content given by peterhoeg, run the command given by peterhoeg and get that error
<srhb> hyper_ch: And that error only occurs when you have that file present?
<srhb> That's very strange.
<hyper_ch> which file?
<srhb> config.nix
<hyper_ch> yes
<hyper_ch> I just created it, added the content, and run the command peter has given
<srhb> And when you run the command without the file present?
<hyper_ch> same error
<srhb> OK, good, so it's just your system that's broken for user installs, nothing to do with the config.nix
<hyper_ch> no idea what you mean by broken for user installs
<hyper_ch> I never wanted to do user installs
<srhb> That's what nix-env -iA does.
<hyper_ch> it's peterhoeg and clever who said to do it first that way
<srhb> Well, I don't care what you do. :P
<hyper_ch> I know what nix-env -iA is.. but I don't know what you mean by broken for user installs
<srhb> nix-env -iA is broken because it cannot write to the nix database.
ma27 has quit [(Quit: WeeChat 1.9)]
<srhb> (Which is probably quite bad.)
ma27 has joined #nixos
<hyper_ch> no idea, I don't use user installs at all
<srhb> You're using it now!
<hyper_ch> because I'm told to
<srhb> Yes, but that's still using it. Your motivation is irrelevant to the error :P
<hyper_ch> so how get this installed by configuration.nix?
<hyper_ch> or how do overrides by configuration.nix?
<srhb> You move the package override into your configuration.nix
<hyper_ch> that's what I actually wanna know
<hyper_ch> and where there?
<srhb> nixpkgs.config.packageOverrides
<hyper_ch> if I just added it before the closing bracket, I get https://paste.simplylinux.ch/view/raw/33c0dbba
<srhb> hyper_ch: nixpkgs.config.packageOverrides, not packageOverrides.
<hyper_ch> thanks you
<srhb> hyper_ch: It's documented as a nixos option, and the actual nixpkgs config is documented in the nixpkgs manual :)
<srhb> Both are well worth reading.
<hyper_ch> srhb: I gave up on reading the documentations as it rarely makes any sense and has no examples and things are scattered in thousands of places
<bennofs> Are cross-built packages substitutable for "real" packages?
<srhb> hyper_ch: Please don't, it's a little annoying to act as your documentation proxy. We can help you get familiar with where to look for which things though :)
<hyper_ch> "We can help you get familiar with where to look for which things though" --> that's already a big problem.... you just can't find the things in the documentation
<srhb> Right, it is difficult when you don't know which parts are nixos, which are nixpkgs and which are nix.
<srhb> Once that starts becoming clear, it gets easier. :)
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
<srhb> hyper_ch: Why not?
<hyper_ch> I have no idea what it means or how to use it
seppellll has quit [(Ping timeout: 255 seconds)]
<hyper_ch> also intersting it says to use ~/.config/nixpkgs/config.nix but not .nixpkgs/config.nix
<srhb> hyper_ch: ~/.nixpkgs/config.nix is deprecated
<srhb> hyper_ch: What's unclear about the description?
<hyper_ch> for me? everything is unclear as I have no idea what do do with that
<srhb> hyper_ch: It's a function that transforms nixpkgs into a different nixpkgs for you to use. Modifying or adding packages along the way
<srhb> hyper_ch: So it gets fed the original nixpkgs, and it outputs a new nixpkgs with your modifications, which is then used.
asdfoiawe has joined #nixos
<hyper_ch> anyway, I did now add that to my configuration.nix... it didn't download/configure/install rtorrent itself... I added now rtorrent-ps to the cofniguration.nix, thinking that because of the modficiation the package was named "rtorrent-ps" (--> rtorrent-ps = pkgs.stdenv.lib.overrideDerivation pkgs.rtorrent (oldAttrs: { ) but still not working... it complains about rtorrent-ps not being found
notdaniel has quit [(Quit: Leaving)]
<srhb> Do you mean you added rtorrent-ps to your systemPackages?
<hyper_ch> yes (I think)
<srhb> Paste your configuration.nix then.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vd1eh
<NixOS_GitHub> nixpkgs/master 415db05 Vincent Laporte: ocamlPackages.uuidm: 0.9.5 -> 0.9.6
NixOS_GitHub has left #nixos []
<srhb> Looks right to me. No errors on nixos-rebuild switch?
<hyper_ch> error: undefined variable ‘rtorrent-ps’ at /etc/nixos/configuration.nix:336:9
ShalokShalom_ is now known as ShalokShalom
<srhb> Ah.
<hyper_ch> but with the override I've given it a new name
<hyper_ch> or at least I thought I did
<srhb> Yes, you did.
<srhb> Let me just test that, I must be forgetting something.
<hyper_ch> or does the config part needs to prepend the package list?
<srhb> the packageOverrides is modifying the pkgs argument itself to add rtorrent-ps
<srhb> oh
<srhb> You have a typo.
<hyper_ch> well, in bash you first need to define a custom function before you can use them in the script itself
<srhb> nixpkgs.config.packageOverrides
<srhb> hyper_ch: That's not the case in nixlang.
<srhb> At least, not the way you're thinking of :)
<hyper_ch> thx
<srhb> You're welcome.
seppellll has joined #nixos
<tilpner> What file permissions are not allowed in /nix/store? (Where do I look it up?)
Enzime has quit [(Ping timeout: 246 seconds)]
<tilpner> If I mounted /nix/store with nosuid, could I have suid executable in the store?
<tilpner> I don't need to run it, just store it in extracted form
<srhb> I assume not, since we have to use the security wrappers for that in NixOS.
<srhb> Er, I assume it's already disallowed, rather.
<gchristensen> tilpner: no
<tilpner> Why not? :/
<tilpner> It would be so much simpler :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/0127638adc (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
<gchristensen> tilpner: the builders strip suid builds after a build, and filter the syscall to set the setuid bit
nix-gsc-io`bot has quit [(Client Quit)]
grumble2 has joined #nixos
<tilpner> What builders? For runCommand too?
<gchristensen> _the_ builder: Nix itself
<tilpner> Aww, okay
<hyper_ch> so, next problem... I already have a nixpkjgs.config.packagesOverrides to get latest kde5 packages... so what's the difference between = super: and = pkgs: and how can those two made to co-exist? https://paste.simplylinux.ch/view/raw/241994f1
<gchristensen> tilpner: see https://github.com/NixOS/security-advisories/blob/master/2017/0002.txt for more information
<bennofs> why is it so hard to cross build a minimal nixos (for the installer for example?)?
<srhb> hyper_ch: It's just the argument name, you can call it anything you like
<srhb> hyper_ch: You should (can) only have one packageOverrides, but it can override as many things as you like
<bennofs> not complaining, just want to know what the major pain points/problems in such an approach are
orivej has quit [(Ping timeout: 240 seconds)]
<srk> is it common to cc maintainers when creating pull request?
<srhb> hyper_ch: 'super' is a typical name for the package set you're passed in as an argument, ie. the one you're "inheriting" from
<srhb> srk: reasonably common.
<hyper_ch> srhb: I don't understand the differences between those two expressions or how to merge them or where to find information about what they're doing
<srhb> hyper_ch: nixpkgs is an attribute set
<srhb> hyper_ch: Each key is the name of a package
<srk> srhb: ok, thanks
<srhb> hyper_ch: Have you read about attribute sets?
<gchristensen> tilpner: what are you trying to do again?
<hyper_ch> srhb: few times - still no idea
<srhb> hyper_ch: How do you make an attribute set with two values, one named foo that has the value 42, and one named bar with the value "hello" ?
<srhb> hyper_ch: Here's a reference: https://nixos.org/nix/manual/#idm140737318092608
<tilpner> gchristensen - Store an OCI rootfs somewhere, built with Nix. I can't store it in a tar, as it needs to be extracted before use, and where is that extraction going to live and how long...?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] sorki opened pull request #30407: lxc: 2.0.8 -> 2.1.0 (master...lxc_2.1.0) https://git.io/vd1fO
NixOS_GitHub has left #nixos []
erictapen has quit [(Ping timeout: 248 seconds)]
<toppler> Not really a NixOS thing, but my machine has started becoming completely unresponsive under heavy disk/IO with rsnapshot. It's not something I've ever seen before.
<toppler> Any idea what the problem could be?
<tilpner> gchristensen - But the rootfs can contain anything, including suid executables. I don't need to be able to run them from the store, it would be remounted inside a container/VM, where it's fine to have suid
<gchristensen> ouch
<srk> toppler: full disk, broken hardware..
<toppler> srk: Definitely not full disk. If it's broken hardware, I'm going to be supersad. This is a new laptop.
<tilpner> gchristensen - Current idea is to untar to /data/oci/${nixHash}, but then I get to reimplemented a gc on that
<gchristensen> tilpner: it wouldn't be useful, anyway, because the nix storee normalizes all owners and permissions to things not good for your use case
<tilpner> (untar on first usage of generated launcher script)
<Moredread> toppler: i had problems with my ssd and the cfq disk schedular. with noop it worked much better
<palo> I try to install haskellPackage.azubi but it fails because of missing dependencies: directory >=1.3.1.0 && <2 which is strange because I just installed directory_1_3_1_1 without any problems. Also my travis checks (I'm the author of that lib) work fine for 8.0.2, 8.0.1, ... I don't understand why this is failing, any idea ?
<toppler> Moredread: Yeah, it's ssd. I'm wondering if there's a problem there. I'm also noticing that if I try to copy a large number of files to a USB stick, I get the same problem. Seems to be mention of a scheduler bug of some sort.
<bennofs> toppler: i have the same problem but it was always that way for me
<bennofs> (not a recent change)
<bennofs> i tried switching to the deadline scheduler which I read should improve things for SSDs but no change
<Moredread> noop worked a little bit better than deadline for me but ymmv
pSub has quit [(Remote host closed the connection)]
<srhb> hyper_ch: That doesn't make sense unfortunately. packageOverrides is one function, so it should start like this: packageOverrides = argument: ...
<srhb> hyper_ch: You need to pick a name, whether it's super or pkgs or something else doesn't matter.
<hyper_ch> it makes sense to me
<hyper_ch> no idea what the xxx: is for or the in { or rec {
<srhb> hyper_ch: Perhaps you should do the nix language tutorial? :)
<srhb> hyper_ch: The xxx: is an argument
<hyper_ch> srhb: which I did and didn't make sens
pSub has joined #nixos
pSub has quit [(Changing host)]
pSub has joined #nixos
<srhb> hyper_ch: Do you know a programming language? I can try to write it in a syntax you're more familiar with.
<hyper_ch> looked at so many howtos and tutorials
<hyper_ch> bash, php
<srhb> hyper_ch: I'll try to explain it to you. :)
<srhb> hyper_ch: So, imagine it like this: packageOverrides(pkgs) { ... }
<srhb> hyper_ch: That's the same as packageOverrides = pkgs: ...
<toppler> Moredread: Hmmm...just changed to noop, and it seems a lot better. Cheers.
<srhb> hyper_ch: Got it? It's the argument to the function you're definining.
<hyper_ch> but it seems multiple arguments need to be passed
<srhb> Nope, just one.
<srhb> And that argument will have the value of the original nixpkgs package set.
<hyper_ch> then I still have no idea what super: let self = super.pkgs; in { and pkgs: with pkgs; rec { means
<srhb> I suggest you comment out what you have right now and start from scratch with something that looks like this:
<srhb> No, we're getting rid of that
<srhb> Let's stick with simple features for now.
nh2 has joined #nixos
<srhb> packageOverrides = oldpkgs: let newpkgs = { ... } in newpkgs
<srhb> This is the skeleton we will use
c0bw3b has joined #nixos
<srhb> So, we're defining a new set called newpkgs, and that is the return value of the function we're writing.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/vd1fy
<NixOS_GitHub> nixpkgs/master 0ff4bb5 Bjørn Forsman: nixos: run parted with --script option...
NixOS_GitHub has left #nixos []
<srhb> With me so far?
<hyper_ch> yes
<srhb> Great! :)
<srhb> Now, let's write the first modification to your newpkgs
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor closed pull request #30270: nixos: run parted with --script option (master...nixos-parted-script) https://git.io/vdaQG
NixOS_GitHub has left #nixos []
<srhb> We can use rtorrent-ps as a start
<srhb> packageOverrides = oldpkgs: let newpkgs = { rtorrent-ps = ... ; } in newpkgs;
<srhb> Now we need to write the actual definition for rtorrent-ps. We get to ues oldpkgs (which is the nixpkgs set _before_ your modifications)
<srhb> In your original version, that value was called pkgs. Now we're calling it oldpkgs to be extra clear. Do you think you can rewrite it using oldpkgs instead?
ixxie has quit [(Quit: Lost terminal)]
<srhb> Good so far, but you're missing the actual modifications to the rtorrent package with the patches etc.
xdelv has quit [(Ping timeout: 255 seconds)]
pSub has quit [(Remote host closed the connection)]
<hyper_ch> but this fails again https://paste.simplylinux.ch/view/raw/c5ae5359
MichaelRaskin has quit [(Read error: Connection reset by peer)]
<glines> I'm building a C program with cmake and nix... I want debugging symbols, but cmakeFlags = [ "-DCMAKE_BUILD_TYPE=debug" ]; doesn't seem to be enough
xdelv has joined #nixos
<glines> it looks like nix will append that flag to the cmake command, but it also mixes in -O2, and I don't appear to get any symbols
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #30345: Update jb (master...update-jb) https://git.io/vdKSI
NixOS_GitHub has left #nixos []
<srhb> hyper_ch: Ok, there's a few issues, let's deal with them one at a time
<glines> actually, it adds both -DCMAKE_BUILD_TYPE=Release and -DCMAKE_BUILD_TYPE=debug... kinda silly
<srk> Mic92: hey, I've actually have some questions about pam_cgfs. I have a PoC of that but it's nowhere near working - I can start unprivileged containers but pam_cgfs complains and seems to do nothing. also what is the lxcfs alternative to passing cgmanager socket into container when nested lxc is needed
<srhb> hyper_ch: What's the first error you get?
<srhb> hyper_ch: Something about unexpected IN?
<hyper_ch> error: syntax error, unexpected IN, expecting ';', at /etc/nixos/configuration.nix:263:3
<srhb> hyper_ch: so a let expression looks like this: let foo = ...; bar = ...; in ...
MichaelRaskin has joined #nixos
<srhb> hyper_ch: You're missing a ; after the definition of newpkgs
<srhb> that is, right before the "in"
mrkgnao has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 6 new commits to release-17.09: https://git.io/vd1Js
<NixOS_GitHub> nixpkgs/release-17.09 3ef610b Aleksey Kladov: jetbrains-jdk: 970.2 -> 1036.1...
<NixOS_GitHub> nixpkgs/release-17.09 10f4373 Aleksey Kladov: jetbrains.clion: 2017.2.2 -> 2017.2.3...
<NixOS_GitHub> nixpkgs/release-17.09 4841384 Aleksey Kladov: jetbrains.gogland: 172.3968.45-> 173.2696.28...
NixOS_GitHub has left #nixos []
<hyper_ch> ‎[15:31] ‎<‎srhb‎>‎ packageOverrides = oldpkgs: let newpkgs = { rtorrent-ps = ... ; } in newpkgs;
<srhb> hyper_ch: Sorry, I make typos too. :)
<hyper_ch> I understand.... just showing that I did what you told me to
<srhb> hyper_ch: Gotcha! :)
<srhb> hyper_ch: So your last line should look like "}; in newpkgs;"
<srhb> hyper_ch: Next error?
<hyper_ch> missing ; at the end I figured out on my own
<srhb> Nice :)
<hyper_ch> error: undefined variable ‘rt_version’ at /etc/nixos/configuration.nix:249:28
<srhb> OK, so the problem here is that by default, values in a set cannot reference _other_ values in a set
<srhb> We can remedy this by using the rec keyword
<srhb> (oldAttrs: rec { ...
<hyper_ch> error: undefined variable ‘fetchurl’ at /etc/nixos/configuration.nix:251:15
<srhb> That function is in oldpkgs.lib
<srhb> so oldpkgs.lib.fetchurl
<hyper_ch> and what to do with it?
<srhb> Well, the same thing you did before. You just need to find the function in the right place. So instead of just fetchurl, you use oldpkgs.lib.fetchurl
jeron has joined #nixos
<hyper_ch> error: The option `packageOverrides' defined in `/etc/nixos/configuration.nix' does not exist.
<srhb> Ah, I omitted "nixpkgs.config."
<srhb> It's still nixpkgs.config.packageOverrides we're writing
<hyper_ch> no idea what you mean
<hyper_ch> ah ok
<srhb> I mean it's called nixpkgs.config.packageOverrides
<srhb> I just wrote it in short form to save some typing. Shame on me. :)
<hyper_ch> error: attribute ‘fetchurl’ missing, at /etc/nixos/configuration.nix:250:15 --> src = oldpkgs.lib.fetchurl {
<srhb> Oh, really.
sary has quit [(Ping timeout: 260 seconds)]
<srhb> I must be misremembering where it's from
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] sorki opened pull request #30408: criu: 2.0 -> 2.12.1 (master...criu_2.12.1) https://git.io/vd1JD
NixOS_GitHub has left #nixos []
<hyper_ch> oldpkgs.stdenv.lib?
mortum5 has quit [(Ping timeout: 255 seconds)]
<hyper_ch> no
sary has joined #nixos
<srhb> oldpkgs.fetchurl apparently
<hyper_ch> that seems to work
<srhb> Great!
<adisbladis> Man I wish I had a faster cpu..
<adisbladis> A rebuild based on staging takes forever
<srhb> hyper_ch: So, on to the kde things?
<hyper_ch> trying to
<srhb> OK, I'll let you give it a go, poke me if you get stuck
<hyper_ch> plasma5_stable = newpkgs.plasma5_latest;
<hyper_ch> kdeApps_stable = newpkgs.kdeApps_latest;
ixxie has joined #nixos
<srhb> OK, that will actually work (I think) but I meant for you to use oldpkgs instead of newpkgs there.
<hyper_ch> why?
<srhb> If you use newpkgs it's a little harder to understand. You're actually using the values FROM the new package set ot MAKE the new package set
<srhb> That is, recursively.
<srhb> It's fine though!
ixxie has quit [(Client Quit)]
ixxie has joined #nixos
<hyper_ch> but I still don't see how I could now put the rtorrent (and libtorrent) stuff into a seperate.nix file
<ixxie> So... upgrade to 17.09 went almost completely perfectly, kudos for the great work everybody
<ixxie> Some wireless drivers got upgraded because finally I can connect to the 5ghz network ^^
<srhb> hyper_ch: You could do it in many ways. rtorrent-ps = import rtorrent-definition.nix {}; for instance.
<srhb> hyper_ch: But I was just aiming to make it clearer how to use packageOverrides here.
<ixxie> the one thing that again happened was gdm once again requires me to type in the username
<ixxie> but I managed to fix this (imperatively) before, I just can't remember how xD
<srhb> ixxie: is gdm.autoLogin.user broken?
<hyper_ch> srhb: well, rtorrent-ps needs according built libtorrent file and libtorrent needs (recommended) curl, c-ares, xmlrpcs... and my original question was how I can makes sure that in a .nix file that compiles rtorrent, the according modified versions get integrated
<ixxie> srhb: oh that's the setting?
<ixxie> I don't have that
<hyper_ch> and then I was pointed at better doing packageOverride..... and I'm still not a step closer IMHO
<ixxie> I will give it a shot
<srhb> ixxie: well, services.displayManager.gdm.autoLogin and friends
<srhb> hyper_ch: You are closer, but you haven't overridden libtorrent yet.
<srhb> hyper_ch: You'll still need to do that then.
<hyper_ch> I don't feel any closer
* srhb shrugs
<hyper_ch> in the end I just wanted to (pkgs.callPackage (builtins.fetchurl "https://raw.githubusercontent.com/sjau/nix-expressions/master/rtorrent.nix") {})
<hyper_ch> or rather rtorrent-ps.nix
<srhb> You can do that as well.
page has quit [(Quit: leaving)]
<hyper_ch> I can't see how
<hyper_ch> becasue if I add nixpkgs.config.packageOverrides again in the rtorrent-ps.nix it will complain again about having already one in the configuration.nix
Itkovian has joined #nixos
ixxie has quit [(Quit: Lost terminal)]
<bennofs> woot, installing nixos on rpi 3 is easier than expected. well done everyone involved in making this possible!
<gchristensen> nice!
<gchristensen> what steps are you following?
<srhb> hyper_ch: You want to only have the rtorrent definition moved into a different nix expression
<bennofs> https://nixos.wiki/wiki/NixOS_on_ARM use the aarch64 image
<srhb> hyper_ch: Not the entire packageOverrides
<gchristensen> cocol
<bennofs> and then I manually edited some store paths to enable ssh since I don't have a monitor :D
Sonarpulse has joined #nixos
<hyper_ch> how would I have custom libtorrent then in the rtorrent-ps.nix?
<gchristensen> :o
<srhb> hyper_ch: You override it in the package overrides and feed it in as an argument to your rtorrent expression
<bennofs> (basically, just symlinked sshd into multi-user.target.wants and add my ssh pub key for root)
<hyper_ch> srhb: in what package overrides?
mortum5 has joined #nixos
<srhb> The only packageOverrides in your configuration.nix
<hyper_ch> srhb: I don't want to hav eanything in my configuration.nix except 1 line that points to a nix file for rtorrent-ps
ixxie has joined #nixos
erictapen has joined #nixos
<bennofs> gchristensen: do you think it would be possible to "customize" the image from a non-Arm64 host? Re-using the already built /nix/store from the installation image, but change parts of the config that only affect symlinking (like enabling ssh, etc)
<hyper_ch> so that no matter from what computer I call it, I can just include that one .nix file into the list of system packages
<gchristensen> it'll not be easy, bennofs
<srhb> hyper_ch: Then you override it in the rtorrent definition instead, but that's less composable.
<srk> any idea whats the deal here.. /nix/store/.../biun/ld: cannot find -lpthreads
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/27bcd6c426 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<hyper_ch> srhb: but when I already have the override stuff for kde in my configuration.nix it will complain
<srhb> hyper_ch: No, I don't mean to use packageOverrides again, that's for overriding all of nixpkgs.
<bennofs> oops, I forgot to enable SSH in my config. lol. let's do this again :D
<srhb> hyper_ch: I mean you just override the one package, libtorrent, in your rtorrent definition
<ixxie> srhb: autoLogin... logs me in automatically xD which makes sense, but what I was looking for is an option that shows a drop down menu of users to select from with the latest user displayed by default
<srhb> ixxie: Oh, sorry!
<hyper_ch> srhb: and now I'm back to zero....
<hyper_ch> I don't know what you mean
<ixxie> srhb: no its good to try new things :)
jeron has quit [(Ping timeout: 240 seconds)]
<srhb> hyper_ch: Let me find the relevant piece of information.
<hyper_ch> packageOverrides -- override the one package.... for me that's all the same
a6a3uh has joined #nixos
<srhb> hyper_ch: That's because you haven't exercised enough nix yet :)
<srhb> hyper_ch: So, if you look at the original rtorrent definition, you will see that it takes in libtorrent as an argument.
<srhb> hyper_ch: You want to also override that argument to point at your custom libtorrent.
<bennofs> gchristensen: what do you think the main problems are?
<srhb> hyper_ch: I'm taking a break now. It might be easier to do this sort of training on a slightly simpler, test project. I'll be back later. :)
<bennofs> you'd have to ensure that you get the same derivation hashes as a first step
<hyper_ch> srhb: thx
<bennofs> and somehow convince nix to use paths in an existing store as binary cache?
<gchristensen> well you pretty much need an arm box to do it
<bennofs> why is that?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] geistesk opened pull request #30409: openrct2: init at 0.1.1 (master...openrct2) https://git.io/vd1Uj
NixOS_GitHub has left #nixos []
<gchristensen> well I reckon maybe you could do a cross-build
<bennofs> gchristensen: i wouldn't need to cross build, b.c. I already have all paths as binaries?
ixxie has quit [(Quit: Lost terminal)]
<gchristensen> you have all the paths as binaries for a native build
<bennofs> i'd just need nix to produce the same hashes as-if I would build on the target
<gchristensen> you can only produce the same hashes if you are also doing a native build
<gchristensen> so your symlinking would have to be native to your host and pointing to a native on arm
<gchristensen> which is ... complicated
<bennofs> oh right. the scripts that do symlinking may depend on ARM bash etc
<gchristensen> and also if you're doing a cross-build, I don't know if hydra does cross-builds, so you'd have to bootstrap the cross environment, so a lot of compiling
<srhb> Any maintainer willing to take a look at this? I realize it's timey wimey stuff, but I'm pretty sure it's not dangerous! https://github.com/NixOS/nixpkgs/pull/30258
<bennofs> gchristensen: can cross-built packages not be substituted for native packages?
<bennofs> i thought that was the whole purpose of cross building
<gchristensen> no they can't, because their build instructions were for a cross build not a native build :)
<bennofs> oh. hmm. right
<srhb> (Or perhaps it's just being left there because it'll cause rebuilds? I'm in no rush, just scared it'll be forgotten. :))
<gchristensen> we'd need a magical mixer to replace cross with native, native with cross, at just the right times
<gchristensen> srhb: it works?
ertes has quit [(Ping timeout: 248 seconds)]
<srhb> I've rebuilt with it here and I can get the nice error message and am prevented from using space, yeah. :)
<srhb> (And if I have no space, everything works just as today, as far as I can see)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 2 new commits to master: https://git.io/vd1T0
<NixOS_GitHub> nixpkgs/master 7b81889 Sarah Brofeldt: nixos/config/timezone: Disallow spaces
<NixOS_GitHub> nixpkgs/master 55bc53d Graham Christensen: Merge pull request #30258 from srhb/tz-nospace...
NixOS_GitHub has left #nixos []
<srhb> Thanks gchristensen!
<gchristensen> :) have you considered asking for merge privs?
<srhb> I'm not sure I'm experienced enough for that kind of trust, that's my very first (tiny!) commit in the nixos subtree. :)
<srhb> Though I definitely want to work my way there.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vd1To
<NixOS_GitHub> nixpkgs/master 8c618fc Tim Steinbach: linux: 4.13.6 -> 4.13.7...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vd1TK
<NixOS_GitHub> nixpkgs/release-17.09 1c8b2b0 Tim Steinbach: linux: 4.13.6 -> 4.13.7...
NixOS_GitHub has left #nixos []
<gchristensen> IMO, knowing your limits is a good enough substitute for knowing nixos modules
* srhb nods
<srhb> Who does one ask?
<bennofs> what's the current consenus on services automatically opening ports in the firewall when enabled?
<bennofs> ssh does it for example
<bennofs> but I think there are others that don't ?
<gchristensen> bennofs: usually services should not do it by default, but have an option to enable it
<gchristensen> bennofs: SSH does it b/c of the harm if someone forgets to turn it on
<gchristensen> srhb: domenkozar or niksnut :)
<hyper_ch> "timey wimey" :)
<srhb> gchristensen: Okay, thanks :)
<srhb> hyper_ch: Yeah, everyone's scared of commits that mess with timezones, time, or character encodingd :-P
a6a3uh has quit [(Quit: Hi)]
<srhb> (With good reason)
<hyper_ch> wibbly wobbly, timey wimey stuff - 10th Doctor :)
c0ffee152 has joined #nixos
<srhb> :-) Loved him.
<hyper_ch> who didn't
<bennofs> who thought it would be a good idea for `ssh` to forward the `TERM` var to the remote and *not* make that configurable? ...
c0ffee152 has quit [(Client Quit)]
<gchristensen> bennofs: if I had to guess, someone with good intentions trying to improve something
<gchristensen> and not necessarily specific intentions around TERM
civodul has joined #nixos
<bennofs> idk. it just makes things worse for me, b.c. usually the remotes do not even have the terminfo for the $TERM that I use locally, and that results in behaviour like backspace not working properly etc
<fearlessKim[m]> nix-env -qas firefox returns only --- status , aka no firefox binary in cache ? my nixpkgs-unstable seems up to date though :/
<MichaelRaskin> gchristensen: srhb: did ikwildrpepper stop giving out merge access?
ma27 has quit [(Quit: WeeChat 1.9)]
ma27 has joined #nixos
work has joined #nixos
<gchristensen> MichaelRaskin, srhb ah yes indeed ikwildrpepper too
<srhb> Oh okay, thanks for the heads up :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor opened pull request #30410: nixos/tests: add gitolite test (master...nixos-gitolite-test) https://git.io/vd1kU
NixOS_GitHub has left #nixos []
<srhb> fearlessKim[m] Which version?
page has joined #nixos
<glines> I'm curious... is there a way to enable debugging symbols on the whole of nixos? (and recompile everything?!)
<glines> kinda like how you can get a debug build of Windows
* fearlessKim[m] sent a long message: fearlessKim[m]_2017-10-14_14:39:23.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/KlvdmzmiTzgAeGtOnTsOJtQj>
prietoj has joined #nixos
<srhb> fearlessKim[m]: I see --S fore nixpkgs.firefox / firefox-55.0.3
<srhb> Oh, am I on a different channel...
<glines> I'm just trying to get symbols for one damn derivation xD
<srhb> fearlessKim[m]: Right, no substitute on that channel.
ixxie has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lethalman pushed 1 new commit to master: https://git.io/vd1ku
<NixOS_GitHub> nixpkgs/master 7c45662 Luca Bruno: go-ethereum: 1.7.1 -> 1.7.2
NixOS_GitHub has left #nixos []
ma27 has quit [(Quit: WeeChat 1.9)]
ma27 has joined #nixos
<fearlessKim[m]> srhb: thanks for confirming, I had removed the flash addition just in case. Is there hope that a substite pops up or the nixpkgs-unstable is configured like that ? chromium has one substitute :'(
<ixxie> Any IRSSI users notice a change in the blue header/footer bars when upgrading to 17.09?
<prietoj> Hello. I was trying to build a ghcjs project via stack but I'm getting an error during the ghcjs boot phase. "stderr: solver must be one of: modular". Has anyone seen this error before?
<srhb> fearlessKim[m]: I think there's usually substitutes on that channel, but I might be mistaken. Perhaps use nixos-unstable instead?
ma27 has quit [(Client Quit)]
ma27 has joined #nixos
<fearlessKim[m]> I wanted to ask a question on #alot (that I am packaging), started weechat, noticed there was no manpage, thought I would fix it, then realized I had to rebuild to fix it, and now I have to wait for firefox. Crazy world xD
<srhb> fearlessKim[m]: So much to do! :-P
<MichaelRaskin> Well, you can just nix-shell the package you want to test!
<fearlessKim[m]> "For stability and maximum binary package support, it is recommended to maintain custom changes on top of one of the channels, ... and nixos-unstable for the latest successful build of master" I now get why xD
bennofs has quit [(Quit: WeeChat 1.9)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dotlambda opened pull request #30411: python3Packages.git-annex-adapter: init at 0.2.0 (master...git-annex-adapter) https://git.io/vd1In
NixOS_GitHub has left #nixos []
<ixxie> Has anybody ever tried to run a service on a Linux machine that uses a nix-shell as an environment?
seppellll has quit [(Ping timeout: 260 seconds)]
<glines> so far the only nix package I have found with debug symbols is glibc.debug
<glines> ixxie: uhhh... is this a Linux machine running nixos? or is this like an Ubuntu machine?
ma27 has quit [(Quit: WeeChat 1.9)]
ma27 has joined #nixos
<ixxie> glines: in the context of #nixos discussions, I always assume Linux means Non-NixOS Linux Distro with Nix
<ixxie> this is how I meant it
<glines> fair enough; that's why I asked
<glines> the tricky thing about nix-shell is it gives you an *interactive* shell, which you probably won't want for a service
<glines> it looks like there's a --run flag for nix-shell though
jtojnar_ has quit [(Ping timeout: 255 seconds)]
<glines> yeah, it looks like you would want the --run flag of nix-shell
<glines> from there you can read up on how to make a systemd service for whatever distro you're using. make sure the service runs with enough permissions to call nix-shell
<ixxie> glines: since I plan to use this to run jupyterhub, I don't mind to see stdout to make the logs visible
<glines> ??
<glines> systemd will log anything printed to stdout, most likely
<glines> depending on how you set it up
<ixxie> right
seppellll has joined #nixos
<ixxie> I have never really set up a service, so have little experience with systemd
<glines> yeah. nix won't help you set up a service. that's the whole point of nixos. we have nixos = nix + systemd services
<glines> basically
<ixxie> yeah I dig
ma27 has quit [(Ping timeout: 255 seconds)]
<ixxie> thats my understanding too, but in this case it looks like using CentOS is the way to go (this is a work machine shared with others, I don't wanna confuse them)
<MichaelRaskin> You can build a starter script of NixOS service and launch it on non-NixOS, though
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to staging: https://git.io/vd1tj
<NixOS_GitHub> nixpkgs/staging 6328c76 Vladimír Čunát: xorg libXfont2, libXres: security updates...
<NixOS_GitHub> nixpkgs/staging 2baf618 Vladimír Čunát: xorg-server: security 1.19.4 -> 1.19.5...
NixOS_GitHub has left #nixos []
<MichaelRaskin> So the config generation from NixOS can be used.
<ixxie> interesting MichaelRaskin
<ixxie> is there a guide to this somewhere?
<MichaelRaskin> (builtins.getAttr name (nixos {configuration = config;}).config.systemd.services).runner
<glines> that's a slick way to do it
<MichaelRaskin> (where nixos is the result of importing NixOS subdirectory)
<glines> you would have to read up on how to make a nixos module
<glines> honestly, making a systemd service from scratch is not very difficult
<glines> neither is writing a nixos module
<ixxie> yeah, in this case I would have to first package jupyterhub and make a service for it
<ixxie> but, why not!
Neo-- has joined #nixos
<ixxie> everybody says it shouldn't be too difficult, and I gotta learn somehow ^^
<glines> if you make a nixos module, people using nixos could use it as well
<ixxie> yeah exactly
<ixxie> including and especially me
<ixxie> ^^
<glines> it's confusing, but all you really gotta do is "tell systemd to run my program"
<ixxie> anyway
<ixxie> thanks
<ixxie> have a good evening!
ixxie has quit [(Quit: Lost terminal)]
erictapen has quit [(Ping timeout: 240 seconds)]
Acou_Bass has quit [(Quit: byeeeeeeeeeeeeeee)]
Acou_Bass has joined #nixos
Neo-- has quit [(Ping timeout: 246 seconds)]
<gleber_> Is there any magical way to import environment into Emacs session out of a `nix-shell foo/bar.nix` invocation?
ma27 has joined #nixos
<manveru> gleber_: you mean you call nix-shell from emacs?
<gleber_> manveru: I have a Emacs deamon which I use to work work on multiple projects. Each project's deps are different and I try to move these deps into nix-shells. When I switch from one project to another I'd like to update Emacs' current env vars to vars imported from one of my nix-shells. Does this make sense?..
arjen-jonathan has quit [(Ping timeout: 240 seconds)]
<manveru> that'll be tricky :)
<manveru> i guess you could write that in elisp, something like `nix-shell foo/bar.nix --run 'env'`, parse the output, (setenv key value)
takle has joined #nixos
<manveru> the tricky part is that you probably want to avoid overriding the $PATH of emacs with the nix-shell, and instead merge the two
<gleber_> manveru: yeah, maybe that's why there's no solution for this yet :)
<fearlessKim[m]> weechat is currently a multiple out derivation but "man weechat" doesn't work. The manpages are present though: "$ ls /nix/store/nw7jrjvxnx4l94f98xcnis913y09kzn4-weechat-1.9.1-man/share/man
<fearlessKim[m]> cs de fr it ja man1 pl ru"
ma27 has quit [(Ping timeout: 260 seconds)]
<disasm> fearlessKim[m]: works here on nixos, what are you on?
<fearlessKim[m]> nixos too :/
<fearlessKim[m]> 18.03.git.f1c4e0c
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthiasbeyer opened pull request #30412: rust build support: Find Cargo.lock file upwards in tree (master...rust-workspace-support) https://git.io/vd1mK
NixOS_GitHub has left #nixos []
<disasm> fearlessKim[m]: do other man pages work?
<fearlessKim[m]> disasm yes
<disasm> how is weechat installed?
<fearlessKim[m]> disasm: good question, via home-manager
<fearlessKim[m]> I can try to install it via nix-env if you want .
<disasm> I do believe home manager uses nix-env to install
mortum5 has quit [(Ping timeout: 240 seconds)]
<disasm> ok, reproduced
<disasm> so... I don't think things install with nix-env add the man path
<LnL> if it works the same way as nixos it uses buildEnv
<LnL> you might have to enable manpages explicitly
<disasm> LnL: am I correct, nix-env -iA package won't give you man pages for package?
<LnL> usually not, unless it has a meta.outputsToInstall
<disasm> yeah, I just removed weechat from environmentPackages, rebuilt, ran nix-env -iA weechat and man weechat no longer works.
<LnL> I don't see anything for manpages in home-manager
hellrazor has quit [(Ping timeout: 255 seconds)]
hellrazor has joined #nixos
<fearlessKim[m]> disasm: intersting issue. I don't get why one wouldn't want the manpage, that should be opt-out rather than opt-in.
Isorkin has quit [(Read error: Connection reset by peer)]
Isorkin has joined #nixos
hc_ has joined #nixos
<LnL> I think nix-env used to install all the outputs
hc has quit [(Ping timeout: 240 seconds)]
hc_ has quit [(Ping timeout: 255 seconds)]
hc has joined #nixos
erictapen has joined #nixos
hexamod has joined #nixos
sigmundv has joined #nixos
iqubic has joined #nixos
ma27 has joined #nixos
markus1199 has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] symphorien opened pull request #30413: kexectools: 2.0.14 -> 2.0.15 (master...kexec) https://git.io/vd1YF
NixOS_GitHub has left #nixos []
Eisfreak7 has quit [(Quit: WeeChat 1.9.1)]
takle has quit [(Remote host closed the connection)]
ambro718 has joined #nixos
markus1189 has joined #nixos
<iqubic> Anyone in here use EXWM?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lo1tuma opened pull request #30414: jenkins: 2.77 -> 2.84 (master...jenkins-2.84) https://git.io/vd1Os
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] symphorien opened pull request #30415: crashdump module: fix evaluation. (master...crashdump) https://git.io/vd1OE
NixOS_GitHub has left #nixos []
<juriq> How would I go about having a display while building a package? As a random guess I tried to add xorg.xorgserver to buildInputs and "DISPLAY=:0" to makeFlags which didn't work.
<symphorien> it wouldn't work because of the sandbox
<symphorien> why do you need that ?
<juriq> one part of the buildprocess complains with "Couldn't initialize SDL: No available video device". That sounds like a flaw in the build process, but yet I was curious if it coulw work
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vd1Ob
<NixOS_GitHub> nixpkgs/master 741e788 Mathias Schreck: jenkins: 2.77 -> 2.84
<NixOS_GitHub> nixpkgs/master fe845e1 Tim Steinbach: Merge pull request #30414 from holidaycheck/jenkins-2.84...
NixOS_GitHub has left #nixos []
<juriq> maybe a framebuffer could be used somehow
endformationage has joined #nixos
<symphorien> you could try to use xfvb
<MichaelRaskin> it is xvfb
<MichaelRaskin> (virtual frame buffer)
<symphorien> ah sorry
<juriq> I'll try
<disasm> fyi fearlessKim[m] confirmed outputs = [ "out" "man" ]; is set in weechat
ma27 has quit [(Ping timeout: 240 seconds)]
<disasm> although I get error: attribute ‘man’ in selection path ‘nixos.weechat.man’ not found when I run `nix-env -iA nixos.weechat.man`
jensens has joined #nixos
ison111 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] symphorien opened pull request #30416: nixos/luksroot.nix: fallback to interactive password entry when no keyfile found (master...luksnokey) https://git.io/vd13j
NixOS_GitHub has left #nixos []
<Mic92> srk: does nesting works with unprivileged containres?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Mic92> srk: should nesting not be possible with the new cgroup namespaces?
Phil[m]1 has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/1c8b2b05f7 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
hke has quit [(Ping timeout: 248 seconds)]
<gchristensen> anyone around with a single-user install?
drakonis has joined #nixos
hke has joined #nixos
<srk> Mic92: hey, I've just updated to lxcfs master and it wurkz oO
<iqubic> gchristensen: I have a single user install.
<srk> Mic92: haven't tried nesting yet
<gchristensen> iqubic: can you test this PR by cloning my branch, running nix-build . -A nix-info, then running `./result/bin/nix-info -m` and paste the output in to a pastebin?
<gchristensen> iqubic: (or leave the output as a comment on the PR)
<Mic92> srk: ok, if you can add both to the pull request, I can test it with my setup.
<iqubic> gchristensen: Your branch of what? Nixpkgs?
<gchristensen> iqubic: oops, I meant to link: https://github.com/NixOS/nixpkgs/pull/30397
sigmundv has quit [(Ping timeout: 248 seconds)]
<iqubic> What do you want me too do?
<iqubic> Clone your nixpkgs repo, and then try try runnnig nix-build?
<MichaelRaskin> 5B
<iqubic> I've never done anything like that before.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] primeos pushed 1 new commit to master: https://git.io/vd1GG
<NixOS_GitHub> nixpkgs/master 527f6e9 Michael Weiss: android-studio-preview: 3.0.0.15 -> 3.0.0.16
NixOS_GitHub has left #nixos []
<iqubic> gchristensen: I'm willing to try anything you want me to do.
<gchristensen> ok, I need a few minutes
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] SuprDewd opened pull request #30417: astroid: 0.9.1 -> 0.10.2 (master...astroid-0.10.2) https://git.io/vd1Gn
NixOS_GitHub has left #nixos []
<iqubic> I'm willing to test this out when you are.
<srk> Mic92: lol, it wurkz. nested lxc \o/
zacts has joined #nixos
<iqubic> gchristensen: I need a to know more about what you want me to do before I can actually do it.
<Mic92> srk: ok, then I can finally remove my old hack, to get container with cgroupv2 working
<iqubic> I've never worked with a local nixpkg repo
bennofs has joined #nixos
seppellll has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vd1Gy
<NixOS_GitHub> nixpkgs/master 2d903b8 Spencer Baugh: firefox: add Kerberos support
<NixOS_GitHub> nixpkgs/master fe36e9a Jörg Thalheim: Merge pull request #29783 from catern/ffkrb...
NixOS_GitHub has left #nixos []
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<gchristensen> iqubic: can you do: nix-build https://github.com/NixOS/nixpkgs/archive/7ca954dc57ed59b8f6edc423956218b153124e69.tar.gz -A nix-info; ./result/bin/nix-info -m
mrkgnao has quit [(Ping timeout: 240 seconds)]
<infinisil> Oh it's already in nixpkgs? Nice
<Mic92> srk: btw. what kernel version do you use in combination with pam_cgfs?
<iqubic> gchristensen: Want me to pastebin the output?
<gchristensen> yes please, iqubic
<gchristensen> iqubic: those URLs apparently work for PRs against nixpkgs too :P
<srk> Mic92: Linux vpsadminos 4.13.4 #1-NixOS SMP Wed Sep 27 12:43:35 UTC 2017 x86_64 GNU/Linux
<gchristensen> erm, infinisil ^
hexamod has joined #nixos
<infinisil> Ahhh
<iqubic> gchristensen: Let's see what sort of output I get.
<iqubic> Nothing.
<iqubic> I get no output at all.
<gchristensen> ... wat?
<srk> Mic92: I'm running a customized version of not-os for virtualization purposes, minimal system with runit
<infinisil> Trying it too now
<iqubic> gchristensen: Wait, I accidentally commented out the line
<iqubic> I never ran it properly
<gchristensen> oh, phew
bennofs has quit [(Quit: WeeChat 1.9.1)]
<iqubic> gchristensen: http://termbin.com/1xt0
<iqubic> How is that?
<gchristensen> hmm but you have a single-user install? who owns /nix ?
<iqubic> How do I check who owns /nix?
<gchristensen> grahamc@Morbo> ls -la /nix
<gchristensen> total 13288
<gchristensen> drwxr-xr-x 4 root root 4096 Feb 26 2017 .
<Mic92> iqubic: if you have installed nix via website, you have
<gchristensen> ok, I have to go -- we'll have to talk more soon :)
<tilpner> Maybe iqubic mistook "single-user install" for any installation with only one physical user
<iqubic> /nix is owned by root
<gchristensen> oh ok
<iqubic> tilpner: I read "single-user install" and thought "System with root and one other user"
<tilpner> Yeah, I don't think gchristensen meant that
<iqubic> I have the latter.
<iqubic> tilpner: Oh, I see.
<iqubic> Sorry for the confusion.
<tilpner> Oh, and when you cat /etc/passwd, you'll see there are plenty of other users on your system :P
<iqubic> gchristensen: What do you mean by "Single-User Install"?
<iqubic> tilpner: Yes. I do see plenty of other users.
<iqubic> What the heck are those doing here?
<tilpner> Privilege separation is good
<tilpner> If you run a service as their own user instead of root or your primary user, they can do less harm
<iqubic> But I only have one account that I log into and use on a daily basis.
<LnL> a single user install means that /nix owned by a single (non root) user and builds also run as this user
<tilpner> And nixbld* are the Nix build users
<iqubic> So I don't have a single user system. Sorry for the confusion.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to release-17.09: https://git.io/vd1nC
<NixOS_GitHub> nixpkgs/release-17.09 c66cf46 Vladimír Čunát: xorg libXfont2, libXres: security updates...
<NixOS_GitHub> nixpkgs/release-17.09 a90e6c9 Vladimír Čunát: xorg-server: security 1.19.4 -> 1.19.5...
NixOS_GitHub has left #nixos []
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
work has quit [(Quit: Connection closed for inactivity)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to release-17.03: https://git.io/vd1na
<NixOS_GitHub> nixpkgs/release-17.03 f7b1bf4 Vladimír Čunát: xorg libXfont2, libXres: security updates...
<NixOS_GitHub> nixpkgs/release-17.03 461e4a7 Vladimír Čunát: xorg-server: security 1.19.4 -> 1.19.5...
NixOS_GitHub has left #nixos []
periklis has joined #nixos
<ldlework> Can someone help me find some documentation about all the things that might go into ~/nixpkgs ?
jgertm has joined #nixos
<srhb> ldlework: Overlays, nixpkgs config and anything you like (and it's ~/.config/nixpkgs now)
<tilpner> Can you rephrase that question? ~/nixpkgs is not a standard location
<ldlework> oh right
<ldlework> so typically just config.nix and overlays/ ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vd1cG
<NixOS_GitHub> nixpkgs/staging 8abbf33 Vladimír Čunát: v8: fixup build by using older icu again
NixOS_GitHub has left #nixos []
<srhb> ldlework: Those are the only paths that have intrinsic meaning down there, yes.
<ldlework> Cool, I was just curious really.
<ldlework> I'm storing my home-manager dotfiles stuff in there
<ldlework> Infact, my dotfiles repo is just cloned to ~/.config/nixpkgs with home-manager as a submodule. Working great, so just wanted to make sure that was workable in the long term.
<ldlework> (home-manager works great btw! (thanks again infinisil))
hotfuzz has joined #nixos
ris has quit [(Ping timeout: 240 seconds)]
p4cman has joined #nixos
hotfuzz_ has quit [(Ping timeout: 255 seconds)]
jb55 has joined #nixos
prietoj has quit [(Ping timeout: 260 seconds)]
hexamod has joined #nixos
arjen-jonathan has joined #nixos
acarrico has joined #nixos
phreedom has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vd1Ci
<NixOS_GitHub> nixpkgs/master 0f01f8b Franz Pletz: nginxMainline: 1.13.5 -> 1.13.6
NixOS_GitHub has left #nixos []
mbirkis has joined #nixos
Guillaum has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 105 new commits to release-17.09: https://git.io/vd1Wq
<NixOS_GitHub> nixpkgs/release-17.09 c9ef12b Vladimír Čunát: gccgo: 4.9 -> 6...
<NixOS_GitHub> nixpkgs/release-17.09 23bfcf2 Charles Strahan: envoy: fix by reviving bazel 0.4...
<NixOS_GitHub> nixpkgs/release-17.09 97f6b26 Charles Strahan: envoy: unmark as broken...
NixOS_GitHub has left #nixos []
bennofs has joined #nixos
<bennofs> is there some lightweight alternative to nixops that is stateless? something that just pushes a nixos config to some set of other nixos machines and rebuilds them
ris has joined #nixos
<Mic92> there is stockholm
<adisbladis> It should be illegal to close bugs without a reference to the code that resolves the issue
Sonarpulse has quit [(Remote host closed the connection)]
<mbirkis> hi! I am running 17.09.1547.2231575a7d (Hummingbird), how would i get qutebrowser updated to this https://github.com/NixOS/nixpkgs/pull/30365
<infinisil> ldlework: Nice :D
saf_spa has joined #nixos
<saf_spa> Hi! Can someone please hint me, who and at what point injects "/run/current-system/sw/bin" into $PATH during regular system boot. I see what /etc/profile calls, but I don't see that for /run. Thanks!
SusWombat has quit [(Remote host closed the connection)]
jluttine has quit [(Ping timeout: 248 seconds)]
jluttine has joined #nixos
AndreasO has joined #nixos
jensens has quit [(Ping timeout: 255 seconds)]
<hodapp> adisbladis: my favorite was a bug on ArchLinux ARM in which they: closed the bug when it wasn't resolved, locked the discussion to collaborators, locked the discussion to owners, and then just deleted the issue altogether
<MichaelRaskin> Well, I can understand WONTFIX+lock. Deleting is… less attractive.
<saf_spa> anyone?
<saf_spa> Does anyone know, who exports "/run/current-system/sw/bin" into a booting up system and at which point?
<adisbladis> hodapp: Huh... That's crazy. Was it something particularly embarrassing?
<hodapp> can't recall offhand
<mgdelacroix> hey! I'm struggling with nixos-container and the network. I can create and start a new container, and I see a new network interface being created (`ve-gitlab@if2` for example) but the interface doesn't have an IP assigned and I don't have the corresponding route in the host, so trying to connect or ping the machine is useless. I can root-login, but nothing more. Do you know what it could be?
erictapen has quit [(Ping timeout: 248 seconds)]
<saf_spa> got it! /nix/store/*-set-environiment, which is called via /etc/profile and written by system-path.nix module
<LnL> and that ends up in system.build.setEnvironment
ivanivan has joined #nixos
ivanivan has quit [(Client Quit)]
<saf_spa> LnL: thank you!
<saf_spa> just tryin to figure my way in this awesome os :)
jensens has joined #nixos
jensens has quit [(Ping timeout: 255 seconds)]
takle has joined #nixos
AndreasO has quit [(Quit: Found more important stuff than irc!)]
<freeman42x> let's say I wanted to create a nix package for `wordcloud`, what bash command would I need to run? https://github.com/garbas/pypi2nix#2-usage I am kinda confused about how this would work
<freeman42x> do I need to download the python source for `wordcloud` ?
AndreasO has joined #nixos
jbgi has joined #nixos
drakonis has quit [(Read error: Connection reset by peer)]
<freeman42x> I can use local source... but then, that is not what I would want to publish to the nix packages...
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/461e4a7e9a (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
nix-gsc-io`bot has quit [(Client Quit)]
marusich has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 opened pull request #30418: nixos: inline set-environment for bash and zsh (master...inline-set-environment) https://git.io/vd14S
NixOS_GitHub has left #nixos []
jgertm has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vd1B4
<NixOS_GitHub> nixpkgs/master e067d26 Vladimír Čunát: firefox: fixup build on i686-linux after 56.x update...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.09: https://git.io/vd1B0
<NixOS_GitHub> nixpkgs/release-17.09 cdf6ee3 Vladimír Čunát: firefox: fixup build on i686-linux after 56.x update...
NixOS_GitHub has left #nixos []
<freeman42x> > yeah, it seems so: https://github.com/garbas/nixpkgs-python/blame/master/Makefile#L22-L26 I can use local source... but then, that is not what I would want to publish to the nix packages... garbas/nixpkgs-python - GitHub nixpkgs-python is automatically (via pypi2nix) managed collection of nix+python expressions
<freeman42x> Ah, it can be done using a pip requirements file I think
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 3 new commits to master: https://git.io/vd1BX
<NixOS_GitHub> nixpkgs/master 4e36cce José Romildo Malaquias: libmatroska: 1.4.7 -> 1.4.8
<NixOS_GitHub> nixpkgs/master d491816 José Romildo Malaquias: mkvtoolnix: 15.0.0 -> 16.0.0
<NixOS_GitHub> nixpkgs/master fcfeda5 vbgl: Merge pull request #30206 from romildo/upd.mkvtoolnix...
NixOS_GitHub has left #nixos []
ryantrinkle has joined #nixos
jbgi has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] stesie opened pull request #30419: MacOS support for gn and v8_6_x (master...darwin-gn) https://git.io/vd1BA
NixOS_GitHub has left #nixos []
<ryantrinkle> shlevy: ping
jensens has joined #nixos
ebzzry has quit [(Ping timeout: 248 seconds)]
JosW has quit [(Quit: Konversation terminated!)]
jbgi has joined #nixos
Acou_Bass has quit [(Quit: byeeeeeeeeeeeeeee)]
Acou_Bass has joined #nixos
iqubic has quit [(Remote host closed the connection)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03 advanced to https://github.com/NixOS/nixpkgs/commit/78ce72cca9 (from 2 days ago, history: https://channels.nix.gsc.io/nixos-17.03)
nix-gsc-io`bot has quit [(Client Quit)]
oida has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mimadrid opened pull request #30420: rofi: 1.3.1 -> 1.4.1 (master...update/rofi-1.4.1) https://git.io/vd10s
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vd108
<NixOS_GitHub> nixpkgs/master 874a3c0 Franz Pletz: nixos: limited support archs are not release-critical...
NixOS_GitHub has left #nixos []
oida has joined #nixos
<disasm> trying to test nix multi-user on centos 7... I have a minimal nspawn container running that I'm in as root on and doesn't have sudo... Is there a way to install nix as the root user and override the check saying it's not supported?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to release-17.09: https://git.io/vd10x
<NixOS_GitHub> nixpkgs/release-17.09 68ef4b1 Franz Pletz: nixos: limited support archs are not release-critical...
NixOS_GitHub has left #nixos []
jb55 has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] KaiHa opened pull request #30421: lbdb: 0.38 -> 0.44 (master...lbdb-0.44) https://git.io/vd1E3
NixOS_GitHub has left #nixos []
ebzzry has joined #nixos
<rycee> In case anybody is interested, I put together a quick proof of concept NixOS module for Home Manager: https://github.com/rycee/home-manager/pull/97 Pretty brittle and silly but kind of works :-)
* infinisil *click*
jbgi has quit [(Ping timeout: 255 seconds)]
<infinisil> rycee: Where is the module.nix file you're referring to?
<infinisil> modules.nix*
oida has quit [(Ping timeout: 248 seconds)]
<rycee> Forgot to add it. Added now.
<disasm> how is /nix/var/nix/profiles/default/etc/ created?
<LnL> that's a user profile
<LnL> so if you nix-env -i a package with $out/etc it ends up in there
oida has joined #nixos
marusich has quit [(Ping timeout: 246 seconds)]
<disasm> LnL: ok, maybe a better question is how can I run nix-channel --update which needs nss-cacert in the default profile to run
<LnL> cacert was removed?
mma has joined #nixos
<disasm> fyi, really hacky nix install here... I manually grabbed the tarball, edited install script to ignore being root user (because that's all I had) and don't have sudo so manually created /nix and set perms to root
<disasm> and from that point on I followed this https://gist.github.com/expipiplus1/e571ce88c608a1e83547c918591b149f starting at add build user groups
<infinisil> rycee: Looks good!
mortum5 has joined #nixos
<disasm> there was no default profile so I ran nix-env -i to create it
<LnL> disasm: find /nix/store -name ca-bundle.crt
<disasm> /nix/store/28v6ma4zb887m7ldrbqh56r8jjxc53cb-nss-cacert-3.31/etc/ssl/certs/ca-bundle.crt
<disasm> so just change the profile script to hard code that temporarily?
<LnL> ok set NIX_SSL_CERT_FILE to that and you should be able to bootstrap the rest
<disasm> ah, cool, trying now
marusich has joined #nixos
<disasm> and there it goes! thanks :)
oida has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthiasbeyer closed pull request #25783: diary: init at 0.3 (master...add-diary) https://git.io/v9798
NixOS_GitHub has left #nixos []
iqubic has joined #nixos
<LnL> that's why it's included in the installer tarball
oida has joined #nixos
<LnL> not sure, but I think the substituter also needs it
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor opened pull request #30423: Fix "batch" command on NixOS (master...fix-atd-batch) https://git.io/vd1EN
NixOS_GitHub has left #nixos []
<disasm> seems to be working so far, was able to install git and am currently cloning nixpkgs so I can test gchristensen PR
ivanivan has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthiasbeyer closed pull request #21593: Add networkd notify (master...add-networkd-notify) https://git.io/vMmYV
NixOS_GitHub has left #nixos []
<disasm> I love systemd-nspawn, little more difficult getting non-nix containers setup than it is to use nixos-container, but so much quicker than spinning up a full VM.
arjen-jonathan has quit [(Ping timeout: 248 seconds)]
<LnL> oh, I should test it in my docker thing
<disasm> LnL: yeah, docker would be quicker probably :)
ivanivan has left #nixos []
<LnL> I don't have any machine that doesn't use the daemon anymore
oida has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] florianjacob opened pull request #30424: piwik: 3.1.1 -> 3.2.0 (master...piwik-3.2) https://git.io/vd1uk
NixOS_GitHub has left #nixos []
Oida has joined #nixos
<disasm> that's true, getting docker to run the daemon would be a little difficult
<disasm> I know systemd is a pain to get running in a docker container.
<LnL> haha, it's still multi-user :p
<LnL> forgot about that
erictapen has joined #nixos
jb55 has joined #nixos
<iqubic> disasm: do you have a single user system?
mcicon has joined #nixos
<disasm> iqubic: yup
<iqubic> Cool
<iqubic> I don't
m0rphism has joined #nixos
<disasm> iqubic: do you need me to test something?
<iqubic> No.
<disasm> I have a number of single user systems I have access to... 10-20 client production systems where I've used nix to install a tool I need without touching the system, lol :)
<disasm> just made my first non-nixos multi-user linux system /w daemon though, wasn't too difficult, although I wish we'd have an argument or a separate script to just do the steps to create build user, setup the scripts in /etc etc...
mma has quit [(Quit: Page closed)]
jb55 has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthiasbeyer opened pull request #30425: Update git dit (master...update-git-dit) https://git.io/vd1u2
NixOS_GitHub has left #nixos []
<mcicon> hey, whom should I contact regarding NixOS logo? I would like to slighty modify it (move the title beneath the snowflake, for the sake of consistency of one OSS project showing NixOS as an viable system to use it). My mail is niewskici@gmail.com
<infinisil> mcicon: ixxie i think, not here right now though
<mcicon> @infinisil thank you!
jb55 has joined #nixos
justanotheruser has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] florianjacob opened pull request #30426: Fix munin_stats plugin when running munin-node only (master...fix-munin_stats-plugin) https://git.io/vd1uS
NixOS_GitHub has left #nixos []
<infinisil> mcicon: Not sure how much actual influence he has on the official logo though
<gchristensen> mcicon: what do you mean, sake of consistency?
<mcicon> gchristensen will send you a link in a few seconds
<mcicon> sorry for the lack of correct words (I am after 4 beers, so trying to do some 'growth hacking' (hate that wordl) by adding references to Nix(OS) in some repos/sites)
<gchristensen> it'd be cool if we had a "press kit" with images like this of different orientations
<iqubic> gchristensen: Images of what?
<gchristensen> the logo mostly
<iqubic> Ah. I see.
<iqubic> I'd like that.
iqubic has quit [(Ping timeout: 246 seconds)]
frankqux has joined #nixos
iqubic has joined #nixos
takle has quit [(Remote host closed the connection)]
jb55 has quit [(Ping timeout: 240 seconds)]
Wizek_ has quit [(Ping timeout: 248 seconds)]
sophiag has joined #nixos
<iqubic> I need a new laptop. What do you guys suggest? I'll be dual booting Windows 10 and NixOS
saf_spa has quit [(Quit: Konversation terminated!)]
<sophiag> is there any reason i'd be getting "undefined variable" for a package that's listed in nixpkgs? it's browserpass, a browser extensions for pass. i don't want to have to figure out patchelf :(
<disasm> iqubic: currently on a mac, but would love to get my hands on one of these... https://puri.sm/products/librem-13/
Wizek_ has joined #nixos
takle has joined #nixos
jensens has quit [(Ping timeout: 255 seconds)]
<iqubic> disasm: But that makes it hard to dual-boot windows, doesn't it?
mortum5 has quit [(Ping timeout: 240 seconds)]
<sophiag> iqubic: i've been pondering the same thing (minus Windows). i just started a new job and they got me the new macbook pro so i'd love to find something like it that plays nicely with NixOS (and no touchbar plus some ports i can actually use...)
<frankqux> anyone know what's broken or needed if doing `nix-env -q` shows nothing? `nix-env -qa` works as expected, if that makes a diff
<gchristensen> -q without -a means what is already installed
csingley has quit [(Ping timeout: 240 seconds)]
<disasm> iqubic: it's open hardware, no reason you can't install windows on it that I know of (although aside from my 5 year old gaming desktop I use once every 3 months or so, I seldomly touch windows anymore)
<frankqux> so wouldn't it list the packages that are "installed" via configuration.nix?
<iqubic> disasm: It's just that I would buy Windows 10 again.
<iqubic> Windows 10 is stupid in that you buy it per computer, and not per person
periklis has quit [(Ping timeout: 240 seconds)]
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<hodapp> I've kept my Windows to mostly VMs for awhile
hexamod has joined #nixos
<sophiag> hmm...i'm still trying to figure out why a package is giving me "undefined variable." it's this one: https://github.com/NixOS/nixpkgs/blob/2231575a7ddd768fbce7d8f0c75926e5f1ee5c95/pkgs/tools/security/browserpass/default.nix#L30
<frankqux> okay well if `nix-env -q` doesn't list packages "installed" from configuration.nix, is there a way to list that?
<disasm> iqubic: are they getting that smart? 5-6 years ago I never had a problem calling support and telling them I replaced a bunch of hardware in my computer and need to reactivate an OEM licence.
<iqubic> disasm: I think they are. Also, I don't like Window tech support.
AndreasO has quit [(Quit: Found more important stuff than irc!)]
<disasm> iqubic: understandable :)
<iqubic> If I can't figure it out myself, then I don't want to call them
juriq has quit [(Ping timeout: 240 seconds)]
hiratara has quit [(Ping timeout: 258 seconds)]
<disasm> I just meant for reactivation :)
<iqubic> Still... Same thing.
<disasm> anyways, back to nixos talk :)
hiratara has joined #nixos
Itkovian has joined #nixos
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
hexamod has joined #nixos
jb55 has joined #nixos
seppellll has joined #nixos
Acou_Bass has quit [(Quit: byeeeeeeeeeeeeeee)]
Acou_Bass has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<infinisil> frankqux: nix-instantiate --eval --strict -E 'map (x: (builtins.parseDrvName x.name).name) (import <nixpkgs/nixos> {}).config.environment.systemPackages'
<infinisil> This lists, although not all that nice, all systemPackages from your system config
MP2E has joined #nixos
<frankqux> oh okay, so `nix-env -q` doesn't list those packages then? i could swear it did before... i was mainly just trying to figure out if something major is broken
<infinisil> Yeah it doesn't
hexamod has joined #nixos
<iqubic> frankqux: are you running it as root?
<frankqux> i tried it both as normal user and with sudo. didn't try actual root though
<iqubic> When I run it as my primary user, I get a list of all the things installed in ~/.config/nixpkgs. Which is just home-manager in my case
pie_ has quit [(Ping timeout: 240 seconds)]
c0bw3b has left #nixos []
<infinisil> I cleaned up this command a bit, this lists it a bit better: https://git.io/vd1VG
seppellll has quit [(Ping timeout: 258 seconds)]
<tilpner> infinisil - Could do that in Nix with lib.unique and concatMapStringsSep :)
<infinisil> tilpner: But it would still output it quoted
<frankqux> hm well now i'm more confused... so `nix-env -q` lists packages installed from ~/.config/nixpkgs, but not /etc/configuration.nix?
<rycee> infinisil: Sorry about being so difficult about the HOME and USER in sessionVariables! I'm feeling there is some underlying elegance to be discovered by avoiding them and I'm hoping my latest comments are getting a bit closer :-)
<infinisil> rycee: No problem!
<infinisil> rycee: Discuss here a bit?
<hydraz> joou
<hydraz> ... sorry, I'm not sure exactly how that happened.
orivej has joined #nixos
<frankqux> guess i just need to read all the manual and wiki and not skim ._.
simukis has quit [(Ping timeout: 240 seconds)]
<sophiag> ugh, ok. i think i just had to switch to 17.09 and upgrade, but now i'm out of disk space. i don't think i can call gc since i still have some weird display manager issue that means i have to roll back quite far every time i need to reboot :/
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 3 new commits to master: https://git.io/vd1V5
<NixOS_GitHub> nixpkgs/master 30db0a6 mimadrid: check: 0.10.0 -> 0.11.0
<NixOS_GitHub> nixpkgs/master 416fe66 mimadrid: rofi: 1.3.1 -> 1.4.1
<NixOS_GitHub> nixpkgs/master cceae9a Michael Raskin: Merge pull request #30420 from mimadrid/update/rofi-1.4.1...
NixOS_GitHub has left #nixos []
<sophiag> which is to ask, is there anything in between as far as gc? i.e. that will preserve certain previous builds i care about?
<MichaelRaskin> You can just keep the references to them somewhere, no?
taktoa has quit [(Remote host closed the connection)]
hiratara has quit [(Remote host closed the connection)]
<sophiag> MichaelRaskin: i'm not sure what you mean by references? like my configuration.nix? the problem is if i don't have them in GRUB then i won't be able to boot at all
<sophiag> err, one build in particular actually. so ideally i'd like to delete all but the current and that one
<MichaelRaskin> nix-store --gc does not delete generations
<MichaelRaskin> nix-collect-garbage -d does, but you can manually go to /nix/var/nix/profiles
<MichaelRaskin> And delete the generations you don't need
<sophiag> ah ok cool. that's was my intention in this question. i'm a bit confused about the different gc commands
<MichaelRaskin> And then run nix-store --gc
hiratara has joined #nixos
<sophiag> yeah, very likely that's all i need rn
jb55 has quit [(Ping timeout: 240 seconds)]
<sophiag> MichaelRaskin: btw, while you're here...i do have an issue open trying to troubleshoot my boot issues, but haven't looked at in a couple weeks out of exhaustion (just started a new job): https://github.com/NixOS/nixpkgs/issues/29290
<sophiag> it really seems to be a video driver issue rather than anything on top of x server, but no combination of fixes has solved it so far :/
<sophiag> actually debating reinstalling from disc when i have the time...
<sophiag> oh wow, yeah nix-store --gc freed 25gb
<MichaelRaskin> Well, I guess going further to 17.09 gives you a new roll of the wheel w.r.t. driver combination; then you could pick the latest kernel in 17.09 just to check.
<sophiag> yeah, i figured at this point what do i have to lose
<sophiag> although to be clear, is just upgrading my channel to 17.09 enough?
<sphalerite> upgrade the channel, nix-channel --update, nixos-rebuild boot
<MichaelRaskin> Upgrading channel, rebuilding and rebooting are definitely all needed. I think nothing else.
<sphalerite> also check the release notes
<sophiag> ah well, the final step may not work
<sophiag> i'm currently doing a rebuild switch, but i've purposefully commented out the changes that will crash it (i.e. the ones i was using to troubleshoot)
erictapen has quit [(Ping timeout: 240 seconds)]
<sphalerite> you won't get the newer kernel without rebooting ;)
<MichaelRaskin> Also, were you using nvidia card, or is it an Optimus laptop where you only use Intel card?
<iqubic> MichaelRaskin: What does "w.r.t" mean?
<sphalerite> with respect to
<MichaelRaskin> with respect to
dtzWill has quit [(Ping timeout: 260 seconds)]
<sophiag> yeah, i know. i just got really fatigued with rebooting to troubleshoot
<sophiag> i do have an nvidia card, but as you can see in that issue switching to the unfree driver and latest kernel didn't solve the issue. though to be fair that was on 17.03
<disasm> sophiag: unless you you are switching file systems reinstalling from disc is pretty pointless with nixos.
<MichaelRaskin> Were you using nvidia card in any way on 16.03?
<MichaelRaskin> Because I also see it's an Asus, and they use The Sensible Wiring that means that unless you do something to use Nvidia, you don't need it.
<sophiag> oh hmm
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<sophiag> i thought it was just an issue of the default nouveau driver
<MichaelRaskin> If you also don't care to use nvidia card, you can block it in BIOS.
jb55 has joined #nixos
<MichaelRaskin> We-ell. All drivers for Nvidia cards have issues.
<sophiag> i would ideally like to use the nvidia card, but it's probably worth disabling it to see if that fixes everything
<MichaelRaskin> Just different ones.
<sophiag> yes, i have seen the video of linus...
<sophiag> anyway, you're saying it's possible some package i either installed or upgraded could have started using the card and hence brought on the common issues?
<MichaelRaskin> I have to admit that I happen to have only laptops where nouveau is okay-ish for Nvidia card
<MichaelRaskin> No, no.
<MichaelRaskin> The point is that xorgserver+nouveau could change their exact way of interacting with the card/
<sophiag> ah ok
<sophiag> hmm
<sophiag> i should definitely just try turning it off then
<MichaelRaskin> When you have energy to actually debug, you could try also Nvidia-only mode in BIOS
<MichaelRaskin> It is imaginable that this _also_ works.
<sophiag> nvidia-only?
<sophiag> wow, damn
<MichaelRaskin> You have two video cards wired in an interesting way.
<MichaelRaskin> Asus generally uses sane BIOS, so it should be possible to make any of them the only one active.
<sophiag> i will be buying a new laptop in not that long...hopefully i can avoid this nonsense. clearly the one i'm using now is meant only for windows
<rycee> infinisil: Sorry, ran off to brush my teeth. Will go to bed now. But please have a look at my comment and see what you think :-)
<MichaelRaskin> Nvidia-only is simpler than Intel+Nvidia (but more complex than Intel-only)
<sophiag> well, i think i replaced uefi with grub. but i should still be able to configure the graphics easily
<MichaelRaskin> sophiag: sorry to bring the bad news, but in general new hardware (especially from Nvidia) includes new and exciting ways to break expectations.
<sophiag> yes, but the hardware i have now is surely particularly bad
<MichaelRaskin> I actually prefer UEFI variant of GRUB2
<sophiag> uefi variant?
<MichaelRaskin> GRUB2 has UEFI support.
<MichaelRaskin> You can install it for classical BIOS boot mode, or for UEFI mode.
<sophiag> oh, i *think* that's just how i have it set up now
<sophiag> "boot.loader.efi.canTouchEfiVariables = true" ?
<MichaelRaskin> Hm. What is boot.loader.grub.device though
<MichaelRaskin> "nodev" ?
<MichaelRaskin> And is there «efiSupport»
<disasm> sphalerite: you use zfs, right?
<sphalerite> disasm: yes
iclanzan has joined #nixos
<sophiag> "/dev/sdb"
<MichaelRaskin> Hmmm
<MichaelRaskin> I think you are using classical BIOS boot mode.
<sophiag> are you saying i need boot.loader.grub.efiSupport = true ?
<MichaelRaskin> Well, if you don't dualboot and nothing boot-related is broken and you are going to abandon the laptop in less than a year — not really «need»
<disasm> sphalerite: what's your disk partitioning look like? 1 luks volume with a zpool in it and a bunch of datasets for root, home, nix, etc...?
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
<sophiag> i ask because i've had weird suspend/hibernate/freeze issues since the beginning with this machine
<sophiag> assumed it was a bios thing
<sphalerite> disasm: I followed gchristensen 's setup which is on his blog
<sphalerite> I've recently started moving stuff to more datasets though
<sphalerite> E.g. ~/.cache gets its own and such
<sphalerite> So I can set up autosnapshot and not waste too much space on stuff I don't need to keep
jb55 has quit [(Quit: WeeChat 1.9)]
<sophiag> ironically it's a pretty powerful laptop, although weighs a ton and has hardly any battery life plus tons of other weird gaming stuff
<MichaelRaskin> Hm, suspend-to-RAM shouldn't be related to boot mode.
jb55 has joined #nixos
<MichaelRaskin> suspend-to-disk, actually, too…
<sophiag> well, i can now get one of those things to work...just not sure which
<sophiag> pretty sure i still can't physically close the screen or let it competely lose battery
<sphalerite> It's a minor pain to move stuff around after the fact (though much less than with classical partitioning!) so thinking about how you want everything set up now is a good ideaa
<disasm> sphalerite: do you have a link?
<MichaelRaskin> If you cannot let it lose battery, it is suspend-to-RAM
<sphalerite> disasm: grahamc.com I think
<sphalerite> Yep looks like it
<MichaelRaskin> Hm, looking at the config — maybe you were using only Nvidia. Maybe your laptop is actually wired as Nvidia-only
<sphalerite> On my phone so I can't just check my browser history >.>
ambro718 has quit [(Ping timeout: 240 seconds)]
<sophiag> i wouldn't doubt that
justanotheruser has joined #nixos
<sphalerite> Aaaah 2 weeks to nixcon
* grahamc needs to write his talks
<disasm> grahamc: so finished backing up my laptop last night, sphalerite said you have a blog post about zfs on nixos, but I can't seem to find it...
<grahamc> I don’t have one about zfs
<disasm> grahamc: ah, how do you split up your datasets? assuming luks with a single zpool and then datasets for like /home, /nix and the root?
<grahamc> I don’t use zfs on my laptop
<sphalerite> Huh? I must be remembering everything wrong then
<sphalerite> Oops!
<sphalerite> disasm: I can send you some details of my setup tomorrow if you're still interested then
jushur has joined #nixos
<sphalerite> But basically the gist is - anything you want to account for separately or have different backup schedules for, put in its own dataset
<sphalerite> I don't back /nix up at all, but /etc/nixos and /home/linus (not including .cache) will be on autosnapshot once I finally get around to setting that up
<sphalerite> grahamc: your blog's style is a bit wonky on mobile, there's no gap between the text and the edges of the screen which makes it a bit awkward to read
<sphalerite> disasm: I also have two user accounts for myself (linus, my main one, and steam, for nonfree software) with a separate dataset for each. Steam is also not backed up for space reasons
MarcelineVQ has quit [(Quit: q)]
<disasm> sphalerite: nice! I might give it a try. You need to build zfs on the live cd though, right?
<sphalerite> Yeah
<sphalerite> Or you can prepare your own live system with zfs available
<disasm> sphalerite: is this still true? As of 2014-03-04, you shouldn't use a ZVol as a swap device, as it can deadlock under memory pressure
takle has quit [(Remote host closed the connection)]
<sphalerite> Idk. I wouldn't use a zvol for a swap device just because I'm not such a hardcore zfs user and I'm just generally a bit scaredy with that sort of thing
<sphalerite> Can't really go wrong with just using a regular partition as swap imo
p4cman has quit [(Quit: Connection closed for inactivity)]
<sophiag> i just finished upgrading to 17.03 and the final line when installing GRUB2 was "Installing for i386-pc platform." um...is that normal?
<disasm> sphalerite: yeah, that's what I currently have with btrfs, probly leave it the same.
<disasm> 17.03? what where you at before sophiag
<disasm> sphalerite: you using luks or zfs native?
<sphalerite> sophiag: if you're not using EFI, yes
<sphalerite> disasm: luks, zfs native hadn't landed when I made the setup. hyper_ch is/was using zfs encryption though
leat has joined #nixos
<infinisil> i don't think he is, he just tested it a bit
<sphalerite> sophiag: i386 is just the processor architecture family (idk in which convention) and -pc is BIOS boot, in contrast with -efi
<disasm> yeah, I think I'll stick with luks for at least another year :)
voobscout[m] has joined #nixos
<infinisil> Damn, didn't know `nix-build -A <Tab>` would autocomplete attributes :O
<disasm> sphalerite: what's your backup strategy? do you zfs send snapshots to another host?
<sophiag> ah ok, thanks sphalerite. i just never noticed that line before but haven't upgraded in a while
<sophiag> i should probably enable efi though
<disasm> sophiag: yeah, if your system supports efi, I'd recommend it.
<sphalerite> disasm: what my backup strategy is? Insufficient xD
<sophiag> is it just a matter of adding boot.loader.grub.efiSupport = true ?
<sphalerite> Currently I make manual snapshots and zfs send them to an external USB HDD whenever I remember to
<iqubic> sophiag: What bootloader do you use?
<disasm> sophiag: and mounting the EFI partition to /boot
<Unode> Hi all. I'm running into an fcron issue http://dpaste.com/2YKSJHW. Checked the channel logs and someone back in August reported the same issue but I couldn't find a solution. Any recommendation on how to handle this?
<sphalerite> Improvements I intend to make are autosnapshot and sending daily snapshots to my dad's backup server in Sweden
<iqubic> How hard is it to switch from systemd-boot to grub?
<sophiag> disasm: ah ok
<iqubic> I dual boot Windows10 and NixOS
<sphalerite> Unode: assuming fcron is like cron, any reason not to use systemd timers?
<sphalerite> iqubic: should be just a matter of setting boot.loader.grub.enable = true; and rebuilding
<disasm> iqubic: not too difficult, pretty much remove systemd-boot stuff and add grub efi stuff then rebuild switch although I really like the simplicity of systemd-boot
<sophiag> oh shit...all my unfree software seems to have disappeared in the upgrade
ertes has joined #nixos
<Unode> sphalerite: I'm not familiar with systemd timers. fcron is like cron but has some extra mechanisms to ensure a task/job runs even if outside of the specified time. For instance if laptop was not online and I have some sort of daily task to run.
<sophiag> i just closed out of chrome to see if it would fix this extension :/
<disasm> sophiag: define disappeared and how was it installed prior to upgrade?
<sophiag> no, actuallly looks like it was just chrome not all unfree. hmm
<sophiag> "which google-chrome" says i have none installed
<disasm> imho, just install chromium :)
<sphalerite> Unode: a systemd timer with Persistent enabled should do that too
markus1199 has joined #nixos
<avn> iqubic: in some cases you may want have EFI partition as /boot/efi (and not /boot) if you switch grub (to not have grub stuff on fat partition)
<sophiag> i've found chromium to be kind of garbage tbh
<sphalerite> avn: which cases?
<Unode> sphalerite: and speaking of systemd, I'm currently migrating from a different Linux distro (gentoo) where I was not using systemd. I was using supervisord that was started by the user as soon as X starts. I've setup a systemd user service but most of the time this service fails to start. In some cases I suspect because X isn't ready yet.
<sphalerite> sophiag: how so..?
<disasm> sophiag: I've been using it for 6 months and can't tell the difference :)
<avn> sphalerite: I choose it, when I want to have my kernels on ext4/btrfs/zfs/whatever, and only grub-x64.efi on /boot/efi
<Unode> sphalerite: do you have any recommendations on how to handle this and to run systemd services that require access to X or other environment variables set by X?
<iqubic> avn: I have used grub on this partitioning scheme.
<freeman42x> I got a `.nix` file for installing `wordcloud` python package using https://github.com/garbas/pypi2nix#usage
<sophiag> chromium increased crashes for me significantly vs. chrome
<freeman42x> How would I reference that file in the main NixOS configuration file so that I can install the package using `nixos-rebuild switch` ?
<Unode> I've read about it but the solutions I encountered are clumsy and require reloading the service after X is fully on.
<sophiag> plus i need to sync my tabs across OSes
MarcelineVQ has joined #nixos
sophiag has quit [(Remote host closed the connection)]
<iqubic> I originally used gentoo on this computer, but switched to NixOS.
<iqubic> I didn't chanage the partitioning scheme
<disasm> freeman42x: at the top let mypython = import ./requirements.nix { inherit pkgs; }; and in system packages reference mypython.app
markus1189 has quit [(Ping timeout: 240 seconds)]
<Unode> iqubic: same process here. Still keep gentoo for those cases when nixos isn't quite there yet.
<iqubic> Unode: I wiped away gentoo and fully switched over to nixos
<disasm> currently have arch/nixos dual boot on same partition (btrfs) debating on if I want to go through the hassle of setting arch back up when I switch to zfs :)
<iqubic> Gentoo was using grub, and now nixos uses systemd.
<freeman42x> > freeman42x: at the top let mypython = import ./requirements.nix { inherit pkgs; }; and in system packages reference mypython.app
<freeman42x> ah, I forgot to mention that I am using python with packages form, eg. one of the elements in the system packages list is `(python35.withPackages (ps: with ps; [notebook ipykernel numpy toolz tensorflow Keras pandas matplotlib seaborn]))`
<Unode> iqubic: aren't you mixing things?
<iqubic> No.
<Unode> iqubic: I have grub and systemd.
marusich has quit [(Ping timeout: 246 seconds)]
<sphalerite> I think you mean systemd-boot, iqubic?
<disasm> freeman42x: you got me then, I haven't tried withPackages
<iqubic> I do.
<Unode> grub works fine here. Easier to keep compatibility with that's already on the disk.
<iqubic> Gentoo used grub, then I switched nixos. Nixos now uses systemd-boot.
<iqubic> I want to switch back to grub.
<iqubic> How hard will that be?
<Unode> I'm also still not fully convinced about systemd. One big beast to win them all.
<Unode> iqubic: a few lines on your configuration.nix
bennofs has quit [(Ping timeout: 255 seconds)]
hamishmack has quit [(Quit: hamishmack)]
<iqubic> What init system do you use Unode?
<sphalerite> Unode: right, not sure how to do that although I think it should be possible
<freeman42x> > freeman42x: you got me then, I haven't tried withPackages
<freeman42x> damn, maybe it just works the same? haha, I don't know any nix to tell
<disasm> freeman42x: this looks like it might fit the bill: https://nixos.org/nix-dev/2016-November/022103.html
<Unode> iqubic: I told you already. systemd.
<iqubic> I see. Do people think I should switch back to grub?
Wizek has quit [(Quit: Connection closed for inactivity)]
<sphalerite> iqubic: init system and boot loader are different things
<freeman42x> > freeman42x: this looks like it might fit the bill: https://nixos.org/nix-dev/2016-November/022103.html [Nix-dev] pypi2nix: generate full PYTHONPATH from requirements? [Nix-dev] pypi2nix: generate full PYTHONPATH from requirements? Daniel Hlynskyi abcz2.uprola at gmail.com Sat Nov 5 22:44:42 CET 2016 Previous message: [Nix-dev] pypi2nix: generate full PYTHONPATH from requirements?
<freeman42x> Sorry, I don't really get how that works :( I need to learn Nix
<Unode> sphalerite: do you know if there's any service I can depend on that ensures user is logged in and X is up and running?
<Unode> service/target (not sure about systemd nomenclature)
<disasm> iqubic: I like systemd-boot personally. It's a "set it and forget it" boot loader, and I've booted 3 or 4 distributions using it with minimal hacking to make it work (unlike grub)
<sphalerite> iqubic: If you're using nixos, you'll be using systemd as an init system regardless.
<sphalerite> If your system is booting and you don't have any issues with the boot loader, stick with it.
<Unode> iqubic: on gentoo I'm using openrc. As I said I'm not sold on systemd but on nixos there isn't really an option.
<iqubic> This really is a massive XY problem.
ryantrinkle has quit [(Ping timeout: 255 seconds)]
<Unode> iqubic: I don't think so. Just go with it. You'll find a solution if it doesn't work for you.
<iqubic> I want to configure systemd-boot to have bigger text, no timeout, and have a background image like the one lightdm has on nixos.
<iqubic> I was thinking of switching just because grub has this stuff out of the box.
<Unode> sounds like you are worried about cosmetics :)
<iqubic> I am.
<iqubic> That is the only reason I was thinking of switching.
<iqubic> that's why it's an XY problem
notdaniel has joined #nixos
<Unode> Not sure I get what you mean by XY problem then.
<Unode> are you referring to chromosomes?
<iqubic> No.
<Unode> heh, sounds like you should cut to the chase then and just do it :)
<iqubic> Do what?
<iqubic> I think configuring Systemd-boot would be the easiest thing to do here.
<sphalerite> iqubic: if you need the pretties, yes, switch to grub. If just disabling the timeout will do you can stay with systemd-boot
jgertm has joined #nixos
notdaniel has quit [(Client Quit)]
<sphalerite> Unode: I don't, sorry
<iqubic> Can I increase the text size with systemd-boot?
notdaniel has joined #nixos
<sphalerite> Don't think so
<Unode> sphalerite: ok thanks for the feedback
<iqubic> Alright then. Time to switch to grub.