jrolfs_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] MP2E pushed 1 new commit to master: https://git.io/vbpJP
<NixOS_GitHub> nixpkgs/master 1d537f8 Cray Elliott: mwprocapture: fix build with kernels >4.14.9
NixOS_GitHub has left #nixos []
<LnL> I think it was ok, unless we merge my changes first
bennofs has joined #nixos
aarvar has quit [(Ping timeout: 272 seconds)]
jrolfs_ has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] magnetophon opened pull request #33303: clipster: 1.2.5 -> 1.4.1 (master...clipster) https://git.io/vbpUJ
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] hamishmack opened pull request #33304: geoclue2: Fix geoclue2 for macOS (master...geoclue2-darwin) https://git.io/vbpUU
NixOS_GitHub has left #nixos []
slack1256 has joined #nixos
MP2E has quit [(Remote host closed the connection)]
MP2E has joined #nixos
knupfer has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #33305: zeromq: 4.2.2 -> 4.2.3 (master...zmq-4_2_3) https://git.io/vbpUa
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bgamari opened pull request #33306: haskell: Recommend use of hoogle --local (master...patch-2) https://git.io/vbpUo
NixOS_GitHub has left #nixos []
tmaekawa has joined #nixos
tmaekawa has quit [(Client Quit)]
07IACAI86 has joined #nixos
<07IACAI86> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vbpUM
<07IACAI86> nixpkgs/master c5d1929 Bart Brouns: clipster: 1.2.5 -> 1.4.1
<07IACAI86> nixpkgs/master 0580f98 adisbladis: Merge pull request #33303 from magnetophon/clipster...
07IACAI86 has left #nixos []
7GHABPECQ has joined #nixos
<7GHABPECQ> [nixpkgs] adisbladis closed pull request #33303: clipster: 1.2.5 -> 1.4.1 (master...clipster) https://git.io/vbpUJ
7GHABPECQ has left #nixos []
otherjrolfs has joined #nixos
<dhess> Ugh, there are way too many overloaded uses of "platform" in Nixpkgs. :(
slack1256 has quit [(Remote host closed the connection)]
slack1256 has joined #nixos
Mateon1 has quit [(Ping timeout: 240 seconds)]
slack1256 has quit [(Remote host closed the connection)]
slack1256 has joined #nixos
otherjrolfs has quit [(Ping timeout: 248 seconds)]
Mateon1 has joined #nixos
<joepie91> I put a platform in your platform so that you can platform while you platform
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
<earldouglas> I am trying to configure my scanner, and stuck on how to tell sane about my firmware. In non-NixOS, I would edit epjitsu.conf, but in NixOS I see that epjitsu.conf points to non-existent files in the sane-backends package.
<earldouglas> I think I could get it to work if I understood how to override those missing files in sane-backends.
<earldouglas> How would I modify the sane-backends package such that I can override the contents of ${sane-backends}/share?
srdqty has quit [(Quit: WeeChat 1.9.1)]
jrolfs_ has quit [(Ping timeout: 260 seconds)]
otherjrolfs has quit [(Ping timeout: 248 seconds)]
pxc has joined #nixos
otherjrolfs has joined #nixos
<dhess> joepie91: that's a pretty good summary of it.
<joepie91> :)
<earldouglas> Hmm, seems I would set nixpkgs.config.sane.extraFirmware, but that has no apparent effect.
bennofs has quit [(Ping timeout: 252 seconds)]
otherjrolfs has quit [(Ping timeout: 256 seconds)]
randomstrangerb has quit [(Ping timeout: 248 seconds)]
randomstrangerb has joined #nixos
vidbina has quit [(Quit: leaving)]
jrolfs_ has joined #nixos
jrolfs_ has quit [(Ping timeout: 268 seconds)]
jb55 has joined #nixos
otherjrolfs has joined #nixos
jrolfs_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] hamishmack opened pull request #33307: webkitgtk: Fix webkitgtk for macOS (master...webkitgtk-macos) https://git.io/vbpkX
NixOS_GitHub has left #nixos []
otherjrolfs has quit [(Ping timeout: 268 seconds)]
jrolfs_ has quit [(Ping timeout: 260 seconds)]
otherjrolfs has joined #nixos
jrolfs_ has joined #nixos
asuryawanshi has joined #nixos
asuryawanshi has quit [(Ping timeout: 252 seconds)]
jrolfs_ has quit [(Ping timeout: 252 seconds)]
otherjrolfs has quit [(Ping timeout: 252 seconds)]
dan_b has joined #nixos
rotsor3 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vbpIs
<NixOS_GitHub> nixpkgs/master a7e54af Bastian Köcher: mgba: 0.6.0 -> 0.6.1...
<NixOS_GitHub> nixpkgs/master 73050d3 adisbladis: Merge pull request #33292 from bkchr/mgba...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #33292: mgba: 0.6.0 -> 0.6.1 (master...mgba) https://git.io/vbxbi
NixOS_GitHub has left #nixos []
nh2 has quit [(Ping timeout: 265 seconds)]
drakonis_ has quit [(Ping timeout: 272 seconds)]
jrolfs_ has joined #nixos
stepcut has quit [(Remote host closed the connection)]
stepcut has joined #nixos
jrolfs_ has quit [(Ping timeout: 240 seconds)]
stepcut has quit [(Ping timeout: 264 seconds)]
otherjrolfs has joined #nixos
thc202 has quit [(Ping timeout: 240 seconds)]
otherjrolfs has quit [(Ping timeout: 264 seconds)]
<jtojnar> why is not glib_networking build on darwin? It has `platforms = platforms.unix`
TonyTheLion has joined #nixos
<TonyTheLion> does anyone here know how to use fetchgit without having to get a new hash for every github update to the repo being downloaded?
nuncanada has quit [(Quit: Leaving)]
<jtojnar> TonyTheLion: nix needs the hash for saving the downloaded files to the store
<jtojnar> you can write an update script though https://garbas.si/2016/updating-your-nix-sources.html
rodgort has quit [(Quit: Leaving)]
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
<TonyTheLion> jtojnar: oh that looks interesting
<jtojnar> TonyTheLion: something like that is used by the mozilla overlay https://github.com/mozilla/nixpkgs-mozilla
<TonyTheLion> is it in the default.nix?
<TonyTheLion> also, if you keep the default.nix in the repo itself, then any changes you make to this file, you have to recommit, and then get the new hash to put it in the file
<TonyTheLion> and so on
<TonyTheLion> seems kinda circular
<TonyTheLion> or is there something I'm missing?
rodgort has joined #nixos
<ekleog> in the default.nix you're not supposed to fetch from github, but to use eg. “.” as the path
jrolfs_ has quit [(Ping timeout: 248 seconds)]
otherjrolfs has quit [(Ping timeout: 264 seconds)]
<TonyTheLion> ekleog: so you have to put it in another .nix file in the repoe
<TonyTheLion> ?
<ekleog> nah, just don't do “src = fetchFromGithub { ... };” but instead “src = .;”
<ekleog> this way it'll consider the directory of the .nix as the source directory
<TonyTheLion> ye but I want to get from a github repo, cause thats what the current directory is
<TonyTheLion> also more convenient when you get it on another machine
<ekleog> there are legit cases where you need to fetch from a github repo from inside a default.nix, but by default I'd guess you're not in one of these few ;)
<ekleog> if you set “src = .;”, you just have to git clone && cd [dir] && nix-shell and be in a working environment, or nix-build and build it
<ekleog> the idea is that the fetchFromGithub is useless as you already have manually performed the git clone
<TonyTheLion> hmmm
<ekleog> fetchFromGithub is useful if you need sources from another github repo, not yet present on your machine (or whose path you don't know)
<ekleog> which is why it's heavily used throughout nixpkgs :)
<TonyTheLion> interesting
<TonyTheLion> and what about 'gitfetch'?
<jtojnar> maybe it is possible to import it like this https://github.com/mozilla/nixpkgs-mozilla#using-in-nix-expressions?
<TonyTheLion> which is what I was actually trying to use
<TonyTheLion> also things like gitfetch and fetchurl are hard to find documentation about, is it actually documented anywhere besides inside the sources?
<gchristensen> TonyTheLion you mean fetchgit?
<ekleog> jtojnar: that's only designed to use mozilla's pkgs from your nix script, I don't think that's what he meant
<TonyTheLion> ye I meant thtat
<TonyTheLion> gchristensen: yea I meant fetchgit
<ekleog> TonyTheLion: there are a few hints at https://nixos.org/nixpkgs/manual/#sec-sources
<TonyTheLion> I read that
<ekleog> then I don't think there's much more documentation apart from the code (but maybe I'm wrong?)
<ekleog> that said, 'night :)
<TonyTheLion> night :)
dan_b has quit [(Ping timeout: 248 seconds)]
<TonyTheLion> to be fair, 'src = .;' doesn't work
<TonyTheLion> it says: 'unexpected '.', at that line
<jtojnar> you need to use ./.
<jtojnar> a path needs to contain a slash
<TonyTheLion> ye but it doesn't copy the current dir into the tmp dir that it builds in
<TonyTheLion> ye perhaps I should have said I also have it building the package
<TonyTheLion> donno that even matters
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
<TonyTheLion> when you give current dir as the src dir, it doesn't copy it into the tmp dir it builds in
<TonyTheLion> which is why we were trying to get it to use github as the source rather than a tar file
<TonyTheLion> so it would always get the latest
rotsor3 has quit [(Ping timeout: 252 seconds)]
jrolfs_ has quit [(Ping timeout: 248 seconds)]
phreedom has quit [(Ping timeout: 256 seconds)]
otherjrolfs has quit [(Ping timeout: 264 seconds)]
markus1199 has joined #nixos
markus1189 has quit [(Ping timeout: 248 seconds)]
pkill9 has quit [(Quit: WeeChat 2.0)]
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
mbrgm has quit [(Ping timeout: 260 seconds)]
otherjrolfs has quit [(Ping timeout: 260 seconds)]
jrolfs_ has quit [(Ping timeout: 260 seconds)]
mbrgm has joined #nixos
orivej has joined #nixos
Supersonic112 has quit [(Ping timeout: 240 seconds)]
<gchristensen> fetchFromGithub will also not use the latest, since it is pinned to thee sha256sum
<gchristensen> Nix isn't very good at "rolling" versions, it is intentionally modeled after explicit, pinned, known versions
Supersonic112 has joined #nixos
<dhess> gchristensen: I can't remember whether we've talked about it before, but have you had any luck getting NixOS installed on a Scaleway C1 ?
gchristensen has left #nixos ["WeeChat 1.9.1"]
gchristensen has joined #nixos
<gchristensen> dhess: I've never tried (but you caught me right as I was going to bed)
<dhess> oh no worries, good night ! :)
<gchristensen> night!
slack1256 has quit [(Remote host closed the connection)]
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
ebzzry has joined #nixos
<ebzzry> Nix install wont install on macOS High Sierra. Has the issue already been resolved?
<ebzzry> s/install/still/
<dhess> ebzzry: there was an issue where, on 10.13.0 and 10.13.1, Nix could crash the kernel, but that is fixed in 10.13.2.
jrolfs_ has quit [(Ping timeout: 264 seconds)]
<palo> maybe somebody can help me here: I use this script https://github.com/mrVanDalo/nix-overlay/blob/master/fhUser-scripts/bitwig.nix to create an environment to start bitwig (with all libs for my plugins) but I have to `nix-shell bitwig.nix` and than type in `bitwig-studio` all the time, is there a nice way (I bet there is) to make a binary out of it?
otherjrolfs has quit [(Ping timeout: 268 seconds)]
<palo> I mean a script, which ich just call
<palo> nix-shell --run bitwig-studio bitwig.nix (is not working)
<palo> changing runScript also does not work :(
asuryawanshi has joined #nixos
pjan_ has joined #nixos
<clever> palo: that gives you a shell suitable for building bitwig, not running it
<pjan_> Hi. Been playing with nix over the holidays. Was wondering how you can have overlays and config.nix work nicely together. I have a package defined using an overlay (~/.config/nixpkgs/overlays/...), and I can use it using nix-shell or nix-env. I want to have this package included in a buildEnv (say test-env), but it is not picking up the definition there. Any pointers? Or can buildEnv's also be defined using overlays (I tried some
<pjan_> things, but nothing worked so far)
<ebzzry> I'm using 10.13.2
<pjan_> (btw, using nixpkgs on osx)
<ebzzry> dhess: I'm using 10.13.2
<clever> pjan_: can you post both of your files into a gist?
<dhess> ebzzry: you should be OK then
<ebzzry> dhess: I just ran 'curl https://nixos.org/nix/install | bash' and it failed
<dhess> ebzzry: well what does it say?
<ebzzry> dhess: coming u
<ebzzry> p
<dhess> pjan_: buildEnvs can be defined in overlays. I do that on my Nixpkgs on macOS.
<pjan_> @dhess any examples? @clever, yes, can put it in a gist. give me a minute
hamishmack has quit [(Remote host closed the connection)]
<dhess> pjan_: it's about exactly as you would expect. Here is a very simple one. https://gist.github.com/dhess/2d3fe4cf85a3d083cccdae93a4212e1d
<dhess> pjan_: I can install that with 'nix-env -i nixops-env'
hamishmack has joined #nixos
<dhess> pjan_: if the config.nix you're talking about is in /etc, and you want this to be system-visible and not just visible to your own user account, you will need to add something like 'nixpkgs.overlays = [ (import ./path/to/your/overlays) ]'
hamishmack has quit [(Client Quit)]
<pjan_> @dhess thanks; will look into it. Seems my understanding for the use of super and self (esp when to use them) is still not where it needs to be
<pjan_> I don't need it to be system-wide at this point
<dhess> pjan_: it's pretty simple. You can basically think of 'super' as "where all the functions live" and 'self' as "where all the packages live."
<dhess> ebzzry: hmm I dunno, looks like maybe your first attempt got to a certain point and died, and left around bits like the user accounts.
<clever> dhess: except packages are in both sets, and super is after all overlays have been applied
<dhess> clever: after all previous overlays have been applied, yeah.
<clever> i think super is all overlays after as well
<clever> and self is just previous + current
<dhess> oh, yes I guess it would need to be to fix ordering issues.
<dhess> super is the fix-point?
<clever> yeah
<clever> and now that i think of it, self doesnt include the current overlay
<dhess> anyway it seems like the general rule is "use super"
<clever> so when you do foo = self.foo.override ...; it wont become recursive
hamishmack has joined #nixos
<clever> yeah, the only time to use self is when foo refers to foo, and you have to break the recursion
<dhess> ahh yeah that is a good rule I think
<dhess> I have to clean my overlays up a bit, I am using self when I should be using super in a few places.
<dhess> it does seem to work anyway which is a testament to how robust the whole overlays mechanism is.
<clever> personally, i only use config.nix
<clever> i feel the only point for overlays, is when you want to use overrides from other users, and you cant bother to compose them into a single file
proteus-guy has quit [(Remote host closed the connection)]
otherjrolfs has joined #nixos
jrolfs_ has joined #nixos
<ebzzry> dhess: ok
<dhess> clever: you have a remarkably complete knowledge of how it all glues together. For someone new or even moderately experienced, like me, overlays are so much simpler to understand for most things.
<clever> dhess: yeah
<dhess> ebzzry: I would suggest coming back tomorrow when gchristensen is around, he can probably help you as he was heavily involved in the new macOS installer.
<ebzzry> dhess: ok. thanks!
<dhess> ebzzry: in the meantime, I would make sure there's nothing in /nix , delete the nixbld users that the script mentions as having already been created, and try running it again.
<ebzzry> dhess: yup. I installed on a fresh mac.
<clever> ebzzry: and make sure nix-daemon isnt running
<dhess> ebzzry: the nixbld users and whatever users/groups it mentioned.
<dhess> ebzzry: it worked on the fresh Mac, or is that where you're having the issues?
asuryawanshi has quit [(Ping timeout: 260 seconds)]
<ebzzry> dhess: Yes. I ran 'sudo m -rf /etc/nix /nix /var/root/.nix-profile /var/root/.nix-defexpr /var/root/.nix-channels /Users/ebzzry/.nix-profile /Users/ebzzry/.nix-defexpr /Users/ebzzry/.nix-channels'
<ebzzry> dhess: I meant to say that I *attempted* to install on a fresh mac.
<ebzzry> And that it failed.
<ebzzry> I ran that command and repeated it, and I still got the same results.
<clever> ebzzry: is nix-daemon running?
<dhess> ebzzry: huh that is odd. I installed it about a month ago on a Mac running the 10.13.2 beta and it worked great.
otherjrolfs has quit [(Ping timeout: 240 seconds)]
jrolfs_ has quit [(Ping timeout: 240 seconds)]
<ebzzry> clever: nix-daemon is not running
<dhess> a "fresh" Mac with no previous single-user Nix install
<ebzzry> dhess: I made sure that I am installing fresh.
<dhess> maybe it has been updated since then and something broke
<ebzzry> dhess: a "fresh" mac with a disk wiped with 'Disk Utility' then installed High Sierra on it.
<dhess> ebzzry: yeah that's about as "fresh" as it gets :) Sorry I can't be of more help, I'm out of my depth re: the installer.
<ebzzry> dhess: thanks, nonetheless.
<dhess> anyway gchristensen will be able to help, I'm sure. Also maybe LnL
<clever> ebzzry: what error did it fail with?
<dhess> clever: he posted this link: https://pastebin.com/PqH9QeLH
<dhess> not a very helpful error message unfortunately.
<clever> yeah, that is a strange error
* dhess afk
<palo> clever: I need to use fhsUser to run bitwig otherwise the plugins (VSTs) I have will not work.
<clever> palo: can you gist the bitwig.nix file?
<ebzzry> yes
<palo> ah sorry this is bitwig1 you can replace it with the bitwig (which is upstream and version 2)
<ebzzry> Is there a way to get more debug messages?
<clever> ebzzry: run execsnoop as root before you start the install
<palo> clever: let me correct the bitwig.nix file for you (in a gist)
<ebzzry> clever: Ok. I'm running the installer again.
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
<palo> clever: https://gist.github.com/mrVanDalo/ca798c5a950b4f351f1f00809a996a56 < this gist should work with the upstream nixos packages
<palo> (meaning it works with upstream packages)
<clever> palo: try removing the .env at the end, and pointing nix-build at it, what does that do?
<palo> what do you mean by pointing nix-build on it?
jrolfs_ has quit [(Ping timeout: 256 seconds)]
otherjrolfs has quit [(Ping timeout: 248 seconds)]
orivej has quit [(Ping timeout: 256 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar pushed 2 new commits to master: https://git.io/vbpY9
<NixOS_GitHub> nixpkgs/master f8a500f Jan Tojnar: brltty: build python bindings
<NixOS_GitHub> nixpkgs/master 866c511 Bert Moens: orca: init at 3.26.0
NixOS_GitHub has left #nixos []
Lisanna has quit [(Ping timeout: 260 seconds)]
<clever> palo: run nix-build on the nix file
dieggsy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar closed pull request #32866: Orca: [WIP] init 3.26.0 (master...orca) https://git.io/vb1wO
NixOS_GitHub has left #nixos []
orivej has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] magnetophon opened pull request #33309: borgbackup: 1.1.3 -> 1.1.4 (master...borg) https://git.io/vbpYF
NixOS_GitHub has left #nixos []
johnw has quit [(Quit: ZNC - http://znc.in)]
<clever> palo: if you remove .env and use nix-build, it generates a bash script that runs bitwig-studio under a chrootenv
<palo> clever: when I do this and got into ./results/bin and run ./bitwig it is like it always was.
<clever> yep
<clever> and that bitwig you ran is a bash script that handles the chroot for you
<palo> I see
<clever> so you can just install it with nix-env and run bitwig like normal
<palo> Nice, I prefer to do it via configuration.nix
<clever> that also works
<palo> but I guess I only have to add this to my nix-overlay than
<clever> systemPackages = [ (pkgs.callPackage ./bitwig.nix {}) ];
<palo> yeah nice
<clever> if you add it to an overlay, you can refer to it as pkgs.bitwig
<palo> thank you clever that helped a lot
<clever> yep
<palo> love this system :D
<clever> :D
<palo> (and the community :D)
otherjrolfs has joined #nixos
otherjrolfs has quit [(Ping timeout: 248 seconds)]
badamson[m] has joined #nixos
pjan_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
simukis has joined #nixos
mizu_no_oto has joined #nixos
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
asuryawanshi has joined #nixos
jrolfs_ has quit [(Ping timeout: 268 seconds)]
otherjrolfs has quit [(Ping timeout: 264 seconds)]
<ebzzry> palo: I still get the same output
asuryawanshi has quit [(Ping timeout: 240 seconds)]
schoppenhauer has quit [(Ping timeout: 264 seconds)]
schoppenhauer has joined #nixos
<palo> ebzzry: ? sorry I don't understand. you probably want to talk to somebody else
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
otherjrolfs has quit [(Ping timeout: 260 seconds)]
jrolfs_ has quit [(Ping timeout: 260 seconds)]
<ebzzry> palo: kk
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mrVanDalo opened pull request #33310: bitwig-studio: refactor to support older major versions (master...feature/bitwig-split) https://git.io/vbpsu
NixOS_GitHub has left #nixos []
Sonarpulse has quit [(Ping timeout: 265 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #33311: meson: set checkPhase in setup hook (staging...meson-checkphase) https://git.io/vbpsK
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] yegortimoshenko pushed 2 new commits to master: https://git.io/vbpsb
<NixOS_GitHub> nixpkgs/master b7387e1 Ingolf Wagner: bitwig-studio: refactor to support older major versions
<NixOS_GitHub> nixpkgs/master e8adb89 Yegor Timoshenko: Merge pull request #33310 from mrVanDalo/feature/bitwig-split...
NixOS_GitHub has left #nixos []
Ridout has quit [(Quit: Lost terminal)]
ebzzry has quit [(Ping timeout: 264 seconds)]
simukis has quit [(Quit: simukis)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ElvishJerricco opened pull request #33312: Added composable version of `filterSource` to `lib` (master...composable-filter-source) https://git.io/vbpGC
NixOS_GitHub has left #nixos []
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
Zer000 has joined #nixos
endformationage has quit [(Quit: WeeChat 1.9.1)]
otherjrolfs has quit [(Ping timeout: 248 seconds)]
asuryawanshi has joined #nixos
jrolfs_ has quit [(Ping timeout: 240 seconds)]
<Zer000> It seems like firefox 57 is on the 17.09 branch (.../networking/browsers/firefox/packages.nix has 57.0.2 as the version) so why don't I have it? (this is both a complaint an a genuine question)
<Zer000> my system is running 17.09 with autoUpgrade.enable = true
<samueldr> how is your firefox installed, nix-env as your user, nix-env as root or through environment.systemPackages, Zer000
<samueldr> (hmmm, I need to read what autoUpgrade exactly does)
asuryawanshi has quit [(Ping timeout: 248 seconds)]
<Zer000> uhoh. I have firefoxWrapper in my system configuration.nix
<Zer000> which is set to 52
<samueldr> that... may affect things
<Zer000> I think this lets me use plugins I don't use anymore. I'm going to just change it
<Zer000> well changing firefoxWrapper to firefox, manually updating my channel and rebuilding gave me firefox quantum. hooray
<samueldr> success! :)
gspia has joined #nixos
pjan_ has joined #nixos
<pjan_> re: the overlays vs using config.nix; what is the canonical way of doing this (going forward)? Investing some time at the moment to set stuff up, and I'd prefer not having to redo stuff later on :-)
<srhb> pjan_: I don't think one has come up yet, however, you can define your overlays as a single name in config.nix, I think, which I find is the most flexible solution.
<srhb> pjan_: Since the overlays directory cannot easily be reused on eg. your system setup
<samueldr> srhb: what do you mean "define your overlays as a single name"?
<pjan_> "cannot easily be reused" -> is that something that is nixOS specific? I'm using this on OSX, and in both cases this means copying/cloning files into the right directories
<srhb> samueldr: Sorry, that was a very "ugh, where's my coffee" wording. I meant, you get to define nixpkgs.overlays = [ ... ];
Zer000 has quit [(Quit: Leaving)]
<srhb> pjan_: Yes, mostly. The directory approach is fine really. I just prefer the "explicit" version.
<samueldr> I have worked out something this week-end, I need to get some comments
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
<samueldr> not sure if at all needed, maybe I missed something, but this way, my overlays set in `nixpkgs.overlays` wherever in my config are all automatically used
johnw has joined #nixos
<samueldr> for my users' nix-env
verite has joined #nixos
klntsky has quit [(Ping timeout: 272 seconds)]
klntsky_ has joined #nixos
<srhb> samueldr: Interesting :)
otherjrolfs has quit [(Ping timeout: 240 seconds)]
jrolfs_ has quit [(Ping timeout: 248 seconds)]
rauno has joined #nixos
<samueldr> some *actual* nix wizards should probably look at this first
<rauno> Hi, when creating custom iso image from first systems configuration and trying to install it to a new server (without internet connection) then it somewhy tries still to download some pages, for example "sudo" package
<srhb> samueldr: There's a nice alternative to eval config coming up at least.
<samueldr> well, srhb, I was surprised I even found an elegant way to make it work... you don't want to see the (non-committed) WIP
<srhb> Hehe :-)
blahdodo has quit [(Quit: Bye bye)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/af6aacddc18 (from 10 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
blahdodo has joined #nixos
Mateon1 has quit [(Remote host closed the connection)]
grenade_ has joined #nixos
jrolfs_ has joined #nixos
Mateon1 has joined #nixos
alpounet has joined #nixos
<srhb> Huh, now that I'm playing around with it I cannot even seem to pick up overlays in config.nix defined by overlays = [ ... ];
<srhb> Weird.
el_putin has quit [(Excess Flood)]
blahdodo has quit [(Client Quit)]
grenade has quit [(Ping timeout: 264 seconds)]
alp has quit [(Ping timeout: 264 seconds)]
grenade_ is now known as grenade
alpounet is now known as alp
el_putin has joined #nixos
asuryawanshi has joined #nixos
<loke> srhb: What are overlays? I've been goggling a bit butit's not really clear what they refer to in the context of nixos.
<srhb> loke: Not anything specific to NixOS, but nixpkgs.
<loke> Ohh! I've been looking for something like that.
<srhb> loke: They're quite nice :)
<loke> SO far I've been compying the nixpkg definition to create my own when I need to extend them.
<srhb> Well, whether you do that in overlays or packageOverrides makes little difference in practice.
jrolfs_ has quit [(Ping timeout: 248 seconds)]
blahdodo has joined #nixos
<loke> srhb: But what I did was to copy the file, rename the package and include it from environment.systemPackages
<srhb> loke: Ah, okay. :)
<loke> I'm still having no end of trouble getting android-studio to work when starting the emulaotr.
<loke> (meed struggling with this one for several days)
asuryawanshi has quit [(Ping timeout: 240 seconds)]
<loke> You don't happen to have experiwence with that?
<samueldr> srhb: my thing may need you to open a new shell, since NIX_PATH will need to be updated accordingly
dieggsy has quit [(Ping timeout: 268 seconds)]
<rauno> has anybody experience with installing to a system without internet connection?
jrolfs_ has joined #nixos
<loke> rauno: I don't think that's possible.
klntsky_ has quit [(Ping timeout: 272 seconds)]
jrolfs_ has quit [(Ping timeout: 256 seconds)]
klntsky_ has joined #nixos
tghume has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #33298: perl-vidir: init at 0.040 (master...perl-vidir) https://git.io/vbxxh
NixOS_GitHub has left #nixos []
rauno has quit [(Ping timeout: 256 seconds)]
Mateon3 has joined #nixos
JosW has joined #nixos
asuryawanshi has joined #nixos
Mateon1 has quit [(Ping timeout: 248 seconds)]
Mateon3 is now known as Mateon1
tghume has joined #nixos
pie_ has quit [(Ping timeout: 240 seconds)]
asuryawanshi has quit [(Ping timeout: 264 seconds)]
Lisanna has joined #nixos
asuryawanshi has joined #nixos
<Lisanna> ...that feel when you need to use buildFHSUserEnv on your own installer ):
freusque has joined #nixos
otherjrolfs has joined #nixos
rauno has joined #nixos
asuryawanshi has quit [(Ping timeout: 264 seconds)]
otherjrolfs has quit [(Ping timeout: 272 seconds)]
asuryawanshi has joined #nixos
<hyper_ch> globin: online?
Fannar has joined #nixos
Fannar has quit [(Client Quit)]
<Isorkin> How to fix error - (No such file or directory) in mysql.service . not running command wsrep_sst_rsync. In systemd.services.mysql path pkgs.mariadb added.
rauno has quit [(Ping timeout: 240 seconds)]
<srhb> Isorkin: I think you're more likely to get proper help if you paste some fuller logs along with your configuration.
<Isorkin> config mysql service http://pastebin.ru/CrPip9BO
pxc has quit [(Ping timeout: 240 seconds)]
<Isorkin> need this pr - 33176
Piece_Maker has joined #nixos
Acou_Bass has quit [(Ping timeout: 256 seconds)]
Piece_Maker is now known as Acou_Bass
Fannar has joined #nixos
Fannar has quit [(Client Quit)]
randomstrangerb has quit [(Ping timeout: 248 seconds)]
Fannar has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
randomstrangerb has joined #nixos
<srhb> Isorkin: I think the shell script might need to be patched.
rauno has joined #nixos
<Isorkin> srhb: but how to fix it?
<srhb> Isorkin: I'm not sure. I'd start by trying to get it to run by hand at least.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #33314: gnome_mplayer: 1.0.4 → 1.0.9 (master...gnome-mplayer) https://git.io/vbpWX
NixOS_GitHub has left #nixos []
Fannar has quit [(Client Quit)]
<Isorkin> srhb: http://pastebin.ru/ubgiQmnE varian 1 - not work, variant 2 - work. Running - sudo sh mysq.sh
orivej has quit [(Ping timeout: 268 seconds)]
jb55 has quit [(Ping timeout: 248 seconds)]
<Isorkin> variant 1 running as in mysql.service
<srhb> Isorkin: I'm wondering if the problem is that that paths you're adding aren't {pkgs.whatever}/bin ?
periklis has joined #nixos
<srhb> No, I guess not...
<Isorkin> srhb: mysqld can not find and execute wsrep_sst_rsync
Fannar has joined #nixos
Fannar has quit [(Client Quit)]
<srhb> Which implies that mariadb is not in PATH..
<srhb> But you added it, so I don't know.
Fannar has joined #nixos
<rauno> ok seems i got it working without network, needed to add sudo to package list...
otherjrolfs has joined #nixos
<Fannar> Oh my sasl
<Fannar> Sorry to be such a sashole with all the joining and leaving
otherjrolfs has quit [(Ping timeout: 240 seconds)]
<Isorkin> srhb: added to systemd.services.mysql.path "/run/current-system/sw" - worked
ma27 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 opened pull request #33315: nixos/borgbackup: add test (master...borgbackup) https://git.io/vbplm
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vbplO
<NixOS_GitHub> nixpkgs/master 904ac31 Bart Brouns: borgbackup: 1.1.3 -> 1.1.4
<NixOS_GitHub> nixpkgs/master 6f62ca9 Jörg Thalheim: Merge pull request #33309 from magnetophon/borg...
NixOS_GitHub has left #nixos []
<srhb> Isorkin: That seems bizarre. Does mariadb not have that very same path?
<Isorkin> my added mariadb in system - environment.systemPackages = with pkgs; [ pkgs.mariadb pkgs.mariadb.client ];
<srhb> I would get the systemd service to echo its PATH and try to debug it from there.
aarvar has joined #nixos
Arcaelyx has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
freusque has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vbp8l
<NixOS_GitHub> nixpkgs/master 341583b Léo Gaspard: fcron module: be compatible with non-wrapped sendmail's, like opensmtpd's
<NixOS_GitHub> nixpkgs/master 54b16bc Jörg Thalheim: Merge pull request #33227 from Ekleog/fcron-opensmtpd...
NixOS_GitHub has left #nixos []
ixxie has joined #nixos
otherjrolfs has joined #nixos
hamishmack has quit [(Read error: Connection reset by peer)]
sirkha_ has quit [(Remote host closed the connection)]
hamishmack has joined #nixos
Fannar has quit [(Quit: leaving)]
sirkha_ has joined #nixos
asuryawanshi has joined #nixos
otherjrolfs has quit [(Ping timeout: 265 seconds)]
ssmike has quit [(Ping timeout: 268 seconds)]
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
mgttlinger has joined #nixos
ssmike has joined #nixos
dan_b has joined #nixos
randomstrangerb has quit [(Ping timeout: 264 seconds)]
<dhess> nix-repl, I love you.
randomstrangerb has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
<LnL> dhess: did that guy create an issue for the installer?
FRidh has joined #nixos
goibhniu has joined #nixos
asuryawanshi has joined #nixos
ssmike has quit [(Remote host closed the connection)]
<dhess> LnL: If so, he didn't mention it here.
<dhess> he/she
ssmike has joined #nixos
<LnL> hopefully he did or asks again, I'm usually asleep at 4am :p
<dhess> hehe
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vbpBg
<NixOS_GitHub> nixpkgs/master aaa7952 Frederik Rietdijk: python.pkgs.lark-parser: 2017-12-10 -> 2017-12-18
NixOS_GitHub has left #nixos []
randomstrangerb has quit [(Ping timeout: 252 seconds)]
randomstrangerb has joined #nixos
nh2 has joined #nixos
freusque has joined #nixos
ambro718 has joined #nixos
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
otherjrolfs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti closed pull request #33271: haskell: configuration-ghc-8.0.x.nix: keep inline-c at 0.5.6.1 (master...ghc802-inline-c) https://git.io/vbxak
NixOS_GitHub has left #nixos []
otherjrolfs has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vbpR4
<NixOS_GitHub> nixpkgs/master e3de7b0 Frederik Rietdijk: jsonnet: 0.9.4 -> 0.9.5
<NixOS_GitHub> nixpkgs/master a0be858 Frederik Rietdijk: python3.pkgs.jsonnet: enable Python 3 builds...
NixOS_GitHub has left #nixos []
<phdoerfler> is #nix related to #nixos?
<phdoerfler> just asking because it is rather unpopulated compared to #nixos
<hyper_ch> yes
__Sander__ has joined #nixos
Acou_Bass has quit [(Remote host closed the connection)]
jluttine has quit [(Ping timeout: 252 seconds)]
thc202 has joined #nixos
pukkamustard has joined #nixos
Acou_Bass has joined #nixos
verite has quit [(Ping timeout: 240 seconds)]
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vdemeester opened pull request #33316: gauge: init at 0.9.6 (master...init-gauge) https://git.io/vbp0x
NixOS_GitHub has left #nixos []
otherjrolfs has joined #nixos
klntsky_ is now known as klntsky
mbock has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ma27 opened pull request #33317: yabar-unstable: 2017-10-12 -> 2018-01-02 (master...update-yabar) https://git.io/vbpEq
NixOS_GitHub has left #nixos []
mbock is now known as rider123
otherjrolfs has quit [(Ping timeout: 240 seconds)]
<rider123> hi! how can I get the 'make' command available on my nixos system?
klntsky has quit [(Ping timeout: 272 seconds)]
<tilpner> E.g. nix-shell -p gnumake
<rider123> ok, thx
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #33318: Nodejs minor (master...nodejs-minor) https://git.io/vbpEi
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vdemeester opened pull request #33319: skopeo: 0.1.23 to 0.1.27 (master...update-skopeo) https://git.io/vbpE1
NixOS_GitHub has left #nixos []
pjan_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
i-am-the-slime has joined #nixos
freusque has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vdemeester opened pull request #33320: delve: 0.12.1 -> 0.12.2 (master...update-delve) https://git.io/vbpum
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zimbatm closed pull request #33293: ruby: init at 2.5.0 (master...feature/ruby-2.5.0) https://git.io/vbxbS
NixOS_GitHub has left #nixos []
i-am-the-slime has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vdemeester opened pull request #33322: vndr: 20170511-0cb33a0 -> 20171005-b57c579 (master...update-vndr) https://git.io/vbpug
NixOS_GitHub has left #nixos []
otherjrolfs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 1 new commit to master: https://git.io/vbpuo
<NixOS_GitHub> nixpkgs/master 2e00e2b adisbladis: taglib: Fix CVE-2017-12678
NixOS_GitHub has left #nixos []
coot_ has joined #nixos
i-am-the-slime has joined #nixos
otherjrolfs has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vdemeester opened pull request #33323: godef: 20160620-ee532b9 -> 20170920-b692db1 (master...update-godef) https://git.io/vbpuH
NixOS_GitHub has left #nixos []
ma27 has quit [(Ping timeout: 255 seconds)]
<Isorkin> srhb: need add pkgs.bash - worked
freusque has joined #nixos
klntsky has joined #nixos
rider123 has quit [(Remote host closed the connection)]
MP2E has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #33324: Imagemagick (master...imagemagick) https://git.io/vbpzW
NixOS_GitHub has left #nixos []
freusque has quit [(Quit: WeeChat 1.9.1)]
<i-am-the-slime> How do I install an older version of a package that I installed via nix-env -i?
thaega` has joined #nixos
<srhb> i-am-the-slime: point nix-env at a nixpkgs repo that has the commit you want with -f path/to/nixpkgs and install it again
<i-am-the-slime> Oh okay, so I would first have to find such a repo.
<rauno> is it possible to recover lost root pw after installation ?
phreedom has joined #nixos
thaega has quit [(Read error: Connection reset by peer)]
<srhb> rauno: No.
<goibhniu> i-am-the-slime: if it was changed recently, you can probably also install the binary via hydra
<i-am-the-slime> hmm
mr_sm1th__ has joined #nixos
<TonyTheLion> does anyone know why if you set 'src = ./.' and you try to build it, it won't copy the src dir into the tmp building directory?
<goibhniu> (or if there is a different version in another channel etc)
mr_sm1th has quit [(Ping timeout: 272 seconds)]
<i-am-the-slime> I mean, I don't want the old version, the current one just fails to start for me.
<i-am-the-slime> And I wondered if there was a way to get the older one back, if it has not been garbage collected yet.
otherjrolfs has joined #nixos
<goibhniu> ah, you can also install a version directly from your store `nix-env -i /nix/store/blahblah`
<adisbladis> i-am-the-slime: You could try to start it directly from the store path. May I ask what package it is?
<i-am-the-slime> It's hipchat
<i-am-the-slime> I think the name is hipchat4
<i-am-the-slime> Honestly, I'm not even sure if an update broke it.
ma27 has joined #nixos
Itkovian has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #33322: vndr: 20170511-0cb33a0 -> 20171005-b57c579 (master...update-vndr) https://git.io/vbpug
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vbpz5
<NixOS_GitHub> nixpkgs/master 114cb09 Vincent Demeester: vndr: 20170511-0cb33a0 -> 20171005-b57c579...
<NixOS_GitHub> nixpkgs/master d17d945 adisbladis: Merge pull request #33322 from vdemeester/update-vndr...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #33323: godef: 20160620-ee532b9 -> 20170920-b692db1 (master...update-godef) https://git.io/vbpuH
NixOS_GitHub has left #nixos []
otherjrolfs has quit [(Ping timeout: 240 seconds)]
hamishmack has quit [(Quit: hamishmack)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vbpgv
<NixOS_GitHub> nixpkgs/master dd2d96c Vincent Demeester: delve: 0.12.1 -> 0.12.2...
<NixOS_GitHub> nixpkgs/master 3804ca5 adisbladis: Merge pull request #33320 from vdemeester/update-delve...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vdemeester opened pull request #33325: goconvey: init at 1.6.3 (master...init-goconvey) https://git.io/vbpgC
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #33326: delve: Build on darwin (master...delve-darwin) https://git.io/vbpgi
NixOS_GitHub has left #nixos []
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ambro718 has quit [(Quit: Konversation terminated!)]
Itkovian has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 1 new commit to master: https://git.io/vbp2U
<NixOS_GitHub> nixpkgs/master d7ab19d adisbladis: delve: Build on darwin
NixOS_GitHub has left #nixos []
<tilpner> TonyTheLion - Because ./. is referring to the directory the Nix file is located in, not a src directory (that might be ./src)
<TonyTheLion> so therefore it won't copy it?
<TonyTheLion> my .nix file is in the project dir, which is required for compilation
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra closed pull request #1766: Do not export ASPELL_CONF (master...aspell) https://git.io/vbb92
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 2 new commits to master: https://git.io/vbp23
<NixOS_GitHub> nix/master ab8ba71 Frederik Rietdijk: Do not export ASPELL_CONF...
<NixOS_GitHub> nix/master 099ba37 Eelco Dolstra: Merge pull request #1766 from FRidh/aspell...
NixOS_GitHub has left #nixos []
<tilpner> Oh, that's what you mean. Try src = "${./.}";
<TonyTheLion> I'll try that
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra closed pull request #1768: use libbrotli directly when available (master...feature/brotli) https://git.io/vbN0w
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 2 new commits to master: https://git.io/vbp2o
<NixOS_GitHub> nix/master 5afee18 Will Dietz: run.sh: include lib64 in sandbox-paths to fix on ubuntu 16.XX...
<NixOS_GitHub> nix/master f68c2b5 Eelco Dolstra: Merge pull request #1770 from dtzWill/fix/run-test-sandbox-ubuntu...
NixOS_GitHub has left #nixos []
<TonyTheLion> tilpner: thanks for the suggestion, but it seems to make no difference :(
phreedom has quit [(Remote host closed the connection)]
<tilpner> How are you checking if it makes a difference?
<TonyTheLion> nix-build
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #33319: skopeo: 0.1.23 to 0.1.27 (master...update-skopeo) https://git.io/vbpE1
NixOS_GitHub has left #nixos []
<tilpner> And then what?
<tilpner> Maybe paste a small example and shell output?
<tilpner> (To gist.github.com)
<makefu> this is what i am using: HISTFILE=${builtins.toString ./.}/histfile
<makefu> maybe you can use something similar
otherjrolfs has joined #nixos
<tilpner> makefu - That's something else. toString is used here to not copy it to the store, while TonyTheLion wants the opposite
<makefu> ah okay
<TonyTheLion> hmmm
<makefu> then the removal of the tostring should be enough
<TonyTheLion> here's the original problem
<tilpner> makefu - Which is already "${./.}"
<makefu> yep
phreedom has joined #nixos
<TonyTheLion> I was creating a .tar.gz of my repo and then untarring into the tmp build directory nix creates when it builds something
<TonyTheLion> I want to not have to do that
<tilpner> Okay, we need your Nix file
<TonyTheLion> so someone here suggested setting src to ./.
<tilpner> Were you manually creating that .tar.gz?
<TonyTheLion> ye
<TonyTheLion> cause using fetchgit to get it from github directly also doesn't seem to work :/
<tilpner> That should work too. Maybe your problem is not with the fetching?
avalan is now known as dweller
<TonyTheLion> tilpner: even if the .nix file is in the repo directory?
<TonyTheLion> cause that seems to create a circular dependency, having to update the hash every time you make change, and then updating the hash cause you made a change to the hash :P
<TonyTheLion> someone said here its really only meant for fixed versions, not continuous development
<TonyTheLion> which makes sense from that perspective
otherjrolfs has quit [(Ping timeout: 240 seconds)]
<tilpner> No, that's not sane. You can either fetch from GH, then use the .nix in the repo to build your project, or you can use a local .nix to build the sources you got from GH, while ignoring the in-repo .nix
<tilpner> And yes, you don't want to use fetchFromGitHub while developing the thing you're fetching
pjan_ has joined #nixos
periklis has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #33325: goconvey: init at 1.6.3 (master...init-goconvey) https://git.io/vbpgC
NixOS_GitHub has left #nixos []
<globin> hyper_ch: pong
pjan_ has quit [(Client Quit)]
<TonyTheLion> so but using the src = ./. doesn't do what I think it does then?
<hyper_ch> globin: you marked some torch module as not buildable.... will that be fixed?
<TonyTheLion> ie, copy the source dir to the build dir and then build it
<TonyTheLion> like I did with my tar.gz file
<globin> hyper_ch: not by me, that was just a few days before the release whre I marked the stuff that didn't build and nobody had fixed as broken
<hyper_ch> globin: I thought you submitted the page to mark it as broken... thta's why I highlighted you
pjan_ has joined #nixos
<tilpner> TonyTheLion - Wrong, it should copy ./. to $src, which is then copied to the build directory
<tilpner> TonyTheLion - Try with { stdenv }: stdenv.mkDerivation { name = "foo"; src = ./.; buildPhase = "echo $src"; }
<globin> hyper_ch: have you got a commit or something I could look at?
<tilpner> TonyTheLion - That prints a store path, where ./. has been copied to
<hyper_ch> no, wanted to install it :)
<globin> hyper_ch: but generally when I mark stuff as broken it was broken before and nobody had fixed it
<TonyTheLion> tilpner: let me try that
<hyper_ch> globin: ok
goibhniu has quit [(Remote host closed the connection)]
goibhniu has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #33317: yabar-unstable: 2017-10-12 -> 2018-01-02 (master...update-yabar) https://git.io/vbpEq
NixOS_GitHub has left #nixos []
<globin> hyper_ch: which package specifically
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<hyper_ch> some funny name... luaffs or something
<hyper_ch> globin: this was it: luaffifb
<globin> hyper_ch: you should ping Sergey Mironov, don't know his nick on IRC or github
<hyper_ch> ok, thank you
<globin> hyper_ch: git blame shows he's the only one who touched that before marking it as broken
Boomerang has joined #nixos
<TonyTheLion> tilpner: > unpacking source archive /nix/store/xws1fr41v19rva70rif51xps4513vs1n-test
<TonyTheLion> this?
<globin> hyper_ch: grwlf on github
<tilpner> TonyTheLion - No, the output of buildPhase is below that, after "building"
zzamboni has joined #nixos
<TonyTheLion> > /nix/store/xws1fr41v19rva70rif51xps4513vs1n-test
<tilpner> Yes, this shows that ./. has been copied into the store. If you inspect that path, you will find a copy of whatever was in ./. at build-time
<Boomerang> Is this a good IRC channel to ask about hydra issues? :)
akfp has quit [(Ping timeout: 252 seconds)]
<TonyTheLion> tilpner: I see
<TonyTheLion> but why is that different to the 'building path(s)' that it shows at the top of the output?
otherjrolfs has joined #nixos
<TonyTheLion> so I created a directory called 'test', and the derivation is named 'foo'
sigmundv has joined #nixos
<MoreTea> TonyTheLion: files are imported as store paths, and building software results in store paths
<TonyTheLion> the building path(s) has -foo and the place where it builds is -test
pjan_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<tilpner> TonyTheLion - I don't know, I don't see "building path(s)" in my output
<aminechikhaoui> Boomerang: yeah I think so
<Isorkin> how to logging running apps in mysql.service
raynold has quit [(Quit: Connection closed for inactivity)]
<TonyTheLion> > these derivations will be built: /nix/store/8lp3b8s0n067awdpayzknnmf7ykyaik1-foo.drv
<TonyTheLion> > these derivations will be built: /nix/store/8lp3b8s0n067awdpayzknnmf7ykyaik1-foo.drv building path(s) ‘/nix/store/f6bbfyzjp44p5l1kjjj8c8vmnzgcvfhh-foo’
<TonyTheLion> > building path(s) ‘/nix/store/f6bbfyzjp44p5l1kjjj8c8vmnzgcvfhh-foo’
<TonyTheLion> > unpacking sources
<TonyTheLion> ...
<Boomerang> Hydra fails to build something because it runs out of disc space. The machine that it is scheduled to build on has plenty of space. I have managed to manually build the nix closure onto that very same machine. It does require a lot of disk space (>30GB). I assumed that Hydra would simply pick up that it's already built, but it doesn't seem to be the case. Any pointers to fix this? :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edolstra pushed 1 new commit to master: https://git.io/vbpVj
<NixOS_GitHub> nixpkgs/master e4beb97 Eelco Dolstra: brotli: Use multiple outputs
NixOS_GitHub has left #nixos []
<aminechikhaoui> Boomerang: is the disk space issue in the hydra frontend or in the builder machine ?
<tilpner> TonyTheLion - The derivation builds the /nix/store/*-foo path. The "foo" comes from the name we supplied, while the /nix/store/*-test path comes from the directory you imported with "src = ./.;"
<TonyTheLion> ah I see
<Boomerang> I assumed it was the builder machine. Does the frontend actually need the nix closures?
<aminechikhaoui> Boomerang: yeah everything goes through the frontend, as that's the one serving the store
<aminechikhaoui> so after the build the closure is copied to the frontend and if there is no disk space available it might be the issue
<Boomerang> I see, would nix-copy-closure to the frontend machine work?
<aminechikhaoui> Boomerang: would be good to let the hydra-queue-runner take care of that, so maybe check first what the disk space situation ?
otherjrolfs has quit [(Ping timeout: 248 seconds)]
<aminechikhaoui> `df -h` in the frontend for example
<Boomerang> I'll have a look at the frontend machine.
pjan_ has joined #nixos
ma27 has quit [(Ping timeout: 255 seconds)]
otherjrolfs has joined #nixos
<Boomerang> aminechikhaoui: Sorry it took me a while to get the frontend machine. There should be enough space: `/dev/disk/by-label/nixos 872G 706G 132G 85% /` or is hydra using on the tmpfs partitions?
thaega` is now known as thaega
pukkamustard has quit [(Ping timeout: 240 seconds)]
<aminechikhaoui> Boomerang: no but depends on the closure size being copied I guess
<aminechikhaoui> do you have anything in the hydra-queue-runner journal
<aminechikhaoui> confirming the disk space issue ?
zzamboni has quit [(Quit: Leaving.)]
<Boomerang> Where can I find the logs from hydra-queue-runner?
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
patrl has joined #nixos
otherjrolfs has quit [(Ping timeout: 272 seconds)]
zzamboni has joined #nixos
ma27 has joined #nixos
jluttine has joined #nixos
<samae> Hey, I'm writing a few functions to generate SSL certificates from a list of machine names (https://gist.github.com/MartinPotier/0f052de6686cc124cf77d62849a36aa4)
<samae> My problem is that I don't get a derivation out of it
<samae> specifically with mkCertFromList
<samae> Hopefully it's something stupid i've overlooked
patrl has quit [(Quit: WeeChat 1.9.1)]
<Orbstheorem> Hi, I'm tinkering with my udev configuration (configuration.nix). Does udev rules get reloaded after running nixos-rebuild switch?
jluttine has quit [(Ping timeout: 252 seconds)]
<samae> Orbstheorem: yep, as far as I know
<samae> they do even after test iirc
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/54b16bcd118 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<Orbstheorem> I can't get my script to trigger, here's the part I changed on my configuration.nix: https://paste.gnugen.ch/raw/rhG0 and this is the cmdline I use to test it: `sudo ip l add atest2 type veth peer name atest2p`
<Orbstheorem> I see the events from the kernel using `udevadm monitor -p`, but not the udev ones :(
pjan_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
pjan_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dhess opened pull request #33327: ghc: fix armv7l-linux support in new binary versions. (master...armv7l-ghc-fix) https://git.io/vbpob
NixOS_GitHub has left #nixos []
<phdoerfler> easy as in I bet a lot of people have had that question so there's probably some tool for doing that that I haven't found yet
<makefu> phdoerfler: is the tool residing inside the dovecot package or is it a separate package?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 1 new commit to master: https://git.io/vbpKt
<NixOS_GitHub> nixpkgs/master 81581ba Peter Simons: hackage-packages.nix: automatic Haskell package set update...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 2 new commits to master: https://git.io/vbpKG
<NixOS_GitHub> nixpkgs/master 9c91d0d Drew Hess: ghc: fix armv7l-linux support in new binary versions.
<NixOS_GitHub> nixpkgs/master 6ad2c20 Peter Simons: Merge pull request #33327 from dhess/armv7l-ghc-fix...
NixOS_GitHub has left #nixos []
<phdoerfler> makefu: It came with dovecot, as in: environment.systemPackages = with pkgs; [ dovecot …
<phdoerfler> there was no additional dovecot-maildirlock package that I installed if that's what you mean
<aminechikhaoui> Boomerang: journalctl -u hydra-queue-runner if you're using the nixos module from hydra upstream
iyzsong has joined #nixos
<makefu> okay, then you can just check with `whereis dovecot` and take the path it yields
<phdoerfler> I was hoping there was some nix-aware tool that resolves all these symlinks for me
dan_b has quit [(Ping timeout: 248 seconds)]
<makefu> you can use nix-index to find the package which finds a file for you
simukis has joined #nixos
<makefu> nix-index;nix-locate -w maildirlock
<phdoerfler> makefu: using whereis dovecot gives me /nix/store/li2fnkz553cfyyixrba1p7z1pvp1wqdr-system-path/bin/dovecot but that bin directory only contains all binaries in PATH it seems
<phdoerfler> and that does not contain maildirlock
<makefu> oh yes, it seems that this is still a symlink
asuryawanshi has quit [(Remote host closed the connection)]
<makefu> "normally" you would not use these tools manually but create services where you can just use "pkgs.dovecot"
asuryawanshi has joined #nixos
<samae> readlink -f $(which dovecot) ?
<makefu> as this is nix configuration
goibhniu has quit [(Ping timeout: 250 seconds)]
<phdoerfler> what is the command that tells me what package I have to install for a certain binary again? Asking because I don't have nix-locate
<phdoerfler> somehow the bash mechanism that should do that, doesn't do that all the time
<lassulus> command-not-found ?
<phdoerfler> It's something something command-not-found nix-locate and it uses some index made by hydra to tell me the package, IIRC
zzamboni has quit [(Quit: Leaving.)]
<phdoerfler> lassulus: that just tells me "command not found: nix-locate"
<samae> nix-index
<samae> (install it, run it once, and then you can use nix-locate)è
<phdoerfler> nix-index: command not found :p
<phdoerfler> ok got it
<samae> nix-shell -p nix-index
<samae> if you are lazy, like me
<makefu> yes nix-shell -p nix-index
<phdoerfler> It's doing its thing
<makefu> but this is essentially a bootstrapping problem now :D there is also https://nixos.org/nixos/packages.html
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
<phdoerfler> is it? I got command-not-found installed so why does it not tell me what to install?
<phdoerfler> I believe it did a few minutes ago
<phdoerfler> I like that maintainer's name
<phdoerfler> Benno Fünfstück
<phdoerfler> that's just great
<Boomerang> Thanks aminechikhaoui, the journal doesn't much more information though :/ http://lpaste.net/361263 http://lpaste.net/361262
otherjrolfs has joined #nixos
<aminechikhaoui> Boomerang: oh ok so that happened in the build machine
randomstrangerb has quit [(Ping timeout: 255 seconds)]
randomstrangerb has joined #nixos
<Boomerang> But the build machine should already have it built. Or am I missunderstanding how a hydra job is being executed?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dhess opened pull request #33328: ghc: add ARM variants to meta.platforms for new binary versions. (master...ghc-arm-platforms) https://git.io/vbp6B
NixOS_GitHub has left #nixos []
<dhess> whoo hoo! ghc822 is building on armv7l-linux!
JosW has quit [(Quit: Konversation terminated!)]
<aminechikhaoui> yeah if the path `/nix/store/lz9j9pcsx2kkyfshdhmkm561qzvn98l7-quartus-pro` us already valid it should not build it again
otherjrolfs has quit [(Ping timeout: 240 seconds)]
proteus-guy has joined #nixos
<Boomerang> Yeah that path is valid and I have done nix-copy-closure to all the potential machine that could get the job from hydra
<Boomerang> Could it have anything to do with multi-user nix? Where another user somehow doesn't see the build?
pukkamustard has joined #nixos
<samae> How can I force a derivation realisation inside a nix program?
<aminechikhaoui> Boomerang: this line in the queue runner logs is a bit weird though `Jan 02 10:44:15 hydra hydra-queue-runner[27256]: killing process 15986`
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti closed pull request #33328: ghc: add ARM variants to meta.platforms for new binary versions. (master...ghc-arm-platforms) https://git.io/vbp6B
NixOS_GitHub has left #nixos []
gm152 has joined #nixos
<aminechikhaoui> Boomerang: do you get that every time you restart ?
<rnhmjoj[m]> can someone finish reviewing https://github.com/NixOS/nixpkgs/pull/33074?
<Boomerang> Yeah everytime. We've updated to a more recent version of nixpkgs recently and had to rebuild this quartus derivation. I think this derivation has always been an issue to build with hydra but it used to be enough to copy it manually to all the machines. Many I am not copying it properly. Is nix-copy-closure doing a deep copy of all the dependencies?
<mekeor> does anyone have the nixos-image for aarch64 (sd-image-aarch64-linux.img)? the official location at https://www.cs.helsinki.fi/u/tmtynkky/nixos-arm/installer/ is down.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to master: https://git.io/vbpiL
<NixOS_GitHub> nixpkgs/master 25b7008 Michele Guerini Rocco: qutebrowser: make gstreamer and pdfjs configurable (#33074)...
NixOS_GitHub has left #nixos []
<rnhmjoj[m]> grahamc: thank you
<gchristensen> rnhmjoj[m]: you're welcome :)
zzamboni has joined #nixos
randomstrangerb has quit [(Ping timeout: 248 seconds)]
jluttine has joined #nixos
randomstrangerb has joined #nixos
<aminechikhaoui> Boomerang: yeah but I was actually asking about the "killing process X" log entry
<aminechikhaoui> is that reproducable in every restart of that build
<Boomerang> Oh right, yes it seems that "killing process ..." and "marking build ..." happens every time with this build
otherjrolfs has joined #nixos
<sphalerite> samae: I don't think you can
<aminechikhaoui> Boomerang: ok that might be related to the issue you're having, are running hydra from tip btw ?
<sphalerite> samae: they'll be realised as needed by nix-store -r, and evaluation will just fail in evaluation-only mode if you have an IFD with a derivation that hasn't already been realised
<phdoerfler> makefu, I ended up using $(dirname $(dirname $(readlink -f $(which dovecot))))/libexec/dovecot/maildirlock but it's not ideal, really
<phdoerfler> makefu: Ultimately I want to make a little bash script to call maildirlock before rsnapshot does a backup, so this needs to be something that can be scripted
<makefu> phdoerfler: then the best way is to template it in nix
<phdoerfler> makefu: My nix-foo is very limited
coot_ has quit [(Quit: coot_)]
<makefu> pkgs.writeScript "my-script" '' ${pkgs.dovecot}/libexec/dovecot/maildirlock''
<phdoerfler> ok so far I am not intimidated
coot_ has joined #nixos
otherjrolfs has quit [(Ping timeout: 240 seconds)]
<makefu> easy, right :D
<phdoerfler> so I make a .nix containing { pkgs.writeScript … } and include that within my /etc/nixos/configuration.nix?
<phdoerfler> something like that?
<Boomerang> aminechikhaoui: It looks like we're running a version of hydra with a few custom fixes unfortunately. Maybe it's related. https://github.com/TMVector/hydra/tree/fixes-and-features
<phdoerfler> I was hoping there is a "show give me the /nix/store path where nixos.dovecot got installed to"
<makefu> phdoerfler: you do not even need this, 1 sec i prepare something
<aminechikhaoui> Boomerang: actually might be happening due to this
<aminechikhaoui> void SubstitutionGoal::timedOut()
<aminechikhaoui> {
<aminechikhaoui> if (settings.printBuildTrace)
<aminechikhaoui> printMsg(lvlError, format("@ substituter-failed %1% timeout") % storePath);
<aminechikhaoui> if (pid != -1) {
<aminechikhaoui> pid_t savedPid = pid;
<aminechikhaoui> pid.kill();
<aminechikhaoui> worker.childTerminated(savedPid);
aminechikhaoui was kicked from #nixos by gchristensen [(aminechikhaoui)]
coot_ has quit [(Quit: coot_)]
aminechikhaoui has joined #nixos
<dhess> ugh, I canceled a jobset on my Hydra and now it won't restart/re-evaluate it :(
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus opened pull request #33329: docker: 17.{09,11} -> 17.12 (master...docker_17_12) https://git.io/vbpPZ
NixOS_GitHub has left #nixos []
dan_b has joined #nixos
otherjrolfs has joined #nixos
<makefu> phdoerfler: environment.systemPackages = [ (pkgs.writeScriptBin "maildirlock" '' ${pkgs.dovecot}/libexec/dovecot/maildirlock '') ];
<makefu> maybe add $@ at the end for vars
<makefu> parameters*
<makefu> i am pretty sure there are different ways to do this, like updating the dovecot expression to symlink maildirlock from libexec to bin/
<phdoerfler> makefu: thanks, I'll use this and go down the nix rabbit hole!
willprice has joined #nixos
otherjrolfs has quit [(Ping timeout: 268 seconds)]
<makefu> once you get used to it a whole new world of configuration management will be open to you
goibhniu has joined #nixos
bkchr has joined #nixos
<phdoerfler> makefu: so if I read this right this makes a script called "maildirlock" that calls the maildirlock provided by pkgs.dovecot?
<FRidh> I get error: cannot connect to daemon at ‘/nix/var/nix/daemon-socket/socket’: Connection refused when the daemon is started through systemctl. When I run nix-daemon as root, nix operations work fine. Any suggestions for debugging this? Permission on the socket file is the same.
bennofs has joined #nixos
bennofs has quit [(Client Quit)]
bennofs has joined #nixos
<aminechikhaoui> FRidh: isn't the daemon socket activated ? maybe check `systemctl status nix-daemon.socket`
otherjrolfs has joined #nixos
<makefu> phdoerfler: yes, correctly. scriptBinDir creates $out/bin and puts the scriptname into that folder. then this generated derivation will be added to the systemPackages (where everything from the packages/bin folder will be made available in the $path)
gm152 has quit [(Quit: Lost terminal)]
otherjrolfs has quit [(Ping timeout: 256 seconds)]
<phdoerfler> makefu: so I can just use ${pkgs.dovecot} in a .nix file that makes the bash script that is then called by rsnapshot before and after the backup?
<phdoerfler> makefu: That way I don't have to put that little tool into PATH by doing this trick with scriptBinDir, right?
<makefu> yes exactly
<makefu> that would be even more nixonic
<makefu> (not sure if this word exist yet)
<gchristensen> "nixonic" I like that
<phdoerfler> I shall do that then
<phdoerfler> thanks!
<makefu> no problem :)
<phdoerfler> does nix have a mechanism for storing PID files and finding them again?
<phdoerfler> or do I rely on traditional unix hackery to do so?
<gchristensen> phdoerfler: NixOS uses systemd for that work
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] karolchmist opened pull request #33330: dotty: wrap to prevent installing all the files in profile (master...fix-dotty-lib-folder-public) https://git.io/vbp1F
NixOS_GitHub has left #nixos []
<phdoerfler> gchristensen: ah thanks!
randomstrangerb has quit [(Ping timeout: 260 seconds)]
knupfer has joined #nixos
randomstrangerb has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #33305: zeromq: 4.2.2 -> 4.2.3 (master...zmq-4_2_3) https://git.io/vbpUa
NixOS_GitHub has left #nixos []
<samae> sphalerite: hmm ok
asuryawanshi has quit [(Ping timeout: 260 seconds)]
deltasquared has joined #nixos
<hyper_ch> sphalerite: trying again with wireguard to route everything through it
<hyper_ch> probably I should also deacrtive ipv6 while testing wg on ipv4
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vbpM2
<NixOS_GitHub> nixpkgs/master 52cdee8 Vincent Demeester: gauge: init at 0.9.6...
<NixOS_GitHub> nixpkgs/master 57a67a4 Jörg Thalheim: Merge pull request #33316 from vdemeester/init-gauge...
NixOS_GitHub has left #nixos []
stepcut has joined #nixos
<sphalerite> networking.wireguard.interfaces.<name>.peers.*.allowedIPs looks like the relevant setting?
pjan_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<hyper_ch> I know
<hyper_ch> root
pjan_ has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
<deltasquared> day x^n of me trying to get something nix-like out of a traditional distro... programs just can't seem to leave /etc the fsck alone. found systemd shipping tmpfiles configuration which clobbers files in /etc at every boot, including mtab... which wasn't interacting so well with /etc being a symlink. oh vey.
<deltasquared> the more I try this the more I'm aware I should probably just try and use nix anyway, but..
<deltasquared> I seem to be destined to crash and burn on this road :/
<gchristensen> why are you trying to avoid actually using nix?
pjan_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<deltasquared> gchristensen: I had certain issues that it's purity to the bitter end would interfere with ways I administrate my own systems, a lot of home grown hacks
<deltasquared> I recall an interesting discussion about grub, for instance
otherjrolfs has joined #nixos
<gchristensen> oh?
pukkamustard has quit [(Ping timeout: 260 seconds)]
<deltasquared> something along the lines of I'd have to jump through hoops to make it not do anything, and then let me write my own boot config
<deltasquared> partly because of the amount of hacks I have for certain UEFI firmware issues... :/
<gchristensen> ah
Itkovian has joined #nixos
<deltasquared> there were others. I got the general vibe that nixos as a concept, though unintentionally, was going to indirectly impose "I know better than you" due to it's insistance on purity and the inability to subvert it and patch it when needed
<gchristensen> generally the approach we recommend is teach Nix about the hacks you need
<FRidh> aminechikhaoui: no socket is created
<deltasquared> gchristensen: hmm.
<gchristensen> it isn't about pretending the world is flawless, it is about having your config generate the config you need, hacks and warts and all
pukkamustard has joined #nixos
i-am-the-slime has quit [(Ping timeout: 248 seconds)]
<aristid> it does sometimes nudge you toward making the world more flawless though ;-)
<deltasquared> gchristensen: the other concern was that of being stuck on a "minority distro" of sorts (implying arch isn't anyway, heh), so part of the experiment was to see if I could get the binaries and packaging out of a distro but keep the nix idea of declarative /etc generation, for instance.
<orbekk> if anyone has some time to review a pull request: https://github.com/NixOS/nixpkgs/pull/31872
<gchristensen> deltasquared: gotcha
<deltasquared> however, it's turning out to break all kinds of assumptions I did'n even know were there
<deltasquared> and I have to admit, the hacks keep piling up
<gchristensen> deltasquared: and consider that you're now on a minority-distro-of-one-user with what you've made :)
<deltasquared> that *had* crossed my mind.
pkill9 has joined #nixos
<deltasquared> (if it came down to it I'd probably spin up VMs to deal with finnicky "mainstream" applications, which kinda defeats the exercise...)
<bennofs> perhaps you could use standard arch config for /etc but try to move as much as possible to non-privileged daemons running as your user
<gchristensen> Nix works the way it does for reasons that may be frustrating, but those same reasons are what makes it so reliable
<aristid> deltasquared: nixpkgs has a built-in mechanism to make a normal-linux-looking container out of stubborn (mostly commercial) applications like steam
<gchristensen> also, Nix's community is growing fast, we've doubled in the last two years (its a ~15yr old project)
<aristid> so you probably can avoid using VMs
<deltasquared> bennofs: a lot of it affects the behaviour of stuff that must be privileged. think the systemd stuff for instance
* deltasquared counts his systemd units
mizu_no_oto has joined #nixos
<deltasquared> erm... *regexing noises*
<deltasquared> 93 o.o
<deltasquared> a lot of mount units, so probably shovable in /etc/fstab if need be
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vbpyG
<NixOS_GitHub> nixpkgs/master 8d96d0f adisbladis: openexr: 2.2.0 -> 2.2.1
<NixOS_GitHub> nixpkgs/master 9057682 Jörg Thalheim: Merge pull request #33301 from adisbladis/openexr-2_2_1...
NixOS_GitHub has left #nixos []
<deltasquared> say, any of you lot come up with something to just glue a bunch of fstab fragments from various places? would help grouping up stuff I have
<deltasquared> 44 units dafaq
<bennofs> deltasquared: but perhaps some of those can be moved into systemd user services? or do you really need 93 system services? :o
<deltasquared> 49 services, actually. and... not sure
<gchristensen> deltasquared: what kind of uefi hacks do you have?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to release-17.09: https://git.io/vbpyn
<NixOS_GitHub> nixpkgs/release-17.09 aba3425 adisbladis: openexr: 2.2.0 -> 2.2.1...
NixOS_GitHub has left #nixos []
<deltasquared> gchristensen: let's see, I have to pretend systemd-boot is the windows bootloader, else my firmware overwrites the entry with defaults
otherjrolfs has quit [(Ping timeout: 272 seconds)]
<deltasquared> "helpfully" recovering the windows boot entry... except I don't have that on here right now :/
<deltasquared> generally speaking, if anything so much as sneezes at the UEFI table I have to make sure the card pile is stacked correctly still.
<deltasquared> so, anything trying to touch that, or the placement of the UEFI executable in /boot, is out of the question
<FRidh> nix-daemon service and socket are running...yet no socket file exists
<deltasquared> bennofs: I'm just gonna count how many I actually need here, you raise a good point
<deltasquared> so, some just plain need root. a powertop tuning script that pokes /sys, for instance.
<aminechikhaoui> FRidh: oh weird so both status of nix-daemon and nix-daemon.socket are active but yet no socket file ?
<FRidh> aminechikhaoui: yep
<deltasquared> some are blanking entries for services I don't like to be spun up automatically. avahi-daemon is one.
asuryawanshi has joined #nixos
<FRidh> would be nice if it would log why socket is not created
<deltasquared> bennofs: right away, those blanking entries I could benefit from being generated from a plain text file of units to mask, for instance.
<aminechikhaoui> FRidh: is it showing `Listen: /nix/var/nix/daemon-socket/socket (Stream)`
<bennofs> deltasquared: just run for i in unit; do systemctl mask $i; done ?
<FRidh> aminechikhaoui: yes
<deltasquared> bennofs: sure, but the point of a generative /etc was that the files I actually looked at were less cluttered than the resulting /etc/systemd/system directory.
<aminechikhaoui> FRidh: ok that's a pretty weird issue, no idea :/
<deltasquared> in turn helping me to separate out the ones I could keep common between other machines I have
<deltasquared> all this chicanery originated from me trying to better manage my system's configuration.
<gchristensen> deltasquared: maybe you can tell Nix not to touch your uefi at all and only put mount a boot partition in place uefi config files
<deltasquared> gchristensen: my idea had just to not mount it in the usual place at all and cheat a bit, and copy the UEFI binaries (and probably the kernel) manually as needed
<deltasquared> as for initramfs generation... hadn't gotten that far.
<willprice> I'm looking at adding a new nixos-hardware configuration but I'd like to make some aspects of it configurable (e.g. only import the ssd configuration if the user species ssd etc) should I use options to achieve this? I can't see any other configuration that makes use of options
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<gchristensen> willprice: I think most of those configs are examples to look at and copy out and modify as needed
<samae> sphalerite: \o/ I've succeeded in doing what I want, it involved using less strings and more outputs
<FRidh> aminechikhaoui: did a reboot, socket is running, service not, socket *exists*, `nix-env` can now talk to the daemon, but it hangs when fetching anything. I've had this before...
<bennofs> FRidh: is this on nixos?
willprice has quit [(Remote host closed the connection)]
<aminechikhaoui> FRidh: the service won't be running initially but should get activated when nix-env is called
<FRidh> bennofs: no, centos
willprice has joined #nixos
willprice94 has joined #nixos
<aminechikhaoui> ah I though it's nixos :D
<aminechikhaoui> centos with systemd ?
<willprice> gchristensen, that's a shame as I really like the idea of importing a basic configuration for my laptop then specialising it somewhat based on my custom set up
Itkovian has joined #nixos
<FRidh> aminechikhaoui: indeed, it activated the service
<FRidh> aminechikhaoui: its centos 7.4 with systemd
<gchristensen> willprice: I think that'd be cool, and perhaps a longer term vision for the repo :)
<aminechikhaoui> ah I'm so outdated, last time I checked it was upstart
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #30686: pam: add optional pam_gnome_keyring integration (master...keyring) https://git.io/vdNdR
NixOS_GitHub has left #nixos []
<willprice> gchristensen, so if I was to make an attempt on this would options be the way to go?
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<gchristensen> probably
<bennofs> FRidh: do you have any non-standard dns settings or nsswitch resolvers? iirc, I got such a "download hangs" issue on Arch when the glibc version used by Nix was different than the one from the host systemd and thus systemd's resolve nsswitch module failed
<deltasquared> ... oh, that *again*
* deltasquared needs to remember that one when it happens
Itkovian has quit [(Client Quit)]
<deltasquared> bennofs: I just resolved that by making sure the nix store in question had the relevant modules, for instance, but it would vary depending on the offending resolver
<deltasquared> it def. hung on my system due to the firewalling of arbitary DNS packets... >_>
truh has joined #nixos
otherjrolfs has joined #nixos
<FRidh> bennofs: I think its the proxy configuration. I have to check how to configure it for nix. For now I just set https_proxy and http_proxy in /etc/environment. Not sure whether that's considered for services
<FRidh> I was able to insert in the store a local file
<bennofs> FRidh: i am pretty sure that services use a clean env with systemd
<bennofs> systemctl show-environment
<bennofs>
coot_ has joined #nixos
<FRidh> bennofs: thanks. I'll need an override in something like nix-daemon.service.d then
freusque has joined #nixos
otherjrolfs has quit [(Ping timeout: 256 seconds)]
asdfoiawe has joined #nixos
<aristid> FRidh: there is a way to inject environment into systemd i think
<aristid> systemctl set-environment VARIABLE=VALUE
<aristid> not sure if that is the best way for your use case
<aristid> cheers!
i-am-the-slime has joined #nixos
mekeor has quit [(Ping timeout: 265 seconds)]
<hyper_ch> sphalerite: as soon as I set in the client allowedIps to 0.0.0.0/0 - I cna't do anything
<makefu> hyper_ch: i had the same issue
dywedir has joined #nixos
<i-am-the-slime> What do I do to start a new Haskell project?
<hyper_ch> when I reset it back to 10.200.0.0/24 it works fine
<hyper_ch> @makefu
<makefu> yes
<makefu> exactly same issue
<hyper_ch> oh... could the issue be because I use a name in the server box and not an ip
<hyper_ch> then it gets activated and it can't resolve things anymore
<hyper_ch> switching from domain to ip now
drakonis has joined #nixos
<hyper_ch> didn't help either
<deltasquared> stupid question, atomicity of updates to /etc wouldn't matter much in /etc because everything running uses containers anyway, right?
<deltasquared> s/in /etc /in nixos/
<deltasquared> (trying to do atomic updates of an overlay /etc myself is running into issues with symlink shenanigans)
<goibhniu> not sure if I understand correctly, but it matters for rollbacks etc. BTW services don't run in containers
<deltasquared> hmm.
<hyper_ch> makefu: here's an image: https://images.sjau.ch/img/6bad4917.png with allowed ips set to 0.0.0.0/0 on the client, no connection possible.... if I set allowed ips to vpn subnet 10.200.0.0/24 it works fine
<hyper_ch> by default I think you can't write to /etc - it's all autogenerated I think
<makefu> yep, just saw it on #wireguard
<hyper_ch> makefu: you're spying on me again?
cinimod has joined #nixos
<makefu> i can ask the same!
<hyper_ch> makefu: I think I was in #wireguard before you :)
dywedir has quit [(Read error: Connection reset by peer)]
<makefu> well, maybe :D
<cinimod> I was asking yesterday about the python package `us` which depends on `jellyfish` - it seems the version of `jellyfish` in nixpkgs is `nix-env -f "<nixpkgs>" -qaP -A pythonPackages | grep -I jelly pythonPackages.jellyfish python2.7-jellyfish-0.5.2` but `us` wants a different version `No matching distribution found for jellyfish==0.5.6 (from us==1.0.0)`
<cinimod> What's my best option here?
<deltasquared> hyper_ch: I was more concerned with the atomicity of visible changes to /etc. say I change the system config and it gets regenerated, is there a potential period of time when /etc is empty, half-changed, or inaccessible?
<cinimod> If I look here `nixpkgs/pkgs/development/python-modules`, `jellyfish` does *not* appear so I don't know how to ensure we get the latest version (BTW 18 months old)
<makefu> deltasquared: afair changed services get stopped before /etc is changed, then started after the chane is completed
<hyper_ch> deltasquared: by deafult, in nixos, you can't edit files in /etc
<deltasquared> hyper_ch: no, but you can cause it's contents to be changed.
<hyper_ch> yes, you can do that
<makefu> and /etc is never "empty", you can have your own files even though this would not be very nixonic
otherjrolfs has joined #nixos
<makefu> files in /etc will be changed via activation scripts
<deltasquared> so I take it the generation process in general isn't a "empty and regen from scratch" type deal
<deltasquared> hmm.
<makefu> yes exactly
<deltasquared> whatever nix does *would* appear to be a better solution than my set of hacks >_>
<makefu> i have for example /etc/wpa_supplicant.conf which is not supervised by nixos
<sphalerite> hyper_ch: I'm guessing in that case that when you do that it uses that route for trying to access the VPN server oto
<sphalerite> too*
<hyper_ch> sphalerite: no idea
<sphalerite> hyper_ch: does it work if you do `ip route add <IP of VPN server> via <normal default gateway>`?
<deltasquared> makefu: wouldn't that get wiped out though if there was some equivalent of "make clean" on /etc for whatever reason?
pukkamustard has quit [(Quit: WeeChat 1.9.1)]
<hyper_ch> let me reboot the vm
betaboon has joined #nixos
otherjrolfs has quit [(Ping timeout: 240 seconds)]
<hyper_ch> sphalerite: https://images.sjau.ch/img/20fbe71f.png - top "normal" routes, bottom routes when 0.0.0.0/0
Itkovian has joined #nixos
<makefu> deltasquared: there is no "make clean", only activation scripts or systemd services which (re)write files in /etc
<deltasquared> doesn't sound very functionally pure if you can't purge and regen once in a while...
<makefu> if i would use the nixos service for declarative wpa_supplicant then this file would be overwritten
<makefu> purging something once in a while is far from declarative
<makefu> services are normally configured to use a specific configuration directly from the nix store
<makefu> if this is not possible then there is a preStartup script which sets up the files necessary
<symphorien> cinimod: then feel free to update it and make a PR: https://nixos.wiki/wiki/Updating_a_package_in_Nixpkgs
<cinimod> I am just trying to do so
<deltasquared> even so, if the contents of /etc dependended solely on the nix configuration, then purge-and-regen should be idempotent.
<makefu> for example, nginx gets started with -c /nix/store/somewhere-nginx.conf
<i-am-the-slime> how do I create a new haskell project on nixos?
far-blue has joined #nixos
rauno has quit [(Ping timeout: 268 seconds)]
<far-blue> Hi all, I'd like to experiment with NixOS in Parallels - is anyone aware of a config for installing the Parallels Tools?
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/f59a0f7f1a6 (from 21 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
<tilpner> i-am-the-slime - Little personal experience, just linking you the docs, in case you're unaware of them: https://nixos.org/nixpkgs/manual/#how-to-create-a-development-environment
<Ankhers> gleber_: When you have a bit of time, can you help me figure out why `make repl` fails in https://github.com/ankhers/nix_beam_test? I wrote that shell.nix file myself, so it I probably did something wrong.
otherjrolfs has joined #nixos
zzamboni has joined #nixos
far-blue has left #nixos []
freusque has quit [(Ping timeout: 256 seconds)]
<hyper_ch> makefu: it works with two caveats :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 closed pull request #33240: lxterminal: init at 0.3.1 (master...master) https://git.io/vbAXD
NixOS_GitHub has left #nixos []
<mudri[m]> i-am-the-slime: There are way too many ways to do it, but I've found the stack --nix route easiest.
<mudri[m]> If I remember correctly, you do stack as normal, but add the nix section to your stack.yaml (including any OS dependencies).
<mudri[m]> Don't try reading the Nix section in the Stack manual.
<willprice> mudri[m], why? Is it really bad?
<mudri[m]> It's definitely not a starting place, anyway.
<mudri[m]> It seems to assume a lot of familiarity with Stack, and none with Nix.
deltasquared has left #nixos ["my internets, no!"]
<mudri[m]> It's a decent reference once you know your way around, though.
<cinimod> But
<cinimod> `nix-shell -p python35Packages.us --run "python3" -I nixpkgs=/Users/dom/nixpkgs` fails
<mudri[m]> (In the sense that there's no other way to learn it.)
<cinimod> with `No matching distribution found for jellyfish==0.5.6 (from us==1.0.0)`
otherjrolfs has quit [(Ping timeout: 248 seconds)]
erasmas has joined #nixos
<cinimod> So nix tells me it can and cannot find 0.5.6
i-am-the-slime has quit [(Ping timeout: 260 seconds)]
<cinimod> Obviously it is no fan of the law of the excluded middle
spietz has joined #nixos
cement has joined #nixos
<tilpner> cinimod - Is that the whole path? python35Packages.us does not appear to exist here
<cinimod> I just added it
<symphorien> cinimod: try nix-build. nix-env has some strange behavior with respect to NIX_PATH
m0rphism has joined #nixos
<cinimod> I was hoping to create a PR
freusque has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 4 new commits to master: https://git.io/vbpNk
<NixOS_GitHub> nixpkgs/master 275fa41 Ben Wolsieffer: jemalloc: disable transparent huge pages by default on ARMv6/7...
<NixOS_GitHub> nixpkgs/master 98dd418 Ben Wolsieffer: jemalloc: 4.5.0 -> 5.0.1
<NixOS_GitHub> nixpkgs/master 02e95ea Jörg Thalheim: jemalloc: do not expose hugepage support as an option...
NixOS_GitHub has left #nixos []
<tilpner> cinimod - Oh, that's... important information, please make sure to meniton it next time. Paste?
* cinimod is new to nix, does not know nix-build but will try
<cinimod> Paste of my derivation?
<cinimod> Sure
<tilpner> And where/how did you add that? top-level/python-packages.nix?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vbpNV
<NixOS_GitHub> nixpkgs/master 23ffb9d Ben Wolsieffer: go-1.8, go-1.9: use stdenv.shell instead of /usr/bin/env bash...
<NixOS_GitHub> nixpkgs/master bc5bf95 Jörg Thalheim: Merge pull request #33279 from lopsided98/go-stdenv-shell...
NixOS_GitHub has left #nixos []
<tilpner> cinimod - Also note that your first paste used python35Packages, while your second one uses pythonPackages. They are not identical
jb55 has joined #nixos
<cinimod> tilpner: what syntax should I use for nix-build?
<cinimod> This doesn't seem to work `nix-build -I /Users/dom/nixpkgs -A pythonPackages.us`
<tilpner> Probably nix-build --no-out-link /Users/dom/nixpkgs -A python3Packages.us
asuryawanshi has quit [(Ping timeout: 264 seconds)]
otherjrolfs has joined #nixos
endformationage has joined #nixos
truh has quit [(Read error: Connection reset by peer)]
truh has joined #nixos
* tilpner has stolen the alias nip = nix-build --no-out-link "<nixpkgs>" -A
<gleber_> Ankhers: I'll take a look in an hour or so
<Ankhers> gleber_: Thanks. Take your time.
asuryawanshi has joined #nixos
<catern> Hey #nixos, how can I use Nix to build a NixOS container image on a non-NixOS system? I see there's the Docker tools in Nix, but those don't create a full NixOS container image that can be run in an operating system container
<FRidh> cinimod: nix-build does not accept -I Instead, use `NIX_PATH=nixpkgs=/path/to/nixpkgs nix-build -A attr`
<earldouglas> Is there a way to interpolate a string that comes from readFile? e.g. given src.txt with contents 'foo=${foo}': let src = builtins.readFile ./src.txt; foo = "42"; in src
<catern> I just want to build a NixOS tarball suitable for running with systemd-nspawn
otherjrolfs has quit [(Ping timeout: 252 seconds)]
<tilpner> catern - You could try building a Docker image, they can run from nspawn IIRC
<catern> tilpner: no, AFAIK it's different: Docker images aren't NixOS, they don't have systemd, they're just a closure
jensens has quit [(Ping timeout: 272 seconds)]
<tilpner> catern - Oh, you're right. I don't know what to do, if you want to have full NixOS, sorry :/
i-am-the-slime has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
<tilpner> catern - It may be possible to reuse large parts of <nixpkgs/nixos/modules/virtualisation/containers.nix>. You would have to plug the NixOS-specific parts together yourself, which are a service, /etc files, and extra host, udev rules, and optionally the nixos-container package
<tilpner> But I think you could get it to do the hard part of building the container for you
FRidh has quit [(Ping timeout: 260 seconds)]
Ross has quit [(Ping timeout: 272 seconds)]
Ross has joined #nixos
<catern> tilpner: hmm, that looks like it shares all the setup with the host machine, rather than building a new Nix system tarball from a configuration.nix
<catern> NixOS system*
asuryawanshi has quit [(Remote host closed the connection)]
<catern> unless I am reading it wrong?
asuryawanshi has joined #nixos
Turion has joined #nixos
<catern> hmmm....
freusque has quit [(Ping timeout: 240 seconds)]
<Turion> Does anyone else use xterm without experiencing bugs?
bennofs has quit [(Remote host closed the connection)]
<catern> tilpner: oh!! how about this? Just nixos-install into a directory!
szicari has joined #nixos
<catern> Like a debootstrap
<tilpner> Haha, please try, but with --no-bootloader
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] cransom opened pull request #33331: netdata service: fix permissions for apps.plugin (master...netdata-module) https://git.io/vbpht
NixOS_GitHub has left #nixos []
otherjrolfs has joined #nixos
<catern> is it safe/possible to mount the Nix daemon socket read/write in a container?
bennofs has joined #nixos
<catern> (along with the store itself mounted read-only of course)
<tilpner> That doesn't sound safe at all
<Mic92> catern: what is your threat model?
<gchristensen> that should provide similar safety as using nix as an unprivileged user on the host
asdfoiawe has quit [(Ping timeout: 240 seconds)]
<Turion> I develop haskell in cabal sandboxes. Assume I need packages foo, which is available in nixpkgs. How do I enter a nix-shell such that "cabal install --only-dependencies" doesn't rebuild the package from source?
otherjrolfs has quit [(Ping timeout: 264 seconds)]
<Unode> does anyone have a .nix file around to create a python environment that mixes both nix packages, nix python-packages, pypi as well as local (i.e. a folder) python packages into the same expression?
<catern> gchristensen: right, that's what I'm thinking
<catern> gchristensen: that level of safety works for me
FRidh has joined #nixos
<bennofs> Turion: nix-shell --pure -p 'with (import <nixpkgs> {}); haskellPackages.ghcWithPackages (hs: [hs.acme-realworld])' should do that
<bennofs>
<catern> Mic92: well, buggy containers, I guess? :) but I'd like to defend against hostile containers too if possible :) and I think that it should work fine, iff we assume the Nix daemon socket is resilient to attacks from unpriv users anyway
<catern> but wait, does the Nix daemon socket try and determine the user that is connecting to it? what if I connect to the Nix daemon socket as root from within the container? Will that allow me to mutate root's profile outside the container?
<Turion> bennofs: Thanks, I'll try that!
<gchristensen> catern: profile changes are performed not by the daemon
<Mic92> catern: I think potential information leakage is the biggest problem as every file is world-readable. by default docker will run container as root. But you can enable user namespaces
<Mic92> then it will be uid 100000 or so on the host
<catern> Mic92: information leakage? but the Nix store is already public :)
<gchristensen> catern: there may be some user sniffing for trusted-users, so maybe audit that and be careful
<niksnut> catern: NixOS containers are not secure
<Unode> is there any way to have a src or srcs argument on a nix expression relative to cwd ?
<Mic92> catern: yes, that's the problem
<catern> niksnut: ah, yeah, that's true about all Linux containers anyway - let's assume I'm talking about virtual machines, actually, and sharing a daemon between multiple VMs on a host
<Unode> I'm getting: variable $src or $srcs should point to the source - when using 'src = ../folder'
freusque has joined #nixos
<catern> (so we don't have to consider the insecurity of containers)
Sonarpulse has joined #nixos
<Unode> catern: how do you share the daemon without sharing /nix ?
<catern> Mic92: what's the problem? I already don't put anything secret into my Nix store
<catern> Unode: I would share /nix too of course :)
<Mic92> catern: thent it is ok
i-am-the-slime has quit [(Ping timeout: 256 seconds)]
<catern> hmm, wait a second... I see that the NixOS containers do: --bind-ro=/nix/var/nix/daemon-socket --bind="/nix/var/nix/profiles/per-container/$INSTANCE:/nix/var/nix/profiles"
<catern> i.e. making a per-container profile directory
<Mic92> here is an nspawn prototype, that run as unprivileged container: https://github.com/Mic92/dotfiles/blob/master/nixos/nspawn-container/default.nix#L78
<catern> oh, yeah, that makes sense :) because then the container manages its own profiles... seems like it's fine
<catern> I guess, in an ideal world, profiles/gcroots would be outside /nix, but then you get back to the issue of how to find garbage collector roots at GC time, so I guess it's fine to have this "per-container profiles" thing
freusque has quit [(Ping timeout: 246 seconds)]
<ma27> it would be really cool if someone could test this: https://github.com/NixOS/nixpkgs/pull/32845
Boomerang has quit [(Quit: WeeChat 1.9.1)]
otherjrolfs has joined #nixos
<gchristensen> catern: GC roots aren't managed by the daemon, but by the user
<catern> gchristensen: yeah, I sent a post to the mailing list a couple months back proposing that GC roots be managed by the daemon
<gchristensen> ah
nh2 has quit [(Ping timeout: 255 seconds)]
otherjrolfs has quit [(Ping timeout: 268 seconds)]
LexLeoGryfon has joined #nixos
<Turion> When is ~/.config/nixpkgs/config.nix ever used?
<Unode> Turion: every time nix is used as that user.
<Turion> Unode: Thanks!
<mudri[m]> Is that the same as ~/.nixpkgs/config.nix?
<Unode> mudri[m]: possibly.
<Unode> ~/.config is XDG standard. ~/.nixpkgs might be an older scheme
jb55 has quit [(Ping timeout: 248 seconds)]
<Baughn> How do I inherit an array into a build script? Doing it the obvious way gives me a plain bash variable, not an array.
<mudri[m]> I guess I should move mine, then.
<niksnut> Baughn: you can't
<Baughn> I must.
<Turion> but ~/.config/nixpkgs/config.nix is not a GC root?
<gchristensen> Turion: it isn't managed by nix, just read by nix
<Baughn> I suppose I can build the build script in Nix. ...
<niksnut> Nix 1.12 has a mechanism for passing arrays
<cransom> Baughn: i think you only get options like `declare -a somearray=(${ nix expr that space delimits your array here })`
i-am-the-slime has joined #nixos
<cinimod> tilpner: I still get the same error: that nix cannot find the right jellyfish version
<cinimod> Maybe I should just create the PR and then you can see
alexteves has joined #nixos
<tilpner> Sure, go ahead. Maybe someone more familiar with Python packaging can look at it
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #33332: fac: init at 2017-01-02 (master...feature/fac) https://git.io/vbhUm
NixOS_GitHub has left #nixos []
<TonyTheLion> is there a recommended way to have a nix derivation build multiple version types (debug, release, etc)?
<TonyTheLion> should I have different .nix files (one for each build type) or should I have some arguments I take inside the one nix derivation?
pie_ has joined #nixos
sigmundv__ has quit [(Ping timeout: 248 seconds)]
otherjrolfs has joined #nixos
ixxie has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
<catern> TonyTheLion: you can provide the version type as an argument to the function that makes the Nix derivation
ixxie has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy opened pull request #33333: haskell: Fix depending on libs with internal libs on darwin. (master...haskell-internal-libs-darwin) https://git.io/vbhUQ
NixOS_GitHub has left #nixos []
<catern> think of it like normal code: you can DRY up your Nix file by having a single .nix file that takes an argument to change what kind of build is happening :)
<TonyTheLion> catern: and then you can pass that through nix-build?
dan_b has quit [(Ping timeout: 248 seconds)]
<TonyTheLion> so 'nix-build -A foo debug'
<catern> TonyTheLion: yes, nix-build --arg "version" "value"
<TonyTheLion> wow nice
<sphalerite> hyper_ch: did you read what I suggested? It wasn't just displaying the routing table
otherjrolfs has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] idontgetoutmuch opened pull request #33334: Add the python package 'us' and update 'jellyfish' (master...master) https://git.io/vbhUh
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti closed pull request #33333: haskell: Fix depending on libs with internal libs on darwin. (master...haskell-internal-libs-darwin) https://git.io/vbhUQ
NixOS_GitHub has left #nixos []
<catern> though it could be more convenient to do "nix-build -A foo-debug" or "nix-build -A foo-release" etc., depends on your use case
<hyper_ch> sphalerite: yes, and got it to work... harder now to automate it
raynold has joined #nixos
<sphalerite> yeah
zielmicha_ has joined #nixos
<willprice> Is there a command to check that /etc/nixos/configuration.nix is valid?
<cinimod> Here's my problem as a PR
<willprice> Something I could run in CI
<cinimod> Ah but it looks like it is `pypi` that fails to find the package
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<cinimod> I have no idea how nix uses `pypi` to find python packages
toppler has quit [(Remote host closed the connection)]
otherjrolfs has joined #nixos
<Unode> Is there any issue with latest 17.09 stable? I'm getting http://dpaste.com/30M5EHS
LexLeoGryfon has quit [(Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)]
<mgttlinger> I have written a derivation for the slicer IceSL only to find out that I have no machine running nix that supports a recent enough version of OpenGL. If anyone has a machine supporting at least version 4.2 in compat mode and would like to test if everything works the derivation is here: https://github.com/mgttlinger/nixpkgs/blob/icesl/pkgs/applications/misc/icesl/default.nix
<mgttlinger> If someone can test that it works, I'd happily send a PR.
ixxie has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
<TonyTheLion> can you pass on a function argument from nix to an attribute?
iyzsong has quit [(Ping timeout: 260 seconds)]
<TonyTheLion> so if I have 'inherit meson', can I do something like 'inherit meson --buildtype='argfromnix''?
sary has quit [(Ping timeout: 240 seconds)]
<willprice> TonyTheLion, why not just encode the expression as the value of the `meson` attribute?
<TonyTheLion> ye but I gotta pass the buildtype to meson as an argument, else it just assumes the default
sary has joined #nixos
<willprice> TonyTheLion, https://nixos.org/nixpkgs/manual/#sec-overrides does this help at all?
ambro718 has joined #nixos
otherjrolfs has quit [(Ping timeout: 240 seconds)]
<TonyTheLion> hmmm
<TonyTheLion> its kinda abstract, so it just overrides the default call to the dervation function with new args
<willprice> Pretty much
<hyper_ch> sphalerite: makefu: you're any good with routes and stuff?
bennofs has quit [(Remote host closed the connection)]
FRidh has quit [(Quit: Konversation terminated!)]
threeve has left #nixos ["Textual IRC Client: www.textualapp.com"]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #33335: irker: cleanup manual setting of XML_CATALOG_FILES, no longer needed (master...fix/irker-xml-catalog-files) https://git.io/vbhIi
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #33336: lxterminal: use nativeBuildInputs for compile-time-only deps (master...fix/lxterminal-nativebuildinputs) https://git.io/vbhI1
NixOS_GitHub has left #nixos []
<lewo``> What tool are you using to convert a Gopkg.lock file to a deps.nix file?
MP2E has joined #nixos
Arcaelyx has joined #nixos
__Sander__ has quit [(Quit: Konversation terminated!)]
<lewo``> I'm trying to use the go2nix v2 but it is still in dev.
nh2 has joined #nixos
coot_ has quit [(Quit: coot_)]
ma27 has quit [(Ping timeout: 265 seconds)]
<dtz> mgttlinger: did you get any feedback re:iceSL? I just tried it, seems to work for me!
<dtz> mgttlinger: two minor 'nits' though: 1)It tries to find a 'dialog' application but can't, so prompts use command-line which is :(
<dtz> and 2)provided models are in the installation path, which is a bit awkward to locate once you're running. Not sure how this could best be resolved
ma27 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy opened pull request #1772: Add hasContext primop (master...hasContext) https://git.io/vbhtK
NixOS_GitHub has left #nixos []
jb55 has joined #nixos
<mgttlinger> dtz: So far you are the first person to give me feedback. Thanks for that.
<dtz> mgttlinger: hooray! Also, regarding dialogs, here's what it says: http://ix.io/sBG
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #33169: Awesome search (master...awesome-search) https://git.io/vbbNW
NixOS_GitHub has left #nixos []
<mgttlinger> dtz: Not sure what to do about the dialog issue. If you are running a gnome shell you probably would want the corresponding zenity version but if you dont you would want dialog I guess.
<mgttlinger> Can this be detectd in the derivation? (Somewhat new to writing derivations)
stepcut has quit [(Remote host closed the connection)]
nh2 has quit [(Ping timeout: 264 seconds)]
stepcut has joined #nixos
<dtz> yeah, maybe there's not a great way to do it in a desktop-agnostic way
<hyper_ch> makefu: sphalerite: I'm building a script that should kind of set automagically right settings
<dtz> if it was clear which was useful (perhaps as a fallback?) then you'd use makeWrapper to ensure it was avail on PATH
Lisanna has quit [(Ping timeout: 260 seconds)]
i-am-the-slime has quit [(Ping timeout: 265 seconds)]
<dtz> but otherwise seems like it works? loaded rose model anyway lol
<dtz> mgttlinger: maybe limit platforms to linux 64bit? (since source URL suggests that's all that is supported?)
<mgttlinger> from the order of listing the dialog options you could asume that it searches for those options in that order and if I include dialog in the path it would only use that if no other are available
stepcut has quit [(Ping timeout: 248 seconds)]
<mgttlinger> there is a 32 bit version als well and windows versions
<dtz> mgttlinger: sounds good to me, seems reasonable assumption re:order of checks
otherjrolfs has joined #nixos
knupfer has quit [(Ping timeout: 276 seconds)]
<jluttine> has anyone set up selfoss? i tried enabling services.selfoss but i suppose it requires some more configuration to make it work :(
otherjrolfs has quit [(Ping timeout: 264 seconds)]
jb55 has quit [(Read error: Connection timed out)]
<tilpner> Is anyone aware of the reasons buildFHSUserEnv uses its own unshare wrapper (chrootenv.c), as opposed to an established alternative (e.g. bubblewrap)?
ma27 has quit [(Ping timeout: 272 seconds)]
jb55 has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/aba342515b0 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
betaboon has quit [(Ping timeout: 272 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/af6aacddc18 (from 21 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
nix-gsc-io`bot has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 2 new commits to master: https://git.io/vbhOC
<NixOS_GitHub> nix/master 689b278 Shea Levy: Add hasContext primop
<NixOS_GitHub> nix/master e297aa7 Eelco Dolstra: Merge pull request #1772 from shlevy/hasContext...
NixOS_GitHub has left #nixos []
rihards has joined #nixos
dieggsy has joined #nixos
Piece_Maker has joined #nixos
Acou_Bass has quit [(Ping timeout: 265 seconds)]
Piece_Maker is now known as Acou_Bass
otherjrolfs has joined #nixos
goibhniu has quit [(Ping timeout: 248 seconds)]
randomstrangerb has quit [(Ping timeout: 255 seconds)]
randomstrangerb has joined #nixos
ma27 has joined #nixos
otherjrolfs has quit [(Ping timeout: 252 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] yegortimoshenko closed pull request #33213: steam: add wrapper testing for libGL (master...master) https://git.io/vbAYE
NixOS_GitHub has left #nixos []
mizu_no_oto has joined #nixos
asuryawa_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthiasbeyer opened pull request #33338: toot: 0.15.0 -> 0.16.2 (master...update-toot) https://git.io/vbhsv
NixOS_GitHub has left #nixos []
FRidh has joined #nixos
asuryawanshi has quit [(Ping timeout: 248 seconds)]
asuryawanshi has joined #nixos
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vbhsc
<NixOS_GitHub> nixpkgs/master 804285f Frederik Rietdijk: Merge remote-tracking branch 'upstream/staging' into HEAD
NixOS_GitHub has left #nixos []
noam__ has quit [(Read error: Connection reset by peer)]
noam__ has joined #nixos
asuryawa_ has quit [(Ping timeout: 272 seconds)]
asuryawa_ has joined #nixos
otherjrolfs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vbhGt
<NixOS_GitHub> nixpkgs/master b222e44 Matthias Beyer: toot: 0.15.0 -> 0.16.2
<NixOS_GitHub> nixpkgs/master 58f9fd6 Frederik Rietdijk: Merge pull request #33338 from matthiasbeyer/update-toot...
NixOS_GitHub has left #nixos []
asuryawanshi has quit [(Read error: Connection reset by peer)]
stepcut has joined #nixos
otherjrolfs has quit [(Ping timeout: 250 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 1 new commit to staging: https://git.io/vbhG7
<NixOS_GitHub> nixpkgs/staging 1531fd7 Daiderd Jordan: pharo: disable on darwin
NixOS_GitHub has left #nixos []
boxofrox has quit [(Ping timeout: 264 seconds)]
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #33339: pnmixer: 0.7.1 -> 0.7.2 (master...upd.pnmixer) https://git.io/vbhZR
NixOS_GitHub has left #nixos []
zzamboni has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #33340: Update various invisible-island packages, fix URL's (master...update/invisible-island-misc) https://git.io/vbhZy
NixOS_GitHub has left #nixos []
ruge has joined #nixos
<gchristensen> thanks for all the PRs everyone, you're keeping my office warm on this cold day.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 opened pull request #33341: brotli: fix darwin build (master...darwin-brotli) https://git.io/vbhns
NixOS_GitHub has left #nixos []
<LnL> I have a mass-rebuild for darwin if you want
<gchristensen> unfortunately it is only evaluations that do it, but I could start a test build I guess :)
<samueldr> hi, gchristensen, you might (undestandably) have missed a request I had for you the 31st https://botbot.me/freenode/nixos/2017-12-31/?msg=95221586&page=11
otherjrolfs has joined #nixos
<gchristensen> let's talk in in ~3hrs, samueldr
<samueldr> no proble, at your convenience
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/c98eb9e9b98 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<gchristensen> samueldr: a quick answer: almost all the stuff I have / run isn't "legitimized" by any means :P I just do it and run it and then tell people about it
<gchristensen> like that bot ^ :)
truh has quit [(Ping timeout: 256 seconds)]
<samueldr> :), I meant mostly, having approval from a figure of authority, I mean, it's logging stuff after all!
lfish has joined #nixos
<gchristensen> oh, so #nixos has always been logged, all the other channels are "new" and spawn from #nixos, so I think there is an expectation of logging
otherjrolfs has quit [(Ping timeout: 264 seconds)]
<gchristensen> if you'd like I can send you data from {^_^} (it all goes through rabbitmq) and then you don't even need to maintain IRC persistence. and continuing, if you'd like, I could even host the process / data if you don't have a nice place to host it
<samueldr> neat, I'll add the other channels later today, and if I have missed some nix/nixos-related ones, I'll be glad to fill in any requests
guest787 has joined #nixos
nh2 has joined #nixos
<samueldr> oh, I have the nice place to host it already, and it's an already battle-tested solution for IRC logging, no custom in-house development, except for integration to nixos
<gchristensen> right on
<samueldr> thanks for the offer
<guest787> question: how can I set up my NixOS in VirtualBox to render to Retina (I played with the font DPI already to no avail)
ruge has quit [(Ping timeout: 256 seconds)]
<lfish> Hello, I'm tring to learn some latex and use emacs with auctex. I have errors with the previews and can't figure out what it is about. https://pastebin.com/qSU1DNsY there's the error. I'm using texlive.combined.scheme-basic and auctex from the git repository. Thanks.
rogue_koder has joined #nixos
rogue_koder has quit [(Client Quit)]
contrapumpkin is now known as visionofsatoshi
visionofsatoshi is now known as contrapumpkin
Baughn has quit [(Quit: ZNC 1.6.2+deb1 - http://znc.in)]
chaker has joined #nixos
<mgttlinger> dtz: would you mind testing my changes? I added dialog in makeWrapper and added 32 bit arch. Both of which I can't test locally...
mbock has joined #nixos
<mbock> hi! I mounted an external disk and generated a new hardware-configuaration.nix in order to have this permanent. Right now only root can write to this disk. How can I give r/w permission to the mount point for non-root users?
* dtz tries pkgsi686Linux.icesl
<dtz> mgttlinger: hmm, I'm getting 0sl54fsb2gz6dy0bwdscpdq1ab6ph5b7zald3bwzgkqsvna7p1jr as sha256 for 32bit?
<mgttlinger> hmmm
SOO7 has quit [(Ping timeout: 250 seconds)]
<mgttlinger> I had the same issue when getting the has of the 63 bit one
<mgttlinger> I had the same issue when getting the has of the 64 bit one
<mgttlinger> does nix-prefetch-url not calculate the correct hash?
mbock has quit [(Ping timeout: 248 seconds)]
<mgttlinger> changed the hash
Ross has quit [(Ping timeout: 248 seconds)]
Ross has joined #nixos
dywedir has joined #nixos
otherjrolfs has joined #nixos
<dtz> mgttlinger: https://github.com/dtzWill/nixpkgs/tree/experimental/icesl <-- two minor fixups, on top of the hash thing
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 opened pull request #33342: clang: add lib output (master...clang-outputs) https://git.io/vbhln
NixOS_GitHub has left #nixos []
<dtz> dunno re:why nix-prefetch-url wouldn't do right thing.... maybe fetchzip works differently? :/
<maurer> a/go 24
<dtz> with the changes I linked above, 32bit icesl seems to work? :D
magnetophon has quit [(Ping timeout: 240 seconds)]
<contrapumpkin> nix-prefetch-url --unpack should behave like fetchzip
<dtz> ah, --unpack probably is it. OTherwise it shows sha256 of the zip itself? xD
<contrapumpkin> yeah
otherjrolfs has quit [(Ping timeout: 268 seconds)]
bkchr has quit [(Quit: Konversation terminated!)]
coot_ has joined #nixos
stepcut has quit [(Remote host closed the connection)]
<mgttlinger> dtz: great do you want to send the PR to upstream? Thanks for your help!
stepcut has joined #nixos
<mgttlinger> It is kinda difficult writing derivations if you can't run the software 😂
<dtz> mgttlinger: haha no problem, will submit in a sec
<mgttlinger> 👍
stepcut has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #33344: icesl: init at 2.1.10 (master...feature/icesl) https://git.io/vbh8z
NixOS_GitHub has left #nixos []
<dtz> ^_^
joshuaks has joined #nixos
<joshuaks> Hi!
<joshuaks> I am having some trouble with the Nix pills.
<phdoerfler> for what it's worth, nixos is the first linux of which I think it does (a lot) more right than wrong and where I am willing to contribute. Kudos to all who made this fabulous distro
<gchristensen> phdoerfler: woo! thanks!
stepcut has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #33345: xkbmon: init at 0.1 (master...new.xkbmon) https://git.io/vbh8p
NixOS_GitHub has left #nixos []
szicari_ has joined #nixos
dieggsy has quit [(Ping timeout: 252 seconds)]
<joshuaks> Pill 8.1 runs into clang errors on macOS
knupfer has joined #nixos
rogue_koder has joined #nixos
szicari has quit [(Ping timeout: 264 seconds)]
szicari_ is now known as szicari
otherjrolfs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantrinkle opened pull request #33346: Init thunderbolt at 0.9.2 (master...init-thunderbolt) https://git.io/vbh48
NixOS_GitHub has left #nixos []
simendsjo has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantrinkle closed pull request #32258: nat: add extraCommands option (master...add-nat-extraCommands) https://git.io/vbYEP
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #32875: werkzeug: 0.12.2 -> 0.13 (master...werkzeug-update) https://git.io/vb1Ag
NixOS_GitHub has left #nixos []
joshuaks has quit [(Quit: WeeChat 1.9.1)]
<TonyTheLion> is there a way to rename the output of a derivation from 'result' to something like 'result-release', and then have multiple outputs with different names?
otherjrolfs has quit [(Ping timeout: 255 seconds)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<tilpner> TonyTheLion - Try .overrideAttrs (old: { name = "${old.name}-release"; })
<tilpner> Or do that earlier, while constructing the derivation
asuryawanshi has joined #nixos
asuryawa_ has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to release-17.09: https://git.io/vbhBt
<NixOS_GitHub> nixpkgs/release-17.09 decfd8f Frederik Rietdijk: python.pkgs.pandas: disable another test...
NixOS_GitHub has left #nixos []
<> changed the topic of #nixos to: Channel #nixos created on 2008-04-25 12:32:07 UTC
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
chaker has quit [(Ping timeout: 248 seconds)]
<TonyTheLion> tilpner: where would I put that, inside my mkDerivation?
<tilpner> TonyTheLion - Something like name = "result-${version}";, where version is debug or release. result is a pretty bad name though...
<TonyTheLion> the symbolic link that results from building the derivation is called 'result'
<tilpner> Oh, that's what you mean
<tilpner> Uhm, I avoid those
asuryawanshi has quit [(Remote host closed the connection)]
<tilpner> Pass --no-out-link if you don't want them either
asuryawanshi has joined #nixos
<codedmart> What is the best way around dep errors with haskell packages? https://gist.github.com/codedmart/80eaa9876b228653118fe66be2355aa8
<TonyTheLion> so you just search your /nix/store for your results?
<tilpner> TonyTheLion - No, I build them every time I need the path, or hardcode the result in automated scripts :)
<gchristensen> TonyTheLion: nix-build will emit the path on stdout
<TonyTheLion> right ye
<gchristensen> you can also use --out-link
nithor has quit [(Ping timeout: 252 seconds)]
<tilpner> If I want to look at the output, I do things like cd $(nip godot3), instead of nip godot3 && cd ./result
huva has joined #nixos
otherjrolfs has joined #nixos
boxofrox has joined #nixos
zzamboni has joined #nixos
<Ankhers> gleber_: I believe I have found my issue. It looks like cowboy is specifying it's deps from github. Which I think is an issue with the hermetic rebar3 patch.
FRidh has quit [(Quit: Konversation terminated!)]
otherjrolfs has quit [(Ping timeout: 268 seconds)]
justan0theruser has quit [(Ping timeout: 264 seconds)]
nithor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jluttine opened pull request #33347: Improve Tiny Tiny RSS service (master...improve-tt-rss) https://git.io/vbh04
NixOS_GitHub has left #nixos []
phdoerfler has quit [(Quit: Leaving.)]
<lejonet> What is the nixos way of handling packages that utilizes instanced systemd units? (e.g. "ceph-osd@" and then symlink each like "ceph-osd@0 -> ceph-osd@") I'm thinking that defining the @ services like systemd.services."ceph-osd@" and then having a config var that is a list, and create a symlink for each element in that list might be a way forward, but unsure if that is the cleanest way
<codedmart> How can I install a package with a specific GHC compiler. Like say I want to install purescript with ghc802 rather then ghc822?
<lejonet> Shouldn't doing a override work for that?
<codedmart> lejonet: Not sure?
hals has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] erictapen opened pull request #33348: osrm-backend: 5.14.1 -> 5.14.3 (master...osrm-5.14.3) https://git.io/vbh0X
NixOS_GitHub has left #nixos []
<lejonet> the packages are inputs to the derivate function, so doing like nixpkgs.config.packageOverrides = super: { purescript = super.purescript.override({ ghc = gh802; }); }; might work, think I've seen this somewhere in the all-packages.nix file, one moment and I'll see if I can find the line there
<gleber_> Ankhers: Rebar won't download or bother itself with an package as long as the package version matches perfectly (and maybe some other conditions)
<lejonet> s/gh802/ghc802/
nithor has quit [(Ping timeout: 246 seconds)]
<lejonet> codedmart: look at line 647 or 666 (hehe :P) in all-packages.nix, it seems like packages that needs different version of boost is handled that way
<hals> Hi all, I am new to NixOS and trying to understand how to get enlightenment to start. I downloaded enlightenment.enlightment package, it installed ok once i did the nixos-rebuild swith but..
<lejonet> tho there its given to the function call callPackage, but iirc the .override method should accomplish the same thing
k0001 has joined #nixos
<earldouglas> How can I add a package to environment.systemPackages that uses a different package repo? I.e. the NixOS equivalent of nix-env -f ... -i ...
proteus-guy has quit [(Ping timeout: 255 seconds)]
<hals> what is the correct way to tell nixos to start it, it doesn't seem to like this entry in configuration.nix windowManager.default = "enlightenment";
proteus-guy has joined #nixos
<k0001> I haven't built nix itself from source for a long time, and I'm having trouble doing it since the `release.nix` file in the nix repo makes use of `fetchGit` which I suppose is a Nix 1.12 feature, but I'm on Nix 1.11. So... how is one supposed to work on Nix nowadays?
orivej has joined #nixos
<gchristensen> niksnut: ^ bootstrapping 1.12 is hard apparently, any advice?
<srhb> k0001: can't you just grab nixUnstable in a shell and bootstrap 1.12 with 1.12 ?
<LnL> k0001: you can replace that with import <nixpkgs> {}
nh2 has quit [(Quit: Leaving.)]
<Isorkin> how to fix error - The value of the environment variable ‘PATH’ in systemd service ‘mysql.service’ is too long ?
<srhb> Isorkin: Combine several of the PATH entries into one with buildEnv perhaps?
otherjrolfs has joined #nixos
<Isorkin> srhb: not found options buildEnv
huva has quit [(Ping timeout: 248 seconds)]
m0rphism has quit [(Quit: WeeChat 1.9.1)]
<codedmart> lejonet: This seems to get me what I want other then it says psc-package is not a thing. https://github.com/NixOS/nixpkgs/blob/master/doc/languages-frameworks/haskell.md#how-to-create-ad-hoc-environments-for-nix-shell
<srhb> Isorkin: let mysqlenv = pkgs.buildEnv { name = "mysql-path-env"; pathsToLink = [ "/bin" ]; paths = [ package1, package2, ..., packageN ]; }
<LnL> k0001: err, I mean { outPath = ./.; revCount = 1234; shortRev = "abcdef"; } similar for nixpkgs
nithor has joined #nixos
<srhb> Isorkin: That should result in a single nix store path you can use as your new path, barring any conflicts.
coot_ has quit [(Read error: No route to host)]
otherjrolfs has quit [(Ping timeout: 248 seconds)]
<codedmart> lejonet: What all-packages.nix are you referring to? I didn't see anything on those lines that look like overrides here: https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/all-packages.nix
coot_ has joined #nixos
<Turion> I'm developing in this shell: nix-shell -p 'with (import <nixpkgs> {}); haskell.packages.ghc763.ghcWithPackages (hs: [hs.SDL hs.SDL-gfx])'
<lejonet> codedmart: ah, my checkout is a bit outdated, for that one its 695 or 703 for example
<Turion> But somehow, I can't install a package depending on a different version of base than 4.6
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dhess opened pull request #33350: ghc: bootstrap 8.2.2 with 8.2.1-binary. (master...ghc821Binary) https://git.io/vbhu8
NixOS_GitHub has left #nixos []
<srhb> Turion: Is it a version of base compatible with 763?
nithor has quit [(Ping timeout: 252 seconds)]
<lejonet> codedmart: Where do you see psc-package is not a thing? It definitively seems like that snippet you linked to would solve your problem, if its just for a dev env or similar you want to override it
<srhb> Turion: iirc base versions correspond directly to one and only one ghc version.
<Turion> srhb: Oh that's interesting, I didn't know
<srhb> Turion: Normally it ships with GHC itself. :)
<codedmart> But when I add psc-package to the error I get an error about psc-package not existing.
<lejonet> codedmart: most likely the package is called something without a - in the name
mekeor has joined #nixos
<Turion> srhb: Yes, I'm getting the impression that when using ghc 7.6.3, it has base 4.6 installed and doesn't accept 4.7
<srhb> Turion: You can try jailbreaking one of your deps if you think there's a chance it might work on a different version of base.
<Isorkin> srhb: thanks, works
<codedmart> lejonet: No when I search for it I get nixpkgs.psc-package and that is what I was using to install it before.
<srhb> Turion: Yeah, 4.7 is ghc 7.6.x
<lejonet> codedmart: very odd
<srhb> Er, no, 7.8.x
<codedmart> I just need to install it now with ghc802 rather then ghc822 which seems to be the default.
<lejonet> I know hardly anything about haskell packages and such, so there I'm out of my league :P
* srhb reads up
aarvar has quit [(Ping timeout: 248 seconds)]
deltasquared has joined #nixos
<codedmart> srhb: If you are reading up on what I am trying to do.
<codedmart> I just did a nix-channel --update this morning.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jluttine opened pull request #33351: rssguard: 3.4.2 -> 3.5.5 (master...update-rssguard-3.5.5) https://git.io/vbhuQ
NixOS_GitHub has left #nixos []
<srhb> codedmart: You're trying to get psc-package with ghc 8.0.2?
<codedmart> And now purescript and psc-package both error because of dep issues. I want to tell them to install with ghc802 rather then 822.
<Turion> codedmart, your link is dead?
<srhb> codedmart: There's haskell.packages.ghc802.ghcWithPackages
<lejonet> nah just long and gets broken :P
<dtz> (anyone have thoughts on https://github.com/NixOS/nixpkgs/issues/33349 ? )
<Turion> ah yes :)
<codedmart> srhb: That is what I am trying now, which seems fine so far (or is still compiling) with purescript, but as soon as I add psc-package to the ghcWithPackages array I get an error that psc-package does not exist?
<srhb> codedmart: Hmm, I don't get that on unstable, but it doesn't build because turtle ==1.3.* is missing
<codedmart> srhb: Right that is the same thing I was seeing on unstable which is why I thought I would try ghc802.
<srhb> Ah.
<srhb> codedmart: Guess you'll have to add it.
domini has joined #nixos
<codedmart> That fails complaining about psc-package on line 5.
<codedmart> How do I add it?
<codedmart> Am I going about this wrong?
<srhb> It's not in the haskellPackages set, presumably it's just meant to be some executable?
{`-`} has joined #nixos
otherjrolfs has joined #nixos
nithor has joined #nixos
<codedmart> srhb: Would I better off updating the deps for those so they build with ghc822 and using callPackage?
<srhb> codedmart: I think that's by far the easiest way.
<lejonet> its called with "haskell.lib.justStaticExecutables" in the all-packages.nix so maybe its just a executable as srhb said
asuryawanshi has quit [Remote host closed the connection]
jrolfs_ has joined #nixos
<codedmart> srhb: Is there a way to use that in ghcWithPackages? justStaticExecutables
<srhb> codedmart: I think all you need might be turtle 1.3
<codedmart> srhb: Well purescript has some dep issues as well. So I would need to update those.
<srhb> eek.
nithor has quit [Ping timeout: 276 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #33352: pandoc: fix build by using buildDepends to match cabal file (master...fix/pandoc-2.0.6) https://git.io/vbhgC
NixOS_GitHub has left #nixos [#nixos]
jrolfs_ has quit [Ping timeout: 248 seconds]
otherjrolfs has quit [Ping timeout: 248 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vbhgB
<NixOS_GitHub> nixpkgs/master e80b27f José Romildo Malaquias: pnmixer: 0.7.1 -> 0.7.2
<NixOS_GitHub> nixpkgs/master cb92075 Jörg Thalheim: Merge pull request #33339 from romildo/upd.pnmixer...
NixOS_GitHub has left #nixos [#nixos]
truh has joined #nixos
zzamboni has quit [Quit: Leaving.]
orivej has quit [Ping timeout: 260 seconds]
zzamboni has joined #nixos
amfl_ has joined #nixos
amfl has quit [Ping timeout: 268 seconds]
nithor has joined #nixos
<lejonet> Hmm, is there any nifty way to found out what package a path in the nixstore belongs to? (or is ceph-12.2.2-lib == ceph.lib? when ceph-12.2.2 is just ceph?)
deltasquared has left #nixos ["my internets, no!"]
<srhb> lejonet: Usually all-packages.nix
<lejonet> srhb: hmm, well that doesn't really help with finding out what the /nix/store paths belong to, unless you can go by the logic I defined above that ceph-12.2.2 == ceph and ceph-12.2.2-<something else> == ceph.<something else> e.g. ceph-12.2.2-lib == ceph.lib
<lejonet> because the outputs from ceph is [ "out" "lib" ]
<srhb> lejonet: Where are you seeing ceph-12.2.2-lib ?
<brodul> All my wireless cards stoped working on 18.03pre123588.ade98dc442e kernel
betaboon has joined #nixos
<brodul> if I revert it works
<lejonet> srhb: its another path in /nix/store which I presume was installed by the outputs [ "out" "lib" ] part
<brodul> is that known ?
<srhb> lejonet: Ah, I don't think there's a way to go from store path to attribute.
<srhb> lejonet: Not generally, at least.
<lejonet> (context: I'm trying to clean up the ceph package so its functional and add a services module to it, so its usable too :P )
<lejonet> srhb: damnit :P
<srhb> lejonet: That's awesome, I was going to do that soon!
<srhb> :-)
<lejonet> ^^
<srhb> I got stuck on the terrible compilation times last time
<lejonet> oh, its not too bad
<srhb> *terrible*
<lejonet> xD
<srhb> Like, 40 minutes per go. :P
<lejonet> I haven't timed it, but that is because I'm still figuring out all the parts of the services part
<lejonet> so haven't gotten to the tweaking part yet
zzamboni has quit [Quit: Leaving.]
<lejonet> I'm just going to assume that ceph.lib will point to ceph-<version>-lib path in nix store and hope for the best xD
<srhb> lejonet: It will, yes :)
<clever> lejonet: eval "${ceph}" and "${ceph.lib}" in nix-repl '<nixpkgs>'
<lejonet> srhb: awesome, that is what I actually wanted to know but as I only had the path to deduce stuff from... :P
<lejonet> clever: :D
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
justanotheruser has joined #nixos
<tilpner> Hey clever, do you know what I need to do in nix-shell to realise a erivation? I can make it print the outPath, but that path doesn't exist
<clever> tilpner: pass the derivation via -p instead
<tilpner> Plugging the same string into nix-build (with import <nixpkgs> {}) works
<tilpner> clever - Oh, sorry, I meant nix-repl D:
knupfer1 has joined #nixos
<clever> tilpner: :b
<tilpner> E.g. nix-build -KE 'with import <nixpkgs> {}; buildFHSUserEnv { name = "foo"; }' will produce a directory
<catern> hmmm hmmm, I can't decide whether it's a good thing that Nix is nearly 15 years old and continuously developed for that time, or a bad thing because it hasn't taken off in all that time.
<clever> tilpner: :b buildFHSUserEnv { name = "foo"; }
<lejonet> clever: thank you, nix-repl confirmed it all :D
<tilpner> While "${buildFHSUserEnv { name = "foo"; }}" in nix-repl won't
<catern> in particular I can't decide whether to mention that in my Nix persuasion document :)
knupfer has quit [Ping timeout: 265 seconds]
knupfer1 is now known as knupfer
<clever> tilpner: yeah, that prints the string without forcing its context to exist
<clever> tilpner: but :b will build it
otherjrolfs has quit [Ping timeout: 248 seconds]
jrolfs_ has quit [Ping timeout: 248 seconds]
<tilpner> Thank you! I never saw :b before, is that functionality internal-only, or also exposed to Nix somehow?
<clever> tilpner: i believe it does the same thing as nix-build -A or -E
<codedmart> srhb: Maybe this is a stupid question but if I update psc-package to loosen the turtle dep in my own fork. How do I use my git repo in my default.nix?
<srhb> codedmart: Your nixpkgs git repo?
<srhb> codedmart: { pkgs ? import path/to/your/nixpkgs {} ... }:
<lejonet> srhb: as you were going to look into the ceph parts, got any ideas of how to use the ceph-<daemon>@ units properly in nixos?
<codedmart> No so I just forked psc-package and got it building with a more open version of turtle.
<srhb> lejonet: I don't see any real difference there between other distros and NixOS :)
<codedmart> So how do I get that back into nixpkgs or my default.nix. Easiest way.
<lejonet> srhb: I was thinking more in how to actual realize what you do in other distros, which is just a symlink of the actual instance to the @ unitfile :P
<srhb> codedmart: Easiest way is to produce a default.nix with cabal2nix and callPackage that from your default nix
<srhb> lejonet: What, parameterized units don't Just Work^tm ?
<srhb> lejonet: I thought they would
<lejonet> srhb: well, they do "Just Work"^TM but they need something after @ that populates the %i variable :P
<lejonet> i.e. ceph-osd@0, ceph-osd@1 so on and so forth
<srhb> lejonet: Oh, hm, I was assuming you could just set systemd.service."ceph-osd@{someConfigOption}"
<srhb> But I guess not.
<srhb> Hadn't thought of it!
<srhb> Er, pretend that was proper nix substitution
<lejonet> that might actually work, but don't know enough about the systemd.service thingy to know how to realize that
<srhb> lejonet: Check out, hmm.. modules/services/ttys/agetty.nix ?
phdoerfler has joined #nixos
<srhb> lejonet: Line 87
<lejonet> because the "hacky" way is to just define the service in a variable and then do systemd.services."ceph-osd@${someConfigOption}" = defaultCephOsdService; or something like that
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
<srhb> I guess the real problem is that you want to activate it automatically, not just create it?
<lejonet> Yeah, because "just" creating it is as simple as defining a ceph-osd@ service and then its done
randomstrangerb has quit [Ping timeout: 256 seconds]
<lejonet> but activating ceph-osd@ is not going to work because the %i variable will be "" and the binaries will be sad :P
<srhb> lejonet: Right, but activating it really is as simple. You'll have something like mkIf for every OSD (obviously something nicer that maps over an attrset or something) that sets systemd.service."ceph-osd@{config.somevar}".enable = true
randomstrangerb has joined #nixos
nithor has quit [Ping timeout: 272 seconds]
sary has quit [Quit: Reconnecting]
sary has joined #nixos
<srhb> lejonet: So essentially, if you had an attrset of enabled osds, you'd map a function over that
<srhb> osd: systemd.service."ceph-osd@{osd}".enable = true
<srhb> (essentially)
<srhb> lejonet: does that make sense?
<lejonet> yeah, I have done a services.ceph.{osd,mon,rgw,mds} attrset that so far will have atleast enable, list of daemons and extraConfig in them and my thought was to iterate over that list and create the coresponding service
<srhb> lejonet: As long as you have created the systemd.service."ceph-osd@" parameterized unit already, that will work just as you expect
simendsjo has quit [Ping timeout: 248 seconds]
<lejonet> srhb: I have, awesome!
<gleber_> Ankhers: sorry, but in the end I did not have enough time to look into it today. I travel back home tomorrow and my schedule will get back to normal
otherjrolfs has quit [Ping timeout: 240 seconds]
<lejonet> Then this will be easier than I thought, atleast that part of it :P
jrolfs_ has quit [Ping timeout: 248 seconds]
<srhb> lejonet: Yay! :) Let me know if you need a hand at some point, I've been quite deep into it myself before those compile times got to me.
<lejonet> srhb: hehe awesome :) A quick question then that follows, what is the easiest way to iterate over a list similar to the python for elem in list:
<srhb> map!
<srhb> Or fold.
<lejonet> have a fancy link for docs or code example? :)
<srhb> Depending on what you're producing.
<srhb> lejonet: map is a builtin I think, so no. map (x: x+1) [ 1 2 3 ] = [ 2 3 4 ]
<srhb> lejonet: For other list functions: https://github.com/NixOS/nixpkgs/blob/master/lib/lists.nix
<lejonet> sweet, that will work :D (is there anyway to get that with a index too?)
<srhb> lejonet: and in the same directory you find things for attrsets and so on
<srhb> imap
<lejonet> :D big thanks!
<srhb> er, imap0 and imap1
<srhb> (cue indexing meme)
<lejonet> then I'll have something to fiddle with to get something that works, that I can send a PR for
<srhb> lejonet: Ping me when you do? :)
<lejonet> srhb: will do, if you want to see what I've got so far you'll find it at github.com/lejonet/nixpkgs, branch ceph
ambro718 has quit [Quit: Konversation terminated!]
<lejonet> (I've also got on my todo list to squash my sheepdog branch into 3 commits so its easier for the reviewer)
<srhb> lejonet: Here's some more docs on some of those functions: https://nixos.org/nix/manual/#ssec-builtins
<lejonet> nice, I've had a hard time finding docs for that, but that is most likely a combination of searching for nixos and not nix and weak google-fu :P
<srhb> uh.. Does the derivation just build after you bumped that version?
<srhb> Oh, no
<srhb> Missed some commits :-)
<srhb> I was like wat, it didn't when I tried on 11.
<lejonet> haha :P
nithor has joined #nixos
<lejonet> it wasn't much to do at all honestly, and I shamelessly stole like 95% of it from https://github.com/NixOS/nixpkgs/issues/26236
zzamboni has joined #nixos
<srhb> Great.. :)
<lejonet> (which I'm ofc going to credit in the pr ^^ )
Turion has left #nixos [#nixos]
<lejonet> But I haven't commited the services ceph.nix yet tho, because I want something that might actually work for the first commit, so that it isn't 98234 tinneh commits to squash in the end :P
otherjrolfs has joined #nixos
jrolfs_ has joined #nixos
<srhb> lejonet: OK! :) Again, I'll be happy to help out with the service or writing tests or whatnot once you get there :)
<lejonet> srhb: will give you a holler once I've actually got something that doesn't throw errors or explosives at me :)
<lejonet> the compile works fine with both 10.2.7 and 12.2.2, with sandbox and all that fanciness atleast
nithor has quit [Ping timeout: 252 seconds]
otherjrolfs has quit [Ping timeout: 264 seconds]
jrolfs_ has quit [Ping timeout: 268 seconds]
phdoerfler has quit [Quit: Leaving.]
asuryawanshi has joined #nixos
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nixos
asuryawanshi has quit [Ping timeout: 252 seconds]
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
michaelpj_ has joined #nixos
nithor has joined #nixos
rihards has quit [Quit: rihards]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar closed pull request #33335: irker: cleanup manual setting of XML_CATALOG_FILES, no longer needed (master...fix/irker-xml-catalog-files) https://git.io/vbhIi
NixOS_GitHub has left #nixos [#nixos]
ebzzry has joined #nixos
otherjrolfs has joined #nixos
jrolfs_ has joined #nixos
michaelpj_ has quit [Remote host closed the connection]
<ebzzry> gchristensen: hello
nithor has quit [Ping timeout: 255 seconds]
lfish has quit [Quit: Page closed]
<dhess> ebzzry: hi, I think LnL wanted you to file a Github issue on that Mac installer problem you're having.
<LnL> oh you're back :)
michaelpj_ has joined #nixos
<LnL> ebzzry: what was the error again?
otherjrolfs has quit [Ping timeout: 260 seconds]
jrolfs_ has quit [Ping timeout: 272 seconds]
hiroshi- has joined #nixos
<codedmart> srhb: OK I generated a default.nix of psc-package with cabal2nix and am now trying to use callPackage in my env default.nix but am getting this anonymous function at ../psc-package/default.nix:1:1 called without required argument ‘mkDerivation’
rihards has joined #nixos
hiratara has quit [Ping timeout: 240 seconds]
hiroshi has quit [Ping timeout: 256 seconds]
hiroshi- is now known as hiroshi
hiratara has joined #nixos
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
michaelpj_ has quit [Remote host closed the connection]
zzamboni has quit [Quit: Leaving.]
Baughn has joined #nixos
<lejonet> codedmart: sounds like you forgot to add some input, it can't find the function mkDerivation with the input you've given it
<lejonet> iirc you need to give it libs for that
nithor has joined #nixos
<codedmart> lejonet: Do I need to pass something to callPackage? Or something else. I never remember what to do and every time I google things seem out of date or changed.
<lejonet> codedmart: maybe need to inherit lib? So that callPackage can access the mkDerivation function
<lejonet> (I think its lib that defines that)
<lejonet> Hmm, I solved a similar issue not long ago, but can't for the life of me remember what or how I solved it
<lejonet> iirc it was a with <bla>; or inherit <bla>; that I had to add
michaelpj_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #33354: deepin-gtk-theme: 17.10.4 -> 17.10.5 (master...upd.deepin-gtk-theme) https://git.io/vbhil
NixOS_GitHub has left #nixos [#nixos]
<codedmart> lejonet: to the default nix I created or when I callPackage?
<ebzzry> dhess: I did file a GitHub issue.
<ebzzry> dhess: It is #33308
nico202 has joined #nixos
<lejonet> codedmart: I think to the default nix you created
<ebzzry> LnL: I filed it under #33308
<dhess> ebzzry: cool
<ebzzry> dhess: yup
otherjrolfs has joined #nixos
mizu_no_oto has joined #nixos
rihards has quit [Quit: rihards]
otherjrolfs has quit [Ping timeout: 248 seconds]
michaelp- has joined #nixos
otherjrolfs has joined #nixos
michaelpj_ has quit [Ping timeout: 265 seconds]
dan_b has joined #nixos
jrolfs_ has joined #nixos
orivej has joined #nixos
michaelp- has quit [Ping timeout: 248 seconds]
<LnL> ebzzry: don't see anything useful, can you run it again with bash -x install-darwin-multi-user
<ebzzry> LnL: Ok. I will.
stepcut has quit [Remote host closed the connection]
<ebzzry> LnL: Is 'install-darwin-multi-user' a file somewhere, or it is actually 'install'
jrolfs_ has quit [Ping timeout: 248 seconds]
stepcut has joined #nixos
<LnL> it's in the tarball
otherjrolfs has quit [Ping timeout: 264 seconds]
<ebzzry> LnL: Ok
chrissound has joined #nixos
chrissound has quit [Remote host closed the connection]
chrissound has joined #nixos
stepcut has quit [Ping timeout: 248 seconds]
<chrissound> I've managed to install 'qterminal' using nix-env -i, however I can't seem rebuild successfully adding it to my nix config files. If anyone has any suggestions how to investigate. Essentially the error is "undefined variable ‘qterminal’ at /etc/nixos/chris.nix:18:6"
szicari has quit [Ping timeout: 248 seconds]
otherjrolfs has joined #nixos
jrolfs_ has joined #nixos
<mekeor> chrissound: how does that line look like?
<tilpner> chrissound - Try adding pkgs.lxqt.qterminal
<tilpner> chrissound - nix-env -i searches by name, not by attribute path (and should IMO be avoided)
<tilpner> (In favor of nix-env -iA, which searches by attribute path)
<chrissound> Just "qterminal", there is a list of other packages so I do think it's the pkgs.lxqt.qterminal - I'm guessing this is an additional channel I have to add?
otherjrolfs has quit [Ping timeout: 248 seconds]
<tilpner> Nope, not another channel
jrolfs_ has quit [Ping timeout: 240 seconds]
<tilpner> Did you try it?
<ebzzry> LnL: I updated the issue with the output of that command
<andromeda-galaxy> is there a reasonable way to convert between cidr notatation (for example aaa.bbb.ccc.0/24) and netmasks (for example 255.255.255.0) inside nix expressions? I'm doing nixos config for networking and don't want to require both to be specified. If that's too specific, are there functions for parsing/formatting ints at different bases? Those would be enough to make it quite easy
<tilpner> Depending on your configuration.nix, lxqt.qterminal may suffice too (if you have with pkgs; in the right place)
<chrissound> tilpner, not too sure where to add that to. I'm pretty new to Nix - should I be reading something under the manual?
hiratara has quit [Quit: ZNC - http://znc.in]
<tilpner> chrissound - What is chris.nix? Please paste it to gist.github.com, so I can see what might be wrong
hiratara has joined #nixos
zzamboni has joined #nixos
<LnL> ebzzry: does /nix/store exist on the system?
<tilpner> chrissound - Okay, remove qterminal from below firefox, then add lxqt.qterminal under firefox
<chrissound> Awesome that works!
<ebzzry> LnL: No.
<ebzzry> LnL: Also, I purge everything nix with 'udo rm -rf /etc/nix /nix /var/root/.nix-profile /var/root/.nix-defexpr /var/root/.nix-channels /Users/mel/.nix-profile /Users/mel/.nix-defexpr /Users/mel/.nix-channels' prior to re-running anything.
<LnL> ok
<petersjt014[m]> Has anybody ever gotten nixos to run on a raspi zero?
simukis has quit [Ping timeout: 260 seconds]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #33356: plasma: 5.11.4 -> 5.11.5 (master...plasma-5_11_5) https://git.io/vbhME
NixOS_GitHub has left #nixos [#nixos]
mr_sm1th__ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<petersjt014[m]> either way
mr_sm1th has joined #nixos
* petersjt014[m] uploaded an image: image.png (29KB) <https://matrix.org/_matrix/media/v1/download/matrix.org/GblqVFrjgkwgrLNNtJXXGaUr>
<petersjt014[m]> im about to find out if it works
<petersjt014[m]> taking all bets
otherjrolfs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bnikolic opened pull request #33357: Correct derivation of pthreads on mingw64 (staging...mingw64-pthreads) https://git.io/vbhMH
NixOS_GitHub has left #nixos [#nixos]
jrolfs_ has joined #nixos
<petersjt014[m]> all the instructions I found seemed to suggest that little to no experimentation has been done on the zero specifically
a_lebedev has joined #nixos
<petersjt014[m]> hence the extra sense of adventure
<petersjt014[m]> and chance of bricking stuff
<LnL> ebzzry: what does type -p rsync say?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> nixpkgs/master b33b4a7 José Romildo Malaquias: xkbmon: init at 0.1
<NixOS_GitHub> [nixpkgs] jtojnar pushed 1 new commit to master: https://git.io/vbhMp
NixOS_GitHub has left #nixos [#nixos]
<petersjt014[m]> welp a checksum match failed. hmm.
nico202 has quit [Quit: Leaving]
<ebzzry> LnL: 'rsync is /usr/bin/rsync'
<niksnut> k0001: easiest is to grab nixUnstable from nixpkgs and use that to build nix git
<andi-> petersjt014[m]: is the zeor like a rpi3 just without the vga/wired network part?
<petersjt014[m]> Not sure. It does have wifi (I'm using the zero W) and it's running armv6l
<petersjt014[m]> If the arch is the same I cant see any reason why it wouldn't work
<dhess> Anyone around who's gotten NixOS running on a Scaleway host?
amfl_ is now known as amfl
<petersjt014[m]> still, haven't found anybody who has tried this with the zero
<dhess> I need more armv7l-linux build hosts :(
<petersjt014[m]> dhess: did you look here?
<LnL> ebzzry: don't get it, maybe gchristensen notices something stranage
<ebzzry> LnL: Ok
knupfer has quit [Ping timeout: 265 seconds]
<dhess> petersjt014[m]: actually, no, not specifically for Scaleway support. Thanks for the reminder that that page exists.
<dhess> huh. Why didn't that show up in Google searches?
betaboon has quit [Ping timeout: 260 seconds]
<dhess> sounds like that won't work with the C1 servers, though. Hmm.
<LnL> ebzzry: maybe you can try going through the commands manually
<ebzzry> LnL: Ok
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #33351: rssguard: 3.4.2 -> 3.5.5 (master...update-rssguard-3.5.5) https://git.io/vbhuQ
NixOS_GitHub has left #nixos [#nixos]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 opened pull request #33358: haskell infra, ghc: Start to fix cross compilation without changing hashes (master...cross-haskell-samehash) https://git.io/vbhDr
NixOS_GitHub has left #nixos [#nixos]
jrolfs_ has quit [Ping timeout: 248 seconds]
otherjrolfs has quit [Ping timeout: 248 seconds]
nithor has quit [Ping timeout: 255 seconds]
huva has joined #nixos
nuncanada has joined #nixos
knupfer has joined #nixos
phdoerfler has joined #nixos
<samueldr> it is unclear, with the words used, whether it is supposed to work or not
<dhess> samueldr: yeah, that page I have seen. Not particularly helpful.
<dhess> exactly :)
<samueldr> though, the author is Volth, if anyone has means to contact them
<dhess> Hmm, my Hydra is stuck with a "waiting for build slots" when there are no active jobs. Is this a known thing and is there a "best known hack" to get it going again?
<dhess> err technical there is an active job, it's the one that's stuck. What I mean is that there are no other builds going on and the target build host is idle.
nithor has joined #nixos
jrolfs_ has joined #nixos
otherjrolfs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bnikolic opened pull request #33359: boost: do not enable numpy unless explicit argument is set (staging...boostnumpy) https://git.io/vbhSe
NixOS_GitHub has left #nixos [#nixos]
<dhess> it's a bunch of stuck nix-daemon jobs
otherjrolfs has quit [Ping timeout: 248 seconds]
wchresta[m] has joined #nixos
jrolfs_ has quit [Ping timeout: 248 seconds]
<clever> dhess: is localhost in /etc/nix/machines?
dan_b has quit [Ping timeout: 240 seconds]
alexteves has quit [Ping timeout: 248 seconds]
jmeredith has joined #nixos
<dhess> clever: no, I gave up on that awhile ago :)
<dhess> My hydra master is not a build machine now
<dhess> clever: I got it to restart, after a bunch of kicking and prodding.
a_lebedev has quit [Ping timeout: 263 seconds]
<dhess> clever: These jobs seem to accumulate over days and eventually bring things to a grinding halt. Not sure what's going on: /nix/store/nawhm4zsi64af5abb0x5y0kickfarpqd-perl-5.24.3/bin/perl -w -I/nix/store/0g72whyvcgc3vxmgkvahcy259c2gs2v4-nix-1.11.1 /nix/store/0g72whyvcgc3vxmgkvahcy259c2gs2v4-nix-1.11.16/libexec/nix/substituters/download-from-binary-cache.pl --query
<clever> thats checking the binary cache
<dhess> yeah
chrissound has quit [Quit: Leaving]
<dhess> I have a somewhat stale local binary cache, pre-Hydra, that I should probably remove from the list.
<dhess> that local binary cache is hosted on the x86_64-linux remote builder.
<dhess> I should switch it to the Hydra
<dhess> but I'm not sure whether that's related to the problem.
<dhess> dammit, it's stuck again
<dhess> and this time there are plenty of idle nix-build slots
<bgamari> Is there a variant of `passthru` that is in scope when the builder is run?
<LnL> wouldn't that be cheating?
<bgamari> yes
<LnL> :p
<bgamari> It most certainly would
<bgamari> but I don't want my 10 hour build rebuilding when I change my build concurrency level
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 closed pull request #26883: linux bootstrap tools: Use same derivation whether cross compiling or not (master...linux-make-bootstrap-tools) https://git.io/vQGwO
NixOS_GitHub has left #nixos [#nixos]
<bgamari> how is $CORES implemented?
coot_ has quit [Quit: coot_]
asuryawanshi has joined #nixos
<LnL> there's impureEnvVars
asuryawanshi has quit [Ping timeout: 240 seconds]
steshaw has joined #nixos
<bgamari> LnL, is there a means of setting the variable from within the derivation?
<LnL> not that I know of
coot_ has joined #nixos
TonyTheLion has quit [Ping timeout: 260 seconds]
coot_ has quit [Client Quit]
* bgamari does wish nix had a few more escape hatches
<bgamari> it's a great build system for batch jobs, but it's far too easy to changes hashes with inconsequential changes
<dhess> rebooting the remote builder did the trick
johnw has quit [Read error: Connection reset by peer]
pjan_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adnelson opened pull request #33360: haskellPackages.lzma: loosen version bounds for test dependencies (master...unpin_lzma_versions) https://git.io/vbhQQ
NixOS_GitHub has left #nixos [#nixos]
sigmundv has quit [Ping timeout: 268 seconds]
sigmundv has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 pushed 1 new commit to master: https://git.io/vbh7K
<NixOS_GitHub> nixpkgs/master 2b4502c John Ericson: Merge @LnL7's pharo-vm darwin eval fix from staging...
NixOS_GitHub has left #nixos [#nixos]
zzamboni has quit [Quit: Leaving.]
c0ffee152 has joined #nixos