andi- changed the topic of #nixos to: NixOS stable: 19.09 \o/ https://discourse.nixos.org/t/nixos-19-09-release/4306/2 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || use ,channels for a list of Nix* related channels || nixcon videos: https://tinyurl.com/nixcon2019 || Link to the output of nix-info
<ottidmes> lol, guess I have to filter nix.buildMachines on host, cause now it is delegating the building... to itself, causing a lock
sleepingforest has quit [Client Quit]
<{^_^}> [nixpkgs] @c00w opened pull request #83253 → treewide Drop unneeded go 1.12 overrides → https://git.io/Jvyuk
sleepingforest has joined #nixos
cr4y1 has quit [Ping timeout: 258 seconds]
mbrgm has quit [Ping timeout: 272 seconds]
mbrgm has joined #nixos
maddo has quit [Quit: See ya]
sleepingforest has quit [Client Quit]
cosimone has joined #nixos
sleepingforest has joined #nixos
organixpear has joined #nixos
ixxie has quit [Ping timeout: 264 seconds]
sleepingforest has quit [Client Quit]
sleepingforest has joined #nixos
zeta_0 has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
<zeta_0> does nix-shell inherit environment variables automatically from home.nix, or will i need set them manually in default.nix?
<clever> zeta_0: nix-shell will inherit vars from whatever shell its ran in, plus the shell.nix/default.nix file
<clever> zeta_0: --pure will stop that inheriting
sleepingforest has quit [Quit: bye!]
<{^_^}> [nixpkgs] @aanderse opened pull request #83254 → nixos/mysql: fix service so it works with mysql80 package [20.03 backport] → https://git.io/Jvyuw
sleepingforest has joined #nixos
<zeta_0> clever: oh, i've always wondered what --pure meant
<energizer> when they say nix is pure, which parts are they talking about?
<zeta_0> clever: i just start contributing to the darcs open source project, but i am having problems configuring darcs in a default.nix file to run in a nix-shell, here's what my default.nix file looks like so far: https://hastebin.com/uturerewam.bash
sleepingforest has quit [Quit: bye!]
<energizer> cuz it seems like i can import arbitrary paths, make network requests, and write to places on disk
pjan has quit [Remote host closed the connection]
<zeta_0> clever: i'm just not sure how and where to set the needed environment variable?
<zeta_0> i'm confused
sleepingforest has joined #nixos
<GodZalo> hi all, I'm trying to cross compile a raspberry pi 3 image, but I'm getting an error during build (something with texinfo-6.5), can someone help me? everything is here https://gist.github.com/SrGodZalo/ac9c7a0d32fbfdea98a69fe9f982b50c
Ilya_G has joined #nixos
<ottidmes> there is still no setting to say, do not error if substitutor is missing, right?
<zeta_0> clever: the people in #darcs don't understand nix to well, that's why i'm asking here in #nixos
<Ilya_G> I am trying to run multiple instances of a service in systemd essentially from template. In my configuration.nix I have `systemd.services.my_service_name`
<clever> zeta_0: what are you trying to do?
<Ilya_G> I found recommendation in regular linux to create a `my_service@.service` file as configuration
<clever> Ilya_G: one minute
<Ilya_G> @clever: thank you
vandenoever has quit [Ping timeout: 250 seconds]
rardiol_ has joined #nixos
iqubic has joined #nixos
<clever> Ilya_G: basically, systemd.services."foo@" = ...; to define the template, and systemd.services."foo@bar".wantedBy to spawn an instance, i think
<zeta_0> clever: i want to build darcs with cabal in a nix-shell but, in order to contribute to the darcs open source project, to build darcs from scratch with cabal, it requires some dependencies(haskell and non-haskell dependencies) and an environment variable setup for it to work: http://darcs.net/Development/GettingStarted
rardiol has quit [Ping timeout: 256 seconds]
<zeta_0> clever: i think i just need to finish setting up the environment variable, then i should be good to go
<clever> zeta_0: what happens if you simply `nix-shell '<nixpkgs>' -A haskellPackages.darcs.env` and try to `cabal configure` ?
sleepingforest has quit [Quit: bye!]
captjakk has quit [Remote host closed the connection]
sleepingforest has joined #nixos
<ottidmes> clever: I was thinking just now, the one thing I hate about substitutors is that they do not allow any failure. In the past I patched most commands to dynamically set them, which works, but that's less than ideal. How difficult would it be to make a custom cache on my router that then redirects to substitutors that are live?
<zeta_0> clever: let me know if i'm missing anything or doing something incorrect in my default.nix file, your the nix expert, i'm the layman
<zeta_0> clever: hold on, give me a second to run that command
<Ilya_G> clever: would I be able to read bar as a parameter inside the configuration?
<clever> ottidmes: cachecache could be modified to dynamically change the list of upstream caches
<Ilya_G> I want to be able to send port address which this service instance is going to be listening to.
ddellacosta has joined #nixos
<clever> Ilya_G: systemd will replace %i with bar within the .service files
<clever> Ilya_G: you can see containers.nix using %i everywhere
captjakk has joined #nixos
<Ilya_G> Very cool, so it maps from regular Linux systemd. Ok I'll give it a whirl.
<ottidmes> clever: yeah, I was thinking that, just wondering how hard that would be, or is any machine running nix-daemon already a cache if you want it to be? (as in, how difficult would it be to upstream to say my desktop)
<energizer> has anybody compared the collection of packages in nixpkgs to those in other package repos to see how many things debian/arch/conda/... have that nixpkgs doesn't?
<clever> ottidmes: you can add ssh://user@host as a substitutors
<ldlework> energizer: it's not the size of the package repository, it's how you use it
<ottidmes> clever: I am using ng-ssh:// (from the wiki), or is that now outdated, but would using that just work with cachecache if I make it work with a dynamic list?
<clever> ottidmes: currently, cachecache only supports the http protocol
sleepingforest has quit [Client Quit]
<energizer> ldlework: sure, but i just used conda to get something and i wish i didn't have to
sleepingforest has joined #nixos
<ottidmes> clever: guess I could use nix-serve for that though, right?
<clever> ottidmes: nix-serve would convert a normal /nix/store into an http cache
<ottidmes> clever: which then would make it easier to tweak cachecache to get the behavior I want, right? If so, I will give it a try, if not, getting other protocols to work seems a bit to daunting for a nice to have feature
KeiraT has quit [Ping timeout: 240 seconds]
<clever> ottidmes: currently, cachecache is close to just a dumb http cache, with a little bit of inteligence around the http/narinfo protocol
<clever> ottidmes: nar.xz files are cached to a dir, and it can query multiple upstream sites to find one
<clever> ottidmes: narinfo files are cached to ram, for faster lookup
<clever> ottidmes: https://github.com/cleverca22/cachecache/blob/master/cachecache.hs ctrl+f the code for upstreamCaches, and youll see how it currently uses the list of caches
KeiraT has joined #nixos
<{^_^}> [nixpkgs] @Ma27 pushed to master « parallel: 20200222 -> 202003222 »: https://git.io/Jvyuj
<clever> ottidmes: 344 will try each one in turn, until one of them gives a narinfo, and 358 will try each in turn until one gives a nar.xz
<clever> ottidmes: and 268 is a hard-coded list of caches
<clever> ottidmes: but you could change it to be a TVar over a list, and then you can modify it or just read
owenowen has quit [Remote host closed the connection]
captjakk has quit [Remote host closed the connection]
<ottidmes> clever: Awesome! Seems simple enough to implement :)
<ottidmes> clever++
<{^_^}> clever's karma got increased to 362
organixpear has quit [Quit: leaving]
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to gnome-3.36: https://git.io/JvyzU
<clever> ottidmes: then you just need some means of causing it to update, either errors and timeouts, or a servant+rest api
<ottidmes> clever: I think my router is perfect for that, it will know when a machine is live or not
<ottidmes> The awesomeness that is NixOS on a router :)
<ottidmes> Allows these kind of things
<clever> ottidmes: ah, run nix-serve on each machine, then dynamically point cachecache to all of them
<clever> ottidmes: for that, i would do something close to what hydra does, have a json file that details all machines
<ottidmes> clever: exactly
<clever> ottidmes: and then a thread in haskell (maybe using inotify) that will watch the json for changes
<clever> ottidmes: and re-configure itself dynamically
<clever> ottidmes: and use writes to a tmp file + rename() to atomicly update the json file
<ottidmes> Was thinking on how to do that, but that seems like an easy solution to that, yes
abathur has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @jtojnar pushed 1000 commits to staging-next: https://git.io/Jvyzk
<ottidmes> clever: why would in this case the atomic update matter too much?
<{^_^}> [nixpkgs] @jtojnar pushed 147 commits to staging: https://git.io/JvyzL
<zeta_0> clever: am i supposed to run those commands inside of a cloned darcs repository?
<clever> ottidmes: you may read the json file in the middle of the json being written, and only get half the json data
<clever> zeta_0: yes
<kalbasit> https://howoldis.herokuapp.com/ does not work anymore? :(
<ottidmes> clever: right, fair enough, I rarely consider such edge cases
<ottidmes> kalbasit: is now status.nixos.org
<kalbasit> 🤩
<kalbasit> nice!
<ottidmes> whoever maintains it should really make a redirect
<kalbasit> yea
sleepingforest has quit [Quit: bye!]
sleepingforest has joined #nixos
<ottidmes> clever: just for my understanding the rename trick makes it work because it will have a different inode, right?
<clever> ottidmes: it will have a different inode and last-mod timestamp
<ottidmes> thinking of atomic, I always think of atomic commits, but what you mean is more like immutability, where your data you received does not change due to something else
<clever> ottidmes: i'm thinking more in terms of the change either didnt happen, or fully happened
<clever> ottidmes: no middle ground where you see half a change
srid has joined #nixos
mbrgm_ has joined #nixos
mbrgm_ has joined #nixos
mbrgm_ has quit [Changing host]
mniip has quit [Ping timeout: 600 seconds]
<srid> `callPackage foo { }` <- why does this not respect the default values for arguments in foo/default.nix?
Maxfire has quit [Quit: Textual IRC Client: www.textualapp.com]
<clever> srid: the defaults are for when they cant be found under pkgs
<ottidmes> srid: could you eleborate, what do you mean with does not respect the default values, if it refers to anything not in the package set, only then will defaults be used
mbrgm has quit [Ping timeout: 272 seconds]
`_ has joined #nixos
<srid> `callPackage neuron { }` doesn't seem to set `name` (to "neuron"), for example.
<zeta_0> clever: ok it seems to work, does haskellPackages.darcs.env include everything that i need or will i still need a default.nix file for the nix-shell? https://hastebin.com/ixubokeliy.sql
<clever> zeta_0: it probably includes everything you need
<clever> zeta_0: thats what nixpkgs is using to compile darcs
<srid> clever: not sure what the relevance of `pkgs` here is. The default.nix link I provided above has arbitrarily named arguments
<clever> srid: when you use pkgs.callPackage, it will search for each of those args, in pkgs
<srid> or maybe I should be using something *other than* `callPackage` here? After all, `nix-env -fi` works, and I want to install this thing using home-manager.
<srid> Ah
<clever> srid: maybe just `import ./foo {}` then?
<clever> > pkgs.root
<{^_^}> "<derivation /nix/store/wv0p58b779mggx4w4yi7n9ba45ghsr94-root-6.18.04.drv>"
<srid> right!
<clever> srid: so root is getting replaced with this
<clever> srid: and what does rib do when you give it the wrong root?
<srid> Well, since there is no `pkgs.rib`, I suppose the default is being used here for `rib`?
<clever> yeah
<colemickens> how do I determine what kernel module to force include in the initrd to get networking in initrd on my rpi4? I havne't managed to figure it out yet AFAICT
<srid> (typically I override rib using `nix-shell --arg rib ../rib`)
<srid> clever++
<{^_^}> clever's karma got increased to 363
<clever> colemickens: do you see genet in lsmod?
<ottidmes> On one of my Nix projects I have been told to improve it by making a Makefile, but if it is something like I have now: https://gist.github.com/msteen/5ebe0cdda8ac7520b0d4934b6b3ce277 how would you even go about making it into a Makefile, other than the mkdir/chmod, the rest is stdenv/makeWrapper specific
<colemickens> clever: when its booted normally in nixos, with working ethernet, "lsmod | rg genet" returns nothing. I had tried this last night as well.
mniip has joined #nixos
<colemickens> Which made me think maybe support is built in? But if that were the case, I should've seen it attempt to configure on boot, there is definitely an explicit "echo"
<clever> colemickens: what about `modinfo genet` ?
<colemickens> modinfo: ERROR: Module genet not found.
<colemickens> [cole@raspberry:~]$ ls /sys/class/net/eth0/device/driver
<colemickens> bind fd580000.genet uevent unbind
<colemickens> ?
<colemickens> This is a bit deeper in Linux than I normally go. I'm a bit turned around.
<clever> colemickens: and what about ls /sys/module/genet/ ?
<colemickens> [cole@raspberry:~]$ ls /sys/module/genet/
<colemickens> parameters uevent
<colemickens> maybe this is an rpi_kernel oddity?
<clever> colemickens: so the genet module is present, but if modinfo cant find it, it must be compiled into the kernel
<colemickens> okay, I see, thanks for that detail
<`_> I've identified a very peculiar bug.
<clever> colemickens: no need to do anything special then, it should just work in the initrd
<clever> colemickens: ive also looked into the hw of it some, and the genet doesnt have any firmware
<{^_^}> [nixpkgs] @bhipple opened pull request #83255 → [20.03] pythonPackages.flake8-future-import: 0.4.5 -> 0.4.6 and fix build → https://git.io/Jvyz9
* colemickens is increasingly concerned he's making a more basic mistake somewhere
<clever> colemickens: try getting a shell in the initrd, and then do `ip link`
growpotk- has joined #nixos
sigmundv_ has quit [Ping timeout: 250 seconds]
<colemickens> yeah, I wish the stage-1 trap function gave an option to drop to shell instead of just continue/reboot
<colemickens> would that be a sensible thing to add while I'm at this?
<clever> colemickens: it can already do that, but you have to authorize it with a kernel cmdline flag
<colemickens> Got it. Okay.
<clever> 151 boot.shell_on_fail)
<clever> colemickens: add boot.shell_on_fail to the cmdline, and then a shell will be added to the menu
<clever> colemickens: boot.debug1 and other debug ones (read the script) will also force a false failure at various points, letting you get a shell early
<bqv[m]> ottidmes: gh:bqv/nixflk
cosimone has quit [Quit: Quit.]
<`_> Perhsp I haven't identified a peculiar bug
<`_> But I've identified a peculiarity.
<`_> Nope, I've identified that I'm doing something wrong
<bqv[m]> Oh shit it worked, I now have my full system as a flake, with nothing broken
<ottidmes> bqv[m]: I got sent that link in #nixos-chat, is indeed the best resource I have seen so far
<zeta_0> clever: that's great, can i place haskellPackages.darcs.env in a generic haskell default.nix file like this(line 17)? https://hastebin.com/oradolahud.bash
<ottidmes> bqv[m]: gratz! how hard was it?
<{^_^}> [nixpkgs] @bhipple opened pull request #83256 → [20.03] pythonPackages.mkl-service: 2.1.0 -> 2.3.0 → https://git.io/Jvygv
<bqv[m]> Not at all, really
butterthebuddha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zeta_0> clever: will that work, i'm not sure about nix's syntax in this case?
<bqv[m]> Gonna seal it io stone with a reboot…
<ottidmes> bqv[m]: its next on my list to do, so that is good to hear
<clever> zeta_0: no
<clever> zeta_0: you need to point nix-shell directly to darcs.env, not add it to the buildInputs of something else
<bqv[m]> Hope it goes well
<clever> zeta_0: but you can do darcs.env.overrideAttrs (old: { ... }) to extend the buildInputs further
<bqv[m]> Biggest issue I had was importing my old config wrong and ending up with a blank system
<bqv[m]> And then building emacs kept segfaulting nix
butterthebuddha has joined #nixos
GodZalo has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvygI
alexherbo2 has joined #nixos
<ottidmes> bqv[m]: what did you do to prevent the segfault? different version of nix?
<bqv[m]> Hm, this may be unrelated but my amdgpu crashed when I rebooted… that's a bit of a yikes
butterthebuddha has quit [Client Quit]
<bqv[m]> ottidmes: I built the rest of my system first, then it magically worked
ddellacosta has quit [Ping timeout: 240 seconds]
<ottidmes> bqv[m]: know that on kernel 5.5.8 amdgpu is working well for me, but it will depend on the GPU of course too, I got a RX 5700 XT myself
butterthebuddha has joined #nixos
wavirc22 has quit [Read error: Connection reset by peer]
gustavderdrache has quit [Quit: Leaving.]
Guest30 has joined #nixos
<{^_^}> [nixpkgs] @rail opened pull request #83257 → znapzend: 0.18.0 -> 0.20.0 → https://git.io/JvygY
<zeta_0> clever: ok, i would like to use darcs.env.overrideAttrs (old: { ... }) to extend the buildInputs further, like this? https://hastebin.com/ujufijumur.bash https://hastebin.com/oradolahud.bash
<zeta_0> clever: i just changed pkg to darcs
wavirc22 has joined #nixos
<ottidmes> bqv[m]: I am going offline now, but thanks for letting me know flakes worked out for you! Gives me some hope I will be able to get them to work for me too
<Guest30> It seems like grub extraInitrd doesn't work for fresh nixos installation via nixos-install. https://discourse.nixos.org/t/extrainitrd-doesnt-play-well-in-fresh-nixos-installation/6390/
sleepingforest has quit [Quit: bye!]
<zeta_0> clever: is this what you mean?
sleepingforest has joined #nixos
<clever> zeta_0: you may be able to just ditch compiler.developPackage entirely, and use darcs.env.overrideAttrs by itself
sleepingforest has quit [Remote host closed the connection]
sleepingforest has joined #nixos
<bqv[m]> ottidmes: no prob
<bqv[m]> I'm actually back to nix segfaulting, lol
<bqv[m]> But I think amdpu was just broken cause I was on linux_latest
<{^_^}> [nixpkgs] @mmilata opened pull request #83258 → nixos/sympa: fix outgoing emails, update package version → https://git.io/Jvygl
<OmnipotentEntity> May I get a review on my PR? https://github.com/NixOS/nixpkgs/pull/82082
<{^_^}> #82082 (by OmnipotentEntity, 2 weeks ago, open): katago: init at 1.3.3
ottidmes has quit [Ping timeout: 256 seconds]
m0rphism has quit [Ping timeout: 256 seconds]
<zeta_0> clever: i don't want to change anything in my default.nix, i just want to be able to place haskellPackages.darc.env in my default.nix, is there an easy way to do this?
<clever> zeta_0: you could change only the shell.nix file
organixpear has joined #nixos
<zeta_0> clever: could you pastebin a link? i'm not sure what you mean(also, which shell.nix file are you talking about?)
<clever> zeta_0: create a shell.nix that has only: with import <nixpkgs> {}; haskellPackages.darcs.env
<clever> zeta_0: then just run nix-shell
<zeta_0> clever: pastebin how you would change the default.nix file
<clever> zeta_0: ignore default.nix entirely
<organixpear> i have install nix on an lfs build and it works. however, everyone can use commands like 'nix-env -i foo' and it will work. i would prefer to have this functionality for root only. presently i have nix-daemon running along with the nixbld users added. i have run chown -R root:root /nix (the store) along with /var/nix. what am i doing wrong?
<clever> organixpear: allowed-users in nix.conf can be used to restrict it
<OmnipotentEntity> organixpear, jfyi, nix-env works for local users, but it will only modify the /nix/store and the user's profile. Are you worried about users filling up your disk?
<organixpear> clever: i will look into that
<zeta_0> clever: ok, here's the shell.nix: https://hastebin.com/owexaberes.css
<organixpear> OmnipotentEntity: disk space is some concern. i had just read that in the actual nixos nix-env -i operations are restricted to the root user only, so i wanted to have my system following that as well.
<OmnipotentEntity> That's not actually true, I can nix-env -i foo without being root
<OmnipotentEntity> it will install foo just for me though
<OmnipotentEntity> In fact, that's how I test my nixpkg contributions
<zeta_0> clever: does haskellPackages.darcs.env automatically come with tools like ghc865 and cabal-install, i thought i would have to set them up manually like in my default.nix file?
<organixpear> that's good to know. just as a side not i think i read that tidbit in the nix manual
<clever> zeta_0: it will come with whatever ghc is default for haskellPackages
<OmnipotentEntity> If you can find a link, I can file a bug on the documentation
<clever> zeta_0: if you want to force 865, use haskell.packages.ghc865.dars.env
<organixpear> i'll go through my history
<clever> zeta_0: for cabal-install, use .overrideAttrs to add cabal-install to the buildInputs
<OmnipotentEntity> thanks organixpear
wiml has joined #nixos
<OmnipotentEntity> averell, please forgive the ping if I have the wrong person. But are you the package maintainer of Leela Zero?
butterthebuddha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
butterthebuddha has joined #nixos
captjakk has joined #nixos
butterthebuddha has quit [Client Quit]
wiml has quit [Quit: wiml]
drakonis has quit [Quit: WeeChat 2.7.1]
growpotk- has quit [Ping timeout: 264 seconds]
justanotheruser has quit [Ping timeout: 246 seconds]
wiml has joined #nixos
<zeta_0> clever: i am not sure how to do this with .overrideAttrs? here's what i have so far in the shell.nix: https://hastebin.com/ocesagodig.js
<clever> zeta_0: darcs.env.overrideAttrs (old: { buildInputs = old.buildInputs ++ [ something ]; })
rafasc has quit [Quit: WeeChat 2.7.1]
wiml has quit [Client Quit]
thc202 has quit [Ping timeout: 246 seconds]
Guest30 has quit [Ping timeout: 264 seconds]
shibboleth has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #83256 → [20.03] pythonPackages.mkl-service: 2.1.0 -> 2.3.0 → https://git.io/Jvygv
<{^_^}> [nixpkgs] @jonringer pushed commit from @bhipple to release-20.03 « pythonPackages.mkl-service: 2.1.0 -> 2.3.0 »: https://git.io/Jvygh
dtz1 has joined #nixos
<dtz1> sometimes `buildInputs = old.buildInputs or [] ++ [ something ];` which is noteworthy because operators work out the way you'd want but might defensively add parens for, so maybe is a useful pattern
leonardp has quit [Ping timeout: 240 seconds]
<zeta_0> clever: ok, but can i place the with haskellPackages somewhere so i don't have to write it out over and over again? https://hastebin.com/dirazahisa.js
<clever> zeta_0: you need to merge line 1 and 3, you duplicated the darcs.env
<clever> zeta_0: and `with haskellPackages;` can go in several places, after the nixpkgs with, after the old:, or after the buildInputs =
<clever> zeta_0: basically, anywhere you put a value, you can put a `with expr; value`
<zeta_0> clever: like this? https://hastebin.com/qusukuqibo.js
<clever> zeta_0: yeah
* clever heads off to bed
<zeta_0> clever: could you spare a couple more minutes i'm almost done?
<zeta_0> clever: nevermind, thanks for the help i'll try to finish it on my own from here
h0m2 has joined #nixos
<zeta_0> clever: thanks and later
<zeta_0> clever++
<{^_^}> clever's karma got increased to 364
h0m1 has quit [Ping timeout: 246 seconds]
srl295 has quit [Quit: Connection closed for inactivity]
drakonis has joined #nixos
shibboleth has quit [Quit: shibboleth]
jumper149 has quit [Quit: WeeChat 2.7.1]
abathur has joined #nixos
`_ has quit [Quit: WeeChat 2.6]
abathur has quit [Ping timeout: 264 seconds]
justanotheruser has joined #nixos
organixpear has quit [Quit: leaving]
logand`` has joined #nixos
hlavaty` has joined #nixos
<cole-h> Is there a difference between `import ./somepath {}` and `import ./somepath`?
buckley3104 has quit [Ping timeout: 256 seconds]
katie_ has joined #nixos
hlavaty has quit [Ping timeout: 250 seconds]
logand` has quit [Ping timeout: 250 seconds]
<energizer> yes
<energizer> try it in nix repl
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
felixfoertsch has joined #nixos
felixfoertsch23 has quit [Ping timeout: 260 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
iqubic` has joined #nixos
zeta_0 has left #nixos ["rcirc on GNU Emacs 26.3"]
iqubic has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #83259 → earlyoom: 1.3 -> 1.5 → https://git.io/Jvy2F
Henson has joined #nixos
<Henson> does anybody have a suggestion on how I can get the closure of a shell environment to be preserved with a garbage collector root? I tried following the advice here https://nixos.wiki/wiki/Storage_optimization but it just creates an indirect root for the derivation of the shell, and doesn't actually prevent any of the outputs from being garbage collected
<Henson> unless I'm doing it wrong
<glittershark> is there something built in to nixpkgs to get the first non-null element of a list?
<glittershark> I keep expecting || to be dynamically typed but it's not
<glittershark> or like
<glittershark> something equivalent to "false || 1 = 1"
<cole-h> You might be able to do something with the `filter` builtin, or `lib.forEach`, or both
<glittershark> yeah
<glittershark> I could write this myself for sure
<glittershark> just wondering if someone already has :)
iqubic` has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
iqubic has joined #nixos
<{^_^}> [nix] @gnprice opened pull request #3441 → doc: Files in the store have modes 444/555, not 644/755 → https://git.io/JvyaS
<{^_^}> [nixpkgs] @unya opened pull request #83261 → zoneminder: Path Fix → https://git.io/JvyaH
pluplog has joined #nixos
iyzsong has joined #nixos
<rail> cole-h: something like this maybe: with builtins; head (filter (x: ! isNull x) l)
<glittershark> yeah
<glittershark> ok
<glittershark> sounds like I'm just writing that :)
<rail> except it will fail when the list is full of nulls
<glittershark> or something like it
Henson has quit [Quit: KVIrc 5.0.0 Aria http://www.kvirc.net/]
chagra has joined #nixos
chagra_ has quit [Ping timeout: 240 seconds]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
Heirlung has quit [Ping timeout: 264 seconds]
<glittershark> Henson: I think you can do it with the 'env' attribute
<{^_^}> [nixpkgs] @servalcatty opened pull request #83262 → v2ray: 4.22.1 -> 4.23.0 → https://git.io/JvyV1
<{^_^}> [nixpkgs] @r-ryantm opened pull request #83263 → dar: 2.6.8 -> 2.6.9 → https://git.io/JvywI
srid has quit [Quit: Connection closed for inactivity]
andymandias_ has joined #nixos
andymandias has quit [Ping timeout: 250 seconds]
orivej_ has quit [Ping timeout: 264 seconds]
abathur has joined #nixos
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
captjakk has quit [Remote host closed the connection]
abathur has quit [Ping timeout: 264 seconds]
<{^_^}> [mobile-nixos] @ashkitten opened pull request #104 → google-marlin: fix partitions → https://git.io/Jvywx
glittershark has quit [Ping timeout: 256 seconds]
domogled has quit [Quit: domogled]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
mexisme_ has quit [Ping timeout: 272 seconds]
evanjs has quit [Ping timeout: 265 seconds]
evanjs has joined #nixos
bandali has quit [Quit: ZNC - https://znc.in]
bandali has joined #nixos
<{^_^}> [nixpkgs] @aneeshusa opened pull request #83264 → Disown some packages → https://git.io/Jvyrl
<{^_^}> [nixpkgs] @worldofpeace opened pull request #83265 → Fix wingpanel and switchboard → https://git.io/Jvyr9
mexisme_ has joined #nixos
leonardp has joined #nixos
wavirc22 has quit [Ping timeout: 264 seconds]
hio has joined #nixos
<{^_^}> [nixpkgs] @veprbl merged pull request #83264 → Disown some packages → https://git.io/Jvyrl
<{^_^}> [nixpkgs] @veprbl pushed 6 commits to master: https://git.io/Jvyof
wavirc22 has joined #nixos
drakonis has quit [Quit: WeeChat 2.7.1]
lovesegfault has quit [Quit: WeeChat 2.7.1]
<leonardp> to whom it may concern: https://nixos.org/patchelf.html is 404
rsoeldner has joined #nixos
<rsoeldner> Morning, After booting, I have a few seconds before I'm able to use my mouse. Has anyone the same issue ?
<leonardp> how is your mouse connected? have you tried using cheese?
<rsoeldner> leonardp, :P
<bqv[m]> boom, ok, got a graphical system again
<bqv[m]> and all my flakes are up to date
<bqv[m]> the issue i have with building emacsWithPackages segfaulting nix is still a very real problem though
<bqv[m]> so i've settled for installing it imperatively for now
<bqv[m]> temporary impurity
pjt_014 has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed 140 commits to gnome-3.36: https://git.io/JvyKo
<leonardp> bqv[m]: nice! are nix-flakes considered 'stable'?
<cole-h> Not really. They're not as much in flux anymore, but things can still change
<leonardp> hm ok, i'm on 19.09 so maybe after switching to 20.03 i'll take a shot at it
<pjt_014> anyone know how to boot an aarch64 nixos image in qemu?
<pjt_014> Im roughly trying these instructions but my modifications arent working: https://nixos.wiki/wiki/NixOS_on_ARM/QEMU
linarcx has joined #nixos
<pjt_014> I get 'Bad Linux ARM zImage magic!'
<leonardp> pjt_014: yes!
mexisme_ has quit [Ping timeout: 246 seconds]
<leonardp> just get a working sd_image for the wget command and you should be good
<leonardp> or build one yourself
orivej has joined #nixos
<pjt_014> cool, thanks!
<pjt_014> this is going to be very handy till i can get binfmt working
<leonardp> maybe continue the conversation in #nixos-aarch64 ?
<leonardp> i have it working..
<leonardp> super easy, barely an inconvenience
palo1 has joined #nixos
<pjt_014> well it's mostly a temporary measure, my main goal is to get binfmt working so I can make custom images for all my nixos devices
<pjt_014> I have only gotten it working one one device
<leonardp> just put this: boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; in your configuration nix
<pjt_014> and it's the one in my bedroom with an extremely loud, unadjustable PSU fan :\
<leonardp> rebuild, and reboot(!)
<pjt_014> ah, reboot
<leonardp> yes :)
<pjt_014> thats what I was missing
<leonardp> classic
palo has quit [Ping timeout: 256 seconds]
palo1 is now known as palo
<pjt_014> gonna be nice to be able to do that for arm too. you ever try building gcc on a device with 512MB of ram?
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
iyzsong has joined #nixos
<pjt_014> *screams in overheating cpu*
<leonardp> been there, done that
<leonardp> but binfmt wrapper is slow, so if you can, you should cross compile
<bqv[m]> somewhat bemused at how switching to flakes has broken my exwm config
<leonardp> took ~2 days to build chrome on my desktop machine
<pjt_014> on that note, do you know what the main diffis between using pkgsCross and, say --option system aarch64-linux? I tend to use both because it feels right
<leonardp> bqv[m]: years ago ppl were joking how emacs, was a whole OS in itself, and now you're telling me there is an emacs WM? ha!
<bqv[m]> lol
<bqv[m]> i've been using it for more than a year now
butterthebuddha has joined #nixos
<bqv[m]> also, there is actually a project that has emacs running as PID2
<leonardp> pjt_014: if you have your host configured as crossSystem i *think* they are the same
<bqv[m]> we joke but emacsOS is quickly gonna be a reality..
<leonardp> haha!
cole-h has quit [Quit: Goodbye]
<pjt_014> I just looked in the configuration.nix man page--how does that not mess up rebuilding? do nixpkgs attrs work differently?
<pjt_014> the phrasing is throwing me off I guess
<srhb> Does anyone know of an out-of-the-box distributed locking/master election/quorum library? I need one process amongst many to be the only one executing certain actions, across a network.
Andrey has joined #nixos
<pjt_014> srhb: I remember stubling across one (I *think*)
<pjt_014> 'twas writtin in Go
Andrey has quit [Remote host closed the connection]
<srhb> pjt_014: That sounds like Raft.
Andrey has joined #nixos
<pjt_014> raft is the algorithm, not the implementation
<leonardp> pjt_014 i only have binfmt active atm and no crossSystem configured and i do not know if they interfere with each other
<srhb> pjt_014: Right. But I think it's much like GHC is not Haskell. :-)
veske2 has joined #nixos
veske has joined #nixos
lovesegfault has joined #nixos
<pjt_014> leonardp: guess I'll just try it out, see what happens
<pjt_014> srhb: found it
<pjt_014> http://etcd.io
<lovesegfault> having a hard time using an s3 substituter :/ warning: AWS error fetching 'nix-cache-info': Access denied.
<pjt_014> havent used it before but all the shiny text seems to be pointing in the right direction
<Andrey> Hello, I am trying to run the application using buildFHSUserEnv shell, it tries to create directory and files inside /var, I am getting "Permission denied". How can I fix that?
<srhb> pjt_014: Ah, yes. I was hoping for a drop-in library, but if I have to use etcd or some database that can provide locking, I might go with that..
<pjt_014> there are some much simpler ones too
gentauro has quit [Read error: Connection reset by peer]
<pjt_014> bit more specialized though
gentauro has joined #nixos
<pjt_014> dqlite is the only one I can think of right now
<{^_^}> [nixpkgs] @r-ryantm opened pull request #83267 → gd: 2.2.5 -> 2.3.0 → https://git.io/Jvy6d
CMCDragonkai1 has joined #nixos
abathur has joined #nixos
lovesegfault has quit [Ping timeout: 260 seconds]
marcusr has quit [Remote host closed the connection]
marcusr has joined #nixos
abathur has quit [Ping timeout: 265 seconds]
hmpffff has joined #nixos
bahamas has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
veske has quit [Quit: This computer has gone to sleep]
veske2 has quit [Quit: This computer has gone to sleep]
linarcx has quit [Quit: WeeChat 2.7.1]
linarcx has joined #nixos
veske2 has joined #nixos
veske has joined #nixos
mexisme_ has joined #nixos
pjt_014 has quit [Quit: Leaving]
mexisme_ has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #83265 → Fix wingpanel and switchboard → https://git.io/Jvyr9
<{^_^}> [nixpkgs] @worldofpeace pushed 3 commits to master: https://git.io/JvyiA
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to release-20.03: https://git.io/Jvyih
Heirlung has joined #nixos
ZaraChimera has quit [Quit: ZaraChimera]
mexisme_ has joined #nixos
orivej has joined #nixos
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
mexisme_ has quit [Ping timeout: 260 seconds]
c4droid has joined #nixos
c4droid has left #nixos [#nixos]
c4droid has joined #nixos
butterthebuddha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
butterthebuddha has joined #nixos
butterthebuddha has quit [Client Quit]
<c4droid> Hi, I just downloaded the nixOS installation image, when I have configured /mnt/etc/nixos/configuration.nix, and run nixos-install command, the installation process is very very slow. It nixOS have offical mirror at Asia? Thanks.
Guest30 has joined #nixos
<{^_^}> [nixpkgs] @vbgl opened pull request #83268 → alt-ergo: 2.3.0 → 2.3.1 → https://git.io/JvyPM
orivej has quit [Ping timeout: 258 seconds]
zupo has joined #nixos
Guest30 has quit [Remote host closed the connection]
lovesegfault has joined #nixos
__monty__ has joined #nixos
cr4y1 has joined #nixos
<{^_^}> [nixpkgs] @nlewo merged pull request #83244 → youtube-dl: 2020.03.08 -> 2020.03.24 → https://git.io/JvyB0
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/JvyPj
<{^_^}> [nixpkgs] @nlewo merged pull request #83206 → godot: 3.2 -> 3.2.1 → https://git.io/Jvykc
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/JvyXe
<xfix> hm, machine 2718a894 on https://hydra.nixos.org/machines seems stuck
<xfix> for like 2 days and 12 hours
mexisme_ has joined #nixos
<xfix> and e05744a2 is stuck for like 5 days
<xfix> 2718a894 reports the following:
<xfix> Warning: Permanently added the ED25519 host key for IP address '2604:1380:0:d600::3' to the list of known hosts.
<xfix> warning: unable to download 'https://cache.nixos.org/glmvxc5mzgzs8ccxqaka16xsfwmv8d2f.narinfo': Couldn't resolve host name (6); retrying in 318 ms
FRidh has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
veske2 has quit [Quit: This computer has gone to sleep]
lovesegfault has quit [Quit: WeeChat 2.7.1]
T_S_ has quit [Ping timeout: 240 seconds]
<bqv[m]> uh hey, folks, how do you go about adding debug symbols?
<symphorien> tl;dr: not so easy
<bqv[m]> yeah i found that shortly after i sent that
<bqv[m]> not sure it's working, but meh
lsix has joined #nixos
veske2 has joined #nixos
veske has joined #nixos
Ralith_ has quit [Ping timeout: 258 seconds]
c4droid has left #nixos ["ERC (IRC client for Emacs 26.3)"]
civodul has joined #nixos
Ralith_ has joined #nixos
opthomasprime has joined #nixos
shafox has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
veske2 has quit [Quit: This computer has gone to sleep]
opthomasprime has left #nixos [#nixos]
hmpffff__ has joined #nixos
hmpffff has quit [Ping timeout: 246 seconds]
maddo has joined #nixos
veske2 has joined #nixos
veske has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has joined #nixos
noudle has joined #nixos
<linarcx> Guys, how knows informatino about installed packages with nix-env?(like version, descriptions,...)
abathur has joined #nixos
<symphorien> nix-env -q
<symphorien> this gives version
<linarcx> symphorien: NO
<linarcx> lorr for instance don't show the version.
<symphorien> it depends on how the derivation was written actually
Andrey has quit [Remote host closed the connection]
<Valodim[m]> NO?
<symphorien> if they set name="lorri" you don't get the version
<linarcx> hmm..
<symphorien> how about... lorri --version ?
<linarcx> Yeah, it prints the version
<klys> is there a simple way with nixos as root to gain access to all installed packages within the various sub-environments?
<NobbZ[m]> Will show the version of `lorri` thats currently in scope, not necessarily the one installed via `nix-env`
mexisme_ has quit [Ping timeout: 258 seconds]
jfroche has joined #nixos
Ariakenom has joined #nixos
<bqv[m]> klys: ls /nix/store
<bqv[m]> :p
abathur has quit [Ping timeout: 256 seconds]
<klys> bqv[m], are you a seasoned user
<klys> I figure this might count as a frequently asked question
<NobbZ[m]> I've not seen this question before in the last 6 months, so it does depend on your definition of "frequent"…
<klys> though, yes, one might point the output of ls -b /nix/store to the command to create a new environment
<bqv[m]> nix has a very vague definition of "installed", i don't think your question is very useful
<bqv[m]> what are you trying to achieve?
mexisme_ has joined #nixos
bahamas has quit [Ping timeout: 264 seconds]
<klys> along the lines of reclaiming a disk and avoiding deletion of useful material when backing things up.
<NobbZ[m]> Just do `nix-collect-garbage`
<bqv[m]> a better approach might be to delete every generation except the current one, check gc roots for useless stuff, then do a garbage collect
<bqv[m]> then the store is everything necessary and only necessary things
<NobbZ[m]> As a regular user it will only collect your own environments, as root it will collect from all. It won't delete pathes referenced from any profile.
zupo has joined #nixos
<klys> paths? patches?
akegalj has joined #nixos
<NobbZ[m]> For this sake, just another word for "package".
<klys> ah thank you
<bqv[m]> is there any reason you're backing up your store though? the majority of things in the store are just copied from hydra, and the rest can be recreated from your configuration and sometimes a few /etc/ files
<bqv[m]> that's kinda the point
<domenkozar[m]> https://opencollective.com/nix-errors-enhancement has reached phase 1, Ben has already started work. Second phase crowdfunding is about plumbing existing errors to use the error reporting in existing codebase. If your company wants to support improving Nix ergonomics let me know if you have any questions.
<klys> now, I am not a regular nixos user, and am merely asking questions to evaluate installing it alongside debian.
<{^_^}> [nixpkgs] @roberth merged pull request #83201 → cleanSourceWith: don't use baseNameOf → https://git.io/Jvyf6
<{^_^}> [nixpkgs] @roberth pushed 2 commits to master: https://git.io/Jvy1b
hmpffff__ has quit [Remote host closed the connection]
<bqv[m]> ok, then i would advise you don't bother backing up the store
<klys> however, the proposition I was making is supposing you inherit a nixos partition from someone who is no longer around.
<bqv[m]> realistically, i would keep the store OS agnostic. for example, i use the same store for nixos and gentoo, by having it as a separate btrfs subvolume
hmpffff has joined #nixos
<bqv[m]> if you inherit it, there's not much benefit beyond that it might save you some bandwidth
<bqv[m]> likely half the things you build will not match that store, and most of those will just be fetched from hydra fresh anyway
<bqv[m]> it's an exercise in squandering your hard drive space, in my opinion
<klys> yes, primarily for the purpose of freeing up space and only keeping meaningful materials.
<bqv[m]> my point is, anything you would want to keep, is not in the store
<klys> perhaps.
<{^_^}> [nix] @bqv opened pull request #3443 → Update hacking.xml → https://git.io/JvyMt
<bqv[m]> oh those come here too, cool
<{^_^}> [nixpkgs] @r-ryantm opened pull request #83270 → gitAndTools.git-filter-repo: 2.25.0 -> 2.26.0 → https://git.io/JvyMG
<NobbZ[m]> bqv: Avoid BTRFS… It killed 2 machines of mine, because of beeing RO all of a sudden…
<bqv[m]> i've been using btrfs for best part of a decade, i've never had all these apocalyptic scenarios everyone does on about...
bahamas has joined #nixos
<bqv[m]> i'm happy with it
mounty has quit [Ping timeout: 240 seconds]
bahamas has quit [Changing host]
bahamas has joined #nixos
Makaveli7 has joined #nixos
<NobbZ[m]> I was as well, until the point that I was unable to use my main dev machine anymore. Though thanks to nixOS, I was able to replace it within 30 minutes. Setting it up as an Arch again would have cost me days…
o1lo01ol1o has joined #nixos
mojjo has joined #nixos
<bqv[m]> heh
<bqv[m]> honestly i've had fewer disk issues on btrfs than any other filesystem, in my history
<mojjo> Has anyone used nixos-infect recently directly on a digital ocean droplet? It works but it leaves the machine with no network connectivity.
<symphorien> klys: if your question is "what can I remove from the nix store to reclaim some space" there is nix-du
hmpffff has quit [Ping timeout: 264 seconds]
<NobbZ[m]> I had less issues with BTRFS than with ext4, but those I had were major and unfixable.
<NobbZ[m]> Hope ZFS will play better.
<klys> symphorien, the main reason I want to do what I asked in the first place is to try out or examine documentation for all installed packages.
<symphorien> I don't really understand
<NobbZ[m]> Though I need to learn how to transfer some BTRFS things over to ZFS.
anders^ has quit [Quit: ZNC 1.7.4 - https://znc.in]
<klys> symphorien, if someone was doing good work and no one is left to tell the tale, then priority one is to identify what works that is present.
<symphorien> do you still have the original /etc/nixos/configuration.nix ?
<klys> supposing you do, does that make it easier? This is so hypothetical.
<symphorien> yes. This is the source code, and the store ic compiled...
bvdw has quit [Read error: Connection reset by peer]
<symphorien> you only have to read configuration.nix, and the output of nix-env -q and sudo nix-env -q
<klys> the main thing I know you can do with nixos as a user is to create sub-environments with their own packages. however, I just want to make sure that isn't as messy as it sounds.
bvdw has joined #nixos
<symphorien> they are usually defined in a file called shell.nix or default.nix in the corresponding folder.
<{^_^}> [nix] @domenkozar merged pull request #3441 → doc: Files in the store have modes 444/555, not 644/755 → https://git.io/JvyaS
<{^_^}> [nix] @domenkozar pushed 2 commits to master: https://git.io/JvyMz
<symphorien> also, except with special machinery, you only enter such sub-environment voluntarily
anders^ has joined #nixos
<Ashy> is anyone here using nix on macos catalina? last i looked it was fairly broken, wondering if there's a straight forward workaround now
<bqv[m]> klys: there is nothing in /nix/store that cannot be perfectly recreated by something that is outside of /nix/store
<Ashy> i run nixos on most of my machines but it'd be nice to have nix on the macbook air too
<{^_^}> [nixpkgs] @liff opened pull request #83271 → teams: 1.3.00.958 -> 1.3.00.5153 → https://git.io/JvyM1
<symphorien> bqv[m]: as a happy btrfs user, would you mind reviewing https://github.com/NixOS/nixpkgs/pull/78046 ?
<{^_^}> #78046 (by symphorien, 9 weeks ago, open): nixos/snapper: automatically create the .snapshots subvolume with correct permissions
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #83272 → ipmiutil: 3.1.5 -> 3.1.6 → https://git.io/JvyM5
<bqv[m]> sure :p i don't use snapper though, i was always too lazy to configure it in a way that it doesn't slurp up all of my disk space indiscriminately
<bqv[m]> i switched to btrfs-snap, and then to nixos..
anders^ has quit [Client Quit]
fendor has joined #nixos
anders^ has joined #nixos
<srk> ,tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected. See: tofu-vim
<symphorien> heh, I might have a look at btrfs-snap then, thanks for the pointer
linarcx has quit [Quit: WeeChat 2.7.1]
kai_w has quit [Quit: Konversation terminated!]
<Taneb> I'm trying to add a new jobset to a declerative Hydra project, but after re-evaluating the .jobsets jobset and watching the build succeed, the new jobset doesn't seem to have appeared. How can I debug this?
anders^ has quit [Quit: ZNC 1.7.4 - https://znc.in]
thc202 has joined #nixos
melling has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
veske2 has quit [Quit: This computer has gone to sleep]
veske has joined #nixos
veske2 has joined #nixos
gfixler has quit [Quit: WeeChat 1.9.1]
anders^ has joined #nixos
bahamas has quit [Ping timeout: 258 seconds]
m0rphism has joined #nixos
zakkor has joined #nixos
GDiaX has joined #nixos
<zakkor> hi guys, in my derivation I'm trying to copy some source files to $out, and then copy some other source files to some sub-directory of $out, overwriting some of the files
<zakkor> but this doesn't work, and I can't figure out how I can do this
hmpffff has joined #nixos
<symphorien> maybe chmod +w what you copy ?
mojjo has quit [Remote host closed the connection]
<zakkor> LOL, that works
<zakkor> I didn't think you could do that for some reason
ottidmes has joined #nixos
<bqv[m]> it gets undone anyway
<bqv[m]> when nix finishes building a derivation it neuters the permissions
<bqv[m]> that's the cause of your problem, too
asheshambasta has joined #nixos
<zakkor> I see, thanks
<asheshambasta> what does an error message " called without required argument 'mkDerivation' " mean exactly? I'm trying to use callPackage with a custom nix expression.
<bqv[m]> it means you should probably be using qt5.callPackage, or python3Packages.callPackage, or something similar that provides the expression with the mkDerivation arg
jasom has quit [Ping timeout: 272 seconds]
<asheshambasta> the "expression" in this case is an anonymous function, right?
kai_w has joined #nixos
<bqv[m]> yup
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « python: pip-tools: 4.3.0 -> 4.5.1 »: https://git.io/JvyDj
jasom has joined #nixos
<asheshambasta> bqv[m]
mounty has joined #nixos
<asheshambasta> I'm still finding this hard to understand, though. The callPackages function to use here then depends on one being that supplies these defaults to the anon. function. But how is one supposed to know which callPackage function to use?
mniip has quit [Ping timeout: 606 seconds]
<vandenoever> mumble on master is currently broken: ALSA lib conf.c:3558:(snd_config_hooks_call) Cannot open shared library (null) ((null): /nix/store/8f9b59c6ppg7vgskdkp37vllgw6xa8l3-qtdeclarative-5.12.3/lib/libQt5Quick.so.5: undefined symbol: _ZN14QDistanceFieldC1ERKS_, version Qt_5_PRIVATE_API)
orivej has quit [Ping timeout: 240 seconds]
chpatrick has joined #nixos
<chpatrick> hi, do you know where I can get GL/gl.h in 20.03?
<chpatrick> I can't find it in mesa or libGL
<tilpner> > libglvnd.dev
<{^_^}> "<derivation /nix/store/1jplrpwli027icz86gb5lxv8x2rd8ffk-libglvnd-1.2.0.drv>"
<tilpner> That has /include/GL/gl.h
<tilpner> Use nix-locate to find random headers
<chpatrick> tilpner: thank you, but do you if that's the proper thing to use? libgl could have multiple implementations
<tilpner> I think that's the entire point of libglvnd
<tilpner> > libglvnd.meta.description
<{^_^}> "The GL Vendor-Neutral Dispatch library"
orivej has joined #nixos
Ilya_G has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @mmahut opened pull request #83273 → dnscontrol: init at 3.0.0. → https://git.io/Jvyyc
<tilpner> But it might still be wrong
<tilpner> You should probably try libGL first
<tilpner> > libGL
<{^_^}> "<derivation /nix/store/ylfxk84zgpd2x8ah2l04cnapf63jclm9-libGL-1.2.0.drv>"
<tilpner> Hmm, I don't know. libglvnd seemes the most appropriate among the nix-locate results
<tilpner> But it's not referenced that often in nixpkgs
mniip has joined #nixos
<tilpner> (There might be indirection over /run/opengl-driver?)
orivej has quit [Ping timeout: 250 seconds]
{`-`}_ has joined #nixos
{`-`} has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @arianvp opened pull request #83274 → wire-desktop: Fix StartupWMClass → https://git.io/Jvyyi
mexisme_ has quit [Ping timeout: 260 seconds]
zupo has quit [Ping timeout: 265 seconds]
zupo has joined #nixos
bahamas has quit [Ping timeout: 260 seconds]
phreedom_ has joined #nixos
phreedom has quit [Remote host closed the connection]
chloekek has joined #nixos
leonardp has quit [Remote host closed the connection]
orivej has joined #nixos
sayanarijit has joined #nixos
sayanarijit has left #nixos [#nixos]
anders^ has quit []
anders^ has joined #nixos
<bqv[m]> asheshambasta: so you should be using the haskellPackages callPackage
<bqv[m]> because that's a haskell expression
<bqv[m]> (sorry was awol)
drgbr has quit [Ping timeout: 240 seconds]
abathur has joined #nixos
<ottidmes> bqv[m]: in the flakes RFC https://github.com/tweag/rfcs/blob/flakes/rfcs/0049-flakes.md shouldn't this line: inputs.nixops.follows = "dwarffs/nixpkgs"; be inputs.nixpkgs.follows = "dwarffs/nixpkgs"; ?
<bqv[m]> yes
<bqv[m]> think i remember seeing that too
<{^_^}> [nixpkgs] @Rakesh4G opened pull request #83275 → python-baseconv: init at 1.2.2 → https://git.io/JvySH
abathur has quit [Ping timeout: 264 seconds]
munksgaard has joined #nixos
<bqv[m]> ok i just spend an hour setting up /etc/nixos to be a direct mount of my git repository
<bqv[m]> but i think that was worth it
<munksgaard> Is there a way to see what the latest generation did? I want to make sure what my `nix-env --rollback` does before I do it
<bqv[m]> now i push to github and it changes locally
<bqv[m]> you could look at what derivations were in it, but there's no mechanism to show you the configuration
<munksgaard> bqv[m]: How do I see which derivations were in it?
<bqv[m]> if you know the number of the generation
<munksgaard> I do, I can find that using --list-generations, right?
<bqv[m]> you should be able to do `nix-store -q --tree /nix/var/nix/profiles/system-NUMBER-link`
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to master: https://git.io/JvySF
<NobbZ[m]> There is also some nix diff tool out there...
bahamas has joined #nixos
<ottidmes> bqv[m]: why not a symlink or should be as easy as mount --bind /path/to/nixos /etc/nixos ?
<bqv[m]> that sounds delightfully terrifying
<{^_^}> [nixpkgs] @vcunat merged pull request #82728 → racket: enable building on aarch64 → https://git.io/JvPZt
<bqv[m]> ottidmes: you misunderstand me, i don't mean mounted from my local git repository
<bqv[m]> i mean it's mounted directly from github
<bqv[m]> i don't have to have a local copy
chagra has quit [Quit: WeeChat 2.7.1]
orivej has quit [Ping timeout: 265 seconds]
<ottidmes> bqv[m]: what does mean? it is not like github provides network mount, right?
<ottidmes> mine is config is multi project with secret files not part of the repo (i.e. not put in the repo encrypted), so thats not going to work for me
<bqv[m]> well, i'm thinking i'll write a rebuild script that uses git directly as well anyway
<ottidmes> also, won't you now always have to commit/push even if you just want to try things out?
<ottidmes> ah, that would counter that
<bqv[m]> yes
<bqv[m]> but with flakes you have to anyway
<bqv[m]> your flake will not build unless the directory is not dirty
<bqv[m]> so if you have to commit anyway, might as well push
bahamas has quit [Ping timeout: 250 seconds]
<ottidmes> you sure? should it not work with git:file:// ?
<ottidmes> "git: A Git repository or dirty local working tree."
<bqv[m]> it works if you commit locally, yes, but at that point you might as well push anyway
<bqv[m]> plus, this way i can have my system config available, but also keep my wip content in my $HOME
<bqv[m]> zimbatm: hey, i assume you're not trying to take the piss or anything, but you do realise you've basically taken my example and added a couple of irrelevant lines...
<ottidmes> hmm, I have to experiment with this, if I really always have to commit, it would break my workflow, and I might just as well tweak my current system to only use flakes as external dependencies
<bqv[m]> i've just been leaving WIP commits all over the place
<bqv[m]> it's actually quite useful
<bqv[m]> you can see every avenue you've tried
<{^_^}> [nixpkgs] @Rakesh4G opened pull request #83276 → pythonPackages.py-multibase: init at 1.0.1 → https://git.io/Jvy9k
<bqv[m]> Mic92: hi, i'm really not sure what you mean, and it'd be faster if we talk here
<Mic92> bqv[m]: the example shows how one would use NixOS modules from NUR in a flake file. What is the equivalent for packages.
<Mic92> ?
<Mic92> I have not used flakes at all so far. But I think it should be mentioned in the documentation.
jfroche has quit [Remote host closed the connection]
chagra has joined #nixos
sigmundv_ has joined #nixos
phreedom_ has quit [Remote host closed the connection]
phreedom has joined #nixos
jfroche has joined #nixos
knupfer has joined #nixos
jfroche has quit [Remote host closed the connection]
<bqv[m]> Mic92: the overlay works, so pkgs.nur is a thing, although i seem to have botched my fork
<bqv[m]> but as an example i added pkgs.nur.repos.mic92.pkgs.hello-nur to environment.systemPackages, and it fetched the my NUR flake
<{^_^}> [nixpkgs] @robertodr opened pull request #83277 → mkl: 2019.5.281 -> 2020.0.166 (Linux only) → https://git.io/Jvy9X
phreedom has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @nh2 merged pull request #83011 → keybase,kbfs,keybase-gui: 5.3.0 -> 5.3.1 → https://git.io/Jvy9M
phreedom has joined #nixos
<{^_^}> [nixpkgs] @nh2 pushed 2 commits to master: https://git.io/Jvy9D
bahamas has joined #nixos
<Mic92> bqv[m]: How would add NUR as an overlay with flakes?
<Mic92> Do you have your configuration online?
WilliButz has quit [Remote host closed the connection]
<bqv[m]> our good friend nrd already put that in the docs in his PR https://github.com/nix-community/NUR/blob/c084d2a0c9aa726d63466733d934b66eb83fcb27/README.md
m0rphism has quit [Ping timeout: 256 seconds]
<bqv[m]> his configuration is here: https://github.com/nrdxp/nixflk
WilliButz has joined #nixos
<bqv[m]> (check the nrd and nur branches)
<bqv[m]> mine is here: https://github.com/bqv/nixos (live branch)
bahamas has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @romildo opened pull request #83278 → matcha: 2020-03-15 -> 2020-03-24 → https://git.io/JvyHf
dermetfan has joined #nixos
<{^_^}> [nixpkgs] @flokli opened pull request #83279 → bump terraform providers → https://git.io/JvyHO
<{^_^}> [nixpkgs] @SRGOM opened pull request #83280 → onedrive: 2.3.13 -> 2.4.0 → https://git.io/JvyHB
veske2 has quit [Quit: Leaving]
veske has quit [Quit: Leaving]
oida has joined #nixos
mojjo has joined #nixos
<mojjo> hi!! maybe someone has an advice for me: I'm setting up a CI pipeline with nixops, travis and digital ocean. It actually works. My only problem is that I cannot persist the nixops state on travis, so everytime the network is created anew. not so ideal :) So there is a way to export the nixops state to a file and I could theoretically save that in
<mojjo> the travis cache. but not really, as the cache expires after a month plus the state file contains private keys. what would you do? recommendations of different services welcome as well ...
<{^_^}> [nixpkgs] @r-ryantm opened pull request #83281 → libaacs: 0.9.0 -> 0.10.0 → https://git.io/JvyHi
v88m has quit [Ping timeout: 250 seconds]
m0rphism has joined #nixos
<{^_^}> [nixpkgs] @Luflosi opened pull request #83282 → kitty: 0.16.0 -> 0.17.0 → https://git.io/JvyHd
<xfix> the hydra queue is currently kinda huge, oh well
<xfix> 164668 builds to do is kinda a lot
<Mic92> bqv[m]: ah, Now I see that it actually adds an overlay already.
<gchristensen> that's a few for sure, is that a problem xfix?
<xfix> not really i suppose
<gchristensen> ah, ok
<Mic92> bqv[m]: However are you sure it is not pinning nixpkgs? https://github.com/nix-community/NUR/pull/175/files#diff-5451c7b5e2e1f7c50be271bf7a786c04R11
zakkor has quit [Quit: Connection closed for inactivity]
<Mic92> Well I am not using it. I suppose if something is not working, somebody will shout out.
rsoeldner has quit [Ping timeout: 246 seconds]
<bqv[m]> the generated lockfile does have a rev in it, but that won't ever really matter, because nobody is going to be using only the nur
<bqv[m]> it doesn't even make sense to use the nur without nixpkgs
<bqv[m]> you can even override that flake input locally anyway
linarcx has joined #nixos
<{^_^}> [nixpkgs] @Elyhaka opened pull request #83283 → Wofi: 1.1 -> 1.1.2 + fix → https://git.io/JvyQq
tabasko has joined #nixos
<Mic92> now it is merged.
<{^_^}> [nixpkgs] @mmahut merged pull request #83135 → tessera: init at 0.10.2 → https://git.io/JvyQG
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/JvyQZ
rsoeldner has joined #nixos
<Valodim[m]> Hm. Is it really ok to make PRs and just instantly merge them? https://github.com/NixOS/nixpkgs/pull/83135
<{^_^}> #83135 (by mmahut, 2 days ago, merged): tessera: init at 0.10.2
<evils> 2 days ain't instant..., it does mean ofborg can check it before merging
<Valodim[m]> no review, no time passed between push and merge, didn't even bother to fill in the "Things done" template. that feels very sloppy
<Valodim[m]> oh, sorry, I misread the timestamp
<evils> even if it was instant, still better to have ofborg check it rather than just merging one's work directly i suppose
mallox has joined #nixos
<Valodim[m]> I'm surprised there's no policy against merges by the committer with no second pair of eyes at all
<ottidmes> bqv[m]: About the dirty working directories: https://github.com/NixOS/nix/issues/3231 so I am not going to use flakes for now, and just continue using my own system until that is addressed
<{^_^}> nix#3231 (by Ma27, 18 weeks ago, open): Using dirty git checkouts as flakes
<bqv[m]> fair enough :)
zupo_ has joined #nixos
zupo has quit [Ping timeout: 240 seconds]
Makaveli7 has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvyQx
<{^_^}> [nixpkgs] @marsam merged pull request #83270 → gitAndTools.git-filter-repo: 2.25.0 -> 2.26.0 → https://git.io/JvyMG
aveltras has joined #nixos
leotaku has joined #nixos
<{^_^}> [nixpkgs] @romildo merged pull request #82994 → mate.mate-power-manager: 1.24.0 -> 1.24.1 → https://git.io/Jvy7f
<{^_^}> [nixpkgs] @romildo pushed 3 commits to master: https://git.io/Jvy7J
<MichaelRaskin> Valodim[m]: well, increasing the number of PR reviews required is not without drawbacks
<Valodim[m]> MichaelRaskin: it seems to be zero, though?
gustavderdrache has joined #nixos
CMCDragonkai1 has joined #nixos
<evils> Valodim[m]: 1 > 0
<linarcx> Is it possible to use nix-env with proxy? Is there settings for it?
<{^_^}> [nixpkgs] @Ma27 pushed to master « prometheus-wireguard-exporter: 3.2.2 -> 3.2.4 »: https://git.io/Jvy7I
<MichaelRaskin> Valodim[m]: the total number of PR reviews required
<nilsirl[m]> nix-shell ignores `bash.promptInit`. What setting should I change for nix-shell? What file does it source for its prompt?
<evils> looking at that PR though, kinda odd to get the source from somewhere other that github, but set github as the homepage...
<evils> marek: what's up with that?
<gchristensen> sonatype is pretty much exactly where I'd expect a java thing to come from
cosimone has joined #nixos
<gchristensen> evils: it is where they link to: https://github.com/jpmorganchase/tessera/releases
<evils> ah
<evils> the merged version is 2 releases and 3 months behind though
<gchristensen> that is a bit interesting indeed
<gchristensen> but eh
<evils> gchristensen: aren't you the lead security person 'round here?
<{^_^}> [nixpkgs] @hax404 opened pull request #83285 → teeworlds: python2 -> python3; add menu item → https://git.io/Jvy7O
<gchristensen> hi :) I'm involved
bahamas has joined #nixos
<gchristensen> I'd say it is weird that he didn't package the latest, and probably should have -- and it'd be good to talk to tem about it
<Valodim[m]> So, it's a PR that was created and merged by the same person, without so much as a bot build or reactions by anyone. I guess my question is where this falls in the existing PR culture, between "violating policy", "not violating policy but kind of not how things should be", "fine for now but maybe not ideal on the long run", and "the way it's supposed to be"
<gchristensen> Valodim[m]: the bot did build it on 3 platforms
<MichaelRaskin> There was a bot build
<gchristensen> and not violating policy and fine or now, and in the future it'd be nice to have 2 sets of eyeballs
<gchristensen> imo anyway
<MichaelRaskin> Definitely not violating policy, fine until no non-committer PRs get stuck in limbo
cosimone has quit [Quit: Terminated!]
cjpbirkbeck has joined #nixos
<Valodim[m]> I kind of assumed that merging one's own PRs would be frowned upon (unless absolutely trivial). I admit this does slightly reduce my confidence in the package quality of the nixpkgs tree. :\ although I do understand it's a very practical tradeoff
bahamas has quit [Ping timeout: 256 seconds]
<gchristensen> understood
<Valodim[m]> ftr I didn't want to accuse anyone of violating policy, I was just curious what the policies and lived culture was :)
abathur has joined #nixos
<simpson> Valodim[m]: Looking at the PR, there *were* bot builds. 16 checks passed.
<simpson> Ah, I am late.
<Valodim[m]> simpson: yeah I saw. I had assumed that the bot would only built if instructed to. I figure that's only the case for PRs of users not in the trust list of the bot?
<Valodim[m]> guess I'll go read the relevant RFC processes now, I feel underinformed to really partake in the discussion :)
<gchristensen> Valodim[m]: a few people push direct to master, this has come down significantly over the last 3 years. sometimes PR authors, if they're maintainers, merge their own PRs. this isn't abnormal.
<gchristensen> the bot builds every PR now by default
<evils> gchristensen: any idea when it'll start checking for unquoted URLs?
CMCDragonkai1 has quit [Ping timeout: 256 seconds]
<gchristensen> hmm I'm not sure how I would make it do that
<{^_^}> [nixpkgs] @Ma27 pushed to release-20.03 « prometheus-wireguard-exporter: 3.2.2 -> 3.2.4 »: https://git.io/Jvy7w
<{^_^}> [nixpkgs] @petabyteboy opened pull request #83286 → yarn: 1.22.2 -> 1.22.4 → https://git.io/Jvy7r
<MichaelRaskin> Basically, right now r-ryantm is auto-improving the situation
<MichaelRaskin> As this does not create any separate churn, it is nice that it happens gradually
<{^_^}> [nixos-homepage] @garbas pushed to master « Documentation overview page (#357) »: https://git.io/Jvy7K
<gchristensen> yeah, that is a good point MichaelRaskin
<{^_^}> [nixos-homepage] @garbas merged pull request #357 → Documentation overview page → https://git.io/Jvy76
<{^_^}> [nixos-homepage] @garbas pushed 0 commits to common-learn-page: https://git.io/Jvy7i
<evils> nice
<Valodim[m]> thanks for the explanations everyone
<simpson> Extremely automated workflows are necessary at scale. I'd hope that, in the future, we can have more PRs that not only are automatically reviewed like this, but also automatically merged and automatically reverted upon breakage.
<gchristensen> Valodim[m]: it is nice to have people care :)
<MichaelRaskin> Also: in full accordance with the RFC motivation, we do have a couple of bugs where Nix and hnix parse unquoted URLs differently
abathur has quit [Ping timeout: 256 seconds]
<gchristensen> MichaelRaskin: sounds like a bug in hnix :P
<Valodim[m]> I guess this also has to do with a very fuzzy feeling of "fairness" from a non-committer's perspective
<gchristensen> good point, Valodim[m]
<Valodim[m]> speaking of, anyone feel like pressing the big green button on this one? https://github.com/NixOS/nixpkgs/pull/76824
<MichaelRaskin> gchristensen: true, but maybe it should become irrelevant instead of perfectly fixed
<{^_^}> #76824 (by puzzlewolf, 11 weeks ago, open): grandorgue: init at 0.3.1-r2333
<srk> would be cool to have some stats about PRs flowing into nixpkgs
abathur has joined #nixos
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen> Valodim[m]: do you play?
<Valodim[m]> gchristensen: no, but my girlfriend does :)
<gchristensen> nice, my wife does too
<Valodim[m]> for the record btw, I very much enjoyed being invited to the nixos-maintainers team after my first PR. I believe stuff like that can be very motivating for new maintainers. big thanks for RFC-0039 👍️
<gchristensen> yay
<evils> srk: like this? https://status.nixos.org/grafana
<xfix> well, the invitation is mostly because it's not possible to request a review from someone who isn't a project member :)
<Valodim[m]> gchristensen: that PR is hers, and she's a tiny bit miffed at this point that it's been in the aforementioned limbo for a while now ;)
<srk> evils: I've looked at that few days ago. Does it have stats for new/merged/closed issues/PRs?
<{^_^}> [nixpkgs] @iv-nn opened pull request #83287 → nixos/rtorrent: add service → https://git.io/Jvy5k
<srk> I don't have js capable browser at hand
<evils> 'nix run nixpkgs.firefox -c firefox' :P
<xfix> question is whether they have X11 to begin with :)
<Valodim[m]> xfix: it's important to make people feel welcome, and this works as a gesture towards that. don't underestimate these things :)
<flokli> q3k: can I spark your interest on https://github.com/NixOS/nixpkgs/pull/83279#issuecomment-603213034 ? ;-)
<srk> evils: yeah, will let ya know after like 1 week of compiling ;)
<xfix> even if you aren't using caches, pretty sure Firefox shouldn't compile that long
<q3k> flokli: i guess, but i'm not sure why me in particular :)
<srk> xfix: it's imx6q (quad core armv7l at 1.4Ghz)
<xfix> how much RAM do you have?
<srk> 4G
<flokli> because arianvp told me so ;-)
<xfix> yeah, no, it won't work then
<q3k> flokli: oh no
<arianvp> :D
<flokli> heh
<q3k> flokli: i'll try to take a stab at it later
<q3k> but i'm honestly somewhat busy right now
<flokli> that'd be wonderful, thanks :-)
<xfix> Firefox requires more than 4GB of RAM to build
<flokli> no worries
<srk> xfix: well I could enable swap, but really? 4G?
<q3k> i mean, the error you posted is obvious - you're trying to build a gomod package without gomod
<q3k> but i'm not immediately sure how that ties into nixos
<srk> xfix: and it's not just firefox but all its deps ;)
<evils> srk: there's github issues and PRs dashboards, the diff one is visually interesting :D
<q3k> flokli: (not super familiar with building go on nix)
<arianvp> darnit
<arianvp> I hoped you were
<{^_^}> [nixpkgs] @7c6f434c merged pull request #83272 → ipmiutil: 3.1.5 -> 3.1.6 → https://git.io/JvyM5
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/Jvy5C
<flokli> we invoke buildGoPackage
<q3k> no, i'm mostly familiar with go itself, and its interaction with bazel if anything
<xfix> all its deps is mostly Rust compiler
<xfix> to be fair
<srk> evils: yeah, will check it out when I'm done working :)
zupo has joined #nixos
<flokli> for each terraform module. but it seems some of them fail to build. and I'm not sure if it's missing vendor files, or if we're building them wrongly
<srk> that sounds scary
<xfix> and of course, Rust compiler requires LLVM
<srk> xfix: that means it does a bunch of bootstrapping itself at build time right
<q3k> flokli: is tht package (google.golang.org/api/sql/v1beta4) in goDeps?
<arianvp> is buildGoPackage vendoring dependencies? Or does it do the weird lockfile sha256 hack?
<xfix> not quite yet
bennofs1 has joined #nixos
<xfix> currently nixpkgs bootstraps Rust compiler from binary
<xfix> but I suppose in the future it may use mrustc, who knows
<arianvp> xfix: we should! the guix people even did all the homework for us :)
<q3k> flokli: oh, you should be using buildGoModule
<q3k> flokli: buildGoPackage is the old method
<gchristensen> arianvp: doesn't mrustc build an early rust, and then you have to build 100 versions of rust sequentially?
<q3k> flokli: that pulls in all gomod defined deps
<arianvp> gchristensen: that's the name of the game yes
<gchristensen> yeah no thanks
<xfix> mrustc can build 1.29, and then you have to build Rust compilers version by version
<srk> xfix: I meant firefox, rustc is not that bad deps wise
<flokli> q3k: but this means I need to pass another hash, as it's a fixed-output derivation? why is this even necessary if a vendor folder is provided?
<arianvp> ah but buildGoModule uses fixed output derivations hack which is nit great
<q3k> flokli: go vendor support is only via gomod iirc
<xfix> the chain could look like this: mrustc -> 1.29 -> 1.30 -> 1.31 -> 1.32 -> 1.33 -> 1.34 -> 1.35 -> 1.36 -> 1.37 -> 1.38 -> 1.39 -> 1.40 -> 1.41 -> 1.42
<arianvp> gchristensen: i'm not sure how friendly rust is to bootstrapping; it might be less bad than that
<q3k> flokli: go build without gomod does not look at the vendor directory
<q3k> flokli: go build without gomod is basically super old and super basic, and relies on all deps being in GOPATH
<tilpner> mrust is a massive shortcut over bootstrapping via ocaml
<srk> :D cool
<q3k> flokli: go build with gomod is the new shit, even if you don't pull stuff from outside but just use a vendor subdir
<gchristensen> Valodim[m]: I just left a couple comments :/
<tilpner> It might still not please hydra though
<flokli> q3k: so I need to check why `modSha256` is required, and if we can make it optional if a vendor folder is part of the source.
<arianvp> welll then we need to change hydra :P
<q3k> flokli: but you will still indeed need a hash for fixed-output, but that output should be stable
<q3k> no, i think you need it regardless
<q3k> again, don't remember
<q3k> because this just invokes go with gomod, and doesn't know if it's actually going to pull anything or just use the vendor directory
<flokli> q3k: yeah, it just makes automatic updating very painful and error-prone, as you don't notice things changed
<q3k> maybe you could hack gobuildmodule to have a 'no external deps' flag that would prohibit pulling from the internet, but also allow not having to have a fixed output
<q3k> not sure, `git blame` that part of nixpkgs and poke the authors ^^
<flokli> yeah, that could work :-)
<flokli> thanks :-)
<q3k> for now just try it with the modsha256
<q3k> if that works, then figure out how to get rid of that
<flokli> Aye
<q3k> but regardless, the legacy non-go-mod toolchain will not by itself use the vendor directory without some ugly-ass hacks like pointing GOPATH to some synthetic path with the vendor directory carefully copied there
<adisbladis> Tbh I wanna rewrite vgo2nix and eliminate buildGoModule completely
<q3k> (and there's some legacy tools that help with that, but you almost definitely shouldn't use them)
<q3k> sure, that's another approach
<q3k> (vgo == go modules)
opthomasprime has joined #nixos
<q3k> (for flokli )
<xfix> Go is much easier to bootstrap, the compiler is designed to be possible to compile with Go 1.4 (Go 1.4 being the last release to not be written in Go itself)
<q3k> (vgo is how it was called experimentally before it landed in go mainline)
domogled has joined #nixos
<xfix> (or you can use gccgo)
<adisbladis> xfix: I guess you already know this, but that's exactly how we bootstrap go in nixpkgs.
Shoubit has quit [Remote host closed the connection]
waleee-cl has joined #nixos
cosimone has joined #nixos
<{^_^}> [nixpkgs] @romildo merged pull request #83232 → ant themes: should not use a fixed output path → https://git.io/JvyCE
<{^_^}> [nixpkgs] @romildo pushed 5 commits to master: https://git.io/Jvy5K
<arianvp> im trying to find the docs for nixops but having a hard time
<arianvp> https://nixos.org/nixops now redirects to the github repo, and those docs only document the machine config and cli but not the cloud stuff
<arianvp> where can I find that?
<arianvp> i.e. https://hydra.nixos.org/build/115288507/download/1/manual/manual.html doesn't mention anything about GCE, Amazon, or Virtualbox etc
<arianvp> i.e. https://hydra.nixos.org/build/115288507/download/1/manual/manual.html doesn't mention anything about GCE, Amazon etc
<tilpner> I was hoping for http://releases.nixos.org/?prefix=nixops/latest/manual/
<tilpner> But, uhh, NoSuchKey
<{^_^}> [nixpkgs] @r-ryantm opened pull request #83289 → libbluray: 1.1.2 -> 1.2.0 → https://git.io/Jvy5M
<evils> hmm, anyone know a nixos test that reboots the vm?
<tilpner> nfs/simple.nix
* tilpner has the power of rg
<{^_^}> [nixpkgs] @petabyteboy merged pull request #83286 → yarn: 1.22.2 -> 1.22.4 → https://git.io/Jvy7r
<{^_^}> [nixpkgs] @petabyteboy pushed to master « yarn: 1.22.2 -> 1.22.4 (#83286) »: https://git.io/Jvy5S
* srk has the power of alias gg='git grep -i'
* evils types `grep -sir`
orivej has joined #nixos
<srk> :D very polite!
bahamas has joined #nixos
<{^_^}> [nix] @edolstra pushed 14 commits to master: https://git.io/Jvy5h
Makaveli7 has joined #nixos
<jasom> I'm getting some errors trying to run a program under wine, and some googling tells me that I may need 32-bit graphics drivers installed. Is there a way to do this under nixos?
<tilpner> hardware.opengl.driSupport32Bit
<tilpner> And maybe hardware.pulseaudio.support32Bit
buckley3104 has joined #nixos
rembo10 has quit [Quit: ZNC 1.7.5 - https://znc.in]
<{^_^}> [nixpkgs] @primeos opened pull request #83290 → gn: 20190403 -> 2020-03-09 → https://git.io/Jvyd4
rembo10 has joined #nixos
Ariakenom has quit [Ping timeout: 265 seconds]
Ariakenom has joined #nixos
<{^_^}> [nixpkgs] @grahamc merged pull request #76824 → grandorgue: init at 0.3.1-r2333 → https://git.io/Jexgi
<{^_^}> [nixpkgs] @grahamc pushed 3 commits to master: https://git.io/Jvydp
camsbury has joined #nixos
<camsbury> anyone have a 12,1 macbook pro running nixos with a working webcam/mic?
<camsbury> I am importing the hardware modules for it in my config, and yet it seems to do nothing for either...
wavirc22 has quit [Read error: Connection reset by peer]
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
wavirc22 has joined #nixos
noudle has quit []
rail has quit [Remote host closed the connection]
linarcx has quit [Ping timeout: 246 seconds]
rail has joined #nixos
rail is now known as rail_
<hyper_ch> don't people put a postit over webcam in the notebooks usually?
<teto> hyper_ch: zuckerberg does
v88m has joined #nixos
<{^_^}> [nixpkgs] @tomberek opened pull request #83291 → cudatoolkit: nvprof libs → https://git.io/JvyFc
<{^_^}> [nixpkgs] @ehmry opened pull request #83292 → lib/systems: Add Genode platform definitions → https://git.io/JvyF8
zarel_ has quit [Ping timeout: 240 seconds]
zarel has joined #nixos
sleepingforest has quit [Quit: bye!]
sleepingforest has joined #nixos
vandenoever has quit [Read error: Connection reset by peer]
wavirc22 has quit [Ping timeout: 246 seconds]
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
<{^_^}> [nixpkgs] @edolstra merged pull request #83199 → Remove manual service → https://git.io/Jvyf4
<{^_^}> [nixpkgs] @edolstra pushed 3 commits to master: https://git.io/JvyF9
drgbr has joined #nixos
sleepingforest has quit [Client Quit]
camsbury has quit [Remote host closed the connection]
opthomasprime has left #nixos [#nixos]
sleepingforest has joined #nixos
<gchristensen> ma27[m]: ping?
<ma27[m]> gchristensen: pong
sleepingforest has quit [Read error: Connection reset by peer]
sleeping- has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
<gchristensen> ma27[m]: can we talk hydra in 30min?
glittershark has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « zoom-us: 3.5.361976.0301 -> 3.5.372466.0322 »: https://git.io/JvybJ
<{^_^}> [nixpkgs] @mikesperber opened pull request #83294 → polysemy-plugin: fix build → https://git.io/JvybZ
sleeping- has quit [Quit: bye!]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #83295 → libdvdnav: 6.0.1 -> 6.1.0 → https://git.io/JvyAB
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
<{^_^}> [nixpkgs] @doronbehar opened pull request #83296 → buildFHSUserEnv: use -a "$0" in almost last exec → https://git.io/JvyAh
c0c0 has quit [Ping timeout: 240 seconds]
fenedor has joined #nixos
oever has joined #nixos
vandenoever has quit [Ping timeout: 256 seconds]
<ma27[m]> gchristensen: sure :)
fendor has quit [Ping timeout: 258 seconds]
linarcx has joined #nixos
rail_ is now known as rail___
glittershark has quit [Ping timeout: 240 seconds]
glittershark has joined #nixos
BradleyS has joined #nixos
hmpffff_ has joined #nixos
<{^_^}> [nixos-homepage] @garbas pushed 2 commits to landing-page: https://git.io/Jvyxc
philr has quit [Ping timeout: 250 seconds]
hmpffff has quit [Ping timeout: 256 seconds]
c0c0 has joined #nixos
rail_ has joined #nixos
mallox has quit [Quit: Leaving]
rail___ has quit [Quit: gone...]
zarel_ has joined #nixos
zarel has quit [Ping timeout: 264 seconds]
erasmas has joined #nixos
oever is now known as vandenoever
nobrak has joined #nixos
<{^_^}> [hydra] @grahamc pushed to master « fixup: hydra-init: correct reference to hydra-backill-ids »: https://git.io/JvyxM
justanotheruser has quit [Ping timeout: 246 seconds]
bvdw has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @vcunat pushed to release-20.03 « Merge #82728: racket: enable building on aarch64 »: https://git.io/Jvyx5
bvdw has joined #nixos
ixxie has joined #nixos
cr4y1 has quit [Remote host closed the connection]
cr4y1 has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « ubridge: 0.9.16 -> 0.9.17 »: https://git.io/JvypI
<{^_^}> [nixpkgs] @teto merged pull request #83282 → kitty: 0.16.0 -> 0.17.1 → https://git.io/JvyHd
<{^_^}> [nixpkgs] @teto pushed commit from @Luflosi to master « kitty: 0.16.0 -> 0.17.1 »: https://git.io/Jvypm
<{^_^}> [nixpkgs] @r-ryantm opened pull request #83297 → libdvdread: 6.0.2 -> 6.1.0 → https://git.io/JvypY
justanotheruser has joined #nixos
nuriaion has joined #nixos
ottidmes has quit [Ping timeout: 240 seconds]
<nuriaion> hi
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nuriaion> i would like to upgrad nodePackages.prettier. How can i do that? (I was able to update a normal package in nixpkgs but i didn't understood the nodePackags and haven't found a tutorial)
<{^_^}> [nixpkgs] @edolstra pushed 2 commits to master: https://git.io/Jvyp1
jumper149 has joined #nixos
<nobrak> hi folks, is anyone familiar with running https://github.com/tweag/nix-store-gcs-proxy inside of a kubernetes cluster (GKE specifically)? I have things "running" but when i try to hit nix-cache-info I get the following: Get https://storage.googleapis.com/BUCKET_NAME/OBJECT: oauth2: cannot fetch token: Post https://oauth2.googleapis.com/token:
<nobrak> x509: certificate signed by unknown authority
ottidmes has joined #nixos
<nobrak> In troubleshooting I made sure that I had ca-certificates installed and updated
c0c0 has quit [Ping timeout: 260 seconds]
xkapastel has joined #nixos
fenedor is now known as fendor
oever has joined #nixos
zupo has joined #nixos
vandenoever has quit [Ping timeout: 246 seconds]
ottidmes has quit [Ping timeout: 256 seconds]
ottidmes has joined #nixos
<{^_^}> [nixpkgs] @matthiasbeyer opened pull request #83299 → tut: init at 0.0.2 → https://git.io/Jvyhm
absoluutely_ has joined #nixos
leonardp has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed commit from @marsam to release-20.03 « Merge #82081: swiProlog: openssl 1.0.2 -> openssl 1.1 »: https://git.io/JvyhG
c0c0 has joined #nixos
teto has quit [Ping timeout: 246 seconds]
KeiraT has quit [Ping timeout: 240 seconds]
absoluutely_ has quit [Client Quit]
ianmjones[m] has joined #nixos
<leonardp> hello, i configured one of my hosts as binary-cache/distributed builder. now when doing a build on a client i get a lot of warnings like: `warning: substituter 'https://cache.nixos.org' does not have a valid signature for path '/nix/store....'`
KeiraT has joined #nixos
orivej has joined #nixos
<leonardp> is this expected bahaviour could this indicate a miscofiguration with the substituters?
<clever> leonardp: the default value of nix.binaryCachePublicKeys was lost
craige has quit [Quit: ZNC - http://znc.in]
<clever> leonardp: how did you assign a value to nix.binaryCachePublicKeys?
<raboof> can I configure what browser is started when xdg-open'ing an html file from /etc/nixos/configuration.nix?
<{^_^}> [nixpkgs] @jtojnar merged pull request #81626 → Gnome 3.36 → https://git.io/JvasT
<{^_^}> [nixpkgs] @jtojnar pushed 141 commits to staging: https://git.io/Jvyhh
<{^_^}> [nixpkgs] @jtojnar pushed 0 commits to gnome-3.36: https://git.io/Jvyhj
teto has joined #nixos
ericsagnes has quit [Ping timeout: 246 seconds]
<leonardp> clever: nix.extraOptions = '' extra-substituters = http://adelskronen.local''
absoluutely_ has joined #nixos
<leonardp> i mean: trusted-public-keys = ${pubkey}
orivej has quit [Ping timeout: 264 seconds]
<clever> leonardp: try using nix.binaryCaches or nix.trustedBinaryCaches instead
<clever> leonardp: yeah, trusted-public-keys = ${pubkey} is what breaks everything
cole-h has joined #nixos
<clever> leonardp: you must use nix.binaryCachePublicKeys
<leonardp> yeah i looked at /etc/nix/nix.conf and it looked fishy to me
<clever> leonardp: if you use nix.extraOptions, you get 2 `trusted-public-keys =`'s in nix.conf, and only one of them has an effect
<clever> leonardp: but if you use nix.binaryCachePublicKeys, nix will concat the lists, and create a single `trusted-public-keys =`
<leonardp> clever: thats what i kinda figured after reading the warnings
<leonardp> clever: somehow i completely overlooked that option O_o, thanks!
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
chpatrick has quit [Quit: Connection closed for inactivity]
<tokudan[m]> ma27: thanks for all your work with nextcloud, it's very appreciated.
<ma27[m]> thx! :)
o1lo01ol1o has quit [Ping timeout: 258 seconds]
kfound has quit [Ping timeout: 246 seconds]
ericsagnes has joined #nixos
kfound has joined #nixos
<{^_^}> [nixpkgs] @mehlon opened pull request #83300 → tor-browser-bundle-bin: 9.0.6 -> 9.0.7 → https://git.io/Jvyj6
<{^_^}> [nixpkgs] @Evils-Devils opened pull request #83301 → Tuptime: Init Package, Module and Test → https://git.io/JvyjP
zupo has quit [Ping timeout: 250 seconds]
zupo has joined #nixos
bahamas has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @chpatrick opened pull request #83302 → meshlab: 20190129-beta -> 2020.03 → https://git.io/Jvyjx
<glittershark> Has anyone implemented a sort of LRU garbage collection for private binary caches?
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #83043 → openresty: 1.15.8.2 -> 1.15.8.3 → https://git.io/Jvyjj
<{^_^}> [nixpkgs] @thoughtpolice pushed commit from @emilazy to master « openresty: 1.15.8.2 -> 1.15.8.3 »: https://git.io/JvSee
<glittershark> "garbage collection" isnt' the right term here really since I'm not registering gc roots, I just want to delete all store paths that haven't been read for some amount of time
hmpffff has joined #nixos
hmpffff_ has quit [Ping timeout: 256 seconds]
<bqv[m]> glittershark: that sounds like a terrible idea
<clever> glittershark: it is also invalid for a thing to depend on something that doesnt exist
<clever> glittershark: so you would need to recursively delete many things
<tilpner> Ehh, it sounds like "I have limited storage space and want to maximise cache hits"
<tilpner> They're not asking about store GC, just cache GC
<bqv[m]> imagine if you left your machine on too long and it deleted the "poweroff" binary
<clever> bqv[m]: nix will respect the gc roots by default
captjakk has joined #nixos
<tilpner> glittershark: You'll probably have to build it yourself, I haven't seen anything like that
<glittershark> yeah the idea here is only to delete leaves in the store
<bqv[m]> clever: but then it's just a partial gc, so i assumed he meant not doing that
<{^_^}> [nixpkgs] @hedning opened pull request #83303 → gtk3: fix clipboard related crashes in wayland → https://git.io/JvSen
<bqv[m]> because a partial gc would be entirely pointless
<glittershark> not to invalidate any cross-references
<bqv[m]> even if the alternative is recursively horrifying
<glittershark> so I guess the more precise description would be: I want to delete all store paths that both aren't depended on by another store path, and also haven't been read for some amount of time
<glittershark> tilpner is on the money here, this is primarily to save on cloud bills for our private binary cache
<glittershark> because storage may be cheap, but it isn't free
<clever> glittershark: the default algo for `nix-collect-garbage --max-freed 10g` is to delete random un-rooted paths, until they total to 10gig
<glittershark> "recursively horrifying" is also probably an accurate description of what I'm looking for
<glittershark> hmm ok
<bqv[m]> so, stuff that isn't rooted, will get cleaned up by a gc anyway, the only thing i can think of that might otherwise be useful is something to point out gcroots that aren't your system and that haven't been touched for a long time, but even deleting those randomly and automatically sounds like such a bad plan
<glittershark> if I could replace "random" with "LRU" there that'd be awesome
<bqv[m]> oh
<bqv[m]> lmao
<clever> glittershark: its random, so it doesnt pick the same thing multiple times
<{^_^}> [nixpkgs] @nh2 opened pull request #83304 → chromium: Enable swiftshader by default. → https://git.io/JvSez
<glittershark> are there really that few people that are running a private binary cache for a team of developers that nobody's wanted to do this yet? this seems pretty obvious to me
<tilpner> glittershark: How is your cache stored and served?
<glittershark> well, right now it's just `nix-serve` serving off of a GCE persistentdisk, but I'm gonna swap it out for a GCS bucket with tweag/nix-store-gcs-proxy very soon
<glittershark> because someone pointed out very rightly to me that nix-serve is a little silly at the scale I'm using it
<tilpner> That's very important
cosimone has quit [Read error: Connection reset by peer]
<tilpner> With nix-serve, you indeed want to maintain the "if I have X, I have the entire closure of X" property
<bqv[m]> most people here just use hydra...
<tilpner> But you don't really need to do that if you store it "cold" (not in an active store)
<clever> hydra does have the ability to upload to an S3 bucket
cosimone has joined #nixos
<clever> but there isnt much to GC the bucket
<glittershark> right, I'm still assuming that S3 bucket gradually fills up over time
<clever> and the bucket has no size limit, so we just ignore it for the most part
<tilpner> And now you can just iterate through your objects, find the ones with the earliest access time, and delete until your target cache size is met
<captjakk> anyone have advice on how to build android projects on nixos?
<glittershark> sure, I was thinking I could just do this by disk atime
<tilpner> I wonder when that's going to break...
<glittershark> this is really mostly about money
<tilpner> Yes, ideally you can rebuild missing parts of the closure, but it doesn't always work perfectly
<glittershark> > The operation --delete deletes the store paths paths from the Nix store, but only if it is safe to do so; that is, when the path is not reachable from a root of the garbage collector
<{^_^}> error: syntax error, unexpected ',', expecting ')', at (string):292:72
<glittershark> so yeah `nix-store --delete` appears to do what I'm looking for here
<clever> glittershark: and add `--store gsc://something` to reference that bucket
<glittershark> ok sounds like I'm gonna have to roll this myself
<glittershark> good excuse for a blog post I guess :P
<clever> glittershark: i think i saw a script for this in hydra...
nuriaion has quit []
<glittershark> oh hmm
<glittershark> I'm not using hydra but I wonder if I could rip it out
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
martin__ has joined #nixos
<glittershark> clever: awesome thanks
<bqv[m]> note also: nix clears atime from store paths
<bqv[m]> so... yeah
<bqv[m]> that'll be interesting
kleisli has quit [Remote host closed the connection]
<clever> bqv[m]: i think it just doesnt store it in the nar, but the atime is free to do what it does, once unpacked to the fs
kleisli has joined #nixos
mjrosenb has joined #nixos
<bqv[m]> ah, ok
<clever> bqv[m]: but it is recommended to mount with noatime, for perf
<clever> bqv[m]: but the above case, is the atime on .nar.xz files in gcs
<averell> OmnipotentEntity: ponged
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
oever has quit [Ping timeout: 264 seconds]
BradleyS has left #nixos [#nixos]
<OmnipotentEntity> averell, hi
cole-h has quit [Quit: Goodbye]
<OmnipotentEntity> Thanks for the review on the pr
zupo has joined #nixos
cole-h has joined #nixos
ddellacosta has joined #nixos
absoluutely_ has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jonringer merged pull request #83255 → [20.03] pythonPackages.flake8-future-import: 0.4.5 -> 0.4.6 and fix build → https://git.io/Jvyz9
<{^_^}> [nixpkgs] @jonringer pushed commit from @bhipple to release-20.03 « pythonPackages.flake8-future-import: 0.4.5 -> 0.4.6 and fix build »: https://git.io/JvSvR
<{^_^}> [nixpkgs] @jonringer merged pull request #83259 → earlyoom: 1.3 -> 1.5 → https://git.io/Jvy2F
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « earlyoom: 1.3 -> 1.5 »: https://git.io/JvSv0
m1sosoup has joined #nixos
<{^_^}> [nixpkgs] @drewrisinger opened pull request #83306 → pythonPackages.qiskit-ignis: init at 0.2.0 → https://git.io/JvSvr
<{^_^}> [nixpkgs] @Infinisil pushed commit from @turboMaCk to pr/78478 « zasm: Init at 4.2.6 »: https://git.io/JvSvP
<{^_^}> [nixpkgs] @Infinisil pushed 0 commits to pr/78478: https://git.io/JvSvD
<{^_^}> [nixpkgs] @Infinisil merged pull request #78478 → zasm: Init at 4.2.6 → https://git.io/Jvqun
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/JvSvH
Ariakenom has quit [Quit: WeeChat 2.7]
infandum has joined #nixos
<infandum> Does anyone use static-haskell-nix? I'm trying to build a binary with static-haskell-nix from a stack project but I'm running into issues with p11-kit.
<mjrosenb> morning, all. I have a project where I unfortunately need two java jdks installed. a) is there a way for my .nix file to depend on two different jdks?
<mjrosenb> b) I'm currently referencing JAVA_HOME directly in a script for a different derivation which I'm overriding. Will I have to thread the two different java homes through the layers between my project's .nix file, and that script?
akegalj has joined #nixos
cosimone has quit [Quit: Terminated!]
zaeph has quit [*.net *.split]
swapgs has quit [*.net *.split]
v0|d has quit [*.net *.split]
tilpner has quit [*.net *.split]
nek0 has quit [*.net *.split]
zemm has quit [*.net *.split]
Nafai has quit [*.net *.split]
b42 has quit [*.net *.split]
aw has quit [*.net *.split]
MichaelRaskin has quit [*.net *.split]
aither has quit [*.net *.split]
m1cr0man has quit [*.net *.split]
vesper11 has quit [*.net *.split]
cross_ has quit [*.net *.split]
silver_hook has quit [*.net *.split]
Diogo has quit [*.net *.split]
hexagoxel has quit [*.net *.split]
never_released has quit [*.net *.split]
cyphase has quit [*.net *.split]
wolke has quit [*.net *.split]
nckx has quit [*.net *.split]
jaeckel has quit [*.net *.split]
cptchaos83 has quit [*.net *.split]
pistache has quit [*.net *.split]
mzan has quit [*.net *.split]
kisoneca- has quit [*.net *.split]
pistache has joined #nixos
zemm has joined #nixos
v88m has quit [Read error: Connection reset by peer]
aw has joined #nixos
aither has joined #nixos
hexagoxel has joined #nixos
nek0 has joined #nixos
mzan has joined #nixos
<{^_^}> [nixpkgs] @Infinisil closed pull request #49294 → WIP: More multiple outputs → https://git.io/fxHGB
cross has joined #nixos
Nafai has joined #nixos
nckx has joined #nixos
pistache is now known as Guest16427
Nafai has joined #nixos
Nafai has quit [Changing host]
b42 has joined #nixos
wolke has joined #nixos
swapgs has joined #nixos
<{^_^}> [nixpkgs] @petabyteboy merged pull request #82838 → gitlab: 12.8.6 -> 12.8.7 → https://git.io/JvXXs
<{^_^}> [nixpkgs] @petabyteboy pushed commit from @talyz to master « gitlab: 12.8.6 -> 12.8.7 (#82838) »: https://git.io/JvSfJ
zaeph has joined #nixos
m1cr0man has joined #nixos
v0|d has joined #nixos
swapgs has joined #nixos
swapgs has quit [Changing host]
never_released has joined #nixos
cptchaos83 has joined #nixos
vesper11 has joined #nixos
cyphase has joined #nixos
silver_hook has joined #nixos
kisonecat has joined #nixos
wavirc22 has joined #nixos
melling has quit [Quit: WeeChat 2.7.1]
<{^_^}> [nixpkgs] @dywedir merged pull request #83283 → wofi: 1.1 -> 1.1.2 + fix → https://git.io/JvyQq
<{^_^}> [nixpkgs] @dywedir pushed 3 commits to master: https://git.io/JvSf0
FRidh has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @jonringer merged pull request #83243 → pgloader: 3.6.1 -> 3.6.2 → https://git.io/Jvy4x
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « pgloader: 3.6.1 -> 3.6.2 »: https://git.io/JvSfz
rsoeldner has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jonringer merged pull request #83236 → minder: 1.6.0 -> 1.7.1 → https://git.io/Jvylq
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « minder: 1.6.0 -> 1.7.1 »: https://git.io/JvSfo
tilpner has joined #nixos
<{^_^}> [nixpkgs] @servalcatty opened pull request #83307 → nixos/v2ray: check v2ray config during the build time → https://git.io/JvSfP
<{^_^}> [nixpkgs] @jonringer merged pull request #83226 → elementary-xfce-icon-theme: 0.14 -> 0.15 → https://git.io/JvynU
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « elementary-xfce-icon-theme: 0.14 -> 0.15 »: https://git.io/JvSfX
<jluttine> how to access the build directory in installPhase? i mean, the directory that i get if i run nix-build with --keep-failed and then go to that directory. i can see something that i'd like to use in the install phase i'm writing..
jaeckel has joined #nixos
<clever> jluttine: that should still be the working directory
<clever> jluttine: and $NIX_BUILD_TOP always points to it
<{^_^}> [nixpkgs] @jonringer merged pull request #83167 → nss_wrapper: 1.1.8 -> 1.1.10 → https://git.io/JvDQU
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « nss_wrapper: 1.1.8 -> 1.1.10 »: https://git.io/JvSfM
<infandum> jluttine: Is it like $out ?
o1lo01ol1o has joined #nixos
<Guest16427> what can explain 32-bits application not running ("exec format error") from a FHS environment (that does not have "multiPkgs = null")
<Guest16427> all 32-bit libraries seem to be available, including "ld-linux.so.2", but even "ld-linux.so.2" fails to be executed with "exec format error"
wiml has joined #nixos
hlavaty` has quit [Remote host closed the connection]
o1lo01ol1o has quit [Ping timeout: 240 seconds]
<jluttine> clever: they are quite different. i get significantly different output for these two commands:
<jluttine> ls -l
<jluttine> ls -l $NIX_BUILD_TOP/linphone-desktop-*/
<clever> jluttine: what does `pwd` print out in the installPhase?
<{^_^}> [nixpkgs] @jonringer merged pull request #82834 → moolticute: 0.42.32-testing -> 0.43.3 → https://git.io/JvXPn
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « moolticute: 0.42.32-testing -> 0.43.3 »: https://git.io/JvSfp
asheshambasta has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #82936 → meteor: 1.8.2 -> 1.9.3 → https://git.io/JvSfj
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « meteor: 1.8.2 -> 1.9.3 »: https://git.io/JvSJe
<nextloop> i just installed nixos on my laptop
<gchristensen> yay!
* clever chants, one of us, one of us, one of us
<jluttine> clever: /build/linphone-desktop-971997e/build
<clever> jluttine: cmake involved?
<jluttine> clever: yes
<clever> jluttine: the configurePhase for cmake will `mkdir build ; cd build ; cmake ..`
<clever> jluttine: so you would want `..` in the installPhase
<jluttine> clever: ah! nice! thanks
<{^_^}> [nixpkgs] @jonringer merged pull request #82530 → conftest: 0.15.0 -> 0.18.0 → https://git.io/JviYt
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « conftest: 0.15.0 -> 0.18.0 »: https://git.io/JvSJI
noudle has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #83018 → zchunk: 1.1.5 -> 1.1.6 → https://git.io/JvSJ2
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « zchunk: 1.1.5 -> 1.1.6 »: https://git.io/JvSJa
Guest16427 is now known as pistache
<{^_^}> [nixpkgs] @jonringer merged pull request #82837 → opencl-clhpp: 2.0.10 -> 2.0.11 → https://git.io/JvXXO
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « opencl-clhpp: 2.0.10 -> 2.0.11 »: https://git.io/JvSJw
kfound has quit [Ping timeout: 246 seconds]
kfound has joined #nixos
<martin__> I'm trying to create a nix shell for a c++ codebase (this one https://github.com/ethereum/solidity). I've managed to get it to compile inside the shell successfully on my nixbook, but running the program yields the error:
<martin__> `Unknown exception during compilation: std::bad_cast`
<{^_^}> [nixpkgs] @savoisn opened pull request #83308 → aws-sam-cli: update cookiecutter version to 1.7.0 since 1.6.0 doesn't exists anymore → https://git.io/JvSJS
hmpffff has quit [Read error: Connection reset by peer]
hmpffff_ has joined #nixos
<{^_^}> [nixpkgs] @mmahut opened pull request #83309 → nixos/quorum: init → https://git.io/JvSJx
<{^_^}> [nixpkgs] @jonringer opened pull request #83310 → azure-cli: 2.1.0 -> 2.2.0 → https://git.io/JvSJh
asheshambasta has joined #nixos
wildtrees has joined #nixos
mexisme_ has joined #nixos
kai_w has quit [Quit: Konversation terminated!]
mexisme_ has quit [Ping timeout: 246 seconds]
shafox has quit [Remote host closed the connection]
opthomasprime has joined #nixos
<pittma> How much of what I have in /etc/nixos/configuration.nix can (should) I have in a user-level configuration file?
<pittma> What of the system config can even go into a user-level config? Anything beyond packages?
<ottidmes> ,home-manager pittma
<{^_^}> pittma: home-manager allows you to manage your per-user configuration similarly to NixOS's configuration.nix <https://nixos.wiki/wiki/Home_Manager>. It can also be used in your NixOS configuration directly, see <https://rycee.gitlab.io/home-manager/index.html#sec-install-nixos-module>
levdub has joined #nixos
opthomasprime has quit [Ping timeout: 264 seconds]
<ottidmes> pittma: nix-env user profiles will indeed only allow packages
cizra has quit [Ping timeout: 240 seconds]
opthomasprime has joined #nixos
<pittma> Right on.
<pittma> Thanks for the links!
jb55 has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
jb551 has joined #nixos
Fare has joined #nixos
jollyjester has joined #nixos
laerling has quit [Quit: ZNC 1.7.3 - https://znc.in]
xensky has quit [Quit: No Ping reply in 180 seconds.]
laerling has joined #nixos
xensky has joined #nixos
MichaelRaskin has joined #nixos
o1lo01ol1o has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @romildo opened pull request #83311 → uget: 2.2.2 -> 2.2.3-1 → https://git.io/JvSUX
nuncanada has joined #nixos
kleisli has quit [Ping timeout: 264 seconds]
<{^_^}> [nixops] @grahamc opened pull request #1263 → script_defs: open state files and deployments with a context manager → https://git.io/JvSUH
<{^_^}> [nixpkgs] @jonringer merged pull request #83310 → azure-cli: 2.1.0 -> 2.2.0 → https://git.io/JvSJh
<{^_^}> [nixpkgs] @jonringer pushed to master « azure-cli: 2.1.0 -> 2.2.0 »: https://git.io/JvSUN
ZaraChimera has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #82567 → namecoind: nc0.15.99-name-tab-beta2 -> nc0.19.1 → https://git.io/JvinX
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « namecoind: nc0.15.99-name-tab-beta2 -> nc0.19.1 »: https://git.io/JvSUh
<glittershark> after using nix for development and in production for a little over 6 months, I think today is finally the day I install nixos on a laptop
<glittershark> it's TIME
<glittershark> have a garbage macbook air lying around that's perfect for this
cizra has joined #nixos
<cole-h> ma27[m]: Are you planning on addressing all the packages that use `target/release` directly in your PR?
bahamas has joined #nixos
<cole-h> Or the real question: should I close my PR that was supposed to help with that and let you deal with it
orivej has joined #nixos
DamienCassou has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #82219 → pyglet: support ffmpeg libraries → https://git.io/JvKUN
<{^_^}> [nixpkgs] @jonringer pushed commit from @mt-caret to master « pyglet: support ffmpeg libraries »: https://git.io/JvSTI
jollyjester has quit [Quit: leaving]
<Fare> What's the right way to generate docker images from NixOS ?
cizra has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @jonringer merged pull request #82230 → Add (generated) package ats-vim → https://git.io/JvKtv
<{^_^}> [nixpkgs] @jonringer pushed commit from @poscat0x04 to master « vimPlugins.ats-vim: init at 2020-03-03 »: https://git.io/JvSTt
<DamienCassou> hi everyone. I would like to install nixos on an ARM 32bits. Everything I find on https://nixos.wiki/wiki/NixOS_on_ARM seems outdated (e.g., downloads from 2018 and mentions of bugs fixed one year ago). Should I follow instructions there anyway or is there a better way?
<Fare> and where is the documentation / tutorial for it?
cizra has joined #nixos
<marek> Valodim[m]: well, I would be more than happy to get more eyes on it! I hope you are doing at least few reviews a day to help with the current situation :)
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JvSTO
<{^_^}> [nixpkgs] @jonringer merged pull request #82363 → pytest-html: init at 2.1.0 → https://git.io/Jv6L5
asheshambasta has quit [Ping timeout: 246 seconds]
* ZaraChimera wonders which computer to partition and install NixOS on....
<cole-h> ZaraChimera: Your main one, of course!
<ZaraChimera> True... but then I couldn't play all my games :D
<cole-h> You could after you get everything setup properly :P
shibboleth has joined #nixos
horek has joined #nixos
<MichaelRaskin> Fare: I am not sure there us the one true way. I have recently heard something about nixery
<Fare> looks like there is a buildLayeredImage on https://nixos.org/nixpkgs/manual/
<glittershark> Fare: I'm using nixpkgs.dockerTools.buildLayeredImage in production and it's pretty nice
<ZaraChimera> Does nix play nice with WSL?
Arahael has quit [Ping timeout: 246 seconds]
<Fare> I'll have to think about how to package gerbil libraries, though.
<ZaraChimera> Or set up a VM and install NixOS there and then clone it over once I have it more or less grokked to a basic degree.
bahamas has quit [Read error: Connection reset by peer]
Arahael has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #82170 → hepmc3: 3.1.2 -> 3.2.0, add python support → https://git.io/Jvoio
<{^_^}> [nixpkgs] @jonringer pushed 3 commits to master: https://git.io/JvSTu
terlar has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #83311 → uget: 2.2.2 -> 2.2.3-1 → https://git.io/JvSUX
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/JvST2
sleepingforest has joined #nixos
<glittershark> Fare: as far as documentation: https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/docker/examples.nix is probably the best that exists for dockerTools
<{^_^}> [nixpkgs] @jonringer pushed commit from @bachp to master « python.pkgs.bacpypes: init at 0.18.0 »: https://git.io/JvSTV
<{^_^}> [nixpkgs] @jonringer merged pull request #76191 → python.pkgs.bacpypes: init at 0.18.0 → https://git.io/JvSTw
butterthebuddha has joined #nixos
linarcx has quit [Ping timeout: 256 seconds]
pluplog has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @mmahut merged pull request #81659 → virglrenderer: 0.8.1 -> 0.8.2 → https://git.io/JvaRh
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/JvSTi
shibboleth has quit [Remote host closed the connection]
<terlar> Any ideas how to debug a slow nix-shell, all my nix-shells have become slow, even the simplest `nix-shell -p nix --pure --run exit` takes 8 seconds. I tried running with the latest release-19.09 and the latest nixos-unstable nixpkgs by passing -I, still the same result. I don't remember this being this slow earlier...
shibboleth has joined #nixos
<clever> terlar: what about `time nix-shell -p --run exit` ?
<{^_^}> [nixpkgs] @mmahut merged pull request #81525 → libx86emu: 2.6 -> 3.1 → https://git.io/Jv2o4
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/JvST9
zebrag has quit [Quit: Konversation terminated!]
<terlar> time nix-shell -p --pure --run exit
<terlar>
<terlar> user0m7.801s
<terlar> real0m7.891s
<terlar> sys0m0.061s
zebrag has joined #nixos
<clever> terlar: `time nix-instantiate '<nixpkgs>' -A hello` ?
horek has quit [Quit: Leaving]
<terlar> real0m4.201s
<terlar> user0m4.140s
<terlar> sys0m0.042s
<terlar> also quite slow?
<clever> terlar: `time nix-instantiate '<nixpkgs>' -A hello --arg config '{}' --arg overlays '[]'` ?
Makaveli7 has quit [Quit: WeeChat 2.7.1]
<terlar> real0m3.955s
<terlar> user0m3.896s
<terlar> sys0m0.041s
<clever> terlar: that takes 0.4 seconds on my end, what is your CPU?
<Fare> glittershark, thanks!
<energizer> .2s for me
<terlar> Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
<tilpner> Is <nixpkgs> on an SSD?
<terlar> yes
<tilpner> Huh, that's weird
<clever> terlar: one min
noudle has quit []
<tilpner> Anything demanding running in the background? (IO or CPU wise)
<{^_^}> [nixpkgs] @Zhen-hao closed pull request #82440 → upgrade vscode extension versions for Scala → https://git.io/Jv6Kk
<clever> NIX_SHOW_STATS_PATH=profile.json NIX_SHOW_STATS=1 NIX_COUNT_CALLS=1 nix-instantiate '<nixpkgs>' -A hello --arg config '{}' --arg overlays '[]'
<clever> terlar: try this, then pastebin the entire profile.json file
<energizer> terlar: if you do `time nix-instantiate '<nixpkgs>' -A hello --arg config '{}' --arg overlays '[]'` a couple times in a row does it remain slow?
<clever> terlar: for reference mine is https://gist.github.com/ecaba1ca3a80a158c8f8941ebe7b2e6b
<clever> jonreeve[m]: is it nixos or another distro?
kleisli has joined #nixos
<terlar> Is that supposed to return a derivation? That was actually fast
<jonreeve[m]> NixOS
<clever> terlar: yeah, it should return a drv file
<jonreeve[m]> I haven't changed any of my permissions or anything
<clever> jonreeve[m]: cabal2nix is trying to write to /nix/var while inside a nix sandbox, so there is a problem with the build process
sleepingforest has quit [Quit: bye!]
m1sosoup has quit [Ping timeout: 256 seconds]
<clever> jonreeve[m]: can you pastebin `nix show-derivation /nix/store/02szzrd1w7wqmnkh9is5qlx64m7r6f1z-cabal2nix-color-word-analyzer.drv` ?
sleepingforest has joined #nixos
<jonreeve[m]> clever: Sure, one sec
drakonis has joined #nixos
wavirc22 has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
sleepingforest has quit [Client Quit]
nixproblemsooof has joined #nixos
wavirc22 has joined #nixos
opthomasprime has left #nixos [#nixos]
o1lo01ol1o has joined #nixos
<nixproblemsooof> I keep getting hangs in "nixos-20.09pre217537.d96bd3394b7" and tailing the system log I see "nixos xserver-wrapper[1150]: (EE) client bug: timer event1 debounce short: scheduled expiry is in the past (-14ms), your system is too slow" even though I'm on a very fast system. How should I proceed?
<ma27[m]> cole-h: ah no, I just wanted to wait for a few more reviews :)
<clever> terlar: thats reporting only 0.175 sec, which is pretty speedy, weird
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « gucharmap: do not depend on libtool after the switch to meson »: https://git.io/JvSkk
<terlar> yes, now it is fast... I ran it a couple of times as energizer suggested as well, all execs up until that dump was slow
wavirc22 has quit [Client Quit]
<clever> jonreeve[m]: its a json output, so if you rename the file in the gist, the syntax highlighting will be a lot more pretty
<terlar> But with the overlays enabled again, it is slow, so I guess I have some bad overlays
<clever> jonreeve[m]: what does the cabal file in /nix/store/fvka3nd7slnqgjvfkjg649v77y10lc89-color-word-analyzer look like? can you add that file to the gist?
<clever> terlar: what overlays do you have?
mexisme_ has joined #nixos
o1lo01ol1o has quit [Ping timeout: 264 seconds]
wavirc22 has joined #nixos
c0c0 has quit [Ping timeout: 264 seconds]
<terlar> A couple, mostly made by myself: https://github.com/terlar/nix-config/tree/master/overlays
<{^_^}> [nixpkgs] @r-ryantm opened pull request #83312 → openfortivpn: 1.12.0 -> 1.13.1 → https://git.io/JvSk3
<das_j> how do I Realize with the nix 2.0 tool?
<clever> das_j: you can run `nix build` on either a storepath or a drv file
<nixproblemsooof> I had problems with plasma shell using a lot of cpu, so I'll try changing to xfce and see if my performance issues go away.
<tilpner> terlar: Can you temporarily deactive your python overlay?
nixproblemsooof has quit [Remote host closed the connection]
<das_j> clever: Strange… when I run nix build with a drv in store, the result symlink points to the drv
<terlar> Yes, will do
<tilpner> That one looks pretty suspicious
<clever> das_j: is the last-mod on the result symlink changing?
mojjo has quit [Remote host closed the connection]
<das_j> clever: Yes. It also gets recreated when I delete it
<clever> das_j: what exactly did you run with `nix build`, the full arg list and output
<terlar> tilpner: yes, that was the main culprit
<das_j> `nix build /nix/store/g0240sk9j8lm9szn8zdhqsjj8hn44ahn-nixos-system-pitaya-20.09.drv`
<das_j> there is no output anymore as everything is already built
<jonreeve[m]> clever: Weird, does GitHub not do nix syntax highlighting? The filename has a .nix extension.
<clever> das_j: that appears to be a bug in `nix build`, it did build it, but pointed result to the wrong thing
linarcx has joined #nixos
<clever> jonreeve[m]: github does have nix highlighting, but the contents you pasted are json, so its showing red all over the place
<clever> jonreeve[m]: and that matches the one you find in /nix/store/fvka3nd7slnqgjvfkjg649v77y10lc89-color-word-analyzer ?
<terlar> tilpner: thank you, "refactored" it quite recently and didn't notice the slow-down immediately, so was hard to track down
abathur has quit [Ping timeout: 256 seconds]
<terlar> What would be the best practice to add extra python packages, without explicitly knowing the versions
<glittershark> terlar: look them up on pypi
<glittershark> curl -sL "https://pypi.python.org/pypi/$1/json" | jq -r '.info.version'
<glittershark> is a oneliner I have to do that
<glittershark> literally doing a ton of that right now :)
<jonreeve[m]> clever: There's nothing in that directory, apparent.
<clever> jonreeve[m]: thats your problem then, what args did yo run callCabal2nix with?
<terlar> I meant adding the packages to several of the python package sets, sorry if I was unclear. But thanks for that snippet anyways, seems useful
<jonreeve[m]> * clever: There's nothing in that directory, apparently
<clever> jonreeve[m]: thats your problem then, what args did yo run callCabal2nix with?
<jonreeve[m]> * clever: There's nothing in that directory, apparently.
<jonreeve[m]> *apparently
<jonreeve[m]> I'm guessing that's the root of the problem
captjakk has quit [Remote host closed the connection]
<jonreeve[m]> But what do I do in a situation like this? Just delete the directory?
<clever> jonreeve[m]: what args did yo run callCabal2nix with?
<jonreeve[m]> Or is there a nix command that will let me remove the caches that match my project name?
akegalj has quit [Quit: leaving]
<clever> jonreeve[m]: its not a caching problem, its a problem with your nix code
<clever> jonreeve[m]: what args did yo run callCabal2nix with?
<jonreeve[m]> clever: I'm using `haskellPackages.developPackage` actually
<clever> jonreeve[m]: what args did yo run developPackage with?
c0c0 has joined #nixos
<srk> jonreeve[m]: is it possible that the src directory is a symlink?
<clever> jonreeve[m]: the problem is likely the name of things
<nextloop> all packages in nixpkgs should be built from source shouldn't they?
<srk> preferably, yes
<clever> 231 developPackage =
<clever> 233 , name ? builtins.baseNameOf root
<clever> 232 { root
<clever> jonreeve[m]: the problem, is that the default name is color-word-analyzer
<clever> jonreeve[m]: so its looking for color-word-analyzer.cabal
<clever> jonreeve[m]: you called it annotate-color.cabal, so that fails
<nextloop> srk: so it's not that strict?
<clever> jonreeve[m]: add name = "annotate-color"; to the default.nix file
<nextloop> i discovered that something is just "built" by downloading the binary *.jar from github releases...
<jonreeve[m]> clever: I never run callCabal2nix
<srk> nextloop: well there are some exceptions, steam for example. bunch of other nonfree apps as well
nuncanada has quit [Ping timeout: 240 seconds]
<clever> jonreeve[m]: developPackage runs callCabal2nix for you
<jonreeve[m]> clever: I only have that one default.nix, and I run nix-shell to enter my project's shell
<nextloop> srk: it's jabref. it can be built from source. and it's heavily outdated anyway
<clever> jonreeve[m]: add `name = "annotate-color";` to the args of developPackage
<nextloop> i might do a PR later, i am just starting with nixos. installed it today
Maxdamantus has quit [Ping timeout: 265 seconds]
blibberblob has joined #nixos
<srk> nextloop: if it's next to impossible to build it (which can be the case with java if it also uses mvn!) it should be fine :)
<nextloop> it uses gradle
<nextloop> why should it be impossible
<{^_^}> [nixpkgs] @edolstra pushed to master « nixos/release-small.nix: Export options job »: https://git.io/JvSkP
Maxdamantus has joined #nixos
<srk> I'm not telling you it is :)
<srk> try it
<nextloop> will do! i might learn something by doing it
<nextloop> just building vlc though, is there a reason why there is no binary available?
<clever> nextloop: vlc should be available in source form, which jar did you see being downloaded?
<clever> nextloop: that looks unrelated to vlc, is it something youve installed seperately?
<jonreeve[m]> clever: Ah you're right. My .cabal file didn't have the same name as the project name.
<clever> jonreeve[m]: you must add a `name = "...";` that matches the name of the cabal file
<nextloop> yes it's unrelated clever :D. i am just wondering why it's compiling vlc now.
<clever> nextloop: do you have any overrides to vlc? which channel are you on?
<jonreeve[m]> It's building now
<nextloop> 19.09, just getting started. i put it into environment.systemPackages in my configuraiton.nix clever
<nextloop> so no override
Ilya_G has joined #nixos
<clever> nextloop: not sure why its building then
<Ilya_G> I am having rouble declaring automount in systemd configuration. Not clear on what I am doing wrong and where to find an example: https://gist.github.com/ilyaGotfryd/7c70c5137c98f6944fc214927bddfb47
<Ilya_G> Please Halp!
vandenoever has quit [Read error: Connection reset by peer]
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
<clever> Ilya_G: its probably simpler to just add it to fstab via the normal fileSystems."/foo" stuff
hmpffff_ has quit [Quit: Bye…]
<clever> Ilya_G: also, the docs and error, say it should be a list, not a set, systemd.automounts = [ {...} {...} ]; for ex
<Ilya_G> clever: I'll take a look at that.
<Ilya_G> Oh, OK
ChimeraZara has joined #nixos
ZaraChimera has quit [Disconnected by services]
ChimeraZara is now known as ZaraChimera
<{^_^}> [nixpkgs] @nlewo pushed commit from @zowoq to release-20.03 « youtube-dl: 2020.03.08 -> 2020.03.24 »: https://git.io/JvSkb
<hpfr[m]> Does `nix-env -iA` create generations? Or just `nixos-rebuild`?
levdub5 has joined #nixos
cosimone has joined #nixos
<clever> hpfr[m]: nix-env -i will create generations in your user profile
<clever> hpfr[m]: nixos-rebuild will create generations in the system profile
<clever> [root@amd-nixos:~]# nix-env --profile /nix/var/nix/profiles/system --list-generations
<clever> hpfr[m]: and behind the scenes, nixos-rebuild is just using nix-env to manage the system profile, so you can use this to list/delete generations
<jonreeve[m]> Awesome, that did the trick, thanks
ChimeraZara has joined #nixos
abathur has joined #nixos
levdub has quit [Ping timeout: 258 seconds]
levdub5 is now known as levdub
zeta_0 has joined #nixos
ZaraChimera has quit [Ping timeout: 265 seconds]
<hpfr[m]> Oh ok thanks
ChimeraZara is now known as ZaraChimera
<hpfr[m]> Yup
<hpfr[m]> Oh, ok
wiml has quit [Quit: wiml]
o1lo01ol1o has joined #nixos
<Valodim[m]> marek: can't say it's "a few a day", but yes I am! :)
<{^_^}> [nixpkgs] @hedning merged pull request #83303 → gtk3: fix clipboard related crashes in wayland → https://git.io/JvSen
<{^_^}> [nixpkgs] @hedning pushed to staging « gtk3: fix clipboard related crashes in wayland (#83303) »: https://git.io/JvSI8
<{^_^}> [nixpkgs] @romildo opened pull request #83313 → roboto-slab: 2016-01-11 -> 2020-03-04 → https://git.io/JvSI4
infandum has quit [Remote host closed the connection]
terlar has left #nixos ["ERC (IRC client for Emacs 28.0.50)"]
<{^_^}> [nixpkgs] @Ma27 merged pull request #83083 → i3lock-fancy: Fix wrong path to mktemp → https://git.io/JvSIX
<{^_^}> [nixpkgs] @Ma27 pushed 3 commits to master: https://git.io/JvSI1
<{^_^}> [nixpkgs] @drewrisinger opened pull request #83314 → pythonPackages.flask-babel: 0.12.2 -> 1.0.0 → https://git.io/JvSIM
<cole-h> ma27[m]: Any reason you didn't use `$releaseDir` when fixing ripgrep in 82342? ;^)
<{^_^}> [nixpkgs] @Ma27 pushed commit from @exi to release-20.03 « i3lock-fancy: Fix wrong path to mktemp »: https://git.io/JvSI7
felixfoertsch has quit [Ping timeout: 272 seconds]
ChimeraZara has joined #nixos
Chimera has joined #nixos
gustavderdrache has quit [Quit: Leaving.]
ZaraChimera has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @drewrisinger opened pull request #83315 → pythonPackages.flask-appbuilder: 2.1.6 -> 2.3.0 → https://git.io/JvSIh
felixfoertsch has joined #nixos
ZaraChimera has joined #nixos
ChimeraZara has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @ggreif opened pull request #83316 → ghc-8.10.1: rc1 -> final → https://git.io/JvSLf
<zeta_0> hello everyone, how do i fix this shellHook? it's throwing an error: unexpected '=' ? https://hastebin.com/ewebajipoh.js
shibboleth has quit [Remote host closed the connection]
shibboleth has joined #nixos
Chimera has quit [Ping timeout: 256 seconds]
<clever> zeta_0: it must go inside the attribute set that goes from line 1 to 7
<clever> zeta_0: between the { and }
Tomas69 has joined #nixos
<{^_^}> [nixpkgs] @lsix opened pull request #83317 → qgis: 3.10.1 -> 3.10.4 (+ libs) → https://git.io/JvSLT
<clever> zeta_0: its much easyer to see if you format the file better, https://gist.github.com/cleverca22/59209e79811e85c02285dcc704521812
<Tomas69> hey everyone what are the system reqierements for barebones nix? how would it run on an old laptop witha singlecore cpu 1.7ghz and 1gb ram with openbox?
<{^_^}> [nixpkgs] @dasj19 opened pull request #83318 → hplip: 3.19.12 -> 3.20.3 → https://git.io/JvSLk
<tilpner> Tomas69: It's not going to be fun
<tilpner> You can probably do it, more easily if you deploy to it, so that evaluations take place elsewhere
<Tomas69> ok but you wouldnt recommend it as my main driver?
<tilpner> Wait, did you mean Nix or NixOS?
<Tomas69> NixOS
<tilpner> Then no, I wouldn't recommend it
<Tomas69> ok thank you
<tilpner> It can be done, sure, but it wouldn't be fun
Rusty1 has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
<Tomas69> i just really like the idea of having a config where i describe my system
<Tomas69> do you know something simmilar more lightweigth?
<tilpner> Nope
<tilpner> Don't let me stop you from trying
bvdw has joined #nixos
<energizer> when does nix use heavy resources?
<tilpner> energizer: System instantiation can be slow even on powerful (in comparison) systems, and that needs to happen on every nixos-rebuild
<{^_^}> [nixpkgs] @lsix opened pull request #83319 → nano: 4.7 -> 4.9 → https://git.io/JvSLY
<tilpner> My laptop system needs 1.3GB just for instantiation
<tilpner> And even with a smaller server of mine, 700MB
<tilpner> It can be done with 1GB, but it's going to be a close fit, and you'll run into problems from time to time
<{^_^}> [nixos-channel-scripts] @samueldr opened pull request #35 → mirror: Add packages/options data to channel release. → https://git.io/JvSLO
<Tomas69> ok but besides nixos-rebuild it wouldnt need more like arch or debian right?
<energizer> looks like mine uses about .5G during rebuild
<clever> ,-A
<{^_^}> You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<clever> Tomas69: without -A, nix-env takes a lot more ram
<tilpner> I guess it might use slightly more, because there can be multiple versions of the same dependency loaded into memory
srid has joined #nixos
<Tomas69> what does -A do?
<energizer> Maximum resident set size (kbytes): 580892
<clever> Tomas69: lets you select an attribute from a set
<srid> When using `developPackage`, is it possible to configure to add custom nix packages to the resultant Haskell executable derivation? So that those packages are installed when doing `nix-env -i`?
<{^_^}> [nixpkgs] @jonringer pushed commit from @thelegy to master « python3Packages.pymumble: init at 0.3.1 »: https://git.io/JvSL8
<{^_^}> [nixpkgs] @jonringer merged pull request #83237 → python3Packages.pymumble: init at 0.3.1 → https://git.io/Jvylm
chloekek has quit [Ping timeout: 256 seconds]
<marek> Valodim[m]: good, because sadly we would need few dozen a day to have the luxury to review every change
<zeta_0> clever: it seems to finally be working, thank you for the helping again
<zeta_0> clever++
<{^_^}> clever's karma got increased to 365
<Tomas69> tilpner++
<{^_^}> tilpner's karma got increased to 72
<Tomas69> energizer++
<{^_^}> energizer's karma got increased to 1
johnny5 has joined #nixos
<Tomas69> clever++
<{^_^}> clever's karma got increased to 366
fling has quit [Ping timeout: 246 seconds]
johnnyfive has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/JvSLB
<{^_^}> [nixpkgs] @mmahut merged pull request #83263 → dar: 2.6.8 -> 2.6.9 → https://git.io/JvywI
<{^_^}> [nixpkgs] @drewrisinger opened pull request #83320 → pythonPackages.qiskit-ibmq-provider: init at 0.4.5 → https://git.io/JvSLR
ixxie has quit [Ping timeout: 240 seconds]
c0c0 has quit [Ping timeout: 240 seconds]
<zeta_0> clever: is there a way for me to see what's inside? haskell.packages.ghc865.darcs.env , i want to take a look at all of darcs's build dependencies inside of nix's darcs.env?
ixxie has joined #nixos
<clever> zeta_0: vi ~/apps/nixpkgs/pkgs/development/haskell-modules/hackage-packages.nix and go down to line 64228
<atemu12[m]> Tomas69: Try adding zram to your config, it has allowed me to build a ton of packages on my 1GB raspberry pi 2 and allowed my 8GB laptop to do a 12GB git gc on Nixpkgs once
<Tomas69> atemu12[m] il look into what zram is thank you
<atemu12[m]> Tomas69: You might also want to considere doing a 32bit installation because pointers are half the size.
<Tomas69> atemu12[m]its a 32bit cpu anyway
<zeta_0> clever: i don't have those directories, do i need to clone nixpkgs from github?
<tilpner> uh oh
<zeta_0> clever: i'm going to clone this: https://github.com/NixOS/nixpkgs
<clever> zeta_0: you will also find nixpkgs in ~/.nix-defexpr/
<atemu12[m]> zeta_0: You have a checkout of Nixpkgs in your Nix store already
c0c0 has joined #nixos
<atemu12[m]> zeta_0: It should be at /nix/var/nix/profiles/per-user/root/channels/nixos/ IIRC
T_S_ has joined #nixos
<zeta_0> thanks, i'll take a look now
<zeta_0> also, wow, nixpkgs has over 200,000 commits, that's insane
<T_S_> To test a large package set, should I use `nix build` or `nix-build`? One seems newer and cooler, the other seems like it has some documentation. Thoughts?
lovesegfault has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to master « chromium: I accidentally added the webrtc patch into the wrong section »: https://git.io/JvSLN
pistache has quit [Remote host closed the connection]
<zeta_0> clever: which file exactly? and do i go through channels or channels_root directory? https://hastebin.com/udemocihoc.rb
<clever> zeta_0: channels is for your usr, channels_root is roots channels
<clever> zeta_0: look in both
bennofs1 has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #83321 → python: propagate makeWrapper arguments → https://git.io/JvStU
<zeta_0> clever: channels just has a manifest.nix file with [ ] only, so everything must be in channels_root
pie_[bnc] has quit [Quit: No Ping reply in 180 seconds.]
Tomas69 has quit [Remote host closed the connection]
pie_[bnc] has joined #nixos
pie_[bnc] has joined #nixos
pie_[bnc] has quit [Changing host]
shibboleth has quit [Remote host closed the connection]
shibboleth has joined #nixos
gustavderdrache has joined #nixos
<atemu12[m]> <zeta_0 "also, wow, nixpkgs has over 200,"> Nixpkgs has slightly more activity than the Linux kernel currently
<atemu12[m]> It's insane
frihetskampen has joined #nixos
<zeta_0> clever atemu12[m] : ok, i finally found hackages-packages in: /home/zeta/.nix-defexpr/channels_root/nixos/nixpkgs/pkgs/development/haskell-modules
<zeta_0> typo hackage-packages.nix
<frihetskampen> Hello. I have been trying to make nixOS use the nixpkgs-unstable branch for packages, and now while upgrading I'm getting this error "error: creating symlink from '/nix/var/nix/profiles/system-83-link.tmp-11689-826462435' to '/nix/store/v5qbnijrnnwbbdp77q1367vrgc15anf2-nixos-system-yttrerymden-20.09pre2175configuration.nix [RO] 79,3
<frihetskampen> 14%│37.d96bd3394b7': Permission denied"
<frihetskampen> I'm running "sudo nixos-rebuild switch"
<clever> frihetskampen: does dmesg say anything near the end?
philr has joined #nixos
<zeta_0> atemu12[m]: more activity than the linux kernel, damn, that is crazy, but ya, nix manages a lot of packages
<frihetskampen> @clever I see nothing out of the ordinary
<clever> frihetskampen: can you screenshot the terminal window where you get the error?
<zeta_0> clever: in hackage-packages.nix i went to line 64228, but i don't see darcs and 'anywhere near there?
ChimeraZara has joined #nixos
<clever> zeta_0: it may be on a different line for you, search for darcs
ZaraChimera has quit [Disconnected by services]
<frihetskampen> clever I had messed up my NIX-PATH, and it turned out I now did NOT run as sudo...I can't believe I missed that. Problem solved. However. I can't seem to make nix use the unstable channel for packages.
ChimeraZara has quit [Client Quit]
<clever> frihetskampen: use `nix-channel --add` as root, to point the nixos name to nixos-unstable
<clever> frihetskampen: if you want unstable to be the default for everything
<zeta_0> clever: ok, i narrowed it down to 50 matches: https://hastebin.com/odixumihuk.cs
<clever> zeta_0: the one that is assigning a value to darcs
linarcx has quit [Quit: WeeChat 2.7.1]
<frihetskampen> clever thank you, that's what I've been trying. I've been at it for a couple of hours. It seems to work now finally. Thanks again
<clever> zeta_0: on line 62255
chagra has quit [Ping timeout: 240 seconds]
chagra has joined #nixos
opthomasprime has joined #nixos
<zeta_0> clever: thanks, darcs has a lot of dependencies, no wonder i was not able to build it
ixxie has quit [Ping timeout: 256 seconds]
ZaraChimera has joined #nixos
opthomasprime has quit [Remote host closed the connection]
<zeta_0> clever: would you recommend that i use, cabal build or nix-build, to build darcs, the instructions on the darcs website only covers cabal, but i'm using a shell.nix in a nix-shell, so i'm not sure if i should use nix instead? a long time ago set a setting to integrate nix with cabal, so i don't think it should matter, hopefully
ZaraChimera has left #nixos [#nixos]
<{^_^}> [nixpkgs] @doronbehar opened pull request #83322 → pythonPackages.beets: add unconditionally deps needed for checks → https://git.io/JvSqZ
<clever> zeta_0: `cabal build` inside that shell should do, if you are trying to develop darcs
<clever> zeta_0: nix-build with an override against src, if you want to use it long-term
frihetskampen has quit [Remote host closed the connection]
<zeta_0> clever: what do you mean by override against src?
<lovesegfault> Can I make nix-copy-closure or nix copy handle drvs?
<lovesegfault> like, I want to nix copy the drv and all it's deps
<clever> lovesegfault: nix-copy-closure can already handle drv files
<clever> zeta_0: haskellPackages.darcs.overrideAttrs (old: { src = ./something; })
vandenoever has quit [Read error: Connection reset by peer]
<lovesegfault> clever: on the remote machine I do nix-instantiate shell.nix and it spits out a drv
<lovesegfault> then I do nix-copy-closure --use-substitutes --from 10.0.5.155 /nix/store/na7n3hf3561kic924g2p720yh3banw3m-standard.drv
<lovesegfault> and it seems to work
<clever> --include-outputs
<clever> Also copy the outputs of store derivations included in the closure.
<lovesegfault> but when I nix-shell derp
vandenoever has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
<lovesegfault> thanks 😅
<lovesegfault> I was looking at nix copy instead
<lovesegfault> clever++
<{^_^}> clever's karma got increased to 367
fendor has quit [Read error: Connection reset by peer]
<zeta_0> clever: ok, will i need to substitute nix commands for any of these other cabal commands besides cabal build? http://darcs.net/Development/GettingStarted
<clever> lovesegfault: you can also use `--option substituters ssh://10.0.5.155` to make nix treat the remote machine as a binary cache
<lovesegfault> :O
<lovesegfault> that's neat
<clever> zeta_0: once your in the nix-shell, you can mostly use cabal as normal
<zeta_0> clever: sorry for all the questions, i'm just trying to get the correct nix workflow
<zeta_0> clever: ok, i'm good to go, now that i build darcs, the only thing that i need to do next after building darcs is getting ghcide to work with it, i was having problems last time, but i guess the people from ghcide are going to fix it soon which is great
<zeta_0> clever++
<{^_^}> clever's karma got increased to 368
<zeta_0> thanks for the help everyone, i'm going to head out to the #darcs channel now
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @flokli merged pull request #83254 → nixos/mysql: fix service so it works with mysql80 package [20.03 backport] → https://git.io/Jvyuw
<{^_^}> [nixpkgs] @flokli pushed 3 commits to release-20.03: https://git.io/JvSqM
<{^_^}> [nixpkgs] @edolstra pushed 3 commits to release-19.09: https://git.io/JvSqD
zeta_0 has left #nixos ["rcirc on GNU Emacs 26.3"]
<{^_^}> [nixpkgs] @edolstra pushed 3 commits to release-20.03: https://git.io/JvSqH
lsix has quit [Quit: WeeChat 2.7.1]
erasmas has quit [Quit: leaving]
zupo has joined #nixos
shibboleth has quit [Remote host closed the connection]
shibboleth has joined #nixos
knupfer has quit [Remote host closed the connection]
shibboleth has quit [Remote host closed the connection]
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
growpotkin has joined #nixos
aveltras has quit [Quit: Connection closed for inactivity]
o1lo01ol1o has quit [Remote host closed the connection]
toppler has joined #nixos
<{^_^}> [nixops] @grahamc opened pull request #1264 → Example NixOps State Backends → https://git.io/JvSm3
toppler has quit [Quit: ERC (IRC client for Emacs 26.1)]
maddo has quit [Quit: See ya]
cosimone has quit [Ping timeout: 246 seconds]
growpotkin has quit [Ping timeout: 246 seconds]
tokudan has quit [Remote host closed the connection]
astrofog has joined #nixos
Jonathan44 has joined #nixos
zeta_0 has joined #nixos
nobrak has quit [Remote host closed the connection]
tokudan has joined #nixos
__monty__ has quit [Quit: leaving]
tokudan has quit [Remote host closed the connection]
<zeta_0> clever: i almost forgot to ask, is there an xmonad.env option similar to the darcs env.option that you showed me earlier? https://hastebin.com/taletebebo.js
<zeta_0> clever: i'm also planning on contributing to the xmonad open src project as well
tokudan has joined #nixos
<{^_^}> [nixpkgs] @jonringer opened pull request #83323 → pythonPackages.azure*: bump many → https://git.io/JvSmi
<zeta_0> clever: i've already built ghc with ghc.nix, so i'm good to go with building ghc with nix
<clever> zeta_0: every single package in haskellPackages has a .env on it
<Jonathan44> Anyone around for some assistance? I am trying to build a C library which depends on another C library (both build with cmake).
o1lo01ol1o has joined #nixos
<Jonathan44> I got the dependency built but the main library is claiming to not find dependency.
<Jonathan44> Am I correct that `make install` will not work with nix?
<zeta_0> clever: that's great, so basically i just need to substitute darcs with xmonad in the shell.nix script i just paste binned?
<simpson> Can you share what you've tried so far? Is the failure at configure time or build time?
<Jonathan44> Configure time (cmake)
<clever> zeta_0: yeah
growpotkin has joined #nixos
<atemu12[m]> Jonathan44: Stupid question but did you add the dependency to the buildInputs of the main lib?
<simpson> Usually, for cmake, we don't need to explicitly incant $(make install); that's close enough to default that it shouldn't need changing.
<Jonathan44> When running cmake for the "library" I get `CCD is required by FCL`.
justanotheruser has quit [Ping timeout: 264 seconds]
<Jonathan44> I build the "dependency" (CCD) and copied it's `.a` file to the local path for the "library" (FCL).
<clever> Jonathan44: the "proper" way to do it, is to build the dependencies with nix, and add them to the buildInputs
<Jonathan44> atemu12: no, should I?
<atemu12[m]> Jonathan44: Yes.
<atemu12[m]> Otherwise it's not going to see the dependency
<Jonathan44> atemu12[m]: the "library" (FCL) is not mine so it would already be there right?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<simpson> Yes, Nix arranges for each declared build input to be in the environment when the builder is run.
<atemu12[m]> Be where?
<zeta_0> clever: that's great, i'm starting to see the benefits of using nix, if i was still using debian/apt, i'd still be very frustrated
johnny5 has quit [Ping timeout: 246 seconds]
johnnyfive has joined #nixos
<Jonathan44> clever: I figured the right way to do it is with nix/nix-shell. But I am totally lost on how to do that--I would love to figure it out but not even sure where to start.
<simpson> atemu12[m]: The builder environment is usually temporary. When Nix sets up the builder's environment, it sets up the inputs.
cosimone has joined #nixos
<clever> Jonathan44: start by getting the dependencies to build with nix-build, not nix-shell
<Jonathan44> clever: That helps.
abathur has quit [Ping timeout: 264 seconds]
<Jonathan44> (That sounded sarcastic--it was not--let me look up nix-build in the manual)
<atemu12[m]> simpson: I know, just wanted to make sure Jonathan44 is trying to get it into the right place the right way
<simpson> Ah, sure.
<simpson> Jonathan44: nix-build operates on a default.nix, which describes how your system is built. Then, you'll proceed to nix-shell, which can either work with your default.nix or optionally a shell.nix which contains selected build environment tools.
<{^_^}> [nixpkgs] @jonringer closed pull request #66592 → pythonPackages: update azure → https://git.io/fj5Df
* simpson simplifying
johnnyfive has quit [Ping timeout: 256 seconds]
johnny5 has joined #nixos
<atemu12[m]> Is there a function in Nix/Nixpkgs that works like Python's `filter()` function?
<clever> atemu12[m]: lib.filter
<atemu12[m]> clever: Thanks!
<atemu12[m]> oh wow, it's a builtin
* atemu12[m] should RTFM
justanotheruser has joined #nixos
<evils> odd, my systemd timer which is partOf a unit, gets stopped if that unit gets stopped, but not started if that gets started; am i missing something or is this discrepency due to it being a timer?
pistache has joined #nixos
GrimSleepless has joined #nixos
gustavderdrache has quit [Quit: Leaving.]
abathur has joined #nixos
abathur has quit [Client Quit]
logand`` has quit [Ping timeout: 256 seconds]
<pistache> when I use boot.kernelPatches to enable config options for the kernel, ZFS modules refuse to load (because of "exec format error")
<clever> pistache: can you pastebin your configuration.nix file?
<pistache> sure
<{^_^}> [nixpkgs] @zowoq opened pull request #83324 → croc: 8.0.3 -> 8.0.4 → https://git.io/JvSYv
<Jonathan44> Whoow! I got nix-build to build the "dependency" (ccd). And it was actually quite simple.
<pistache> clever: https://termbin.com/fdf4n
<clever> Jonathan44: now just reference that expresion in the buildInputs of the next thing, maybe using `rec {` or a let block, and nix-build the next thing in line
<pistache> I've commented the offending lines, they are at the beginning of section 1.2.
<Jonathan44> clever: Okeydok.
hio has quit [Quit: Connection closed for inactivity]
<clever> pistache: what if you only use the kernelPackages change, and not the kernelPatches half?
arahael1 has joined #nixos
<pistache> clever: it works in that case, but I cannot run any 32-bit application (because of the hardening)
<pistache> I wanted to keep using the hardened packages, but tweak them to enable CONFIG_IA32_EMULATION
<clever> 297 XXXlinux_4_9 = pkgs.linux_4_9.override {
<clever> 299 NF_CT_PROTO_DCCP n
<clever> 298 extraConfig = ''
Arahael has quit [Ping timeout: 264 seconds]
<clever> pistache: this is what i was previously doing, to modify the kernel config
<Jonathan44> Great, I just got an unhelpful error. clever: Is this how I am supposed to reference it `let ccd = ../libccd/default.nix`?
<clever> pistache: also, does dmesg say anything more about what is wrong with zfs?
<clever> Jonathan44: you need to load the file with either import or callPackage
Rusty1 has quit [Remote host closed the connection]
<clever> Jonathan44: putting everything into one file can also sometimes help
<pistache> clever: "spl: disagrees about version of symbol module_layout"
<clever> pistache: try running modinfo on spl, and a module already loaded (check lsmod), how do they differ about key options?
<pistache> well, the machine doesn't boot without ZFS, so I had to remove the patch to make it boot
<clever> pistache: and maybe try boot.kernelPackages = pkgs.linuxPackages_hardened.extend (self: super: { kernel = super.kernel.override { extraConfig = ''....'';
<pistache> clever: thanks, I'll try that
<pistache> clever++
<{^_^}> clever's karma got increased to 369
<clever> pistache: you may also want to look into breaking your config file up into smaller pieces
xelxebar has quit [Ping timeout: 240 seconds]
<clever> pistache: basically, you can use the exact same format in a second file, and then do `imports = [ ./secondfile.nix ];`
<pistache> clever: it is building with .extend, and it did recompile ZFS modules, but I need to wait to have someone on-site to reboot the machine
<pistache> in case it fails again
<clever> pistache: you could try `nixos-rebuild build-vm` with a variant of the config, to boot it under qemu, even on your local box
<clever> pistache: and thats where a more modular config can help
<GrimSleepless> Hey guys! Can someone merget the following PR please. It has been 20 days since it was opened https://github.com/NixOS/nixpkgs/pull/81735 Thank you guys! :D
<{^_^}> #81735 (by JeffLabonte, 2 weeks ago, open): Protonvpn ng update 2.2.0 to 2.2.2
<clever> pistache: as an example, my nas starts from nas.nix, and you recursively follow everything listed in imports, to see the full config
leonardp has quit [Remote host closed the connection]
<pistache> oh right, so you can just comment some of the imports and test with build-vm
<gchristensen> any python people 'round? :)
craige has joined #nixos
<gchristensen> its-a-trap.jpg
<clever> pistache: yep
<adisbladis> gchristensen: I hesitantly raise my hand ;)
<clever> pistache: but you can also make a smaller module, that only turns on the hardening, and then make a completely seperate "machine" for build-vm, which wont try to mount disks that wont exist
<pistache> clever: I see
<clever> $ nixos-rebuild build-vm -I nixos-config=example.nix
<clever> pistache: this builds a machine with zfs support, and a hardened kernel that has 32bit support
<clever> pistache: and then you can just `imports = [ ./example.nix ];` to enable it on the main one
<gchristensen> adisbladis: hoping for a review on my big-but-little PR to make the interesting PR easier to read :)
<Jonathan44> Okay, I got `fcl` (library) to find `ccd` (dependency). Thanks for your help. I am now getting a strange cmake error `install EXPORT given no DESTINATION`. Looking at the CMakeList.txt it appears to come from `${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}`. Does nix-build set those parameters differently than `cmake` from the commandline?
<clever> pistache: though, the hostid part would probably be best to remove from the file when you confirm it works
<clever> Jonathan44: you may need to set CMAKE_INSTALL_LIBDIR yourself, or see what sets it normally
<clever> Jonathan44: search for CMAKE_INSTALL_LIBDIR in the files...
o1lo01ol1o has quit [Remote host closed the connection]
<clever> /home/clever/apps/nixpkgs/pkgs/development/libraries/hyperscan/default.nix: --replace "libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@" "libdir=@CMAKE_INSTALL_LIBDIR@" \
<clever> Jonathan44: nixpkgs itself also has a number of examples of how to deal with it
<clever> either patching it, or
<clever> /home/clever/apps/nixpkgs/pkgs/applications/misc/albert/default.nix: cmakeFlags = [ "-DBUILD_VIRTUALBOX=OFF" "-DCMAKE_INSTALL_LIBDIR=libs" ];
<clever> Jonathan44: just setting it
<adisbladis> gchristensen: Just one minor comment
<gchristensen> woo
<energizer> gchristensen: a bunch of functions are missing docstrings
<gchristensen> good point, I should look up how to do those
<energizer> looks like they're using the regular :param: format, imo the google/numpy format is much easier to read and it has built-in support in sphinx (sphinx.ext.napoleon)
astrofog has quit [Quit: Quite]
dermetfan has quit [Ping timeout: 272 seconds]