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
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/b7bdf48e3fa (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
cosimone has quit [Ping timeout: 246 seconds]
<GrimSleepless> I have this PR that has been waiting there for 2 weeks, backport to 19.09 of brave browser. https://github.com/NixOS/nixpkgs/pull/81789
<{^_^}> #81789 (by JeffLabonte, 1 week ago, open): [19 09] brave 1.4.95 to 1.5.112
<GrimSleepless> 14 days ***
<{^_^}> [nixpkgs] @JeffLabonte opened pull request #82895 → brave: 1.4.96 -> 1.5.112 → https://git.io/Jv1Zr
blaggacao has quit [Read error: Connection reset by peer]
mbrgm has quit [Ping timeout: 246 seconds]
mbrgm_ has joined #nixos
mbrgm_ is now known as mbrgm
wildtrees has quit [Quit: Leaving]
blaggacao has joined #nixos
<{^_^}> [nixpkgs] @grahamc pushed 3 commits to release-19.09: https://git.io/Jv1Zi
<{^_^}> [nixpkgs] @grahamc merged pull request #81789 → [19 09] brave 1.4.95 to 1.5.112 → https://git.io/JvVZR
silky has quit [Quit: leaving]
siiky has joined #nixos
gila has joined #nixos
<{^_^}> [nixpkgs] @JeffLabonte opened pull request #82896 → 20 03 backport protonvpn cli ng → https://git.io/Jv1nq
gila has quit [Ping timeout: 264 seconds]
enteee has quit [Ping timeout: 265 seconds]
<ottidmes> is it just my side of things or is builtins.fetchGit for Nixpkgs slow (as in minutes)? I have experienced this on both my home network (desktop, laptop, server) and different networks (friend's network + VPSes), in all cases I am used the same Nixpkgs release to build, so maybe it is that, or maybe it is just github
<GrimSleepless> Hey guys! I have this PR that hasn't been merged but it was approved. https://github.com/NixOS/nixpkgs/pull/81735
<{^_^}> #81735 (by JeffLabonte, 2 weeks ago, open): Protonvpn ng update 2.2.0 to 2.2.2
<{^_^}> [nixpkgs] @Infinisil opened pull request #82897 → lib/options: Only recurse into visible sub options → https://git.io/Jv1nn
<GrimSleepless> ottidmes: I find Github to be slow lately.
blaggacao has quit [Ping timeout: 256 seconds]
gustavderdrache has quit [Quit: Leaving.]
<hexa-> especially fetching nixpkgs changes is slow :<
blaggacao has joined #nixos
Mbarak has joined #nixos
reallymemorable has joined #nixos
<ottidmes> Good thing it is not just me, although I had rather found out I just had to update and it would be fixed of course :P
<GrimSleepless> Thank you grahamc[m] ! :)
<infinisil> ottidmes: fetchGit is pretty bad for nixpkgs, because it will have to fetch *all* commits, which is like half a GB
<{^_^}> [nixpkgs] @ryantm merged pull request #82830 → ivan: 057 -> 058 → https://git.io/JvXKl
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/Jv1nW
<infinisil> I recommend using fetchTarball instead
<infinisil> With `https://github.com/NixOS/nixpkgs/tarball/<revision>`
<ottidmes> infinisil: no wonder... I thought it would just fetch the working directory, i.e. the same as fetchTarball would
<infinisil> Oh, could it do that?
<infinisil> I'd think a `git clone --depth=1` would work
<infinisil> Although, no that doesn't work for arbitrary commits
<infinisil> Never mind
<ottidmes> If I check the out path of fetchGit I get a directory in /nix/store without a .git folder
<infinisil> ottidmes: Check ~/.cache/nix
<infinisil> It should clone it to there
<infinisil> (in some subdir)
<ottidmes> infinisil: you are right... 1.7GB
WinchellsM has quit [Quit: Lost terminal]
<ottidmes> Well then, I am changing all my fetchGit calls to fetchTarball right now XD
<infinisil> :D
Mbarak has quit [Remote host closed the connection]
<arcnmx> hmm modules went boom somehow o:
<arcnmx> my config is mad at me now :<
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<arcnmx> Seems to be caused by https://github.com/NixOS/nixpkgs/pull/82751/commits/15c873b486347e7861c64fb0b5a7852be9fc82e4 , reverting makes it not explode
absoluutely_ has joined #nixos
<ottidmes> infinisil: Damn, from minutes to seconds, thanks!
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #82899 → half: 1.12.0 -> 2.1.0 → https://git.io/Jv1nP
alexherbo2 has quit [Ping timeout: 256 seconds]
absoluutely_ has quit [Remote host closed the connection]
absoluutely_ has joined #nixos
captjakk has quit [Ping timeout: 264 seconds]
work_ has quit [Quit: Connection closed for inactivity]
<infinisil> arcnmx: Hehe, I broke your config again :P
<infinisil> What's the problem with it?
acowley has quit [Ping timeout: 265 seconds]
thc202 has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @notbandali opened pull request #82900 → maintainers: update entry for notbandali (previously aminb) → https://git.io/Jv1nd
orivej has quit [Ping timeout: 256 seconds]
siiky has quit [Quit: leaving]
<{^_^}> [nixpkgs] @bhipple opened pull request #82901 → rust: remove legacy cargo fetcher → https://git.io/Jv1nA
<avn> Folks, anyone familiar with webcams+nixos? I'd try to figure out how to use uvcdynctrl (and motion) with my logitech c270.
xelxebar has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @zowoq opened pull request #82902 → slirp4netns: 0.4.3 -> 0.4.4 → https://git.io/Jv1nx
xelxebar has joined #nixos
<ottidmes> mounting /dev/null on /... guess I made a mistake somewhere XD
absoluutely_ has quit [Ping timeout: 246 seconds]
sigmundv_ has quit [Read error: Connection reset by peer]
sigmundv_ has joined #nixos
siiky has joined #nixos
m0rphism has quit [Ping timeout: 250 seconds]
butterthebuddha has joined #nixos
avn has quit [Ping timeout: 265 seconds]
captn3m0 has quit [Ping timeout: 246 seconds]
captn3m0 has joined #nixos
gila has joined #nixos
growpotkin has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #82888 → gitAndTools.gh: 0.6.1 -> 0.6.2 → https://git.io/Jv1sm
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jv1ck
bvdw has quit [Read error: Connection reset by peer]
<arcnmx> infinisil: can get a detailed log in a bit, but causes infinite recursion
<{^_^}> [nixpkgs] @freepotion opened pull request #82903 → ivan: add full iconset → https://git.io/Jv1cL
bvdw has joined #nixos
justanotheruser has quit [Ping timeout: 246 seconds]
gila has quit [Ping timeout: 250 seconds]
sigmundv_ has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @sevanspowell opened pull request #82904 → ekg-core,ekg-prometheus-adapter: unmark broken → https://git.io/Jv1cs
<arcnmx> infinisil: it's complaining about an option in a mkMerge surrounded by a mkIf if that helps ><
_cyris212 has joined #nixos
cyris212 has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @zowoq opened pull request #82905 → libslirp: init at 4.2.0 → https://git.io/Jv1cG
<{^_^}> [nixpkgs] @sevanspowell opened pull request #82906 → tasty-tap: fix failing build → https://git.io/Jv1cc
taktoa[c] has quit [Read error: Connection reset by peer]
taktoa[c] has joined #nixos
<infinisil> arcnmx: Hm can't reproduce with just that
<infinisil> The relevant module code and an error trace would be nice
<{^_^}> [nixpkgs] @sevanspowell opened pull request #82907 → Feature/prometheus dont jailbreak → https://git.io/Jv1cu
butterthebuddha has quit [Quit: Textual IRC Client: www.textualapp.com]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/Jv1cV
avn has joined #nixos
<{^_^}> [mobile-nixos] @samueldr opened pull request #100 → Fix libhybris regression following gcc target-specific libraries split → https://git.io/Jv1cP
bhipple has joined #nixos
plutes has quit [Remote host closed the connection]
plutes has joined #nixos
<cole-h> bhipple++ Thanks for finding something where #82342 fails. I'll see if I can't dive into it later (unless someone beats me to it)
<{^_^}> bhipple's karma got increased to 8
<{^_^}> [nixpkgs] @zowoq opened pull request #82908 → fd: use installShellFiles → https://git.io/Jv1ch
ottidmes has quit [Ping timeout: 264 seconds]
captjakk has joined #nixos
ris has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @dominikh opened pull request #82909 → epkowa: fix parsing of interpreters → https://git.io/Jv1CU
<infinisil> arcnmx: Can reproduce
captjakk has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @cdepillabout merged pull request #82904 → ekg-core,ekg-prometheus-adapter: unmark broken → https://git.io/Jv1cs
<{^_^}> [nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/Jv1CT
<arcnmx> ><
<{^_^}> [nixpkgs] @cdepillabout merged pull request #82906 → tasty-tap: fix failing build → https://git.io/Jv1cc
<{^_^}> [nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/Jv1CL
captjakk has joined #nixos
phirsch has joined #nixos
<phirsch> Hi all, anyone got an idea what could cause this:
<phirsch> test
<infinisil> Wait can i
drakonis has quit [Quit: WeeChat 2.7.1]
<infinisil> Yeah I can
drakonis has joined #nixos
thomashoneyman has joined #nixos
<phirsch> (using unknown web client, apparently with no multi-line capability. Sorry!) My problem: "*** longjmp causes uninitialized stack frame ***: Singularity runtime parent terminated" when running singularity under nixos 19.09. Stack: _start __libc_start_main/__libc_csu_init/init/wait_child/kill/kill (SIGABORT).
<thomashoneyman> Quick question re: cachix (if that's cool here) -- I'm switching a couple open source libraries on GitHub to use GitHub Actions + Cachix. Is it better to set up a cache per repository or a cache per organization?
<infinisil> (yeah I can)
<thomashoneyman> ie. lib1.cachix.org and lib2.cachix.org or organization.cachix.org which both libraries use
drakonis1 has joined #nixos
drakonis has quit [Client Quit]
drakonis1 is now known as drakonis
<cole-h> Probably best to do organixzation.cachix.org
<cole-h> So you don't have to add multiple substituters to your list
lordcirth_ has quit [Remote host closed the connection]
lordcirth_ has joined #nixos
<{^_^}> [nixpkgs] @hedning pushed 5 commits to gnome-3.36: https://git.io/Jv1Cl
<{^_^}> [nixpkgs] @marsam merged pull request #82854 → amass: 3.4.4 -> 3.5.0 → https://git.io/JvXdi
<{^_^}> [nixpkgs] @marsam pushed 4 commits to master: https://git.io/Jv1CB
<phirsch> What I tried is the following, based on an example out of the singularity docs: nix run -i -f channel:nixos-19.09 singularity -c singularity --debug run library://sylabsed/examples/lolcow
kai_w_ has joined #nixos
<phirsch> It would be great if anyone on nixos 19.09 could confirm that this works - In which case I would be facing a problem with my local install.
<{^_^}> [nixpkgs] @marcus7070 opened pull request #82910 → python3Packages.spyder: add v3.x → https://git.io/Jv1Cz
kai_w has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @marsam opened pull request #82911 → docker-slim: 1.28.1 -> 1.29.0 → https://git.io/Jv1Cw
Shouou has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @marsam opened pull request #82912 → postgresqlPackages.pg_auto_failover: 1.0.6 -> 1.2 → https://git.io/Jv1Ci
reallymemorable has quit [Quit: reallymemorable]
wavirc22 has quit [Ping timeout: 250 seconds]
<avn> Folks, anyone familiar with webcams+nixos? I'd try to figure out how to use uvcdynctrl (and motion) with my logitech c270. (sorry for repearing, I disconnected right after asking first time)
<Ankhers> Does anyone know much about rust on NixOS? I am trying to get into a nix-shell that can build a package, but one of the libs is looking for libclang.so and a couple other things. How can I get them into a place where cargo can find them?
<{^_^}> [nixpkgs] @marsam opened pull request #82913 → postgresqlPackages.timescaledb: 1.6.0 -> 1.6.1 → https://git.io/Jv1CQ
lordcirth_ has quit [Remote host closed the connection]
lordcirth_ has joined #nixos
ddellacosta has quit [Ping timeout: 256 seconds]
reallymemorable has joined #nixos
dvim has joined #nixos
lordcirth_ has quit [Remote host closed the connection]
lordcirth_ has joined #nixos
lordcirth_ has quit [Read error: Connection reset by peer]
lordcirth__ has joined #nixos
h0m1 has quit [Ping timeout: 272 seconds]
lordcirth__ has quit [Remote host closed the connection]
<Ankhers> cole-h: That is what I have been trying, I am still getting an error about being unable to find libclang.so. If I manually set the LIBCLANG_PATH var in my shell.nix, it works as expected, but I feel like I should not need to do that.
lordcirth__ has joined #nixos
<Ankhers> (But when I do that, I end up getting errors about being unable to find stdbool.h and friends, but that is a different matter)
davidak has quit [Ping timeout: 246 seconds]
h0m1 has joined #nixos
justanotheruser has joined #nixos
lordcirth__ has quit [Remote host closed the connection]
<cole-h> And you're sure you have `llvmPackages.clang-unwrapped.lib` in your inputs?
captjakk has quit [Remote host closed the connection]
lordcirth__ has joined #nixos
captjakk has joined #nixos
wavirc22 has joined #nixos
<cole-h> It looks like `LIBCLANG_PATH` is the nominal way to do this; c.f. https://github.com/andir/libnixstore-sys/blob/331160655af8f5fc7d571a2a3bbb8e73df211d44/shell.nix
lordcirth__ has quit [Remote host closed the connection]
<Ankhers> No. I was using the llvmPackages.libclang and I also tried llvmPackages.libclang.lib. I will try clang-unwrapped instead.
lordcirth__ has joined #nixos
<phirsch> Just realised I still had an overlay in place which I earlier created in an effort to try to update to singularity 3.4 which we are using on a cluster. I now dropped that overlay and am back to singularity 3.2.1 from stock nixos-19.09, but it still fails (which was the reason I tried to upgrade in the first place). It now fails with 'container
<phirsch> creation failed: mount /proc/self/fd/3->/var/singularity/mnt/session/rootfs error: can't mount image /proc/self/fd/3: failed to mount squashfs filesystem: invalid argument'
<Ankhers> clang-unwrapped.lib did not help me here.
<{^_^}> [nixpkgs] @mt-caret opened pull request #82914 → satysfi: 0.0.3 -> 0.0.4 → https://git.io/Jv1Wv
lordcirth__ has quit [Read error: Connection reset by peer]
lordcirth__ has joined #nixos
<phirsch> Please, could anyone on nixos-19.09 check whether you can successfully run 'singularity --debug run library://sylabsed/examples/lolcow', possibly using 'nix run -i -f channel:nixos-19.09 singularity -c singularity --debug run library://sylabsed/examples/lolcow'? Thanks!
lordcirth_ has joined #nixos
captjakk has quit [Ping timeout: 250 seconds]
<Ankhers> Alright, I guess I am using LIBCLANG_PATH, any ideas how I can get stdbool.h and friends?
<cole-h> ,locate include/stdbool.h
<{^_^}> Found in packages: zig, mkcl, root, sdcc, swift, z88dk, tinycc, arduino, castxml, musl.dev, arduino_core, gcc-unwrapped, gcc-arm-embedded, emscriptenfastcomp, gcc-arm-embedded-5, gcc-arm-embedded-6, gcc-arm-embedded-7, gcc-arm-embedded-4_7, gcc-arm-embedded-4_8, gcc-arm-embedded-4_9, llvmPackages.libclang, llvmPackages.clang-polly-unwrapped
lordcirth__ has quit [Ping timeout: 246 seconds]
<Ankhers> Adding llvmPackages.libclang did not seem to work, nor did adding .lib to it. Is there some env var that is normally used for this?
<cole-h> tbh I would have tried gcc for stdbool
<cole-h> Oh, you might need pkgconfig
<{^_^}> [nixpkgs] @Infinisil opened pull request #82915 → Fix infrec dependent option sets → https://git.io/Jv1Wt
<{^_^}> [nixpkgs] @marsam opened pull request #82916 → gitAndTools.gh: fix build on darwin → https://git.io/Jv1Wm
<{^_^}> [nixpkgs] @jonringer opened pull request #82917 → [20.03] texworks: fix qt build → https://git.io/Jv1WO
<{^_^}> [nixpkgs] @jonringer merged pull request #82902 → slirp4netns: 0.4.3 -> 0.4.4 → https://git.io/Jv1nx
<{^_^}> [nixpkgs] @jonringer pushed commit from @zowoq to master « slirp4netns: 0.4.3 -> 0.4.4 »: https://git.io/Jv1WZ
<Ankhers> Having gcc-unwrapped in my buildInputs and pkgconfig in either my buildInputs or nativeBuildInputs seems to do nothing for finding stdbool.h
<cole-h> What are you actually trying to build, if I might ask
<Ankhers> I'm trying to build a hello world godot application using the rust gdnative bindings.
xelxebar has quit [Ping timeout: 240 seconds]
xelxebar has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #82908 → fd: use installShellFiles → https://git.io/Jv1ch
<{^_^}> [nixpkgs] @jonringer pushed commit from @zowoq to master « fd: use installShellFiles »: https://git.io/Jv1W4
Guest65971 has joined #nixos
gila has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #82895 → brave: 1.4.96 -> 1.5.112 → https://git.io/Jv1Zr
<{^_^}> [nixpkgs] @marsam opened pull request #82918 → flow: 0.120.1 -> 0.121.0 → https://git.io/Jv1W0
<{^_^}> [nixpkgs] @jonringer pushed commit from @JeffLabonte to release-20.03 « brave: 1.4.96 -> 1.5.112 »: https://git.io/Jv1WE
<Ankhers> I completely forgot that I actually went through this process a while ago. I don't know why exactly, but I never got it working using mkShell, I had to use clangStdenv.mkDerivation. Sorry to have wasted your time! Thank you very much for helping though!
<cole-h> It works with that?
<{^_^}> [nixpkgs] @jonringer merged pull request #82894 → brave: 1.4.96 -> 1.5.112 → https://git.io/Jv1ZC
<{^_^}> [nixpkgs] @jonringer pushed commit from @JeffLabonte to master « brave: 1.4.96 -> 1.5.112 »: https://git.io/Jv1Wg
<cole-h> You didn't waste my time :P If anything, I wasted yours, debugging from my armchair. Glad you got it to work 🎉
<{^_^}> [nixpkgs] @jonringer merged pull request #82901 → rust: remove legacy cargo fetcher → https://git.io/Jv1nA
<{^_^}> [nixpkgs] @jonringer pushed commit from @bhipple to master « rust: remove legacy cargo fetcher »: https://git.io/Jv1W2
gila has quit [Ping timeout: 250 seconds]
cptchaos83 has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
cptchaos83 has joined #nixos
acarrico has quit [Ping timeout: 256 seconds]
Guest65971 has quit [Quit: Leaving]
phirsch has quit [Remote host closed the connection]
<{^_^}> #82915 (by Infinisil, 22 minutes ago, open): Fix infrec dependent option sets
<{^_^}> Channel nixos-20.03-small advanced to https://github.com/NixOS/nixpkgs/commit/6bbdce2b156 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-20.03-small)
abathur has quit [Ping timeout: 256 seconds]
growpotk- has joined #nixos
<{^_^}> [nixpkgs] @artemist opened pull request #82919 → chromium: Add option to enable ozone (for Wayland) → https://git.io/Jv1WH
lordcirth_ has quit [Read error: Connection reset by peer]
lordcirth_ has joined #nixos
lordcirth_ has quit [Remote host closed the connection]
lordcirth_ has joined #nixos
bhipple has quit [Ping timeout: 256 seconds]
felixfoertsch has joined #nixos
felixfoertsch23 has quit [Ping timeout: 246 seconds]
bhipple has joined #nixos
glittershark has quit [Ping timeout: 250 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/Jv1WA
<{^_^}> [nixpkgs] @cdepillabout merged pull request #82907 → Feature/prometheus dont jailbreak → https://git.io/Jv1cu
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
spacefrogg has joined #nixos
butterthebuddha has joined #nixos
<cole-h> lovesegfault: Change PR title to match package version >:(
* lovesegfault changes
malSet has joined #nixos
abathur has joined #nixos
<cole-h> lovesegfault: You can request reviewers again? :O
<lovesegfault> ye
<cole-h> ??? GH wyd
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @mmilata opened pull request #82920 → nixos/jitsi-meet: init → https://git.io/Jv1lZ
jluttine has quit [Ping timeout: 250 seconds]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<cole-h> lovesegfault: All those broken packages... why do they show up in a build that only takes `lib`, `fetchFromGitHub`, and `stdenv`???
<lovesegfault> cole-h: what pkgs?
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<lovesegfault> good question... wat
<cole-h> nixpkgs-review been real weird lately
pjt_014 has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @veprbl merged pull request #82821 → cleanup duplicate Latin Modern fonts → https://git.io/JvXVC
<{^_^}> [nixpkgs] @veprbl pushed 4 commits to master: https://git.io/Jv1ln
malSet has joined #nixos
Guest55550 has quit [Quit: Connection closed for inactivity]
malSet has quit [Read error: Connection reset by peer]
jluttine has joined #nixos
<cole-h> lovesegfault: Oh something I just saw: description should be something like "An alternative for non-interactive ssh auth" or smth
bhipple has quit [Ping timeout: 256 seconds]
<lovesegfault> cole-h: why?
<lovesegfault> it's an alternative to the more known sshpass
<lovesegfault> which does non-interactive password ssh auth
<cole-h> Standard form for descriptions to start with "A" or "An"
bhipple has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
* lovesegfault grumbles
<lovesegfault> ok
<cole-h> ;)
<lovesegfault> fixed :)
jb55 has quit [Ping timeout: 240 seconds]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<cole-h> tank yoo
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
abathur has quit [Ping timeout: 256 seconds]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
thomashoneyman has quit [Ping timeout: 246 seconds]
malSet has joined #nixos
chagra_ has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<jackdk> What am I missing to get avahi mdns working on my nixos machine? I have avahi.enable, avahi.nssmdns and avahi.publish.enable=true
<notgne2> jackdk: looks like I have publish.addresses and publish.domain too
<notgne2> though I'm not familiar with what these affect, I set this up a while ago
<jackdk> ping myhostname.local falls over with "ping: myhosname.local: System error"
malSet has joined #nixos
chagra has quit [Ping timeout: 250 seconds]
iyzsong has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<jackdk> notgne2: thanks, that's got local pinging working. now to see if I can make my vm talk to it
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
ghasshee has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @Calvin-L opened pull request #82921 → Fix GCC compilation on MacOS 10.15 → https://git.io/Jv1l6
work_ has joined #nixos
<pjt_014> hi: I was here earlier with a problem cross-compiling. I tried something that was suggested, and got an error I don't know what to do with
reallymemorable has quit [Quit: reallymemorable]
<pjt_014> here's what I used: http://0x0.st/im7T.nix
<pjt_014> and I got an error that read "error: a 'armv6l-linux' with features {} is required to build '/nix/store/1qj24xjbaig24jh0rx62d2bdl49l5p74-bootstrap-tools.drv', but I am a 'aarch64-linux' with features {benchmark, big-parallel, kvm, nixos-test}"
davidak has joined #nixos
<pjt_014> am I vaugely on the right track?
<pjt_014> last time I x-compiled an iso it wasnt this obnoxious
<samueldr> with this invocation you're asking for a system type armv6l-linux to do the compilation
<samueldr> so there's no cross-compilation here
<samueldr> that's why it wants an armv6l-linux system (that it can't find)
<samueldr> the nixpkgs.crossSystem option is what's used to cross-compile a nixos configuration
ghasshee has quit [Ping timeout: 264 seconds]
<pjt_014> can I set that as a command line flag?
ghasshee has joined #nixos
<{^_^}> [nix] @Ericson2314 opened pull request #3424 → hashDerivationModulo: Generalize for multiple fixed ouputs per drv → https://git.io/Jv1l5
<pjt_014> I'm looking under the autocomplete for --option and dont think i see it
<pjt_014> although binfmt.emulatedsystems is looking maybe helpful
glasserc has quit [Ping timeout: 265 seconds]
<pjt_014> aaagh
<pjt_014> "activation script snippet 'binfmt' failed (1)"
<{^_^}> [nixpkgs] @Izorkin opened pull request #82922 → ejabberd: 20.01 -> 20.02 → https://git.io/Jv1lx
<pjt_014> and yet I can still build individual pkgs without it just fine.. :\
<pjt_014> guess I can change the crossSystem option temporarily
<pjt_014> still, there's gotta be *something* else in --option that does this
glasserc has joined #nixos
bhipple has quit [Remote host closed the connection]
drakonis has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #82858 → bluez: 5.53 -> 5.54 → https://git.io/JvXFW
<{^_^}> [nixpkgs] @jonringer pushed commit from @r-ryantm to staging « bluez: 5.53 -> 5.54 »: https://git.io/Jv18f
<dominikh> does anyone have experience with packaging printer drivers? the one I am looking at is https://github.com/philpem/printer-driver-ptouch – just going through make + make install gives me a filter and a bunch of foomatic XMLs, but how do I turn the XMLs into PPDs? foomatic-db-engine doesn't seem to be packaged; am I missing something, or has simply noone done the work yet?
<{^_^}> [nixpkgs] @marsam merged pull request #82916 → gitAndTools.gh: fix build on darwin → https://git.io/Jv1Wm
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jv18U
mjrosenb has joined #nixos
ghasshee has quit [Ping timeout: 264 seconds]
ghasshee has joined #nixos
gila has joined #nixos
gila has quit [Ping timeout: 264 seconds]
glasserc has quit [Ping timeout: 246 seconds]
glasserc has joined #nixos
growpotk- has quit [Quit: ZNC 1.7.5 - https://znc.in]
growpotk- has joined #nixos
drakonis has joined #nixos
<{^_^}> [nixpkgs] @veprbl pushed 3 commits to release-20.03: https://git.io/Jv18S
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
alp has quit [Ping timeout: 256 seconds]
growpotkin has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/a36056d0687 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
ptrcmd has quit [Ping timeout: 260 seconds]
alp has joined #nixos
Izorkin has quit [Ping timeout: 246 seconds]
Izorkin has joined #nixos
davidak has quit [Ping timeout: 256 seconds]
Izorkin has quit [Ping timeout: 250 seconds]
cyphase has quit [Ping timeout: 264 seconds]
abathur has joined #nixos
lovesegfault has quit [Quit: WeeChat 2.7.1]
drakonis has quit [Quit: WeeChat 2.7.1]
abathur has quit [Ping timeout: 256 seconds]
Izorkin has joined #nixos
wavirc22 has quit [Read error: Connection reset by peer]
zupo has joined #nixos
wavirc22 has joined #nixos
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
growpotk- has quit [Ping timeout: 250 seconds]
palo1 has joined #nixos
palo has quit [Ping timeout: 250 seconds]
palo1 is now known as palo
<{^_^}> [nixpkgs] @FRidh merged pull request #82910 → python3Packages.spyder: add v3.x → https://git.io/Jv1Cz
<{^_^}> [nixpkgs] @FRidh pushed 3 commits to master: https://git.io/Jv1B2
horek has joined #nixos
orivej has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/053ad4e0db7 (from 16 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
work_ has quit [Quit: Connection closed for inactivity]
butterthebuddha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FRidh has joined #nixos
butterthebuddha has joined #nixos
fraun has quit [Ping timeout: 256 seconds]
linarcx has joined #nixos
cyphase has joined #nixos
joehh1 has quit [Quit: WeeChat 2.4]
mjrosenb has quit [Ping timeout: 256 seconds]
mojjo has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mojjo> I'm setting up an nginx server on NixOS with two virtual hosts/sub domains. When using 'addSSL', I hit the LetsEncrypt rate limit. This is a known issue. But I wonder why this happens even on the first deploy to a fresh instance with new IP address for only two subdomains. How can that hit the rate limit of 50 certificates per IP/per month? Does
<mojjo> anyone have experience with this? I managed now to create the certificates up manually but I want to avoid that if possible.
sgrunert has joined #nixos
gila has joined #nixos
jakobrs has joined #nixos
gila has quit [Ping timeout: 264 seconds]
jakobrs has quit [Quit: WeeChat 2.7.1]
cole-h has quit [Ping timeout: 250 seconds]
FRidh2 has joined #nixos
FRidh has quit [Ping timeout: 264 seconds]
lordcirth_ has quit [Remote host closed the connection]
lordcirth_ has joined #nixos
maddo has joined #nixos
Jackneill has joined #nixos
oida has quit [Remote host closed the connection]
jtobin_ has quit [Ping timeout: 264 seconds]
oida has joined #nixos
jtobin has joined #nixos
alexherbo2 has joined #nixos
captn3m0 has quit [Ping timeout: 250 seconds]
captn3m0 has joined #nixos
zupo has joined #nixos
<pjt_014> mojjo: most of the room seems to be asleep right now (timezones). You may have better luck tomorrow if you try at around six hours earlier
<pjt_014> though I can personally tell you from looking that if you're using acme, it has an option for setting the interval
<pjt_014> do man configuration.nix and search for acme.renewInterval
ATuin has joined #nixos
jared-w has quit [Ping timeout: 256 seconds]
feepo has quit [Ping timeout: 256 seconds]
jackdk has quit [Ping timeout: 256 seconds]
claudiii has quit [Ping timeout: 272 seconds]
midchildan has quit [Ping timeout: 272 seconds]
dmj` has quit [Ping timeout: 272 seconds]
sethetter_ has quit [Ping timeout: 272 seconds]
cbarrett has quit [Ping timeout: 272 seconds]
heatm1s3r has quit [Ping timeout: 272 seconds]
claudiii has joined #nixos
midchildan has joined #nixos
alanz has quit [Ping timeout: 256 seconds]
r0bby has quit [Ping timeout: 256 seconds]
dukedave has quit [Ping timeout: 256 seconds]
lukego has quit [Ping timeout: 256 seconds]
nh2 has quit [Ping timeout: 256 seconds]
carter has quit [Ping timeout: 256 seconds]
valwal has quit [Ping timeout: 256 seconds]
bgupta has quit [Ping timeout: 240 seconds]
newhoggy has quit [Ping timeout: 240 seconds]
jlpeters has quit [Ping timeout: 240 seconds]
joshmeredith has quit [Ping timeout: 240 seconds]
nikita` has quit [Ping timeout: 240 seconds]
ctp has quit [Ping timeout: 240 seconds]
zertox has quit [Ping timeout: 240 seconds]
d10n-work has quit [Ping timeout: 240 seconds]
teehemkay has quit [Ping timeout: 256 seconds]
parseval has quit [Ping timeout: 240 seconds]
aria has quit [Ping timeout: 240 seconds]
teozkr has quit [Ping timeout: 240 seconds]
heatm1s3r has joined #nixos
sethetter_ has joined #nixos
cbarrett has joined #nixos
jackdk has joined #nixos
feepo has joined #nixos
jared-w has joined #nixos
dmj` has joined #nixos
zertox has joined #nixos
jlpeters has joined #nixos
aria has joined #nixos
ctp has joined #nixos
joshmeredith has joined #nixos
lukego has joined #nixos
alanz has joined #nixos
teozkr has joined #nixos
teehemkay has joined #nixos
bgupta has joined #nixos
parseval has joined #nixos
newhoggy has joined #nixos
d10n-work has joined #nixos
carter has joined #nixos
dukedave has joined #nixos
civodul has joined #nixos
nikita` has joined #nixos
nh2 has joined #nixos
r0bby has joined #nixos
valwal has joined #nixos
butterthebuddha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jackneill has quit [Ping timeout: 250 seconds]
wavirc22 has quit [Read error: Connection reset by peer]
<srk> ,locate xev
<srk> -> xorg.xev
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
wavirc22 has joined #nixos
<xfix> hm, OpenSSL 1.1.1e changed the behaviour of EOF according to changelog, that's probably why tests fail
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<hyper_ch> mojjo: "The main limit is Certificates per Registered Domain (50 per week). A registered domain is, generally speaking, the part of the domain you purchased from your domain name registrar. For instance, in the name www.example.com, the registered domain is example.com. In new.blog.example.co.uk, the registered domain is example.co.uk. We use the Public Suffix List to calculate the registered domain."
<xfix> > Properly detect EOF while reading in libssl. Previously if we hit an EOF while reading in libssl then we would report an error back to the application (SSL_ERROR_SYSCALL) but errno would be 0. We now add an error to the stack (which means we instead return SSL_ERROR_SSL) and therefore give a hint as to what went wrong.
<hyper_ch> so www.domain.tld, domain.tld, mail.domain.tld, smtp.domain.tld, imap.domain.tld, pop3.domain.tld --> 6 out of 50
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<hyper_ch> and if le gets triggered everytime you rebuild, you'll hit the limit pretty quickly
<hyper_ch> (there's a good reason why I prefer acme.sh and cron)
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
bahamas has joined #nixos
veske2 has joined #nixos
veske has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
bnjjj has joined #nixos
chimay has joined #nixos
<s1341> morning
<bnjjj> Hi all, I discover nixos, I already installed vscode but when I want to use extension like rust-analyser for example it doesn't work. Anyone here has already a good configuration with vscode and nixos ?
Jackneill has joined #nixos
<xfix> I believe you need to install rust-analyzer, and I don't think it's in nixpkgs
malSet has quit [Read error: Connection reset by peer]
<xfix> i think having `npm`, `vscode` and `rustup` installed should make it work, dunno
<bnjjj> already have these packages but it doesn't work :(
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
o1lo01ol1o has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<s1341> hey.
<s1341> how do i make a derivation which just clones a git repo, doesn't try to build it or anything?
<NobbZ[m]> `srcOnly` I think s1341
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<xfix> eh, openssl 1.1.1e is complicated on 19.09... why are there breaking changes in 1.1.1e :(
<hyper_ch> why would you just clone a git repo?
o1lo01ol1o has quit [Ping timeout: 250 seconds]
horek has quit [Quit: Leaving]
bnjjj has quit [Remote host closed the connection]
malSet has joined #nixos
veske2 has quit [Quit: This computer has gone to sleep]
veske has quit [Quit: This computer has gone to sleep]
aswanson has quit [Quit: WeeChat 2.7.1]
malSet has quit [Read error: Connection reset by peer]
<s1341> NobbZ[m]: thanks!
<NobbZ[m]> hyper_ch because it contains a bunch of shell files you want to source, no need to build something.
<Valodim[m]> Any ideas why those python packages specifically aren't reproducable? https://r13y.com/
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<Valodim[m]> Most of those aren't too surprising - gcc, ruby, meson.. but python packages like six?
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
knupfer has joined #nixos
ghasshee has quit [Ping timeout: 256 seconds]
mjrosenb has joined #nixos
ghasshee has joined #nixos
malSet has quit [Read error: Connection reset by peer]
rsoeldner has joined #nixos
relaxmax has joined #nixos
zupo has quit [Ping timeout: 250 seconds]
malSet has joined #nixos
ATuin has quit [Quit: WeeChat 2.7.1]
malSet has quit [Read error: Connection reset by peer]
gila has joined #nixos
mjrosenb has quit [Ping timeout: 265 seconds]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
zupo has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
ATuin has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<rnhmjoj> Valodim: looks like a randomly generated path made its way into the bytecode. it could probably be taken care of by using faketime, if the rng uses time as a seed
ottidmes has joined #nixos
<manveru> hmm, the ruby one should be easy to fix too
<rnhmjoj> is there anyone working on getting faketime in stdenv by default?
<rnhmjoj> i think this should fix most of the reproducibility issue we have
veske2 has joined #nixos
veske has joined #nixos
ghasshee has quit [Ping timeout: 250 seconds]
ghasshee has joined #nixos
m0rphism has joined #nixos
Ariakenom has joined #nixos
<manveru> but it was closed for some reason...
chloekek has joined #nixos
thc202 has joined #nixos
<manveru> for the ruby failure, patching the gemspec is probably easiest, the date isn't required there
<manveru> guile on the other hand, looks pretty crazy
ghasshee has quit [Ping timeout: 250 seconds]
<manveru> why does it have ccache dir, and why are there go files?
ghasshee has joined #nixos
opthomasprime has joined #nixos
organixpear has joined #nixos
__monty__ has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ariakenom has quit [Ping timeout: 264 seconds]
thc202 has quit [Ping timeout: 256 seconds]
thc202 has joined #nixos
srxl has joined #nixos
<srxl> What's the best way to package a node module that provides an executable (ie. standard) in an overlay?
<Valodim[m]> ah, so it's a new occurrence. interesting
<Valodim[m]> xfix: rnhmjoj: thanks for the insight :)
jdelStrother has joined #nixos
Ariakenom has joined #nixos
fendor has joined #nixos
KONTOL has left #nixos ["Connection"]
o1lo01ol1o has joined #nixos
<manveru> srxl: i usually use mkYarnPackage wrapped in a mkDerivation
<jdelStrother> ,channels
<jdelStrother> ...ok, apparently not a command.
<srk> bot is dead
<jdelStrother> rip
<srxl> manveru: Do you have any examples of that?
<manveru> jdelStrother: https://status.nixos.org/
kai_w_ has quit [Quit: Konversation terminated!]
<jdelStrother> manveru: ahh, I thought it meant #channels in the IRC sense.
<manveru> oh :)
<srxl> Cheers :)
kai_w has joined #nixos
<manveru> srxl: you'll need to run `yarn && yarn2nix > yarn.nix` in the dir as well, and delete the node_modules afterwards
mjrosenb has joined #nixos
<manveru> but i hope that'll get you started
<hyper_ch> hmmm, how do I set nixos to use an older version of thunderbird?
<zimbatm> hyper_ch: the first thing to do is to find a nixpkgs channel that has the older version
<zimbatm> the easiest way to do that is to look at the git log of the thunderbird definition to find the right commit ID
<zimbatm> I suppose that you still want to use all of the rest of the system with the latest channel
<jdelStrother> I'm using the sphinxsearch package, which has prefixed binaries like `sphinxsearch-searchd`. What's the nix-y way of making it so those are available as simply `searchd` ?
<jdelStrother> (new to Nix, and running on macos)
<zimbatm> so here you would `import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/<commit ID>.tar.gz") {}).thunderbird` and add that to the systemPackages
mjrosenb has quit [Ping timeout: 258 seconds]
<hyper_ch> zimbatm: thx, I'll tr
Shouou has joined #nixos
<zimbatm> jdelStrother: I would use `buildEnv` to do create a new derivation that includes both the original package and the preferred aliases
<zimbatm> `buildEnv { paths = [ sphinxsearch-searchd ]; postBuild = "ln -s $out/bin/sphinxsearch-searchd $out/bin/searchd"; }`
<zimbatm> ^ it's missing the name attribute which you can set to whatever you want
Ariakenom has quit [Ping timeout: 265 seconds]
<hyper_ch> zimbatm: it didn't like it: error: attempt to call something which is not a function but a string with context, at /etc/nixos/configuration.nix:854:10
Ariakenom has joined #nixos
<jdelStrother> zimbatm: thanks, let me try...
<hyper_ch> using (builtins.fetchTarball ("https://github.com/NixOS/nixpkgs/archive/46420bbaa3f8f79ce7b9ee68e98eba1f7bce2db6.tar.gz") {}).thunderbird
<srk> hyper_ch: you're missing import
<hyper_ch> error: attempt to call something which is not a function but a string with context, at /etc/nixos/configuration.nix:854:17
<srk> (import ("some_path_to_nixpkgs") {}).thunderbird
<hyper_ch> srk: ?
<srk> hyper_ch: you need to fix your parenthesis, import needs *two* arguments in this case
<hyper_ch> I don't know what to fix
<srk> > import <nixpkgs>
<hyper_ch> I don't understand
<srk> will just give you a function
<srk> you need to call it, e.g. do > import <nixpkgs> {}
<hyper_ch> I still don't understand what you're trying to say
<srk> compare it to your orig expression
<srk> best to try iteratively in nix repl
<hyper_ch> I have no idea how to ue nix repl
<ottidmes> hyper_ch: so instead of <nixpkgs> you have (fetchTarball "https://github.com/NixOS/nixpkgs/archive/46420bbaa3f8f79ce7b9ee68e98eba1f7bce2db6.tar.gz")
<srk> you launch 'nix repl'
<hyper_ch> ottidmes: I gave up on understanding nix langauge a long time ago
<srk> and you can eval chunks of nix :)
xkapastel has joined #nixos
mojjo has quit [Remote host closed the connection]
<NobbZ[m]> hyper_ch: How do you use nixOS then? It feels important to at least understand basic language constructs…
<hyper_ch> filling the configuration nix
<hyper_ch> setting options is not hard
<ottidmes> Well if you are not a programmer, I can get that approach. I have written a few programs in Nix, that made me more fluent in the language
orivej has quit [Ping timeout: 256 seconds]
opthomasprime has left #nixos [#nixos]
opthomasprime has joined #nixos
kreyren_ has joined #nixos
kreyren has quit [Remote host closed the connection]
bahamas has quit [Ping timeout: 250 seconds]
opthomasprime has left #nixos [#nixos]
LarryTheCow has joined #nixos
<jdelStrother> zimbatm: I'm struggling... seems like I can't create files in buildEnv's $out https://gist.github.com/jdelStrother/0cfcb88588040dc587ad670e6e5efc87
<jdelStrother> Which makes sense, since $out/bin is a symlink to sphinxsearch's bin directory. Just not sure how to fix it...
<ottidmes> jdelStrother: you probably just want to do this: https://logs.nix.samueldr.com/nixos/2020-03-18#3193950;
hlavaty has joined #nixos
noudle has joined #nixos
<tilpner> jdelStrother: https://tx0.co/JUG
<tilpner> Are you sure env does anything?
<tilpner> I haven't used it before, and I can't find it in the expression
<tilpner> jdelStrother: https://tx0.co/c8d
<tilpner> first with buildEnv, second with mkShell
<jdelStrother> "Are you sure env does anything?" - no, just newbie confusion
<tilpner> Does the second paste do what you want?
<jdelStrother> tilpner: yep, perfect thanks
ghasshee has quit [Ping timeout: 256 seconds]
ghasshee has joined #nixos
matthiaskrgr has quit [Quit: Free ZNC ~ Powered by LunarBNC: https://LunarBNC.net - currently broken?]
nikivi has quit [Read error: Connection reset by peer]
CMCDragonkai1 has joined #nixos
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
<zimbatm> jdelStrother: hmm you are right, I forgot about that
zupo has joined #nixos
<zimbatm> another approach is to use `sphinxsearch.overrideAttrs (orig: { postInstall = "ln -s $out/bin/sphinxsearch-searchd $out/bin/searchd"; })` but that will rebuild the package
<zimbatm> or use `pkgs.runCommand "searchd" {} "mkdir -p $out/bin && ln -s ${sphinxsearch}/bin/sphinxsearch-searchd $out/bin/searchd"` and then install both packages
magnetophon has quit [Remote host closed the connection]
bahamas has joined #nixos
slasl has joined #nixos
<slasl> How to use the "lib.mkForce"?
<tilpner> foo = lib.mkForce bar;
<tilpner> Where foo refers to an option, and bar is a value you want to set foo to
<slasl> thanks.
noudle has quit []
buffet has quit [Quit: Spline - https://spline.de]
iyzsong has quit [Remote host closed the connection]
iyzsong has joined #nixos
Makaveli7 has joined #nixos
<slasl> Does nixos-rebuild not use /etc/nix/nix.conf?
<tilpner> It should. Why do you think it doesn't?
<slasl> I defined substituters = https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store but nixos-rebuild switch still uses cache.nixos.org
<tilpner> nix show-config | grep substituters
<NobbZ[m]> Of course if you change values through `configuration.nix` they will only have effect in the next rebuild.
<tilpner> Does that show the expected value?
<tilpner> NobbZ[m]: That line looks like it would be part of nix.conf though
<NobbZ[m]> My `nix.conf` is just a symlink into the store, rebuilt when necessary due to changes in `configuration.nix`
<NobbZ[m]> Thats why I'm mentioning.
<slasl> 'nix- show-config | grep substituters' display : substituters = "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store"
pistache has quit [Ping timeout: 256 seconds]
<tilpner> Really, why does it have quotes...
<slasl> I don't know how to specify default substitutes in configuration.nix
<tilpner> nix.binaryCaches
<slasl> Sorry, I added two more quotation marks
<tilpner> Okay, add it via nix.binaryCaches, and rebuild switch
pistache has joined #nixos
<tilpner> That should not change anything, except prevent it from being undone in the future
<slasl> I haved define nix.binaryCaches = [ "....." ]; in configuration.nix ,But it didn't work.
pistache is now known as Guest29933
buffet has joined #nixos
<tilpner> "didn't work" is not very specific
buffet has left #nixos [#nixos]
<slasl> it still use 'cache.nixos.org'
<NobbZ[m]> But does it use yours?
<tilpner> Ahh, fun
<tilpner> Do you want it to use your cache for all packages exclusively?
matthiaskrgr has joined #nixos
<tilpner> Do you want it to prefer yours, but fallback to c.n.o?
<NobbZ[m]> Be aware of this: "By default https://cache.nixos.org/ is added, to override it use lib.mkForce []."
notgne2 has quit [Quit: ZNC 1.7.4 - https://znc.in]
<slasl> Yes
<tilpner> Which question did you answer?
<NobbZ[m]> If you do not want cache.nixos, then you have to explicitely disable it by using `mkForce`
nikivi has joined #nixos
notgne2 has joined #nixos
<slasl> is 'nix.binaryCaches = lib.mkForce [ "..." ];' ?
<tilpner> Yes
<slasl> But it display 'undefined variable 'lib' at ...'
<tilpner> Ahh, you have an attrset pattern at the top of your file
<tilpner> Something like { config, pkgs, ... }: ...
<tilpner> Add lib in there, like: { config, pkgs, lib, ... }: ...
<slasl> nice! it works.
<slasl> Oh, it still use 'cache.nixos.org'.
<tilpner> Check again with nix shof-config
<tilpner> * Check again with nix show-config
<tilpner> I'm not sure it's necessary, but let's systemctl restart nix-daemon
<slasl> It work!
<slasl> thanks.
<slasl> I'm going to change my personal computer to nixos now, goodbye.
slasl has left #nixos [#nixos]
<tilpner> :)
<ottidmes> Another convert, yay!
xelxebar has quit [Ping timeout: 240 seconds]
FRidh has joined #nixos
FRidh2 has quit [Ping timeout: 250 seconds]
LarryTheCow has quit [Ping timeout: 265 seconds]
kreyren_ is now known as kreyren
ghasshee has quit [Ping timeout: 250 seconds]
<Ashy> the same thing we do every night pinky, try to take over the world
sigmundv_ has joined #nixos
gila has quit [Ping timeout: 250 seconds]
waleee-cl has joined #nixos
mjrosenb has joined #nixos
AWizzArd has quit [Remote host closed the connection]
roberth has joined #nixos
mjrosenb has quit [Ping timeout: 250 seconds]
unacceptable has quit [Remote host closed the connection]
relaxmax has quit [Ping timeout: 256 seconds]
FRidh2 has joined #nixos
FRidh has quit [Ping timeout: 250 seconds]
kloenk has quit [Ping timeout: 246 seconds]
kloenk has joined #nixos
aveltras has joined #nixos
gila has joined #nixos
dejanr has joined #nixos
cosimone has joined #nixos
<dejanr> Hi, does anyone have a working mitmprox setup for nixos?
<dejanr> mitmproxy*
FRidh2 has quit [Quit: Konversation terminated!]
FRidh2 has joined #nixos
<dejanr> or a guide how to use it with mitmproxy, i guess we add mitmproxy certs inside security.pki.certificatesFiles
ATuin has quit [Ping timeout: 250 seconds]
jaeckel has quit [Remote host closed the connection]
<FRidh2> seems like vscode remote ssh is broken again. Tries to invoke /bin/bash somewhere
<jdelStrother> Is there an easy way to view the source of a package in a given channel?
<tilpner> nix edit -f channel:nixos-unstable hello
jaeckel has joined #nixos
<jdelStrother> tilpner ah, thanks
<ottidmes> FRidh2: Ah, let me see if I can fix my auto fixer script to include a patch for that
srxl has quit [Remote host closed the connection]
organixpear has quit [Remote host closed the connection]
<FRidh2> ottidmes: actually seems to be working again
<FRidh2> don't ask why...
<ottidmes> why? :P
<ottidmes> I just tried, updated to latest nixos-unstable, vscode 1.43, but it still works fine for me, so not sure what happened either for it to break on your end
dejanr has quit [Quit: WeeChat 2.7.1]
iyzsong has quit [Ping timeout: 256 seconds]
enuiarte has joined #nixos
aswanson has joined #nixos
iyzsong has joined #nixos
reallymemorable has joined #nixos
chimay has quit [Ping timeout: 256 seconds]
mjrosenb has joined #nixos
cosimone has quit [Quit: Terminated!]
reallymemorable has quit [Quit: reallymemorable]
chimay has joined #nixos
mjrosenb has quit [Ping timeout: 250 seconds]
niso has joined #nixos
gustavderdrache has joined #nixos
knupfer has quit [Ping timeout: 246 seconds]
reallymemorable has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
bvdw has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
chagra_ has quit [Ping timeout: 250 seconds]
bvdw has joined #nixos
chagra_ has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<arianvp> binary builds for vlc seem to have disappeared from 19.09 branch
<arianvp> can I backtrack somehow how that is? through hydra I suppose?
malSet has joined #nixos
<arianvp> https://hydra.nixos.org/project/nixpkgs where here is the builds for 19.09 branch?
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<arianvp> ah
ATuin has joined #nixos
<arianvp> ohh nixpkgs jobset for 19.09 is in the nixos folder, not in the nixpkgs folder.
<gchristensen> wat
<gchristensen> my kingdom for declarative jobsets :P
<arianvp> finding things in hydra laways confuses me :P
<gchristensen> at least it loads faster than it used to :P
<gchristensen> _used to_
kenshinCH has joined #nixos
andreas303 has quit [Remote host closed the connection]
<flokli> gchristensen: hm, it seems I can't request reviews from people without commit bits anymore. was there anything changed in the permissions recently?
<kenshinCH> hello! I'm trying to override some python packages, and in particular to chain two overrides: `python38.override ({ packageOverrides = self: super: { ...} }).override { ... }`
andreas303 has joined #nixos
<kenshinCH> is that a thing? I don't see the packages from the second override when I use the resulting python attribute
le_jonge has quit [Quit: quit]
<gchristensen> flokli: you've never been able to request reviews from someone outside of the org, that is why we had to add every maintainer to a nixpkgs team
<flokli> gchristensen: sure, but try adding NinjaTrappeur as a reviewer to https://github.com/NixOS/nixpkgs/pull/82941
karantan has joined #nixos
relaxmax has joined #nixos
<flokli> I check the checkbox, hide the popdown, and it doesn't request
<gchristensen> flokli: probably a bug in github
Guest29933 is now known as pistache
<NinjaTrappeur> I'm not a nixpkgs committer, meaning I can't approve a PR, I think this is an expected behaviour.
<gchristensen> maybe another database outage :)
<gchristensen> NinjaTrappeur: you're a member of the org, though expect
<pistache> I have lots of problems accessing NixOS's cache from a major french ISP (Orange)
<kenshinCH> edit: I don't see the packages of the first override as available in the second
<pistache> is there somewhere I can report such problems ?
<karantan> how can I see php.ini configuration? I can't find it anywhere
<pistache> (I'm experiencing very low download speeds, intermittently)
<NinjaTrappeur> pistache: are you passing by a cogent link?
<NinjaTrappeur> (traceroute cache.nixos.org)
<flokli> it gathers some information about how you get there
<NinjaTrappeur> better follow that gist apparently :)
<flokli> no, don't follow that gist. actually, it's still cloudfront
<flokli> it'd need to be fastly-ifyed
psiperator[m] has joined #nixos
iyzsong has quit [Ping timeout: 256 seconds]
smeag0l has joined #nixos
smeag0l has left #nixos [#nixos]
o1lo01ol1o has quit [Remote host closed the connection]
jonge has joined #nixos
<pistache> NinjaTrappeur: no, I'm passing by Telia. here is the traceroute: https://termbin.com/n0oq
<pistache> I tried contacting support@fastly.com, but they won't help as I'm not a Fastly customer, and they say that the problem is probably within Orange's network
sgrunert has quit [Remote host closed the connection]
iyzsong has joined #nixos
iyzsong has quit [Client Quit]
<NinjaTrappeur> pistache Orange does not provide any public weathermap, Telia seem to be a direct transit (they do not seem to pass by any IX), debugging this one is going to be tricky.
kreyren has quit [Remote host closed the connection]
<NinjaTrappeur> This telia transit is probably throttled.
kreyren has joined #nixos
kenshinCH has quit [Quit: WeeChat 2.7.1]
<NinjaTrappeur> I guess trying to sshuttle or VPN to a ovh box or something passing by franceix is your best bet :/
<pistache> yes, this is how I avoid the problem
<pistache> but as Orange is a big french ISP, that may host quite a lot NixOS users, I thought trying to report the problem somewhere could be useful
cosimone has joined #nixos
<pistache> it's also an intermittent problem, and it doesn't seem to manifest neither right now, nor yesterday, so we can hope it has been fixed at some point
kiwi_39 has joined #nixos
Miyu-saki has quit [Ping timeout: 240 seconds]
aswanson has quit [Ping timeout: 246 seconds]
Miyu-saki has joined #nixos
aswanson has joined #nixos
Miyu-saki is now known as Guest83260
<kiwi_39> Hello, I'm trying to upgrade my system which happens to have two packages that get built from source (virtualbox and flightgear). Is there a way to force these packages to be built sequentially? I do not have enough disk space to build both at the same time (about 6.6GB free). The option boot.tmpOnTmpfs is not enabled.
<lassulus> maybe -j 1 ?
<kiwi_39> Is that an option to nixos-rebuild?
<lassulus> yes
<kiwi_39> ok
alexherbo28 has joined #nixos
<kiwi_39> It now seems to be building them sequentially.
<kiwi_39> @lassulus Thank you!
kiwi_39 has quit [Remote host closed the connection]
<ottidmes> kiwi_39: although it is not what you asked for, I tend to be low on disk space on my NixOS install too when doing upgrades, I tend to just do it in parts, so you could also just comment one of the two, build, and afterwards uncomment and build again, lame, but it works
alexherbo2 has quit [Ping timeout: 250 seconds]
alexherbo28 is now known as alexherbo2
jdelStrother has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
Ariakenom has quit [Ping timeout: 250 seconds]
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
c0c0 has quit [Ping timeout: 246 seconds]
abathur has joined #nixos
rsoeldner has quit [Remote host closed the connection]
<ottidmes> just curious, why did nixos-install get a nixos user rather than going straight to root?
veske2 has quit [Quit: This computer has gone to sleep]
veske has quit [Quit: This computer has gone to sleep]
kolbycrouch has quit [Remote host closed the connection]
acarrico has joined #nixos
rogue_koder has joined #nixos
c0c0 has joined #nixos
abathur has quit [Quit: abathur]
abathur has joined #nixos
FRidh has joined #nixos
FRidh2 has quit [Ping timeout: 264 seconds]
glittershark has joined #nixos
zupo has quit [Ping timeout: 256 seconds]
o1lo01ol1o has joined #nixos
zupo has joined #nixos
Naptra has joined #nixos
jakobrs has joined #nixos
justanotheruser has quit [Ping timeout: 272 seconds]
<jakobrs> Is it possible to import a nix file `imports = [ ./file.nix ]` style as an expression?
o1lo01ol1o has quit [Ping timeout: 250 seconds]
philr has quit [Ping timeout: 250 seconds]
<jakobrs> I'd like to import a file, but *only* want one attribute that's defined in it
<ottidmes> jakobrs: (import ./file.nix).oneAttribute
lordcirth_ has quit [Remote host closed the connection]
lordcirth_ has joined #nixos
<jakobrs> ottidmes: It's a module
<jakobrs> It depends on config, lib, pkgs, etc
<jakobrs> I don't know precisely what it depends on (it's autogenerated)
kenshinCH has joined #nixos
<ottidmes> jakobrs: then put in the module you are importing in, { ...whatever..., ... }@args: and then do (import ./file.nix args).oneAttribute
<jakobrs> thanks
hmpffff has joined #nixos
<kenshinCH> I have a python package that builds correctly via a `default.nix` like the ones in nixpkgs (`buildPythonPackage` etc). What's the best way to write a `shell.nix` using that `default.nix` and dropping me in a shell with `python` with all the right packages available?
xelxebar has joined #nixos
ddellacosta has joined #nixos
justanotheruser has joined #nixos
<kenshinCH> uhh thanks! trying right away
<misuzu> is there a way to use nix-env without channels? setting `-I` argument or NIX_PATH is not working
bahamas has quit [Ping timeout: 256 seconds]
Guest38108 is now known as benny
benny is now known as Guest90540
Guest90540 is now known as benny
veske has joined #nixos
veske2 has joined #nixos
drakonis has joined #nixos
<kenshinCH> waleee-cl: with the first one I get `'shell' missing` (although I'm doing a `callPackage`. Does that change something?). The second one would require re-listing all the dependencies, right?
<kenshinCH> I'm using this, specifically: https://pastebin.com/pKv2QqAv
<waleee-cl> kenshinCH: I haven't actually used any of them, I just remembered seeing them there
<waleee-cl> kenshinCH: in the way outlined in ci.nix I think you can omitt the packages after "inherit (default)" and 'inherit' all packages from it? I'm not super-familiar with the syntax and can't check atm
CptCaptain has joined #nixos
<kenshinCH> waleee-cl: thanks, I'll try some more
mjrosenb has joined #nixos
cosimone has quit [Quit: Terminated!]
samrose has joined #nixos
chagra_ has quit [Ping timeout: 256 seconds]
mjrosenb has quit [Ping timeout: 265 seconds]
chagra_ has joined #nixos
bahamas has joined #nixos
CMCDragonkai1 has quit [Ping timeout: 250 seconds]
captjakk has joined #nixos
jjakob has quit [Ping timeout: 256 seconds]
o1lo01ol1o has joined #nixos
chagra_ has quit [Ping timeout: 264 seconds]
chagra_ has joined #nixos
glittershark has quit [Ping timeout: 256 seconds]
glittershark has joined #nixos
blaggacao has quit [Read error: Connection reset by peer]
drakonis has quit [Ping timeout: 246 seconds]
jakobrs has quit [Ping timeout: 256 seconds]
blaggacao has joined #nixos
misuzu has quit [Quit: leaving]
misuzu has joined #nixos
<Orbstheorem> Hello, I've added gnome3.gucharmap to systemPackages and noto-fonts{,-emoji,-extra} to fonts.fonts, but I still can't see the font in gucharmap. (I've only rebuild-test). And I missing something? :/
kreyren has quit [Remote host closed the connection]
kreyren has joined #nixos
lordcirth_ has quit [Read error: Connection reset by peer]
lordcirth__ has joined #nixos
erasmas has joined #nixos
chagra_ has quit [Ping timeout: 256 seconds]
chagra_ has joined #nixos
chagra_ has quit [Client Quit]
chagra has joined #nixos
<samrose> are there people currently working toward packaging discourse for nixpkgs?
<samrose> (realizing it prob ain't gonna be easy)
<srk> why not, just follow the docker file :)
<srk> (or files in this case with bunch of options)
<ToxicFrog> When do activation scripts run? In particular, can I be confident that they will run after /etc/group and /etc/passwd have been populated, and thus, I can test group membership?
<samrose> srk: sure thing just checking here to see if efforts are under way that i can contribute to
absoluutely_ has joined #nixos
drakonis has joined #nixos
smolck has joined #nixos
<smolck> Hello! Does anyone know how to build Neovim (for development purposes)? I've tried the directions here but they don't work: https://github.com/neovim/neovim/wiki/Building-Neovim#nix-or-nixos
<smolck> Instead, `cmakeConfigurePhase` doesn't exist and `buildPhase` fails, asking for `RT` to be installed
<smolck> And I have to manually installed `cmake` otherwise it can't find that when running `buildPhase`
<smolck> After `nix-shell '
lordcirth__ has quit [Read error: Connection reset by peer]
<smolck> * After `nix-shell '<nixos>' -A neovim`
andreas303 has quit [Ping timeout: 240 seconds]
lordcirth__ has joined #nixos
absoluutely_ has quit [Ping timeout: 246 seconds]
bahamas has quit [Ping timeout: 250 seconds]
andreas31 has joined #nixos
<yorick> > pkgsCross.ghcjs.buildPackages.systemd
<yorick> (error: no C compiler provided for this platform)
<yorick> what's going on there?
<srk> huh? :D
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<srk> samrose: settings in database /o\ that would require some trickery
<yorick> srk: it somehow fails to get the libgcrypt from buildPackages
<samrose> srk: yeah doesn't look easy at all
<srk> yorick: I don't understand what it should do at all
<yorick> srk: pkgsCross.x.buildPackages should be equivalent to pkgs
<srk> I see
<yorick> (clever?)
<srk> yorick: else if targetPlatform.isGhcjs
<srk> then throw "no C compiler provided for this platform"
<yorick> srk: hrm, so I need two levels of buildPackages
chagra has quit [Ping timeout: 250 seconds]
<srk> hah, yeah, cool
chagra has joined #nixos
<Taneb> If I have a derivation that builds a file "/nix/store/abcdef-foo", is there a handy wrapper that makes it easy to wrap that into a derivation that produces a single file "/nix/store/uvwxyz-name/bar"?
smolck has quit [Remote host closed the connection]
lordcirth__ has quit [Read error: Connection reset by peer]
<s1341> ok. i have a derivation for https://github.com/I60R/page that I would like to try to upstream into nixpkgs...
jumper149 has joined #nixos
<s1341> how do I decide where in the pkgs tree to put it?
<ToxicFrog> samrose: what I get from that is that the activation scripts are what create /etc, and thus, nothing in them should rely on /etc being properly shaped, because they execute in unspecified order.
alexherbo2 has quit [Ping timeout: 250 seconds]
<immae> ToxicFrog: actually activation scripts can be ordered, see activationScripts.<name>.deps :)
<ToxicFrog> Huh. That's not documented in https://nixos.org/nixos/options.html#activationscripts
<immae> Right
ATuin has quit [Quit: WeeChat 2.7.1]
<immae> It’s there and it works though
<immae> in you case you wand to add "users" as dependency
<immae> Ah, users and groups actually
karantan has joined #nixos
<s1341> ok. I found a similar tool (vimpager) and I'm going to put it there..
f18d7dc7_ has quit [Remote host closed the connection]
blaggacao has quit [Read error: Connection reset by peer]
blaggacao has joined #nixos
bahamas has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bahamas has quit [Ping timeout: 264 seconds]
captjakk_ has joined #nixos
blaggacao has quit [Ping timeout: 256 seconds]
alexherbo2 has joined #nixos
captjakk_ has quit [Remote host closed the connection]
veske has quit [Quit: This computer has gone to sleep]
veske2 has quit [Quit: This computer has gone to sleep]
cole-h has joined #nixos
blaggacao has joined #nixos
endformationage has joined #nixos
jb55 has joined #nixos
rail_ has joined #nixos
rail_ is now known as rail
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
bahamas has joined #nixos
o1lo01ol1o has quit [Ping timeout: 250 seconds]
alexherbo27 has joined #nixos
chloekek has quit [Quit: WeeChat 2.7]
alexherbo2 has quit [Ping timeout: 258 seconds]
alexherbo27 is now known as alexherbo2
<raboof> if 'nix build -A package' fails to find the file to patch, but 'nix-shell -A package', 'unpackPhase; cd source; patchPhase' works, what am I doing wrong?
<raboof> (see it in action at https://github.com/raboof/mastodon-bot-nixos ;) )
<clever> raboof: what did you set patches to?
<raboof> patches = [ ./remove-cljs-from-package-json.diff ];
<clever> raboof: and what error does `nix-build` fail with?
<s1341> yay. my first nixpkgs pr: https://github.com/NixOS/nixpkgs/pull/82949
<raboof> clever: 'can't find file to patch at input line 3' (https://pastebin.com/Nq982QY3)
<Taneb> s1341++
<s1341> Taneb: :D
<clever> raboof: `nix show-derivation /nix/store/ly5879n22ww4wzi8x2rd1bcl27xzscw7-node_mastodon-bot-0.0.1.drv` ?
hlavaty has quit [Remote host closed the connection]
<Taneb> s1341: that should have made {^_^} give you karama but it doesn't seem to have happened
<ottidmes> s1341: Nice, I do believe they like the title to be: init at 2.3.2 (for automation purposes, its nice if they are exact)
<ottidmes> ,ping
<clever> raboof: line 810, unpackPhase was overwritten
<s1341> ottidmes: should i change it?
<clever> raboof: when you ran `unpackPhase`, you ran the original, not the override
<ottidmes> No pong! Bot is down again :(
aveltras has quit [Quit: Connection closed for inactivity]
<clever> raboof: 99% of the work is done in the installPhase override, do `echo "$installPhase"`
<ottidmes> s1341: Not sure how strict it is enforced, but shouldn't hurt
<raboof> clever: in nix-shell? https://pastebin.com/sAyP05XJ (as you can see this is a node2nix thing)
blaggacao has quit [Ping timeout: 250 seconds]
<clever> raboof: and that is the script you would have to run, to reproduce the failure in nix-shell
blaggacao has joined #nixos
<s1341> ottidmes: fixed
o1lo01ol1o has joined #nixos
absoluutely_ has joined #nixos
gila has quit [Ping timeout: 265 seconds]
gila has joined #nixos
jumper141 has joined #nixos
jumper141 has quit [Client Quit]
aveltras has joined #nixos
jdelStrother has joined #nixos
epl692 has quit [Ping timeout: 256 seconds]
<jdelStrother> Heya
gila has quit [Ping timeout: 264 seconds]
blaggacao has quit [Read error: Connection reset by peer]
alexherbo2 has quit [Ping timeout: 250 seconds]
lordcirth__ has joined #nixos
<raboof> clever: hmm, thanks, that gives me more to go on at least :)
Mateon2 has joined #nixos
<jdelStrother> I'm struggling with bundlerEnv & mini_racer. Given a gemset containing just mini_racer & libv8 (https://gist.github.com/jdelStrother/ecbc5f8500ca3d079779f5b2a35852e3), building the mini_racer derivation fails, apparently because it can't compile the libv8 gem. However, if I change the gemset to only contain libv8, that derivation works fine
Mateon2 is now known as Mateon1
Mateon1 has quit [Ping timeout: 240 seconds]
alexherbo27 has joined #nixos
cartwright has quit [Remote host closed the connection]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
chloekek has joined #nixos
cartwright has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
shafox has joined #nixos
jjakob has joined #nixos
cosimone has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
<ottidmes> s1341: some more feedback, replace stdenv for lib, since you are only using stdenv.lib from it, and in the meta attrset, you already use with stdenv.lib; so no need to have stenv.lib.licenses.mit, it can just be licenses.mit
epl692 has joined #nixos
<mudri> How can I work out how to set `services.xserver.videoDrivers`? I have an AMD GPU (Radeon HD 6470M), and I don't know whether this is “recent” according to the manual (in which case it recommends defaults) or not (in which case it gives `ati_unfree` as an option).
malSet has quit [Read error: Connection reset by peer]
blaggacao has joined #nixos
absoluutely__ has joined #nixos
<ottidmes> mudri: keeping it as the default, i.e. not setting it, let's it go through most of them, then you can see which one it takes
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<ottidmes> I would always prefer the free ones, cause with ati_unfree you might be stuck on an old kernel
blaggacao has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
jakobrs has joined #nixos
<mudri> ottidmes: I'm just wondering because having it not set works okay, but 3D graphics performance is not good.
bahamas has quit [Ping timeout: 264 seconds]
malSet has joined #nixos
<mudri> (compared to Windows on the same machine)
malSet has quit [Read error: Connection reset by peer]
blaggacao has joined #nixos
<jakobrs> Are there *really* old Nix builds anywhere? I mean, from 2006
absoluutely_ has quit [Ping timeout: 246 seconds]
<jakobrs> Specifically after commit 4b9e7f95
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
zupo has joined #nixos
pjt_014 has quit [Remote host closed the connection]
jjakob has quit [Quit: No Ping reply in 180 seconds.]
<ottidmes> mudri: I had the same, but I had to run modesetting to get it to work under free drivers and recent kernels, only with ati_unfree did I get decent performance, but it was an old kernel I did not want
jjakob has joined #nixos
<atemu12[m]> jakobrs: Have you tried building Nix from an old Nixpkgs revision? Nixpkgs goes back quite some time
pjt_014 has joined #nixos
<jakobrs> Oh, I didn't think about that
<jakobrs> I'll try that
pjt_014 has quit [Remote host closed the connection]
pjt_014 has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
blaggacao has quit [Ping timeout: 256 seconds]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
blaggacao has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<yorick> is there some sort of (nixos {}).override?
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
gila has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
<ottidmes> yorick: how do you mean? the modules? there is disabledModules allowing you to overwrite NixOS modules
malSet has quit [Read error: Connection reset by peer]
blaggacao has quit [Read error: Connection reset by peer]
<yorick> ottidmes: I have existing nixos configurations and I'd like to add modules tot them
<ottidmes> yorick: your configuration is a module like any other, so just import it
blaggacao has joined #nixos
FRidh has quit [Quit: Konversation terminated!]
gila has quit [Ping timeout: 250 seconds]
captjakk_ has joined #nixos
<ottidmes> yorick: { imports = [ /etc/nixos/configuration.nix ...other modules... ]; ...other config... }
absoluutely__ has quit [Ping timeout: 256 seconds]
<yorick> ottidmes: I means, I have a package set with a bunch of `nixos { imports = [ ./asdf; ] }`, and I'd like to add something to it
malSet has joined #nixos
captjakk_ has quit [Remote host closed the connection]
malSet has quit [Read error: Connection reset by peer]
organixpear has joined #nixos
malSet has joined #nixos
<ottidmes> yorick: ah, forgot about that existing, ehm, just a guess, but maybe: nixos { imports = [ ...additions... ]; config = origNixos.config; }
<yorick> I'm not sure if nixos exposes the inputs
<yorick> config is the full outputs
malSet has quit [Read error: Connection reset by peer]
<ottidmes> yorick: or you could do some hijacking, pass to the package set a custom definition of nixos that adds what you want?
davidak has joined #nixos
{^_^} has quit [Remote host closed the connection]
<ottidmes> you could even add your own override function to it, if you cannot be to invasive
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
blaggacao has quit [Ping timeout: 264 seconds]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
blaggacao has joined #nixos
<jakobrs> `nix-store --gc --delete` has been broken since at least 2012 (because the delete option conflicts with the delete operation),
<jakobrs> And it's probably been broken since 2005
bahamas has joined #nixos
alexherbo275 has joined #nixos
<jakobrs> So I don't think it's used in any scripts
mjrosenb has joined #nixos
<jakobrs> Would it be safe to remove the delete option from --gc?
alexherbo27 has quit [Ping timeout: 256 seconds]
<jakobrs> Moreover, --delete is never used inside of nixpgks (according to grep)
<ottidmes> If that is really the case, rewording the manual to not have the option, while still saying basically the same thing, i.e. its default behavior is to delete, would be an improvement, but its not up to me
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<jakobrs> I'll do that and make a pull request
<jakobrs> And then we'll see what happens
<s1341> ottidmes done.
wildtrees has joined #nixos
<jakobrs> Oh, btw, NixOS/Nix#3343
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
blaggacao has quit [Read error: Connection reset by peer]
<cransom> jdelStrother: i have a similar error for v8/rails that i haven't got a solution either. it all started when `therubyracer` was pulled because it's been abandoned upstream.
blaggacao has joined #nixos
blaggacao has quit [Read error: Connection reset by peer]
blaggacao has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<jakobrs> When editing the manual in xml, should I manually re-word-wrap the text?
blaggacao has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
blaggacao has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
tobiasBora has joined #nixos
<tobiasBora> Hello,
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
<ottidmes> yorick: if it is specific to a nixpkgs set: self: super: { nixos = cfg: super.nixos ((if builtins.isList cfg then cfg else [ cfg ]) ++ [ ./my-module.nix ]); }
<ottidmes> yorick: or else maybe: self: super: { nixos = cfg: super.nixos cfg // { override = f: super.nixos (f cfg); }; }
mjrosenb has quit [Ping timeout: 250 seconds]
<yorick> ottidmes: hmmm
malSet has quit [Read error: Connection reset by peer]
<ottidmes> s1341: It should be a list of maintainers: maintainers = [ maintainers.s1341 ]; and maybe update your title to match your commit, i.e. drop the v from the version
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
horek has joined #nixos
LysergicDreams has quit [Ping timeout: 264 seconds]
reallymemorable has quit [Quit: reallymemorable]
ben_ is now known as ben
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
lovesegfault has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
gila has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
CptCaptain has quit [Quit: WeeChat 2.7.1]
captjakk has quit [Ping timeout: 264 seconds]
agander_m has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<s1341> @ottidmes done and done.
horek has quit [Quit: Leaving]
gila has quit [Ping timeout: 250 seconds]
<jdelStrother> cransom: hm. I've reported it at https://discourse.nixos.org/t/cant-install-mini-racer-with-bundlerenv/6329, maybe someone will be able to suggest something...
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<ottidmes> s1341: Good job, it is looking great now!
LysergicDreams has joined #nixos
<s1341> @ottidmes: thanks for your help!!!
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<fendor> after a year I am still not sure, what is the difference between `nix-store`, `nix-build`, etc.. and `nix-command` which seemingly can do all of their functionality?
opthomasprime has joined #nixos
opthomasprime has left #nixos [#nixos]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<ottidmes> I think the plan was to allow redoing the API while not having to be backwards compatible, but it seems like they froze that idea pretty early on and went on to focus on flakes, which I assume will have yet a different API
malSet has joined #nixos
absoluutely__ has joined #nixos
<ottidmes> I mean, `nix` (the 2.0 command) hasn't seen any big changes since its release that I am aware, still no manpages, not feature complete with the 1.0 commands, etc.
<ottidmes> The only nix commands I use are, nix repl, nix why-depends, and nix eval --raw, other than that I just stick with the oldies
malSet has quit [Read error: Connection reset by peer]
absoluutely__ has quit [Remote host closed the connection]
absoluutely__ has joined #nixos
jakobrs has quit [Quit: WeeChat 2.7.1]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
malSet has quit [Read error: Connection reset by peer]
captjakk has joined #nixos
absoluutely__ has quit [Remote host closed the connection]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
ottidmes has quit [Quit: WeeChat 2.7.1]
captjakk has quit [Ping timeout: 256 seconds]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<bqv[m]> What about nix-shell, how do you do that otherwise
<bqv[m]> But yes the state of documentation is horrible, I just rely on my bash history mostly
LysergicDreams has quit [Ping timeout: 246 seconds]
eoli3n__ has joined #nixos
relaxmax has quit [Ping timeout: 264 seconds]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
jdelStrother has quit [Ping timeout: 240 seconds]
absoluutely_ has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
ris has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
o1lo01ol1o has quit [Remote host closed the connection]
ottidmes has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
Intensity has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
wolke has quit [Quit: ZNC 1.7.5 - https://znc.in]
o1lo01ol1o has joined #nixos
absoluutely__ has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
energizer` has joined #nixos
wolke has joined #nixos
bvdw has joined #nixos
absoluutely_ has quit [Ping timeout: 246 seconds]
zeta_0 has joined #nixos
absoluutely__ has quit [Remote host closed the connection]
<energizer`> when someone requests a project to be packaged into nixpkgs, is there a workflow that results in the project eventually being packaged? or do projects get packaged only if, by coincidence, somebody decides to package it (regardless of it being requested)?
<simpson> A model of stochastic contribution~ I like it.
o1lo01ol1o has quit [Ping timeout: 250 seconds]
absoluutely_ has joined #nixos
<simpson> There's no workflow that I know of where people intentionally take requested package issues and fulfill them. Perhaps some folks do that, though.
<Yaniel> the workflow to get something packaged for sure is to do it yourself
lorimer has quit [Read error: Connection reset by peer]
karantan has joined #nixos
<xfix> out of curiosity, what do you want to have packaged?
<xfix> if there is something like that
karantan has quit [Client Quit]
shibboleth has joined #nixos
shibboleth has quit [Client Quit]
shibboleth has joined #nixos
<energizer`> i want to use another project that isn't packaged almost daily
LysergicDreams has joined #nixos
<Yaniel> which is...?
<lordcirth__> If you want packages to do updated more regularly, help review PRs. There are so many
<energizer`> i mean a different one every day
<Yaniel> oh
<Yaniel> well, for most things the packaging process should be fairly straightforward
shibboleth has quit [Remote host closed the connection]
shafox has quit [Remote host closed the connection]
shibboleth has joined #nixos
chimay has quit [Ping timeout: 250 seconds]
karantan has joined #nixos
karantan has quit [Client Quit]
karantan has joined #nixos
shibboleth has quit [Max SendQ exceeded]
<tobiasBora> Hello,
absoluutely_ has quit [Ping timeout: 246 seconds]
<tobiasBora> I just installed zoom-us, but I have an error sh: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.27' not found (required by /nix/store/mzyjzbck2a9q4wq5q34pyc88v52gpaab-v4l-utils-1.16.7/lib/libv4l2.so.0)
<tobiasBora> For more info http://paste.debian.net/1135634
<tobiasBora> I'm using ubuntu 16.04
blaggacao has quit [Read error: Connection reset by peer]
<tobiasBora> is the problem on my side?
<tobiasBora> or should I fill a bug report?
blaggacao has joined #nixos
organixpear has quit [Quit: Leaving]
<niso> tobiasBora: fyi: it works fine on nixos
bahamas has quit [Read error: Connection reset by peer]
akegalj has joined #nixos
<xfix> hm, zoom-us is a proprietary package, so it could be tricky to tell what's the issue
captjakk has joined #nixos
<niso> tobiasBora: i failed to install it on debian too (using nix) - thus i just went with apt
<xfix> # TODO Patch this somehow; tries to dlopen './libturbojpeg.so' from cwd
<xfix> ln -s $(readlink -e "${libjpeg_turbo.out}/lib/libturbojpeg.so") $out/share/zoom-us/libturbojpeg.so
<xfix> this seems like a possible issue
<LnL> sounds like a bug tho, our libv4l2.so shouldn't be looking at /lib
<tobiasBora> niso: hum, I realized I was using an old version, I'll try to get a recent one. But on debian it fails indeed, but during the install
<yorick> is there a pkgsStatic equivalent for pkgsStatic.stdenvNoCC.initialPath?
<xfix> unfortunately, it seems like zoom-us has some dynamic dependency on /lib, and that causes issues
relaxmax has joined #nixos
blaggacao has quit [Ping timeout: 256 seconds]
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
captjakk has quit [Ping timeout: 240 seconds]
<tobiasBora> xfix: and it's not possible somehow to find these dependencies and add them in the rpath?
<xfix> it's a proprietary program, it's more complicated with those
cosimone has quit [Quit: Terminated!]
blaggacao has joined #nixos
<tobiasBora> xfix: I'm not sure to understand why it's not possible, aren't these dependencies listed in the elf file?
<xfix> they aren't necessarily
<xfix> libraries imported with dlopen won't be listed in elf file
<tobiasBora> Hum... And when we find some errors like that, can't we manually add them?
lovesegfault has quit [Quit: WeeChat 2.7.1]
blaggacao has quit [Read error: Connection reset by peer]
zalaare has quit [Quit: Leaving]
orivej has quit [Quit: orivej]
blaggacao has joined #nixos
orivej has joined #nixos
<tobiasBora> Hum, with the more recent install, I have other errors
energizer` has quit [Remote host closed the connection]
<tobiasBora> Here are the full log https://github.com/NixOS/nixpkgs/issues/82959
<tobiasBora> the error is less clear here qt.glx: qglx_findConfig: Failed to finding matching FBConfig
nDuff has joined #nixos
lovesegfault has joined #nixos
<lovesegfault> colemickens: did you have any success with FF vaapi on wayland?
gila has joined #nixos
energizer` has joined #nixos
<energizer`> what's the syntax to call a package, passing it whatever arguments it wants?
<niso> energizer`: callPackage ./path/to/package {myargs};
<energizer`> niso: i mean without listing them
<cole-h> What kind of arguments are you talking about?
<lovesegfault> energizer`: if you have bound ..., like {...}@args: { callPackage ./mypkg { args }
<cole-h> Does `callPackage ./mypkg {}` not work for you?
<lovesegfault> this assumes the pkg itself has a {foo,bar,...} to be able to handle all the unnecessary inputs being passed
kleisli has quit [Ping timeout: 250 seconds]
<energizer`> pkgs.mkShell { buildInputs = pkgs.callPackage foo { automatically pass all the arguments from the signature of foo } ; }
o1lo01ol1o has joined #nixos
orivej has quit [Read error: Connection reset by peer]
orivej has joined #nixos
<energizer`> cole-h: nope. `pkgs.callPackage ./default.nix { };` trying to call a default.nix that begins with `{lib , buildPythonPackage , fetchPypi , python , PyGithub , GitPython , toml , click , tqdm , paramiko}:` and i get `error: cannot auto-call a function that has an argument without a default value ('lib')`
<cole-h> `{ inherit (pkgs) lib }`?
reallymemorable has joined #nixos
karantan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<energizer`> same result
okaman has joined #nixos
<ottidmes> energizer`: what is pkgs in your case? Cause lib sure is in any Nixpkgs as such and should work like you just shown
<ottidmes> energizer`: cat $(nix-build --no-out-link --expr 'let pkgs = import <nixpkgs> { }; in pkgs.callPackage ({ lib, runCommand }: runCommand "lib-version" { } "echo ${lib.version} > $out") { }')
oida has quit [Ping timeout: 240 seconds]
drakonis has quit [Ping timeout: 246 seconds]
cosimone has joined #nixos
domogled has joined #nixos
<energizer`> well it doesn't https://bpaste.net/UOVA
aveltras has quit [Quit: Connection closed for inactivity]
eoli3n__ has quit [Ping timeout: 250 seconds]
<NobbZ[m]> Why that huge inherit list? An empty attrset should totally suffice...
<energizer`> NobbZ[m]: `error: cannot auto-call a function that has an argument without a default value ('lib')`
captjakk has joined #nixos
<energizer`> it would be nice if repl.it had a nix runner so i could demonstrate there
<NobbZ[m]> But don't you need to `callPackage (import ./.) {};`?
<okaman> Is anyone able to receive phone calls using `zoom-us`? I get a message that the phone service is unavailable. Could be a zoom service error but not sure where to start.
phreedom has quit [Remote host closed the connection]
<ottidmes> energizer`: try calling nix-shell with the explicit file you mean it to use
phreedom has joined #nixos
<ottidmes> energizer`: I am pretty sure it should not give you this error for callPackage, but rather for nix-instantiate/nix-build/nix-shell
akegalj has quit [Quit: leaving]
<ottidmes> energizer`: nix-build --no-out-link --expr '{ lib, runCommand }: runCommand "lib-version" { } "echo ${lib.version} > $out"' would give your error for example
captjakk has quit [Ping timeout: 250 seconds]
domogled has quit [Quit: domogled]
oida has joined #nixos
<energizer`> ottidmes: nix-shell shell.nix gives a better error message that explains the actual problem, i was missing the `fetchPypi` argument in my arglist
kleisli has joined #nixos
drakonis has joined #nixos
<energizer`> aside from the debuggability issue, this is a little verbose. i have to list the deps in buildInputs, and in the arguments to the expression, and at the callsite
<nek0> has anyone of you started packaging jitsi?
<ottidmes> energizer`: like we have been saying, not at call site, callPackage does this automatically for you
<NobbZ[m]> I never have to… All `callPackage` calls I use, do only take the empty attrset as second argument.
<ottidmes> so you can just pass it the empty attrset
<energizer`> ottidmes: what about the attributes of python3Packages?
shibboleth has joined #nixos
<cole-h> It appears to have its own `callPackage` which handles the Python stuff for you
felixfoertsch has quit [Quit: ZNC 1.7.4 - https://znc.in]
felixfoertsch has joined #nixos
<thequux[m]> I wrote a zone-based firewall module! https://github.com/thequux/nix-zone-firewall
<thequux[m]> I welcome questions, comments, rants, and pull requests.
<cole-h> Is this basically nix-firewalld?
<thequux[m]> I've never used firewalld, mostly because I don't trust firewalls that require any sort of daemon
<ottidmes> BTW, this is what callPackage comes down to: https://github.com/NixOS/nixpkgs/blob/master/lib/customisation.nix#L120
<NobbZ[m]> energizer`: what do you mean by the attributes of `python3Packages`?
zupo has quit [Ping timeout: 250 seconds]
<energizer`> cole-h: forgive me, i can't find how to actually use it?
<cole-h> energizer`: Try `python3Packages.callPackage`
<energizer`> NobbZ[m]: i'm not just passing attributes of nixpkgs, i'm also passing attributes of nixpkgs.python3Packages
<NobbZ[m]> Why don't you just pass `python3Packages` and use `with`?
<cole-h> Try my suggestion -- it should still find base nixpkgs attributes as well as (now) python3 packages
<energizer`> cole-h: ya that works
<cole-h> :)
<thequux[m]> cole-h: Looking at the docs though, yeah, that's the basic idea. As noted in the README, though, mine is still very incomplete
<energizer`> NobbZ[m]: i'm trying to follow the style of nixpkgs, which takes all the deps as arguments https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/Mako/default.nix
chagra has quit [Ping timeout: 264 seconds]
<cole-h> thequux[m]: Cool, was just wondering. I might use that when I switch to NixOS. Or I might try ufw. Firewalld is too hands-on for me though (but I don't want to change anything right now and am thus stuck)
zupo has joined #nixos
puck has quit [Remote host closed the connection]
puck has joined #nixos
chagra has joined #nixos
<ottidmes> cole-h: I am configuring my custom router, that came in today, with NixOS, I am planning on just using iptables and networking.firewall, any tips?
<thequux[m]> If you do, let me know how it works out. I've been using this module for roughly the last hour and it's a lot nicer to work with than my earlier hand-written nftables zone-based firewall
<cole-h> thequux[m]: I should disclaim: I'm not planning on switching to NixOS just yet :P
turion has joined #nixos
<cole-h> ottidmes: Better off asking thequux[m] ^
<thequux[m]> ottidmes: Do you already have in-depth knowledge of iptables? If not, I recommend using nftables instead. It's much nicer to configure and *way* faster
<turion> I get this all the time on my hand-crafted default.nix:
<turion> But how do I know what it evaluates to?
<turion> error: expression does not evaluate to a derivation (or a set or list of those)
<turion> $ nix-build  
<cole-h> It would help if you could post your default.nix as well
<ottidmes> thequux[m]: I had almost none, now I do a bit after looking into them
puck has quit [Excess Flood]
<turion> cole-h: I'm sure there is some simple mistake, will post in a sec. But I'm also interested in learning how I could have found that error myself
<thequux[m]> @otAnd is this your first time building a linux router?
lorimer has joined #nixos
puck has joined #nixos
<thequux[m]> * ottidmes: And is this your first time building a linux router?
<turion> Can I somehow inspect the value it produces?
<turion> I tried builtins.trace, it doesn't get called or doesn't output anything for whatever reason
<ottidmes> thequux[m]: Yep, first time, I did setup my server to be the DHCP and DNS server some time ago, which worked, except that I tried to keep my ISP router running as well, which caused too many conflicts, so I stopped using it, but now with a dedicated machine for the purpose, I can do that stuff on NixOS
<NobbZ[m]> turion: you can use `nix repl` to introspect
<thequux[m]> turion: `nix eval '(import ./default.nix)'` is what I usually use, though doing it in `nix repl` may be easier to poke at the result
<thequux[m]> ottidmes: OK, I used https://github.com/disassembler/network/blob/master/portal/default.nix as a base for my router; it's *very* complete
<turion> I tried nix repl, but it was very weird
<turion> I typed let thing = import default.nix;
xkapastel has quit [Quit: Connection closed for inactivity]
<colemickens> No.
<turion> It didn't let me finish my line in a sense
<ottidmes> turion: When trying to inspect I tend to run into problems like it being a function, and then it becomes annoying, so I just make sure that I am actually returning a derivation, i.e. calling mkDerivation or one of the wrapper of that runCommand / or one of the language specific builders
<ottidmes> thequux[m]: I did too :)
<turion> Arrrgh I've given one argument too few to callCabal2nix
<ottidmes> thequux[m]: https://gist.github.com/msteen/13921e666f5df1ea432a4cc2016c39f7 this is what I have now
<ottidmes> if it was not for some stupid mistake in my configuration that builds a Linux PBA for sedutil encryption, causing my unlocker to fail on boot... (easy to fix, but unrelated to configuring the router, so pretty annoying that I now have to work on that)
lucus16 has joined #nixos
<lucus16> pkgsStatic.stdenv is not static D:
justanotheruser has quit [Ping timeout: 250 seconds]
<thequux[m]> ottidmes: There's a certain amount of black magic involved in building a firewall, and I'm not sure where I can point you for suggestions on getting started.
<thequux[m]> I'm a big fan of the zone-based approach, though ith the traditional way of defining them, they're a lot more work, but they force you to think about what traffic should be allowed to flow between each network. With my module, for each rule, I can define which zones it should apply to, and that makes it much easier to manage
<ottidmes> thequux[m]: and zones are like subnetworks? I plan to have sub LANs as you can see in my config, so that sure sounds interesting
<thequux[m]> So, for example, I can say "The lan and my various VPNs can send data out to the WAN. The management network is not allowed to touch anything else. The federated network I'm part of is to be treated like the WAN."
chagra has quit [Ping timeout: 250 seconds]
<thequux[m]> In general, zones can group subnets or interfaces
<thequux[m]> In the future, my module will be able to do either, but for now, I've only got partitioning by interfaces defined.
<ottidmes> So it is higher level that regular iptables, I could get the same result with iptables, but it would be less clear from the low levels calls
<thequux[m]> Very much so
* niso thought nftables superset iptables
chagra has joined #nixos
<ottidmes> Definitely going to look into them then :D but I guess for my first build I will be using mostly the vanilla NixOS firewall with some few extra iptables rules, just to get the basics setup
<thequux[m]> Actually, perhaps a better way of looking at it is that it's a well-known and understood structure for a firewall. You can build a zone-based firewall using iptables or nftables directly, but having atool to help you can drastically reduce the amount you need to write
<thequux[m]> niso: yeah, nftables can do a struct superset of what iptables can do
<ottidmes> And understandability and the likelihood of making a slight mistake with big consequences, I guess
<thequux[m]> The structure in general gives you most of those benefits
<thequux[m]> That said, as I was writing the module, I discovered a slight misconfiguration in my old firewall that left my router wide open to the WAN, so take that with a grain of salt
jojojojojo has quit [Remote host closed the connection]
jojojojojo has joined #nixos
chagra has quit [Ping timeout: 240 seconds]
chagra has joined #nixos
nDuff has quit [Read error: Connection reset by peer]
okaman has quit [Remote host closed the connection]
<turion> Does anyone have experience with nix CI on gitlab.com?
<ottidmes> thequux[m]: your old firewall was also with zones? and how do you test that situation (I really love to not be wide open to the WAN by accident)
<thequux[m]> So, my big fuckup was that I had `policy accept`. Don't do that :-D
<thequux[m]> But in general, the only way to do it is to have some service running that shouldn't be accepted (netcat works fine) and to try to connect to it from various places
<pistache> ottidmes: a good tool to help test the FW is to add LOG rules, and to check rule counters
garbas has quit [Quit: WeeChat 2.7.1]
<ottidmes> thequux[m]: makes sense, maybe I should test that while keeping the rest of the network, to just see my test case for it working or not
garbas has joined #nixos
<ottidmes> pistache: thanks, I will look into that :)
<pistache> also, if you can make your firewall stateless, it makes it simpler to understand its behaviour, although it will make the rules more verbose
<thequux[m]> At some point I want to find a way to virtualize enough of nftables to be able to throw test packets at a virtual host and validate what happens
captjakk has joined #nixos
<pistache> it may also not be really possible to make your firewall *entirely* stateless, it depends
<ottidmes> thequux[m]: nixos has some test suites to test networks, but I doubt that is what you meant: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/systemd-networkd.nix
<bqv[m]> ottidmes: you didn't answer btw, what do you use instead of nix-shell?
captjakk has quit [Ping timeout: 264 seconds]
shibboleth has quit [Quit: shibboleth]
<thequux[m]> Yeah, not quite what I'm looking for :-(
<garbas> drakonis: i think you have been asking, marketing team minutes (disource) and youtube video is online.
<cransom> having had to deal with stateful firewalls most of my life, i try to remove stateful rules from where ever possible.
<ottidmes> bqv[m]: I must have missed something, when was I asked about that?
<pistache> thequux[m]: I suppose you could use NixOS containers to test your firewalls
<drakonis> garbas: i have, yes.
<drakonis> where might they be?
<drakonis> ah i found it
<thequux[m]> I actually have a plan in mind for how to do what I'm looking for: spawn a network namespace that doesn't share the host, create a bunch of veth pairs in it, then move half of them into another namespace. Run scapy in both, and send a bunch of packets from the controller namespace, and make sure they show up in the right place in the target namespace.
<drakonis> a good start.
<thequux[m]> (or pop out of the target namespace in the right place, as the case may be)
<garbas> drakonis: sorry my pasting currently doesnt work on my weechat (or screen or mosh)
<drakonis> dont worry about it.
Makaveli7 has quit [Quit: WeeChat 2.7.1]
enteee has joined #nixos
chloekek has quit [Ping timeout: 256 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
garbas has quit [Quit: WeeChat 2.7.1]
growpotkin has joined #nixos
<infinisil> How about changing environment.systemPackages to an attribute set
<infinisil> E.g. `environment.systemPackages.ripgrep = pkgs.ripgrep`
<infinisil> Then you could remove packages again that are set elsewhere
<infinisil> And you could also get an error if you assign the same key multiple times
<infinisil> (aka you have multiple versions of the same package)
<infinisil> `environment.systemPackages = { inherit (pkgs) ripgrep curl jq; }`
<niso> this could also be used to override attributes of packages
<immae> infinisil: can this work? https://nixos.org/nixos/options.html says it must be an array. Or is it a suggestion for an evolution?
<niso> nvm
<infinisil> immae: An idea for improvement :)
<immae> ah ok
<infinisil> (it wouldn't be called systemPackages though, for backwards compat)
<immae> right
<immae> (I’m all for it as far as I am concerned :p )
<cole-h> environment.packageAttrs?
gustavderdrache has quit [Quit: Leaving.]
<cole-h> environment.systemPackageAttrs?
jgeerds has joined #nixos
<infinisil> Maybe something like that
<infinisil> Or just `environment.pkgs` or `environment.packages`
<cole-h> `environment.packages`++
<cole-h> Not that it matters, but it brings it (somewhat) nicely in line with `home.packages` from hm
cosimone has quit [Remote host closed the connection]
<cole-h> (except home.packages is still a list x) )
<infinisil> Hm yeah
<gchristensen> infinisil: and allows for removing packages (foo = null)
cosimone has joined #nixos
<infinisil> (yeah, mentioned that already :))
<gchristensen> oh
<clever> gchristensen: what about order though?
<clever> gchristensen: what if i want foo to come before bar?
<gchristensen> why would you?
<clever> foo defines a shell script that overwrites a binary in bar
<infinisil> I don't think the order of systemPackages has any meaning
<clever> and buildEnv should prefer one over the other
<gchristensen> hrm
<infinisil> You need to use lib.hiPrio/lowPrio for that
<clever> infinisil: buildEnv already does priority based on order, and warns on collision
<infinisil> Well then let's deprecate order-based priority, people should use {hi,low}Prio instead
<infinisil> :P
<cole-h> :D
<clever> yeah, i can see that being a valid solution
garbas has joined #nixos
<infinisil> But really, the order of elements in list options really is rather insignificant
<infinisil> Or should be
<infinisil> Because if you do e.g. `imports = [ ./foo ./bar ]` or `imports = [ ./bar ./foo ]`, this changes the order of all list options defined in both
<clever> yeah
<infinisil> Which arguably shouldn't happen
<infinisil> Really, I'm thinking about straight up deprecating types.listOf
<infinisil> Because of the "can't override that" problem and the "order matters" problem
<infinisil> Won't happen probably, but I'm just looking at what current uses of listOf could be changed to
chiefgoat has left #nixos ["Leaving"]
philr has joined #nixos
captjakk has joined #nixos
<cole-h> Overriding lists is pretty annoying
zeta_0 has quit [Quit: rebooting]
<infinisil> Maybe at least `listOf str`s could be transparently changed to `attrsOf bool`
<atemu12[m]> infinisil: Maybe, instead of outright replacing systemPakages with an attrset, how about converting it to one in the backend?
<infinisil> [ "foo" "bar" ] becomes { foo = true; bar = true; }
<infinisil> atemu12[m]: That might almost work, in most cases. Problem is that there's no clear way how to go from a derivation to its attribute
<gchristensen> infinisil: lists in general are problematic
<gchristensen> indeed
<infinisil> I *could* submit a PR for the patch that allows packages to know this though
<gchristensen> wat
<gchristensen> no please no
<infinisil> gchristensen: It remember it potentially being useful for a bunch of things
cosimone has quit [Quit: Terminated!]
<gchristensen> yeah.... but a bit unsafe to use it for anything
<evanjs> wait... "Successfully evaluated my system configs with the _module change". But emacs wont work now... unless I misconfigured something
<infinisil> pkgs.hello.__attrPath would give [ "hello" ], but it won't be a guarantee that `getAttrByPath pkgs.hello.__attrPath == pkgs.hello`
<gchristensen> what use cases do you think it would be good for?
<infinisil> evanjs: Works for me! _module was only removed from outside the module system, within it there's no problem with it
<evanjs> What the--hrmmmm
<evanjs> wonder if it's related to me referencing my nixosConfig from within the emacs module
nckx has quit [Ping timeout: 264 seconds]
nckx has joined #nixos
<infinisil> gchristensen: Ohhh, I just looked up why I originally implemented it, and the reason was rfcs#33, where I wanted deprecation warnings to automatically be able to show what attribute it's talking about
<gchristensen> ah
<gchristensen> btw I'm almost done getting {^_^} back up -- I'm sorry for the delay
<cole-h> You should be >:( I've missed my `> fortune`s
<infinisil> Currently people need to manually make sure that the attribute name is referenced in the warning, otherwise people have no idea where it comes from (seen that mistake a couple times in PRs)
<cole-h> (jkjk)
<gchristensen> cole-h: careful, your karma might suffer :P
<cole-h> 👀
<cole-h> Uhh... I mean... take your time!
<gchristensen> (IRL, not {^_^} karma)
Naptra has quit [Remote host closed the connection]
<cole-h> Oh, pfft, who cares then.
<infinisil> Hm I might go ahead and make a PR for the __attrPath thing
<monokrome> ,locate curl-config
* monokrome did it wrong?
<cole-h> Ever since I started using Nix, my contributions have skyrocketed. It makes it so much easier to set up temporary environments that Just Work™ and don't need to do much fiddling around
<infinisil> monokrome: (bot's taking a break)
<evanjs> infinisil: .... okay I have no idea what just happened, but um... yeah. same. works for me, now :D
<monokrome> o >.<
<cole-h> monokrome: Bot's dead. You can find that in `curl` and `curlFull`
<monokrome> it isn't in either
<cole-h> The dev output, sorry
<monokrome> I have it installed
<cole-h> `curl.dev` and `curlFull.dev`
<monokrome> oooh ok
<monokrome> thanks!
<cole-h> :)
<monokrome> =^.^= appreciate it
relaxmax has quit [Quit: Leaving]
<NobbZ[m]> I really love `nix run`, why isn't this a thing in other distros?
{^_^} has joined #nixos
<Yaniel> what's it do?
<infinisil> Because it's probably impossible to implement if you don't have something like Nix :)
<infinisil> Or ugly
<gchristensen> ,botsnack
<{^_^}> Oh thanks, have a cookie yourself
<NobbZ[m]> Arch's pacman and also Gentoos emerge should be able to do something similar… Not as isolated, but the "install and remove on next GC" should be possible
<energizer`> `run foo` is a strange name for "create a shell containing foo"
<cole-h> > fortune
Jackneill has quit [Ping timeout: 250 seconds]
<{^_^}> "You're currently going through a difficult transition period called Life."
<NobbZ[m]> Both allow to install packages "as dependency"
<cole-h> 🎉 gchristensen
<gchristensen> woof that fortune is a bit tooooooooo on the nose, {^_^}
<cole-h> When building a package with GNUmake, is there a special place to put `PREFIX=` so it gets recognized by both `buildPhase` and `installPhase`?
<cole-h> `makeFlags = [ "PREFIX=$out" ];` didn't appear to do it
<multun> {^_^} gone emo
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
<infinisil> cole-h: configureFlags possibly
* cole-h tries
<cole-h> Nope x)
<infinisil> Try just a derivation attribute directly
<infinisil> (-> env var)
<cole-h> That didn't work either :(
<cole-h> `PREFIX = "$out";`
<cole-h> I could just put it in postPatch. That seems to work.
<infinisil> Does it not get passed or is $out wrong?
<cole-h> `export PREFIX="$out"`
<cole-h> It doesn't get passed
<cole-h> Or doesn't appear to
<infinisil> How about `PREFIX = placeholder "out"`
<infinisil> (or try that with configurePhase too)
<infinisil> configureFlags
<cole-h> Yep that does it. I'll put it in configureFlags and see if that works too
<infinisil> It's a real gamble sometimes about whether $out gets substituted or not, placeholder is a bit more safe :2
<cole-h> configureFlags = no bueno.
blaggacao has quit [Read error: Connection reset by peer]
<cole-h> Nor `makeFlags`
<cole-h> `PREFIX = placeholder "out";` it is!
<cole-h> infinisil++
<{^_^}> infinisil's karma got increased to 238
<infinisil> :D
blaggacao has joined #nixos
cosimone has joined #nixos
__monty__ has quit [Quit: leaving]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4726a8f2d4d (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
turion has quit [Ping timeout: 246 seconds]
<witchof0x20> Any recommendations on how to benefit from https://github.com/NixOS/nixpkgs/pull/80680 ? I'm currently running my system on 19.09, with some packages selected from nixpkgs-unstable. I tried just using `nixpkgs_unstable.nixops` but that has the same issue
<{^_^}> #80680 (by samueldr, 3 weeks ago, merged): runInLinuxVM: Ensure tools requiring /etc/passwd work
<samueldr> witchof0x20: oops, didn't comment on the nixpkgs-side issue, but on the nixops-side issue
<samueldr> it's not enough to fix the libvirt issue
<samueldr> the libvirt plugin issue*
<witchof0x20> oh dang :/
justanotheruser has joined #nixos
knupfer has joined #nixos
<samueldr> I'm not personally using nixops, everything nixpkgs-side is now fixed though
<samueldr> I know the libvirt plugin is supposed to have a fix
<samueldr> but I have no idea how it gets updated by the nixops project
nikivi has quit [Ping timeout: 246 seconds]
<niso> samueldr: just wondering: the pine64-pinebookpro branch in nixos-mobile will superseed wip-pinebook-pro right?
matthiaskrgr has quit [Ping timeout: 246 seconds]
<samueldr> I don't know yet
<samueldr> right now it's an experiment
<samueldr> until mobile nixos can kexec into the generation's kernel, I wouldn't think it'll supersede it
linarcx has quit [Quit: WeeChat 2.7.1]
<samueldr> and then once that's done, wip-pinebook-pro will still be needed, maybe
<samueldr> probably two complementing pieces
<niso> i see thanks
gustavderdrache has joined #nixos
knupfer has quit [Remote host closed the connection]
erasmas has quit [Quit: leaving]
<samueldr> ideally wip-pinebook-pro will be removed at some point when all the bits are simply part of the mainline kernel
liminal18 has joined #nixos
<liminal18> hey is it possible to intall mongodb > 4.0
<liminal18> or just equal to it
captjakk has quit [Remote host closed the connection]
captjakk has joined #nixos
captjakk has quit [Read error: Connection reset by peer]
captjakk has joined #nixos
captjakk_ has joined #nixos
<niso> samueldr: hopefully i get that thing usable before that :P
<liminal18> looks like I need to use a branch: https://github.com/NixOS/nixpkgs/pull/40082
<{^_^}> #40082 (by jarjee, 1 year ago, open): mongodb: 3.4.10 -> 4.0.12
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
captjakk_ has quit [Remote host closed the connection]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
fendor has quit [Read error: Connection reset by peer]
m1cr0m4n has quit [Ping timeout: 268 seconds]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
lovesegfault has quit [Quit: WeeChat 2.7.1]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 250 seconds]
mrCyborg has joined #nixos
zeta_0 has joined #nixos
mrCyborg has quit [Ping timeout: 246 seconds]
zeta_0 has left #nixos ["rcirc on GNU Emacs 26.3"]
cyraxjoe has quit [Ping timeout: 246 seconds]
MightyJoe has joined #nixos
o1lo01ol1o has joined #nixos
jgeerds has quit [Ping timeout: 264 seconds]
alexherbo2758 has joined #nixos
captn3m0 has quit [Ping timeout: 256 seconds]
alexherbo275 has quit [Ping timeout: 250 seconds]
captn3m0 has joined #nixos
<mudri> Hi. To cut a long story short, I decided to make the following changes to the nixos-unstable branch of nixpkgs so as to test out Agda 2.6.1. But when I install it (via `ghcWithPackages`, as I did before), it's noticeably slow and memory-hungry (compared to the previous version). Any idea what could be happening? https://www.irccloud.com/pastebin/mcK25epx/
<mudri> When I say “previous version”, I mean Agda 2.6.0.1, compiled on the standard Hydra maybe a week or two ago.
<infinisil> mudri: Well the only thing that changed is the version, so that's gotta be it
maddo has quit [Quit: See ya]
<mudri> And I'm pretty sure it's not a regression in Agda. I've checked with users on other distros.
<infinisil> Hmm
<mudri> infinisil: Maybe also the default GHC settings or something since last week?
<infinisil> Maybe it's a combination of a change in Agda and Nix (so non-nix users aren't getting it)
alexherbo2758 has quit [Ping timeout: 264 seconds]
anon35565[m] has left #nixos ["User left"]
<infinisil> mudri: Oh, I'd try to build the version just before the change you made
<mudri> infinisil: I'd love to, but it doesn't build any more.
<infinisil> Can you fix it?
gila has quit [Ping timeout: 240 seconds]
<mudri> hackage-packages.nix has moved on, and it no longer has the right dependencies for 2.6.0.1. Maybe I could chase them down, though.
<mudri> Oh, and just to make sure I'm not going completely mad, there should be no difference between compiling here and compiling on Hydra, right?