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 has quit [Ping timeout: 265 seconds]
bqv has quit [Remote host closed the connection]
bqv has joined #nixos
LysergicDreams has quit [Ping timeout: 256 seconds]
LysergicDreams has joined #nixos
captjakk has joined #nixos
<{^_^}> [nixpkgs] @TravisWhitaker closed pull request #40604 → llvm: fix cross compiling for v4, v5, v6. → https://git.io/vpF9p
rardiol has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
blibberblob has joined #nixos
xO1 has quit [Ping timeout: 265 seconds]
<blibberblob> hi all, is anyone using zoom (video chat) on nixos? They have a linux version but I can't seem to find an expression for it
bebarker has joined #nixos
<colemickens> zoom-us
<blibberblob> colemickens: aha, thanks! does it work well?
<colemickens> blibberblob: I'm fortunately in a position to refuse to join Zoom meetings which I plan to do for the forseeable future.
Brandon__ has joined #nixos
rardiol has joined #nixos
<blibberblob> no video chat at all, or are you using some other program?
bbarker has quit [Ping timeout: 250 seconds]
m0rphism has quit [Ping timeout: 256 seconds]
<colemickens> I use Jitsi Meet (meet.jit.si, totally free no signups) and have had an impeccable experience... other than swallowing the "theres no native app" pill.
<colemickens> I've used it with technical and non-technical folks with very good success.
<colemickens> There are Android/iOS apps that work well. The browser app is fine.
<blibberblob> meh, no native app isn't such a big deal as long as the web app works
<blibberblob> that's cool, I'll give it a look
<colemickens> cool. :) good luck!
<blibberblob> although I've been having issues getting nixos to work with my webcam...
<blibberblob> but that's only via the `cheese` app so I'm not sure if it's specific to that
<blibberblob> (haven't tried other apps yet)
<colemickens> interesting, I can't say I've had nixos-specific trouble but I do have some fairly serious problems with v4l2 and most apps choosing sub-par defaults for certain webcams.
bebarker has quit [Ping timeout: 256 seconds]
<blibberblob> I was getting a bunch of errors about buffers being dropped and it had a super low framerate
<colemickens> Oh, yeah, maybe try meet.jit.si (you can test by yourself). The WebRTC stacks in the browsers seem... well, idk, I think they're fairly well tested.
<blibberblob> I'm not sure if that's the kind of thing that's configured at the app level or the kernel level
<blibberblob> oh sweet, yeah I'll give that a try
<colemickens> Oh, weird. I know some certain older, non-USB3 webcams that do high resolutions have usb bandwidth trouble too. I think v4l2 tries to quirk around it, but it was something else I'd discovered.
<colemickens> Never could get a LifeCam Studio one to work right through certain (powered) USB hubs, etc.
<blibberblob> Out of curiosity, what webcam are you using now?
<colemickens> I splurged and bought a Brio in December.
<blibberblob> ah I see
<colemickens> Can't find them anywhere now though.
<blibberblob> I'm on an old logitech C200
<blibberblob> also my desktop is pretty old; I'm not even sure if I have usb3
LysergicDreams has quit [Ping timeout: 250 seconds]
<colemickens> not to say those are issues for you, you might be fine.
<blibberblob> well the webcam doesn't seem to be working in my browser
<colemickens> Oof.
<blibberblob> Meh, not in a super rush
<blibberblob> I have a working webcam on my laptop...
<colemickens> Next steps (for me) would be grabbing v4l2-utils (or whatever it's called in nixpkgs) and then poking around.
<colemickens> FWIW, last time I fought with "it's not showing up" I had the wrong usb cable plugged in :P
<blibberblob> what is v412 by the way?
<peelz> video 4 linux
<cole-h> 2
<blibberblob> I'm assuming the reason it's not working in the browser is related to the super low framerate when using cheese
<blibberblob> ahhh it's an l not a 1 haha
<colemickens> uh, video4linux2 or something. It's the webcam infra in linux
<colemickens> Not sure. ANother note - the way that Firefox and Chrome enumerate webcams are different, so maybe try both.
<blibberblob> good call
<colemickens> (At least, when you use v4l2loopback, the settings you choose affect whether it will work in Chromium. Usually Firefox is less picky. And usually these don't affect "normal" webcams.) Just sorta dumping anything I think might help you later on.
<blibberblob> I'm not seeing much related to v4l2 in nixpkgs... there's v4l2loopback. Do you know what package provides v4l2-utils?
<{^_^}> [nixpkgs] @worldofpeace merged pull request #80848 → rl-2003: mention python driver → https://git.io/Jv0uV
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to release-20.03: https://git.io/JvA3M
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvA3D
LysergicDreams has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace pushed to master « rl-2003: mention python driver »: https://git.io/JvA3S
<{^_^}> [nixpkgs] @eraserhd opened pull request #84526 → case-kak: init at unrelease-2020-04-06 → https://git.io/JvA39
<colemickens> blibberblob: little tip - I do "nix-env -qaP > /tmp/p" and then "nvim /tmp/p" and you can sort of grep around more easily
<colemickens> in this case, I knew to fuzzy it down to "v4l" and it's "v4l-utils".
<blibberblob> ahh
<blibberblob> I just use ag haha
<blibberblob> but hey, it worked ok on firefox
<blibberblob> although it was still pretty low framerate, it was more like i'd expect back in 2005 or something haha
<blibberblob> which was probably when the camera was made...
<blibberblob> anyway, thanks for all your help! :)
CptCaptain has quit [Quit: WeeChat 2.7.1]
<colemickens> blibberblob: that might actually be part of what I'm talking about.
<colemickens> I had the same issue with Logitech's old cameras.
<colemickens> It would pick some non-MJPEG type that had horrible resolution + framerate.
<colemickens> Setting the better mode with v4l2 was either failing or applications were ignoring it.
<blibberblob> good info
<blibberblob> I've gotta run but really appreciate the help today!
<colemickens> The arch wiki has info about it, I think from me.
<colemickens> np!
<blibberblob> <3 arch wiki :)
cosimone has quit [Quit: Quit.]
<{^_^}> [nixpkgs] @marsam merged pull request #84477 → recursive: 1.046 -> 1.047 → https://git.io/JvNpz
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvA3F
wildtrees has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84527 → python27Packages.graph-tool: 2.30 -> 2.31 → https://git.io/JvAsv
cybrian has joined #nixos
<{^_^}> [nixpkgs] @lilyball opened pull request #84528 → python3Packages.ftfy: Fix dependencies → https://git.io/JvAsJ
<{^_^}> [nixpkgs] @marsam opened pull request #84529 → syncthing: 1.4.0 -> 1.4.1 → https://git.io/JvAsk
lordcirth has joined #nixos
cybrian has quit [Ping timeout: 256 seconds]
drakonis has quit [Quit: WeeChat 2.7.1]
<{^_^}> [nixpkgs] @marsam opened pull request #84530 → netdata: 1.20.0 -> 1.21.0 → https://git.io/JvAsY
<{^_^}> [nixpkgs] @TravisWhitaker opened pull request #84531 → LLVM: Always pass host/target info to compiler-rt/libstdcxxClang → https://git.io/JvAsO
v0|d has joined #nixos
erictapen has quit [Ping timeout: 264 seconds]
Kyndig has joined #nixos
iyzsong has joined #nixos
<cjpbirkbeck> so how do i get a .desktop file into the /nix/store directory?
<{^_^}> [nixpkgs] @marsam opened pull request #84532 → lxc: 4.0.0 -> 4.0.1 → https://git.io/JvAsn
<{^_^}> [nixpkgs] @marsam merged pull request #84478 → vscod{e,ium}: 1.43.0 -> 1.43.2 → https://git.io/JvNpg
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/JvAsl
<{^_^}> [nixpkgs] @marsam merged pull request #84461 → libbluray: fix build on darwin → https://git.io/JvNFK
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvAsR
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84533 → python37Packages.jupyterlab_server: 1.0.7 -> 1.1.0 → https://git.io/JvAs0
h0m1 has quit [Ping timeout: 265 seconds]
<hoplaahei> Is it possible to source a command not in the build environment? I want to use cpio command in a derivation.
h0m1 has joined #nixos
blibberblob has quit [Quit: WeeChat 2.7.1]
<peelz> hoplaahei, interpolate it like this: "${pkgs.cpio}/bin/cpio"
xkapastel has quit [Quit: Connection closed for inactivity]
tilcreator has quit [Quit: ZNC 1.7.5 - https://znc.in]
<hoplaahei> peelz: thanks
<peelz> hoplaahei, np
blibberblob has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84534 → python38Packages.jaraco_classes: 3.0.0 -> 3.1.0 → https://git.io/JvAso
<Kyndig> oh man; I borked something up. I did a nix-garbage-collect -d and now it looks like a corrupt database of some kind (help please):
<Kyndig> $ nix-env -q error: executing SQLite statement 'pragma synchronous = normal': file is not a database (in '/home/foo/nix/var/nix/db/db.sqlite')
<Kyndig> $ sqlite3 /home/foo/nix/var/nix/db/db.sqlite 'pragma integrity_check' Error: file is not a database
<Kyndig> I didn't even realize nix used a db; thought it was all managed through symlinks and what's actually on the filesystem. Hoping this is just a caching database for speed and can be reconstructed? I could try a nix-store repair, but thought I should ask first, to not mess it up more...
blibberblob has quit [Client Quit]
lovesegfault has joined #nixos
ddellacosta has quit [Quit: WeeChat 2.2]
pareidolia_ has quit [Ping timeout: 258 seconds]
ddellacosta has joined #nixos
selfsymmetric-mu has joined #nixos
<{^_^}> [nixpkgs] @bcdarwin opened pull request #84535 → beluga: 20180403 -> unstable-20200311 → https://git.io/JvAs1
tilcreator has joined #nixos
rogue_koder has quit [Remote host closed the connection]
rogue_koder has joined #nixos
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
<selfsymmetric-mu> ,locate bin vega
<{^_^}> Couldn't find in any packages
<selfsymmetric-mu> Hmm. Does Nix have Vega? https://vega.github.io/vega/
<selfsymmetric-mu> vega, veta-lite, vega-cli? I guess I could wire it up with nodePackages.
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
<monokrome> hmm
<monokrome> is there a default "usb" group or something?
<monokrome> Trying to tether my camera w/ darktable but it seems like normal users don't have permission for usb devices
<monokrome> but I don't see anything obvious in /etc/groups either
<monokrome> maybe I need a custom udev rule
pareidolia has joined #nixos
pbogdan has quit [Ping timeout: 256 seconds]
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
jlv has quit [Remote host closed the connection]
pareidolia_ has joined #nixos
pareidolia has quit [Ping timeout: 265 seconds]
anirrudh has joined #nixos
<{^_^}> [nixpkgs] @offlinehacker merged pull request #84498 → nyx: use python3 by default → https://git.io/JvAJB
<{^_^}> [nixpkgs] @offlinehacker pushed 2 commits to master: https://git.io/JvAGJ
<peelz> Kyndig: did you manage to fix the issue?
<Kyndig> i read a suggestion to remove the db and schema file; so I moved them and nix-env works, but i was suspicious it was too easy
<Kyndig> so I started reinstalling a package I already had installed
<peelz> first Q/A
<Kyndig> and it's building
<Kyndig> everything
<Kyndig> like maybe reindexing?
<Kyndig> should've mentioned i'm single user compiled environment
<Kyndig> but you could see from the nix path
<Kyndig> in my home
<peelz> oh you have it set up in your home? o.O
selfsymmetric-mu has left #nixos ["gone to the land of dead hiccups and extinguished light bulbs"]
<peelz> usually the nix store is /nix/store. It's important to use that path for cached binaries... otherwise you end up having to recompile everything
<peelz> but yeah I would assume moving the corrupted file allows nix to rebuild it, so you're probably fine
<Kyndig> yeah; i had to compile everything
<Kyndig> i don't own the server
<peelz> ah
<peelz> gotcha
<Kyndig> the FAQ has 2 similar issues; but not exactly the same; seems my db was completely corrupt
<peelz> did you try inspecting its contents?
<Kyndig> seems like it's fixing itself now as it rebuilds the packages
<peelz> or checking the size?
<Kyndig> naw; I figured this pretty much means a corrupt db: $ sqlite3 /home/foo/nix/var/nix/db/db.sqlite 'pragma integrity_check' Error: file is not a database
<peelz> yeah but you might want to know what happened
<peelz> so that it doesn't happen again or so you can report it
<Kyndig> oh; probably this crappy NFS which I have to use
Pwnna has joined #nixos
<Kyndig> i doubt it's a nix issue
<peelz> uhhh hmm
<Kyndig> our admins have all kinds of crappy NFS settings
<Kyndig> caching
<Kyndig> it's a pain
<peelz> >_<
romildo has joined #nixos
romildo has quit [Client Quit]
<Pwnna> so i have a python app that calls pyside2. I'm using propagatedBuildInputs = [ (python37.withPackages ( ps: [ps.pyside2 ps.pyside2-tools ps.shiboken2] )) qt5.full ]
romildo has joined #nixos
<Pwnna> and result/bin/whatever seems to launch the Qt app
<Kyndig> you wouldn't believe some of the code at this place I work, we have sleep commands everywhere to work around the NFS caching latency
<Pwnna> but if i use nix-shell, I get This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
rogue_koder has quit [Remote host closed the connection]
<Pwnna> i read some stuff about wrapQtApp, but i don't understand hwo to make it work with a python package
rogue_koder has joined #nixos
<Kyndig> at least I have the build dir pointing to /tmp though (not NFS)
<peelz> Kyndig: oh god...
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
<peelz> Pwnna: you might wanna use wrapProgram to make the python runtime available: https://nixos.org/nixpkgs/manual/#ssec-stdenv-functions
romildo has quit [Client Quit]
<Pwnna> i'm using buildPythonApplication
<Pwnna> hold on let me share the full nix
andi- has quit [Ping timeout: 272 seconds]
romildo has joined #nixos
<Pwnna> so I'm using python37.withPackages and python37Packages.buildpythonApplication.
<Pwnna> I think I'm doing this wrong but not certain
<monokrome> seems like I just needed to add a udev rule
rogue_koder has quit [Ping timeout: 256 seconds]
captjakk has quit [Ping timeout: 265 seconds]
rogue_koder has joined #nixos
jumper149 has quit [Quit: WeeChat 2.7]
<romildo> If I was going to write a package update script that would work for many unrelated packages (from github, for instance) where in the tree would it reside?
<peelz> Pwnna: I've never had to package a qt app before, but afaik qt derivations need to be called with `libsForQt5.callPackage` instead of the regular `callPackage`
<Pwnna> well i'm not calling callPackage at all?
<Pwnna> it's just shell.nix
<Pwnna> i could move the basedeps.nix file's content into shell.nix just fine
<peelz> Pwnna: yeah I know, but you might wanna look into that
<Pwnna> and there would be no callpackage anywhere?
<Pwnna> but how does callPackage fit into shell.nix? I thought callPackage is only used for the repository
anirrudh has quit [Quit: Leaving.]
andi- has joined #nixos
<peelz> Pwnna: I'm not quite sure... maybe if you use `pkgs.mkShell { buildInputs = [ libsForQt5.callPackage ./your-pkg.nix ]; }` ?
<peelz> * ^ as your shell.nix
<Pwnna> i mean i could
<Pwnna> but it doesn't look like i should _always_ put my-pkg.nix in a separate file?
<peelz> well you could have them in the same file
<Pwnna> how do i call another function in the same file?
<Pwnna> callPackage (what do i put here?)
anirrudh has joined #nixos
<peelz> callPackage takes a path and an argset
<peelz> soo idk
<peelz> try passing it a derivation instead of a path, it probably works too
<peelz> > pkgs.callPackage pkgs.hello {}
<{^_^}> cannot import '/nix/store/7hz2ms6mxdbfwj8bl4fcd171lly4l9wx-hello-2.10', since path '/nix/store/1g5j94c1jb7dm1qd0wdrxbax2a16qba7-hello-2.10.drv' is not valid, at /var/lib/nixbot/nixpkgs/master/repo/lib...
<peelz> okay nvm lol
<cole-h> > pkgs.callPackage <nixpkgs/pkgs/applications/misc/hello> {}
<{^_^}> "<derivation /nix/store/1g5j94c1jb7dm1qd0wdrxbax2a16qba7-hello-2.10.drv>"
<Pwnna> so i see this thing: https://github.com/NixOS/nixpkgs/pull/83321
<{^_^}> #83321 (by rnhmjoj, 1 week ago, open): python: propagate makeWrapper arguments
<energizer> Pwnna: usually my shell.nix is `{ pkgs ? import <nixpkgs> {} }: let foo = pkgs.callPackage ./default.nix {}; in pkgs.mkShell { buildInputs = [foo]}`
<Pwnna> huh that's an interesting pattern
<peelz> Yeah, that's how I always do it. I've never tried putting everything in one file
<energizer> i'm not an expert but it has been working for me
<Pwnna> i guess the weirdness that i'm seeing is that nix-shell doesn't work (qt won't start and crashes) while nix-build's output binaryt works perfectly
<Pwnna> in fact since development mode is active, result/bin/mycmd even works with the current development source code
<Pwnna> so there's some sort of voodoo magic that i don't understand
<Pwnna> I feel uncomfortable at this amount of magic as it shows that i really have no idea what is going on
<peelz> I think qt need some sort of wrapping... try it with `libsForQt5.callPackage`
<Pwnna> which seems like a bad position to be in
<Pwnna> i guess i have to read up about that function
<Pwnna> because idk what that does either
<Pwnna> here's another issue maybe describing what i have? https://github.com/NixOS/nixpkgs/issues/78792
<{^_^}> #78792 (by worldofpeace, 9 weeks ago, open): do not invoke wrapProgram directly, make a wrapProgramsHook
<mkg20001> How do I launch a buildPythonApplication package from it's source code via nix-shell?
<Pwnna> hey i'm doing that now
<Pwnna> you have an entry point right?
<Pwnna> should just be able to launch it
<Pwnna> otherwise nix-build && result/bin/whatever
<peelz> Pwnna, looking at <nixpkgs/top-level/all-packages.nix>, it seems like libForQt5.callPackage allows you to refer to qt5 libraries through your package's argset
<peelz> nothing special going on as far as I can tell
vk3wtf has quit [Quit: WeeChat 2.7.1]
<{^_^}> [nixpkgs] @JeffLabonte opened pull request #84536 → brave: 1.5.115 -> 1.5.123 → https://git.io/JvAGP
vk3wtf has joined #nixos
<peelz> yes
<Pwnna> I did a ^F and don't see libForQt5?
<{^_^}> [nixpkgs] @JeffLabonte opened pull request #84537 → brave: 1.5.115 -> 1.5.123 → https://git.io/JvAGM
<peelz> libs*
<peelz> plural :p
<peelz> I typoed, my bad lol
<Pwnna> huh i guess i have to check this
<Pwnna> the documentation seems out of date?
<Pwnna> buildInputs = [ qtbase ]; < I get qtbase is not defined
<Pwnna> i know it's a function arg but idk what it is supposed to be
<Pwnna> qt5.full? idk..
<Pwnna> '';
<Pwnna> wrapQtApp "$out/bin/myapp" --prefix PATH : /path/to/bin
<Pwnna> there's also preFixup = ''
<peelz> qtbase is made available through `pkgs.libsForQt5.callPackage`
<Pwnna> but i don't get what i'm supposed to do with QtApps
<peelz> sounds like wrapQtApp is what you need :p
<Pwnna> yeah i don't get it at all tbh
<Pwnna> just some magic incantation ..
<Pwnna> it's actually kind of frustrating
<peelz> you can fire up nix-shell and inspect the wrapQtApp function
<Pwnna> i'm trying my best to understand it but i don't really get it
<Pwnna> nix-repl> :l <nixpkgs>
<Pwnna> error: undefined variable 'wrapQtApp' at (string):1:1
<Pwnna> nix-repl> wrapQtApp
<Pwnna> Added 11609 variables.
<Pwnna> ?
<peelz> Sorry, I haven't had to package a qt app before so I'm figuring this out along with you
<Pwnna> yeah no worries thanks for the help
<Pwnna> it kind of works for now
<Pwnna> i'm mixing development of my app with learning nix, so probably not that great of an idea
<peelz> fixup is a derivation phase
<peelz> preFixup runs before the fixup phase
<peelz> it's shell script
<Pwnna> If you cannot use mkDerivation or mkDerivationWith above, include wrapQtAppsHook in nativeBuildInputs:
<Pwnna> i guess i only need that buildInputs qtbase with the libsForQt5
<peelz> ah I must've missed that
<Pwnna> yeah i find it hard to read everything in there as well
<peelz> there's a bunch of "hook" derivations that encapsulate common derivation logic
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #84538 → jupp: 31 -> 39 → https://git.io/JvAGQ
<Pwnna> i'll have to try it later
<Pwnna> it's getting pretty late
<Pwnna> thanks for the help
<Pwnna> probably will come back tomorrow
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #84539 → mksh: 57 -> 58 → https://git.io/JvAG7
<peelz> np, it's getting late for me too
anirrudh has quit [Quit: Leaving.]
<peelz> Pwnna: that shell script might seem daunting but it's pretty simple. If you look at the bottom, you'll see this: fixupOutputHooks+=(wrapQtAppsHook)
<Pwnna> hmm thanks i'll take a look
<peelz> this is the "entry point" that allows it to run on your derivation's fixup phase
<peelz> yw
nwspk has quit [Quit: nwspk]
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
nwspk has joined #nixos
spacefrogg has joined #nixos
infinee has joined #nixos
<peelz> Pwnna: oh one more thing, if you wanna see what happens during the build process, you can run the phases one by one in a nix-shell
<Pwnna> is that documented somewhere?
<cole-h> Somewhere in the manual, probably
felixfoertsch23 has joined #nixos
<Pwnna> how to actually run
<peelz> Pwnna: nix-shell -E 'with import <nixpkgs> {}; callPackage ./. {}', then you can use the following bash functions: unpackPhase, configurePhase, buildPhase, installPhase, fixupPhase, etc.
<Pwnna> or maybe it does, just via nix shell
<Pwnna> ok i'm just bad at reading lol
<Pwnna> it's getting late
<peelz> :D
felixfoertsch has quit [Ping timeout: 272 seconds]
felixfoertsch23 is now known as felixfoertsch
<peelz> I usually run the shell with `--pure` to make sure it doesn't get tainted by my global packages
<peelz> oh and `type unpackPhase` to see the source of a phase
iyzsong- has joined #nixos
iyzsong has quit [Ping timeout: 272 seconds]
<{^_^}> [mobile-nixos] @samueldr pushed 21 commits to master: https://git.io/JvAZf
<{^_^}> [mobile-nixos] @samueldr merged pull request #122 → doc: Add options listing and other fixes → https://git.io/JvAmo
<energizer> mkg20001: nix-shell --command foo
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84540 → python37Packages.pyhcl: 0.4.1 -> 0.4.2 → https://git.io/JvAZJ
andi- has quit [Ping timeout: 265 seconds]
<energizer> how do i get gvim?
<cole-h> ,locate bin gvim
<{^_^}> Found in packages: vimHugeX
<cole-h> ^ That package.
romildo has quit [Quit: Leaving]
infinee has quit [Quit: WeeChat 2.7]
morgrimm has quit [Ping timeout: 265 seconds]
natek has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84541 → python27Packages.pymupdf: 1.16.12 -> 1.16.16 → https://git.io/JvAZW
LysergicDreams has quit [Ping timeout: 265 seconds]
LysergicDreams has joined #nixos
<{^_^}> [nixpkgs] @petabyteboy opened pull request #84542 → WIP: plasma 5.18 → https://git.io/JvAZB
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
andi- has joined #nixos
<energizer> that's a weird name for a package, what does it mean?
<{^_^}> [mobile-nixos] @samueldr opened pull request #123 → Add a supported way to include from system configuration → https://git.io/JvAZa
<cole-h> ¯\_(ツ)_/¯
<samueldr> vim, the huge configuration, with X11 things
<cole-h> > vimHugeX.meta.description
<{^_^}> "The most popular clone of the VI editor"
tomberek has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @orivej opened pull request #84543 → gst_all_1.gst-plugins-good: enable jack plugin → https://git.io/JvAZr
<peelz> > vimHugeX.meta.longDescription
<{^_^}> attribute 'longDescription' missing, at (string):293:1
<energizer> cole-h: "The most popular clone of the VI editor" revers to VIM
<{^_^}> [nixpkgs] @mkg20001 opened pull request #84544 → pythonPackages.pam: init at 1.8.4 → https://git.io/JvAZo
<cole-h> Yes, I know
<cole-h> I was hoping it would have a more useful description
reallymemorable has quit [Quit: reallymemorable]
evax has quit [Ping timeout: 268 seconds]
numbskull has joined #nixos
<numbskull> What is the right attribute to use to depend on glibc headers, as glibc folder in the store does not contain the headers, but glibc-dev has it.
<samueldr> glibc.dev, or am I misunderstanding?
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
<hoplaahei> So I managed to remove the files I want from firefox-unwrapped and copy them to the $out of a new package my-firefox-unwrapped. Now how can I deal with the wrapper script?
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
<numbskull> I tried nix-env -i glibc.dev, that gives error: selector 'glibc.dev' matches no derivations
<hoplaahei> The wrapper script depends on the unmodified firefox-unwrapped.
<samueldr> ,libraries
<{^_^}> Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<samueldr> but, imagining you would want to do that
<samueldr> ,-iA
<{^_^}> see ,-A
<samueldr> ,-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.
<numbskull> Thank you, let me try that..
<samueldr> -i without -A searches through all derivations by name, so it won't find one with that name, as you saw, it has "glibc-dev" in its name
<samueldr> -i with -A uses the attribute name, instead
<{^_^}> [nixpkgs] @mkg20001 opened pull request #84545 → timezonemap: init at 0.4.5 → https://git.io/JvAZ7
kleisli has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #84546 → rs: start at 20200313 → https://git.io/JvAne
blibberblob has joined #nixos
morgrimm has joined #nixos
anirrudh has joined #nixos
<blibberblob> Hi all, I'm seeing an issue with slack on nixos where it's unable to send notifications. The error I'm seeing in the logs is "(slack:18209): libnotify-WARNING **: 22:25:07.504: Failed to connect to proxy". Has anyone seen this before?
<blibberblob> Notifications do work from my browser, btw
Yaniel has quit [Ping timeout: 240 seconds]
morgrimm has quit [Ping timeout: 265 seconds]
johnny101m2 has joined #nixos
johnny101m has quit [Ping timeout: 260 seconds]
anirrudh has quit [Quit: Leaving.]
codygman__ has joined #nixos
reallymemorable has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84547 → python27Packages.numpy-stl: 2.10.1 -> 2.11.0 → https://git.io/JvAna
<codygman__> I have `bson` and `mongo` in my overrides because `bson` and `mongo` are broken. Since `mongo` depends on `bson`, the `mongo` override still breaks because apparently each override item doesn't take the overrides next to it in account? How can I get the behavior where only the `bson` I define in an override is used in any case including in fellow
<codygman__> overrides. Code: http://dpaste.com/0P2ME3B
<{^_^}> [nixpkgs] @jonringer merged pull request #84534 → python38Packages.jaraco_classes: 3.0.0 -> 3.1.0 → https://git.io/JvAso
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JvAnw
captjakk has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #84547 → python27Packages.numpy-stl: 2.10.1 -> 2.11.0 → https://git.io/JvAna
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.numpy-stl: 2.10.1 -> 2.11.0 »: https://git.io/JvAnP
<codygman__> Put more clearly: How do I ensure not only my direct dependency on `bson` uses my override but that **all packages** which depend on`bson` also use my overriden version.
<jtojnar> blibberblob some browers create their own notifications, whereas libnotify will use your desktop environment's mechanism. What DE do you use? does notify-send work for you?
reallymemorable has quit [Quit: reallymemorable]
<{^_^}> [nixpkgs] @jonringer merged pull request #84533 → python37Packages.jupyterlab_server: 1.0.7 -> 1.1.0 → https://git.io/JvAs0
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JvAnH
evertedsphere has joined #nixos
ddellacosta has quit [Ping timeout: 265 seconds]
<evertedsphere> i keep getting errors trying to package a python package that relies on evdev
<evertedsphere> > evdev.uinput.UInputError: "/dev/uinput" does not exist or is not a character device file - verify that the uinput module is loaded
<{^_^}> error: syntax error, unexpected ':', expecting ')', at (string):293:25
<evertedsphere> oh sorry {^_^} that wasn't meant for you
<evertedsphere> i have uinput in boot.kernelModules and i'm in the input group
<evertedsphere> and /dev/uinput definitely exists
chagra has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #84544 → pythonPackages.pam: init at 1.8.4 → https://git.io/JvAZo
<{^_^}> [nixpkgs] @jonringer pushed commit from @mkg20001 to master « pythonPackages.pam: init at 1.8.4 »: https://git.io/JvAn5
<{^_^}> [nixpkgs] @jonringer merged pull request #84541 → python27Packages.pymupdf: 1.16.12 -> 1.16.16 → https://git.io/JvAZW
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.pymupdf: 1.16.12 -> 1.16.16 »: https://git.io/JvAnF
sjkelly1 has joined #nixos
evertedsphere has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jonringer merged pull request #84524 → pythonPackages.python-vipaccess: 0.10.3 -> 0.12 → https://git.io/JvAOw
<{^_^}> [nixpkgs] @jonringer pushed commit from @herrwiese to master « pythonPackages.python-vipaccess: 0.10.3 -> 0.12 »: https://git.io/JvAnN
levdub has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @jonringer merged pull request #84540 → python37Packages.pyhcl: 0.4.1 -> 0.4.2 → https://git.io/JvAZJ
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.pyhcl: 0.4.1 -> 0.4.2 »: https://git.io/JvAnx
chagra_ has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @jonringer pushed commit from Lily Ballard to master « python3Packages.ftfy: Fix dependencies »: https://git.io/JvAnp
<{^_^}> [nixpkgs] @jonringer merged pull request #84528 → python3Packages.ftfy: Fix dependencies → https://git.io/JvAsJ
evertedsphere has joined #nixos
morgrimm has joined #nixos
zeta_0 has joined #nixos
<pjt_0141> wowee thatsa lotta activity
<pjt_0141> I sense a new release comming...
pjt_0141 is now known as pjt_014
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84548 → python27Packages.pyroute2: 0.5.10 -> 0.5.11 → https://git.io/JvAce
<pjt_014> also, question: does anyone know what came of this?: https://github.com/NixOS/nixpkgs/issues/42242
<{^_^}> #42242 (by kisik21, 1 year ago, open): Use F2FS instead of ext4 in SD card images
<zeta_0> hello everyone, what is the progress of the new nixos stable/unstable release? is there a set date when it's going to get released?
<pjt_014> All the required changes seem to be in place, and a version bump would be a logical place to introduce it
<pjt_014> zeta_0: *around* 2020/03, hence the name 20.03. It's a bit late.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84549 → python37Packages.pytest-html: 2.1.0 -> 2.1.1 → https://git.io/JvAck
morgrimm has quit [Ping timeout: 258 seconds]
<zeta_0> pjt_014: that's great
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<evertedsphere> anyone have any idea why python-uinput tells me /dev/uinput doesn't exist
anirrudh has joined #nixos
<evertedsphere> i think i did everything i should've: made uinput writable by `input`, added my user to it, enabled the uinput kernel module
anirrudh has quit [Client Quit]
<{^_^}> [nixpkgs] @jonringer merged pull request #84548 → python27Packages.pyroute2: 0.5.10 -> 0.5.11 → https://git.io/JvAce
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.pyroute2: 0.5.10 -> 0.5.11 »: https://git.io/JvAcB
<{^_^}> [nixpkgs] @jonringer merged pull request #84549 → python37Packages.pytest-html: 2.1.0 -> 2.1.1 → https://git.io/JvAck
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.pytest-html: 2.1.0 -> 2.1.1 »: https://git.io/JvAcR
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
<{^_^}> [nixpkgs] @gnprice opened pull request #84551 → treewide: Fix types of stripDebugList attrs (and fix doc) → https://git.io/JvAcu
kleisli has joined #nixos
evertedsphere has quit [Remote host closed the connection]
waleee-cl has quit [Quit: Connection closed for inactivity]
cybrian has joined #nixos
morgrimm has joined #nixos
cybrian has quit [Ping timeout: 265 seconds]
morgrimm has quit [Ping timeout: 256 seconds]
revtintin has joined #nixos
mauli has quit [Ping timeout: 272 seconds]
endformationage has quit [Quit: WeeChat 2.6]
wavirc22 has quit [Read error: Connection reset by peer]
wavirc22 has joined #nixos
captjakk has quit [Remote host closed the connection]
gutibo[m] has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #83821 → atari800: 4.0.0 -> 4.2.0 → https://git.io/Jv5Lk
captjakk has joined #nixos
<{^_^}> [nixpkgs] @ryantm pushed commit from @AndersonTorres to master « atari800: 4.0.0 -> 4.2.0 »: https://git.io/JvAcN
sjkelly1 has quit [Remote host closed the connection]
codygman__ has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84553 → python27Packages.pony: 0.7.12 -> 0.7.13 → https://git.io/JvAcA
captjakk has quit [Ping timeout: 265 seconds]
palo1 has joined #nixos
palo1 is now known as palo
charukiewicz has joined #nixos
palo is now known as Guest51734
mauli has joined #nixos
<charukiewicz> Hello. I'm running du -ah on my Haskell dev server's /nix/store to look for it's largest items, and it looks like there's like 3 versions of GHC 8.6.5, one of 8.8.2, one of 8.8.3. They're taking up a lot of SSD space. Is there some way I can clean this up? Running nix-collect-garbage doesn't remove them for some reason
evertedsphere has joined #nixos
<srhb> charukiewicz: ghcWithPackages is very amenable to store optimizations where identical files are hardlinked together
<evertedsphere> is there a way i can get, e.g. nixops to give me the "new-style" build output that i get from e.g. nix build (as opposed to nix-build)
<srhb> charukiewicz: Try running nix-store --optimise and see how much you reclaim
<evertedsphere> is there like some kind of hidden nixops -2 flag
<srhb> charukiewicz: If that suffices for you, you can turn it on automatically with auto-optimise-store, see man nix.conf
<charukiewicz> srhb: okay, I read about that but haven't tried that. I'll give it a shot. Thanks.
<srhb> charukiewicz: It'll take a long time the first time you run it, but auto-optimise-store is quite fast from then on
<evertedsphere> i've put my / on a zfs pool (i think that's the term) on my laptop's (quite small) ssd and it seems to be getting ~1.9x compression which is nice
<evertedsphere> i think that's enough for me to stop worrying about my nix-store filling up
<charukiewicz> srhb: okay, I'll run it manually and probably add that to my configuration.nix
<srhb> evertedsphere: I'm at 2.00x exactly, which is nice. :)
<srhb> charukiewicz: Sounds like a plan :)
<evertedsphere> oh neat a nixos-on-zfs user! do you have any sort of docs on your setup
<evertedsphere> i've managed to crib together something that boots and runs but that's about it
<srhb> evertedsphere: Hmm, no, there's nothing fancy going on. ZFS on luks. I have quite a lot of datasets because I want different parameters for a lot of stuff.
<srhb> evertedsphere: eg. steam has its own, because I don't want snapshots of games.
<evertedsphere> right, i have yet to do anything fancy with datasets
<evertedsphere> wait you snapshot your store? or..?
<srhb> Not my store either, but my homedir modulo ~/Downloads and ~/.steam
<evertedsphere> right, i see
<srhb> Being able to go back 15 minutes in time to recover that thing I accidentally deleted is glorious.
<evertedsphere> i have /home on a separate hdd which is snapshotted
<evertedsphere> yes that's what got me to do it haha
<srhb> Everything's the same pool here.
<srhb> My personal laptop has two nvme disks, but my work one which is the only one I use currently only has one, so no mirror, sadly. :(
<evertedsphere> i've long thought about just putting ~/Downloads on a tmpfs like i saw someone do
<srhb> I want mine around for a bit longer, but I don't want it snapshotted.
<evertedsphere> i'm getting a new disk which comes with one nvme but has space for one more nvme and one "big" hard disk
<evertedsphere> *new laptop
<evertedsphere> err. is that a 2.5" bay that i'm calling "big". i swear i know a lot about computers
<evertedsphere> so in principle i could have two ssds + a spinning disk (or even three if i managed to find the money) at some point
<evertedsphere> or i could set up backup to a small raspi server over my local network like i've always wanted to :)
fusion809 has joined #nixos
<srhb> I don't have huge space requirements, it's really only /nix/store for me...
<leonardp> srhb: do you backup your zfs pools somehow?
<srhb> leonardp: Totally (no, but I really really shoul)
<leonardp> haha, same here
<srhb> I need some off-site solution but storage is so expensive ._.
<leonardp> thats why i was asking :D
<evertedsphere> i discovered `znapzend` poring through infinisil's setup
<leonardp> true
<evertedsphere> would love to set that up sometime
<srhb> Yeah, znapzend is great. I have used it, for testing.
<srhb> I should just pay up, really.
<infinisil> The longer I use znapzend, the less I'm a fan of it
<leonardp> why is that?
<evertedsphere> idk i'm somewhat uncomfortable about sending my data to someone, however much i encrypt it /shrug
<infinisil> It has a bunch of issues and isn't really being maintained anymore
<srhb> It has sharp edges, fundamentally what I like is the incrementality..
<cole-h> infinisil: Sounds like someone should write an alternative...
<infinisil> E.g. one issue I'm currently having is that even an incremental send is like 20GB, and with my slow internet that takes a while to upload
<infinisil> znapzend doesn't support resuming interrupted sends
<leonardp> oh shi-
<evertedsphere> can't you just rsync zfs snapshots or something
<evertedsphere> are they un-diffable binary files
<infinisil> zfs can diff between snapshots in almost zero time (compared to rsync)
<infinisil> And zfs also supports interrupting sends and resuming them
<infinisil> znapzend just doesn't make use of that
<infinisil> I've been meaning to look into syncoid as an alternative
<evertedsphere> huh. is there anything wrong with just using zfs's native send feature + a cronjob or something then
iqubic has quit [Remote host closed the connection]
<infinisil> Yeah that (sanoid is the thing that takes snapshots and syncoid is the thing that sends them)
<evertedsphere> i see.
<infinisil> Tools like this all use zfs's native send undernath
<infinisil> underneath*
<infinisil> But they add value on top
<evertedsphere> the one time i accidentally look at a perl script every month or so i see "chomp;" and chuckle
<infinisil> Like having it run automatically in certain intervals, deleting them automatically, etc.
<infinisil> Oh and I should also mention that I want to write a snapshot syncer myself too :)
<infinisil> Will get to that eventually (tm)
<cole-h> What language? 👀
<infinisil> Most likely Haskell
<evertedsphere> nix.unsafeEval
<cole-h> lmao
<evertedsphere> are there hs bindings to, like, libzfs or whatever
<cole-h> infinisil: Maybe when you start working on it will coincide when I am functional (ha) in Haskell and I can contribute... ;)
<srhb> Looks oldish though
<infinisil> evertedsphere: There are, but it's kind of shitty, and I wouldn't use it for this. Rather I'd use the CLI directly
<evertedsphere> i am somewhat functional as far as haskell ability goes but not time at present
<evertedsphere> i see
iqubic has joined #nixos
<evertedsphere> discovered something called kmonad today that i'd love to set up but i have a work deadline for today evening
<infinisil> I did ask elvishjerricco before if he's interested in writing a zfs CLI library for Haskell with me hehe
<evertedsphere> i miss my old xkb setup so bad
<srhb> I'm so glad I ditched my crazy layout, on the other hand. :-P
<evertedsphere> i don't have many requirements just caps -> ctrl+esc, tab -> tab+super, and a shift-reversed number row
<evertedsphere> the last one took the longest time to "forget"
<srhb> Yeah, shift-reversed I do miss.
<infinisil> We're kind of swaying off-topic btw, maybe it's time to -> #nixos-chat
<evertedsphere> mb
<srhb> Point :)
<evertedsphere> infinisil: is the stuff about `cachix use <name>` at the top of https://github.com/Infinisil/system/blob/master/config/cachix.nix true
<evertedsphere> or did you just copy that from an autogen'ed file
<infinisil> On-topic, I'd look at sanoid/syncoid for zfs syncing, there's also a NixOS module for it since recently: https://github.com/NixOS/nixpkgs/pull/72060
<{^_^}> #72060 (by lopsided98, 23 weeks ago, merged): sanoid: add package, NixOS module and test
<evertedsphere> iow how do you add/remove/work with cachix caches
<infinisil> evertedsphere: That's true. I add caches with `cachix use -d system/config <name>`
<evertedsphere> and that overwrites the file i linked?
<evertedsphere> hm.
<infinisil> Yup
<evertedsphere> so the -d switch makes cachix think the config dir is like /etc/nixos/cachix or whatever
<evertedsphere> great. i'm honestly quite enjoying this sort of declarative setup
<infinisil> Yeah, by default it uses /etc/nixos
<evertedsphere> always felt like a shame to configure a nixos system with imperative commands and then have to trawl through, like, my old .zsh_history to see what the hell i did to set up my previous install the way i did
<evertedsphere> are there any plans for a declarative alternative to nix-channel?
zupo has joined #nixos
<evertedsphere> as opposed to --add and such
<infinisil> Yup! Flakes will most likely replace channels in the future: https://github.com/NixOS/rfcs/pull/49
<{^_^}> rfcs#49 (by edolstra, 38 weeks ago, open): [RFC 0049] Flakes
<evertedsphere> are they planned to include the option to pin the entire system to a commit hash the way we currently do with nixos-rebuild -I or NIX_PATH=foo nixops deploy in my case
<evertedsphere> instead of imperatively updating channels in a way that isn't tracked in the configuration
<srhb> evertedsphere: flakes is most likely to make that viable
<srhb> Every solution right now sort of involves hoop-jumping.
<evertedsphere> mhm.
<evertedsphere> are flakes usable rn or is the sort of stuff we've all separately stolen from clever^W^W^W hacked into our configs still better to use on a daily driver
eoli3n__ has joined #nixos
<infinisil> Flakes are usable, but I'm not sure what the status of it is in relation to NixOS configs
<evertedsphere> i mean the idea of your configuration.nix being a flake that i saw on the rfc
<infinisil> I personally am using my own solution for specifying nixpkgs declaratively: https://github.com/Infinisil/system/blob/2e3e3bfe3dd6904d91e944dba8bb0663e3d6ea0b/deploy/default.nix#L40
<infinisil> (that is done with https://github.com/Infinisil/nixoses)
<cole-h> You forgot to <shill></shill>
<cole-h> ;)
<infinisil> (which is very WIP still, I wouldn't recommend using it (yet))
* cole-h is still waiting for the rename to Nixus
<evertedsphere> does that use nixops under the hood or just raw nix-copy-closure etc
<cole-h> Not nixops, no
<infinisil> The raw thing
rogue_koder has quit [Quit: Konversation terminated!]
<evertedsphere> i'm torn between wanting to continue using nixops so i can Know How to Use It for when people ask me about it during interviews and just learning to use the raw stuff
morgrimm has joined #nixos
* infinisil isn't a fan of nixops
<infinisil> But there's been some work on improving it recently
<cole-h> Using raw copy-closure will familiarize yourself with the underlying mechanisms
<evertedsphere> i don't know enough about *waves hands* nix/nixos/nixops to have an informed opinion yet but it does seem like a "useful thing to know"
<cole-h> Maybe you can make your own nixops, or nixus, or the other many Nix-deployment tools out there
<srhb> And probably cause you to roll-your-own-nixops, like the rest of us did.
<evertedsphere> i guess there's nothing wrong with learning both
<srhb> :-)
<cole-h> down the line
<cole-h> :P
<srhb> There must be at least like 20 copy-closure nixopsy things out there by now.
<infinisil> I think with my nixoses/nixus I have an edge, because it allows multi-host abstractions
<srhb> infinisil: [to e documented] :)
<srhb> If only I could type...
<evertedsphere> lol your auto-rollback would've saved me a couple days ago when i was modularising my config and accidentally forgot to include my ./services.nix and disabled sshd
<infinisil> Hehe
<evertedsphere> what timezone is most of this chat in?
<infinisil> Yeah the autorollback has been very nice
<evertedsphere> i feel like it's significantly less NA-heavy than most irc channels
<evertedsphere> lots of nix in the eu
scribbler has joined #nixos
<cole-h> PST (or PDT, I can never remember which it currently is) here
<infinisil> Yeah definitely
<infinisil> > PST
<{^_^}> undefined variable 'PST' at (string):293:1
<evertedsphere> rude
scribbler has quit [Remote host closed the connection]
<evertedsphere> i'm +0530/IST
<cole-h> (maybe we should -> #-chat again lol)
morgrimm has quit [Ping timeout: 265 seconds]
* evertedsphere should get back to writing haskell instead of blaspheming in channels for untyped things
<evertedsphere> is there a good guide anywhere to the way nixos handles nix?
<evertedsphere> i mean the way pkgs/config etc are automagically passed around
<evertedsphere> how imports = [...] works, all that
<evertedsphere> i guess the "nixos module system" is the right term perhaps
<srhb> evertedsphere: The best way is probably to read the actual module system code.
<evertedsphere> right
<evertedsphere> oh and on that topic is there any autocomplete at all in any editor for nixos stuff
<srhb> evertedsphere: Or you could scrap the duck typing, which is most of it really, and try implementing extensible fixpoints like that yourself. Good exercise.
* evertedsphere is spooked
Yaniel has joined #nixos
shu9[m] has joined #nixos
freeman42x has quit [Quit: Leaving]
kenran has joined #nixos
<djanatyn> i'm trying to install the steam package. it looks like the runtime URLs were updated in nixpkgs:master 3 days ago in runtime-generated.nix. but repo.steampowered.com is down, and the mirrors defined in build-support/fetchurl/mirrors.nix don't have the latest files
<djanatyn> i saw that these files did exist on another mirror: https://mirrors.tuna.tsinghua.edu.cn/steamos
<djanatyn> i tried adding this mirror to pkgs/build-support/fetchurl/mirrors.nix in a local checkout, and to install the steam package: nix-env -iA nixpkgs.steam -I nixpkgs=/home/djanatyn/repos/nixpkgs --arg config '{allowUnfree = true;}'
<djanatyn> however, it doesn't look like the changes i made to the mirror list are being applied
<djanatyn> how can I update pkgs/build-support/fetchurl/mirrors.nix in nixpkgs for a nix-env steam install using a local checkout?
<djanatyn> alternatively, is this an appropriate reason to open an issue with more details?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84554 → python37Packages.nest-asyncio: 1.3.0 -> 1.3.2 → https://git.io/JvAW6
cartwright has quit [Remote host closed the connection]
cartwright has joined #nixos
<Amit[m]> On a fresh install in a Xen VM, I'm failing to restart the systemd-udev-trigger service, with an odd error message:"Failed to write 'add' to '/sys/devices/virtual/input/input5/uevent': Cannot allocate memory"
<Amit[m]> Does this seem familiar to anyone? I haven't found much useful from looking up the error message
<Amit[m]> (I'm able to restart the same service perfectly on my laptop & desktop, which are also running NixOS)
<{^_^}> [nixpkgs] @jtojnar opened pull request #84555 → dia: 2017-06-22 → 2020-04-07 → https://git.io/JvAWS
FRidh has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #84556 → treewide: use runtimeShell in nixos/ → https://git.io/JvAWQ
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84557 → python37Packages.moviepy: 1.0.1 -> 1.0.2 → https://git.io/JvAW7
<clever> Amit[m]: how much ram did you give it?
cole-h has quit [Quit: Goodbye]
<Amit[m]> It has 2.5GB + 2GB swap
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
<Amit[m]> and nothing running on it. `free -h` shows 64MB used currently
<clever> Amit[m]: anything in dmesg?
xO1 has joined #nixos
<{^_^}> [nixpkgs] @invokesus opened pull request #84558 → perlPackages.CryptRandom and its dependencies → https://git.io/JvAWx
<Amit[m]> a seffault in dhcpcd seems bad but also not obviously related?
<clever> Amit[m]: yeah, that is weird
thc202 has joined #nixos
linarcx has joined #nixos
mallox has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rauno has joined #nixos
<Amit[m]> booting now without DHCP (static IP instead), that dhcpd segfault is no longer there (unsurprisingly), but the uevent message still are there every time I try to restart the systemd-udev-trigger service
LysergicDreams has quit [Ping timeout: 256 seconds]
LysergicDreams has joined #nixos
<{^_^}> [nixpkgs] @vbgl merged pull request #83852 → opendht: 1.8.0 → 2.0.0 → https://git.io/Jv5sy
<{^_^}> [nixpkgs] @vbgl pushed to master « opendht: 1.8.0 → 2.0.0 »: https://git.io/JvAlI
zaeph1 has joined #nixos
<clever> Amit[m]: what if you run `nix-store --verify --check-contents` ?
<Amit[m]> clever: checking. and to clarify, it runs on boot successfully, it's just when I restart it (e.g. on a nixos-rebuild switch, or manually) that it fails
<{^_^}> [nixpkgs] @invokesus opened pull request #84559 → perlPackages.RPM2: init at 1.4 → https://git.io/JvAlq
<clever> Amit[m]: ah, no idea then
<Amit[m]> :) thanks for trying
zaeph has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84560 → python27Packages.patch-ng: 1.17.2 -> 1.17.3 → https://git.io/JvAlO
aos1 has joined #nixos
aos1 has quit [Remote host closed the connection]
arjen-jonathan has joined #nixos
zebrag has quit [Quit: Konversation terminated!]
zaeph1 is now known as zaeph
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84561 → python27Packages.txtorcon: 19.1.0 -> 20.0.0 → https://git.io/JvAlo
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/e10c65cdb35 (from 2 days ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
<{^_^}> [nixpkgs] @invokesus opened pull request #84562 → perlPackages.AuthenKrb5Admin and dep → https://git.io/JvAlX
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
otulp has quit [Ping timeout: 256 seconds]
sshow has quit [Ping timeout: 256 seconds]
sshow has joined #nixos
snicket has joined #nixos
linarcx has quit [Quit: WeeChat 2.8]
otulp has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84564 → qsynth: 0.6.1 -> 0.6.2 → https://git.io/JvAlD
blibberblob has quit [Quit: WeeChat 2.7.1]
ATuin has joined #nixos
lsix has joined #nixos
Maxdamantus has quit [Ping timeout: 256 seconds]
_cyril__ has quit [Ping timeout: 256 seconds]
Maxdamantus has joined #nixos
logzet has joined #nixos
_cyril_ has joined #nixos
anirrudh has joined #nixos
<{^_^}> [nixpkgs] @invokesus opened pull request #84565 → perlPackages.FileGrep: init at 0.2 → https://git.io/JvAl7
charukiewicz has quit [Quit: leaving]
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
FRidh has quit [Ping timeout: 256 seconds]
maddo has joined #nixos
cr4y1 has joined #nixos
<{^_^}> [nix] @edolstra pushed 5 commits to fetchers: https://git.io/JvA8I
justanotheruser has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84566 → python37Packages.starlette: 0.12.9 -> 0.13.2 → https://git.io/JvA8m
FRidh has joined #nixos
adamtkh6 has quit [Ping timeout: 250 seconds]
kenran has quit [Quit: leaving]
justanotheruser has joined #nixos
FRidh2 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84567 → python27Packages.soco: 0.18.1 -> 0.19 → https://git.io/JvA8B
<{^_^}> [nix] @edolstra pushed to fetchers « Cleanup »: https://git.io/JvA8E
FRidh has quit [Ping timeout: 264 seconds]
zupo has joined #nixos
dckc has quit [Ping timeout: 265 seconds]
hoplaahei has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @lovesegfault closed pull request #84161 → ddcci: 0.3.2 -> 0.3.3 → https://git.io/JvF1n
<{^_^}> [nixpkgs] @lovesegfault closed pull request #78377 → [WIP] treewide: fix dead urls → https://git.io/Jvt4M
<{^_^}> [nixpkgs] @lovesegfault closed pull request #77410 → i3: add passthru.providedSessions → https://git.io/Jvva3
<{^_^}> [nixpkgs] @lovesegfault closed pull request #81693 → uvcdynctrl: fix udev files → https://git.io/JvaPt
cfricke has joined #nixos
dckc has joined #nixos
fooker has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @lovesegfault reopened pull request #84161 → ddcci: 0.3.2 -> 0.3.3 → https://git.io/JvF1n
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
adamtkh6 has joined #nixos
<{^_^}> [nixpkgs] @lovesegfault reopened pull request #81693 → uvcdynctrl: fix udev files → https://git.io/JvaPt
linarcx has joined #nixos
linarcx has quit [Client Quit]
gxt has quit [Quit: WeeChat 2.8]
<djanatyn> i was able to set up an overlay to fix steam since the mirrors are down :) https://gist.github.com/msteen/6741878f8919f8e2363869693e7ef085
opthomasprime has joined #nixos
apeyroux` has joined #nixos
fooker has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84569 → python37Packages.xdis: 4.2.3 -> 4.2.4 → https://git.io/JvA4I
gxt has joined #nixos
FRidh has joined #nixos
FRidh2 has quit [Ping timeout: 256 seconds]
anirrudh has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #84570 → nixos: default nix.maxJobs to auto → https://git.io/JvA4c
zupo has quit [Ping timeout: 265 seconds]
zeenk has joined #nixos
morgrimm has joined #nixos
shabius has joined #nixos
Hi-Angel has joined #nixos
zupo has joined #nixos
<Hi-Angel> Hey, silly question, where can I view list of files for `git` package online? I was expected to see it here, but I got a 793 results for "git" https://nixos.org/nixos/packages.html?channel=nixos-19.09&query=git
__monty__ has joined #nixos
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
morr_ has joined #nixos
shabius_ has quit [Ping timeout: 246 seconds]
morr has quit [Ping timeout: 246 seconds]
<Hi-Angel> Ah, okay, they're alphabetically sorted, I scrolled forward to git. Though the site doesn't show list of files :c
domenkozar[m] has quit [Ping timeout: 246 seconds]
morgrimm has quit [Ping timeout: 265 seconds]
domenkozar[m] has joined #nixos
<pjt_014> Hi-Angel: prot tip: search ^git to find results that start with git, not just contain it
rotaerk has quit [Ping timeout: 246 seconds]
init_6[m] has quit [Ping timeout: 246 seconds]
thefloweringash has quit [Ping timeout: 246 seconds]
rotaerk_ has joined #nixos
<Hi-Angel> Oh, thanks, that's cool, I've never seen an online site for package view with regex support
<Hi-Angel> s/an online site/a website
chagra has quit [Quit: WeeChat 2.7.1]
dermetfan has joined #nixos
apeyroux` has left #nixos ["ERC (IRC client for Emacs 26.3)"]
init_6[m] has joined #nixos
thefloweringash has joined #nixos
nikola2 has joined #nixos
hax404_ has joined #nixos
<pjt_014> the 'nix search' command does regex too, If you didn't know.
das-g[m]1 has joined #nixos
das-g[m] has quit [Ping timeout: 246 seconds]
hax404 has quit [Remote host closed the connection]
nikola1 has quit [Ping timeout: 246 seconds]
<Hi-Angel> pjt_014, yeah, command line utilties typically support regexes, I'm wondering about websites functional
<Hi-Angel> It's like unexpected functional, I think some obvious pop up on the website may help to new people
cr4y1 has quit [Remote host closed the connection]
<tyrion-mx> Hola, `nixos-rebuild switch` is not picking up changes in my configuration.nix ... this never happened to me before. Somebody has any hints on how to proceed?
cr4y1 has joined #nixos
<tyrion-mx> It only shows "building Nix... \ building the system configuration..." and then exits
civodul has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest51734 is now known as palo
palo has quit [Quit: WeeChat 2.7.1]
zupo has joined #nixos
palo has joined #nixos
opthomasprime has quit [Remote host closed the connection]
<energizer> what is the difference between `nix cat-store` and `cat`?
opthomasprime has joined #nixos
<LnL> a nix store isn't necessarily /nix
<clever> energizer: `nix cat-store` can work even if you `--store s3://bucket` or `--store ssh://host`
<{^_^}> [nixpkgs] @rnhmjoj merged pull request #84440 → mkvtoolnix: 44.0.0 -> 45.0.0 → https://git.io/JvNME
<{^_^}> [nixpkgs] @rnhmjoj pushed 2 commits to master: https://git.io/JvA4N
<energizer> clever: i see
<LnL> eg. nix cat-store --store https://cache.nixos.org /nix/store/kc8iys6qf3xglic04g5p9x0y7s9p5y4j-hello-2.10/share/man/man1/hello.1.gz | gzip -d
<Hi-Angel> Hey, I'm not on Nix OS, could please someone tell under what directory did your "git" package put a script `diff-highlight`? Background for the question: I'm arguing with someone who says that the best way to find the file is by using `find /usr`, and I'm trying to find an example where this script is not under this dir. I think on Nix OS it may not be there.
broccoli has quit [Quit: leaving]
<clever> Hi-Angel: /nix/store/g8z167wz75247v7jxmnib1f1w4ky3h1m-git-2.23.0/share/git/contrib/diff-highlight/diff-highlight
<LnL> Hi-Angel: /nix/store/gz5vvc3qjzgj951jgf8zplrw5xi6xba1-git-2.25.1/share/git/contrib/diff-highlight
<Hi-Angel> Thank you!
<clever> Hi-Angel: and the git binary itself is at /nix/store/g8z167wz75247v7jxmnib1f1w4ky3h1m-git-2.23.0/bin/git
<LnL> and note that you already got 2 different answers :)
<Hi-Angel> c:
<clever> $ ls -l $(dirname $(realpath $(which git)))/../share/git/contrib/diff-highlight
<clever> total 40
<clever> -r-xr-xr-x 1 root root 7342 Dec 31 1969 diff-highlight
<clever> Hi-Angel: i suspect this will work on both FHS distros and nixos
laerling has joined #nixos
<clever> it would even work when git has been installed to /usr/local/
opthomasprime has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @woffs opened pull request #84571 → [nixos-20.03] haskellPackages.amqp-utils: fix amqp-0.19 dependency → https://git.io/JvABf
noudle has joined #nixos
opthomasprime has joined #nixos
pjt_014 has quit [Ping timeout: 265 seconds]
boothead has joined #nixos
<Hi-Angel> clever, what `dirname` and `realpath` in your example are? :)
<hyper_ch> hmmm, something has changed in samba since 20.03 git
<clever> Hi-Angel: realpath is a program to turn a symlink into an absolute path, dirname is a program to give the dir that a file is in
<hyper_ch> I got lots of aborts and locks now
thibm has joined #nixos
linarcx has joined #nixos
<boothead> Hey folks - what's the best way to get and xmonad and gnome session set up? I have windowManager.default = "xmonad" and gnome enabled but desktopManager.default = "gnome" doesn't seem to work...
linarcx has quit [Client Quit]
<Hi-Angel> clever, okay, thanks. FYI, this doensn't work on Archlinux and Ubuntu, because there're other paths. On Arch it's `/usr/share/git/diff-highlight/diff-highlight` and Ubuntu it's `/usr/share/doc/git/contrib/diff-highlight`
<energizer> boothead: the value should be a package not a string
<clever> $ find $(dirname $(realpath $(which git)))/.. -name diff-highlight -type d
<clever> /nix/store/g8z167wz75247v7jxmnib1f1w4ky3h1m-git-2.23.0/bin/../share/git/contrib/diff-highlight
<clever> Hi-Angel: this will search, relative to where the git binary is
<boothead> energizer - ah that makes sense. What should I put in there? I want gnome running with all services, but xmonad as the wm...
<Hi-Angel> clever, heh, yeah, that probably gonna work :)
<energizer> boothead: i have `services.xserver.displayManager.sddm.enable = true;`
<energizer> you can do something similar with windowManager and desktopmanager
andydarcyjewell2 has joined #nixos
<andydarcyjewell2> Hey #nixos
<boothead> I had lightdm as the displayManager, when I switched over to gdm, i didn't seem to have a gnome+xmonad session option. Does sddm have that?
<andydarcyjewell2> I'm new to Nix, just installed it in order to get Factor (language) working. It's installed, but the GUI isn't working - complains about missing GTK this and that
<energizer> boothead: i think you can set all of those independently
<{^_^}> [nixpkgs] @dguibert opened pull request #84572 → waitron: init → https://git.io/JvAB4
<andydarcyjewell2> When I installed Factor from source on stock Debian, I had to install several "dev" packages to get it to work, but I can't work out how to do that under Nix.
<energizer> boothead: like `services.xserver.windowManager.xmonad.enable = true;`
<{^_^}> [nixpkgs] @dguibert opened pull request #84573 → darcs: compile with ghc 8.8 → https://git.io/JvAB0
cybrian has joined #nixos
<boothead> energizer, yes I think you're correct - just wondering what the right way is to have a gnome + xmonad set up (I already have desktopManager.gnome3.enable and xmonad.enable)
anirrudh has joined #nixos
<energizer> boothead: what happens?
anirrudh has quit [Client Quit]
buckley31078 has quit [Quit: The Lounge - https://thelounge.chat]
<boothead> I get a gnome desktop and in the login screen I don't have the expected gnome+xmonad option for the session
o1lo01ol1o has joined #nixos
opthomasprime has left #nixos [#nixos]
<energizer> boothead: i do my window manager config with home-manager rather than configuration.nix so i haven't tried that myself. perhaps the services.xserver.desktopManager.gnome3.flashback.customSessions.*.wmCommand option is relevant (man configuration.nix)
<boothead> Ah - been meaning to look at home manager... Do you have a link to your set up public (or anything else you could point me at)?
aswanson has quit [Quit: WeeChat 2.7.1]
<{^_^}> [nixpkgs] @filalex77 opened pull request #84574 → meilisearch: init at 0.9.0 → https://git.io/JvABr
<energizer> mine isn't public but a lot of people have public ones
buckley31078 has joined #nixos
<boothead> awesome, thanks!
o1lo01ol1o has quit [Ping timeout: 265 seconds]
cybrian has quit [Ping timeout: 240 seconds]
<evertedsphere> what's with store paths like this?
<evertedsphere> checking contents of '/nix/store/5vvdi8ni626jp111hw2zsar6a42xbrh4-wm92mnm0fz045xrhjm715ck4vi926ij5-ixx9wbs9sr72jxlx72h9wkh0gkbc322s-17h9mdgqxb5hb9razx8m9i1hip0hc20a-source'
<evertedsphere> i had to actually once use builtins.path or something like that to shorten the name so as to not hit the filename length limit
<evertedsphere> i think its like <hash>-(<hash-(<hash>-(<hash>-name))) or something?
<energizer> wow
<{^_^}> [nixpkgs] @raboof closed pull request #79012 → MozPhab: init at 0.1.74 → https://git.io/Jv3yh
<evertedsphere> it might be from incorrectly trying to copy clever's nixpkgs=/run/current-system/nixpkgs + system.extraBuilderCms = "ln -sv ${pkgs.path} /run/current-system/nixpkgs" trick
<evertedsphere> extraBuilderCmds*
<evertedsphere> but i had to give pkgs.path a shorter name using builtins.path
<Athas> I'm having some trouble with 'pass' on my NixOS. It can encrypt passwords, but not decrypt them, as it fails with 'gpg: public key decryption failed: No pinentry'. I can manually decrypt the passwords with 'gpg --decrypt --pinentry-mode=loopback'.
<Athas> It looks like it's unable to ask me for my password, unless I pass that --pinentry-mode. Has anyone here seen anything like this before?
<evertedsphere> perhaps you need `pinentry` installed?
<Athas> I have 'pinentry' installed.
<evertedsphere> ah, okay
rauno has quit [Remote host closed the connection]
knupfer has joined #nixos
<{^_^}> [nixpkgs] @zimbatm merged pull request #81812 → standardnotes: 3.0.15 -> 3.3.3 → https://git.io/JvVRU
<{^_^}> [nixpkgs] @zimbatm pushed 3 commits to master: https://git.io/JvARJ
<andydarcyjewell2> Maybe I should re-phrase my question: when a program tries to dynamically bind to a library, it needs the C header file to know what endpoints are exported. How do you handle that with Nix?
ottidmes has joined #nixos
psy3497_ has joined #nixos
<psy3497_> I'm trying to build a Haskell project with the latest revision of nixos-19.09, it has base at 4.12, but for some reason the `hslogger` fails to compile
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84575 → python27Packages.whisper: 1.1.6 -> 1.1.7 → https://git.io/JvARt
<psy3497_> saying: "Setup: Encountered missing or private dependencies:"
<psy3497_> base <3 || >=4 && <4.1
<psy3497_> Copy paste mistake
<psy3497_> Setup: Encountered missing or private dependencies:
<psy3497_> base <3 || >=4 && <4.13
<thibm> andydarcyjewell2: did you read https://nixos.wiki/wiki/C ? It explains the basics for C
<srk> andydarcyjewell2: maybe the package is built without gtk support?
<srhb> psy3497_: Can't reproduce. Which revision of nixpkgs are you on?
<psy3497_> srhb: e10c65cdb35b6a66491e47e5a85f5d456b4f4eea
<andydarcyjewell2> If so, surely it wouldn't throw a load of GTK errors? Yes I read a bit about that, but it didn't seem to apply. New to Nix, so still trying to work it out.
mallox has quit [Quit: WeeChat 2.7.1]
<psy3497_> Perhaps there is something more compilcated inside my build where a different hslogger is being referenced I wonder? I admit I did not try to build hslogger in isolation
m0rphism has joined #nixos
<{^_^}> [nixpkgs] @alyssais merged pull request #84247 → git-cinnabar: init at 0.5.4 → https://git.io/JvbVy
<{^_^}> [nixpkgs] @alyssais pushed to master « gitAndTools.git-cinnabar: init at 0.5.4 »: https://git.io/JvARG
<srhb> psy3497_: Seems likely.
<psy3497_> I will first try that, thanks
<thibm> andydarcyjewell2: for instance if I do nix-shell -p glib, then $NIX_CFLAGS_COMPILE contains "-isystem /…glib-2.60.7-dev/include"
<srhb> psy3497_: Great :)
<srhb> psy3497_: (I checked like this in a checkout on that commit: nix-build -E 'with import <nixpkgs> { config = {}; overlays = []; }; haskellPackages.hslogger')
<srhb> Er, where <nixpkgs> is a checkout of that commit, I should say
fendor has joined #nixos
<psy3497_> srhb: I was using ghc882 for the build
<psy3497_> it looks like ghc865 is the default one in nixos-19.09
<srhb> Ah, that would explain.
<psy3497_> I am not supposed to use ghc882 for this LTS?
<srhb> psy3497_: For nixpkgs haskellPackages, you're supposed to use the version in haskellPackages itself, unless you want to forgo the binary cache.
<srhb> psy3497_: As in haskellPackages.ghcWithPackages
<andydarcyjewell2> thibm: thanks, but it's not compiling in that sense; Factor (the package) is dynamically binding to the libraries, like for instance Python's ctypes module does
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84576 → qtractor: 0.9.12 -> 0.9.13 → https://git.io/JvARW
palo has quit [Quit: WeeChat 2.7.1]
<psy3497_> srhb: I see. I still wonder why the error on base's version while it does seem to be inside the bounds
palo has joined #nixos
<psy3497_> I found in configuration-ghc-8.8.x.nix:
<psy3497_> # Disable GHC 8.8.x core libraries.
<psy3497_> base = null;
<{^_^}> [nixpkgs] @doronbehar opened pull request #84577 → nodePackages.clean-css: rename to clean-css-cli → https://git.io/JvAR4
<srhb> psy3497_: Base is bundled with ghc along with some other packages
<psy3497_> Ah
<psy3497_> I see, so actually it does not matter that I saw base_4.12 in haskellPackages.nix. I will see what base version is bundled with ghc882
<andydarcyjewell2> thibm: When Factor loads modules (written in factor) they can call out to arbitrary libraries, and that's where it's failing. For instance, to run its wiki app, it needs to bind to sqlite, but is failing to find it, despite it being installed. I think the problem with GTK may be similar.
<psy3497_> srhb: Cool I found it, ghc88x bumped base to 4.13
<psy3497_> srhb: does the `base` dependency ignores jailbreak? I tried to see if hslogger would build if I jailbreak it. But it kept complaining about the dependency version
apeyroux` has joined #nixos
<thibm> andydarcyjewell2: I see. It seems that this cannot really run seamlessly with Nix… You cannot find arbitrary libraries like that. There's just mechanism to find them when building derivations
<thibm> Neither the C headers of the library itself
<andydarcyjewell2> How does Nix support other languages then?
<srhb> psy3497_: I wouldn't have expected it to ignore the jailbreak. You were jailbreaking hslogger, right?
<psy3497_> Yes
<psy3497_> srhb: Yes
<psy3497_> srhb: it even wrote it in the output
<srhb> psy3497_: You can try running cabal2nix --jailbreak by hand on a cabal file
<thibm> andydarcyjewell2: what's usually done is generating an environnement with everything you need in scope (compiler, libraries, etc), then build the project.
<srhb> psy3497_: Maybe the error was actually coming from some other dependency?
<andydarcyjewell2> Python, perl, php.. even ones not stating in "p" do this kind of thing
<psy3497_> srhb: During the build it says: "Run jailbreak-cabal to lift version restrictions on build inputs."
<srhb> psy3497_: Otherwise I don't know, I don't see how it could ignore it if the bounds are removed correctly.
<psy3497_> Configuring hslogger-1.2.12...
<psy3497_> CallStack (from HasCallStack):y
<psy3497_> die', called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:1022:20 in Cabal-3.0.1.0:Distribution.Simple.Configure
<psy3497_> srhb: and then more lines that I will abbreviate
<{^_^}> [hydra] @edolstra closed pull request #731 → Fix build against nix master → https://git.io/JvATu
<srhb> psy3497_: You probably need to inspect the output of cabal2nix --jailbreak, as said
<thibm> andydarcyjewell2: if I want to build a python project that uses ffmpeg, I need to create an environment with python and ffmpeg. Nix helps you do that, and normally sets all environment variables such that your tooling find the appropriate stuff (starting with $PATH)
<psy3497_> srhb: I see, thanks for the help though! You helped me to make some progress
<psy3497_> srhb: I will check that output
<{^_^}> [hydra] @edolstra merged pull request #730 → Flake support → https://git.io/Jv59d
<{^_^}> [hydra] @edolstra pushed 92 commits to master: https://git.io/JvARo
<andydarcyjewell2> thibm: so are you saying that it's not possible to do that for arbitrary libraries?
<{^_^}> [hydra] @edolstra pushed 0 commits to flake: https://git.io/JvARK
<thibm> andydarcyjewell2: it is through Nix mechanism. For instance, it does not make sense to "install a library" here.
sigmundv_ has joined #nixos
<andydarcyjewell2> thibm: fair enough. as I said, I'm new at this.
<srhb> psy3497_: I see the problem. The base dep is hidden behind a conditional flag. cabal2nix does not touch bounds within these.
<{^_^}> [nixpkgs] @filalex77 opened pull request #84578 → nixos/meilisearch: init → https://git.io/JvARi
<{^_^}> [nix] @edolstra merged pull request #3459 → Backport libfetchers from the flakes branch → https://git.io/Jv7HA
<{^_^}> [nix] @edolstra pushed 7 commits to master: https://git.io/JvARP
<thibm> andydarcyjewell2: so I think it's not easy to use an IDE that assumes it can find libs at runtime. But there may be a way to tell your IDE where to find the libs you need to build your project
apeyroux` has quit [Remote host closed the connection]
<andydarcyjewell2> thibm: is there something I can read that discusses how to approach that?
<thibm> Hum… Is it possible to build Factor projects from command line (usually easier to understand what's going on). Is there a Nix abstraction for this? (Like buildGoModule for go, for instance)
<andydarcyjewell2> thibm: Factor is it's own command-line
<{^_^}> [nixpkgs] @marsam merged pull request #84529 → syncthing: 1.4.0 -> 1.4.1 → https://git.io/JvAsk
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvAR1
kaliumxyz has joined #nixos
kaliumxyz has quit [Client Quit]
<{^_^}> [nixpkgs] @marsam merged pull request #84532 → lxc: 4.0.0 -> 4.0.1 → https://git.io/JvAsn
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvARD
ilikeheaps has joined #nixos
<psy3497_> srhb: I see! You looked at the cabal file for that correct?
<thibm> andydarcyjewell2: you can try to ping nixpkgs factor's maintainer seems like space*frogg is here
<thibm> andydarcyjewell2: but first try to build yourself an environnement with your libs and factor to see if its work
<psy3497_> srhb: Ah found it in hslogger.cabal line51
<psy3497_> srhb: Thank you very much for the guidance!
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84579 → qjackctl: 0.6.1 -> 0.6.2 → https://git.io/JvAR7
xelxebar has quit [Remote host closed the connection]
<psy3497_> srhb: it looks like setting the small_base flag should make it compile
lordcirth has quit [Remote host closed the connection]
kleisli has quit [Remote host closed the connection]
<srhb> psy3497_: You're welcome :)
<thibm> andydarcyjewell2: maybe try mkShell (https://nixos.org/nixpkgs/manual/#sec-pkgs-mkShell). You need to find out how factor looks for its libraries. Maybe there's a environment variable, if you're lucky
kleisli has joined #nixos
<andydarcyjewell2> thibm: ok, will look at that, but it doesn't seem particularly sustainable, as each time I try to use a new facility in Factor, I'll have to manually hack in the new libraries it needs
xelxebar has joined #nixos
chagra has joined #nixos
balsoft_ has joined #nixos
<andydarcyjewell2> thibm: I'll look at mkShell too then, thank you
balsoft_ has quit [Client Quit]
pbogdan has joined #nixos
<sshow> I want to get the two first elements of a list. Slice, splice, shift? builtins.tail was the closest I could find :P
<srhb> sshow: take?
<srhb> > take 2 [ 1 2 3 4 ]
<{^_^}> { head = <CODE>; tail = <CODE>; }
<srhb> sigh :-)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84580 → qmmp: 1.3.6 -> 1.3.7 → https://git.io/JvA0U
mounty has quit [Ping timeout: 240 seconds]
<sshow> srhb: nice! where would I find the docs for things like that?
<sshow> i.e. how could I know about take myself? :)
<thibm> read lib/lists.nix ^^
kleisli has quit [Remote host closed the connection]
<srhb> sshow: or https://nixos.org/nixpkgs/manual/#sec-functions-library, but yes, browsing lib directly is my way too.
kleisli has joined #nixos
<thibm> It's the more comprehensive way :p
<sshow> oh, okay. I was reading the nix one.. https://nixos.org/nix/manual/#ch-expression-language
<srhb> sshow: Right, that's only builtins.
<sshow> I have come to find that as a source of confusion. Three different docs that covers each other without overlapping
<srhb> Yes, everyone is confused by that, I think. :)
<srhb> The division makes perfect sense once you understand why it's divided like that, but by then it's too late. :P
<sshow> I *do* know, however, that I could contribute myself ;)
<srk> > lib.take 2 [ 1 ]
<{^_^}> [ <CODE> ]
<srk> mkey
o1lo01ol1o has joined #nixos
mounty has joined #nixos
<sshow> srhb++
<{^_^}> srhb's karma got increased to 95
<sshow> thibm: ++
<sshow> thibm++
<{^_^}> thibm's karma got increased to 1
chloekek has joined #nixos
<srhb> > seq
<{^_^}> <LAMBDA>
<srhb> oops
<evertedsphere> pls to not kill {^_^}
<thibm> srhb: used Nix for years, I still do not understand the builtins.* vs map/toString/… things
o1lo01ol1o has quit [Ping timeout: 240 seconds]
captn3m0 has quit [Ping timeout: 240 seconds]
captn3m0 has joined #nixos
<{^_^}> [nixpkgs] @vbgl pushed to master « jackline: use OCaml 4.08 »: https://git.io/JvA0o
jbrock has quit [Ping timeout: 240 seconds]
<srhb> thibm: builtins are primitives provided directly by Nix. library functions are implemented on top of those (and are sometimes just compatibility aliases(
<thibm> I know for builtins/lib. But map, toString and other are accessible outside of builtins.*
<{^_^}> [nix] @zimbatm pushed 0 commits to fetchers: https://git.io/JvA05
<evertedsphere> would it be unwise to enable dedup on a zfs pool (or is the term dataset?) containing only /nix/store
<evertedsphere> i think it might work like a sort of automatic nix-store --optimise
<srhb> evertedsphere: Yes. always
<srhb> evertedsphere: You can stop the sentence by "would it be wise to enable dedup on a zfs" to which the answer is no, never.
<evertedsphere> hah
<srhb> It's a very short distance from opt-in data-loss.
<evertedsphere> wow, really, TIL
<evertedsphere> does it overzealously "dedup" and just delete files for no reason
<hyper_ch> dedup.... ufff.... :)
<hyper_ch> dedup works on block size, not files
<evertedsphere> i've just been thinking about what cool zfs stuff i could be making use of on my home machine apart from just compression and encryption (i went with zfs encryption instead of luks)
<evertedsphere> or things i could tweak
<srhb> evertedsphere: You're probably best off googling why it's a bad idea, I only remember "no, seriously, don't do it" :)
<evertedsphere> right.
<evertedsphere> for one i think i read somewhere that you want to make fine-grained datasets and tweak settings on each
<evertedsphere> like a dataset for things like big videos/movies with a larger recordsize parameter (iirc?)
<Valodim[m]> the main argument against dedup I remember was an a very high increase in required memory
knupfer has quit [Quit: knupfer]
knupfer1 has joined #nixos
knupfer1 has quit [Client Quit]
knupfer has joined #nixos
<evertedsphere> yeah isn't it like 5GB/TB up from the usual 1GB/TB number
<hyper_ch> evertedsphere: there's some good zfs videos
<hyper_ch> 1GB/1TB is for dedup
<bqv[m]> <{^_^} "[nix] @zimbatm pushed 0 commits "> 🤔
morgrimm has joined #nixos
<hyper_ch> evertedsphere: I likied this one https://www.youtube.com/watch?v=qXOZmDoy2Co
<srhb> evertedsphere: By the way, for automatic nix-store --optimise, there's auto-optimise-store, which I heartily recommend, in case you missed it earlier.
<srhb> evertedsphere: That will efficiently dedup on registration of all new store paths.
<zimbatm> bqv[m]: that happens when deleting branches :)
<bqv[m]> ah
<bqv[m]> i still sometimes do the old-fashioned push origin :<branch>
<thibm> srhb: what's the cost of enabling auto-optimise-store?
morgrimm has quit [Ping timeout: 250 seconds]
<srhb> thibm: Each file of the new store path is hashed, its hash checked for existense in /nix/store/.links, if it exists, it's hardlinked to that.
<srhb> thibm: So you trade some (minimal, in my experience) time for space savings.
<srhb> thibm: For some workloads (say, haskell development work) the space savings are quite huge, because the derivations tend to produce many identical files.
<thibm> srhb: OK, seems a good solution
<evertedsphere> most of my nixos use is indeed haskell so i'll give it a try
<srhb> evertedsphere: Note that you'll have to do a one-time nix-store --optimise too, to get existing paths hardlinked.
<thibm> I'm interested because I build several GB derivations (each) on a machine, with multiple outputs, and some of these outputs have a lots of file in common. And I don't have much disk space.
boothead has quit [Remote host closed the connection]
<bqv[m]> i originally didn't have optimize on locally cause i thought it would be expensive on my home pc. turned it on later and the initial one took half an hour
<thibm> Is it possible to enable it on a current installation? I guess first store registration will be long
<bqv[m]> add nix.autoOptimizeStore = true;
laduke has quit [Ping timeout: 265 seconds]
<bqv[m]> see also: nix.gc, nix.optimize
<thibm> Yes, I was just wondered if changing the config would work. Hope so
<srhb> thibm: auto optimise will not traverse the whole store iirc, you need to manually run nix-store --optimise for that.
<thibm> (It's not of a Nixos. It's on a old CentOS machine with a custom Nix path because I'm no root. It's terrible.)
<thibm> srhb: OK, thanks
<srhb> thibm: Yeah, man nix.conf
<thibm> Yeah I saw. But no mention of turning it on/off
mallox has joined #nixos
<srhb> It's fine. :)
<bqv[m]> auto-optimise-store = true
<bqv[m]> add that as a line in nix.conf
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/JvAuM
<thibm> bvdw: yes I saw. Just saying this is not on NixOS. Thanks anyway*
<thibm> bqv[m] (sorry)
<srhb> THe only thing I don't know is if a custom store location might be an issue, but I haven't heard of that being the case.
<bqv[m]> ah ok
<{^_^}> [nixpkgs] @marsam opened pull request #84581 → skim: fix bash completion → https://git.io/JvAuA
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84582 → python27Packages.spotipy: 2.9.0 -> 2.10.0 → https://git.io/JvAuh
johnjay has quit [Ping timeout: 264 seconds]
o1lo01ol1o has joined #nixos
<thibm> I'll figure it out, but I don't think so
<{^_^}> [nixpkgs] @marsam merged pull request #84557 → python37Packages.moviepy: 1.0.1 -> 1.0.2 → https://git.io/JvAW7
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvAzC
chagra has quit [Ping timeout: 256 seconds]
laduke has joined #nixos
Pesk has joined #nixos
<thibm> (glib.overrideAttrs (_: { outputs = [ "out" ]; })).outputs => [ "out" "debug" ]. (Needed to add separateDebugInfo = false to get only 1 output)
<thibm> Sometimes I sell Nix to friends. Sometimes I wonder how the hell they could even use it…
johnjay has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #84569 → python37Packages.xdis: 4.2.3 -> 4.2.4 → https://git.io/JvA4I
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvAgU
rauno has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84583 → qalculate-gtk: 3.8.0 -> 3.8.0a → https://git.io/JvAgZ
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @primeos pushed to master « chromiumBeta: Fix the build »: https://git.io/JvAgV
chagra has joined #nixos
<{^_^}> [nixpkgs] @primeos merged pull request #83792 → gollum: 4.1.4 -> 5.0.1 → https://git.io/Jv7Qd
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/JvAgA
<bqv[m]> could someone explain the difference between disnix and disnixOS to me? i'm slightly lost on it
aveltras has joined #nixos
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<{^_^}> [nixpkgs] @primeos merged pull request #84134 → iproute: 5.5.0 -> 5.6.0 → https://git.io/JvFzO
<{^_^}> [nixpkgs] @primeos pushed 2 commits to staging: https://git.io/JvA2m
pbb has joined #nixos
wavirc22_ has joined #nixos
<{^_^}> [nixpkgs] @andir opened pull request #84584 → firefox: 74.0.1 -> 75.0 and related updates → https://git.io/JvA2u
chagra has quit [Ping timeout: 264 seconds]
wavirc22 has quit [Ping timeout: 256 seconds]
yvan has quit [Quit: WeeChat 2.7.1]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84585 → python27Packages.yamllint: 1.20.0 -> 1.21.0 → https://git.io/JvA29
chagra has joined #nixos
Guest41574 has joined #nixos
arjen-jonathan has quit [Ping timeout: 260 seconds]
arjen-jonathan has joined #nixos
ATuin has quit [Ping timeout: 265 seconds]
wavirc22_ has quit [Ping timeout: 265 seconds]
wavirc22 has joined #nixos
cyris212 has quit [Quit: ZNC 1.7.4 - https://znc.in]
noudle has quit []
cyris212 has joined #nixos
morgrimm has joined #nixos
gulplante has joined #nixos
psy3497_ has quit [Quit: WeeChat 2.3]
gulplante has quit [Client Quit]
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #84587 → ppsspp: 1.9.3 -> 1.9.4 → https://git.io/JvAVF
cfricke has quit [Quit: WeeChat 2.7.1]
wavirc22 has quit [Ping timeout: 256 seconds]
jasom has quit [Ping timeout: 265 seconds]
lsix1 has joined #nixos
jasom has joined #nixos
cybrian has joined #nixos
LysergicDreams has quit [Ping timeout: 264 seconds]
morgrimm has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #84588 → robotfindskitten: 2.7182818.701 -> 2.8284271.702 → https://git.io/JvAwg
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/JvAw2
rauno has quit [Remote host closed the connection]
cybrian has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84589 → python27Packages.simplekml: 1.3.3 -> 1.3.5 → https://git.io/JvAwo
LysergicDreams has joined #nixos
leotaku has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @andir opened pull request #84590 → [19.09] firefox: 74.0.1 -> 75.0 → https://git.io/JvAwH
<{^_^}> [nixpkgs] @flokli merged pull request #84384 → k3s: remove extra buildInputs → https://git.io/JvNEA
<{^_^}> [nixpkgs] @flokli pushed 3 commits to master: https://git.io/JvAwN
<{^_^}> [nix] @edolstra pushed 18 commits to master: https://git.io/JvArT
<{^_^}> [nix] @edolstra merged pull request #3166 → Add fetchSubmodules to builtins.fetchGit → https://git.io/JeETI
<{^_^}> [nixpkgs] @andir opened pull request #84591 → [20.03] firefox: 74.0.1 -> 75.0 and releated updates → https://git.io/JvArI
snicket has quit [Ping timeout: 240 seconds]
morgrimm has joined #nixos
shafox has joined #nixos
leotaku has joined #nixos
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to release-20.03: https://git.io/JvArZ
trem_ has quit [Remote host closed the connection]
KeiraT has quit [Remote host closed the connection]
KeiraT has joined #nixos
morgrimm has quit [Ping timeout: 240 seconds]
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84592 → qmidinet: 0.6.1 -> 0.6.2 → https://git.io/JvArl
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84593 → python27Packages.stripe: 2.43.0 -> 2.44.0 → https://git.io/JvArE
<{^_^}> [hydra] @Ma27 opened pull request #732 → Fix build against latest Nix → https://git.io/JvAra
<{^_^}> [nixpkgs] @zowoq opened pull request #84594 → shfmt: 3.0.2 -> 3.1.0 → https://git.io/JvArw
reallymemorable has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed to zfs « zfs: fix build against 5.6 »: https://git.io/JvArP
<{^_^}> [nixpkgs] @Mic92 opened pull request #84595 → zfs: fix build against 5.6 → https://git.io/JvArX
bqv has quit [Ping timeout: 272 seconds]
zeenk has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @Mic92 opened pull request #84596 → sysdig: fix linux 5.6 build → https://git.io/JvAr9
<{^_^}> [nixpkgs] @Mic92 pushed to sysdig « sysdig: fix linux 5.6 build »: https://git.io/JvArH
<{^_^}> [nixpkgs] @bjornfor merged pull request #84580 → qmmp: 1.3.6 -> 1.3.7 → https://git.io/JvA0U
<{^_^}> [nixpkgs] @bjornfor pushed commit from @r-ryantm to master « qmmp: 1.3.6 -> 1.3.7 »: https://git.io/JvAr5
<{^_^}> [nixpkgs] @Mic92 pushed to acpi-call « linuxPackages.acpi-call: switch to nix-community fork »: https://git.io/JvArN
<{^_^}> [nixpkgs] @Mic92 opened pull request #84597 → linuxPackages.acpi-call: switch to nix-community fork → https://git.io/JvArA
<betaboon_> when using lorri. is there a way to remove the need to to hit return once to get changes applied ?
bqv has joined #nixos
<bqv[m]> what shell are you using?
<betaboon_> zsh
betaboon_ is now known as betaboon
<bqv[m]> oh, then it's a maybe
<bqv[m]> if you said bash, it would have been a resounding no, if you said fish, it would have been a probably
<bqv[m]> the issue is that most shells are basically REPLs
<bqv[m]> modern ones have more bells and whistles, but that's still essentially the mechanism
<bqv[m]> so async stuff is a challenge
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84598 → python27Packages.virtualenv-clone: 0.5.3 -> 0.5.4 → https://git.io/JvAoI
<bqv[m]> you could modify the direnv hooks to run before evaluation, as well as after
<bqv[m]> that would get essentially the same effect
<betaboon> thanks for the information. i guess i will live with it for the time being XD
morgrimm has joined #nixos
LysergicDreams has quit [Ping timeout: 256 seconds]
LysergicDreams has joined #nixos
<exarkun> There's no reason that later overlays would fail to use packages defined by earlier overlays, if I'm doing things right, yea?
<{^_^}> [nixpkgs] @AndersonTorres merged pull request #84588 → robotfindskitten: 2.7182818.701 -> 2.8284271.702 → https://git.io/JvAwg
<{^_^}> [nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/JvAou
<bqv[m]> exarkun: 👍️
<exarkun> wonder what I'm doing wrong, then.
<gchristensen> given your overlay starts with: final: super: ... are you getting packages from final or super?
<bqv[m]> have you ordered the overlays in the right direction?
<exarkun> I probably need to create a smaller example to be able to answer those questions... I can't hold all of these pieces in my head at once.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has quit [Ping timeout: 256 seconds]
<yorick> adisbladis: I'm trying to poetry2nix, but some thing it generates doesn't find setuptools_scm_git_archive
turion has joined #nixos
<yorick> is that a known thing?
<{^_^}> [nixpkgs] @doronbehar opened pull request #84599 → nodejs: use python3 if possible → https://git.io/JvAoy
<gchristensen> yorick: adisbladis is afk at the moment, probably should open an issue / direct your question to other people :)
<yorick> okay :)
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<gchristensen> moment -> few days
troydm has joined #nixos
<{^_^}> [nix] @edolstra pushed 33 commits to flakes: https://git.io/JvAop
<Hi-Angel> I'd like to have a concentration to live in the moment for a few days.
cosimone has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
teto has joined #nixos
never_released has quit [Max SendQ exceeded]
<{^_^}> [nixpkgs] @rnhmjoj closed pull request #83171 → nixos/users: validate password hashes → https://git.io/JvD7T
<{^_^}> [nixpkgs] @rnhmjoj closed pull request #81013 → nixosTests.networking: disable virtual test with networkd → https://git.io/JvEbO
aswanson has joined #nixos
zupo has joined #nixos
never_released has joined #nixos
<exarkun> I _guess_ my overlays were in the wrong order. While trying to minimize I reversed the order and the build succeeded...
<{^_^}> [nixpkgs] @rnhmjoj reopened pull request #83321 → python: propagate makeWrapper arguments → https://git.io/JvStU
<exarkun> But _earlier_ overlays _do_ see changes from layer overlays - if they use `final` and not `super`, right?
<gchristensen> yep. my rule of thum is always use final instead of super, unless I get a recursion error, and then switch to super
<{^_^}> [nixpkgs] @rnhmjoj reopened pull request #81013 → nixosTests.networking: disable virtual test with networkd → https://git.io/JvEbO
<exarkun> because final is the fixed point the results from everything being smooshed together
reallymemorable has joined #nixos
<gchristensen> yep
<{^_^}> [nixpkgs] @rnhmjoj reopened pull request #83171 → nixos/users: validate password hashes → https://git.io/JvD7T
aveltras has quit [Quit: Connection closed for inactivity]
<exarkun> okay, I guess maybe I understand. I guess I thought maybe I understood before, too. I don't really remember what I was thinking when I decided to put these overlays in the old, broken order instead of the new, working order. Maybe I didn't think about it at all since apparently it worked either way before and only some other change recently made elsewhere made it necessary to get the order right...
<{^_^}> [nixpkgs] @invokesus opened pull request #84600 → perlPackages.FileMap and dep → https://git.io/JvAKz
<exarkun> I do remember why some of this code uses super instead of final, though, and I even left copious comments explaining it
<{^_^}> [nix] @Ninlives opened pull request #3477 → `nix run` using $SHELL as default command → https://git.io/JvAKw
<gchristensen> in my example, self and super are replaced with final and super
<{^_^}> [nixpkgs] @peterhoeg merged pull request #80003 → elisa: move into kdeApplications → https://git.io/JvWog
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/JvAKH
cfricke has joined #nixos
<{^_^}> [nixpkgs] @maxeaubrey opened pull request #84601 → vault: disable_mlock option, setcap wrapper → https://git.io/JvAK5
xO1 has quit [Ping timeout: 256 seconds]
gustavderdrache has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg closed pull request #84360 → elisa: 19.12.3 -> 20.03.90 → https://git.io/JvNcN
<thibm> Is it recommended to use mkEnableOption or mkOption for new services? I remember some discussion about reducing number of functions to help newcommers read files
<thibm> s/services/modules
<bqv[m]> i would use mkEnableOption. the former can be converted th the latter easily en-masse. the reverse is far less trivial
mauli has quit [Ping timeout: 260 seconds]
<thibm> True. Was wondering if any compromise was found. If not, you're right. Thanks
vika_nezrimaya has joined #nixos
jakobrs has joined #nixos
<jakobrs> How does the live usb image get an IP address if it's not running dhcpcd?
<{^_^}> [nixpkgs] @peterhoeg closed pull request #83435 → plasma-5,kde,kde-frameworks: update → https://git.io/Jv9wZ
xO1 has joined #nixos
<morgrimm> Quick question folks - is there a best practice for what phase stuff should occur? For example, installing binaries in $out I assume in the postInstall phase, etc.
<morgrimm> Right now I'm moving my binaries in the build phase, which I assume probably isn't great
<evils> if nothing else is installing stuff, i think installPhase is the right place to do that
<thibm> morgrimm: postInstall or installPhase?
<thibm> ``Phases'' in nixpkgs' manual explains each phase role. But you could do what you want. As you said, they are best practices
<morgrimm> I see some derivations moving completions in the postInstall, or flat out moving binaries in postInstall
<morgrimm> My package source doesn't need to be built, just pulled and installed, so...
<teto> morgrimm: in which case you can also use a plain `runCommmand`
chagra has quit [Quit: WeeChat 2.7.1]
<Orbstheorem> morgrimm: if your package is just copying stuff you may want to consider copyToNixStore
<Orbstheorem> Or plain runCommand as teto mentioned ^^
<morgrimm> copyToNixStore? that's one I haven't run into yet
<Orbstheorem> > copyToNixStore
<{^_^}> undefined variable 'copyToNixStore' at (string):296:1
<thibm> If you don't need build, you can skip buildPhase by setting dontBuild = true, and keep unpackPhase+installPhase (+ others)
<Orbstheorem> > copyToStore
<{^_^}> undefined variable 'copyToStore' at (string):296:1
* Orbstheorem is pretty certain something of the sort exists x)
<thibm> Yes but I always forget its name
<Orbstheorem> > copyPathToStore
<{^_^}> <PRIMOP-APP>
<Orbstheorem> Yay \o/
chagra has joined #nixos
<{^_^}> [nixpkgs] @alyssais opened pull request #84602 → nixos/ssh: don't accept ssh-dss keys → https://git.io/JvA6G
<thibm> because it's usually useless. ${./path/to/files} works
<morgrimm> I'm also fetching the src from GitHub, so I don't know if copyToStore would work
<morgrimm> copyPathToStore*
<morgrimm> runCommand likely would though
<thibm> you can also just use fetchFromGitHub
<thibm> This will put the files in the store
<morgrimm> That's what I'm using now, yeah
<thibm> no need for src = fetchFromGitHub {} + cp $src $out
<thibm> OK, perfect
<morgrimm> My derivation is just fetching from GH, and then I'm using postInstall to wrap the main executable script
<morgrimm> and put it in $out;bin
<morgrimm> $out/bin*
mauli has joined #nixos
<morgrimm> because I don't really need any of the other stuff it comes with. I'm trying to decide how best to actually structure this. The way it is now, $src won't get gcd
<morgrimm> Because the lib dir it needs to run needs to exist somewhere - I wonder if I'd be better served putting it explicitly in $out as well
jakobrs has quit [Quit: WeeChat 2.7.1]
<morgrimm> instead of leaving it in the store
dermetfan has quit [Ping timeout: 272 seconds]
iyzsong- has quit [Read error: Connection reset by peer]
<Orbstheorem> When you cp stuff inside the nix store, is there anything deduplicating content using hardlinks?
amosbird_ is now known as amosbird
<bdju> how do I see the list of generations that grub shows me but from my booted environment?
<bdju> I want to see the kernel versions mainly
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #84603 → gp2c: 0.0.11pl2 -> 0.0.11pl3 → https://git.io/JvA62
<morgrimm> Orbstheorum: Not explicitly, no. I'm just fetching from GH, then running a postInstall to install shell completions and a wrapped binary into $out
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #84604 → tilda: 1.4.1 -> 1.5.0 → https://git.io/JvA6V
<ottidmes> bdju: easier to just check /boot/grub/kernels
<bdju> okay I guess I did say grub but I'm thinking now that I'm not actually using grub, rather systemd-boot or something
<Orbstheorem> morgrimm: I didn't mean in your specific case, I meant in general ^^
<DamienCassou> I've tried to install Slack on NixOS. But when clicking on the login button, Emacs is opened instead of Firefox. It's apparently related to KDE's KIO but I don't know how to configure that
<thibm> Orbstheorem: yes and no, see `nix-store --optimise' or Nix `auto-optimise-store' option
<Orbstheorem> thibm: Thank you
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/2e5672920ed (from 24 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
LysergicDreams has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #84605 → tcsh: 6.21.00 -> 6.22.02 → https://git.io/JvA6N
<est31> bdju: for me it's inside ls /boot/EFI/nixos/
<est31> also see files in /boot/loader/entries/
<bdju> est31: thank you! that does show what I w anted
<bdju> I've been bounching between "latest" and 4.19 kernels because new stuff is very broken and I wanted to see what the version of the newer kernel was
LysergicDreams has joined #nixos
<bdju> 5.5.13 was what I last used it seems
<bdju> my dock kept disconnecting for several seconds causing sound and inputs issues. it was pretty maddening
<ottidmes> bdju: one way to see them regardless of boot loader would be to check /nix/var/nix/profiles any system-*-link in there has /kernel pointing to their version of the kernel used
hlavaty has joined #nixos
<bdju> ottidmes: thanks, that seems to sort of work, but it's hard to check the kernel for multiple gens at once as far as I can tell. you have to get down to a specific one with your ls -l to see the kernel
<ij> is it possible to evaluate the full set of config attributes for a nixos config definition?
<ottidmes> bdju: just because I could: find -L /nix/var/nix/profiles -maxdepth 2 -path '*/system-*-link/kernel' -exec realpath {} + | uniq | cut -d- -f3- | cut -d/ -f1
<bqv[m]> finally realised the reason my gpg-agent has been broken for weeks is that i have it enabled with nixos AND home-manager
<ottidmes> ij: what's the use case?
<ij> ottidmes, I'm modifying the nixos live iso creation config to suit my needs and I've imported something that changes autoLogin
<ottidmes> ij: is nixos-option not nicely suited for that?
<ij> I should be auto-logged in as with my default config, but I suspect some import is changing that. If I knew what the output is, I could go through the nixpkgs/nixos sources and find what.
<ij> I haven't used it – I'll go see what it does.
<ij> it's probably the right tool
LysergicDreams has quit [Ping timeout: 260 seconds]
bqv has quit [Quit: WeeChat 2.7.1]
LysergicDreams has joined #nixos
<ij> the examples from the manual aren't working :(
<ij> probably my fault though
<{^_^}> [nixpkgs] @lsix opened pull request #84606 → nano: 4.9.1 -> 4.9.2 → https://git.io/JvAia
mauli has quit [Ping timeout: 256 seconds]
<morgrimm> What's the proper way to specify a GH src as the src for a derivation? I'm specifying it as part of the attrset, but I think I'm doing it wrong
<morgrimm> Since I expect it to unpack that src into the workdir for the phases
<morgrimm> But I can only refer to it using $src, so it's definitely not doing what I think it is
<morgrimm> I guess it's putting that into a separate store path, and then just running the builder in another
zeenk has joined #nixos
<bdju> ottidmes: Wow, that is neat. Thank you for that. Maybe I'll save it as an alias.
<ottidmes> morgrimm: it should put it in /nix/store and then unpack it to the build directory, if you want to know what youre doing wrong, share your derivation with a paste
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ij> nixos-switch switch works, but nixos-option boot.loader doesn't :( error: syntax error, unexpected ',', expecting $end
Soo_Slow has joined #nixos
<morgrimm> ottidmes: Sorry, yeah - better idea. https://pastebin.com/e1zWkNke
chr0n1c has joined #nixos
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #84607 → libtap: 1.12.0 -> 1.14.0 → https://git.io/JvAPe
<morgrimm> This is what I'm doing, and it works, I feel like it's not the correct way to go about it though
<morgrimm> (the original non-runCommand version is commented below it)
<ottidmes> morgrimm: you should be using mkDervation for this rather than runCommand
<ottidmes> morgrimm: why the switch?
lordcirth has joined #nixos
<morgrimm> I'm not 100% sure - I just felt that if I had to specify that mkDerivation wasn't supposed to build, I wasn't using it correctly?
<morgrimm> Like, it boils down to just wrapping a bin and installing completions
<morgrimm> But even using mkDerivation, I expected fetching the src to unpack the repo into the working dir for the phases it's supposed to
<morgrimm> everything post unpack
<morgrimm> But fetching is creating its own store path (expected), and I'm referring to it manually
<{^_^}> [nixpkgs] @Ma27 opened pull request #84608 → nixos/systemd-nspawn: reload or restart machines on config change → https://git.io/JvAPm
<{^_^}> [nixpkgs] @invokesus opened pull request #84609 → perlPackages.ExtUtilsF77: init at 1.23 → https://git.io/JvAPO
<DamienCassou> I'm very impressed by the number of packages in NixOS. Everything I want is already there
<DamienCassou> and version numbers are up-to-date
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<ottidmes> morgrimm: I am fixing it for you
<{^_^}> [nixpkgs] @doronbehar opened pull request #84610 → notmuch: set emacs off by default → https://git.io/JvAP0
LysergicDreams has quit [Ping timeout: 258 seconds]
leotaku has quit [Ping timeout: 260 seconds]
LysergicDreams has joined #nixos
waleee-cl has joined #nixos
linarcx has joined #nixos
lsix1 has quit [Ping timeout: 246 seconds]
rogue_koder has joined #nixos
leotaku has joined #nixos
<morgrimm> ottidmes: The problem with copying parts directly into $out is it relies on the structure in its repo (afaik), and blindly copying files into $out will end up polluting ~/.nix-profile if it's installed in the env
ayuce has joined #nixos
_e has quit [Quit: WeeChat 2.7.1]
logzet has joined #nixos
linarcx has quit [Read error: Connection reset by peer]
johnjay has quit [Ping timeout: 256 seconds]
<chr0n1c> You are invited to take part in an important scientific lecture and chat with Dr Gamme Martin @ irc.butt.es #GAMME
zupo has joined #nixos
Izorkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
dermetfan has joined #nixos
<ottidmes> morgrimm: you are right to a degree, but that is easily fixed
Izorkin has joined #nixos
<ldlework> When I install pokerth-client and start it I get: qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
Izorkin has quit [Client Quit]
plato[m] has joined #nixos
mauli has joined #nixos
Izorkin has joined #nixos
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #84611 → stella: 4.1.1 -> 6.1.1 → https://git.io/JvAX1
<plato[m]> A haskell package needs the pkg-config files of the "brotli" package. They seem to be in the "dev" output of the package. How do I tell the hackage derivation that?
<morgrimm> ottidmes: How so? Also, as an aside - what did you change to have it correctly unpack into the working directory?
<ottidmes> morgrimm: nothing at all, it does so automatically for stdenv.mkDerivation
revtintin has quit [Ping timeout: 240 seconds]
<ottidmes> morgrimm: give me a moment, almost done fixing it
revtintin has joined #nixos
<b42> ldlework: it probably needs to be modified like this: https://github.com/NixOS/nixpkgs/pull/76433/files
plato[m] has left #nixos ["User left"]
noudle has joined #nixos
revtintin has quit [Ping timeout: 256 seconds]
plutes has quit [Ping timeout: 260 seconds]
lordcirth has quit [Remote host closed the connection]
lordcirth has joined #nixos
fenedor has joined #nixos
mauli has quit [Ping timeout: 265 seconds]
linarcx has joined #nixos
<ldlework> b42: will you submit a pr for it?
fendor has quit [Ping timeout: 264 seconds]
johnjay has joined #nixos
justanotheruser has quit [Ping timeout: 265 seconds]
<thibm> Is there anything special about putting glibc in a derivation dependency?
<thibm> I need to add `-I${glib.dev}/include/glib-2.0 -I${glib.out}/lib/glib-2.0/include' for the file to compile, otherwise it does not find headers. Is this normal? (Maybe the source file is just broken)
turion has quit [Quit: Leaving.]
<{^_^}> [nixpkgs] @mmilata opened pull request #84612 → pokerth: use mkDerivation from Qt → https://git.io/JvA16
captjakk has joined #nixos
<{^_^}> [nixpkgs] @hax404 opened pull request #84613 → [WIP] sky: 2.1.7369 -> 2.1.7520 → https://git.io/JvA1X
revtintin has joined #nixos
<thibm> Oh, and the given source file is in the vips package (vips-8.9.1-dev/include/vips/vips.h). vips is the actual dependency of my package
<b42> ldlework: need ... them ... github ... squares ... hereyougo: https://github.com/NixOS/nixpkgs/pull/84612
<{^_^}> #84612 (by mmilata, 50 seconds ago, open): pokerth: use mkDerivation from Qt
mauli has joined #nixos
<ldlework> b42: you fricken champ
copy` has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
<thibm> To sum up: mypackage -> vips -> glib (which is in vips' propagatedBuildInputs. But building mypackage leads to error: `glib.h: No such file or directory' in vips-8.9.1-dev/include/vips/vips.h
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/4291ef9bb67 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
contrun[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
mauli has quit [Ping timeout: 264 seconds]
Victor[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
justanotheruser has joined #nixos
codyopel has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
<morgrimm> ottidmes: That works! That's not an approach I thought of
<thibm> Nevermind, adding the flags through pkg-config do the trick (pkg-config --cflags -- glib-2.0). $NIX_CFLAGS_COMPILE is not sufficient here. Sorry for the noise
gnxlxnxx[m] has quit [Quit: Idle for 30+ days]
<{^_^}> #29624 (by purefn, 2 years ago, open): HAProxy and Lua integration not working quite right
<{^_^}> [nixpkgs] @mikesperber opened pull request #84614 → bazel_0_26: Unbreak build on Darwin → https://git.io/JvAMM
<morgrimm> As an aside, what's the easiest way to inherit nixpkgs for a default function in the cli?
<morgrimm> Like if I'm testing with a build that doesn't import nixpkgs, but I want to avoid passing a bunch of duplicate args when I build it
<morgrimm> Is there a quick way to do that?
<ottidmes> ah, you mean, when you only have a file like I gisted and want to build that without extra code?
cybrian has joined #nixos
<bqv[m]> is there something wrong with just `with import <nixpkgs> {}; `
rogue_koder has quit [Ping timeout: 265 seconds]
<ottidmes> I use: nix-build --expr 'with import <nixpkgs> { }; callPackage ./default.nix { }'
<morgrimm> No, that's how I'm getting around it, but I'm putting that in the derivation - I'd rather use that in the cli if I can
<morgrimm> ottidmes: That's exactly what I was looking for, yeah. Thank you :D
edomfjp[m] has quit [Quit: Idle for 30+ days]
<bqv[m]> that's what i meant lol..
<bqv[m]> ok
<bqv[m]> guess that's my fault for not being specific enough
<ottidmes> I actually have it as part of a nicer shell function so I can pass it any file and any arguments
Hi-Angel has quit [Remote host closed the connection]
<ottidmes> bqv[m]: well, just going with what you showed, is what many do to workaround it, which I agree with morgrimm, I do not like, the file should not be modified
ecou[m] has quit [Quit: Idle for 30+ days]
maljub01[m] has quit [Quit: Idle for 30+ days]
grahamc[m] has quit [Quit: Idle for 30+ days]
aquarial has quit [Quit: Idle for 30+ days]
RainDroppz[m] has quit [Quit: Idle for 30+ days]
ZamaneKz[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
VaNilLa[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
seb314[m] has quit [Quit: Idle for 30+ days]
sleibrock[m] has quit [Quit: Idle for 30+ days]
hyper_ch has quit [Quit: ZNC 1.7.5 - https://znc.in]
<bqv[m]> yeah but i meant it as part of the command line invocation
<bqv[m]> don't mind me i'm just salty cause my ISP is being a ****
<ottidmes> were you the one with Orange problems?
rogue_koder has joined #nixos
<bqv[m]> no i'm the one that's been dropping packets all day thanks to Sky
mauli has joined #nixos
<ottidmes> hopefully its a one time thing (or uncommon), so far the only problems I've had with my ISP were it breaking due to maintanance or some infrastructure problem, or things that were simply fixed by restarting the router
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
hax404_ is now known as hax404
<bqv[m]> just as i get the super speed boost of switching from tinc to wireguard as well
cybrian has quit [Ping timeout: 264 seconds]
wildtrees has joined #nixos
mauli has quit [Quit: WeeChat 2.7.1]
rogue_koder has quit [Ping timeout: 240 seconds]
rogue_koder has joined #nixos
erasmas has joined #nixos
LysergicDreams has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @teto opened pull request #84615 → vimPlugins.vim-dasht: init at 2019-09-29 → https://git.io/JvAyU
noudle has quit []
chloekek has quit [Quit: WeeChat 2.7]
LysergicDreams has joined #nixos
Guest41574 has quit [Remote host closed the connection]
revtintin has quit [Ping timeout: 265 seconds]
wildtrees has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84616 → rspamd: 2.4 -> 2.5 → https://git.io/JvAyZ
wildtrees has joined #nixos
rogue_koder has quit [Remote host closed the connection]
rogue_koder has joined #nixos
kloenk has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
anirrudh has joined #nixos
<jared-w> libvirt is so much nicer than virtualbox
<jared-w> so fast too. Like damn
cfricke has quit [Quit: WeeChat 2.7.1]
<bqv[m]> really?
linarcx has quit [Quit: WeeChat 2.8]
rogue_koder has quit [Remote host closed the connection]
<bqv[m]> they both use the same hardware extensions
hyper_ch has joined #nixos
rogue_koder has joined #nixos
linarcx has joined #nixos
wildtrees has quit [Remote host closed the connection]
anirrudh has quit [Ping timeout: 258 seconds]
hyper_ch has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @xfix opened pull request #84617 → rasm: remove -march=native from compilation flags → https://git.io/JvAy6
<{^_^}> [nixpkgs] @ch1bo opened pull request #84618 → zsh-autoenv: fix zsh-autoenv-share description → https://git.io/JvAyP
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
srid has joined #nixos
hyper_ch has joined #nixos
<{^_^}> [nixpkgs] @teto opened pull request #84619 → gitAndTools.gitbatch: init at 2019-12-19 → https://git.io/JvAy9
<srid> My default.nix requires .git to be present. Is there an alternative CLI where the derivation would be built *with* the .git directory? I'm not sure if `builtins.fetchgit` can be used in CLI?
<{^_^}> error: syntax error, unexpected IF, at (string):296:10
<{^_^}> [nixpkgs] @cleverca22 opened pull request #84620 → nixos: kafka test: fix building for other arches → https://git.io/JvAyF
<ottidmes> srid: if you check the manpage of nix-env it supports -E/--expr, so you could just use that
zaeph has quit [Ping timeout: 256 seconds]
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
plutes has joined #nixos
revtintin has joined #nixos
<srid> great
FRidh2 has joined #nixos
FRidh has quit [Ping timeout: 265 seconds]
<clever> srid: pkgs.fetchgit has a keepDotGit = true; option
pbogdan has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Soo_Slow has quit [Quit: Soo_Slow]
<{^_^}> [nixpkgs] @petabyteboy opened pull request #84621 → grantlee: 5.1.0 -> 5.2.0 → https://git.io/JvASU
<srid> clever: I was going to ask that! keepDotGit is missing from bulitins.fetchGit.
<{^_^}> #84300 (by bqv, 2 days ago, open): lib: add shortcut for fake SRI hash
pbogdan has joined #nixos
<clever> bqv[m]: seems a bit odd to be adding it into deprecated?
<{^_^}> [nixpkgs] @petabyteboy opened pull request #84622 → kdeFrameworks: 5.66 -> 5.68 → https://git.io/JvASO
hyper_ch has quit [Quit: ZNC 1.7.5 - https://znc.in]
<bqv[m]> that's what i thought
<bqv[m]> nobody told me that though
<bqv[m]> or where it should be
anirrudh has joined #nixos
pbogdan has quit [Remote host closed the connection]
revtintin has quit [Ping timeout: 264 seconds]
<srid> Is this the source for builtins.fetchGit? Or is it a different function? https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/fetchgit/default.nix
<clever> srid: thats pkgs.fetchgit
<clever> srid: the builtins are in the nix repo, not nixpkgs
pbogdan has joined #nixos
<srid> Unfortunately pkgs.fetchgit seems to require md5 hash
<clever> srid: or a sha256
<srid> Yea, and users won't bother to compute it when installing software from master branch.
<clever> srid: why exactly do you need the .git?
<bqv[m]> im gonna assume that pr is just doomed to get stale then
<srid> clever: To print the git rev in `myapp --version`. cf. https://github.com/srid/neuron/blob/master/default.nix#L14-L19
<srid> (you can see how the git rev appears in the footer of https://neuron.srid.ca/ )
<clever> srid: patch/edit it to take a revision as a nix variable instead
<clever> srid: builtins.fetchGit returns an attrset, and the git rev is part of it
<{^_^}> [nixpkgs] @bhipple merged pull request #84414 → tmuxPlugins: upgrade all to latest → https://git.io/JvN6c
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to master: https://git.io/JvAS4
<{^_^}> [nixpkgs] @timokau merged pull request #81919 → cached-nix-shell: init at 0.1.2 → https://git.io/JvwK7
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/JvAS0
<srid> clever: thanks, i'll play with it in nix-repl.
johnnyfive has joined #nixos
<{^_^}> [nixpkgs] @bhipple opened pull request #84623 → [20.03] tmuxPlugins: upgrade all to latest → https://git.io/JvASg
johnny5 has quit [Ping timeout: 260 seconds]
hyper_ch has joined #nixos
<bqv[m]> clever: looks like the other two https://github.com/NixOS/nixpkgs/commit/68a6b47b8cdbcef4cab3a1f5fae7667a792c27eb were added there too.
<bqv[m]> Mic92: since you merged the above, can you look at this too? https://github.com/NixOS/nixpkgs/pull/84300
<{^_^}> #84300 (by bqv, 2 days ago, open): lib: add shortcut for fake SRI hash
<clever> bqv[m]: i'm guessing they mean deprecated, in terms of you should edit the code to not use it (immediately after you find the right hash)
<bqv[m]> that's exactly the use case i'd like it for
<{^_^}> [nixpkgs] @Mic92 merged pull request #84300 → lib: add shortcut for fake SRI hash → https://git.io/Jvbp0
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JvAS9
<bqv[m]> thanks mic
cosimone has quit [Quit: Terminated!]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84624 → smbnetfs: 0.6.1 -> 0.6.2 → https://git.io/JvAS5
reallymemorable has quit [Quit: reallymemorable]
ddellacosta has joined #nixos
zupo has joined #nixos
cosimone has joined #nixos
oranginal has joined #nixos
hyper_ch has quit [Quit: ZNC 1.7.5 - https://znc.in]
OrangeTetra has joined #nixos
oranginal has quit [Ping timeout: 250 seconds]
linarcx has quit [Read error: Connection reset by peer]
johnny101m has joined #nixos
linarcx has joined #nixos
FRidh2 has quit [Remote host closed the connection]
hyper_ch has joined #nixos
nuncanada has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84626 → seafile-client: 7.0.5 -> 7.0.7 → https://git.io/JvA9D
johnny101m2 has quit [Ping timeout: 265 seconds]
linarcx has quit [Quit: WeeChat 2.8]
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/JvA9F
<{^_^}> [nixpkgs] @grahamc merged pull request #84620 → nixos: kafka test: fix building for other arches → https://git.io/JvAyF
hyper_ch has quit [Client Quit]
linarcx has joined #nixos
pbogdan has quit [Remote host closed the connection]
snicket has joined #nixos
noudle has joined #nixos
pbogdan has joined #nixos
hyper_ch has joined #nixos
<bsima> what is the nix equivalent of "python3-dev" on other systems?
<clever> bsima: `nix-shell -p python3`
<jjwatt[m]> bsima: If you mean a package built from git HEAD there isn't one, but you can customize one. pythonPackages38 is in there, too, which is pretty dang new!
<bsima> oh it comes with the headers already?
<jjwatt[m]> ohh you mean `-dev` for the development libs
<bsima> ya
<jjwatt[m]> Yep, what clever said
linarcx has quit [Client Quit]
reallymemorable has joined #nixos
<bsima> ok thank you
linarcx has joined #nixos
growpotkin has joined #nixos
lsix has quit [Quit: WeeChat 2.7.1]
linarcx has quit [Client Quit]
<vika_nezrimaya> So, what's the state of nixpart? Doesn't look like nixpkgs has support for it. It is in a PR that is only accessible via API and gives HTTP 500 on attempt to read it in the browser
<vika_nezrimaya> And I'm really interested in it since I've got a use-case where NixOS starts to really shine
linarcx has joined #nixos
<vika_nezrimaya> fully stateless laptop that could be wiped and reimaged at any time
linarcx has quit [Client Quit]
<jjwatt[m]> `python3` so like `nix-shell -p python3 gcc zlib somecoollib gnumake`, etc. just off the top of my head and warning: I'm new to this too
<jjwatt[m]> bsima: but if you're going to build something, you'll need to do it in the shell and likely make your own shell with any extra needed C stuff. When packages are built, you specify which dependencies they need, it's possible that just `python3` wouldn't have everything you needed, but you can probably also get around that without writing a nix file by passing the packages you want in the shell to `nix-shell -p` along with
<vika_nezrimaya> If you're going through a border or caught by the police, you just delete all the data, then insert a flash drive that provisions your system back
<clever> vika_nezrimaya: i think gchristensen has a setup, where it will use `zfs rollback` to revert / back to empty on every boot
<clever> vika_nezrimaya: so only /nix can persist data
linarcx has joined #nixos
<vika_nezrimaya> and /etc/nixos?
<vika_nezrimaya> and /home
<{^_^}> [nixpkgs] @ch1bo opened pull request #84627 → zsh-syntax-highlighting: add -share script → https://git.io/JvAHB
<clever> vika_nezrimaya: i think /home is its own dataset, so it isnt lost
linarcx has quit [Client Quit]
<vika_nezrimaya> ok
<vika_nezrimaya> my use-case is provisioning a PC from scratch though
<vika_nezrimaya> and Nixpart could really help!
linarcx has joined #nixos
<clever> vika_nezrimaya: justdoit can do basically the same thing
<vika_nezrimaya> what is this
<clever> just with less customization options
linarcx has quit [Client Quit]
<clever> vika_nezrimaya: basically, you make an install media with justdoit included, boot it on something, type justdoit into the shell, and it does it
linarcx has joined #nixos
<vika_nezrimaya> ok, great, prior art is always great! :3
morgrimm has quit [Ping timeout: 256 seconds]
<vika_nezrimaya> I'm looking for a more customizable approach
<jjwatt[m]> I noticed some neat settings in configuration.nix that could probably help with something like that the other day, too: to automatically grow partitions
NieDzejkob has quit [Ping timeout: 264 seconds]
<bqv[m]> what in the world...
<vika_nezrimaya> that could, e.g. even maybe detect a Windows install and maneuvre around it (by shrinking Windows partition to a set size and creating a bunch of partitions)
<bqv[m]> is zfs actually more common than btrfs these days?
linarcx has quit [Client Quit]
bqv has joined #nixos
<vika_nezrimaya> bqv: I've heard some people use ZFS in production setups
<vika_nezrimaya> not so much about btrfs
cole-h has joined #nixos
<vika_nezrimaya> is it really better or is it just butter?
<vika_nezrimaya> (pun intended)
<clever> vika_nezrimaya: the nixos mac builders all use darwin in qemu on nixos+zfs
<Yaniel> well you could consider SailfishOS "in production"
<clever> vika_nezrimaya: every time the darwin guest reboots, nixos will do a zfs rollback of it
linarcx has joined #nixos
<Yaniel> and that used btrfs back when it was still cool
<bqv[m]> honestly i've never seen a reason to switch
<vika_nezrimaya> darwin guest?
<Yaniel> and by cool I mean unstable as hell
<clever> vika_nezrimaya: darwin under qemu, on nixos
<bqv[m]> zfs was still in it's diapers when btrfs was going strong
<vika_nezrimaya> You could install MacOS in QEMU? isn't that technically kinda illegal
<vika_nezrimaya> and on ZFS?
<clever> vika_nezrimaya: its only legal if you do it on apple hardware
<vika_nezrimaya> what is this magic, do y'all have a Nix file for this setup?
<clever> vika_nezrimaya: so, nixos, on apple hardware, with a zfs root, and then darwin in qemu, with zfs volumes for the disk image
<vika_nezrimaya> nix-ception
fenedor is now known as fendor
linarcx has quit [Client Quit]
NieDzejkob has joined #nixos
linarcx has joined #nixos
linarcx has quit [Client Quit]
blibberblob has joined #nixos
linarcx has joined #nixos
linarcx has quit [Client Quit]
linarcx has joined #nixos
<evertedsphere> can nix be used on bsds?
linarcx has quit [Client Quit]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84628 → scowl: 2018.04.16 -> 2019.10.06 → https://git.io/JvAHA
linarcx has joined #nixos
linarcx has quit [Client Quit]
zaeph has joined #nixos
nuncanada has quit [Quit: Leaving]
numbskull has quit [Quit: Leaving]
<simpson> evertedsphere: There's ongoing work for FreeBSD, but AFAIK no proper support yet. #freebsd-nix may have more details.
morgrimm has joined #nixos
philr has quit [Ping timeout: 265 seconds]
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @ryantm merged pull request #84553 → python27Packages.pony: 0.7.12 -> 0.7.13 → https://git.io/JvAcA
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JvAQe
<lordcirth> ,tofu-vim
<{^_^}> <esc>52i0<esc>
linarcx has joined #nixos
zupo has joined #nixos
revtintin has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84629 → saga: 7.6.1 -> 7.6.2 → https://git.io/JvAQY
<morgrimm> HELP
<morgrimm> god damnit, forgot my /
niso has joined #nixos
zupo has quit [Client Quit]
hlavaty has quit [Remote host closed the connection]
<gchristensen> :D
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen has joined #nixos
endformationage has joined #nixos
dingenskirchen has quit [Client Quit]
dingenskirchen has joined #nixos
chr0n1c has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @sikmir opened pull request #84630 → josm: 15937 -> 16239 → https://git.io/JvAQg
linarcx has quit [Quit: WeeChat 2.8]
linarcx has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #84503 → python3Packages.monty: fix tests → https://git.io/JvAIR
<{^_^}> [nixpkgs] @jonringer pushed to master « python3Packages.monty: fix tests »: https://git.io/JvAQV
<{^_^}> [nixpkgs] @jonringer merged pull request #84289 → lutris: 0.5.4 -> 0.5.5 → https://git.io/JvbNV
<{^_^}> [nixpkgs] @jonringer pushed to master « lutris: 0.5.4 -> 0.5.5 »: https://git.io/JvAQr
<{^_^}> [nixpkgs] @jonringer merged pull request #84126 → python3Packages.azure-storage: 0.20.3 -> 0.36.0 → https://git.io/JvF8w
<{^_^}> [nixpkgs] @jonringer pushed to master « python3Packages.azure-storage: 0.20.3 -> 0.36.0 »: https://git.io/JvAQo
zebrag has joined #nixos
linarcx has quit [Client Quit]
<niso> how would i run `something = pkgs.nixosTest ./mytest.nix` interactively? reimplement nixosTest to override makeTests driver? or is there a better way?
<gchristensen> LnL: thanks for merging that PR. did it backport to stable?
<{^_^}> [nixpkgs] @AndersonTorres opened pull request #84631 → Update biblesync+sword → https://git.io/JvAQ5
<{^_^}> [nixpkgs] @AndersonTorres closed pull request #84280 → biblesync: 1.1.2 -> 2.0.1 → https://git.io/JvbdE
<LnL> gchristensen: which one?
<{^_^}> [nixpkgs] @jonringer merged pull request #84598 → python27Packages.virtualenv-clone: 0.5.3 -> 0.5.4 → https://git.io/JvAoI
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.virtualenv-clone: 0.5.3 -> 0.5.4 »: https://git.io/JvAQd
<gchristensen> the one preventing nixos-20.03-darwin from happening :)
<LnL> yeah, but it's on staging-20.03
<gchristensen> ah
<gchristensen> should we merge it? :P
omtrent has quit [Quit: WeeChat 2.7.1]
<gchristensen> I guess that is up to worldofpeace
<LnL> not sure who's handling those merges for the release
<worldofpeace> LnL: staging people. But you can do it as long as the eval on hydra is done
<LnL> ~10k
<{^_^}> [nixpkgs] @jonringer opened pull request #84632 → pew: 1.1.2 -> 1.2.0, fix build → https://git.io/JvA7v
ravndal has joined #nixos
<gchristensen> how about we bump the priority :)
<vika_nezrimaya> Looks like nix flake info --json has an additional key "outputs" but it's broken, it doesn't show beyond the first level - e.g. if I have nixosConfigurations.maria it only shows nixosConfigurations: {}
<gchristensen> (woot, 1,000 people in the channel)
<hyper_ch> hmmm, the new ethernet standard 802.3ck is going to be really fast
<worldofpeace> gchristensen: totally
<Yaniel> wow, *exactly* 1000
<{^_^}> [nixpkgs] @jonringer merged pull request #84593 → python27Packages.stripe: 2.43.0 -> 2.44.0 → https://git.io/JvArE
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.stripe: 2.43.0 -> 2.44.0 »: https://git.io/JvA7m
o1lo01ol1o has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #84575 → python27Packages.whisper: 1.1.6 -> 1.1.7 → https://git.io/JvARt
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.whisper: 1.1.6 -> 1.1.7 »: https://git.io/JvA7O
<{^_^}> [nixpkgs] @worldofpeace pushed 12 commits to release-20.03: https://git.io/JvA7G
<hyper_ch> gchristensen: lock the channel. Let nobody in and let notbody escape :)
<{^_^}> [nixpkgs] @jonringer merged pull request #84589 → python27Packages.simplekml: 1.3.3 -> 1.3.5 → https://git.io/JvAwo
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.simplekml: 1.3.3 -> 1.3.5 »: https://git.io/JvA7Z
<gchristensen> lol
<{^_^}> [nixpkgs] @jonringer merged pull request #84582 → python27Packages.spotipy: 2.9.0 -> 2.10.0 → https://git.io/JvAuh
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.spotipy: 2.9.0 -> 2.10.0 »: https://git.io/JvA7C
<{^_^}> [nixpkgs] @worldofpeace pushed 124 commits to staging-20.03: https://git.io/JvA7l
arjen-jonathan has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #84585 → python27Packages.yamllint: 1.20.0 -> 1.21.0 → https://git.io/JvA29
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.yamllint: 1.20.0 -> 1.21.0 »: https://git.io/JvA7g
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84635 → scummvm: 2.1.1 -> 2.1.2 → https://git.io/JvA76
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/dbc8a54ce5c (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @jonringer merged pull request #84561 → python27Packages.txtorcon: 19.1.0 -> 20.0.0 → https://git.io/JvAlo
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.txtorcon: 19.1.0 -> 20.0.0 »: https://git.io/JvA7p
<{^_^}> [nixpkgs] @jonringer merged pull request #84567 → python27Packages.soco: 0.18.1 -> 0.19 → https://git.io/JvA8B
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.soco: 0.18.1 -> 0.19 »: https://git.io/JvA7j
<bqv> nice, got my repo detached from nrdxp's
<bqv> cause at this point it doesn't make sense to treat it as a fork
KeiraT has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @filalex77 opened pull request #84636 → tydra: init at 1.0.2 → https://git.io/JvA5E
linarcx has joined #nixos
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #84527 → python27Packages.graph-tool: 2.30 -> 2.31 → https://git.io/JvAsv
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.graph-tool: 2.30 -> 2.31 »: https://git.io/JvA5H
drakonis has joined #nixos
linarcx has quit [Client Quit]
<jared-w> hyper_ch: I for one welcome our 400Gb/s overlords
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84638 → shotcut: 20.02.17 -> 20.04.01 → https://git.io/JvAdZ
<gchristensen> and to think I almost bought a house with only bonded dialup as a network connection option
linarcx has joined #nixos
<jared-w> Why would you do that to yourself?
<gchristensen> I didn't find out until fairly close to the "So ya wanna buy it?" step
<jared-w> bqv[m]: The speedup is really from the difference for launching a full GUI vs just launching qemu directly. Not a whole lot of difference
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JvAdR
<{^_^}> [nixpkgs] @jonringer merged pull request #84560 → python27Packages.patch-ng: 1.17.2 -> 1.17.4 → https://git.io/JvAlO
<bqv> jared-w: i see, fair enough
<Unode> hi all, a basic nix question. If I include/import a function into a nix expression (i.e. first line) but don't use it at all, does this actually cause the function to be executed?
<jared-w> bqv[m]: Do you happen to know if wireguard can be used as a client to connect to openvpn? Kinda curious because I have an openvpn config currently to use my work's VPN but it would be interesting to see if I'd even get any performance boost at all from wireguard
<bqv> Unode: it may be partially evaluated i think
<bqv> jared-w: totally incompatible, afaik
<Unode> I'm asking because while trying to fix mnemosyne using mkDerivationWith, simply adding it to the import line is causing error: anonymous function at /var/nixpkgs-channels/nixos-19.09/pkgs/games/mnemosyne/default.nix:1:1 called without required argument 'mkDerivationWith', at /var/nixpkgs-channels/nixos-19.09/lib/customisation.nix:69:12
<jared-w> darn. That's what I thought
<jared-w> bqv: What'd you change in your flake config setup vs nrdxp's? Just curious
<Unode> I'm a little confused about what is going on here. I see the function used in qutebrowser without errors, but can't seem to understand why it causes this error.
* jared-w is debating bikeshedding his nixos configs into flakes at some point
<{^_^}> [nixpkgs] @jonringer merged pull request #84428 → memcached: 1.6.2 -> 1.6.3 → https://git.io/JvNXi
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « memcached: 1.6.2 -> 1.6.3 »: https://git.io/JvAd6
<bqv> jared-w: i've reorganised and restructured some of it, updated other parts. i've kept the basic idea though
<vika_nezrimaya> I've almost implemented one of Nix's builtins (getFlake, to be exact) in pure Nix
<vika_nezrimaya> and then discovered that it's already built-in
<{^_^}> [nixpkgs] @jonringer opened pull request #84639 → memcached: add nixos tests to passthru → https://git.io/JvAdD
linarcx has quit [Quit: WeeChat 2.8]
<bqv> :D
<{^_^}> [nixpkgs] @jonringer merged pull request #84443 → munin: 2.0.51 -> 2.0.59 → https://git.io/JvNMD
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « munin: 2.0.51 -> 2.0.59 »: https://git.io/JvAdN
<bqv> jared-w: i mean the only downside to flakes at the moment is that not everything supports it, but nixpkgs and home-manager(ish) do, as well as a few other tidbits
<{^_^}> [nixpkgs] @jonringer merged pull request #84554 → python37Packages.nest-asyncio: 1.3.0 -> 1.3.2 → https://git.io/JvAW6
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.nest-asyncio: 1.3.0 -> 1.3.2 »: https://git.io/JvAdx
zupo has joined #nixos
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « obs-studio: 25.0.2 -> 25.0.3 »: https://git.io/JvAdj
<{^_^}> [nixpkgs] @jonringer merged pull request #84445 → obs-studio: 25.0.2 -> 25.0.3 → https://git.io/JvNDT
<blibberblob> Hi all, I'm seeing an issue with slack on nixos where it's unable to send notifications. The error I'm seeing in the logs is "(slack:18209): libnotify-WARNING **: 22:25:07.504: Failed to connect to proxy". Has anyone seen this before? By the way, I've tried running `notify-send hi hello` and it also doesn't work (nothing happens)
<evertedsphere> bqv: wait your repo looks h*cking amazing
<evertedsphere> god i wish i had some more time this week
<bqv> for my next trick i'd like to find a neater way to declare dependencies between machines, like ssh keys
<bqv> lol
<evertedsphere> it's soooo ... well-thought-out
<jared-w> bqv: nice. Yeah I'm really hopeful for flakes. It would be great to start pulling out all of the various bits of nixpkgs into their own separated bits. Especially the various language nix integration ecosystems.
<{^_^}> [nixpkgs] @jonringer merged pull request #84435 → nss_wrapper: 1.1.10 -> 1.1.11 → https://git.io/JvN12
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « nss_wrapper: 1.1.10 -> 1.1.11 »: https://git.io/JvAFe
<evertedsphere> do you use disnixos/disnix etc at all?
<evertedsphere> i see a commit message mentioning it
<Athas> I'm writing a derivation where the checkPhase needs to make network connections. It looks like Nix is providing an environment where even github.com cannot be resolved. Is there a way to enable network access for the checkPhase?
linarcx has joined #nixos
<jared-w> evertedsphere: check out nxrdxp's repo as well. Lots of their configuration comes from there and it'll be useful to see the differences.
<evertedsphere> i think there's a typo
<evertedsphere> ah figured it out, it's nrdxp
linarcx has quit [Client Quit]
<jared-w> Whoops. Yeah. I can never remember the exact spelling. (apparently not even when staring at it...)
<bqv> evertedsphere: i'm considering it
<bqv> but i can't wrap my head around it
<bqv> yeah, the first third or so commits of my repo are nrdxp's, and the template branch is all but untouched
<bqv> but afair that template will no longer even build
<evertedsphere> i'm trying to get a taste of all the nixos devops tools (and *taps head* devops in general) by testing them out on my localhost
<bqv> :)
drozdziak1 has quit [Ping timeout: 256 seconds]
<evertedsphere> i've become quite happy with nixops so far even if all i do is just use nixops deploy with a little envrc to pin NIX_PATH
<evertedsphere> i could just use nix-copy-closure + switch-to-configuration or whatever instead and i think i will, to get a bit more comfortable with lower-level nix stuff
<evertedsphere> imagining something like a disnixos-based qubes os minus the tor stuff
<evertedsphere> (as (iirc) taktoa[c] would put it)
<{^_^}> [nixpkgs] @andir merged pull request #84584 → firefox: 74.0.1 -> 75.0 and related updates → https://git.io/JvA2u
<{^_^}> [nixpkgs] @andir pushed 8 commits to master: https://git.io/JvAF3
<bqv> yeah i was thinking of that this morning
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84640 → snd: 20.1 -> 20.2 → https://git.io/JvAFs
<bqv> or something of that flavour at least
<jared-w> Nixops irrationally annoys me but I need to sit down and fully dogfood it before I really pass judgment on it. Using terraform for more than toy examples will help too.
<gchristensen> nixops 2.0 comes with some major changes on that front
<jared-w> Really wish we had something a weeee bit more usable than ovirt at work. The API is there, but nothing interfaces naturally with it, so it ends up being super annoying to integrate it with any other tooling.
<bqv> gchristensen: quick nix question, can i access the build dir in some way?
<jared-w> gchristensen: nice! Is there any documentation or writing about it? This is the first I've heard of a v2
<gchristensen> bqv: say more?
<bqv> i've built a package, is the build dir still around? if not, can i rebuild it and keep the build dir?
<gchristensen> you can only keep it if it failed
<gchristensen> do you need it for a specific reason?
shafox has quit [Remote host closed the connection]
<thibm> bqv: use --keep-failed, see man page of nix-build
<bqv[m]> essentially just as a diagnostic
<bqv[m]> ty
chloekek has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84641 → teamspeak_server: 3.11.0 -> 3.12.1 → https://git.io/JvAFB
<thibm> Athas: no.
<gchristensen> thibm: does that keep it if it succeeded?
zupo has quit [Quit: Textual IRC Client: www.textualapp.com]
<thibm> gchristensen: no :(
<{^_^}> [nixpkgs] @petabyteboy merged pull request #79880 → seabios: 1.11.0 -> 1.13.0 → https://git.io/JvCDF
<{^_^}> [nixpkgs] @petabyteboy pushed to master « seabios: 1.11.0 -> 1.13.0 (#79880) »: https://git.io/JvAFg
<thibm> postFixup = "false" ? :D
linarcx has joined #nixos
<thibm> but IIRC there's a hook for that
linarcx has quit [Client Quit]
<bqv> haha
zupo has joined #nixos
<{^_^}> [nixpkgs] @wd15 opened pull request #84642 → [WIP] python37Packages.fastapi: 0.49.0 -> 0.54.0 → https://git.io/JvAFV
drozdziak1 has joined #nixos
domogled has joined #nixos
<thibm> There's keepBuildTree. just copy build tree to $out/.build
<{^_^}> [nixpkgs] @bcdarwin opened pull request #84643 → quote Nipy ecosystem urls → https://git.io/JvAF6
linarcx has joined #nixos
KeiraT has joined #nixos
ixxie has joined #nixos
rogue_koder has quit [Ping timeout: 265 seconds]
cr4y1_ has joined #nixos
cr4y1 has quit [Read error: Connection reset by peer]
<ixxie> hello folks, trying to write a script that create a NixOS machine on Hetzner and I noticed the graphical ISO doesn't run sshd by default. Is the minimal ISO any different?
<thibm> There may be a better way now… keepBuildTree was written in 2014 and never touched since
<niso> ixxie: you might want to checkout nixops
<clever> ixxie: they both stop ssh from running on boot by default
rogue_koder has joined #nixos
<thibm> ixxie: you can turn on sshd in your own ISO
lsix1 has joined #nixos
<ixxie> niso: nixops only helps once NixOS is installed; in anycase I am planning to go for morph in this project.
<ixxie> good to know clever
<niso> ixxie: nixops does have a hetzner backend
<clever> ixxie: nixops has a script to auto-install on hetzner
<ixxie> thibm: yeah... now I just need to see if I can upload custom isos to hetzner
<niso> (for root servers)
<bqv> thibm: that's incredibly useful to know, thanks
<ixxie> niso, clever - aha! good to know...
<thibm> ixxie: it's actually the example here: https://nixos.wiki/wiki/Creating_a_NixOS_live_CD#SSH
<bqv> i don't suppose it needs updating, sounds rather simple
<thibm> But going to NixOPS may be better
<thibm> I installed NixOS on a hetzner machine without nixops, but I don't remember how
<{^_^}> [nixpkgs] @bhipple merged pull request #84623 → [20.03] tmuxPlugins: upgrade all to latest → https://git.io/JvASg
<{^_^}> [nixpkgs] @bhipple pushed 2 commits to release-20.03: https://git.io/JvAFH
<thibm> I guess I written that somewhere…
<{^_^}> [nixpkgs] @matthuszagh opened pull request #84644 → csxcad: init at 0.6.2 → https://git.io/JvAFQ
<{^_^}> [nixpkgs] @jonringer closed pull request #84566 → python37Packages.starlette: 0.12.9 -> 0.13.2 → https://git.io/JvA8m
<{^_^}> [nixpkgs] @jonringer merged pull request #84642 → python3Packages.fastapi: 0.49.0 -> 0.54.0 → https://git.io/JvAFV
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JvAF5
<thibm> ixxie: found it. Back to that time nixops was broken, so I did it that way: boot to vkvm rescue mode (Debian), from there you can install any distro as usual. It's like if you had the machine in front of you
<thibm> (it took me a while to understand that vkvm was free of charge. I don't speak german)
<ixxie> hmm it seems nixops only supports the dedicated hardware on Hetzner :(
<thibm> as usual: no, because you're not on the NixOS installation media live. So I installed Nix, installed the NixOS installation tooling (nixos-install & friends) and then it's as usual
<thibm> It was for a dedicated server
<clever> thibm: one sec
<{^_^}> nixops#1189 (by cleverca22, 33 weeks ago, open): plan for supporting custom partition layouts and custom FS's on any backend
<thibm> hu?
<clever> thibm: if you install just nix, then you can use phase 3 here, to copy a pre-built nixos to /mnt/nix/store on a remote machine
<clever> assuming things have already been partitioned and installed
<clever> mounted&
<ixxie> I have a script that used clever's kexec trickery to do this on a Hetzner VM... but I can't seem to get this to work reliably...
<clever> ixxie: kexec is also somewhat optional, since you could also use the nix copy trick in the above issue
VShell is now known as Shell
<clever> ixxie: you could also package the kernel+initrd from it, into a normal /boot with grub, and then just boot that as a disk image
<clever> depends on what the cloud provider offers
<thibm> clever: what I did: 1. clean up 2. install dependencies with apt-get (zfs!) 3. zfs+partitions 4. mount 5. install nix 6. add nixbld users & stuff 7. setup channel 8. install nixos-install & friends 9. nixos-generate-config + config + nixos-install
<ixxie> clever: interesting... but the approach in the issue seems simpler for a scripted install
zupo has quit [Ping timeout: 260 seconds]
<obadz> (any nixers happily (or not) using btrfs btw?)
<{^_^}> [nixpkgs] @rnhmjoj opened pull request #84645 → [20.03] haskellPackages.pandoc-crossref: downgrade to latest working → https://git.io/JvAbm
<lordcirth> obadz, do you have a more specific question about btrfs?
<clever> thibm: if your doing zfs, it would probably be simpler to kexec into nixos
<thibm> clever: indeed you can dump an installation instead of letting nixos-install do it
<clever> thibm: but for any FS the distro already supports, nix + nix copy would likely do
<obadz> lordcirth: I've been playing around a bit and thinking about flipping some disks, but it seems a bit scary
<thibm> clever: may be. I tried your kexec at that time (October 2018). Either I did not manage to make it work, or I had an issue with ZFS
o1lo01ol1o has joined #nixos
zupo has joined #nixos
<lordcirth> obadz, btrfs works ok, as long as you stay away from the experimental features, and don't fill your disk. But I would recommend ZFS instead
<thibm> I remember I really tried 10 ways to install it on the damn machine :D
revtintin has quit [Quit: WeeChat 1.9.1]
<thibm> with nixos-infect and others. Maybe ZFS was not a good idea for the first install here…
blibberblob_ has joined #nixos
<obadz> lordcirth: I struggle to understand ZFS tbh. Looks like the volume manager wants to take over the world.
<thibm> But you're right, copy the thing is a good way to go, mostly universal
<lordcirth> obadz, being originally ported in from outside Linux, it does some things a bit differently. But it's the best filesystem there is.
blibberblob_ has quit [Client Quit]
<obadz> lordcirth: Here's the test that scared me a bit with brtfs: I removed a disk from a raid1 array and got warning that I was in degraded mode (except in kernel log): https://gist.github.com/obadz/931d62ebf19f05f44363d2bd6f18e958#file-check_raid1-sh-L38-L50
<obadz> lordcirth: Does it do the cool heterogenous raid1/raid10 trick that btrfs does?
<thibm> clever: finally I don't agree. What's the point of copying a prebuilt nixos if you have Nix? Just build it on the server (except if it's a 100MB RAM VSP)
<thibm> VPS*
* obadz going AFK but will read replies when I'm back
<lordcirth> obadz, no, that kind of flexibility is the main thing btrfs has over ZFS
<clever> thibm: more for when your using nixops, you can `nixops deploy --build-only`, then copy that product up
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84646 → tautulli: 2.2.0 -> 2.2.1 → https://git.io/JvAbB
<thibm> OK
anirrudh has quit [Quit: Leaving.]
hoplaahei has joined #nixos
zaeph1 has joined #nixos
anirrudh has joined #nixos
AlphaDog has joined #nixos
<AlphaDog> Hi
<srk> hi!
<AlphaDog> I have this problem where network manager wont store my wifi credentials
<{^_^}> [nixpkgs] @ryantm merged pull request #84635 → scummvm: 2.1.1 -> 2.1.2 → https://git.io/JvA76
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/JvAbr
<AlphaDog> Currently using sway, not a full blown DE, could anyone point me in the correct direction?
<{^_^}> [nixpkgs] @cleverca22 opened pull request #84648 → nixos: kafka test: fix building for other arches → https://git.io/JvAb6
drozdziak1 has quit [Ping timeout: 256 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
zaeph has quit [Ping timeout: 264 seconds]
pbogdan has quit [Remote host closed the connection]
<srk> AlphaDog: maybe it's gnome3.dconf
<srk> (adding that fixed my issues with virt-manager amnesia)
pbogdan has joined #nixos
linarcx has quit [Quit: WeeChat 2.8]
knupfer has quit [Quit: knupfer]
knupfer has joined #nixos
zaeph1 is now known as zaeph
evertedsphere has quit [Remote host closed the connection]
<Yaniel> aw damn, I was already hoping for a nixos-unstable update as the latest test set seemed to be going well
<Yaniel> but now there is already a new job
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84649 → python27Packages.sqlmap: 1.4.3 -> 1.4.4 → https://git.io/JvANe
<{^_^}> [nixpkgs] @jonringer pushed to master « pew: 1.1.2 -> 1.2.0, fix build »: https://git.io/JvANI
<{^_^}> [nixpkgs] @jonringer merged pull request #84632 → pew: 1.1.2 -> 1.2.0, fix build → https://git.io/JvA7v
<{^_^}> [nixpkgs] @domenkozar pushed to master « spring: 104.0.1-1476-g0737b41 -> 104.0.1-1477-g8ecf38a »: https://git.io/JvANt
<{^_^}> [nixpkgs] @Gerschtli opened pull request #84650 → teamspeak_server: 3.11.0 -> 3.12.1 → https://git.io/JvANq
<{^_^}> [nixpkgs] @jonringer merged pull request #84649 → python27Packages.sqlmap: 1.4.3 -> 1.4.4 → https://git.io/JvANe
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python27Packages.sqlmap: 1.4.3 -> 1.4.4 »: https://git.io/JvANO
<AlphaDog> hmm doesn't seem to work srk
<srk> not sure then :(
lsix has joined #nixos
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
<energizer> what does sw mean in /run/current-system/sw/
<{^_^}> [nixpkgs] @nh2 merged pull request #84464 → sequoia: 0.15.0 -> 0.16.0 → https://git.io/JvNbh
<{^_^}> [nixpkgs] @nh2 pushed 2 commits to master: https://git.io/JvAN0
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84651 → supercollider: 3.10.4 -> 3.11.0 → https://git.io/JvANE
<samueldr> energizer: IIRC system-wide
<energizer> ah
o1lo01ol1o has joined #nixos
ayuce has quit [Remote host closed the connection]
<samueldr> though I'm not sure that what I remember was conclusively found, or if it was conjecture
chloekek has quit [Ping timeout: 256 seconds]
zeta_0 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84653 → crawl: 0.24.0 -> 0.24.1 → https://git.io/JvANV
iqubic` has joined #nixos
broccoli has joined #nixos
pbogdan has quit [Remote host closed the connection]
<zeta_0> hello everyone, i want to setup a sendmail instance on my nixos machine, so that i can use: darcs send, to push patches, anyways, when searching online, i can't seem to find a good link to the nix documentation with instructions on how to do this, could you guys paste a link with the documentation(i'm sure it's buried in the nix doc somewhere)
iqubic has quit [Ping timeout: 260 seconds]
cybrian has joined #nixos
<{^_^}> [nixpkgs] @matthuszagh opened pull request #84654 → fparser: init at 4.5.1 → https://git.io/JvAN9
pbogdan has joined #nixos
ixxie has quit [Ping timeout: 256 seconds]
aveltras has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84656 → stress-ng: 0.11.02 -> 0.11.07 → https://git.io/JvAN5
ixxie has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #84097 → buku: 4.2.2 -> 4.3, introduce new dependency → https://git.io/JvFUg
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JvANF
<morgrimm> zeto_0: Seems like you could explore the mail service in the nixpkgs repo, or potentially ssmtp (also in the nixos modules) as another option
<zeta_0> darcs has some good instructions on setting up msmpt, but i'm not sure how to do it the nix way
cybrian has quit [Ping timeout: 265 seconds]
<zeta_0> morgrimm: which mail service? the one i found looks outdated? https://github.com/r-raymond/nixos-mailserver
<ottidmes> zeta_0: I have been using: networking.defaultMailServer
spinus has joined #nixos
<srk> zeta_0: nixos-mailserver is live but on gitlab
<{^_^}> [nixpkgs] @jonringer merged pull request #84419 → libgpiod: 1.5 -> 1.5.1 → https://git.io/JvNiB
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « libgpiod: 1.5 -> 1.5.1 »: https://git.io/JvAAk
<zeta_0> thanks guys, aaahhh, options overload, i'll take a look now
<{^_^}> [nixpkgs] @jonringer merged pull request #84393 → groovy: 3.0.0 -> 3.0.2 → https://git.io/JvNgf
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « groovy: 3.0.0 -> 3.0.2 »: https://git.io/JvAAY
<{^_^}> [nixpkgs] @jonringer opened pull request #84657 → libbass: fix sha → https://git.io/JvAAZ
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84658 → python37Packages.spyder: 4.1.1 -> 4.1.2 → https://git.io/JvAAn
c0c0 has quit [Ping timeout: 260 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
AlphaDog has quit [Remote host closed the connection]
orivej has joined #nixos
noudle has quit []
<{^_^}> [nixpkgs] @jonringer merged pull request #84379 → gnucash: 3.8b -> 3.9 → https://git.io/JvNEU
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « gnucash: 3.8b -> 3.9 »: https://git.io/JvAA6
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « libzen: 0.4.37 -> 0.4.38 »: https://git.io/JvAA1
<{^_^}> [nixpkgs] @jonringer merged pull request #84423 → libzen: 0.4.37 -> 0.4.38 → https://git.io/JvNXC
spinus has quit [Ping timeout: 264 seconds]
spinus has joined #nixos
<{^_^}> [nixpkgs] @DamienCassou opened pull request #84659 → weboob: 1.5 -> 2.0 → https://git.io/JvAAQ
<cole-h> Nice package name ^
<peelz> lmao
<{^_^}> [nixpkgs] @jonringer opened pull request #84660 → python2Packages.cryptography: add missing ipaddress dependency → https://git.io/JvAA5
<kraem> i've been playing around with the firewall settings lately - is there an obvious reason why iptables aren't flushed when the system is rebuilt and the firewall.service is restarted?
spinus has quit [Ping timeout: 265 seconds]
c0c0 has joined #nixos
spinus has joined #nixos
<spinus> kraem: not sure what you mean by flushed, but when I rebuild the system and apply new config, new firewall rules are applied
Darkmatter66_ has joined #nixos
kiloreux has joined #nixos
<kiloreux> I am installing fontconfig and trying to write to update the cache in installation. But it's failing with failed to write cache. How can I go about install fonts? (Nixpkgs manual page for fonts didn't help)
Darkmatter66 has quit [Ping timeout: 264 seconds]
<zeta_0> which option do i need to configure in order to be able to send email using: darcs send ? there's no enable option with default features, also, am i going to need to install external nix packages as well? like sendmail and msmtp? https://nixos.org/nixos/options.html#networking.defaultmailserver
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/d7b98129fea (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<zeta_0> here's the darcs instructions that i'm trying to do the `nix way`? http://darcs.net/Using/Send
<zeta_0> dam, i didn't think that it would be this difficult to setup a sendmail instance, i thought there would be a option to enable, where this functionality would work out of the box
<simpson> Really? Email is super-hard to administer. It's a place where it's possible to be an expert in only one of the three languages, two of which are required to actually perform an email.
<simpson> The jargon has jargon. MTA and MUA are distinct problems.
<{^_^}> [nixpkgs] @jonringer merged pull request #84321 → thinkfan: 1.0.2 -> 1.1 → https://git.io/JvNtL
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « thinkfan: 1.0.2 -> 1.1 »: https://git.io/JvAx0
<{^_^}> [nixpkgs] @jonringer merged pull request #84424 → vscode-extensions: update 7 → https://git.io/JvNXR
<{^_^}> [nixpkgs] @jonringer pushed 2 commits to master: https://git.io/JvAxE
<gchristensen> back when I was doing more contracting work I had a clause saying anything having to do with email services cost extra
teto has quit [Quit: WeeChat 2.7.1]
<MichaelRaskin> Not only outgoing?
<gchristensen> nope
<gchristensen> incoming you have to deal with spam
<simpson> zeta_0: It seems like msmtp is a sendmail replacement; their documentation has examples for configuration. https://marlam.de/msmtp/msmtp.html#Examples msmtp is packaged, so that you might merely have to add it to your darcs environment. I'm not sure, though, as I don't use darcs or msmtp.
<{^_^}> [nixpkgs] @jjwatt opened pull request #84661 → hy: 0.17.0 -> 0.18.0 → https://git.io/JvAxr
<gchristensen> uand "they emailed me 0 seconds ago, why didn't it arrive"
<{^_^}> [nixpkgs] @jonringer merged pull request #84326 → bacula: 9.6.2 -> 9.6.3 → https://git.io/JvNYt
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « bacula: 9.6.2 -> 9.6.3 »: https://git.io/JvAxP
lsix has quit [Quit: WeeChat 2.7.1]
<thibm> People forgot what email are: prehistoric asynchronous unreliable cleartext message
o1lo01ol1o has joined #nixos
<lovesegfault> How can I use _both_ override and overrideAttrs together?
<lovesegfault> (I want to add a patch, and then override the input php package)
<bqv> override first
<MichaelRaskin> First override, then overrideAttrs on the result
<thibm> zeta_0: I'm using msmtp to send mail from my laptop. Quite easy to configure and use
* lovesegfault tries
<{^_^}> [nixpkgs] @michaelpj opened pull request #84662 → heatseeker: fix finding stty → https://git.io/JvAxQ
<{^_^}> [nixpkgs] @flokli opened pull request #84663 → Notmuch multiple output → https://git.io/JvAx5
<thibm> (it's easy because it just connects to some SMTP server. It's not a full postfix replacement)
<bqv> > builtins.length "/nix/store/"
<{^_^}> value is a string while a list was expected, at (string):296:1
<bqv> huh
andydarcyjewell2 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<kraem> spinus: the nixos fw rules actually are deleted, and reapplied with the new rules. old rules that are entered manually, or by other services are not flushed though so the iptables get stateful.
o1lo01ol1o has quit [Ping timeout: 265 seconds]
<thibm> bqv: builtins.stringLength
<thibm> length is for lists
andydarcyjewell2 has joined #nixos
<thibm> No you won't :p
<bqv> will remember in the future
<{^_^}> [nix] @domenkozar closed pull request #3457 → downloader: when retry but can't resume, retry the whole file → https://git.io/Jv71F
<bqv> no, i won't
<bqv> but i appreciate the thought :p
<thibm> :D
<cole-h> lovesegfault: Yeah, should just need parens wrapping the first override/overrideAttrs
lsix has joined #nixos
<kleisli> is it intended that the man pages for gcc are not installed by default? ie `nix run nixpkgs.gcc -c man gcc` fails?
<bqv> works for me
<thibm> bqv: A few days ago, I was reading the OpenBSD's signify paper, where it's written "I still can't use ln without reading the man page every time". So true for me too
<bqv> haha
drozdziak1 has joined #nixos
<gchristensen> "I still can't use cp without reading the man page every time"
<MichaelRaskin> I think it is about nix run not caring enought about man pages
<gchristensen> I just don't get what is so hard about ln :|
<bqv> i had trouble with the ordering, originally
<bqv> or was that another utility...
<thibm> Honestly? I have no idea
<MichaelRaskin> Who remembers which program had among its known issues «has more flags than ls»?
<thibm> Maybe I use cp 10× more often
<bqv> find was a frustrating one, until i got the message "PATHS MUST PRECEDE EXPRESSION" burned into my memory
<gchristensen> aye heh
<kleisli> MichaelRaskin: it doesn't work in nix-shell either. in fact i don't know how to get the gcc man pages at all
<thibm> bqv: so true
<spinus> kraem: I see what you mean, I guess this is implemented that way to avoid this moment when you are either, opened to the world or cut off
<thibm> spinus: gcc has a 'man' output
<{^_^}> [nixpkgs] @jonringer merged pull request #84338 → clash: 0.18.0 -> 0.19.0 → https://git.io/JvN3m
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « clash: 0.18.0 -> 0.19.0 »: https://git.io/JvApG
<srid> Is there anyway to simply assign the output of git to the `gitDescribe` variable? https://www.irccloud.com/pastebin/rxImktWu/a.nix
<srid> (rather than create a derivation, that is)
<zeta_0> thibm: cool, so how did you setup msmtp using nix? could you link a paste bin?
<clever> ,ifd srid
<{^_^}> srid: import-from-derivation (IFD) is when you evaluate nix from a derivation result, for example `import (pkgs.writeText "n" "1 + 1")` will evaluate to 2. This is sometimes problematic because it requires evaluating some, building some, and then evaluating the build result. It has been described as "such a nice footgun."
<zeta_0> sorry i took so long to respond i had to run an errand
<clever> srid: simplest, is to use builtins.readFile to read the file in the derivation
<{^_^}> [nixpkgs] @jonringer merged pull request #84658 → python37Packages.spyder: 4.1.1 -> 4.1.2 → https://git.io/JvAAn
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.spyder: 4.1.1 -> 4.1.2 »: https://git.io/JvApg
<MichaelRaskin> Hm, interesting, apparently shipped scripts only care about MANPATH when handling profiles. kleisli:
<zeta_0> ok, i found some good documentation, i just need to figure out how to do it the nix way: https://wiki.archlinux.org/index.php/Msmtp
<srid> thanks clever
<srid> clever++
<{^_^}> clever's karma got increased to 378
<thibm> zeta_0: just install it and configure it. It's a client, there's no need for a systemd service or whatever
zupo has quit [Ping timeout: 250 seconds]
<chessai> what is the status of 20.03 being released? do all of https://github.com/NixOS/nixpkgs/milestone/17 need to be resolved?
<chessai> 20.03 stable*
zupo has joined #nixos
<zeta_0> thibm: ok, the instructions say i need to configure it in the ~/.msmtprc file, i wasn't sure if there was some nix option that's used to write to this file
<{^_^}> [nixops] @grahamc merged pull request #1256 → Use Poetry & Poetry2nix for environment and plugin management → https://git.io/JviO4
<{^_^}> [nixops] @grahamc pushed 15 commits to master: https://git.io/JvApy
zeenk has quit [Read error: Connection reset by peer]
zeenk has joined #nixos
<niso> zeta_0: there is if you decide to configure msmtp with home-manager
thibm_ has joined #nixos
thibm has quit [Ping timeout: 256 seconds]
<{^_^}> [nixops] @grahamc opened pull request #1277 → Docs: Update authoring.rst after a few more implementations. → https://git.io/JvAhf
cybrian has joined #nixos
<xfix> updated my computers to 20.03, no issues so far :) (i know it's a beta, but i'm impatient, and the current blocker issues seem to be non-issues for my usecase)
<zeta_0> niso: that's great, i'm using home-manager, what's the name of the option so i can search for it in the home-manager options? https://rycee.gitlab.io/home-manager/options.html
<morgrimm> zeta_0: You can just define that configuration file as a home-manager file
<srid> In pkgs.runCommand, what makes it unambigously clear that a shell env variable ($foo or ${foo}) is to be filled in by Nix or the runtime shell env?
<lovesegfault> Is there an analogue of pythonWithPackages to PHP? like phpWithExtensions or something
<morgrimm> srid: As far as I know, ${foo} is interpolation syntax for Nix, and $foo will delegate to the environment consuming the string
thibm_ is now known as thibm
<niso> zeta_0: accounts.email.accounts.<name>.msmtp
<niso> zeta_0: IMO the easiest wayt o find those options is by just looking up the manpage
anirrudh has quit [Quit: Leaving.]
<thibm> srid: runCommand takes an attrset
<niso> zeta_0: e.g. `man home-configuration.nix` (and search for msmtp in there)
<thibm> Everything in its attrset argument is given to the command as environment variable
<{^_^}> [nixpkgs] @7c6f434c merged pull request #84624 → smbnetfs: 0.6.1 -> 0.6.2 → https://git.io/JvAS5
<zeta_0> niso: oh, searching msmtp, it returned 26 matches, i thought it was this option: https://rycee.gitlab.io/home-manager/options.html#opt-programs.msmtp.enable
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/JvAhm
<thibm> (like for mkDerivation, runCommand is based on mkDerivation)
zupo has quit [Ping timeout: 258 seconds]
<obadz> lordcirth: also I assume there's no ext4→ZFS? that's a pretty cool feature of btrfs though one time use.
<obadz> lordcirth: https://gist.github.com/obadz/931d62ebf19f05f44363d2bd6f18e958#file-check_raid1-sh-L38-L50 ⇒ any ideas why none of the diagnostic tools mention the missing disk?
<gchristensen> is that an in-place transition from ext4?
<lordcirth> obadz, a migration? no, only btrfs
cybrian has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @doronbehar closed pull request #84610 → notmuch: set emacs off by default → https://git.io/JvAP0
<lordcirth> gchristensen, yeah, you can migrate ext4 to btrfs online, it's pretty cool
<gchristensen> wow!
<obadz> gchristensen: yes, and reversible too. it's awesome.
<gchristensen> wat
<clever> lordcirth: online, damn!!
<lordcirth> Reversible to orginal state*
<cole-h> Online and reversible?!
<gchristensen> obadz: I'm a big ZFS fanboi these days if you have questions :P
<obadz> gchristensen: it creates a fake sparse file over all the ext4 metadata and a snapshot of the drive post migration, which means all new writes happen in previously unused space and can be ignored.
<lordcirth> Once you've written new data to btrfs, you can only revert to the original, you won't have your new data
lsix has quit [Quit: WeeChat 2.7.1]
<cole-h> Right, that's to be expected.
<cole-h> That's pretty neat-o
<niso> zeta_0: yea, you'll need programs.msmtp enabled, however it will take it's configuration from accounts.email
<simpson> niso++
<{^_^}> niso's karma got increased to 2
<{^_^}> [nixpkgs] @andir merged pull request #84590 → [19.09] firefox: 74.0.1 -> 75.0 → https://git.io/JvAwH
<{^_^}> [nixpkgs] @andir pushed 9 commits to release-19.09: https://git.io/JvAhc
<zeta_0> niso: sounds good, thanks for the help, i'll let you guys know if i was able to get it working or not
<zeta_0> niso++
<{^_^}> niso's karma got increased to 3
* niso just trippled his karma with this one easy trick
o1lo01ol1o has joined #nixos
zupo has joined #nixos
rogue_koder_ has joined #nixos
rogue_koder has quit [Ping timeout: 260 seconds]
thibm has quit [Quit: WeeChat 2.6]
<xfix> btrfs is designed to be pretty much ext5, so of course you can migrate from ext4 :)
<clever> xfix: ah, that would explain things
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84664 → wordpress: 5.3.2 -> 5.4 → https://git.io/JvAho
<bqv> oh cool
<bqv> i didn't know that
<obadz> gchristensen: I'm leaning more towards btrfs atm but might hit you up. Is there a way to encrypt subvolums with different keys in ZFS?
<bqv> then again, i haven't used ext4 extensively for over half a decade
<gchristensen> obadz: you bet
<obadz> gchristensen: about the keys?
<gchristensen> yep
<obadz> hmmm I'm changing my mind rapidly then :)
<xfix> the way conversion back is pretty cool too, during conversion from ext4 to btrfs, a snapshot is created which prevents old ext4 data from being modified
<obadz> so you can have zfs volume over LUKS over zfs volume manager?
<xfix> conversion back works*
iqubic` has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
<obadz> xfix: yes with a fake sparse file for the metadata :)
<atemu12[m]> obadz: You could but...why?
iqubic has joined #nixos
<obadz> atemu12[m]: different users have different keys?
<cole-h> gchristensen: Do you use native ZFS encryption, or LUKS/something else?
<gchristensen> obadz: yeah so you can use LUKS if you want, or native ZFS encryption, and each dataset can have a different key
<gchristensen> (they're called datasets to zfs, not volumes)
<obadz> hmmm ok, I'm going to have to read all about ZFS again then
<obadz> (had already done it once…)
<{^_^}> [nixpkgs] @7c6f434c merged pull request #84628 → scowl: 2018.04.16 -> 2019.10.06 → https://git.io/JvAHA
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/JvAhM
<obadz> any preferred source for reading?
<atemu12[m]> obadz: Yes you do.
<gchristensen> obadz: I have a single partition on my disk and it is LUKS, and then ZFS on top of that, with no LUKS on top of that. if I were to erase and go again, I'd probably just go for ZFS native encryption instead of LUKS.
<xfix> i kinda would like to migrate an ext4 partition to btrfs myself, but i'm kinda worried things may go wrong with LUKS encryption...
<gchristensen> obadz: https://pthree.org/2012/12/04/zfs-administration-part-i-vdevs/ is really great. you can experiment and learn about ZFS using files on your disk as backing stores
shabius_ has joined #nixos
<obadz> xfix: LUKS is underneath all that, I don't think it should mattter?
<clever> gchristensen: of note, zfs cant encrypt the dataset names, so if you have a tank/uber-secrets, somebody is going to have questions for you when they notice it :P
<atemu12[m]> obadz: The openzfs GH's wiki, the Archwiki, the zfs and zpool manpages and, of course, the NixOS wiki page
<xfix> yeah, but bootloaders are complicated
<xfix> i'm not concerned about the operating system after I boot, i'm worried about process before boot
<kraem> i had luks and zfs on top on that. last install i made on my home server i went with native zfs and it's super :)
<gchristensen> obadz: yeah, notably ZFS encryption doesn't provide plausible deniability and what-not. there is some metadata around like, names of your datasets and a few other things
<clever> xfix: i choose to use a either a fat32 or ext4 /boot, with zfs on luks for /
<obadz> gchristensen: I'm fine with that. Can't be worse than ecryptfs..
<xfix> yes, i have a separate /boot partition too
<srid> It appears -E is not really supported in nix-env, only in nix-build. Is this true?
<srid> > nix-env -iE 'let src = builtins.fetchGit { url = "https://github.com/s
<srid> error: attempt to call something which is not a function but a set, at undefined position
<srid> rid/neuron"; ref = "fix-nix-env-install"; }; in import src.outPath { gitRev = src.shortRev; }'
<{^_^}> error: syntax error, unexpected $undefined, expecting ')', at (string):296:13
<clever> srid: nix-env -E works just fine
<obadz> gchristensen: I'd be using discard on LUKS anyway..
<atemu12[m]> xfix: Yeah that's a bit iffy, I just use an unencrypted partition for /boot/
CptCaptain has joined #nixos
<clever> srid: but note, it must return a function, and nix-env will run that function with every channel as a set
shabius has quit [Ping timeout: 272 seconds]
<srid> if I replace 'nix-env -iE' with nix-build in that cli it works.
<clever> srid: you want to likely add a `_:` to the start of the expr
<CptCaptain> Why did my machine just compile llvm?
<srid> ah okay clever
<clever> srid: its so you can do something like `nix-env -E 'channels: (import channels.nixos {}).hello' -i` i believe
<srid> That's only long CLI to put in the installation docs. :-) Is there anyway to simplify it?
<obadz> atemu12[m]: what's the GH wiki?
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
<clever> srid: nix-env -f https://github.com/owner/repo/archive/branch.tar.gz -iA attr
<srid> clever: It used to be like (without the 'A attr' part). But the new version was designed so I can pass a git rev.
<srid> *like that
<clever> srid: nix-env -f https://github.com/owner/repo/archive/branch.tar.gz -iA attr --argstr gitrev 12345
<{^_^}> srid/neuron#67 (by srid, 5 hours ago, open): Tarball install is broken
<clever> srid: the default.nix within the tar, must then have a `{ gitrev ? "default" }:` and fetch that one
<srid> clever: Right, but the "12345" should be automatically determine (so the user doesn't have to specify it)
<atemu12[m]> gchristensen: Do you know what happened to the armv7l jobset? 10000 jobs started failing yesterday because of "Unsupported system type"
<clever> srid: then the default.nix could re-fetch the repo, using builtins.fetchgit
<gchristensen> hydra has started canceling jobs if no viable builder shows up soon enough to start working on it, atemu12[m]
<srid> hmm
<clever> srid: the repo your nix-env'ing could be different from the main one, just a helper repo
c0c0 has quit [Ping timeout: 240 seconds]
<atemu12[m]> gchristensen: Makes sense, bit of a misleading error message though
<gchristensen> oh?
<clever> atemu12[m]: if you encrypt /boot, are you using efi or legacy?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84665 → xbps: 0.59 -> 0.59.1 → https://git.io/JvAjU
mallox has quit [Quit: WeeChat 2.7.1]
<atemu12[m]> clever: I don't encrypt /boot but if I was I'd use efi
<clever> atemu12[m]: the efi firmware cant deal with decryption, so the ESP must be in plaintext
<atemu12[m]> gchristensen: "Unsupported system type" sounds more like it tried to build it on the wrong machine and failed
<gchristensen> oh interesting, cool, can you open a ticket on nixos/hydra?
<atemu12[m]> clever: Efi only needs to read the bootloader's efi executable; you need a separate unencrypted EFI partition
<bqv> it's substituteInPlace file old new, right?
<dsx> Is it 20.03 yet?
<clever> atemu12[m]: yeah, the ESP can be seperate from /boot/
<clever> atemu12[m]: but somebody could backdoor the binary in the ESP, and steal your pw
<bqv> nevermind i'll just use sed
zupo has quit [Quit: Textual IRC Client: www.textualapp.com]
c0c0 has joined #nixos
<atemu12[m]> clever: Evil maid attacks are very hard to protect against but in this case you could use secure boot
<atemu12[m]> Not perfect either since it's black box proprietary firmware but should be very hard to get around for your average hacker
<atemu12[m]> gchristensen: Sure
<clever> atemu12[m]: measured boot in the TPM also helps, smaller firmware blob involved in the critical thing
justanotheruser has quit [Ping timeout: 256 seconds]
<atemu12[m]> clever: Yeah but you don't know whether the TPM actually verified the boot, a hacker could've just disabled it and put in their own bootloader
<atemu12[m]> clever: TPM can be handled in firmware but are also often actual hardware chips
<qyliss> atemu12[m]: you do if the computer proves to you it was measured, a la Heads
<CptCaptain> What's the best way to go with Nvidia Optimus right now?
<{^_^}> [nixpkgs] @jonringer opened pull request #84666 → palp: correct metadata for repology → https://git.io/JvAjB
<CptCaptain> How up to date is this article? https://nixos.wiki/wiki/Nvidia
<{^_^}> [nixpkgs] @globin pushed 14 commits to structured-attrs: https://git.io/JvAjR
<atemu12[m]> qyliss: What do you mean by Heads?
<gchristensen> I'm pretty sure every consumer computer sold these days has a TPM, since Microsoft actually requires it for certification
<qyliss> atemu12[m]: http://osresearch.net/
<{^_^}> [nixpkgs] @globin pushed 1000 commits to structured-attrs: https://git.io/JvAjz
<qyliss> remarkably that website doesn't do https
<simpson> CptCaptain: https://nixos.wiki/index.php?title=Nvidia&action=history March 19th of this year. (I guess we don't have a link to the history, or a last-edited stamp, in our current MW theme.)
<{^_^}> [nixpkgs] @zowoq opened pull request #84667 → buildah: 1.14.6 -> 1.14.7 → https://git.io/JvAja
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<CptCaptain> simpson: I'm wondering, because the options described, don't seem to exist in 19.09
<CptCaptain> hardware.nvidia.prime doesn't exist.
<gchristensen> clever: got a question for you
<clever> gchristensen: ask away
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84668 → waf: 2.0.19 -> 2.0.20 → https://git.io/JvAjK
<gchristensen> clever: would it be interesting if the metadata from installation time were made available to the nixos configuration on a packet machine?
<clever> gchristensen: for normal nixos, or nixops?
<simpson> CptCaptain: hardware.nvidia.optimus_prime, looks like; it changed for 20.03, I guess.
<gchristensen> both
<{^_^}> [nixpkgs] @fusion809 closed pull request #84438 → wpsoffice: 11.1.0.9080 -> 11.1.0.9126 → https://git.io/JvN1x
<atemu12[m]> qyliss: Indeed lol but that does look like something that could protect against Evil maid attacks reasonably well
<clever> gchristensen: simplest option i can see is to just encode all of that metadata as json (or hnix it into nix), and then have a nix file in /etc/nixos/ that sets something like hardware.packet.metata = builtins.parseJSON (builtins.readFile ./metadata.json);
<clever> gchristensen: and nixops can do similar, via a file in /tmp/
<gchristensen> exactly my thought!
<gchristensen> do you think it'd be interesting?
<CptCaptain> simpson: optimus_prime is old and prime is new?
<CptCaptain> And the wiki article talks about the unreleased NixOS 20.03?
<clever> gchristensen: yeah, and then you can use stuff like ram size to adjust limits of programs, and cpu core count to adjust concurrency
<gchristensen> cool
<gchristensen> clever: should it be embedded in the data nixops-packet puts in the statefile?
<{^_^}> [nixpkgs] @jonringer opened pull request #84669 → python3Packages.py3to2: fix metadata for repology → https://git.io/JvAjM
<lovesegfault> How can I call nix build on my nixpkgs checkout without it using my overlays?
<clever> gchristensen: probably
<simpson> CptCaptain: Yes, that's what I'm gathering. I don't use this stuff; I'm reading the same articles you are.
<clever> gchristensen: can the metadata be obtained at a later time, via the api?
<gchristensen> yeah, but I think it can only be done from the machine itsnelf
<clever> ahh
<cole-h> lovesegfault: `--arg overlays []` might work?
<{^_^}> [nixpkgs] @primeos pushed to master « chromiumDev: Add the missing setuptools dependency »: https://git.io/JvAjy
<cole-h> lovesegfault: Alternatively, `-I nixpkgs-overlays=/var/empty`
justanotheruser has joined #nixos
<lovesegfault> The first one worked :D
<lovesegfault> cole-h++
<{^_^}> cole-h's karma got increased to 18
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #75132 → perlPackages.XMLParser: Work around cross-compilation regression → https://git.io/JeyXM
<{^_^}> [nixpkgs] @Ericson2314 pushed 2 commits to staging: https://git.io/JvAjd
<lovesegfault> Is there a way to disable the fixup phase?
<{^_^}> [nixpkgs] @primeos opened pull request #84671 → chromium: 80.0.3987.163 -> 81.0.4044.92 → https://git.io/JvAjb
<{^_^}> [nixpkgs] @rycee pushed commit from @sikmir to master « josm: 15937 -> 16239 »: https://git.io/JvAjN
<{^_^}> [nixpkgs] @rycee closed pull request #84630 → josm: 15937 -> 16239 → https://git.io/JvAQg
<lovesegfault> it's incorrectly patching the php interpreter on my pkg
<lovesegfault> and thus breaking everything
ddellacosta has quit [Quit: WeeChat 2.2]
<lovesegfault> bingo!
<atemu12[m]> <gchristensen "I'm pretty sure every consumer c"> Firmware TPMs are also allowed unfortunately and, firmware being firmware, there has already been an attack on Intel's fTPM that could leak the private keys. You still need to watch out for hardware TPM support when buying a new machine
<gchristensen> sure
<atemu12[m]> gchristensen: Are the hydra job status error messages documented anywhere?
<lovesegfault> What's the right way to manually patch the interpreters?
m0rphism has quit [Quit: WeeChat 2.7.1]
<clever> lovesegfault: patchShebangs, it uses the binary already in $PATH
<lovesegfault> clever: but fixupPhase seems to not call that? (but it does patch interpreters)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84672 → unrar: 5.9.1 -> 5.9.2 → https://git.io/Jvxe4
<lovesegfault> Oh it's a hook
ddellacosta has joined #nixos
<jjwatt[m]> Does anyone know if it would be preferable to pull and build from git in a Nix package in the case that the PyPI source distribution does not include tests or should we prefer using PyPI in that case and skip tests? A whole lot of python packages seem to go the last route.
fusion809 has quit [Remote host closed the connection]
<clever> lovesegfault: yeah, anything in the buildInputs (and some parts of the stdenv) can add themselves to phases
Bambus has left #nixos ["Tschüss"]
drozdziak1 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @globin pushed to structured-attrs « treewide: add C{,XX}FLAGS to env attrs »: https://git.io/Jvxea
m0rphism has joined #nixos
zupo has joined #nixos
johnw` has joined #nixos
<{^_^}> [nixops] @grahamc merged pull request #1277 → Docs: Update authoring.rst after a few more implementations. → https://git.io/JvAhf
<{^_^}> [nixops] @grahamc pushed to master « Docs: Update authoring.rst after a few more implementations. (#1277) »: https://git.io/JvxeX
<{^_^}> [nixpkgs] @zimbatm merged pull request #81209 → qcad: init at v3.24.2.1 → https://git.io/JvzVs
<{^_^}> [nixpkgs] @zimbatm pushed commit from @yvesf to master « qcad: init at 3.24.2.1 (#81209) »: https://git.io/Jvxe1
fendor has quit [Read error: Connection reset by peer]
zupo has quit [Remote host closed the connection]
zupo has joined #nixos
<ij> is there any reason why sudo shouldn't be present in systemd service file ExecStart environment?
<AmandaC> ... why would you use sudo in an systemd start line. You can set what user the job will run as with `User`
<gchristensen> I'd like to flip that question around: why should it be?
<gustavderdrache> gchristensen: you try running veruca_salt.exe without sudo
<cole-h> worldofpeace: I'm currently trying to package a gnome app, but am getting "JS ERROR: ImportError: No JS module 'main' found in search path" when I try to run the binary. Could you take a look at my derivation? https://gist.github.com/cole-h/9d65b27609a3d2930d48d8e858d423a6
<obadz> atemu12[m]: thx
<gchristensen> O.o
<cole-h> (when you have a moment; ping because I remember you're on the gnome team)
<jjwatt[m]> systemd is already privledged
<worldofpeace> cole-h: it's your lucky day https://github.com/NixOS/nixpkgs/pull/64536
<{^_^}> #64536 (by dtzWill, 39 weeks ago, open): foliate: init at 1.5.3
<jjwatt[m]> probably (one of) the reasons
<jjwatt[m]> Usually, you specify to what you want to step down your privs with systemd
<cole-h> worldofpeace: Oh wow :D Very cool, thanks.
<AmandaC> I assumed it was to run as a lower user, not becausse they were trying to elevate
<obadz> gchristensen / atemu12[m]: "Once a device is added to a VDEV, it cannot be removed." ⇒ how do you live with this limitation?
<jjwatt[m]> AmandaC: ah yeah. true.
phreedom has quit [Remote host closed the connection]
<atemu12[m]> obadz: I don't remove devices ;)
<worldofpeace> cole-h: It needs someone to pick it up though. maybe you can re-PR it 😸
<gchristensen> obadz: how often do you need to do that?
<gchristensen> (though device removal does exist now, with some limitations)
<obadz> gchristensen: I mean, can I downgrade from raid1 to 'single' until my new drive arrives or what not?
<cole-h> <3 worldofpeace If I end up using it in earnest, I probably will. Thanks!
<{^_^}> worldofpeace's karma got increased to 98
<cransom> you can go with a drive missing, that's fine.
<cole-h> Wow this is a beautiful epub reader holy moly
<gchristensen> obadz: your raidz1 stays a raid1, but is "degraded" until you get your extra disk
<cransom> replacing a drive doesn't mean you remove something from the pool
bqv has quit [Ping timeout: 260 seconds]
<atemu12[m]> obadz: You can always detach drives from mirrors
phreedom has joined #nixos
<obadz> ok maybe the limitation isn't formulated precisely then
<obadz> "When creating file VDEVs [..] the image files must be preallocated, and not sparse files or thin provisioned" ⇒ another one that's slightly annoying but again not a common usecase
knupfer has quit [Quit: knupfer]
<worldofpeace> cole-h: yeah, I think I'm also liking that ui better than https://github.com/babluboy/bookworm
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
<cole-h> And calibre lol
knupfer has quit [Client Quit]
knupfer has joined #nixos
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
jgeerds has joined #nixos
zeta_0 has joined #nixos
jgeerds has quit [Client Quit]
jgeerds has joined #nixos
<zeta_0> what is causing the syntax error here? https://dpaste.org/w3CT https://rycee.gitlab.io/home-manager/options.html#opt-programs.msmtp.extraConfig
<cole-h> The curly braces
<zeta_0> i'm trying to add the to the programs section of my home.nix configuration
CptCaptain has quit [Quit: WeeChat 2.7.1]
<cole-h> Also, pretty sure `types.lines` needs to be surrounded in double-single quotes (`''echo hi\necho bye''`), not single-double quotes
jgeerds has quit [Client Quit]
tv has quit [Ping timeout: 240 seconds]
xO1 has quit [Ping timeout: 260 seconds]
<{^_^}> [mobile-nixos-website] @samueldr pushed to master « Add March 2020 round-up »: https://git.io/JvxvC
<samueldr> cole-h: nah
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<samueldr> > builtins.typeOf ""
<{^_^}> "string"
<samueldr> > builtins.typeOf ''''
<{^_^}> "string"
<cole-h> It takes single-double quotes? Cool. I've just never seen that used in the packages I've looked at :P
<gchristensen> > builtins.typeOf ./.
<{^_^}> "path"
<gchristensen> > builtins.typeOf "${./.}"
<{^_^}> access to path '/var/lib/nixbot/state/nixpkgs' is forbidden in restricted mode
<samueldr> what the single double-quotes do is automatically strip the least common amount of whitespace in the string
<samueldr> sorry, the double-single-quotes
<zeta_0> i removed one of the braces, and it's still throwing a syntax error? https://dpaste.org/XYxP
<samueldr> (this is unnervingly hard to talk about!)
<cole-h> :D
<samueldr> all memebers of an attrset need to be terminated by a semi-colon, zeta_0
<samueldr> > { a = "a" }
<{^_^}> error: syntax error, unexpected '}', expecting ';', at (string):296:11
<samueldr> > { a = "a"; }
<{^_^}> { a = "a"; }
cosimone has quit [Quit: Quit.]
ixxie has quit [Remote host closed the connection]
<zeta_0> could one of you guys do a paste bin? i'm not sure what you mean? this is what i have so far: https://dpaste.org/oeLE
<cole-h> Is there a nice way to run a binary from the output of `nix-build` in the same command?
<gchristensen> $(nix-build ... --no-out-link)/bin/foo
<ottidmes> cole-h: I just do $(nix-build ...)/bin/<name> stuff
<zeta_0> do they need to be in their own seperate strings?
<cole-h> zeta_0: Not at the end of the `from`, `user`, etc lines, at the end of the extraConfig block (last double quote).
zarel has quit [Ping timeout: 240 seconds]
<cole-h> Darn, the one time `fish` lets me down. "Command substitutions not allowed"
<ottidmes> zeta_0: what editor do you use? I use vscode and its Nix highlighter makes it almost impossible to make syntax errors, they can highlighted immediately
aveltras has quit [Quit: Connection closed for inactivity]
knupfer has quit [Ping timeout: 260 seconds]
kiloreux_ has joined #nixos
<ottidmes> cole-h: how about just making a function/binary/script that does this for you
<gchristensen> ^ much better idea
<cole-h> Yeah, fair.
<gchristensen> move the smarts in to a nix build
<zeta_0> zeta_0: i'm using emacs, it has bare bones support for nix, it underlines syntax errors with a little message, but that's it
<zeta_0> ottidmes: ^
<energizer> does vscode do something more than that?
<zeta_0> whoops accidentily typed my own nick name
zarel has joined #nixos
<niso> zeta_0: i thought you wanted to configure msmtp with nix?
<ottidmes> energizer: nope, just highlighting of the errors, but they are hard to miss and so far have been able to prevent me making any syntax errors
<{^_^}> [nixpkgs] @mmilata opened pull request #84673 → Use qt5's mkDerivation in packages that otherwise crash → https://git.io/Jvxfe
kiloreux has quit [Ping timeout: 256 seconds]
<energizer> i see people have been working on nix lsp servers and tree-sitter parsers, are those somehow gonna provide more semantic information to the ide?
tv has joined #nixos
<zeta_0> niso: i am that piece of code is a component of the programs option in home.nix: https://dpaste.org/GY1H
<zeta_0> but the syntax errors are slowing me down, it's this one option that's messing me up
<lovesegfault> What do I do if my installCheckPhase errors with this: /nix/store/izwfky32fcnz4gg9vj6yl35x0x4x2g4v-stdenv-linux/setup: ./arcanist/bin/arc: /usr/bin/env: bad interpreter: No such file or directory
<andi-> You probably didn't patch the shebangs before
<niso> zeta_0: you want to configure your account with something like this: https://dpaste.org/pUra
<lovesegfault> andi-: I disabled the fixupPhase because it was patching php all wrong
<andi-> lovesegfault: -v to all wrong
<lovesegfault> andi-: I need php.withExtensions ... and it was patching to just php
<ottidmes> zeta_0: you really need to take the time to learn Nix, cause I immediate see syntactical errors with that paste
<flokli> lovesegfault: why does it have php available in first place?
dermetfan has quit [Ping timeout: 246 seconds]
<lovesegfault> flokli: I'm trying to unbreak arcanist on nixpkgs master
<zeta_0> ottidmes: ok finally fixed the syntax error: https://dpaste.org/Tox5
<flokli> lovesegfault: I'd just override php to a php with extensions
<flokli> and pass that into buildInputs
<flokli> and still let the rest take over of shebang patching
* lovesegfault tried
<ottidmes> zeta_0: 1) 3 open braces, 2 close braces 2) a string contained in braces, that is no valid attrset or argument destructering 3) Multiline strings are best done with '' rather than "
<lovesegfault> * tries
<zeta_0> ottidmes: agreed, i've been real busy with other stuff, i need to eventually set some time to learn nix, i read the nix pills 2 months ago, but that's about it
<evils> would a PR that adds a test that requires a custom kernel be acceptable? (this is for rasdaemon)
<zeta_0> ottidmes: what? the syntax errors are gone, so i figured that code is correct?
<flokli> lovesegfault: PR incoming
<zeta_0> ottidmes: i didn't paste bin my entire home.nix, only part of it
<lovesegfault> :D
<{^_^}> Channel nixos-20.03 advanced to https://github.com/NixOS/nixpkgs/commit/29eddfc36d7 (from 22 hours ago, history: https://channels.nix.gsc.io/nixos-20.03)
<ottidmes> zeta_0: you probably still want to use '' rather than " to prevent unnecessary whitespace, even if it works
<{^_^}> [nixpkgs] @flokli opened pull request #84674 → arcanist: bring back php with curl and json → https://git.io/Jvxfo
<flokli> ^ lovesegfault
<lovesegfault> flokli: That doesn't work, I don't think
<lovesegfault> the fixup still uses the php w/o extensions
<flokli> lovesegfault: it doesn't know about that php
<lovesegfault> (try building and then ./result/bin/arc help)
<flokli> I pass in php' everywhere
<flokli> eeew
<niso> zeta_0: incase it helps, here's a copy of my mail configuration: https://dpaste.org/PoN7
<morgrimm> Anyone know if there's a docs resource for path patching? or at least the most common methods?
<flokli> lovesegfault: this smells like https://github.com/NixOS/nixpkgs/pull/83896 doesn't work for CLI tools
<flokli> ^ etu
<{^_^}> #83896 (by etu, 1 week ago, merged): PHP: Make the default package more sane [v3]
<lovesegfault> Yep, that's probably what exploded it
<niso> zeta_0: while it needs some cleanup it will give you on idea on which options to use etc
<niso> s/will/should
<zeta_0> ottidmes: thanks for the tip, i changed it: https://dpaste.org/dxOn
morgrimm_ has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/f601ab37c2f (from 3 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<zeta_0> niso: thanks, hold on, i still need to go back and read your other messages as well
<zeta_0> back track
morgrimm has quit [Ping timeout: 265 seconds]
<zeta_0> niso: ok thanks for the links, i'll use them as a reference
eoli3n__ has quit [Ping timeout: 265 seconds]
<zeta_0> ottidmes++
<{^_^}> ottidmes's karma got increased to 31
<zeta_0> niso++
<{^_^}> niso's karma got increased to 4
<OrangeTetra> There are a lot of pull requests for updates. How would one test them to help them get updated in the repositories?
<zeta_0> i'm not sure if that's the correct way to setup protonmail with the msmtp configuration, i just replaced the gmail parts with protonmail
<evils> OrangeTetra: nixpkgs-review
<OrangeTetra> just do a nixos-review on the pr and say so?
<{^_^}> [nixpkgs] @flokli closed pull request #84674 → arcanist: bring back php with curl and json → https://git.io/Jvxfo
<evils> OrangeTetra: nixpkgs-review pr <pr number>, then give the application being updated a go to see if it still works
<OrangeTetra> evils: And if it does?
<evils> add a comment on the PR saying something like "works for me"
<{^_^}> [nixpkgs] @worldofpeace opened pull request #84675 → nixos/gnome-remote-desktop: enable pipewire → https://git.io/JvxJn
<OrangeTetra> evils: will do then. Thank you!
<evils> OrangeTetra: thank you, there's not enough people doing even this...
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<OrangeTetra> evils: Well, I accidentally forgot to mention which package one time... That was.. Let's just say my computer died before completion.
ddellacosta has quit [Ping timeout: 256 seconds]
<OrangeTetra> I've got the time these days, though, so I am thinking to help.
huevo5050 has joined #nixos
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/7a429e731e3 (from 4 days ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
LysergicDreams has quit [Ping timeout: 265 seconds]
cr4y1_ has quit [Ping timeout: 258 seconds]
LysergicDreams has joined #nixos
endocrimes has quit [Ping timeout: 265 seconds]
<huevo5050> hi, how I could install external software that uses nix as build system?
<huevo5050> for instance. https://github.com/urbit/urbit. I can git clone and install with nix-env -i. But how can i install it from my configuration.nix?
endocrimes has joined #nixos
<huevo5050> have sense? I tried to make a derivation but nix commands fails into nixos-rebuild environment
tv has quit [Ping timeout: 256 seconds]
<zeta_0> huevo5050: in your configuration.nix you can use: environment.systemPackages = []; , to install the nix pkg you need
<huevo5050> its an external nix pkg, not in nixpkgs repositories
<zeta_0> huevo5050: it's in nix packages, so you shouldn't need to clone it unless you are developing it, https://nixos.org/nixos/packages.html?channel=nixos-19.09&query=urbit
erasmas has quit [Quit: leaving]
philr has joined #nixos
cartwright has quit [Remote host closed the connection]
<huevo5050> zeta_0 that one its a very old version, when they doesnt use nix as their build system
<notgne2> huevo5050: `environment.systemPackages = [ (import (builtins.fetchGit { url = "etc"; rev = "etc"; }) {}).whatever ];
<notgne2> something like that probably
cartwright has joined #nixos
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
<notgne2> in this case it should be `environment.systemPackages = [ (import (builtins.fetchGit { url = "https://github.com/urbit/urbit.git"; rev = "2bfcf20bf7523b353cf99ba5f93dae5873f9c0db"; })).urbit ];` I think
markus1199 has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #84581 → skim: fix bash completion → https://git.io/JvAuA
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvxJQ
<{^_^}> [nixpkgs] @marsam merged pull request #84667 → buildah: 1.14.6 -> 1.14.7 → https://git.io/JvAja
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvxJ7
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/e10c65cdb35 (from 3 days ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
<huevo5050> notgne2 i get problems because Makefile in that project is using nix-build underneath, and looks like nixos-rebuild environment doesnt like run nix into (recursive nix)
cybrian has joined #nixos
<notgne2> I don't think that should use the makefile unless I'm missing something
anirrudh has joined #nixos
anirrudh has quit [Client Quit]
<huevo5050> ok ill try with import tyvm
o1lo01ol_ has joined #nixos
o1lo01ol1o has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84676 → vim: 8.2.0343 -> 8.2.0510 → https://git.io/JvxJp
markus1189 has joined #nixos
<notgne2> actually, it looks like it uses LFS stuff which I think breaks builtins.fetchGit
tv has joined #nixos
<thequux[m]> Another option is to just check out the tree somewhere on your filesystem and simply import it by path
pbogdan has quit [Ping timeout: 256 seconds]
selfsymmetric-mu has joined #nixos
<selfsymmetric-mu> I'd like to install `dhall-flycheck.nix` from here, but it's not called `default.nix` so I can't just import a fetchFromGitHub expression.
<selfsymmetric-mu> Also (secondarily) I tried to install `dhall.el` with `melpaBuild`, but it doesn't like the fact that it's called `dhall.el`. I guess it's not a real package.
cosimone has joined #nixos
<notgne2> I actually can't find how to make fetchGit (or pkgs.fetchgit either) work with LFS at all
<{^_^}> [nixpkgs] @r-ryantm opened pull request #84677 → victoriametrics: 1.33.1 -> 1.34.5 → https://git.io/JvxUq
<huevo5050> notgne2 i read that i could leverage postfetch
reallymemorable has quit [Quit: reallymemorable]
<selfsymmetric-mu> Yeah, I don't know how to fetch an arbitrary file…
cybrian has quit [Ping timeout: 264 seconds]
<selfsymmetric-mu> How can I reference the signature of a function like `fetchFromGitHub`? Maybe using the REPL?
reallymemorable has joined #nixos
<selfsymmetric-mu> If I just write `pkgs.fetchFromGitHub` I get a mess like { __functionArgs = { ... }; __functor = «lambda @ /nix/store/irv1wqx914wfsn35pybjf6zh1xixs69y-nixpkgs-20.03beta1155.29eddfc36d7/nixpkgs/lib/trivial.nix:318:19»; override = { ... }; }
<niso> notgne2: couldn't you just build it with nix-build nix/release.nix -A linux64?
<selfsymmetric-mu> Oh using `:p <expr>` helps here somewhat.
reallymemorable has quit [Client Quit]
<selfsymmetric-mu> How do I override `default.nix` in `fetchFromGitHub`?
<notgne2> niso: oh, I must've missed something, because `(import "${builtins.fetchTarball { url = "https://github.com/urbit/urbit/archive/master.tar.gz"; sha256 = "1zbq094gmwj62a0arph2hmchw03hy4j4xchmd03bx2syhbi9bxjk"; }}/nix/release.nix").linux64.urbit` seems to work actually
<notgne2> huevo5050: ^
snicket has quit [Ping timeout: 240 seconds]
<energizer> i haven't been using gnome-keyring, i'm wondering when it's useful?
<niso> nice
srid has quit [Quit: Connection closed for inactivity]
cosimone has quit [Quit: Quit.]
mbrgm_ has joined #nixos
<Amit[m]> Does anyone have experience installing nixos specifically on a prgmr.com vps? The recommended configuration from their wiki almost works except the xen-kbdfront kernel module causes issues with systemd-udev-trigger restarting. I'm now strating from scratch using the xen-domU base in the repository with... very slow success so far and wondering if anyone is ahead of me
mbrgm has quit [Ping timeout: 256 seconds]
mbrgm_ is now known as mbrgm
cosimone has joined #nixos
<niso> selfsymmetric-mu: i think you are looking for something like this:
<niso> selfsymmetric-mu: (import "${pkgs.fetchFromGitHub { <insert repo details here> }}/dhall-flycheck.nix")
<selfsymmetric-mu> Ah, thank you!
<selfsymmetric-mu> niso++
<{^_^}> niso's karma got increased to 5
<selfsymmetric-mu> How can I query my current configuration from `nix-repl`? Steam is telling me to add `hardware.opengl.driSupport32Bit = true;` even though I already have that setting in my configuration.nix.
<andi-> > (<nixos/config>).config.time.timeZone
<{^_^}> file 'nixos/config' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):296:2
<andi-> > (import <nixos/config> {}).config.time.timeZone
<{^_^}> file 'nixos/config' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):296:9
<andi-> selfsymmetric-mu: ^ like that should work
<andi-> err <nixpkgs/nixos>
<andi-> not <nixos/config>
<selfsymmetric-mu> andi-++
<{^_^}> andi-'s karma got increased to 26
<selfsymmetric-mu> (import <nixpkgs/nixos> {}).config.hardware.opengl.driSupport32Bit returns `true`.
<selfsymmetric-mu> Why is Steam telling me it's not set up then?
<selfsymmetric-mu> Maybe I just need to reboot.
<selfsymmetric-mu> I'll try that dhall fix first.
<selfsymmetric-mu> "syntax error, unexpected DOLLAR_CURLY, expecting ')'"
<selfsymmetric-mu> Oh, quotes. Hah.
laduke has quit [Quit: WeeChat 2.7]
<selfsymmetric-mu> Hm. It's not of type "package". How do I know what type it IS?
<niso> selfsymmetric-mu: can you run glxinfo?
o1lo01ol_ has quit [Remote host closed the connection]
<selfsymmetric-mu> niso: not found. Shall I install it?
anirrudh has joined #nixos
<niso> selfsymmetric-mu: just execute it in a shell
<bqv[m]> Package is just a special attrset, right?
<selfsymmetric-mu> nix-repl says that this is a lambda, I'll try executing it
<niso> selfsymmetric-mu: would you mind posting the query which returns the package error?
<selfsymmetric-mu> Here's what I've got so far: https://gist.github.com/d9304e12eb2081ff688e7a8a04ffffb2
rardiol_ has joined #nixos
<selfsymmetric-mu> And here's the upstream package: https://github.com/Profpatsch/dhall-flycheck/blob/master/dhall-flycheck.nix
<selfsymmetric-mu> Looks like it takes a bunch of arguments…is there an easy way for me to provide those?
rardiol has quit [Ping timeout: 258 seconds]
anirrudh has quit [Ping timeout: 256 seconds]
<bqv[m]> Those are haskell packages
<selfsymmetric-mu> niso: Here's what I get from glxinfo: https://gist.github.com/matthew-piziak/2713011848fc2537325a93ed63ddb70a
peelz has quit [Remote host closed the connection]
<bqv[m]> You just need to callpackage from haskell
<selfsymmetric-mu> callpackage
<bqv[m]> Not normal, haskell
<selfsymmetric-mu> not normal
<bqv[m]> :)
<niso> selfsymmetric-mu: fyi: this is the reason steam fails to install - it attempts to run glxinfo and fails
<selfsymmetric-mu> niso: Wow. First time I know about this command. Steam was working earlier today.
<selfsymmetric-mu> I did run some upgrade rebuilds…
<bqv[m]> > pkgs.haskellPackages.callPackage
<{^_^}> <LAMBDA>
<bqv[m]> nice, on the first try
<selfsymmetric-mu> bqv[m]: Thanks!!
<niso> selfsymmetric-mu: incase you didn't restart: good luck (atleast with nixos you can rollback :P )
<selfsymmetric-mu> bqv[m]: What is the type signature of this lambda?
<selfsymmetric-mu> The REPL isn't helpful.
<bqv[m]> > pkgs.haskellPackages.callPackage dhall-flycheck.nix {}
<{^_^}> undefined variable 'dhall-flycheck' at (string):296:34
<bqv[m]> Thats what you want
<bqv[m]> (ignore the error)
<selfsymmetric-mu> And you just know that from experience?
<bqv[m]> Yes
<selfsymmetric-mu> That worked! I encountered missing dependencies, but I'll figure out what the maintainer intends from here.
<niso> selfsymmetric-mu: i assume you are looking for this? https://nixos.org/nixos/nix-pills/callpackage-design-pattern.html
<selfsymmetric-mu> niso: What I'm REALLY looking for is a way to easily look up the signature of functions and records.
<selfsymmetric-mu> Instead I'm grepping for them in GitHub which is just, ick.
<bqv[m]> Nix barely has types
<bqv[m]> It wouldn't help much
<selfsymmetric-mu> Well, it tells me "expected X", but it doesn't tell me what type it actually GOT, nor how to get there.
<niso> selfsymmetric-mu: you might want to ripgrep them locally ;)
<selfsymmetric-mu> And I don't like the excuse that it wouldn't help much, since at least knowing the number of arguments is important.
<selfsymmetric-mu> niso: Yeah I occasionally have luck with `nix edit`.
<selfsymmetric-mu> But it's a poor experience.
<selfsymmetric-mu> Dumb Emacs integration: https://gist.github.com/c784460e9824804a72b40e43d324056f
reallymemorable has joined #nixos