gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
<justanotheruser> Hey, I'm trying to install an old version of chromium, so I used https://nixos.wiki/wiki/FAQ#How_can_I_install_a_package_from_unstable_while_remaining_on_the_stable_channel.3F
<justanotheruser> I got this error though https://hastebin.com/raw/iwujokorit (line 4 is `nixos-1803 = import <nixos-18.03> {};`) `sudo nix-channel --list` includes the line `nixos-1803 https://nixos.org/channels/nixos-18.03`
hakujin has joined #nixos
<zybell_> in iwujokorit the last line of the error
<zybell_> did tell you to use --show-trace
<zybell_> to get a better report
<zybell_> did you try?
<{^_^}> [nixpkgs] @shlevy pushed to release-18.03 « buildSetupcfg: Include unzip for zip sources. »: https://git.io/vpewK
<{^_^}> [nixpkgs] @shlevy pushed to master « buildSetupcfg: Include unzip for zip sources. »: https://git.io/vpewi
mkoenig has joined #nixos
<{^_^}> [nixpkgs] @shlevy pushed to release-18.03 « Revert "buildSetupcfg: Include unzip for zip sources." »: https://git.io/vpewS
<{^_^}> [nixpkgs] @shlevy pushed to master « Revert "buildSetupcfg: Include unzip for zip sources." »: https://git.io/vpewH
hakujin has quit [Ping timeout: 260 seconds]
psychic1 has joined #nixos
psychic1 has quit [Client Quit]
acarrico has joined #nixos
<cheshircat> is there an equivalent to python.withPackages for lua?
mkoenig_ has quit [Ping timeout: 268 seconds]
Arcaelyx has quit [Read error: Connection reset by peer]
Arcaelyx has joined #nixos
hakujin has joined #nixos
xeji has quit [Quit: WeeChat 2.0]
xy2_ has quit [Ping timeout: 268 seconds]
<justanotheruser> zybell_: what is iwujokorit?
<justanotheruser> the traceback ends with undefined variable ‘nixos-1803’ at /etc/nixos/configuration.nix:183:5
<zybell_> the filename you posted here
<justanotheruser> oh wait
<justanotheruser> sorry, ththe end of the traceback is file ‘nixos-1803’ was not found in the Nix search path (add it using $NIX_PATH or -I), at /etc/nixos/configuration.nix:4:23
<zybell_> on my browser tere is a line after that (in parentheses)
Ariakenom has quit [Read error: Connection reset by peer]
<zybell_> (but nobody reads what is in parentheses)
hakujin has quit [Ping timeout: 264 seconds]
justanotheruser is now known as justan0theruser
justan0theruser is now known as justanotheruser
day|flip has quit [Remote host closed the connection]
hakujin has joined #nixos
stepcut has quit []
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/2c95644e692 (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
pkill9 has quit [Quit: WeeChat 2.1]
<hodapp> (lispers do)
hakujin has quit [Ping timeout: 268 seconds]
hakujin has joined #nixos
acarrico has quit [Ping timeout: 264 seconds]
<zybell_> (;-)
chisui has joined #nixos
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
vaninwagen has quit [Quit: Connection closed for inactivity]
hakujin has quit [Ping timeout: 256 seconds]
ndrei- has quit [Ping timeout: 265 seconds]
hakujin has joined #nixos
ndrei has quit [Ping timeout: 240 seconds]
hph^ has quit []
mtd^ has joined #nixos
mtd^ has quit [Max SendQ exceeded]
mtd^ has joined #nixos
mtd^ has quit [Max SendQ exceeded]
mtd^ has joined #nixos
mtd^ has quit [Max SendQ exceeded]
mtd^ has joined #nixos
mtd^ has quit [Max SendQ exceeded]
ryantm has quit [Read error: Connection reset by peer]
mtd^ has joined #nixos
mtd^ has quit [Max SendQ exceeded]
endformationage has quit [Ping timeout: 264 seconds]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
endformationage has joined #nixos
Supersonic112 is now known as Supersonic
hakujin has quit [Ping timeout: 264 seconds]
mbrgm has quit [Ping timeout: 268 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Turion has quit [Ping timeout: 245 seconds]
hakujin has joined #nixos
wangoe has quit [Ping timeout: 255 seconds]
mbrgm has joined #nixos
hakujin has quit [Ping timeout: 256 seconds]
hakujin has joined #nixos
mounty has joined #nixos
Turion has joined #nixos
thc202 has quit [Ping timeout: 260 seconds]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/6ba9b9c9fa2 (from 73 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/6ba9b9c9fa2 (from 73 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
hakujin has quit [Ping timeout: 264 seconds]
olto has quit [Ping timeout: 264 seconds]
olto has joined #nixos
hakujin has joined #nixos
chisui has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
endformationage has quit [Ping timeout: 260 seconds]
endformationage has joined #nixos
endformationage has quit [Client Quit]
hakujin has quit [Ping timeout: 240 seconds]
hakujin has joined #nixos
nuncanada has quit [Read error: Connection reset by peer]
hakujin has quit [Ping timeout: 268 seconds]
markus1189 has joined #nixos
hakujin has joined #nixos
markus1199 has quit [Ping timeout: 240 seconds]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
mbrgm has quit [Ping timeout: 264 seconds]
mbrgm has joined #nixos
hakujin has quit [Ping timeout: 260 seconds]
aarvar has joined #nixos
hakujin has joined #nixos
aither has quit [Ping timeout: 240 seconds]
snajpa has quit [Ping timeout: 256 seconds]
day|flip has joined #nixos
snajpa has joined #nixos
hakujin has quit [Ping timeout: 256 seconds]
hakujin has joined #nixos
mkoenig_ has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
aither has joined #nixos
mkoenig has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @matthewbauer pushed to master « maloader: linux only »: https://git.io/vpe6g
ckauhaus has joined #nixos
ckauhaus has quit [Ping timeout: 256 seconds]
mkoenig has joined #nixos
<monokrome> ??
mkoenig_ has quit [Ping timeout: 260 seconds]
hakujin has quit [Ping timeout: 265 seconds]
aarvar has quit [Ping timeout: 264 seconds]
hakujin has joined #nixos
eldad has joined #nixos
aarvar has joined #nixos
<eldad> hi there, I have installed nixos and configured it to start with gnome. I have 2 major problems and I wonder if someone can help:1- wpa_supplicant fails to start (service) i tried to stop and start again and it just fails
<eldad> 2: when i log into gnome, all I get is a terminal in upper left corner, nothing else
jperras has quit [Ping timeout: 256 seconds]
<clever> eldad: for that 2nd one, services.xserver.desktopManager.xterm.enable = false;
<eldad> I created a wpa_supplicant config file and when I run wpa_supplicant -B -i interface -c <(wpa_passphrase MYSSID passphrase) it says successful but i have no network
rail_ has joined #nixos
<eldad> thank you clever, is this in the configuration file of cli?
<clever> in configuration.nix
<eldad> cheers, will try it
<clever> also, id run `wpa_passphrase MYSSID passphrase > /etc/wpa_supplicant.conf` and then `systemctl start wpa_passphrase` to fix the 1st issue
hakujin has quit [Ping timeout: 264 seconds]
rail_ has quit [Quit: Page closed]
hakujin has joined #nixos
fusion809 has joined #nixos
<eldad> will give it a go :) thank you
ihar has joined #nixos
aither has quit [Ping timeout: 265 seconds]
snajpa has quit [Ping timeout: 276 seconds]
snajpa has joined #nixos
ericsagnes has quit [Ping timeout: 256 seconds]
<fusion809> Hi folks, does Nix use a locale that is independent of the host system? I ask because I installed Vim using Nix and in NERDTree it shows strange characters that I think are locale-related. Here's a screenshot if you want a peakaboo: https://imgur.com/Ts9CMic.png (see the weird V and diamond characters next to the folder names?)
aither has joined #nixos
hakujin has quit [Ping timeout: 264 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/603a369b894 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
hakujin has joined #nixos
<eldad> @fusion809 have you resolved your gnome issue?
<fusion809> Na not yet, I'm using deepin atm, later I'll get onto NixOS
<ihar> quit
ihar has quit [Quit: WeeChat 2.0]
<fusion809> Btw how do I build Vim with a GTK+2 GUI? Like atm the way I'm building and installing Vim from the nixpkgs source repo (which I'm using as I'm building a newer release of it) and the way I am is in the top-level dir I'm running `nix-env -f . -iA vim`. I've tried to set the gui arg to gtk2 with: `nix-env -f . -iA vim --arg gui gtk2` but Nix doesn't seem to like these options together as it gives the error `error: undefined
<fusion809> variable 'gtk3' at (string):1:1`
<fusion809> Oops I mean `error: undefined variable 'gtk2' at (string):1:1` I tried gtk3 later
jperras has joined #nixos
ihar has joined #nixos
jperras has quit [Ping timeout: 264 seconds]
hakujin has quit [Ping timeout: 260 seconds]
<ihar> hi all. I am trying to configure kerberos authentication with firefox (or any browser for that matter). I have gssSupport = true in nixpkgs.config.firefox. I built firefox-wrapper. I got my ticket (I can see it in klist). Despite that, I still get asked for the password. I've found an old bug report about missing link to libgssapi_krb5 here: https://github.com/NixOS/nixpkgs/issues/15159 I tried the workaround
<ihar> (setting network.negotiate-auth.gsslib in about:config) but it doesn't work anyway. (btw the 'Web' browser shipped with Gnome shows the same behavior though maybe it uses the same backend, not sure.)
serentty[m] has joined #nixos
<ihar> has anyone been more successful in making firefox aware of kerberos?
hakujin has joined #nixos
<serentty[m]> Hi. I'm having trouble getting Vulkan to work. The application that I'm trying to write complains that it can't find libvulkan.so.1.
<serentty[m]> I have vulkan-loader installed (as root).
schoppenhauer has quit [Ping timeout: 276 seconds]
schoppenhauer has joined #nixos
hakujin has quit [Ping timeout: 260 seconds]
rosa has quit [Quit: rosa]
hakujin has joined #nixos
blankhart has quit [Ping timeout: 260 seconds]
blankhart has joined #nixos
psychic1 has joined #nixos
hakujin has quit [Ping timeout: 240 seconds]
drakonis has joined #nixos
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/7a2670d0672 (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
hakujin has joined #nixos
<psychic1> can anyone help me figure out why the bash in nix-shell is acting weird while "nix run"'s shell works fine?
<psychic1> For example with `nix-shell` when I backspace the cursor continues to the right instead of going back to the left
rosa has joined #nixos
<clever> psychic1: nix-shell changes $SHELL to a simpler bash that lacks readline support, but it still runs the previous bash, so it only beocmes an issue when you nest shells
<clever> nix run doesnt change bash
hakujin has quit [Ping timeout: 240 seconds]
<psychic1> hmm
eldad has quit [Ping timeout: 264 seconds]
<psychic1> clever, I understand your statement but I am not nesting nix-shells I only have one
<psychic1> I am calling nix-shell from a regular bash
<psychic1> Did you mean nesting shells in general? Or a nested nix-shell within another nix-shell?
<clever> it typically only happens when you run nix-shell inside nix-shell
<clever> and can sometimes be fixed by adding bashInteractive to the shell inputs
<psychic1> shellinputs as in build inputs?
<psychic1> I am running an environment for a haskell project.
<psychic1> Where would one add that bashInteractive in that case?
<clever> yeah, you will need to add it to the librarySystemDepends i think
<psychic1> I have a package override with my project
hakujin has joined #nixos
jperras has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #38476 → wine-unstable: 3.4 -> 3.5 (and staging likewise) → https://git.io/vxyMq
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpeX4
<{^_^}> → cbcb9eb9 by @coreyoconnor: wine: 3.4 -> 3.5 (and staging likewise)
<{^_^}> → 064d4bfe by @matthewbauer: Merge pull request #38476 from coreyoconnor/wine-3.5
rauno has quit [Remote host closed the connection]
freeman42x]NixOS has quit [Ping timeout: 265 seconds]
hakujin has quit [Ping timeout: 240 seconds]
jperras has quit [Ping timeout: 240 seconds]
rosa has quit [Quit: rosa]
eldad has joined #nixos
blankhart has quit [Quit: WeeChat 1.9.1]
ericsagnes has joined #nixos
rosa has joined #nixos
fusion809 has quit [Remote host closed the connection]
jgt has joined #nixos
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/6ba9b9c9fa2 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
rosa has quit [Quit: rosa]
<psychic1> How does one go about finding where callPackage is defined?
<psychic1> I don't want to be told where it is, I want to understand how to go about `nixPkgs` and finding definition of things I'm interested in.
rosa has joined #nixos
<psychic1> I searched the codebase but there are too many usages of this function. I also tried searching for "callPackage =" But I don't know which, if any, is the usual callPackage
jperras has joined #nixos
Rusty1_ has quit [Quit: Konversation terminated!]
hakujin has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
Guanin_ has quit [Ping timeout: 265 seconds]
blankhart has joined #nixos
hakujin has quit [Ping timeout: 256 seconds]
<psychic1> Even nix-repl's command prompt does not back space accordingly. I assume it also depends on that minimal bash.
<psychic1> am I supposed to override my bash package in order to make sure nix-shell and nix-repl have usable shells?
<psychic1> If so, how does one go about defining that? I'd like to do something as standard as possible that other people use and endorse.
Guanin_ has joined #nixos
mahalel_ has quit [Ping timeout: 264 seconds]
hamishmack has quit [Quit: hamishmack]
<clever> psychic1: that sounds more like $TERM is set wrong, so all readline based apps are broken
<psychic1> $ echo $TERM
<psychic1> rxvt-unicode-256color
<psychic1> `ghci` works fine for me and it is also readline based, no?
<clever> psychic1: also try doing things under a different terminal emulator
<psychic1> `ghci` from within a nix-shell works fine (backspace moves cursor left)
<psychic1> OK will try
<psychic1> clever, you're right, under xterm it works
<psychic1> Thanks, that narrows my search path
<clever> try disabling the 256 color changes you may have done to rxvt?
hamishmack has joined #nixos
<psychic1> Would that affect the cursor? Hmm I can disable the solarized colorscheme
ihar has quit [Quit: WeeChat 2.0]
hakujin has joined #nixos
psychic1 has quit [Quit: WeeChat 1.6]
rosa_ has joined #nixos
rosa has quit [Read error: Connection reset by peer]
hakujin has quit [Ping timeout: 240 seconds]
psychic1 has joined #nixos
<psychic1> clever, I fixed the problem by using rxvt-unicode from nixpkgs instead of rxvt-unicode from debian
<day|flip> is there a way to inport package from luarocks?
<day|flip> so that way the package is seen as a system wide?
rosa has joined #nixos
rosa_ has quit [Read error: Connection reset by peer]
blankhart has quit [Read error: Connection reset by peer]
blankhart has joined #nixos
hamishmack has quit [Quit: hamishmack]
hamishmack has joined #nixos
eldados has joined #nixos
Seichi has joined #nixos
<eldados> hi, managed to run gnome and wifi (thank you clever!)
Seichi has quit [Client Quit]
<eldados> silly question, what's the best way to upgrade to gnome 3.28? the one installed is 3.0 and I did a system upgrade and enabled the unstable channel
eldad has quit [Ping timeout: 264 seconds]
<jgt> can anyone answer this nixpkgs/haskell question?: https://stackoverflow.com/q/49838941/704015
rosa has quit [Ping timeout: 264 seconds]
<achambe> phreedom: I also do a search like
<achambe> git grep "callPackage ="
rosa_ has joined #nixos
<achambe> the assignment narrows down the definition alot
<clever> jgt: found the issue
<achambe> whoops, sorry, wrong name. psychic1
<clever> jgt: your doing an override against pkgs.haskellPackages, but then you ultimately use pkgs.haskell.packages.ghc822
<jgt> clever: jfc
<jgt> clever: of course
<clever> jgt: you want to apply the override down near that if statement, so haskellPackages1 = if ...
<jgt> clever: thank you!
<clever> jgt: then haskellPackages2 = haskellPackages2.override ...
<clever> oops, 2 = 1 for the previous
<{^_^}> [nixpkgs] @dotlambda merged pull request #38722 → python-docx: init at 0.8.6 → https://git.io/vxbyO
<{^_^}> [nixpkgs] @dotlambda pushed commit from @AJChapman to master « pythonPackages.python-docx: init at 0.8.6 (#38722) »: https://git.io/vpeM7
<jgt> clever: or I could remove that conditional, right?
<clever> jgt: you can also remove it, but then you cant change compilers
<jgt> clever: sure, but that's ok. The important thing is I understand why it wasn't working
<jgt> so again, thank you!
<clever> line 71 of this diff will select the right package set for the compiler you picked
<clever> then line 75 will apply an override to that
<clever> and 85 then uses it
<jgt> clever: Could I also use `extend` instead of `override`?
<clever> maybe, i havent played with extend much
<jgt> as I discovered yesterday, overrides don't compose
<clever> yeah, i have been wanting a way to compose haskell overrides
<jgt> and my persistent override wasn't being evaluated, because later in the expression I was adding another override to add hoogle
<clever> it uses the self: super: model, but doesnt allow composing
<jgt> clever: you can see that here: http://ix.io/17Jj
<{^_^}> [nixpkgs] @dotlambda merged pull request #35891 → salt: 2017.7.2 -> 2017.7.4, fix msgpack dependency → https://git.io/vAiyR
<{^_^}> [nixpkgs] @dotlambda pushed 3 commits to master: https://git.io/vpeMN
<{^_^}> → ee8495c4 by @aneeshusa: salt: fix msgpack dependency
<{^_^}> → e797e009 by @aneeshusa: salt: 2017.7.2 -> 2017.7.4
<{^_^}> → d7271088 by @dotlambda: Merge pull request #35891 from aneeshusa/fix-salt-msgpack-dependency
<clever> jgt: yeah, i havent looked into how to fix that properly yet
<jgt> clever: extend seems to work. Otherwise, I think overlays are the way to do things now, but I haven't tried.
<clever> overlays only work at the nixpkgs level i believe
<clever> so they cant compose haskell overrides
pie_ has quit [Ping timeout: 265 seconds]
rosa_ has quit [Quit: rosa]
<jgt> ah, ok. That'll stop me going down another rabbit hole.
<clever> similar to when you set config, you can also set import <nixpkgs> { overlays = [ ]; }, and give it a list of self: super: functions that act on the top-level pkgs set
<jgt> clever: my fork doesn't build because… Setup: Encountered missing dependencies:\nmonad-logger >=0.3.28, resourcet >=1.1.10
<clever> but the same issue still comes up, because haskellPackages.override will set the overrides attribute, overwriting it
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to release-18.03: https://git.io/vpeDv
<{^_^}> → ad771371 by @aneeshusa: salt: 2017.7.2 -> 2017.7.4
<{^_^}> → bd1583b7 by @aneeshusa: salt: fix msgpack dependency
<jgt> clever: how do you normally solve that?
<clever> you may need to run haskell.lib.dontCheck over that package
<clever> wait no
<clever> haskell.lib.doJailbreak i think
<jgt> I don't think it's a test dependency
<clever> that turns off the version limits in cabal
<jgt> and I don't think it's an upper-bound issue either
<jgt> IIRC, doJailbreak is to disable upper bounds, right?
<clever> yeah, it just disables all bounds
<clever> ah, nomad-logger isnt in the nix file you linked
<clever> i think you changed the cabal deps, and have to re-run cabal2nix
<clever> it also helps to keep the cabal2nix output in its own file, and just give callPackage the path
<jgt> that's a good point; I should do that
<jgt> but it's persistent that is failing to build
<jgt> and its nix expression looks like this: http://ix.io/17Nz
<jgt> I can remove the version numbers in persistent's cabal file, but then it doesn't build because it does actually need the lower bounds it has on its dependencies
<clever> what does its cabal file say?
<jgt> this is the cabal file: http://ix.io/17NA
rosa_ has joined #nixos
<jgt> will I have to fork those dependencies too?
<clever> oddly, i cant find nomad in that cabal file
<jgt> monad, not nomad
<clever> *doh*
<clever> yeah, you will probably want to run cabal2nix on those too, to force the version
<clever> and add them to the overrides
<jgt> but do I add them to the overrides in my shell.nix? Or do I add the overrides in the fork's persistent.nix?
<jgt> (not actually sure if I can do the latter)
<clever> you would add it to the haskellPackages overrides
<clever> so the entire package set is affected
<jgt> ok, thanks. I'll give that a try.
rosa_ has quit [Remote host closed the connection]
<jgt> clever: is there a simpler way to do the override than cloning the project locally, running cabal2nix, etc?
rosa has joined #nixos
<clever> you can give cabal2nix a git url and a git revision
<clever> it might also support just a bare package name+version and hackage lookups, never tried it though
<jgt> ok
<jgt> I was thinking of something just in the shell.nix, like fetchFromGithub and callCabal2nix
<{^_^}> [nixpkgs] @7c6f434c pushed to master « libreoffice: wrapper: apparently session bus for DBus is enough, and adding a local system bus when a session bus is pre… »: https://git.io/vpeDW
rosa has quit [Client Quit]
maurer has left #nixos ["WeeChat 1.5"]
<{^_^}> [nixpkgs] @matthiasbeyer opened pull request #38955 → mutt: 1.9.4 -> 1.9.5 → https://git.io/vpeDR
Turion has quit [Remote host closed the connection]
hakujin has joined #nixos
ckauhaus has joined #nixos
drakonis has quit [Quit: Leaving]
hakujin has quit [Ping timeout: 256 seconds]
ckauhaus has quit [Ping timeout: 256 seconds]
rosa has joined #nixos
rosa_ has joined #nixos
rosa has quit [Read error: Connection reset by peer]
day|flip has quit [Remote host closed the connection]
ma27 has joined #nixos
rosa_ has quit [Quit: rosa]
jperras has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
rosa_ has joined #nixos
nelag[m] has joined #nixos
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/ad771371fb2 (from 67 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/6b796a9c23d (from 2 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
rosa_ has quit [Quit: rosa]
knupfer has joined #nixos
rosa_ has joined #nixos
bpa has joined #nixos
hakujin has joined #nixos
<ij> Are there observable differences between 1. the value created via a filterSource and 2. resulting string hardcoded?
spear2 has joined #nixos
hakujin has quit [Ping timeout: 240 seconds]
rosa_ has quit [Quit: rosa]
<clever> ij: the value filterSource creates has dependencies on the storepath, but a quoted string does not
<ij> clever, True. I was looking for something different. filterSource vs string differs when I pass it in "bundlerEnv { gemdir = HERE; }".
ckauhaus has joined #nixos
<unlmtd> can I do `imports = [ ./foo/* ]` ??
ambro718 has joined #nixos
<ij> unlmtd, No, that's probably not going to work and will be treated literally.
<unlmtd> ij: k thanks
alex`` has joined #nixos
ckauhaus has quit [Remote host closed the connection]
<ij> clever, I've created isolated code showcasing the bug. :: nix-build https://clbin.com/RtZ1M -E 'import ./. { fail = true; print = false; }'
ckauhaus has joined #nixos
ckauhaus has quit [Remote host closed the connection]
jperras has joined #nixos
rosa_ has joined #nixos
ckauhaus has joined #nixos
drakonis has joined #nixos
<drakonis> puffnfresh, with regards to your post about running unpatched binaries, have you tried using systemd-nspawn instead of docker?
hotfuzz_ is now known as hotfuzz
jperras has quit [Ping timeout: 265 seconds]
coot has joined #nixos
ckauhaus has quit [Ping timeout: 255 seconds]
psychic1 has quit [Quit: WeeChat 1.6]
ckauhaus has joined #nixos
ckauhaus has quit [Ping timeout: 276 seconds]
ckauhaus has joined #nixos
rosa_ has quit [Quit: rosa]
rosa_ has joined #nixos
hotfuzz has quit [Quit: WeeChat 2.0]
iyzsong has joined #nixos
ckauhaus has quit [Ping timeout: 276 seconds]
<ij> Aha, the difference's between store paths and non-store paths.
xy2_ has joined #nixos
rosa_ has quit [Quit: rosa]
rosa_ has joined #nixos
simukis has joined #nixos
<{^_^}> [nixpkgs] @gebner pushed to master « alacritty: add libGL to rpath »: https://git.io/vpeSQ
ma27 has quit [Ping timeout: 276 seconds]
ckauhaus has joined #nixos
<puffnfresh> drakonis: no but I should
ckauhaus_ has joined #nixos
<ij> Shouldn't «builtins.toPath "/nix" == /nix» return true? (it doesn't)
<{^_^}> [nixpkgs] @gebner merged pull request #38955 → mutt: 1.9.4 -> 1.9.5 → https://git.io/vpeDR
<{^_^}> [nixpkgs] @gebner pushed 2 commits to master: https://git.io/vpe9v
<{^_^}> → 792c99df by @matthiasbeyer: mutt: 1.9.4 -> 1.9.5
<{^_^}> → 1b480c85 by @gebner: Merge pull request #38955 from matthiasbeyer/update-mutt
hotfuzz has joined #nixos
ckauhaus has quit [Ping timeout: 264 seconds]
bpa has quit [Remote host closed the connection]
MichaelRaskin has quit [Quit: MichaelRaskin]
<clever> nix-repl> builtins.typeOf (builtins.toPath "/nix")
<clever> "string"
<clever> ij: toPath does not return a path
<clever> so line 1629 of eval.cc fails the ==
<ij> Yeah, makes sense.
ckauhaus has joined #nixos
ckauhaus_ has quit [Ping timeout: 240 seconds]
ckauhaus_ has joined #nixos
rosa_ has quit [Quit: rosa]
ckauhaus has quit [Ping timeout: 265 seconds]
<drakonis> worth noting that it is good to have tools to bootstrap other distros
rosa_ has joined #nixos
ckauhaus_ has quit [Ping timeout: 268 seconds]
hakujin has joined #nixos
<ij> clever, It seems like toPath doesn't actually convert the types, just makes the path canonical. :(
jperras has joined #nixos
<clever> yeah
<clever> ij: it also adds the path as context on the string
<clever> ij: have you seen what context is within nix?
<ij> Nope.
ma27 has joined #nixos
rosa_ has quit [Quit: rosa]
<clever> ij: all strings in nix have an array of context, that tracks what storepaths and derivations the string depends on
<clever> ij: and when those strings are passed to builtins.derivation, it uses the context to figure out what the build-time deps of the new derivation are
rosa_ has joined #nixos
hotfuzz has quit [Quit: WeeChat 2.0]
hakujin has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @lheckemann opened pull request #38956 → iputils: enable rarpd → https://git.io/vpe94
jperras has quit [Ping timeout: 260 seconds]
thblt has joined #nixos
hotfuzz has joined #nixos
rosa_ has quit [Client Quit]
<sphalerite> huh, iputils doesn't have a maintainer. It probably should…
rosa_ has joined #nixos
spear2 has quit [Ping timeout: 260 seconds]
spear2 has joined #nixos
orivej has joined #nixos
chisui has joined #nixos
Ariakenom has joined #nixos
<sphalerite> ij: nix build '(import <nixpkgs> {}).callPackage <nixpkgs/pkgs/development/ruby-modules/bundler-env/test.nix> {}'
<sphalerite> I think
silver has joined #nixos
<jgt> can I have multiple versions of a haskell package in my nixpkgs?
<jgt> I have a haskell project, and I used packageOverrides to grab a new version of a package
<jgt> that package needs newer versions of monad-logger and resourcet; no problem, I clone those and override
<jgt> but other packages depend on *older* version of resourcet
<jgt> so really, I think I need both versions available. Can I do that? If so, how?
drakonis has quit [Read error: Connection reset by peer]
bkchr has joined #nixos
<ij> sphalerite, Tried that, but it required the test argument.
ambro718 has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @guibou opened pull request #38957 → pysensors: init at 2018-04-15 → https://git.io/vpe9Q
tmaekawa has joined #nixos
rosa_ has quit [Quit: rosa]
hamishmack has quit [Quit: hamishmack]
blankhart has quit [Remote host closed the connection]
ericsagnes has quit [Ping timeout: 264 seconds]
rosa_ has joined #nixos
hakujin has joined #nixos
iyzsong has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/vpeHr
<{^_^}> → 92f0d31b by @S-NA: purple-discord: init at 2018-04-10
<{^_^}> → 93925cd9 by @S-NA: maintainers: add sna
chisui has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<ij> I found a bug in bundlerEnv. :)
<MarcWeber> garbas: What do you think about resolving 'recorsive' issues as known automatically and adding C library dependencies?
hakujin has quit [Ping timeout: 240 seconds]
hamishmack has joined #nixos
<{^_^}> [nixpkgs] @ThomasMader opened pull request #38958 → Dlang update → https://git.io/vpeHK
rosa_ has quit [Quit: rosa]
<{^_^}> [nixpkgs] @jtojnar merged pull request #38686 → purple-discord: init at 2018-04-10 → https://git.io/vxFOa
<MarcWeber> For the code I wrote - eg ruby - it could be as simple as pypi2nix_patches = { "libxml2" = { "-E" : "libxml"}, "Automat" = { "drop-autoo-deps-if-cycle": ["Twisted"] /* resolve cyclic dependencies */}
jgt has quit [Ping timeout: 276 seconds]
eldados has quit [Ping timeout: 264 seconds]
eldados has joined #nixos
chisui_ has joined #nixos
coot has quit [Quit: coot]
jacob_ has joined #nixos
rosa has joined #nixos
jgt has joined #nixos
bkchr has quit [Ping timeout: 260 seconds]
<aristid> while switching to the lates nixos-unstable-small configuration, my X11 crashed
<aristid> and atty also didn't work anymore
<aristid> anyone else seen that?
LysergicDreams has joined #nixos
<{^_^}> [nixpkgs] @siers opened pull request #38959 → ruby-modules: Import gemset if it's a path OR a string. → https://git.io/vpeQi
rosa has quit [Quit: rosa]
<ij> me ^
<ij> \o/
bkchr has joined #nixos
silver has quit [Read error: Connection reset by peer]
MP2E has quit [Remote host closed the connection]
logzet has joined #nixos
orivej has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @bkchr opened pull request #38960 → kde_frameworks: 5.44 -> 5.45 → https://git.io/vpe7t
thc202 has joined #nixos
bkchr has quit [Ping timeout: 256 seconds]
kerrhau has quit [Ping timeout: 264 seconds]
jperras has joined #nixos
rosa has joined #nixos
tmaekawa has quit [Quit: tmaekawa]
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/4cfdcedb71b (from 33 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
jperras has quit [Ping timeout: 276 seconds]
ditadi has joined #nixos
hakujin has joined #nixos
<aristid> ij: you know what the issue is/was?
rosa has quit [Quit: rosa]
hakujin has quit [Ping timeout: 264 seconds]
<ij> aristid, I was talking about the {^_^} nick's notice about my pull request.
eldados has quit [Ping timeout: 260 seconds]
<ij> I'm not on unstable, so I wouldn't know.
<aristid> ij: "me ^" was an ambiguous statement :P
<{^_^}> [nixpkgs] @zimbatm merged pull request #38959 → ruby-modules: Import gemset if it's a path OR a string. → https://git.io/vpeQi
<{^_^}> [nixpkgs] @zimbatm pushed commit from @siers to master « ruby-modules: Import gemset if it's a path OR a string. (#38959) »: https://git.io/vpe5k
<{^_^}> [nixpkgs] @LnL7 merged pull request #38869 → rustc: correct propagation of NIX_BUILD_CORES → https://git.io/vxpao
<{^_^}> [nixpkgs] @LnL7 pushed 2 commits to master: https://git.io/vpe5I
<{^_^}> → a2eacaaf by @coreyoconnor: rustc: correct propagation of NIX_BUILD_CORES
<{^_^}> → a071e9f8 by @LnL7: Merge pull request #38869 from coreyoconnor/rustc-build-cores
<xCuri0> Where can I find the offical Raspberry Pi 3 images ?
<xCuri0> I can only find http://nixos-arm.dezgeg.me/installer which is unoffical
sondr3 has joined #nixos
maingo has quit [Quit: Connection closed for inactivity]
<sondr3> hello, I'm in the process of trying to create my own little package, however I need to both download and build it and then create a systemd service for it, is this possible to do in one file? All the examples online or in the nixpkgs repo are either just installing the package or having the package installation in one file and then configuring the service in another
<infinisil> sondr3: Indeed, Nix doesn't really care what lives in what file, it's very flexible
<infinisil> sondr3: By systemd service you mean one you can use with nixos?
<sondr3> That's not the hard part though, I've created it and such, I just need to also download and build the package I want but I haven't found any examples I can rely on where both happen in the same file :)
<sondr3> I've created the configuration settings and the systemd service settings, now I just need to fetch the package
zduch4c has joined #nixos
<zduch4c> hello
<zduch4c> how can NixOS clean up the /var directory? I have some leftover ipfs stuff i dont want there, and nix-collect-garbage -d didnt seem to clean it up
<sphalerite> zduch4c: nix/nixos doesn't touch /var since it's stateful stuff like databases, which people typically don't want deleted automatically. Just delete it manually
<zduch4c> ok thanks
<xCuri0> might have important stuff you don't want deleted
<zduch4c> if i remove all of /var, will NixOS fix it up?
<zduch4c> */var/lib
rosa has joined #nixos
<sphalerite> zduch4c: no, don't do that
<sphalerite> only remove stuff you know you don't need from there
pkill9 has joined #nixos
<jgt> can I have multiple versions of a haskell package in my nixpkgs?
<zduch4c> okay thanks
zduch4c has quit [Quit: Page closed]
<jgt> I have a haskell project, and I used packageOverrides to grab a new version of a package
<jgt> that package needs newer versions of monad-logger and resourcet; no problem, I clone those and override
<jgt> but other packages depend on *older* version of resourcet
<jgt> so really, I think I need both versions available. Can I do that? If so, how?
<sphalerite> jgt: try using an overlay specifically for your project
<infinisil> sondr3: Can you show what you got now?
<jgt> sphalerite: will using an overlay bring a meaningful difference to using packageOverrides?
<sphalerite> jgt: yes. It's composable, so it can coexist with other overlays
<sphalerite> jgt: and if you only apply it within your project the version changes shouldn't affect anything other than your project
<sondr3> infinisil: now I want to download vgaswitcheroo from Github and install it, but that's where I'm left a bit stumped
<jgt> sphalerite: so what I'm trying to do doesn't actually work with packageOverrides?
<sphalerite> jgt: it might work, but I'm not sure
<sphalerite> jgt: what's wrong with using an overlay?
<sphalerite> Overlays are there to replace packageOverrides
<jgt> sphalerite: not being sarcastic or passive aggressive, I'm just trying to understand why so I can stop flailing :)
<jgt> sphalerite: afaik, nothing wrong with overlays
<jgt> if that's the right way to do things, then I'll do it that way
<jgt> but it's a new approach for me, and finding working examples is hard enough as it is
seanparsons has quit [Quit: ZNC 1.6.5 - http://znc.in]
<sphalerite> it's not hard to change a packageOverrides function into an overlay
<infinisil> sondr3: I left a comment in the gist with a draft of how you can get started
seanparsons has joined #nixos
<sondr3> infinisil: awesome! Thanks a lot, I'll give it a go
<jgt> sphalerite: ok, I'll see if I can find some examples. Here's what I have so far. It fails to build because it's missing some versions of monad-logger and resourcet: http://ix.io/17Ow
<jgt> sphalerite: I tried overriding those packages, but like I said, other packages depend on older versions of resourcet.
<sphalerite> jgt: oh you mean other packages *within* the project?
<sphalerite> yeah then it won't help
orivej has joined #nixos
<sphalerite> maybe using cabal2nix instead will work
bennofs has joined #nixos
<jgt> sphalerite: using cabal2nix on what? I've used it on my own project, and I've used in on the package I'm overriding.
<jgt> cabal2nix doesn't output version numbers or anything
<sphalerite> oh hm
<sphalerite> in that case you may need to jailbreak or if that doesn't work upgrade those dependent packages too.
<infinisil> jgt: stack2nix works really well
<infinisil> If you don't mind building all dependencies yourself once
<infinisil> that's really what makes it work so well though
<sphalerite> sondr3: you shouldn't need an extra package for it really, since vgaswitcheroo is just exposed via a sysfs entry which you can write into
<jgt> sphalerite: I tried upgrading those dependent packages, but then other packages fail to build because they depend on older versions
<jgt> hmm… maybe I can jailbreak the packages the depend on the older versions…
<sphalerite> jgt: yeah so you'd need to upgrade those too, that's what I mean
<sphalerite> jgt: or you could try stack2nix as infinisil suggests, it's probably a lot easier
<jgt> infinisil: I've used stack2nix, but I'm not sure what the differentiatior is here
<sphalerite> sondr3: in fact there was a module for this in nixpkgs already, but it was removed for lack of a maintainer. https://github.com/NixOS/nixpkgs/blob/ab06f3e99c7858657762649b9ebd23aba1c05d0b/nixos/modules/services/hardware/amd-hybrid-graphics.nix
<sondr3> sphalerite: oh wow
<jgt> oh… maybe I should create a stack.yaml in my main project, list the new version of persistent in the extra-deps, and then run stack2nix
<infinisil> jgt: stack2nix uses stackage's package set, which is a regular set of packages known to work well with each other, so you won't get build errors when you stick to the included ones (a couple thousand)
<jgt> I'll try that
<sondr3> sphalerite: I couldn't find anything when I searched around, thanks, I'll look into that as well
<infinisil> jgt: Yeah stack/stack2nix uses stack.yaml
<jgt> infinisil: I'm familiar with stackage. The problem is I want to use a bleeding edge version of persistent.
<jgt> or ideally, my own fork.
<sondr3> sphalerite: I'm trying to download the GitHub repo that I used in Arch Linux via AUR and use that but that package might be easier
<Unode> hi all, after updating to 18.03 ntpd seems to always hang at shutdown. systemd always waits 90s for it. Any way to prevent this from happening?
<infinisil> jgt: Is stack nightly not enough?
<sphalerite> sondr3: where is this repo? I suspect it does pretty much the same thing
ckauhaus has joined #nixos
<jgt> infinisil: I don't know. Wouldn't that mean my fork needs to be on Stackage?
xcmw has joined #nixos
<sondr3> sphalerite: https://github.com/0x414A/systemd-vgaswitcheroo-units, and yes, it pretty much does the same thing
<sondr3> sphalerite: though my needs are for Nvidia/Intel, not AMD, but it's essentially the exact same approach
<sphalerite> sondr3: yeah the name isn't ideal
<infinisil> jgt: I'm a bit confused
<jgt> infinisil: as am I
joehh has joined #nixos
<avn> jgt: pinning repo/commit in stack.yaml should work with stack2nix
<jgt> avn: yeah, I haven't tried that approach yet, but I'll try that now.
<sondr3> sphalerite: might just open an issue on Github about the name for that package
<zybell_> jgt:how about using /nix/store/concretehash-package-bleeding directly *instead* of putting it in path?
<sphalerite> sondr3: well it isn't there anymore at all
<sphalerite> sondr3: also it's not a package, it's a module
<jgt> zybell_: I don't know enough about Nix yet to know what you mean or how that would work
<jgt> :-/
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/e471376982d (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<sondr3> sphalerite: oh, right, forgot about that, well, I might just open an issue regardless since it's something I want and need, I'll tinker around and see what I end up with
<nek0> hi folks. how can I install godot-3.0.2 in nixos? even after switching to nixos-unstable channel I still get 2.1.4.
ckauhaus has quit [Remote host closed the connection]
<sphalerite> sondr3: https://github.com/NixOS/nixpkgs/pull/33915 here's the PR where I removed it
<sphalerite> sondr3: if you're willing to maintain it, feel free to open a PR adding it back
Narigo has joined #nixos
<sphalerite> sondr3: or maybe pink k0001
<sondr3> sphalerite: alright, thanks for all the help, I'll followup on the pull request itself since the name is a bit misleading since it works for Nvidia as well
Narigo has left #nixos ["Leaving"]
Narigo has joined #nixos
acarrico has joined #nixos
Alling has joined #nixos
<Alling> .gnome-shell-wr[1001]: Device activation failed: The VPN service 'org.freedesktop.NetworkManager.pptp' was not installed.
bennofs has quit [Ping timeout: 256 seconds]
<Alling> Trying to connect to my router using PPTP in Gnome. The GUI show no error but journalctl does.
thblt has quit [Remote host closed the connection]
<Alling> What can I do to make PPTP VPN work?
<Alling> If I try pptp on the command line btw:
<Alling> Error: either "to" is duplicate, or "uid" is a garbage.
<Narigo> Hi there, total newbie here... is it possible to add configuration options to the /etc/nixos/configuration.nix file programmatically / through a script or command line instead of editing it directly? I can only find "edit the configuration file", but I'd like to script my setup steps right from the start, if possible
goibhniu has joined #nixos
b has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @bachp opened pull request #38961 → cryptsetup-generator: add postFixup → https://git.io/vpedw
Otis has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/vpedo
<{^_^}> → 8416cd03 by @jtojnar: kazam: 1.4.3 → 1.4.5
<{^_^}> → fe21f168 by @jtojnar: libwnck3: fix git paths
pie_ has joined #nixos
<sphalerite> Narigo: no, there isn't really anything for that currently
hakujin has joined #nixos
<nek0> hello?
<sphalerite> Narigo: there's some discussion on the subject at https://github.com/NixOS/nixpkgs/issues/38499
<Narigo> sphalerite: So my only hope is sed or similar then? :( Is there something "in progress" so I can follow its development?
<Narigo> Ah, thanks :)
ckauhaus has joined #nixos
<jtojnar> Narigo: what are you trying to achieve? configuration.nix is already like a script
<jtojnar> but declarative, therefore better
rosa has quit [Quit: rosa]
<ben> lol
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos
<ben> like a script, but better because it's not a script
hakujin has quit [Ping timeout: 256 seconds]
<Narigo> jtojnar, I want to set up my raspberry pi with nix os - haven't used nixos before, so this is a lot to learn. I want to make all steps reproducable, so I can easily recreate setting it up
fendor has joined #nixos
<jtojnar> ben: well, usually you use a script to record a work so you can replicate it later
<ben> Narigo: once you've written the configuration.nix by hand, what is not reproducible about that?
<LnL> put your configuration.nix in git and clone it
<Narigo> I thought I could write a script that does all the necessary steps and on the Pi just do a `sh <(curl my-ip/init.sh)` and set it up
<LnL> reproducable + history :D
<ben> Narigo: do you need to customize it for each specific installation?
fendor has quit [Remote host closed the connection]
fendor has joined #nixos
<Narigo> ben: I just see that when I filled the SD card, there already is something in configuration.nix - namely "imports = [ <nixpkgs/nixos/modules/installer/cd-dvd/sd-image-aarch64.nix> ];"
<ben> i guess that's defaults for bootable sd cards?
<ben> you can add more imports in there, and some of them could be machine-generated if that helps
<ben> or you could write logic in nix to load a json file and use values from it for specific options, or things like that
<ben> still haven't wrapped my head around your ideal workflow, sorry :)
jgt has quit [Ping timeout: 268 seconds]
<Narigo> If I'd use a different installation medium (for example put it on another machine with a different architecture), I would like to be able to use the same steps more or less...
<ben> right
<ben> you could put most of your config into a file like generic.nix and then just change that configuration.nix to say "imports = [ <nixpkgs/nixos/modules/installer/cd-dvd/sd-image-aarch64.nix> ./generic.nix ];"
<ben> would that get you closer to what you want?
<Narigo> Yeah, that would be close - but I'd still need to change the imports = ... by hand, right?
<ben> well, at that point it's probably easy to emit it as a script
zybell_ has quit [Ping timeout: 265 seconds]
<ben> echo "{ imports = [ $platform_specific_import $generic_import ]; }" >/etc/nixos/configuration.nix? :P
<ben> or you can use write nix logic inside your configuration.nix to check what system you're on and dynamically import different boilerplate
<clever> ben: the value of imports cant depend on the value of pkgs, which heavily limits what you can do
<ben> clever: can you import <nixpkgs> {} instead of taking pkgs? i guess thatd be extremely rude
<clever> ben: you could
<ben> (that breaks cross-builds i guess?)
<Narigo> I guess getting "$platform_specific_import" is still something I'd need to find out before being able to automate this...
<clever> it would default to the arch that the nix building it was built for
orivej has quit [Ping timeout: 265 seconds]
jgt has joined #nixos
rosa has joined #nixos
iyzsong has joined #nixos
<Narigo> ben: I could also sed the configuration.nix file, look for imports = [ ... ]; and edit the line / add my custom.nix there. The problem would be if the list is not written in a single row in the configuration.nix file...
<ben> Narigo: maybe that's my "mutability is bad!" aesthetics improperly extending to editing config files, but I don't like the idea of sed'ing an existing file
<ben> Narigo: I'd rather generate a new file and import that/read from that from a static config file, or generate the top-level config file from scratch
<ben> Narigo: (all the .nix files named in imports = [ ... ]; are equivalent to/equivalently powerful as the toplevel file, you don't need to contort yourself to get things into the toplevel file)
<ben> someone should write a blog posts about various patterns for structuring configuration.nix's
<ben> :P
fendor has quit [Ping timeout: 265 seconds]
zybell_ has joined #nixos
<Narigo> ben: but that's essentially the same, isn't it? I mean, "adding another import to the list" - I just want to do that through a script instead of having to open an editor and writing it down manually
orivej has joined #nixos
<ben> Narigo: oh yeah im suggesting you just leave a placeholder import (maybe it imports an empty file) from the start, so your script doesn't have to touch the file, it can just write a new file without worrying about the precise structure of the main file
goibhniu has quit [Ping timeout: 256 seconds]
<ben> maybe im still having trouble visualizing the exact use case
<ben> i think nix is flexible enough that you won't design yourself into a wall if you put off worrying about this until later though :)
<{^_^}> [nixpkgs] @jtojnar pushed to master « terminator: clean up »: https://git.io/vpeFK
m0rphism1 has quit [Quit: WeeChat 2.0]
FareTower has quit [Ping timeout: 264 seconds]
sondr3 has quit [Ping timeout: 260 seconds]
<Narigo> ben: yes, a different file where the "real" configuration is stored is a lot better than putting everything in the configuration.nix file. The only problem was that the configuration.nix already has something depending on the installation medium / architecture, so that might change for me
m0rphism has joined #nixos
<ben> Narigo: (maybe a simple kludge: init.sh just does mv configuration.nix orig.nix; echo >configuration.nix '{ imports = [ ./orig.nix ./real-config.nix ]; }' )
sondr3 has joined #nixos
<Narigo> ben: ohhhh, that would be the best probably! Thanks a lot :)
<ben> where did the original config come from btw? im not familiar with the raspberry pi setup
<Narigo> When you dd the image on the SD card, it's already there
<ben> (set -e; and then mv --no-clobber maybe)
<ben> Narigo: is the workflow that you dd the image to the SD card, then mutate the system on the SD card and boot from it forever, or is the SD card just an installation medium?
woffs has quit [Quit: Gateway shutdown]
<Narigo> ben: The SD card is the bootable medium for the RaspberryPi, so I guess I need to mutate it - but I'm like 1% from the first steps to a final system. I just want to be able to reproduce every single step I take and therefore try to put everything into a script right from the beginning
iyzsong has quit [Ping timeout: 240 seconds]
Michael___ has joined #nixos
<jgt> avn: infinisil Ok, after trying all that… nix-shell failed with error: attribute ‘applicative-quoters’ missing, at /nix/store/30g7yca1mmqm9x7w5psrljwdbb4mpvd7-nixpkgs-18.03pre121255.45a85eaceb/nixpkgs/pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix:42:37
<Dezgeg> Narigo: if you copy paste / imitate the sd-image-aarch64.nix file from nixpkgs you can build it reproducibly as documented in the file
<jgt> I wonder if I should try changing compilers
<Dezgeg> or I guess it's enough to put it in imports, actually
jperras has joined #nixos
<Dezgeg> but that includes the installation-device.nix stuff which you may not want, so copy-paste is probably better
<ben> well if it's not an installation device but the actual long-term boot medium/system, maybe that's correct after all?
<Michael___> Hi! I'm pretty new to nixos. I've made a config in nixos 17.09. When using the same config in 18.03 I get "warning: unknown setting 'log-servers'" when running nix commands such as "nixos-rebuild" or "nix-env". I have no idea why and I don't know where that setting comes from. It's not explicily given in my configuration.nix. How would I trace this to tell why I'm getting it?
<zybell_> Narigo:try `cd /etc/nixos;git init` Great way to track edits:-)
<ben> (btw is there a writeup on how to easily create and maintain images for bootable nixos usb sticks that aren't meant as an installation medium, just as a portable nixos?)
<ben> zybell_: do you include nixpkgs as a git submodule then so you can sync across incompatible upgrades?
<ben> (does that even work? idk)
<Dezgeg> well, for general usage it's quite inconvenient to build an 2 GB image each time and re-nuke your card, but sometimes that makes sense as well
<ben> Dezgeg: oh i figured we're talking about rebuilding the system on the sd card in-place
tertle||eltret has quit [Quit: Connection closed for inactivity]
jperras has quit [Ping timeout: 264 seconds]
<Dezgeg> I wasn't sure, but if the "normal" style installation is wanted then just replace /etc/nixos/configuration.nix with the config from https://nixos.wiki/wiki/NixOS_on_ARM and use nixos-rebuild as usual
<ben> either way i think it's reasonable to do things manually for a while to gain familiarity and intuition before trying to 100% automate it
<zybell_> ben:if pulled from a channel,why not? If edited myself git add suffices.
<Dezgeg> certainly
<ben> can a configuration.nix override the path to nixpkgs/the nixos modules in nixpkgs? or can you only do that as the caller of eg. nixos-rebuild?
iyzsong has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/92f0d31b949 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @lheckemann opened pull request #38962 → buildFHSUserEnv: change to root directory after chroot → https://git.io/vpebM
ndrei has joined #nixos
hakujin has joined #nixos
<srhb> ben: It's sort of fishy, because what's used is NIX_PATH, but you can override nix.nixPath, but the effect of that happens _next_ rebuild.
Alling has quit [Ping timeout: 260 seconds]
Narigo has quit [Quit: This computer has gone to sleep]
hakujin has quit [Ping timeout: 256 seconds]
rosa has quit [Quit: rosa]
thblt has joined #nixos
rosa has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/ad771371fb2 (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
Ariakenom has quit [Quit: Leaving]
arianvp2 has joined #nixos
<arianvp2> I updated to 18.03 but I get strange errors
rosa has quit [Quit: rosa]
<arianvp2> someone suggested I have "old stuff" somwhere
<arianvp2> any idea what this could cause?
<arianvp2> I have no nix-channel overrides for the local user, just the sudo user
<LnL> nix eval is strict
<{^_^}> [nixpkgs] @lheckemann opened pull request #38963 → requireFile: exit with non-zero error message → https://git.io/vpeNt
<arianvp2> so it evaluates somehting that should not be evaluated or something
<arianvp2> because it forces everything?
<LnL> you get the same thing with this
<LnL> nix-instantiate --eval --strict channel:nixos-18.03 -A vim
rosa has joined #nixos
<arianvp2> i see
<arianvp2> thanks
rosa has quit [Client Quit]
<arianvp2> many of the software shipped with gnome just segfault (like gnome-software etc):D
<arianvp2> but gnome-software is a bit of a weird one anyway I guess. as it doesnt work with the nix package manager (But probably with flatpak or something?)
knupfer has quit [Ping timeout: 265 seconds]
rosa has joined #nixos
<LnL> don't know anything about gnome
schoppenhauer has quit [Ping timeout: 265 seconds]
sondr3 has quit [Ping timeout: 260 seconds]
raynold has quit [Quit: Connection closed for inactivity]
ndrei has quit [Remote host closed the connection]
<arianvp2> how do I get libc manpages in nixos?
leat has quit [Ping timeout: 260 seconds]
schoppenhauer has joined #nixos
<srhb> arianvp2: I believe it's in manpages.
pkill9 has quit [Quit: WeeChat 2.1]
jgt has quit [Ping timeout: 260 seconds]
jgt has joined #nixos
<{^_^}> [nixpkgs] @Moredread opened pull request #38964 → WIP mediathekview: 9 -> 13.0.6 → https://git.io/vpeNS
knupfer has joined #nixos
<{^_^}> [nixpkgs] @thorstenweber83 opened pull request #38965 → slicer-prusa3d: fix build → https://git.io/vpeNd
<arianvp2> Say for example I have some lib depending on libcurl https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/networking/curl/default.nix
<arianvp2> it has an output "devdoc" and "man" . If I put those outputs in my nix-shell how do I view the docs with the manpager viewer?
<arianvp2> The docs are in /nix/store/ncggxzj5842bqk030h9iz769vwza8q4j-curl-7.59.0-devdoc/share/man/ but `man` command does not find them
spear2 has quit [Ping timeout: 260 seconds]
<arianvp2> ah I can set MANPATH when setting up my shell. answered my own question :)
spear2 has joined #nixos
<tilpner> But why do you have to do that yourself?
<tilpner> It's not working, but nix-shell -p curl.all man --pure --run manpath should include the curl path
blankhart has joined #nixos
Narigo has joined #nixos
knupfer has quit [Ping timeout: 255 seconds]
Ariakenom has joined #nixos
<arianvp2> should it automatically do so tilpner ?
<arianvp2> :O
woffs has joined #nixos
<tilpner> It does with other packages
<tilpner> nix-shell --pure -p rofi man --run manpath includes the rofi manpages path
<arianvp2> oh weird then it's probably a bug in the curl package
Rusty1_ has joined #nixos
<LnL> I think it only adds the default output
rosa has quit [Quit: rosa]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hakujin has joined #nixos
rosa has joined #nixos
xcmw has joined #nixos
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos
rosa has quit [Client Quit]
knupfer has joined #nixos
arianvp2 has quit [Quit: Page closed]
xy2_ has quit [Quit: WeeChat 1.9.1]
xy2_ has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hakujin has quit [Ping timeout: 256 seconds]
rosa has joined #nixos
ckauhaus has quit [Ping timeout: 260 seconds]
leat has joined #nixos
hakujin has joined #nixos
Michael___ has quit [Ping timeout: 260 seconds]
rosa has quit [Remote host closed the connection]
thblt has quit [Remote host closed the connection]
rosa has joined #nixos
ericsagnes has joined #nixos
xcmw has joined #nixos
hakujin has quit [Ping timeout: 240 seconds]
Otis is now known as gm152
hakujin has joined #nixos
rosa has quit [Quit: rosa]
thblt has joined #nixos
hakujin has quit [Ping timeout: 240 seconds]
rosa has joined #nixos
hakujin has joined #nixos
vidbina has joined #nixos
<jgt> I'm trying to install the latest version of stack2nix. I cloned the repo and built it with `nix-build`, but the result is not on my path. How do I run it?
<symphorien> nix-build only creates a symlink `result`
<symphorien> so try ./result/bin/stack2nix I guess
knupfer has quit [Ping timeout: 276 seconds]
hakujin has quit [Ping timeout: 240 seconds]
ckauhaus has joined #nixos
swaaws has quit [Remote host closed the connection]
<jgt> symphorien: oh yeah, that's it. Thanks.
swaaws has joined #nixos
hakujin has joined #nixos
ckauhaus has quit [Ping timeout: 276 seconds]
jperras has joined #nixos
hakujin has quit [Ping timeout: 255 seconds]
rosa has quit [Quit: rosa]
iyzsong has quit [Ping timeout: 264 seconds]
jperras has quit [Ping timeout: 240 seconds]
nuncanada has joined #nixos
Narigo has quit [Quit: This computer has gone to sleep]
rosa has joined #nixos
lesnuages has joined #nixos
srdqty1 has quit [Ping timeout: 256 seconds]
srdqty1 has joined #nixos
<jgt> stack2nix . > shell.nix && nix-shell
<jgt> error: Package ‘Win32-2.5.4.1’ in /Users/jgt/projects/riskbook/shell.nix:1931 is not supported on ‘x86_64-darwin’, refusing to evaluate.
<jgt> what on earth o.O
<jgt> why does it want to build Win32?!
<{^_^}> [nixpkgs] @Mic92 merged pull request #38956 → iputils: enable rarpd → https://git.io/vpe94
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpehY
<{^_^}> → 23313324 by @lheckemann: iputils: enable rarpd
<{^_^}> → ec939dd8 by @Mic92: Merge pull request #38956 from lheckemann/rarpd
rosa has quit [Quit: rosa]
vidbina has quit [Ping timeout: 265 seconds]
srdqty1 has quit [Ping timeout: 256 seconds]
rosa has joined #nixos
srdqty1 has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vidbina has joined #nixos
rosa has quit [Quit: rosa]
<clever> jgt: the shell.nix file you generated contains an entire haskell packages set
<clever> jgt: you need to use -A to select the package you want to open a shell for
Ariakenom has quit [Read error: Connection reset by peer]
pkill9 has joined #nixos
Arcaelyx_ has joined #nixos
Arcaelyx has quit [Ping timeout: 264 seconds]
<jgt> clever: should stack2nix not be used to create a shell.nix?
<{^_^}> [nixpkgs] @jtojnar pushed 4 commits to master: https://git.io/vpejm
<{^_^}> → 3bea518b by @jtojnar: gnome2.gtkglext: fix build with glibc ≥ 2.27
<{^_^}> → d4f97d5f by @jtojnar: gnome2.gtkglext: patch deprecated symbols
<{^_^}> → cfee336c by @jtojnar: k3d: clean up
rosa has joined #nixos
xcmw has joined #nixos
ryanartecona has joined #nixos
jtojnar has quit [Remote host closed the connection]
<ij> vaibhavsagar, Hey! Is vlc 3.0 working at all? Is the packaging somewhat functional or is it not working at all? I want to make a commit for vlc so I want to run it. :P
<jgt> I heard he's called Semivaibhav now.
<ij> The humor's lost on me. :)
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
zpi has joined #nixos
avira has joined #nixos
<clever> jgt: stack2nix generates a default.nix that returns a set containing many packages
ryanartecona has joined #nixos
Turion has joined #nixos
<Turion> Any Neo2 users here?
<{^_^}> [nixpkgs] @bdarnell opened pull request #38968 → cockroachdb: refactor and 1.1.5->2.0.0 → https://git.io/vpveu
zpi has quit [Remote host closed the connection]
ditadi has quit [Ping timeout: 255 seconds]
nuncanada has quit [Ping timeout: 240 seconds]
endformationage has joined #nixos
Xal has quit [Ping timeout: 263 seconds]
Xal has joined #nixos
<logzet> Turion: Hi
<logzet> Well, I switched to bone a few weeks ago
FareTower has joined #nixos
ajs124 has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
<Turion> logzet: Ah, don't know bone :) I'm just wondering whether you experienced any issues similar to this one: https://github.com/NixOS/nixpkgs/issues/38785
<Turion> I want to narrow down whether this is due to neo or some other weirdness
<logzet> Turion: Arrow keys didn't work at all for me
<Turion> Aha
<Turion> Not even in other programs or just not in Konsole?
<logzet> And still don't do (bone has the same upper layers as neo)
<logzet> Gimme a second, ill switch xmodmap of
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Turion> Are you using the physical arrow keys or the ones from that one layer?
vidbina has quit [Ping timeout: 240 seconds]
<logzet> Turion: Physical work as expected, layer 4 arrows dont work in konsole, atom, xterm and intellij (obviously)
xcmw has joined #nixos
kisik21 has joined #nixos
<kisik21> Hello. Saw some neat pictures in /nix/var/nix/profiles/per-user/root/channels/nixos/pkgs/data/misc/nixos-artwork/wallpapers.nix - what should I put into configuration.nix to install these? Tried to find them via nix-env and failed miserably (but found some icons).
<gchristensen> how do you want to use them?
<kisik21> I want them to appear in the system like any other package, these seem to be derivations I could install, but I can't find how to do it
ryanartecona has joined #nixos
<tilpner> But they are normal packages! nixos-artwork.wallpapers.stripes
<tilpner> (With a weird path "/share/artwork/gnome/*.png")
<gchristensen> why do you want to install them? like ... what is your goal?
<kisik21> nixos-artwork.wallpapers - that's it!
jperras has joined #nixos
<kisik21> gchristensen: I want to use them as wallpapers, obviously.
<jgt> clever: I can't think what that'd be good for
<jgt> clever: although it did successfully drop me in a shell
<jgt> clever: but I don't have ghci in it, so I'm not sure if my project works yet
<kisik21> yes, nixos-artwork.wallpapers.stripes works, seems like I'm understanding this system... it's not unlike python modules. default.nix is equivalent to __init__.py that puts packages into namespace.
<kisik21> tilpner: yay, it works, thank you!
<{^_^}> [nixpkgs] @vbgl opened pull request #38969 → coq: fix installation of OCaml libraries → https://git.io/vpvft
<jgt> clever: am I right in thinking that I use stack2nix to replace nixpkgs.haskellPackages?
<logzet> Turion: Just activating the xmodmap from the neo homepage after login is my current work around.
<logzet> I hacked the X11 packages a while back to make them work but that causes a lot of rebuilds and is rather ugly AND it does not work everywhere while xmodmap nearly does
jperras has quit [Ping timeout: 268 seconds]
<ajs124> Is there a nice way to get the alsa configuration from the pulseaudio module without enabling the whole thing? I don' really want to copy&paste it.
hakujin has joined #nixos
<logzet> Turion: But looking at your issue: Shift+letter is working for me in xterm
<logzet> And the dedicated arrow keys do, too
<{^_^}> [nixpkgs] @thorstenweber83 opened pull request #38970 → fstl: init at 0.9.3 → https://git.io/vpvfn
<logzet> But I'm not using XMonad, maybe that's a difference?
<Turion> logzet, ok, that's weird...
<Turion> Yes I guess it must have to do with that
<Turion> I didn't manage to install kde yet, and since xmonad sort of worked, I stayed with it
hakujin has quit [Ping timeout: 240 seconds]
<Turion> I'll try the xmodmap workaround
<Turion> Do you have your configuration.nix online by any chance? Maybe I have some obvious errors?
hakujin has joined #nixos
rosa has quit [Quit: rosa]
<logzet> I don't, but I can look if it contains anything personal and create a gist otherwise
ckauhaus has joined #nixos
<logzet> Turion: KDE is just a matter of
<logzet> services.xserver.desktopManager.plasma5.enable = true;
<logzet> for me
<logzet> services.xserver.displayManager.sddm.enable = true;
ckauhaus has quit [Client Quit]
<Turion> logzet, well yes, so I thought as well... half a year ago now that I tried, maybe it was just an issue that is long fixed now
<Turion> logzet, I'd be very grateful!
hakujin has quit [Ping timeout: 240 seconds]
<logzet> Just looked at it and it there are a lot of not working things in it ^^
<logzet> Time for a clean up I guess
<Turion> Well, with mine as well
<Turion> If you can just show me the services.xserver part, that's all that should matter, I hope
ajs124 has left #nixos [#nixos]
<logzet> Turion: https://pastebin.com/dqUMwEGn thats the xserver part, no real magic
<logzet> Just switching from qwertz to bone using scroll lock
pkill9 has quit [Read error: Connection reset by peer]
<logzet> (with the scroll led as an indicator)
pkill9 has joined #nixos
<gchristensen> is it possible to virtually unplug a USB device?
<pkill9> just delete the /dev/sdX device i think
<pkill9> lol
<Dezgeg> doesn't help
<Dezgeg> but you can use hubctrl
kisik21 has quit [Read error: Connection reset by peer]
<Dezgeg> what's the specific use case?
<Dezgeg> also qemu's monitor commands can add or remove aemulated devices
<gchristensen> I have a usb to serial adapter which gets in to a bad state and is also hard to access, and is fixed by unplugging
florian has joined #nixos
<Dezgeg> virtual unplug might not power cycle it though, unless you have a suitable external hub
<Dezgeg> but google for hubctrl
<gchristensen> cool, thanks Dezgeg
<clever> jgt: yeah, i believe thats the best use of it
<clever> jgt: and you need to add .env if you are using nix-shell
<mpickering> does the generic builder automatically set rpaths appropriately for executables?
<clever> mpickering: the gcc wrapper does that
<mpickering> The program I am trying to package runs an executable it builds during "buildPhase" but the rpath is set incorrectly
<mpickering> so I am wondering whether the correct thing to do is a small patch to stop it running it or setting DYLD_LIBRARY_PATH during buildPhase?
<clever> mpickering: was that executable built within nix, or packaged and pre-compiled?
<mpickering> yes it's built within nix.
<jgt> clever: Ok, here's my shell.nix now. The haskell-packages.nix I import is the output of stack2nix. Does this look right to you? http://ix.io/17Q4
<mpickering> It seems to want to run it to test it built correctly.
<Turion> logzet, thanks, I guess when comparing I have set it up correctly as well
<clever> jgt: the derivation for riskbook should also be in the stack2nix output
<jgt> clever: ah ok, so it doesn't need to be in the shell.nix?
<jgt> clever: it is indeed in the stack2nix output, and consequently in the haskell-packages.nix file
mitchty has joined #nixos
<mpickering> clever: Could you suggest how it is idiomatic to proceed or are you not sure?
<mitchty> question on java/jar packaging, specifically trying to work with https://github.com/mopemope/meghanada-server should I bother trying to build that or just sue the jar directly?
Ariakenom has joined #nixos
<mitchty> sue/use, i can't type today
<clever> mpickering: is this on darwin or linux?
<mpickering> darwin
ajs124 has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clever> not sure about the specifics of darwin, maybe gchristensen or #nix-darwin know more?
kisik21 has joined #nixos
hakujin has joined #nixos
<LnL> mpickering: we don't use rpaths on darwin
<mitchty> i'm just going to follow what tools/cfr does for now, doesn't seem like all of the java derivations do a build, seems reasonable to not rebuild the jar
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/ad771371fb2 (from 11 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
<mpickering> LnL: So how to proceed?
<LnL> are you sure the install_name of whatever library that binary tries to use is correct?
apostolis has joined #nixos
<LnL> that often causes problems like that
Leo` has quit [Ping timeout: 268 seconds]
hakujin has quit [Ping timeout: 260 seconds]
xcmw has joined #nixos
apostolis has quit [Client Quit]
<mpickering> the install_name is @rpath/liblas.3.dylib
<mpickering> (I think?)
rosa has joined #nixos
<mpickering> So you are suggested fixing that to the correct thing instead? How does the install_name get chosen?
<zybell_> on darwin --flatnamespace(?) is needed for some libs
iqubic has quit [Remote host closed the connection]
<florian> Got someone spacemacs in a nix-shell working? I'am drying to develop haskell in a nix-shell and spacemacs isn't aware of ghc.
lo_mlatu has joined #nixos
<mpickering> are you starting spacemacs in the shell?
<florian> yes
<LnL> mpickering: yeah, that should be an absolute path
<mpickering> ok that makes sense. Now where do I modify so that it is one? I can't use install_name_tool as it is being run during buildPhase
endformationage has quit [Ping timeout: 276 seconds]
<LnL> is liblas a dependency or the current build?
Turion has left #nixos [#nixos]
Turion has joined #nixos
<mpickering> LnL: Yes, it is in buildInputs and I pass the "--with-liblas=${libLAS}/bin/liblas-config" configure flag
<LnL> it should be fixed there then
apostolis has joined #nixos
<mpickering> Is there any tracing I can turn on to see what is going wrong?
<zybell_> NIX_DEBUG=7
<LnL> I usually grep for install_name in the source the see if it can be handled by the build system
<LnL> otherwise use fixDarwinDylibNames or call install_name yourself
endformationage has joined #nixos
<infinisil> ben: Yeah you can't do that on the nix level
<apostolis> I want to receive the store path of a nixpkgs pkg and insert it into a program that constructs a derivation , not written in Nix. How can I do that?
<infinisil> Oh sorry I wasn't scrolled down
<mitchty> gah, is there a jdk derivation I'm missing?
<clever> mitchty: there are both openjdk and oraclejdk derivations
<LnL> ^ we have 2
<zybell_> apostolis:is it the program that is not written in nix or the derivation?
<infinisil> There's also a third: zulu
<LnL> oh right
<mitchty> should i use openjdk-darwin on osx?
<clever> oraclejdk also doesnt work on darwin, since it just patchelf's the linux binaries
<apostolis> The program will return a string that I will then execute with Nix, so the program is not written in Nix. The output will be a derivation set.
<clever> apostolis: import from derivation could be used for that, if the program is pure
<clever> apostolis: just write a derivation that generates nix and stores it in $out (either as a file, or a directory containing files)
<clever> and then import "${that_derivation}/foo.nix"
<{^_^}> [nixpkgs] @knedlsepp opened pull request #38971 → Fix clblas and libgpuarray on darwin → https://git.io/vpvTO
<{^_^}> [nixops] @nh2 opened pull request #924 → nixops script: Remove top-level Exception catch-all. → https://git.io/vpvT3
<mitchty> clever: danke, my search regex obviously failed me :)
endformationage has quit [Ping timeout: 240 seconds]
olto has quit [Quit: ZNC 1.6.6 - http://znc.in]
ryanartecona has quit [Quit: ryanartecona]
Leo` has joined #nixos
<apostolis> clever : I do not understand. For example , I want to know the location of 'bash' so as to construct the derivation. First I need the location, then the program is executed. Then the string is passed to nix to create the derivation and build the package.
logzet has quit [Ping timeout: 245 seconds]
logzet has joined #nixos
<clever> apostolis: "${pkgs.bash}/bin/bash" is the path to bash, but there is also "${stdenv.shell}" to just get a shell
<mpickering> LnL: So the build system should call "cc" with -install_name pointing directly to "liblas.dylib" in the correct place?
<LnL> yeah something like -Wl,-install_name,$out/lib/liblas.3.dylib
<apostolis> Mostly, I do not know if Nix has IO, so that I can get the location and pass it into my program from the command line. Isn't what you write a nix expression?
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 276 seconds]
Mateon3 is now known as Mateon1
<sphalerite> why is nix-copy-closure with drvs so slow?
endformationage has joined #nixos
<apostolis> Ok, looking at your example, I think I get it now.
ambro718 has joined #nixos
<ambro718> Seems like https://nixos.org/nixos/packages.html doesn't show nonfree packages, is that right?
<sphalerite> correct
<ambro718> doesn't seem like a good idea to me, why not show them but mark them as nonfree?
<ambro718> can give a wrong impression to folks considering nixos looking for things they will need
rauno has joined #nixos
knupfer has joined #nixos
<sphalerite> ambro718: age-old issue. https://github.com/NixOS/nixpkgs/issues/17126
rosa has quit [Quit: rosa]
rosa has joined #nixos
FareTower has quit [Ping timeout: 240 seconds]
bkchr has joined #nixos
rosa has quit [Quit: rosa]
florian has quit [Ping timeout: 256 seconds]
jluttine has quit [Remote host closed the connection]
rosa has joined #nixos
odi has joined #nixos
<monokrome> Has anyone else come across the issue where copying w control+c crashes chromium abs?
<monokrome> tabs*
kisik21 has quit [Quit: Leaving.]
<foldingcookie> monokrome: I've heard copy/paste issues in Chromium mentioned here before
jgt has quit [Read error: Connection reset by peer]
hakujin has joined #nixos
<monokrome> It's super weird because CTRL+X still works
<monokrome> but CTRL+C crashes the tab w/out copying
jluttine has joined #nixos
<monokrome> on every site, and only on my NixOS machines
<ij> monokrome, There's an issue about that and no one knows why it's there and it's fixed on 18.03.
rosa has quit [Client Quit]
jgt has joined #nixos
rosa has joined #nixos
okami has joined #nixos
<ambro718> Speaking of chromium, is anyone else having this issue where it regularly causes many brief system-wide hangs, as observed for example by lagging audio playback and lagging mouse? Only happens with chromium not firefox (but chromium causes audio lags in firefox)...
<ambro718> might be related to nvidia driver
hakujin has quit [Ping timeout: 264 seconds]
<ambro718> I have to use firefox only because of that (though it's actually quite good these times) :)
freeman42x]NixOS has joined #nixos
FareTower has joined #nixos
<monokrome> abrxs: I think that's just a Chromium thing, sadly
<monokrome> Oh, could be nVidia as well - all my devices are nVidia so that'd explain why they all have it (even the Windows one0
<ambro718> monokrome: doesn't seem to happen on another computer that has radeon graphics
<monokrome> oops, ambro718 ^ - sorry abrxs
<monokrome> ambro718: Very interesting. All my machines use the propriteary nVidia driver. Are yours as well?
<ambro718> monokrome: yes the one that has that problem, one has radeon where I have not seen it and both have recent nixos 18.03
<monokrome> Yeah, you're def onto something
<monokrome> I wonder if nouveau fixes it
<ambro718> I'm having more and more issues with the nvidia driver. KDE Plasma is also regularly misbehaving on the nvidia machine, not on the other one
<monokrome> :(
DwarfMaster has quit [Ping timeout: 260 seconds]
<ambro718> monokrome: do you also need that manual config to get nvidia to work with optimus?
<ambro718> or any other manual config changes you did to the driver?
endformationage has quit [Ping timeout: 256 seconds]
endformationage has joined #nixos
<{^_^}> [nixpkgs] @LnL7 opened pull request #38973 → vim-plugins: add bats.vim → https://git.io/vpvLs
<{^_^}> [nixpkgs] @Mic92 merged pull request #38954 → extundelete: fix build with e2fsprogs 1.44 → https://git.io/vpeVA
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpvLZ
<{^_^}> → 0a74fca5 by @xeji: extundelete: fix build with e2fsprogs 1.44
<{^_^}> → c79f3d8e by @Mic92: Merge pull request #38954 from xeji/p/extundelete
guillaum1 has joined #nixos
guillaum1 is now known as Guillaum
jperras has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #38973 → vim-plugins: add bats.vim → https://git.io/vpvLs
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpvLi
<{^_^}> → 1935782c by @LnL7: vim-plugins: add bats.vim
<{^_^}> → a3e66250 by @Mic92: Merge pull request #38973 from LnL7/vim-plugins-bats
jgt has quit [Read error: Connection reset by peer]
jgt has joined #nixos
<Guillaum> How can I create a nix file which fetch a git repository and then call the default.nix contained inside it? I'm a bit suspicious about calling "nix-build" inside a "buildPhase" of a nix derivation.
<{^_^}> [nixpkgs] @Mic92 merged pull request #38965 → slic3r-prusa3d: fix build → https://git.io/vpeNd
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpvL5
<{^_^}> → c8977cda by @thorstenweber83: slic3r-prusa3d: fix build
<{^_^}> → 65ac7f86 by @Mic92: Merge pull request #38965 from thorstenweber83/slic3r-prusa3d-update-dependencies
xeji has joined #nixos
hakujin has joined #nixos
<{^_^}> [nixpkgs] @LnL7 pushed to release-18.03 « vim-plugins: add bats.vim »: https://git.io/vpvLp
<{^_^}> [nixpkgs] @Mic92 merged pull request #38945 → nixos/pulseaudio: pulseaudio.enable should imply sound.enable → https://git.io/vpeWZ
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpvLh
<{^_^}> → 02dfbab3 by @Mic92: nixos/pulseaudio: pulseaudio.enable should imply sound.enable
<{^_^}> → 70cd5d81 by @Mic92: Merge pull request #38945 from Mic92/pulseaudio
rauno has quit [Ping timeout: 260 seconds]
endformationage has quit [Ping timeout: 264 seconds]
<infinisil> Guillaum: Yeah you can't call nix-build within a nix-build (recursive nix), but what you can do is import-from-derivation (IFD) like `import "${fetchurl { ... }}/path/to/file.nix"`
<infinisil> Guillaum: Or just `import "${fetchurl { ... }}"` if you want the default.nix in the root
endformationage has joined #nixos
hakujin has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #38902 → nheko: 0.3.0 -> 0.3.1 → https://git.io/vxh7a
<{^_^}> → 59bf6982 by @Ekleog: nheko: 0.3.0 -> 0.3.1
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpvtm
<{^_^}> → fb9d7e0a by @Mic92: Merge pull request #38902 from Ekleog/nheko-0.3.1
<{^_^}> [nixpkgs] @Mic92 merged pull request #38953 → kalarm: init → https://git.io/vpeV0
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpvtO
<{^_^}> → 3af13746 by @rittelle: kalarm: init
<{^_^}> → 93955070 by @Mic92: Merge pull request #38953 from rittelle/kalarm
thblt has quit [Remote host closed the connection]
<Guillaum> infinisil: thank you!
jgt has quit [Ping timeout: 268 seconds]
rauno has joined #nixos
tmaekawa has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #38884 → papirus-icon-theme: 20180214 -> 20180401 → https://git.io/vxpjO
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpvt2
<{^_^}> → 30a031b8 by @worldofpeace: papirus-icon-theme: 20180214 -> 20180401
<{^_^}> → 00e2a4bd by @Mic92: Merge pull request #38884 from worldofpeace/up-papirus-icon-theme-newest
tmaekawa has quit [Client Quit]
odi has quit [Ping timeout: 264 seconds]
<Mic92> the bot produces a lot of noice here
<gchristensen> cc samueldr
<samueldr> Mic92: any idea on how to reduce?
<LnL> only handle merge events for nixpkgs?
<samueldr> other than what I initially thought of here https://github.com/samueldr/github-to-irc/issues
<samueldr> (the current implementation has equivalent verbosity with the previous github-provided bot for all nixpkgs events)
matthias_wahl has joined #nixos
<LnL> yeah, skipping push events from a merge would help
<samueldr> the fun bit is how there are mutliple ways github provides those :)
<zybell_> idk IRC not that goo. Does /ignore work for me only or channel wide?
<okami> should just be for you
knupfer has quit [Remote host closed the connection]
FareTower has quit [Ping timeout: 240 seconds]
<zybell_> then I would say give robot a bunch of usernames one by category of message and let everybody /ignore what deemed noise.
<zybell_> and make a !noise command where it is explained.
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpvq2
<{^_^}> → 59cf37fd by @Mic92: Merge pull request #38864 from tadfisher/yquake2
<{^_^}> → 29b18945 by @tadfisher: yquake2: init at 7.20
<{^_^}> [nixpkgs] @Mic92 merged pull request #38864 → yquake2: init at 7.20 → https://git.io/vxplL
Synthetica has joined #nixos
rosa has quit [Quit: rosa]
FareTower has joined #nixos
<ajs124> any ideas why my systemd-networkd-wait-online.service might be failing with "Event loop failed: Connection timed out"?
<mpickering> LnL: Here is the (short) build log if you fancy looking, there isn't any call to `cc` https://gist.github.com/mpickering/c72472bc61ef4036928662517cadef92
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/42a99bcfb88 (from 44 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
fendor has joined #nixos
johnw has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed commit from @xeji to release-18.03 « extundelete: fix build with e2fsprogs 1.44 »: https://git.io/vpvmm
ajs124 has left #nixos ["Stream closed by us: Replaced by new connection (conflict)"]
rosa has joined #nixos
ajs124 has joined #nixos
fendor has quit [Ping timeout: 240 seconds]
spear2 has quit [Ping timeout: 268 seconds]
hakujin has joined #nixos
pie__ has joined #nixos
<Mic92> ajs124: usually some interface not getting into the configured state, see `networkctl`
pie_ has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @bdarnell closed pull request #38968 → cockroachdb: refactor and 1.1.5->2.0.0 → https://git.io/vpveu
<ajs124> Mic92‎: yeah, seems like two interfaces on a bond are waiting for link local addresses, which is kinda weird, but I disabled that via extraConfig = "LinkLocalAddressing=no"; and now it works
hakujin has quit [Ping timeout: 256 seconds]
FareTower has quit [Ping timeout: 240 seconds]
<bkchr[m]> Does someone also observe poor wifi performance with intel wifi?
hakujin has joined #nixos
<bkchr[m]> (with 4.16 kernel)
rct has joined #nixos
ertes has quit [Ping timeout: 240 seconds]
okami has quit [Quit: okami]
knupfer has joined #nixos
<dmj`> is digital ocean nixops backend good?
<dmj`> AWS is getting too complicated requiring people to spawn smaller instances into a VPC
endformationage has quit [Ping timeout: 256 seconds]
matthias_wahl has quit [Quit: WeeChat 2.1]
rosa has quit [Quit: rosa]
mg- has quit [Ping timeout: 255 seconds]
lo_mlatu has quit [Quit: Connection closed for inactivity]
<Aleksejs> Hello! I've deployed nixos via nixops onto digital ocean droplet. There is the other guy who also works with this droplet. What is the correct way to "give" this deployment to him so we both can work on it?
endformationage has joined #nixos
<dmj`> Aleksejs: thanks!
<Aleksejs> have no idea for what but you're welcome :)
<tilpner> Perfect timing :)
fendor has joined #nixos
mg- has joined #nixos
apostolis has quit [Quit: WeeChat 2.0]
bkchr has quit [Ping timeout: 265 seconds]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/42a99bcfb88 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
fendor has quit [Remote host closed the connection]
fendor has joined #nixos
vidbina has joined #nixos
rosa has joined #nixos
toby1851 has quit [Ping timeout: 268 seconds]
rosa has quit [Quit: rosa]
toby1851 has joined #nixos
spear2 has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #38974 → nss: 3.35 -> 3.36.1 → https://git.io/vpvON
fendor has quit [Ping timeout: 264 seconds]
<zybell_> mpickering:gdal seems to be missing from the nix (build) env but is found installed in mac env,but a dependency of gdal-mac is not found in mac env and not searched in nix.
jtojnar has joined #nixos
<{^_^}> [nixpkgs] @obadz pushed commit from @florianjacob to release-18.03 « matomo: 3.3.0 -> 3.4.0 »: https://git.io/vpv3O
<infinisil> dmj`: The DO backend is really really basic
<infinisil> At least last time i checked
<dmj`> infinisil: basic is all I need, that sounds great
michiel_l has quit [Remote host closed the connection]
<mpickering> zybell_: I know the problem precisely but am trying to work out how to fix it. The problem is that the system liblas is used rather than the nix version. It was suggested that the install_name was wrong for liblas but I need specific advice about how to patch the build system so the install_name is set correctly.
<dmj`> infinisil: did you create it?
<infinisil> dmj`: Nah I'm not using it, I've created the machine in the web interface and am using it like a normal machine to deploy to
<dmj`> infinisil: how do you do your deploys?
<dmj`> sudo nixos-rebuild switch —remote ?
endformationage has quit [Ping timeout: 240 seconds]
<infinisil> sudo nixops deploy
<infinisil> I just set deployment.targetHost = "X.X.X.X"
<{^_^}> [nixpkgs] @svanderburg merged pull request #38947 → node2nix: add nix as dependency (fix for #38946) → https://git.io/vpe0h
<{^_^}> [nixpkgs] @svanderburg pushed 2 commits to master: https://git.io/vpv3R
<{^_^}> → 5bb75e17 by @srghma: node2nix: add nix as dependency (fix for #38946)
<{^_^}> → fc7c95b0 by @svanderburg: Merge pull request #38947 from srghma/node2nix-fix
<dmj`> infinisil: nice ok, going to try that now, I have a haskell web app on my nixos machine at home and a public facing IP from my ISP, but want to put it on the cloud since that is web scale.
boxscape has joined #nixos
<infinisil> I'm just using nixops for my personal machines though, nothing enterprise like
<infinisil> web scale haha
<dmj`> infinisil: ah yea, you need to buy nixops enterprise edition
<infinisil> dmj`: Are you also behind a nat at home?
endformationage has joined #nixos
acarrico has quit [Ping timeout: 260 seconds]
<dmj`> infinisil: I have an apple airport router, and I don’t use comcast, so I don’t have a comcast modem that doubles as a router and turns into a double NAT situation that is a huge pita
<dmj`> infinisil: my ISP makes it real easy
Laboon3k has joined #nixos
<infinisil> Ah but no public ip at home
<infinisil> I also don't, but I've written some nixos modules such that my behind-the-nat machines automatically set up a reverse ssh tunnel and a webserver proxy
<LnL> mpickering: not really, if I update meta of gdal_1_11 it builds and the result looks fine
<infinisil> Allows me to access my laptops webserver via https://mac.infinisil.com/
jacob_ has quit [Quit: Lost terminal]
<infinisil> Even though it never has a public ip
<mpickering> LnL: What are you building in particular?
<zybell_> The used DYLD_LIBRARY_PATH shows no evidence of trying to access liblas. You seem to have installed the headers, but not the runtime of liblas into your nix env
<LnL> mpickering: or does that not come from nixpkgs and is it a vendored build
<mpickering> It comes from nixpkgs but I have added the --with-liblas option.
<mpickering> The link command doesn't mention "install_name" at all. I'm just a total noob when it comes to how C is compiled so the answer could be very basic.
<mpickering> zybell_: DYLD_LIBRARY_PATH is irrelevant here I think as I am trying to set the correct install_name for liblas directly without relying on it.
<mpickering> and I don't understand the precise mechanic the linker uses in order to set it unfortunately.
<boxscape> so, I've had it a couple times that I wanted a program available with nix-shell, but not for building the package with nix-build. The way I've handled this is by adding the executable path to that program to PATH in the shellHook of the derivation. Is there a better way to do this?
vil has quit [Quit: :qa!]
<LnL> nix-shell -p hello
<boxscape> right, but that doesn't work if I also want to load a .nix file into the shell, does it?
<LnL> or the new nix run nixpkgs.hello
<infinisil> boxscape: I think you want to write a shell.nix file that adds some stuff to the default.nix
<infinisil> nix-shell prefers shell.nix over default.nix
hakujin has quit [Quit: WeeChat 2.1]
<boxscape> as in, add a buildInput or something?
<infinisil> yeah
<boxscape> okay, that sounds reasonable, I'll see if I can figure that out
<LnL> simplest is probably a shell.nix with something like this
<LnL> { pkgs ? import <nixpkgs> {} }: mkShell { buildInputs = [ (import ./. {}) ]; }
knupfer has quit [Ping timeout: 255 seconds]
<boxscape> okay, thanks. I didn't actually know about mkShell.
<LnL> it's basically the same as stdenv.mkDerivation
<boxscape> ok
<infinisil> LnL: But won't that build the default.nix and make it available?
<infinisil> LnL: Whereas nix-shell default.nix will put you into an env to build it
<LnL> yes, isn't that the point?
bkchr has joined #nixos
<boxscape> not quite, the point is to provide additional programs in the shell, not the package in this directory
<infinisil> I think the point is to just have something like nix-shell default.nix but with an additional development binary
<boxscape> ideally I'd just do something like nix-shell default.nix -p <programname>, but alas, that doesn't work
<infinisil> Something like { pkgs ? import <nixpkgs> {} }: (pkgs.callPackage ./default.nix {}).overrideAttrs (old: { buildInputs = with pkgs; [ hello ]; })
<LnL> hmm
<infinisil> should work
ertes has joined #nixos
<boxscape> I'll give it a try
<infinisil> or import ./default.nix depending on how it looks
<LnL> I generally use an argument for that
<LnL> { pkgs ? import <nixpkgs> {}, useFoo ? false }: ...
pkill9 has quit [Quit: WeeChat 2.1]
<LnL> then nix-shell --arg useFoo true
<boxscape> infinisil: that does work, thanks
nuncanada has joined #nixos
<mpickering> ah so the install_name of a library is set when the library is compiled.. I see
<LnL> mpickering: yeah, should have explained that a little better
<mpickering> So looking at the install_name for "libLAS" it is "@rpath/liblas.3.dylib" so I have to fix that and then it should work
jasonmj has joined #nixos
<LnL> but what about the /usr/local/opt thing?
<mpickering> That's because the /System/Framework/ version of liblas is chosen
alex`` has quit [Ping timeout: 260 seconds]
* mpickering wishes that I could stop these impurities
<mpickering> the /usr/local/opt path is the homebrew one iirc?
<jasonmj> Hi there, I'm looking for a little help. I think I might have hosed my nixos install. After rebooting, I found the state of my machine to be several hours in the past. Trying to run nixos rebuild fails, complaining that systemd-boot-builder could not "remove_old_entries" due to `/boot/loader/entries/` being a read-only file system.
<mpickering> anyway I manually patched the rpath using install_name_tool to point directly to the right liblas and it fixed it
<mpickering> I understand your comment now about "fixDarwinDylibNames"
<LnL> mpickering: yeah, /opt doesn't have anything to do with the system library
tertle||eltret has joined #nixos
<mpickering> I'm unsure of the exact mechanics but I know the installer for QGIS comes bundled with all this stuff I am packaging and dumps it all in the Frameworks folder which is causing some of these conflicts
<mpickering> ok I fixed the install_name now. Will try building grass again. Thanks for helping (and zybell_)
<LnL> mpickering: when you link a library with -lfoo -L./foo/lib the linker will resolve that to something like ./foo/lib/libfoo.dylib
<LnL> mpickering: but that's not the final path that will be used, since the library might not be in the installation prefix yet
<LnL> mpickering: so it looks for the install_name header in the dylib and uses that
kmicklas has joined #nixos
<mpickering> How come fixDarwinDylibNames isn't run by default?
xeji has quit [Quit: WeeChat 2.0]
<mpickering> RAMhardrive
<mpickering> fuck
<mpickering> fml
<{^_^}> [nixpkgs] @Mic92 merged pull request #38897 → iamy: init at 2.1.1 → https://git.io/vxhaZ
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpvGk
<{^_^}> → 7e324b85 by @suvash: iamy: init at 2.1.1
<{^_^}> → f5866564 by @Mic92: Merge pull request #38897 from suvash/add-iamy
<{^_^}> [nixops] @nh2 opened pull request #927 → digitalOcean: Don't ignore `authToken` when available. Fixes #925 → https://git.io/vpvGO
<LnL> build should set it properly in the first place, but https://github.com/NixOS/nixpkgs/issues/21624
Cale has quit [Read error: Connection reset by peer]
jasonmj has quit [Quit: Page closed]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ertes has quit [Ping timeout: 268 seconds]
Cale has joined #nixos
Narigo has joined #nixos
ertes has joined #nixos
Cale has quit [Ping timeout: 276 seconds]
Turion has quit [Remote host closed the connection]
peuv has joined #nixos
jtojnar has quit [Quit: jtojnar]
<peuv> I'd like my derivation to have optional dependencies that are only included if the derivation consumer sets `doCheck` to true. What's the best way to access the value of `doCheck`? Just trying to use it directly gives an undefined variable error because it's not in lexical scope
<peuv> But I'm hoping there's something better
<srhb> peuv: Lexical scope is the least of your problems. You can easily rec the attrset, but that won't do what you spect if you think the user can override it with overrideAttrs.
<LnL> you can use rec
<srhb> peuv: expect*
<LnL> but yeah overriding won't work
ditadi has joined #nixos
<srhb> peuv: The only realistic way to do what you want is to make an argument that does The Thing.
<peuv> Ah, okay. So I basically just have my own `doCheck` and ask people to configure that rather than using the "universal" `doCheck`?
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/efd6eae0242 (from 61 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<srhb> peuv: Consider the common case where src refers to "${version}". Overriding version will _not_ change src.
<srhb> peuv: Yeah.
<peuv> Okay, thanks
<srhb> peuv: The problem at hand is operating on the call versus operating on the resulting set, if you're curious.
jasonmj has joined #nixos
<peuv> Yeah, I think that makes sense
<srhb> :)
ambro718 has quit [Quit: Konversation terminated!]
Ariakenom has quit [Quit: Leaving]
xcmw has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #38976 → tixati: 2.55 -> 2.57 → https://git.io/vpvG5
Cale has joined #nixos
rosa has joined #nixos
johnw has quit [Quit: ZNC - http://znc.in]
toppler has quit [Read error: Connection reset by peer]
<sphalerite> hmm, it seems that .override can't be chained. Is there a particular reason for this?
toppler has joined #nixos
rosa has quit [Quit: rosa]
hiratara has quit [Ping timeout: 276 seconds]
boxscape has quit [Quit: Page closed]
<{^_^}> [nixpkgs] @srhb merged pull request #38646 → erlang: 20.3.1 -> 20.3.2 → https://git.io/vx7pv
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/vpvZW
<{^_^}> → db1ac62e by @djgoku: update erlangR20 from 20.3.1 to 20.3.2
<{^_^}> → 2bdda287 by @srhb: Merge pull request #38646 from djgoku/update-erlang-r20
hiratara has joined #nixos
<{^_^}> [nixpkgs] @srhb pushed commit from @djgoku to release-18.03 « update erlangR20 from 20.3.1 to 20.3.2 »: https://git.io/vpvZ8
johnw has joined #nixos
jperras has quit [Quit: WeeChat 2.1]
jasonmj has quit [Quit: Page closed]
<{^_^}> [nixpkgs] @Moredread opened pull request #38977 → borgbackup: Add blake2 library to build inputs → https://git.io/vpvZ2
Cale has quit [Read error: Connection reset by peer]
<srhb> sphalerite: Hmm, I'm looking at #38963 and I don't feel super confident about it. Maybe you have a reviewer in mind? I always thought it behaved sanely.
Cale has joined #nixos
<sphalerite> srhb: IMHO builds should fail with a non-zero exit code if anything is wrong rather than just not producing the output path
rosa has joined #nixos
<sphalerite> the linked issue describes a case where it's caused a problem, but only in combination with how `nix build` behaves
simukis has quit [Ping timeout: 264 seconds]
mkoenig_ has joined #nixos
<justanotheruser> Hey, I'm trying to install an old version of chromium, so I used https://nixos.wiki/wiki/FAQ#How_can_I_install_a_package_from_unstable_while_remaining_on_the_stable_channel.3F I got this error though https://hastebin.com/raw/iwujokorit (line 4 is `nixos-1803 = import <nixos-18.03> {};`) `sudo nix-channel --list` includes the line `nixos-1803 https://nixos.org/channels/nixos-18.03`.
<justanotheruser> s/old version/new version/
mkoenig has quit [Ping timeout: 256 seconds]
rosa has quit [Client Quit]
<srhb> sphalerite: Sorry, I don't quite understand in which cases it does not produce an error code. Only in the nix build one?
<sphalerite> srhb: it never produces an error code — just fails to produce the output path
<srhb> sphalerite: Yes it does.
<srhb> "Failed to produce output path" will give you an error.
<sphalerite> srhb: oh?
<sphalerite> srhb: yes but that's not the *builder* producing an error code
<srhb> That's true.
<sphalerite> which is what's needed for `nix build` to output the build log
<srhb> Ah, okay.
bennofs has joined #nixos
johnw has quit [Quit: ZNC - http://znc.in]
<sphalerite> this is only one of two possible ways to fix the problem, the other being to make nix build output the log tail even if the builder exited with 0 and didn't produce all the outputs
<sphalerite> but in cases where this is the result of a packaging bug, I don't think that will be helpful most of the itme
<srhb> OK, sounds reasonable to me.
phreedom has quit [Remote host closed the connection]
<dmj`> infinisil: webserver> creating droplet ...error: No token provided. Please use a valid token
<dmj`> :(
phreedom has joined #nixos
rosa has joined #nixos
<infinisil> Hmm.. Maybe it's outdated :/
<{^_^}> [nixpkgs] @srhb merged pull request #38963 → requireFile: exit with non-zero error message → https://git.io/vpeNt
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/vpvZH
<{^_^}> → 4a30f2ef by @lheckemann: requireFile: exit with non-zero error message
<{^_^}> → 31effc1d by @srhb: Merge pull request #38963 from lheckemann/requirefile-build-error
<dmj`> infinisil: docs don’t cover this ..
<sphalerite> srhb: thanks!
<dmj`> infinisil: oh oh, deployment.digitalOcean.authToken
<srhb> sphalerite: :) Think it's a safe backport? I think we should.
<sphalerite> yeah probably
MP2E has joined #nixos
<{^_^}> [nixpkgs] @srhb pushed commit from @lheckemann to release-18.03 « requireFile: exit with non-zero error message »: https://git.io/vpvnv
Cale has quit [Ping timeout: 276 seconds]
rosa has quit [Quit: rosa]
ndrei has joined #nixos
thblt has joined #nixos
johnw has joined #nixos
rosa has joined #nixos
chisui_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
lukec has quit [Ping timeout: 256 seconds]
chisui has joined #nixos
jtojnar has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
Synthetica has quit [Quit: Connection closed for inactivity]
day|flip has joined #nixos
Cale has joined #nixos
thc202 has quit [Ping timeout: 268 seconds]
thblt has quit [Ping timeout: 264 seconds]
<foldingcookie> how do I query the nix store path for a given package name?
jtojnar_ has joined #nixos
SitiSchu has joined #nixos
hiratara has quit [Quit: ZNC - http://znc.in]
<foldingcookie> e.g. "acpi" -> "/nix/store/fmnnbhvp80dfzj3fm70j5w13m8sad5z0-acpi-1.7"
<srhb> foldingcookie: find /nix/store -name '*-name-*'
jtojnar has quit [Ping timeout: 260 seconds]
jtojnar_ is now known as jtojnar
<srhb> Well, more or less :P
<foldingcookie> yeah, is there something less "more or less" and more robust?
<srhb> ls!
hiratara has joined #nixos
<foldingcookie> :/
<day|flip> ls /nix/store | grep shortname
<foldingcookie> so the answer is "no, you have to root through the store and do guesswork"?
<srhb> I think the answer is "yes, but" but yes.
<srhb> The real answer is probably "what do you mean by 'package name'?"
rosa has quit [Quit: rosa]
<dmj`> infinisil: do backend uses nixos-infect? So hackzilla
<foldingcookie> plausibly, "things printed by nix-env -q"?
jackdk has joined #nixos
<infinisil> dmj`: I think one of them does
<dmj`> infinisil: so suppose I create a deploy on a laptop that I’m going to be getting rid of, should I copy the nixops deploy folder somewhere?
<dmj`> infinisil: I assume the deploy file is the current state
<dmj`> of the cloud arch. etc.
<infinisil> dmj`: Yeah it includes private keys for ssh and some other stuff, you should keep it
<dmj`> infinisil: if I lose it what happens
<dmj`> infinisil: I assume I create a new deploy and have to blow away the old one?
rosa has joined #nixos
<infinisil> If you have your own ssh keys you should still be able to log in, not sure how to recover exactly
<srhb> foldingcookie: Then I'd probably just look at the outPaths in /nix/var/nix/profile/?/manifest
<infinisil> I've never used the DO backend or any such backend in fact
justanotheruser has quit [Quit: WeeChat 1.9.1]
<srhb> foldingcookie: eg. /nix/var/nix/profiles/per-user/sarah/profile/manifest.nix
justanotheruser has joined #nixos
<day|flip> foldingcookie: find something that will show the date
<day|flip> foldingcookie: ls -l /nix/store | awk '{print $5, $6, $7, $9}' | grep nano
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/a228c69892a (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<srhb> day|flip: Huh? What does that help?
nur0n0 has joined #nixos
<WilliButz> foldingcookie: you could do something like this: `nix show-derivation -f '<nixpkgs>' acpi | jq '.[].env.out'` This gives you the outpath, but does not tell you if it is actually present in the nix store
<dmj`> infinisil: have you seen error: a ‘x86_64-linux’ is required to build ‘/nix/store/qb74bda39jmqrd7v1sg4zw1i1rpn1wrg-append-initrd-secrets.drv’, but I am a ‘x86_64-darwin’a
<dmj`> infinisil: when trying to deploy from my osx machine
<foldingcookie> hmm, ok
nadley has quit [Ping timeout: 240 seconds]
nadley has joined #nixos
<foldingcookie> WilliButz: what role is "acpi" playing there? that line works as expected but for other packages I see errors like error: attribute 'xf86-input-synaptics' in selection path 'xf86-input-synaptics' not found
vil has joined #nixos
<foldingcookie> (both acpi-1.7 and xf86-input-synaptics-1.9.0 are present in the output of `nix-env -q`)
<WilliButz> foldingcookie: it's the attribute name, the one in pkgs/top-level/all-packages.nix
<foldingcookie> ah
<nur0n0> hey guys, I'm trying to port another package to nix but I'm getting a weird error. I ran a 'nix-prefetch-git' to get the rev and sha256 for a package, but when I plug those values into 'fetchFromGitHub' the directory does not seem to be mirrored correctly. I'm getting errors about missing files that I can see are present on github. Does anyone know
<nur0n0> if there is an easy fix? maybe some flags I'm not aware of?
<foldingcookie> so I'd want xorg.xf86inputsynaptics for example
<foldingcookie> (that works)
drakonis has joined #nixos
<WilliButz> foldingcookie: yeah right
<WilliButz> just found that out as well :)
lukec has joined #nixos
<dmj`> infinisil: why would deploying from osx to linux matter? it shouldn't
<srhb> nur0n0: fetchFromGitHub is essentially equivalent to nix-prefetch-url, not nix-prefetch-git
<{^_^}> [nixpkgs] @samueldr opened pull request #38978 → dbeaver: 5.0.2 -> 5.0.3 → https://git.io/vpvcf
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/efd6eae0242 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<srhb> nur0n0: eg. it fetches github.com/owner/repo/archive/rev.tar.gz
<srhb> Or something like that :)
<LnL> dmj`: hashing on osx can sometimes be different because of the way casing works
<dmj`> LnL: was the in reference to my paste or the x86_darwin error
<SitiSchu> Someone here that has experience with Hyper-V + NixOS ? I tried the hyper-daemons package from nixos.linuxPackages but it seems like it didnt create any systemd services since systemctl and find both cant find them
<LnL> dmj`: yes
<dmj`> LnL: which?
<srhb> SitiSchu: Can you elaborate on what it means that you "tried" the hyper-daemons package?
<justanotheruser> Hey, I'm trying to install a new version of chromium, so I used https://nixos.wiki/wiki/FAQ#How_can_I_install_a_package_from_unstable_while_remaining_on_the_stable_channel.3F I got this error though https://hastebin.com/raw/iwujokorit (line 4 is `nixos-1803 = import <nixos-18.03> {};`) `sudo nix-channel --list` includes the line `nixos-1803 https://nixos.org/channels/nixos-18.03`.
<LnL> dmj`: the paste, as for deploying from osx you need some way to build linux things (eg. distributed-builds)
<dmj`> LnL: I thought nixops, if it detects a different arch. that you’re deploying to will attempt to build on the target server, as opposed to the server from which you are deploying
<SitiSchu> @srhb, I tried installing it manually with nix-env and putting it in my config but it still dindt create the services it should (looking at the source to know the name of the services)
<srhb> justanotheruser: It would appear that nixos-18.03 is not a channel that root knows of. Did you add it as your own user?
<srhb> SitiSchu: Packages in general create no systemd services. Only modules do.
<SitiSchu> so it was just me using it wrong ?
<srhb> SitiSchu: I don't think there's any module that does what you want, but your expectations probably were misguided. :)
<LnL> dmj`: no it builds locally and copies the closure over, you don't want to start compiling stuff on a production server :)
<nur0n0> srhb: thanks. the actual issue was that the github project used git submodules
<srhb> nur0n0: Boo! :-)
<dmj`> LnL: yea true, guess I assumed the former. And yes :) in a production scenario for sure. But this is like a basic thing
<srhb> SitiSchu: Oh, hm...
<SitiSchu> I'm a total noob when it comes to nix expressions but it looks like it copies (or tries to) some service files
zybell_ has quit [Ping timeout: 256 seconds]
<nur0n0> so does anyone know how to pass the '--recursive' flag to 'fetchFromGitHub'? i could always do it manually and then point nix to a tarball, but I wonder if there is a solution already implemented?
<srhb> nur0n0: Does it takes fetchSubmodules = true ?
<LnL> dmj`: yeah, it should be nice if there was an option for it, but AFAIK currently you'd need to the machine as a remote builder
<{^_^}> [nixpkgs] @xeji opened pull request #38979 → nixos/test/systemd: fix broken test → https://git.io/vpvcC
<srhb> SitiSchu: Yes, it does. They're in the .lib output of that derivation. However, that does not integrate them with the OS in any way.
<SitiSchu> so the "installPhase" part at line 69 doesnt move them ?
<srhb> SitiSchu: Yep, it does. into /nix/store/rzwkasifcr4mqyd989wna3cbcnwaw292-hyperv-daemons-4.14.34-lib/lib/systemd/system/h
<srhb> SitiSchu: The thing to realize is that the whole NixOS systemd setup does not refer to a bunch of static files, but a symlink farm that is generated for each generation based on the active modules.
<srhb> SitiSchu: And packages being "installed" has no influence on this at all, generally.
mmlb has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @samueldr opened pull request #38980 → Dbeaver/5.0.3 18.03 (18.03) → https://git.io/vpvc0
silver has joined #nixos
mmlb has joined #nixos
joehh has quit [Ping timeout: 264 seconds]
<foldingcookie> WilliButz: do you know why the package hash shown by `nix show-derivation` isn't the same as installed when running `nix-env -u` or `nix-env -i`?
<srhb> I don't know of a good way of reusing those unit files aside from duplicating their contents...
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/0f72b034ab0 (from 73 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<foldingcookie> I'm assuming some weirdness between "old" nix-env and "new" nix 2.0 but I don't really understand how this stuff fits together yet
<SitiSchu> @srhb, hm I see (I have still a lot to learn) so what would be the best way to get them to function ? just copy them manually ? or is there a better way ?
<srhb> SitiSchu: You can't copy them into systemd's libraries directly (those paths are read only, part of the immutability promise of NixOS) -- but maybe you could duplicate what they contain with the NixOS options in systemd.services
<LnL> foldingcookie: using 1.11 and 2.0 will result in 2 different drv files that build the same output path, that's normal
<{^_^}> [nixpkgs] @thorstenweber83 opened pull request #38981 → python: python-digitalocean: fix build → https://git.io/vpvcV
<srhb> SitiSchu: A better solution would be to write a real module that generates these units, but that may or may not be a little daunting at first.
<LnL> foldingcookie: same happens with eg. fixed output drvs with the same output hash but different urls
<nur0n0> srhb: weird, 'fetchSumbmodules = true;' didn't work. any idea why? running 'git clone --recursive' manually does pull the required files
<foldingcookie> LnL: afaict these are output paths, not drvs
<srhb> nur0n0: Honestly I've only ever used fetchGit (not fetchFromGitHub) for that, and I've never had a good time with it.
<SitiSchu> @srhb, Alright I'll look into it thanks alot :) (now find also finds the .service files for some reason) I might write such a package when I have time and more experience, right now I'm mainly using hyper-v to get a solid config and then install it on my real pc...thanks a lot for you help, I appreciate it
logzet has quit [Remote host closed the connection]
<LnL> foldingcookie: drv files are also store paths, but if you're seeing a different output path then I'm not sure why
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/8416cd0326c (from 11 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<srhb> SitiSchu: Cool, and feel free to ask further questions if we can help. It shouldn't be too hard to duplicate this as a module (not package) but it may take a bit of guidance :)
zybell_ has joined #nixos
<nur0n0> srhb: ok, thanks for the heads up. I'll just do that part manually, no biggie! I also appreciate the help
<foldingcookie> LnL: I would assume different package revisions?
<WilliButz> foldingcookie: does the version in your nix-env match the one in '<nixpkgs>'?
bkchr has quit [Ping timeout: 265 seconds]
<WilliButz> the nixpkgs version that is ^^
<foldingcookie> eep. how do I tell
<LnL> foldingcookie: oh wait -u only looks at package versions, try nix-env -u --leq
<dmj`> LnL: can I ask you a question about my nixops deploy script
<srhb> nur0n0: Alternatively you could fetch each submodule manually and just copy them into the builders workspace.
<srhb> nur0n0: But, yeah... Good luck :-)
<SitiSchu> @srhb, hm looking at the manual and it seems doable, I'll look at it tomorrow
<foldingcookie> LnL: ooh that looks like it :)
<foldingcookie> thanks!
<dmj`> LnL: but for some reason the web server doesn’t get put on it
<LnL> foldingcookie: so what happened is that one of the dependencies changed, the regular -u only upgrades stuff if the package itself changed
<srhb> SitiSchu: OK, great. :) Have fun.
<foldingcookie> LnL: ah, interesting
rosa has quit [Quit: rosa]
<foldingcookie> so I suppose for "system updates" I'm running `nix-channel --update; nix-env --update --leq` now. is this sane?
rosa has joined #nixos
<LnL> I basically only use nix-env declaratively, but that gets you closer
<{^_^}> [nixpkgs] @das-g opened pull request #38982 → nixos manual: add missing space after "copytoram" → https://git.io/vpvcb
<LnL> dmj`: you mean the service is missing?
<foldingcookie> LnL: is there a guide to using nix-env declaratively?
<dmj`> LnL: yea I figured it out, I need to copy stuff from config.nix
<dmj`> then enable the service
<foldingcookie> not having a file listing all my nix-env state does come with some anxiety...
<foldingcookie> cool, thanks
<LnL> that last one is basically the same as /run/current-system/sw on nixos
<dmj`> LnL: webserver> error: out of memory
<dmj`> yay
<LnL> I think you can set the memory with nixops
<LnL> but I don't really know that much about it
<justanotheruser> srhb: yeah, 1803 exists
<justanotheruser> nixos-1803
Narigo has quit [Quit: This computer has gone to sleep]
<justanotheruser> I changed the channel name from nixos-18.03 to nixos-1803, so the error message is slighctly old, mb
rosa has quit [Quit: rosa]
<dmj`> LnL: yea, can bump it in digital ocean
<dmj`> LnL: I think its building on digital ocean
<dmj`> LnL: my local behemoth nixos machine would never run out of memory
joehh has joined #nixos
DwarfMaster has joined #nixos
<dmj`> LnL: I have more questions
ericsagnes has quit [Ping timeout: 240 seconds]
<justanotheruser> srhb: hopefully this is more clear, I've made things consistent
<justanotheruser> Hey, I'm trying to install a new version of chromium, so I used https://nixos.wiki/wiki/FAQ#How_can_I_install_a_package_from_unstable_while_remaining_on_the_stable_channel.3F I got this error though https://hastebin.com/raw/iwujokorit (line 4 is `nixos-1803 = import <nixos-18.03> {};`) `sudo nix-channel --list` includes the line `nixos-1803 https://nixos.org/channels/nixos-18.03`.
<justanotheruser> Hey, I'm trying to install a new version of chromium, so I used https://nixos.wiki/wiki/FAQ#How_can_I_install_a_package_from_unstable_while_remaining_on_the_stable_channel.3F unfortunately I get "file ‘nixos-1803’ was not found in the Nix search path (add it using $NIX_PATH or -I), at /etc/nixos/configuration.nix:3:23" https://paste.debian.net/plain/1020477
<justanotheruser> ugh, ignore the first paste, the second is what I meant to send
<dmj`> LnL: letsencrypt certs shouldn’t care if I point my domain name to a new ip right
<ajs124> Hm, so I'm trying to add python support to claws-mail, but the conftest fails to dlopen("libpython2.7.so", RTLD_NOW | RTLD_GLOBAL), any idea why that might be?
<zybell_> could it help to import <./nixos-1803> instead of <nixos-1803>?
Fare has joined #nixos
<zybell_> justanotheruser:^
<justanotheruser> file ‘./nixos-1803’ was not found in the Nix search path (add it using $NIX_PATH or -I), at /etc/nixos/configuration.nix:3:23
<gchristensen> justanotheruser: as root, nix-channel --list
<Fare> oh no, stumpwm doesn't build on nixos 18.03
drakonis has quit [Remote host closed the connection]
<justanotheruser> gchristensen: please see https://paste.debian.net/plain/1020477
<gchristensen> oops
<gchristensen> missed it at the top
drakonis has joined #nixos
<justanotheruser> np, let me know if you have any suggestions please
<samueldr> justanotheruser: just to be sure, you did to a nix-channel --update as specified in the FAQ entry?
<justanotheruser> yes
rosa has joined #nixos
<gchristensen> justanotheruser: as root, echo $NIX_PATH
<zybell_> absolute path? Just to see if *that* would work,at least?
<justanotheruser> nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
<gchristensen> and does /nix/var/nix/profiles/per-user/root/channels contain nixos-1803
<dmj`> LnL: can I see your droplet configuration ?
<drakonis> so i'm getting tripped by channel collisions again
<justanotheruser> gchristensen: no, it contains binary-caches manifest.nix nixos
<Fare> reassuringly, stumpwm is just as broken in nixpkgs, which I suppose makes it easier to fix
<dmj`> LnL: your digital ocean nixops script, want to see how to make a free floating ip
<drakonis> i'm not sure what causes it to occur
<gchristensen> justanotheruser: try running `sudo nix-channel --update` again
<Fare> what is the backport policy for 18.03 ?
<justanotheruser> also worth mentioning that sudo echo $NIX_PATH is different from what I just gave you which the result of the command under su
<drakonis> does the global repository have to be different from the local?
<gchristensen> `sudo echo $NIX_PATH` resolves $NIX_PATH as your user, you'd have to do `sudo -i`, _then_ echo $NIX_PATH
<justanotheruser> gchristensen: did it again. didn't fix it
<justanotheruser> yeah, so what I gave you is the same result as sudo -i echo $NIX_PATH
<gchristensen> `sudo -i echo $NIX_PATH` is still not correct
<Fare> gchristensen, if I fix stumpwm which is broken in 18.03, will/should the fix be backported to 18.03 ?
<gchristensen> Fare: yes
<Fare> what if the "fix" is to essentially drop stumpw and replace it will lispPackages.stumpwm ?
<gchristensen> dunno
<Fare> s/will/with ; s/stumpw /stumpwm /
<justanotheruser> gchristensen: not sure what you mean
<zybell_> justanotheruser: could you try to insert the absolute path to nixos-1803?
<justanotheruser> sudo -i <command> is the same as sudo -i (then run command)
<Fare> (which already exists, but isn't used by the wm config)
<justanotheruser> zybell_: how do I determine that?
<gchristensen> justanotheruser: not when using variables. sudo -i echo $NIX_PATH is resolving NIX_PATH _before_ sudo is called
<justanotheruser> gchristensen: ok, well here's the result of running sudo -i, then running echo $NIX_PATH nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels
<justanotheruser> which at least for my machine is the same
<zybell_> is that file a download?
<gchristensen> zybell_: please stop, their channel is obviously not downloading so there is no absolute path.
<zybell_> that is downloaded as part of nixos-rebuild ,not before