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/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2019 || For best support,
<{^_^}> [nixpkgs] @misuzu opened pull request #77479 β†’ nixos/docker-containers: daemonize docker run and handle restarts by docker β†’ https://git.io/Jvffr
<Valodim[m]> is there a function to shell-escape a string?
<gchristensen> yeah
<gchristensen> > lib.strings.escapeShellArg
<{^_^}> <LAMBDA>
<gchristensen> > lib.strings.escapeShellArg "'\'$foo"
<{^_^}> "''\\'''\\''$foo'"
<Valodim[m]> nice. thanks
eoli3n_ has quit [Quit: WeeChat 2.7]
cosimone has quit [Ping timeout: 248 seconds]
erictapen has quit [Ping timeout: 240 seconds]
<evanjs> tek[m]: looks like the winner is openat(AT_FDCWD, "/nix/store/i1fgflxmr7qigc0jjjkspmjk2j0y21k0-nixos-19.09.1815.caad1a78c47/nixos/pkgs/tools/system/efivar/default.nix", O_RDONLY|O_CLOEXEC) = 6
<evanjs> a bunch of other reads between that and the "garbage" reads though
<tek[m]> evanjs: is `6` the fd of the garbage reads?
<evanjs> I'll check but wow -- `-rw-r--r-- 1 evanjs users 687M Jan 10 19:11 why` - yeah not doing that again :D
tigran has quit [Remote host closed the connection]
<tek[m]> oh that sounds plausible πŸ™‚
erictapen has joined #nixos
<evanjs> tek[m]: looks like it's 3
<tek[m]> then you'll have to look for the open or connect that has `= 3` at the end
<tek[m]> might also be helpful to look at `lsof -p $pid`
virus_dave has joined #nixos
<{^_^}> [nixpkgs] @riotbib opened pull request #77480 β†’ Added `trusted_proxies` setting to nextcloud β†’ https://git.io/JvfJe
zeta_0 has quit [Quit: rebuilding]
virus_dave has quit [Client Quit]
vidbina_ has joined #nixos
jgeerds has quit [Ping timeout: 258 seconds]
mbrgm_ has joined #nixos
<{^_^}> [nixpkgs] @marsam closed pull request #77428 β†’ bandwhich: 0.7.0 -> 0.8.0 β†’ https://git.io/Jvv1i
vidbina has quit [Ping timeout: 258 seconds]
mbrgm has quit [Ping timeout: 260 seconds]
mbrgm_ is now known as mbrgm
smatting has quit [Ping timeout: 265 seconds]
vidbina_ has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #77406 β†’ nodejs-10_x: 10.18.0 -> 10.18.1 β†’ https://git.io/Jvvzt
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvfJm
<{^_^}> [nixpkgs] @marsam merged pull request #77411 β†’ shadowsocks-libev: 3.3.3 -> 3.3.4 β†’ https://git.io/Jvva2
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvfJY
lovesegfault has joined #nixos
evanjs has quit [Quit: ZNC 1.7.4 - https://znc.in]
<{^_^}> [nixpkgs] @marsam merged pull request #77404 β†’ clojure-lsp: 20200106T233511 -> 20200109T185134 β†’ https://git.io/JvvRw
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvfJG
<elvishjerricco> I wonder if updating NixOS puts a new version of the ZFS user utils on PATH, even though the ZFS kernel module can't be updated till reboot. I'm sure there are some cases where that can be problematic.
work_ has quit [Quit: Connection closed for inactivity]
evanjs has joined #nixos
<elvishjerricco> Specifically with unstable. I'm sure no such problems are likely on a stable channel
turona has quit [Ping timeout: 246 seconds]
turona has joined #nixos
mexisme_ has joined #nixos
mexisme_ has quit [Ping timeout: 248 seconds]
zeta_0 has joined #nixos
<pie_[bnc]> does anyone know how to get to documentation when using the mozilla rust overlay
<zeta_0> i am trying to install all-hies in home.nix and i am getting this weird error from something in configuration.nix, could you guys take a look? thanks: https://hastebin.com/qumusugawu.cs https://hastebin.com/dokuvazeli.coffeescript https://hastebin.com/buyosevuyu.bash
m0rphism has quit [Ping timeout: 268 seconds]
takeda has quit [Ping timeout: 265 seconds]
o1lo01ol1o has quit [Ping timeout: 258 seconds]
Rusty1 has quit [Remote host closed the connection]
<zeta_0> i wonder why that change caused an error in configuration.nix, it says:
<zeta_0> The option value `home-manager.users.zeta.home.packages.[definition 1-entry 2]' in `/etc/nixos/configuration.nix' is not of type `package'.
viric_ has joined #nixos
azdle has joined #nixos
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/01423cbae4e (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
viric has quit [Ping timeout: 268 seconds]
<zeta_0> oh i think i know what is causing it
zeta_0 has quit [Quit: rebuilding]
lovesegfault has quit [Quit: WeeChat 2.7]
Rusty1 has joined #nixos
zeta_0 has joined #nixos
rengglian has quit [Remote host closed the connection]
rushsteve1 has quit [Quit: Ping timeout (120 seconds)]
mrus has quit [Ping timeout: 250 seconds]
orbekk has quit [Ping timeout: 250 seconds]
rushsteve1 has joined #nixos
br_ has quit [Ping timeout: 250 seconds]
mrus has joined #nixos
orbekk has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #74397 β†’ joker: 0.12.9 -> 0.13.0 β†’ https://git.io/JeXPN
<zeta_0> this is throwing a weird syntax error in home.nix, could you guys help me out, it is probably something simple that i am missing? https://hastebin.com/vebowidide.bash
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvfJx
br_ has joined #nixos
Guest92090 has quit [Ping timeout: 268 seconds]
zeta_0 has quit [Quit: another rebuild]
thc202 has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @marsam pushed commit from @r-ryantm to release-19.09 Β« joker: 0.12.7 -> 0.14.0 Β»: https://git.io/JvfUT
colemickens_ has joined #nixos
<gchristensen> ,smart-questions if zeta comes back asking that question again, please ask them how their reading of this went, and in what ways they applied this to the question they're asking:
<{^_^}> if zeta comes back asking that question again, please ask them how their reading of this went, and in what ways they applied this to the question they're asking:: How to get better and faster answers to your questions: https://www.mikeash.com/getting_answers.html
<{^_^}> [nixpkgs] @marsam pushed commit from @r-ryantm to release-19.09 Β« wolfssl: 4.2.0 -> 4.3.0 Β»: https://git.io/JvfUL
schorsch has quit [Remote host closed the connection]
fendor has quit [Quit: Leaving]
zeta_0 has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #77369 β†’ cargo-deb: 1.23.0 -> 1.23.1 β†’ https://git.io/JvvqW
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvfUs
<{^_^}> [nixpkgs] @peti pushed to haskell-updates Β« hackage-packages.nix: automatic Haskell package set update Β»: https://git.io/JvfUG
iyzsong has joined #nixos
<zeta_0> infinisil: i am pretty sure that i copied your all-hies declarative instructions for home.nix exactly in github (except for wrapping it in parenthesis), but it is still throwing this weird error? https://hastebin.com/koqoxeneka.cs https://hastebin.com/ohejuququf.rb https://hastebin.com/avowaconaq.bash
<{^_^}> [nixpkgs] @marsam merged pull request #77245 β†’ google_talk_plugin: sha1 -> sha256 β†’ https://git.io/Jvemg
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvfUl
zarel has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #77321 β†’ rq: 0.10.4 -> 1.0.2 β†’ https://git.io/JveKc
<{^_^}> [nixpkgs] @marsam pushed 3 commits to master: https://git.io/JvfUR
<infinisil> zeta_0: Comment out the `(all-hies.selection ...` line. Do you still get the error?
werner291 has quit [Quit: werner291]
<gchristensen> zeta_0: how did reading that mikeash.com article go, and have you tried applying its principles? I'm wondering if you've found it helpful yet
zarel has joined #nixos
tchitchi has joined #nixos
tchitchi has left #nixos [#nixos]
<zeta_0> infinisil: if i comment out `(all-hies.selection ...)` i still get the same error?
<zeta_0> gchristensen: i only skimmed through the main points, could you resend me the link, thanks
<gchristensen> ,smart-questions sure, zeta_0
<{^_^}> sure, zeta_0: How to get better and faster answers to your questions: https://www.mikeash.com/getting_answers.html
<gchristensen> I expect you to give it a good read, and apply its principles for all your future questions here
<zeta_0> gchristensen: ok, i saved the link, i'll read when i finish with the problem that i am dealing with right now
<gchristensen> okay, but fingers crossed your next question will be after you have read it.
<infinisil> zeta_0: Now replace `import /home/zeta/.config/nixpkgs/home.nix` with the contents of that file. Do you still get the error?
<colemickens> Does specifying users.cole.openssh.authorizedKeys.keys prevent the usage of /home/cole/.ssh/authorized_keys ?
<gchristensen> no
erictapen has quit [Ping timeout: 260 seconds]
<colemickens> Right, of course. My concat of keys went awry.
xkapastel has quit [Quit: Connection closed for inactivity]
johnw has quit [Remote host closed the connection]
<zeta_0> infinisil: months ago another nix user helped me integrate configuration.nix with home.nix, maybe the way home-manager is setup, some names are conflicting or something, i don't know, the corresponding code should be towards the bottom of my configuration.nix file
<{^_^}> [nixpkgs] @NeQuissimus pushed 3 commits to master: https://git.io/JvfUM
<zeta_0> infinisil: i am a little confused about your previous instruction, replace the contents of what file? sorry i am little lost, thank for having patience
<infinisil> zeta_0: Replace the expression `import /home/zeta/.config/nixpkgs/home.nix` in configuration.nix with the contents of /home/zeta/.config/nixpkgs/home.nix
<zeta_0> infinisil: so you want me to paste everything in home.nix in the corresponding home-manager section of configuration.nix?
<zeta_0> infinisil: my guess it that it has something to do with home-manager installed in the user account section, months ago i moved home-manager from the systemPackages section to my user account section, maybe that is what's causing the conflict?
h0m1 has quit [Ping timeout: 248 seconds]
<infinisil> zeta_0: Yes that's what I mean
ditadi has quit [Read error: Connection reset by peer]
h0m1 has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #74255 β†’ mullvad-vpn: 2019.8 -> 2019.10 β†’ https://git.io/JeP9S
<{^_^}> [nixpkgs] @marsam pushed 4 commits to master: https://git.io/JvfTf
<dansho> how do you specify the contents of /etc/emacs/default.el for emacs?
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #nixos
<zeta_0> infinisil: ok, i did it, let me try a rebuild real quick, then i'll let you know if an error was thrown or not: https://hastebin.com/ucujuxucob.bash
<dansho> looks like theres a whole chapter on emacs in the nixos manual =C
<zeta_0> infinisil: i did exactly what you said and the same error was still thrown?
<infinisil> zeta_0: Oh, well there's the problem. The file you posted earlier looks like your home.nix: https://hastebin.com/koqoxeneka.cs
<infinisil> But it's not
<infinisil> You apparently removed the whole context around that expression
<zeta_0> infinisil: this is my home.nix and configuration.nix with all of home.nix's content pasted in the corresponded home-manager section like you said, sorry if i messed up while paste binning: https://hastebin.com/epasatisov.bash https://hastebin.com/ihunoweges.bash
Guest92090 has joined #nixos
<infinisil> zeta_0: Okay now think for a moment. Actually think about what your config looks like. What is that `let all-hies = ...; in` there? what is `home.packages`? Don't you have another home.packages? How do expressions work? How do variables work? Is { ... } a package?
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
alex`` has quit [Quit: WeeChat 2.7]
<{^_^}> [nixpkgs] @adisbladis merged pull request #77429 β†’ go: 1.13.5 -> 1.13.6, go_1_12: 1.12.10 -> 1.12.15 β†’ https://git.io/Jvv1S
<{^_^}> [nixpkgs] @adisbladis pushed 3 commits to master: https://git.io/JvfTq
geosmin has quit [Read error: Connection reset by peer]
<infinisil> The snippet in all-hies, doesn't that look like a home.nix? How would you take parts of that snippet and extend your home.nix with it?
<infinisil> Just think about this for a while, try to figure it out for yourself. I won't hand hold you this time.
<boxscape> So, ever since I got a new CPU and mainboard, if I leave my nixos system running for a few hours, the screen goes black, and it seems to automatically switch to a new config that I can't boot into. (I have to select the older config to boot). Is that (at least the part where it automatically builds and switches to a new config) expected?
<infinisil> zeta_0: And if you're stuck, make your config as simple as possible, remove all things that are irrelevant and try again to understand it. Mess with the expression until you understand what the error means
<zeta_0> infinisil: ok, i think i get what you mean now, i feel embarrassed right now
<infinisil> zeta_0: Cool, now do this thinking every time before you ask a question
chenhq2005 has joined #nixos
<infinisil> thinking and tinkering and trying stuff out too
<zeta_0> infinisil: it wasn't all my fault the error messages that nix threw didn't help me catch my mistake, oh well, like you said, i got to keep thinking and tinkering
mexisme_ has joined #nixos
<infinisil> No the error message is (almost) entirely appropriate and should have helped with this. I suggest you try to understand why that it.
<infinisil> why that is*
<infinisil> Being able to understand what errors mean is very important for debugging problems
<zeta_0> infinisil: i have my home.nix configuration setup really good, i just need to fix all-hies and ihaskell. i almost have the nix-shell workflow going, then i should be good do go
<zeta_0> infinisil: nix feels so much harder than haskell, but i guess this is subjective
mexisme_ has quit [Ping timeout: 260 seconds]
ddellacosta has quit [Ping timeout: 258 seconds]
<martyet-o> mmmm, stupid question.. is it easier to fresh install nixos 19.03 (in order to downgrade) or just downgrade from nixos (how?)
<gchristensen> do you remember how to change the channel, martyet-o?
<martyet-o> gchristensen, mmm discovered new world on wiki :)
<gchristensen> :)
ddellacosta has joined #nixos
<evanjs> On a related note.... I still haven’t seen anything telling me to update my version string in mt configuration. Will I ever see such a message? 😝
* gchristensen has never needed to
<gchristensen> when I sudo, why do I see this? "gpg-connect-agent: failed to create temporary file '/root/.gnupg/.#lk0x000000000174b8d0.Petunia.2301': No such file or directory
zeta_0 has quit [Remote host closed the connection]
<gchristensen> `sudo -i` specifically
boxscape has quit [Ping timeout: 240 seconds]
chenhq2005 has quit [Ping timeout: 260 seconds]
Thra11 has quit [Quit: WeeChat 2.7]
zeta_0 has joined #nixos
ixxie has quit [Ping timeout: 265 seconds]
<zeta_0> infinisil: ok, so i fixed the all-hies installation in home.nix, so that is good to go
felixfoertsch has joined #nixos
<zeta_0> infinisil: now when i open a haskell file in a cabal project i get this error: Command "hie-wrapper --lsp -d -l /tmp/hie.log" is not present on the path.
<zeta_0> infinisil: i get the same error when opening a single haskell file as well
felixfoertsch23 has quit [Ping timeout: 260 seconds]
colemickens_ has quit [Quit: Connection closed for inactivity]
<zeta_0> is this problem nix related or should i go to a different channel for help?
slack1256 has joined #nixos
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
<evanjs> zeta_0: That sounds more like you have a command bound to something that expects a program, or rather, a single object available in your $PATH
aw has joined #nixos
aw has joined #nixos
aw has quit [Changing host]
spacefrogg has joined #nixos
<zeta_0> evanjs: i am sure now that i correctly installed all-hies in home.nix, now i just need to make sure my lsp config in emacs is ok, maybe that is what is causing the error?
<zeta_0> anyways, almost there, progress is good
<evanjs> Yes that is what it sounds like
<evanjs> Specifically, whatever `hie-wrapper -- lsp ...` is bound to
<zeta_0> evanjs: i am pretty sure the code in my .emacs is correct, so i am not sure what to do next to troubleshoot the error?
<evanjs> Do you have the config available that can be shared?
<zeta_0> evanjs: here is both my home.nix and .emacs configurations: https://hastebin.com/agoqomoger.bash https://hastebin.com/oxasehuzes.sql
<zeta_0> evanjs: oh i think i accidentally put my all-hies installation inside of my haskellPackages no directly within home.packages, let me do a quick rebuild, sorry i didn't catch the mistake earlier
<zeta_0> nix should tell me when i paste things in the wrong spot, well, i am going to do a quick rebuild
<evanjs> zeta_0: that’s a thing with any highly customizable system, and with computers in general. How can they ever really know where the β€œright” place is? They’re only as good as we make/use them
<zeta_0> evanjs: sorry about that, i start making mistakes when i start getting tired
<zeta_0> evanjs: i'll let you know if the rebuild fixed my problem
<tbenst[m]> hydra question! Anyone know how to get hydra to copy build outputs to hydra's /nix/store from a build machine? Seems like it doesn't happen by default unless I'm missing something
zeta_0 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @andrew-d opened pull request #77482 β†’ sidequest: 0.7.6 -> 0.8.4 β†’ https://git.io/Jvfkg
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
zeta_0 has joined #nixos
<zeta_0> evanjs: ok that fixed it, hie works now when i open a single haskell file, i just started a cabal project and opened a haskell file inside of it, lets see if it is able to build cabal this time
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/59c4035e58e (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<tbenst[m]> when a build is done on a build machine, I see only two files on hydra-server: `/var/lib/hydra/cache/hks67kr0wvd5kl9hk8yinmnkx6lviapi.narinfo` and `/nix/var/nix/gcroots/hydra/hks67kr0wvd5kl9hk8yinmnkx6lviapi-python3.7-mlflow-1.4.0`. Nothing in /nix/store
<tbenst[m]> only clue I get from journalctl is `hydra-queue-runner[2163]: copying path '/nix/store/hks67kr0wvd5kl9hk8yinmnkx6lviapi-python3.7-mlflow-1.4.0' (60848440 bytes, compressed 0.0% in 39 ms) to binary cache`, and yet I see nothing in store. Plenty of space on disk drive
JakeRake has joined #nixos
kleisli has joined #nixos
<{^_^}> [nixpkgs] @zowoq opened pull request #77483 β†’ crun: 0.10.6 -> 0.11 β†’ https://git.io/JvfkX
mexisme_ has joined #nixos
<{^_^}> [nixpkgs] @cdepillabout opened pull request #77484 β†’ spago: 0.13.0 -> 0.13.1 β†’ https://git.io/JvfkF
chagra_ has joined #nixos
mexisme_ has quit [Ping timeout: 246 seconds]
chagra has quit [Ping timeout: 268 seconds]
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c16dd6d9ce5 (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
<wedens[m]> anyone tried to create derivation for the latest libvirt?
mexisme_ has joined #nixos
domogled has joined #nixos
JakeRake has left #nixos [#nixos]
<{^_^}> [nixpkgs] @jonringer merged pull request #77468 β†’ python.pkgs wide: fix problematic urls β†’ https://git.io/JvvpI
<{^_^}> [nixpkgs] @jonringer pushed to master Β« python.pkgs wide: fix problematic urls Β»: https://git.io/JvfIU
bhipple has joined #nixos
zeta_0 has quit [Quit: rcirc on GNU Emacs 26.3]
lovesegfault has joined #nixos
endformationage has quit [Ping timeout: 240 seconds]
dansho has quit [Quit: Leaving]
bugQ_ has joined #nixos
rogue_koder has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @jtojnar closed pull request #76668 β†’ sman: init at 0.2.0 β†’ https://git.io/JeNAd
<wedens[m]> I'm trying to override src for tor-browser-bundle-bin using overrideAttrs, but it results in attempts to download both old and new srcs :O wtf?
<bhipple> What's the override that you have?
<wedens[m]> https://paste.ee/p/zmm4o that's what I have in the overlay
<bhipple> It looks like the meta is using the srcs to compute the platforms, but you're only overriding src
<wedens[m]> but it should only use attr names in meta
fusion809 has quit [Read error: Connection reset by peer]
<wedens[m]> perhaps I misunderstand how laziness works in this case
fusion809 has joined #nixos
<bhipple> hmm, looking at it, it seems like your understanding should be right . . .
<wedens[m]> overriding meta changes nothing fwiw
<bhipple> yeah, same for me (no difference with meta override)
<wedens[m]> there is only one place where I use this derivation and it uses this exact attribute name (no aliases)
<wedens[m]> so, I just have no clue where it might get the old version
<bhipple> FWIW the commit on the master branch is using the 9.0.4 version already
<lovesegfault> How can I have a conditional on the OS being Linux?
<bhipple> ohhhhh I see the problem
<lovesegfault> Like {} // if linux { foo = bar; } else { };
<bhipple> Take a look in the `buildCommand`: it references the original `tar xf "${src}"`, which will have been expanded out to a regular string by the time the overlay mechanism kicks in
<lovesegfault> *{} // if linux then { a=b; } else {};
<wedens[m]> lovesegfault: stdenv.isLinux
<lovesegfault> wedens[m]: where does stdenv come from? lib?
<bhipple> wedens[m]: you'll have to replace the `buildCommand` string in your overlay. Usually, we factor into smaller phases like postUnpack so it's easier to overlay a small part of the build string, so it might not be a bad idea to contribute some refactoring here
<wedens[m]> lovesegfault: nixpkgs (commonly mentioned as `pkgs` attr)
<lovesegfault> wedens[m]: Thank you :)
<wedens[m]> bhipple: you might be right. I thought buildCommand is not evaluated yet at this point
<wedens[m]> fuck it then. I'll wait for unstable to update..
<bhipple> wedens[m]: it's not evaluated, but nix var references will have been expanded already to a string. This means you could run a substitute on the string for oldAttrs.src -> src
<bhipple> You can run nix show-derivation -f . tor-browser-bundle-bin to see what I mean
<lovesegfault> wedens[m]++
<{^_^}> wedens[m]'s karma got increased to 4
bvdw has quit [Read error: Connection reset by peer]
zarel_ has joined #nixos
bvdw has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #77487 β†’ acpica-tools,iasl: 20191213 -> 20200110 β†’ https://git.io/JvfIS
zarel has quit [Ping timeout: 265 seconds]
<lovesegfault> Is there an easy way to conditionally concat things?
hpfr has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @dtzWill opened pull request #77488 β†’ ipset: 7.4 -> 7.5, pname β†’ https://git.io/JvfI9
<lovesegfault> > [ "a" ] ++ if 1 then [ "b" ] else [ "c" ];
<{^_^}> error: syntax error, unexpected IF, at (string):273:12
<lovesegfault> > [ "a" ] ++ (if 1 then [ "b" ] else [ "c" ]);
<{^_^}> error: syntax error, unexpected ';', expecting ')', at (string):273:44
<lovesegfault> > [ "a" ] ++ (if 1 then [ "b" ] else [ "c" ])
<{^_^}> value is an integer while a Boolean was expected
<lovesegfault> > [ "a" ] ++ (if true then [ "b" ] else [ "c" ])
<{^_^}> [ "a" "b" ]
<{^_^}> [nixpkgs] @dtzWill opened pull request #77489 β†’ fail2ban: 0.10.4 -> 0.10.5 β†’ https://git.io/JvfIH
<lovesegfault> sweet
Rusty1 has quit [Quit: Konversation terminated!]
<{^_^}> [nixpkgs] @dtzWill opened pull request #77490 β†’ kernel/update.sh: always use -e β†’ https://git.io/JvfI5
palo1 has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #77491 β†’ qmidinet: fix by using qt's mkDerivation β†’ https://git.io/JvfIF
<pie_[bnc]> [ "a" ] ++ [(if true then "b" else "c")]
<pie_[bnc]> > [ "a" ] ++ [(if true then "b" else "c")]
<{^_^}> [ "a" <CODE> ]
chagra_ has quit [Ping timeout: 268 seconds]
<pie_[bnc]> > lib.traceValSeqN 2 ([ "a" ] ++ [(if true then "b" else "c")])
<{^_^}> [ "a" "b" ]
bgamari has quit [Quit: ZNC 1.7.3 - https://znc.in]
bgamari has joined #nixos
felixfoertsch has quit [Quit: ZNC 1.7.4 - https://znc.in]
iyzsong has quit [Remote host closed the connection]
felixfoertsch has joined #nixos
iyzsong has joined #nixos
mexisme_ has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #77492 β†’ dhcp: fix homepage, quote β†’ https://git.io/JvfIA
palo has quit [Ping timeout: 258 seconds]
palo1 is now known as palo
maurer has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @dtzWill opened pull request #77493 β†’ python3Packages.caldav: unbreak now that xandikos is packaged, touchups β†’ https://git.io/JvfLJ
<{^_^}> [nixpkgs] @dtzWill opened pull request #77494 β†’ ocrmypdf: 9.2.0 -> 9.4.0 β†’ https://git.io/JvfLT
<{^_^}> [nixpkgs] @dtzWill opened pull request #77495 β†’ zsh-autosuggestions: 0.6.3 -> 0.6.4 β†’ https://git.io/JvfLI
<{^_^}> [nixpkgs] @dtzWill opened pull request #77496 β†’ cinnamon.xapps: 1.6.8 -> 1.6.10 β†’ https://git.io/JvfLm
<{^_^}> [nixpkgs] @dtzWill opened pull request #77497 β†’ ethtool: 5.3 -> 5.4 β†’ https://git.io/JvfLZ
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/4f2de85ac1c (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @dtzWill opened pull request #77498 β†’ packagekit: 1.1.12 -> 1.1.13 β†’ https://git.io/JvfLc
bob_twinkles has quit [Ping timeout: 250 seconds]
cruxeternus has quit [Ping timeout: 250 seconds]
cruxeternus has joined #nixos
bob_twinkles has joined #nixos
jtobin has quit [Ping timeout: 248 seconds]
jtobin has joined #nixos
maurer has joined #nixos
glines has quit [Ping timeout: 250 seconds]
<{^_^}> [nixpkgs] @taku0 opened pull request #77499 β†’ thunderbird, thunderbird-bin: 68.3.1 -> 68.4.1 [Critical security fixes] β†’ https://git.io/JvfL8
glines has joined #nixos
aleph- has quit [Ping timeout: 250 seconds]
drakonis has quit [Quit: WeeChat 2.6]
BugeyeD has quit [Ping timeout: 250 seconds]
BugeyeD has joined #nixos
drewc has quit [Ping timeout: 258 seconds]
aleph- has joined #nixos
drewc has joined #nixos
<{^_^}> [nixpkgs] @Emantor opened pull request #77500 β†’ microcom: init at 2019.01.0 β†’ https://git.io/JvfLw
palo1 has joined #nixos
smatting has joined #nixos
palo has quit [Ping timeout: 265 seconds]
palo1 is now known as palo
<{^_^}> [nixpkgs] @jtojnar opened pull request #77501 β†’ tree-wide: fix more warning related to loaOf deprecation β†’ https://git.io/JvfLM
noonien has quit [Quit: Connection closed for inactivity]
nexgen has quit [Quit: Leaving]
Guest84 has joined #nixos
<Guest84> Is the nix cache slow today?
bugQ_ is now known as bugQ
ddellacosta has quit [Read error: Connection reset by peer]
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
<dminuoso_> Why is GHC 8.8.1 not in any of the channels yet?
<lovesegfault> Is there a better way to do this?
smatting has quit [Ping timeout: 260 seconds]
tsrt^ has quit [Ping timeout: 265 seconds]
<wedens[m]> > optional true "1234"
<{^_^}> [ "1234" ]
<wedens[m]> > optionals true [ 1 2 3 4 ]
<{^_^}> [ 1 2 3 4 ]
<wedens[m]> lovesegfault: ^
<lovesegfault> Oh!
<wedens[m]> just a bit more concise, if you want
<Guest84> Hello, is the nix cache really slow today?
<Guest84> What would my options be if it's giving me 10 kbps when speedtest shows full bandwidth?
<clever> ,cache Guest84
<Guest84> I will read those links but I should mention that from 6 months back until a month back I was able to download at full speed, only after a month of hiatus is there a problem.
<Guest84> thanks, i will read
slack1256 has quit [Remote host closed the connection]
<lovesegfault> wedens[m]: Is there an optional for string?
<wedens[m]> optionalString
<lovesegfault> wedens[m]: Is there optionalAttr?
<lovesegfault> > optionalAttr
<{^_^}> undefined variable 'optionalAttr' at (string):273:1
<lovesegfault> > optionalString
<{^_^}> <LAMBDA>
<lovesegfault> > optionalAttrs
<{^_^}> <LAMBDA>
<wedens[m]> optionalAttrs
<lovesegfault> Aha :D
<wedens[m]> lovesegfault: they're all listed here, btw https://nixos.org/nixpkgs/manual/#sec-functions-library
<Guest84> clever: `echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6` worked. Thank you for the links, first one had this tip
<wedens[m]> or you can open nix repl and play around with tab completion
<lovesegfault> wedens[m]: Thanks for the tip :D
<lovesegfault> wedens[m]++
<{^_^}> wedens[m]'s karma got increased to 5
marusich has joined #nixos
siiky has quit [Quit: leaving]
growpotkin has quit [Quit: ZNC 1.7.5 - https://znc.in]
<jtojnar> aargh, I keep forgetting `attrset ? foo` checks for "foo", not "${foo}"
eoli3n_ has joined #nixos
<{^_^}> [nixpkgs] @nlewo merged pull request #75911 β†’ when building a layered docker image, ignore it if tar encounters cha… β†’ https://git.io/Je54F
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/Jvft9
Guest84 has quit [Remote host closed the connection]
mexisme_ has joined #nixos
<{^_^}> [nixpkgs] @nlewo pushed to master Β« dockerTools.buildLayeredImage: fix typo in comments Β»: https://git.io/Jvftp
mexisme_ has quit [Ping timeout: 252 seconds]
bhipple has quit [Remote host closed the connection]
tsrt^ has joined #nixos
<{^_^}> [nixpkgs] @nlewo merged pull request #77081 β†’ run: init at 0.7.0 β†’ https://git.io/JejgJ
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/JvfqL
Neo-- has joined #nixos
<lovesegfault> I wish I could cache /nix/store in GH actions...
<lovesegfault> Maybe I should use cachix...
<{^_^}> [nixpkgs] @nlewo merged pull request #77061 β†’ gcompris: 0.97 -> 0.98 β†’ https://git.io/JejEn
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/Jvfqs
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/e4134747f56 (from 32 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
<lovesegfault> nix-env -iA cachix -f https://cachix.org/api/v1/install
<lovesegfault> Can I do this with nix-shell instead?
bugQ has quit [Ping timeout: 260 seconds]
<clever> lovesegfault: `nix-build https://cachix.org/api/v1/install -A cachix && ./result/bin/cachix`
<lovesegfault> clever: Ah, thank you :)
<lovesegfault> kind of lame that cachix from nixpkgs is borked
<{^_^}> [nixpkgs] @Emantor opened pull request #77502 β†’ ser2net: init at 4.1.1 (with gensio) β†’ https://git.io/Jvfq4
<{^_^}> [nixpkgs] @nlewo merged pull request #77041 β†’ rink: 0.4.4 -> 0.4.5 β†’ https://git.io/JejBa
<{^_^}> [nixpkgs] @nlewo pushed 3 commits to master: https://git.io/JvfqB
<{^_^}> [nixpkgs] @FRidh pushed 70 commits to staging-next: https://git.io/JvfqR
<domenkozar[m]> it's fixed now
<{^_^}> [nixpkgs] @FRidh pushed 546 commits to staging: https://git.io/Jvfq0
meck has quit [Quit: ZNC 1.7.5 - https://znc.in]
meck has joined #nixos
<lovesegfault> domenkozar[m]: Do you get pinged when someone says cachix? :P
marusich has quit [Quit: Leaving]
Neo-- has quit [Ping timeout: 265 seconds]
fusion809 has quit [Remote host closed the connection]
captn3m0 has quit [Ping timeout: 268 seconds]
<colemickens> It would be really cool if there was a package set that was built and cached best-effort.
<colemickens> I guess of limited value to end users though, if its unpredictable.
captn3m0 has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 3 commits to master: https://git.io/Jvfqw
<{^_^}> [nixpkgs] @vcunat merged pull request #77499 β†’ thunderbird, thunderbird-bin: 68.3.1 -> 68.4.1 [Critical security fixes] β†’ https://git.io/JvfL8
jD91mZM2 has quit [Quit: ZNC 1.7.5 - https://znc.in]
jD91mZM2 has joined #nixos
fling_ has joined #nixos
fling has quit [Ping timeout: 268 seconds]
fling_ is now known as fling
<jackdk> Has something changed in the 19.09 channel recently? my nixos-rebuild switch on two different machines has started failing with error: "cannot connect to daemon at '/nix/var/nix/daemon-socket/socket': Connection refused"
<evils> jackdk: i think that means the nix daemon got updated, https://github.com/NixOS/nixpkgs/issues/72372
<{^_^}> #72372 (by flokli, 10 weeks ago, open): Activation script snippet "nix" failed
<jackdk> evils: the suggested "just try and switch again" in your linked issue worked for me. Thank you.
<{^_^}> [nixpkgs] @vcunat pushed to staging Β« openssl_1_0_2: 1.0.2t -> 1.0.2u (low-severity security) Β»: https://git.io/JvfqN
kenjis has joined #nixos
<domenkozar[m]> lovesegfault yup :)
<lovesegfault> domenkozar[m]: What's the data limit on the free cachix?
<domenkozar[m]> 10G
<{^_^}> [nixpkgs] @vcunat pushed to release-19.09 Β« openssl_1_0_2: 1.0.2t -> 1.0.2u (low-severity security) Β»: https://git.io/JvfmI
<lovesegfault> domenkozar[m]: Oh, awesome! Thanks!
<{^_^}> [nixpkgs] @vcunat pushed to master Β« openssl_1_0_2: 1.0.2t -> 1.0.2u (low-severity security) Β»: https://git.io/Jvfmm
<{^_^}> [nixpkgs] @vcunat pushed to staging-19.03 Β« openssl_1_0_2: 1.0.2t -> 1.0.2u (low-severity security) Β»: https://git.io/JvfmY
lovesegfault has quit [Quit: WeeChat 2.7]
lovesegfault has joined #nixos
captn3m0- has joined #nixos
captn3m0 has quit [Ping timeout: 240 seconds]
lovesegfault has quit [Ping timeout: 246 seconds]
kenjis has quit [Remote host closed the connection]
lovesegfault has joined #nixos
opthomasprime has joined #nixos
<infinisil> lovesegfault: (Though currently that limit still isn't enforced apparently)
<srk> heh, error: invalid integer '9223372036854775806'
jgeerds has joined #nixos
<srk> nixos/modules/services/network-filesystems/orangefs/server.nix: maxHandle = 9223372036854775806;
<srk> but why :D
mexisme_ has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #77242 β†’ remmina: 1.3.8 -> 1.3.9 β†’ https://git.io/Jvet2
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jvfmg
<{^_^}> [nixpkgs] @vcunat pushed 144 commits to staging-19.09: https://git.io/Jvfm2
<{^_^}> [nixpkgs] @marsam merged pull request #77159 β†’ microsoft_gsl: 2.0.0 -> 2.1.0 β†’ https://git.io/JejHF
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jvfma
fendor has joined #nixos
mexisme_ has quit [Ping timeout: 260 seconds]
lovesegfault has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @flokli opened pull request #77505 β†’ mongodb-tools: use default openssl β†’ https://git.io/Jvfm6
<{^_^}> [nixpkgs] @marsam merged pull request #76320 β†’ libxl: 3.8.7 -> 3.8.8 β†’ https://git.io/Jvfmi
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvfmP
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvfmX
<{^_^}> [nixpkgs] @marsam merged pull request #76328 β†’ mill: 0.5.3 -> 0.5.6 β†’ https://git.io/Jvfm1
alex`` has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #76319 β†’ libsolv: 0.7.9 -> 0.7.10 β†’ https://git.io/JvfmQ
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jvfm7
knupfer has joined #nixos
<{^_^}> [nixpkgs] @marsam merged pull request #76314 β†’ libratbag: 0.11 -> 0.12 β†’ https://git.io/Jvfmd
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvfmF
<{^_^}> [nixpkgs] @marsam merged pull request #76338 β†’ mkvtoolnix: 40.0.0 -> 41.0.0 β†’ https://git.io/JeF6W
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jvfmb
<{^_^}> [nixpkgs] @marsam merged pull request #76286 β†’ intel-graphics-compiler: 1.0.2878 -> 1.0.3041 β†’ https://git.io/JvfmA
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/Jvfmx
lovesegfault has joined #nixos
opthomasprime has left #nixos [#nixos]
<{^_^}> [nixpkgs] @marsam merged pull request #75278 β†’ minizincide: 2.3.1 -> 2.3.2 β†’ https://git.io/JeSGz
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/JvfYe
mananamenos has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #77506 β†’ nixos/nat: use nixos-nat-out instead of OUTPUT β†’ https://git.io/JvfYJ
<mananamenos> hi, my haskell project does not build anymore, stating that HaskellNet package is broken. So i've pulled the haskell-updates branch and tried to see the error while building this package with the --allowBroken flag. However, the error is not something related with tests, in which case i could disable them, and then build my haskell project pointed to my local nixkpkgs. The actual error while building HaskellNet is S
<mananamenos> etup: Encountered missing dependencies: mime-mail >=0.4.7 && <0.5. What should I do now?
lovesegfault has quit [Ping timeout: 260 seconds]
Izorkin has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @oxij opened pull request #77507 β†’ firefoxPackages.tor-browser: 8.5.6 -> 9.0.4 β†’ https://git.io/JvfYL
<srk> mananamenos: you can use helpers from haskell.lib - doJailbreak and dontCheck
<srk> to override problematic packages. doJailbreak will remove version bounds and allow building with whatever packages are in the scope
<srk> or you can clone the package, bump bounds of mime-mail and point src to your clone
<{^_^}> [nixpkgs] @jpathy opened pull request #77508 β†’ sqlite-analyzer: Fix to be in sync with sqlite. β†’ https://git.io/JvfYq
<{^_^}> [nixpkgs] @hax404 closed pull request #77390 β†’ [19.09] tor-browser-bundle-bin: 9.0.2 -> 9.0.3 β†’ https://git.io/JvvWE
chenhq2005 has joined #nixos
viric has joined #nixos
viric_ has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @jonringer merged pull request #71976 β†’ powerline-rs: 0.1.9 -> 0.2.0 β†’ https://git.io/Je0AZ
<{^_^}> [nixpkgs] @jonringer pushed commit from @jD91mZM2 to master Β« powerline-rs: 0.1.9 -> 0.2.0 Β»: https://git.io/JvfYO
Izorkin has joined #nixos
kim0 has joined #nixos
<evils> anyone have experience building a .deb from a nix package?
Guest92090 has quit [Ping timeout: 260 seconds]
thc202 has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/993887d1253 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<mananamenos> srk thank you
chenhq2005 has quit [Ping timeout: 265 seconds]
cosimone has joined #nixos
captn3m0- has quit [Ping timeout: 260 seconds]
chloekek has joined #nixos
captn3m0 has joined #nixos
<jtojnar> hmm, + is not associative in Nix
<jtojnar> for paths
<jtojnar> > (./. + ("/foo/" + "bar")) == ((./. + "/foo/") + "bar")
<{^_^}> false
<clever> jtojnar: each time you append a string to a path, nix will remove redundant elements like a training / and ..
<clever> > ./. + "/foo/"
<{^_^}> /var/lib/nixbot/state/nixpkgs/foo
<clever> > ./. + "/foo/" + "/.."
<{^_^}> /var/lib/nixbot/state/nixpkgs
<clever> > ./. + "/foo/" + "/.." + "/" + "/" + "/"
<{^_^}> /var/lib/nixbot/state/nixpkgs
<jtojnar> it would be nice to have </> operator or something
<{^_^}> [nixpkgs] @primeos merged pull request #76437 β†’ nixos/sway: add programs.sway.extraOptions β†’ https://git.io/JeFx1
<{^_^}> [nixpkgs] @primeos pushed 2 commits to master: https://git.io/JvfYu
mananamenos has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @cdepillabout merged pull request #77484 β†’ spago: 0.13.0 -> 0.13.1 β†’ https://git.io/JvfkF
<{^_^}> [nixpkgs] @cdepillabout pushed 2 commits to haskell-updates: https://git.io/JvfYK
chenhq2005 has joined #nixos
mananamenos has joined #nixos
chenhq2005 has quit [Ping timeout: 258 seconds]
<mananamenos> srk: i've fixed failing packages in my nixpkgs local, now my haskell project enter nix-shell with no errors, however, when cabal new-repl fails with: [__1] fail (backjumping, conflict set: HaskellNet-SSL, myproject)
<{^_^}> [nixpkgs] @rycee pushed to master Β« jwt-cli: init at 2.5.1 Β»: https://git.io/JvfYF
<{^_^}> [nixpkgs] @rycee closed pull request #77477 β†’ jwt-cli: init at 2.5.1 β†’ https://git.io/JvfvM
<{^_^}> Channel nixos-19.09 advanced to https://github.com/NixOS/nixpkgs/commit/9f453eb97ff (from 27 hours ago, history: https://channels.nix.gsc.io/nixos-19.09)
<srk> mananamenos: missing dependency on HaskellNet-SSL? in shell you can list available packages with ghc-pkg list
<{^_^}> [nixos-org-configurations] @turboMaCk opened pull request #95 β†’ Avoid colour indications on outdated channels β†’ https://git.io/JvfYh
<mananamenos> ok, the list does not show two brokens libs (HaskellNet, HaskellNet-SSL). I've entered my projects shell with command: nix-shell -I nixpkgs=~/projects/nixpkgs. I suppose i should have done this in other way then
Thra11 has joined #nixos
<Thra11> Why do processes inside a nix-shell use /run/user/1000 instead of /tmp, and how can I change this?
<symphorien> is there a channel where pkgsStatic.stdenv is cached ?
<symphorien> Thra11: XDG_TMP_DIR or something like that
<mananamenos> srk: how do i change this line inherit (nixpkgs) pkgs; in my nix-shell to point to local dir of nixpkgs?
<mananamenos> i got it already, sorry
<clever> mananamenos: you have to change whatever defined nixpkgs, which should be a few lines up
stteevveen has joined #nixos
noudle has joined #nixos
<stteevveen> Hi! seems like I don't succeed to understand how to use package overriding for virtualbox . In my config I have something like this: let n1903 = import <mychannel1903> {}; in { virtualisation.virtualbox.host.package.override = {virtualbox = n1903.virtualbox;} }; It complains it is not of the type package. I have tried other syntaxes, but I
<stteevveen> just don't get it. ANy idea ?
knupfer has quit [Ping timeout: 248 seconds]
<clever> stteevveen: virtualisation.virtualbox.host.package = n1903.virtualbox;
<mananamenos> i have one question more, if i build a haskell project on my nixos system 19.09 and then deploy that binary on nixos 19.03, could it cause any problems?
<clever> mananamenos: if you deploy with nix-copy-closure, it should be perfectly fine
<Thra11> symphorien: Comparing the environments inside and outside a shell, it looks like the shell is setting both TMP and TMPDIR to /run/user/1000, while outside the shell they are unset.
<stteevveen> @clever with virtualisation.virtualbox.host.package.override = n1903.virtualbox I get the same error, that this is not of type package
<clever> > virtualbox
<{^_^}> "<derivation /nix/store/rd8cr5332xfmf175grzz6rzzch7mkn28-virtualbox-6.0.14.drv>"
<clever> stteevveen: dont put .override in there, thats breaking it
<stteevveen> @clever sorry I missed it, that's buildiong right now! thanks
m0rphism has joined #nixos
<{^_^}> [nixpkgs] @liff opened pull request #77510 β†’ pythonPackages.hcloud: 1.6.2 -> 1.6.3 β†’ https://git.io/JvfOY
Jackneilll has joined #nixos
mexisme_ has joined #nixos
<Thra11> I don't know whether it's nix-shell itself or the packages in the shell which are setting these
<clever> Thra11: i believe its in the source of nix-shell, to set TMP and TMPDIR
stteevveen has quit [Remote host closed the connection]
mexisme_ has quit [Ping timeout: 246 seconds]
<Thra11> clever: Do you know why? and if I override them, could it break the shell in some way? (My problem is that /run/user/1000 is too small. I could make /run/user/1000 larger, but I don't think it's intended to be used as /tmp)
<clever> Thra11: you can probably just set TMP yourself in the shell.nix
<mananamenos> clever: i use nixops to deploy this project. The remote server's configuration.nix has a systemd service which point to local machines haskell project's release.nix/bin/project. But now my local system is 19.09 while the remote is 19.03
<clever> mananamenos: nixops uses nix-copy-closure behind the scenes, so it should work just fine
<mananamenos> thank you!
Chiliparrot has joined #nixos
kleisli has quit [Ping timeout: 265 seconds]
<evils> Thra11: any luck setting /tmp?
<mananamenos> can i add openssh.authorizedKeys.keys =.. without nixos rebuild switch somehow?
<Thra11> evils: I can explicitly set it once in the nix-shell, which allows the process which needs lots of tmp space to run successfully. I'm just trying to investigate why nix chose /run/user/1000 instead of /tmp in the first place
<clever> mananamenos: ~/.ssh/authorized_keys still works
<ddima> mananamenos: you can't apply the config without running rebuild. but you can use your users `~/.ssh`
<ddima> (what clever said)
boogiewoogie has joined #nixos
<evils> Thra11: seems like my usual zsh has `XDG_RUNTIME_DIR=/run/user/1000`
chagra_ has joined #nixos
<Thra11> evils: Yes. That's normal. Then Nix chooses XDG_RUNTIME_DIR as TMPDIR in the shell, which sort of makes sense, because it should have suitable ownership and permissions. However, it can be a bit surprising because 1. People expect TMPDIR=/tmp. 2. Lots of commands (such as nix build) end up using a different TMPDIR depending on whether you're in a shell or not.
cosimone has quit [Remote host closed the connection]
<Thra11> I should probably just set boot.runSize to match my /tmp size
<evils> huh, i used services.logind.extraConfig = "RuntimeDirectorySize=8G";
<Thra11> evils: :o I'm guessing boot.runSize just sets that setting under the hood
<evils> sure looks better xD
knupfer has joined #nixos
<evils> but neither's really a good solution for my usecase, kicad's update.sh, which currently has a comment of "use this option", not particularly portable...
<{^_^}> [nixpkgs] @minijackson opened pull request #77511 β†’ rx: 0.3.0 -> 0.3.1 β†’ https://git.io/JvfO5
<evils> Thra11: should i set XDG_RUNTIME_DIR=/tmp, or define a TMPDIR?
<{^_^}> [nixpkgs] @Mic92 merged pull request #77376 β†’ ldc: fix build and skip impure test β†’ https://git.io/Jvvmy
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/JvfOd
<{^_^}> [nixpkgs] @markuskowa merged pull request #77488 β†’ ipset: 7.4 -> 7.5, pname β†’ https://git.io/JvfI9
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/JvfOx
<{^_^}> Channel nixos-19.09-small advanced to https://github.com/NixOS/nixpkgs/commit/f7d050ed4e3 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-19.09-small)
<Thra11> evils: I don't know. Also, it appears setting boot.runSize doesn't help as /run/user/1000 is a separate tmpfs
mananamenos has quit [Remote host closed the connection]
jjakob has quit [Quit: leaving]
Jackneilll has quit [Quit: Leaving]
<Thra11> evils: I would set TMPDIR rather than XDG_RUNTIME_DIR. You can set it via shellHook if it's only needed for this specific shell
<{^_^}> [nixpkgs] @minijackson opened pull request #77512 β†’ kodiPlugins.vfs-sftp: 1.0.1 -> 1.0.5 β†’ https://git.io/JvfOj
alex`` has quit [Ping timeout: 260 seconds]
<jluttine> how can i import nix files from github in configuration.nix imports? i get "not allowed to refer to a store path" when i just use builtins.fetchTarball inside the imports list
drewr has joined #nixos
<evils> Thra11: this is a .sh with a nix-shell shebang, i'd just add an `export TMPDIR=/tmp` in contained bash script
alex`` has joined #nixos
jonten has joined #nixos
jjakob has joined #nixos
mananamenos has joined #nixos
UndefinedIsNotAF has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #77430 β†’ shades-of-gray-theme: 1.2.0 -> 1.2.1 β†’ https://git.io/Jvv1F
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/Jvf3v
chagra_ has quit [Ping timeout: 240 seconds]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Guest92090 has joined #nixos
<{^_^}> [nixpkgs] @minijackson opened pull request #77513 β†’ vimPlugins.LanguageClient-neovim: 0.1.155 -> 0.1.156 β†’ https://git.io/Jvf3T
chloekek has quit [Ping timeout: 268 seconds]
chenhq2005 has joined #nixos
cosimone has joined #nixos
juhe has joined #nixos
kim0 has quit [Quit: Connection closed for inactivity]
evils has quit [Remote host closed the connection]
lordcirth has quit [Ping timeout: 260 seconds]
felixfoertsch has quit [Ping timeout: 260 seconds]
evils has joined #nixos
chenhq2005 has quit [Ping timeout: 240 seconds]
<Yaniel> aaaaaaaa why is krita never in the build cache
felixfoertsch has joined #nixos
<Yaniel> always takes forever to update because it ends up compiling that :D
werner291 has joined #nixos
<{^_^}> [nixpkgs] @aanderse merged pull request #77016 β†’ phpPackages.phpstan: 0.12.3 -> 0.12.4 β†’ https://git.io/JejW7
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/Jvf3l
acarrico has quit [Ping timeout: 268 seconds]
<Thra11> Yaniel: As far as I can tell, a compiler upgrade has caused the krita build to start outputting a lot of warnings, so hydra kills it for using up too much space with its log spam.
__monty__ has joined #nixos
<Yaniel> there certainly is a ton of -Wdeprecated-copy warnings
Rusty1 has joined #nixos
<Thra11> A short term fix might be to have the nix build specify -Wno-deprecated-copy
felixfoertsch has quit [Ping timeout: 265 seconds]
<Thra11> (Long term fix being to report and/or fix the issue upstream)
<Yaniel> I just did
<Thra11> Yaniel: report or fix?
<Yaniel> report, seems like a good starter issue for new upstream contributors
<Thra11> Yes. It probably hasn't been noticed/fixed yet because the warning only appears in gcc 9+
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #73165 β†’ factorio: update all versions β†’ https://git.io/JeVpw
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/Jvf3R
<{^_^}> [nixpkgs] @worldofpeace closed pull request #77288 β†’ factorio: update all versions to 0.17.79 β†’ https://git.io/JveW9
felixfoertsch has joined #nixos
erictapen has joined #nixos
nckx has quit [Ping timeout: 268 seconds]
chagra_ has joined #nixos
chloekek has joined #nixos
<evils> Thra11++ `export TMPDIR=/tmp` worked
<{^_^}> Thra11's karma got increased to 3
brnzz has quit [Quit: The Lounge - https://thelounge.chat]
cosimone has quit [Quit: Quit.]
cosimone has joined #nixos
Yaniel has quit [Ping timeout: 268 seconds]
FRidh has joined #nixos
Yaniel has joined #nixos
ambro718 has joined #nixos
zebrag has quit [Read error: Connection reset by peer]
zebrag has joined #nixos
mexisme_ has joined #nixos
<{^_^}> [nixpkgs] @Thra11 opened pull request #77516 β†’ mynewt-newt: 1.3.0 -> 1.7.0, use buildGoModule β†’ https://git.io/Jvf3S
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/Jvf3H
zarel_ has quit [Ping timeout: 265 seconds]
zarel has joined #nixos
mexisme_ has quit [Ping timeout: 260 seconds]
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/f7d050ed4e3 (from 5 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
ambro718 has quit [Quit: Konversation terminated!]
mananamenos has quit [Remote host closed the connection]
tomberek has joined #nixos
rembo10 has quit [Quit: ZNC 1.7.5 - https://znc.in]
rembo10 has joined #nixos
<{^_^}> [nixpkgs] @aanderse merged pull request #75841 β†’ cocoapods-beta: 1.9.0.beta.1 -> 1.9.0.beta.2 β†’ https://git.io/Je75w
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/Jvfsq
<{^_^}> [nix] @LnL7 opened pull request #3313 β†’ libexpr: show expressiion in assertion errors β†’ https://git.io/Jvfss
Palpares has quit [Quit: Palpares]
rogue_koder has joined #nixos
ng0 has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #77480 β†’ Added `trusted_proxies` setting to nextcloud β†’ https://git.io/JvfJe
<{^_^}> [nixpkgs] @Ma27 pushed commit from @riotbib to master Β« nixos/nextcloud: added trusted_proxies setting (#77480) Β»: https://git.io/Jvfso
<{^_^}> [nixpkgs] @NeQuissimus pushed to master Β« linux_latest-libre: 17179 -> 17185 Β»: https://git.io/JvfsM
chagra_ has quit [Ping timeout: 265 seconds]
chagra_ has joined #nixos
kenjis has joined #nixos
lordcirth has joined #nixos
Yaniel has quit [Ping timeout: 268 seconds]
noonien has joined #nixos
noudle has quit []
tigran has joined #nixos
drakonis has joined #nixos
<noonien> and i get the following error when trying to do a rebuild: http://ix.io/277q
Chiliparrot has joined #nixos
ng0_ has joined #nixos
jjakob has quit [Ping timeout: 260 seconds]
jjakob has joined #nixos
kleisli has joined #nixos
ng0 has quit [Ping timeout: 260 seconds]
juhe has quit [Read error: Connection reset by peer]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/a8d1f3233bb (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @McSinyx opened pull request #77517 β†’ ibus-engines.table-others: 1.3.9 -> 1.3.11 β†’ https://git.io/JvfGK
juhe1 has joined #nixos
Shouou has joined #nixos
alex`` has quit [Quit: WeeChat 2.7]
<Shouou> Is there a way to import a Nix set directly in configuration.nix' `imports`? Or do I have to just `// extraConfig`?
<Shouou> Basically, I'm importing a config with `fetchFromGitHub` and want to include said changes in my configuration.nix
<tilpner> Shouou: Try replacing fetchFromGitHub with builtins.fetchTarball
<tilpner> That works around the "using fetchFromGH, but imports could alter what fetchFromGH is" issue
<tilpner> Or bootstrap pkgs, that works too
<tilpner> Shouou: And yes, if the fetched file is a module, you can put it into imports = [ here ];
<Shouou> Oh nice. Does that work with or without an `import` statement? If the latter, how can I specify a path? Can I use < brackets > or does that only work for things from $NIX_PATH and the like?
<tilpner> Shouou: imports = [ "${theResultFromAFetchTarballCall}/configuration.nix" ];
<tilpner> You can put the fetchTarball directly in there, but that looks ugly. Use a let-in, or import an external sources file
<tilpner> Shouou: <...> syntax only works with NIX_PATH. If you're fine with altering NIX_PATH, that might be easier because Nix fetches sources in there for you automatically
<{^_^}> [nixpkgs] @aanderse merged pull request #75413 β†’ pcsx2: 1.4.0 -> unstable-2020-01-05 β†’ https://git.io/Je9vG
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/JvfZG
<tilpner> (But you either need a wrapper around Nix tools, or depend on a globally set variable, so I prefer altering NIX_PATH as little as possible)
mehlon has joined #nixos
kbZ has left #nixos ["The Lounge - https://thelounge.chat"]
<Shouou> I'm getting an infinite recursion error when adding said thing to the imports list. I'm just doing `let hw = builtins.fetchTarball { ... }; in { imports = [ "${hw}/dell/xps/13-9380" ]; ... }`
<Shouou> (where hw refers to nixos-hardware)
<Shouou> Okay it was just a lazy user error: I was trying to use pkgs.lib.fakeSha256 so I could avoid specifying lib in the function arguments at the top. Not entirely sure why it happened still though
<Shouou> All seems good now. Thanks tilpner!
FRidh has quit [Quit: Konversation terminated!]
dm9 has joined #nixos
<clever> Shouou: imports can never depend on pkgs
Yaniel has joined #nixos
Guest92090 has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @iv-nn opened pull request #77518 β†’ fix catAttrs documentation signature β†’ https://git.io/JvfZi
mexisme_ has joined #nixos
alex`` has joined #nixos
jonten has quit [Ping timeout: 268 seconds]
alexherbo2 has joined #nixos
Guest92090 has joined #nixos
mexisme_ has quit [Ping timeout: 248 seconds]
ddellacosta has joined #nixos
Dagger has quit [Quit: Quitting]
<Shouou> clever, what's the reason specifically? I'm curious
<BugeyeD> hi all. anyone here using conda? know of a way to enter conda-shell and activate an environment in a single command? currently takes 2 commands, unlike outside of nixos ...
<qyliss> What are the two commands?
<clever> Shouou: because it has to traverse all of the imports, to figure out what nixpkgs.config is set to, to figure out the value of pkgs
<BugeyeD> qyliss: first have to run 'conda-shell' so that conda works at all, then 'conda activate myenvironment'
<BugeyeD> qyliss: trying to use conda because python virtualenv is so broken in nixos.
<qyliss> I don't really know anything about conda, I'm afraid.
<BugeyeD> qyliss: been using venv for a decade and have workflow build around that, having to backpeddle big time to use nixos
<BugeyeD> so far it is the only thing i don't like ... i understand the difficulties, just looking for solutions.
Dagger2 has joined #nixos
nixtacular has joined #nixos
<nixtacular> when I run `nix-shell` in one of my projects, it started all of a sudden to give me this error: `error: cannot open connection to remote store 'daemon': reading from file: Connection reset by peer`
Dagger2 is now known as Dagger
<nixtacular> i have a pretty simple `shell.nix`. never caused problems before.
<nixtacular> any ideas why it's failing now?
<BugeyeD> nixtacular: fairy difficult to say without having details ...
<ddima> BugeyeD: I mostly roll with nix-shell and shell.nix files nowadays, so I dont use conda, but you could possibly just create an alias or you could try sth like direnv; https://github.com/direnv/direnv/wiki/Python#anaconda for automatic activation.
<qyliss> Direnv is good
endformationage has joined #nixos
<nixtacular> BugeyeD: here's my `shell.nix`: https://ghostbin.co/paste/wjwao
<BugeyeD> ddima: direnv is already on my list, perhaps it should get bumped up ... meanwhile, can you provide an example .nix which covers something like python venv?
<nixtacular> and a more detailed error using `--show-trace`: `error: while evaluating the attribute 'args' of the derivation 'nix-shell' at /nix/store/zzqjdkb63npdjjj097ldqygkla62aqs2-nixos-19.09.1748.ad1e1af5ad3/nixos/pkgs/build-support/mkshell/default.nix:28:3:`
<simpson> BugeyeD: The correct move would be to unlearn Conda and replace it with Nix in your workflows, IMO. Indeed the typical virtualenv-oriented approach doesn't work super-well with Nix, but that's okay. Which packages in particular give you problems when you use nixpkgs?
<BugeyeD> nixtacular: journalctl -u nix-daemon
<ddima> BugeyeD: Not really, I mean, I use *only* nix-shell (no conda, no venv) as it does enough isolation of dependencies etc.
<nixtacular> BugeyeD: brilliant! thank you. i can see that i've run out of memory
<nixtacular> process can't fork anymore
drakonis has quit [Ping timeout: 248 seconds]
<BugeyeD> nixtacular: we got lucky with a quick ah-hah. i'll take it!
<BugeyeD> ddima: understood, and i'm happy to learn that method if it can be made to work for me. my very first pain point was with reportlab.
drakonis has joined #nixos
<ddima> BugeyeD: There is this small overview page on the nix wiki that maybe makes sense; https://nixos.wiki/wiki/Python#Emulating_virtualenv_with_nix-shell
<BugeyeD> ddima: i only started with conda because i found that it worked with reportlab in nixos where python venv did not
nixtacular has quit [Remote host closed the connection]
shibboleth has joined #nixos
<BugeyeD> ddima: i've been through that. i think perhaps it was just initially over my head and i was hoping for something that worked outside of nixos as well. not all of my environments are nixos, but i'm hoping to get nix running there as well. such as my macbook.
<ddima> BugeyeD: hm, I see. then direnv+conda might be a pragmatic path for now.
<simpson> BugeyeD: What have you tried? Does python2Packages.reportlab not work?
<BugeyeD> ddima: in the link you provided ... directly underneath python venv is the reference to conda. that is precisely why i looked into conda. :) now would just like a single command to enter an environment. i don't do a huge amount of development, i'm mostly just a sysadmin/architect - but some of my tools need a bit of extra pythong stuff, such as with ansible and reportlab.
ng0_ is now known as ng0
<BugeyeD> simpson: been banging on it for a month now in my spare time outside of work, hard to say exactly all i've tried. :) i've read nearly everything i could find on nix, but i think i may be missing a connection which is obvious to everyone but myself.
<BugeyeD> my various projects have different needs, hence using venv prior. if i could figure out how to replace that with some kind of nix expression i'd be perfectly happy.
<BugeyeD> still think i'm just missing a connection somewhere in my head.
<ddima> BugeyeD: yeah, and direvn would help you do that, but you can ofc also just do sth like `alias conda-enter='conda-shell; conda-activate $yourenv;'` (or a bit more cleanly as a function in your shells rc file).
testingstuffzzz has joined #nixos
<BugeyeD> ddima: the alias/function does not work, at least not currently for me. conda-shell executes some kind of fun chroot thing, and the subsequent conda-activate is ignored.
testingstuffzzz has quit [Client Quit]
nek0 has quit [Ping timeout: 268 seconds]
nek0 has joined #nixos
ivan_ has joined #nixos
<simpson> BugeyeD: Here is a test Nix expression. I have it saved as test.nix, and I can run $(nix-shell test.nix) to get into an environment. In this environment, I have the Ansible binaries and a Python with the reportlab module available. https://bpaste.net/IM7A
<ddima> BugeyeD: wrt head banging - I think the only best way "to get it" is to just try and write some shell.nix for one of your (maybe simpler) projects with the required dependencies and tools and iterate until its stops breaking and then ask here once you get to the breakages.
error has joined #nixos
<ddima> well, and maybe learn how to use `nix repl`
<simpson> FWIW I use direnv and set up a different shell.nix in each project directory, and try not to have situations where a single tool is used across every environment. (Except for vim and git, because I *do* use those the same everywhere.)
ivan has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @thefloweringash opened pull request #77520 β†’ libretro.snes9x: 29b78d -> 04692e β†’ https://git.io/Jvfnt
SOO7 has quit [Ping timeout: 268 seconds]
error is now known as SOO7
<BugeyeD> simpson / ddima - i think perhaps nix-shell is what i was missing. i understand (at least kind of) the way the nix expressions work. what i think i was missing was the nix-shell portion.
<BugeyeD> that bpaste bit helps me understand now. i think i can wrap that into a function to make things simple - and perhaps even have direnv execute the function based on my location.
<BugeyeD> this is not a nixos thing, correct? should work with nix on mac os x or centos or wherever?
<BugeyeD> oh, i'm going to have to figure out how to deal with differing python versions as well. may not be difficult, we'll see. i'll need 2.7 for some projects, 3.x with others.
<ddima> BugeyeD: that is just fine, there are multiple pythons in pkgs, like pkgs.python27 and pkgs.python39 etc. the repl is nice enough for exploring those.
<ddima> BugeyeD: in simpsons gist there is 'pkgs.python' which right now on 19.09 is 2.7 but you could as well just use pkgs.python3 for instance
cosimone has quit [Quit: Quit.]
<ddima> BugeyeD: and no, direnv is not a nix thing, its standalone and should be fine on osx too
<BugeyeD> ddima: this one conversation has definitely given me a new avenue to explore. and i appreciate it.
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<BugeyeD> ddima: i meant to ask about the whole nix-shell thing being available with just nix, not specific to nixos
<BugeyeD> i've seen direnv prior to ever hearing about nix
<BugeyeD> i do not yet have nix installed anywhere outside this nixos laptop
cosimone has joined #nixos
cosimone has quit [Client Quit]
shibboleth has quit [Quit: shibboleth]
<ddima> BugeyeD: ah, sorry, misunderstood. nix-shell is available with the nix (package manager) install, so not nixos specific.
cosimone has joined #nixos
<BugeyeD> ddima: in that case, if i can manage to wrap my head around nix-shell and the expressions, i may be able to completely replace python venv in a portable manner. of course, it'd be specific to nix and therefore not *exactly* portable ...
<BugeyeD> but good enough for me, which is what matters at the moment.
<BugeyeD> so again, thanks - ddima / simpson
rembo10 has quit [Ping timeout: 268 seconds]
rembo10 has joined #nixos
juhe1 has quit [Ping timeout: 268 seconds]
<ddima> enjoy!
cosimone has quit [Quit: Quit.]
cosimone has joined #nixos
cosimone has quit [Client Quit]
delli3_ has quit [Ping timeout: 260 seconds]
amf has joined #nixos
<amf> if a package has optional things, like claws-mail, how do I enable them? (more specifically the spell checking)
cosimone has joined #nixos
liori has quit [Ping timeout: 240 seconds]
liori has joined #nixos
<ddima> amf: something like `pkgs.claws-mail.override { enableSpellcheck = true; }` (see https://nixos.org/nixos/nix-pills/nixpkgs-overriding-packages.html for some detail)
delli3_ has joined #nixos
coderobe has quit [Ping timeout: 268 seconds]
peanutbutter144 has quit [Ping timeout: 240 seconds]
coderobe has joined #nixos
peanutbutter144 has joined #nixos
<amf> ah! is that mechanism available with `nix-env -i` ?
tomberek has quit [Quit: leaving]
<amf> figured it out, that can go in ~/.config/nixpkgs/config.nix , more of this is making sense, thanks for the pointer!
<Shouou> amf, that works. You can also use Home Manager so you can roll back changes and stuff just like with NixOS' configuration.nix
jonge has quit [Ping timeout: 240 seconds]
jonge has joined #nixos
juhe has joined #nixos
<evanjs> Is there a nixos-centric equivalent of ncdu/filelight or etc?
<evanjs> Like "Here's what derivations (or whatever) are taking up the most space", etc
<evanjs> aside from e.g. `nix path-info`
michiel_ has joined #nixos
Kritnich has quit [Ping timeout: 240 seconds]
UndefinedIsNotAF has joined #nixos
swapgs has joined #nixos
swapgs has joined #nixos
swapgs has quit [Changing host]
fusion809 has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #75523 β†’ open-vm-tools: 10.3.10 -> 11.0.1 β†’ https://git.io/Je9bC
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/Jvfck
<tigran> Is there an accepted way of running stuff on NixOS that is not ported as a package yet? Anything besides Docker?
<gchristensen> sometimes making a FHS can help
<simpson> tigran: What does "accepted" mean? The FHS user environment is available in nixpkgs.
<michiel_> tigran: packaging is easy, so once you've done the work you might as well commit it ;)
wildtrees has joined #nixos
<qyliss> Or try to package them!
<evanjs> https://nixos.wiki/wiki/NixOS:extend_NixOS#Modular_Configuration is the "naked" mkIf as written here something that works?
<evanjs> or rather, IIRC, I need to assign a mkIf to something to use it, right? like `config = mkIf cfg.enable {`
<tigran> simpson: I mean a unidiomatic way of installing a program that is known to work generally, when you don't really have the time to package it yourself :)
<{^_^}> [nixpkgs] @mschuwalow opened pull request #77521 β†’ stups-pierone: init at 1.1.45 β†’ https://git.io/Jvfcn
Phlogistique has quit [Ping timeout: 268 seconds]
Phlogistique has joined #nixos
<simpson> tigran: I'd try to avoid those sorts of situations, and make time to sit down and write Nix as needed.
<simpson> There *is* the FHS user environment, if FHS is what's needed.
mehlon has quit [Remote host closed the connection]
mehlon has joined #nixos
<evanjs> tigran: depending on how an arbitrary package is deployed, there are tools like nixpkgs.appimage-run, and options like appstream.enable and services.flatpak.enable
mehlon has left #nixos [#nixos]
werner291 has quit [Quit: werner291]
cosimone has quit [Quit: Quit.]
<tigran> Okay, FHS is probably what I needed. The program I'm trying to run (vmware player) is not packaged in any of those, so no luck wit that. Thank you all
michiel_ has quit [Remote host closed the connection]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
juhe has quit [Read error: No route to host]
juhe has joined #nixos
mac10688 has joined #nixos
jeschli has quit [Ping timeout: 268 seconds]
jeschli has joined #nixos
Baughn has quit [Ping timeout: 268 seconds]
Baughn has joined #nixos
<infinisil> the_pumpkin_man[: You need to patchelf the binary, the interpreter path /lib/ld-linux.so.2 doesn't exist on NixOS
<the_pumpkin_man[> Oh well, and how can I do that ?
alexbakker_ has joined #nixos
alexbakker has quit [Ping timeout: 268 seconds]
alexbakker_ is now known as alexbakker
<the_pumpkin_man[> Yeah in fact /lib doesn't exist ...
tjg1 has quit [Quit: don't keep calm and fuck this, fuck that, fuck you and fuck off]
<infinisil> the_pumpkin_man[: Search through nixpkgs for examples of patchelf usage
<the_pumpkin_man[> Ok, but to which lib should I link ?
mexisme_ has joined #nixos
tjg1 has joined #nixos
<infinisil> the_pumpkin_man[: Did you look at examples in nixpkgs?
<the_pumpkin_man[> Gonna do that
<the_pumpkin_man[> But I have no idea which package to check
<infinisil> Just do `rg patchelf` or so
<infinisil> (rg is from ripgrep)
<the_pumpkin_man[> Doesn't change anything
<the_pumpkin_man[> I mean, I just have to change the interpreter path
<the_pumpkin_man[> But to which path ?
werner291 has joined #nixos
mexisme_ has quit [Ping timeout: 260 seconds]
<infinisil> the_pumpkin_man[: There are tons of examples showing this off, the ones with --set-interpreter
<infinisil> the_pumpkin_man[: Again.. The examples will tell you which path
<the_pumpkin_man[> Examples just tell me /my/lib/my-ld-linux.so.2 program
<the_pumpkin_man[> Not really useful
<infinisil> Huh
<infinisil> No go into your nixpkgs checkout then do `rg patchelf` or `rg -e --set-interpreter`
<clever> $ nix-shell -p
<clever> $ cat $NIX_CC/nix-support/dynamic-linker
<clever> /nix/store/aag9d1y4wcddzzrpfmfp9lcmc7skd7jk-glibc-2.27/lib/ld-linux-x86-64.so.2
<infinisil> clever: Shhh
<infinisil> I'm trying to tell people about how to find things out for themselves
<the_pumpkin_man[> $NIX_CC variable is not defined ...
<the_pumpkin_man[> yay
<andi-> ,locate dumpimage
<{^_^}> Found in packages: ubootTools
<infinisil> the_pumpkin_man[: Make a nix-build that does the patching, in there NIX_CC will be set
<the_pumpkin_man[> Yes you're right andi- just a simple locate helped me to find it
<the_pumpkin_man[> "./runner: Accessing a corrupted shared library"
<the_pumpkin_man[> Uh, isn't it /nix/store/wx1vk75bpdr65g6xwxbj4rw0pk04v5j3-glibc-2.27/lib/ld-linux-x86-64.so.2 ?
<the_pumpkin_man[> Or something like that
gustavderdrache has joined #nixos
<infinisil> What are you trying exactly?
<the_pumpkin_man[> To set the interpreter path of the binary to the good one
<andi-> the_pumpkin_man[: pardon? I wasn't actually following the conversation
<infinisil> the_pumpkin_man[: I mean the exact commands and nix files
<the_pumpkin_man[> patchelf --set-interpreter /nix/store/wx1vk75bpdr65g6xwxbj4rw0pk04v5j3-glibc-2.27/lib/ld-linux-x86-64.so.2 runner
<the_pumpkin_man[> And runner is the executable
lovesegfault has joined #nixos
<infinisil> Oh, you probably need a 32bit interpreter
<the_pumpkin_man[> Oh
<infinisil> In a nix file, use `stdenv_32bit` instead of stdenv
<the_pumpkin_man[> Then, how can I find it ? (again)
<the_pumpkin_man[> It isn't a nix package, just an executable file from some linux game I try to launch
<clever> the_pumpkin_man[: its always simpler if you write a nix package for it, and then use nix-build to patch it
<infinisil> ^^
<the_pumpkin_man[> I have no idea of doing that
<clever> if you dont, then you risk nix garbage-collecting the ld.so on you
<infinisil> You can do it in a command, but that gets messy really quick. And especially when the binary needs some libraries (which it probably will)
<the_pumpkin_man[> I'm actually pretty new with NixOS
<the_pumpkin_man[> But yeah ok, I will try to learn it
<the_pumpkin_man[> I must finish to read the Nix manual first
smatting has joined #nixos
<the_pumpkin_man[> Thank you for your help
Scriptkiddi has quit [Ping timeout: 268 seconds]
<the_pumpkin_man[> * Thank you all for your help
Scriptkiddi has joined #nixos
peanutbutter144 has quit [Ping timeout: 268 seconds]
peanutbutter144 has joined #nixos
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
alexherbo2 has joined #nixos
shibboleth has joined #nixos
tigran has quit [Quit: Leaving]
shibboleth has quit [Remote host closed the connection]
Soo_Slow has joined #nixos
ambro718 has joined #nixos
<srk> ,haskell shapr
<shapr> thanks
dm9 has quit [Quit: WeeChat 2.7]
endocrimes has quit [Ping timeout: 240 seconds]
<ambro718> When I set Firefox to not show system title bar (via Customize), the Firefox window when not maximized gets a white rectangular border all around like this http://pasteall.org/pic/5da13b107a397260c6d7e8aa6e52f257 . I'm using KDE. Any idea where this comes from and how to remove it?
endocrimes has joined #nixos
<ambro718> I'm suspecting kwin is drawing it.
slack1256 has joined #nixos
h0m1 has quit [Quit: WeeChat 2.7]
dirkx_ has joined #nixos
duck_ has joined #nixos
dckc has quit [Ping timeout: 268 seconds]
Guest92090 has quit [Ping timeout: 268 seconds]
Guest92090 has joined #nixos
ciil_ has joined #nixos
kenjis has quit [Remote host closed the connection]
dckc has joined #nixos
trfl_ has joined #nixos
nckx has joined #nixos
dirkx has quit [Quit: Bye and thanks for all the fish]
duckfullstop has quit [Quit: Why do you need...?]
Guanin has quit [Ping timeout: 260 seconds]
trfl has quit [Remote host closed the connection]
drgbr has quit [Ping timeout: 260 seconds]
ciil has quit [Ping timeout: 260 seconds]
drgbr has joined #nixos
awaz has quit [Ping timeout: 240 seconds]
pepesza has quit [Ping timeout: 240 seconds]
awaz has joined #nixos
dashkal has quit [Ping timeout: 240 seconds]
Guest92090 has quit [Remote host closed the connection]
dashkal has joined #nixos
pepesza has joined #nixos
trfl_ has quit [Excess Flood]
trfl has joined #nixos
noudle has joined #nixos
Guest92090 has joined #nixos
<lovesegfault> How can I nix-build for another arch?
<ddima> lovesegfault: there are `pkgsCross.$arch.$pkg` which you could use
<infinisil> I was gonna link you to the manual section about pkgsCross but turns out there isn't one..
<lovesegfault> infinisil: :D
<lovesegfault> ddima: Can I specify it from the cli?
<ddima> lovesegfault: yes, its a regular attribute
* lovesegfault tries
<{^_^}> [nixpkgs] @snicket2100 opened pull request #77522 β†’ actkbd: fixed the description of the `services.actkbd.bindings` option β†’ https://git.io/JvfW3
philr has quit [Ping timeout: 265 seconds]
m1cr0man has joined #nixos
<m1cr0man> Hey folks. I'm trying to deprecate an option in a module that is under a wildcard path (config.security.acme.*.plugins). How do I specify this path in mkRemovedOptionModule?
drakonis has quit [Quit: WeeChat 2.6]
drakonis has joined #nixos
inkbottle has joined #nixos
<infinisil> m1cr0man: In the submodule, next to options, e.g. `{ options.foo = ...; imports = [ (mkRemovedOptionModule ...`
<m1cr0man> infinisil yeah I got that part ;) What I'm wondering about is the arguments to mkRemovedOptionModule. What should the list of strings look like?
<infinisil> And then the path there should be the one under the submodule, so just [ "plugins" ]
<m1cr0man> oh ok
zebrag has quit [Ping timeout: 240 seconds]
smatting has quit [Ping timeout: 268 seconds]
<m1cr0man> infinisil ahh yes that makes sense now I see the options def
judson__ has joined #nixos
<m1cr0man> thanks :D
<infinisil> :D
<m1cr0man> lego nearly ready...been a long time coming
evhan` has joined #nixos
detran_ has joined #nixos
duckfullstop has joined #nixos
Piece_Maker has joined #nixos
rogue_koder_ has joined #nixos
<infinisil> m1cr0man: lego?
<eeva> Anyone know how I can make it so my local headers are used in nixpkgs' stdenv? I'm running nix-shell on pkgs.mkShell, and then even calling g++ -Imy/local/header/dir doesn't find the header I want…
endocrimes_ has joined #nixos
judson_ has quit [Remote host closed the connection]
travelion7 has quit [Quit: Ping timeout (120 seconds)]
nixy37 has quit [Quit: Ping timeout (120 seconds)]
duck_ has quit [Quit: Why do you need...?]
detran has quit [Quit: ZNC 1.7.4 - https://znc.in]
Acou_Bass has quit [Remote host closed the connection]
evhan has quit [Quit: De IRC non curat rex...]
endocrimes has quit [Quit: No Ping reply in 180 seconds.]
das_j has quit [Ping timeout: 265 seconds]
martyet-o has quit [Ping timeout: 265 seconds]
mupf has quit [Ping timeout: 265 seconds]
bohan has quit [Ping timeout: 265 seconds]
Piece_Maker is now known as Acou_Bass
rogue_koder has quit [Remote host closed the connection]
martyet-o has joined #nixos
makefu has quit [Ping timeout: 265 seconds]
bohan has joined #nixos
das_j has joined #nixos
lovesegfault has quit [Ping timeout: 248 seconds]
<m1cr0man> infinisil replacement to simp-le for the acme module to support DNS-01. See https://github.com/NixOS/nixpkgs/pull/63613
<{^_^}> #63613 (by petabyteboy, 29 weeks ago, open): [WIP] nixos/acme: switch to lego and support DNS challenge
<m1cr0man> I had to implement this for a job and that PR is mostly abandoned. Took a full day to rebase and add the changes haha
makefu has joined #nixos
tjg1 has quit [Quit: don't keep calm and fuck this, fuck that, fuck you and fuck off]
tarnacious has quit [Ping timeout: 268 seconds]
rager has quit [Ping timeout: 268 seconds]
yobj has quit [Ping timeout: 240 seconds]
otti0815 has quit [Ping timeout: 240 seconds]
tarnacious has joined #nixos
<infinisil> Ahh nice
tjg1 has joined #nixos
yobj has joined #nixos
otti0815 has joined #nixos
rager has joined #nixos
<{^_^}> [nixpkgs] @flokli merged pull request #76972 β†’ glibc: fix cross compilation build failure β†’ https://git.io/JehJb
<{^_^}> [nixpkgs] @flokli pushed 3 commits to staging: https://git.io/JvfWa
<{^_^}> [nixpkgs] @flokli closed pull request #76880 β†’ gcc: keep using gcc8 to work-around failing rpi build β†’ https://git.io/Jexjt
<ambro718> Anyone knows a reliable method to change the MAC address of a network card on boot? I suppose something involving udev?
<lassulus> services.udev.extraRules = ''
<lassulus> SUBSYSTEM=="net", DEVPATH=="/devices/pci*/*1c.1/*/net/*", NAME="wl0"
<lassulus> whups
smatting has joined #nixos
<clever> ambro718: there is a nixos option for that
<lassulus> clever: there is?
<clever> networking.interfaces.wlp3s0.macAddress
<lassulus> ah, but this only works if the macAddress is stable?
<ambro718> clever: THere is networking.interfaces.<name?>.macAddress but does it do anything if I use NetworkManager?
<Ox4A6F> preserve doesn"t work?
<clever> ambro718: dont know, i just avoid network manager
<ambro718> NetworkManager is essential if you want to connect to wireless without hassling around
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to release-19.09: https://git.io/JvfWK
<clever> ambro718: i know how to use wpa_supplicant
<ambro718> lassulus: thanks
<lassulus> in the code the macAddress options reads more like it sets the macAddress of the network device then matching the device to the mac?
<ambro718> clever: I prefer a GUI driven approach like most people do.
<clever> ambro718: wpa_gui can control wpa_supplicant i believe
<lassulus> oh wait, I misread
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to release-19.03: https://git.io/JvfW6
<lassulus> ambro718: my code actually matches the network device to the mac address
<lassulus> networkmanager itself has the option to change mac for every network
<qyliss> I do that
<ambro718> lassulus: yeah, I'll just set it in the GUI then, thanks
zebrag has joined #nixos
<lassulus> ambro718: there is networking.networkmanager.wifi.macAddress
inkbottle has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @matthewbauer opened pull request #77523 β†’ Redo: add doc to ghc wrapper β†’ https://git.io/JvfWD
ambro718 has quit [Ping timeout: 258 seconds]
ambro718 has joined #nixos
h0m1 has joined #nixos
mupf has joined #nixos
Guest92090 has quit [Read error: Network is unreachable]
eoli3n_ has quit [Quit: WeeChat 2.7]
Guest92090 has joined #nixos
ivan_ is now known as ivan
<{^_^}> [nixpkgs] @snicket2100 opened pull request #77524 β†’ firejail: local profile handling fixed β†’ https://git.io/Jvflk
<{^_^}> [nixpkgs] @thefloweringash opened pull request #77525 β†’ glibc: fix bad backport in #76972 β†’ https://git.io/JvflI
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
alex`` has quit [Quit: WeeChat 2.7]
chloekek has quit [Ping timeout: 268 seconds]
opthomasprime has joined #nixos
opthomasprime has left #nixos [#nixos]
mexisme_ has joined #nixos
elibrokeit has quit [Quit: A random quit message]
elibrokeit has joined #nixos
<{^_^}> [mobile-nixos] @samueldr merged pull request #68 β†’ Fix shutdown/reboot in stage-1 β†’ https://git.io/JvvK4
<{^_^}> [mobile-nixos] @samueldr pushed 4 commits to master: https://git.io/Jvfll
mexisme_ has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @veprbl opened pull request #77526 β†’ krita: set -Wno-deprecated-copy for gcc β†’ https://git.io/Jvfli
jluttine has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @flokli opened pull request #77527 β†’ davfs2: substitute ps command β†’ https://git.io/Jvfl1
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/fabd3f506cc (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
jluttine has joined #nixos
Guanin has joined #nixos
<{^_^}> [nixpkgs] @kampfschlaefer closed pull request #76749 β†’ rsync: Fix perl-substitution in rrsync β†’ https://git.io/JeAH5
ambro718 has quit [Quit: Konversation terminated!]
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
mexisme_ has joined #nixos
lovesegfault has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #77510 β†’ pythonPackages.hcloud: 1.6.2 -> 1.6.3 β†’ https://git.io/JvfOY
<{^_^}> [nixpkgs] @jonringer pushed commit from @liff to master Β« pythonPackages.hcloud: 1.6.2 -> 1.6.3 Β»: https://git.io/Jvf8f
cosimone has joined #nixos
ravndal has quit [Quit: WeeChat 2.7]
drakonis has quit [Ping timeout: 260 seconds]
ravndal has joined #nixos
chloekek has joined #nixos
Shouou has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #77465 β†’ python3Packages.discordpy: 1.2.4 -> 1.2.5, enable, add import checks β†’ https://git.io/JvvA7
<{^_^}> [nixpkgs] @jonringer pushed to master Β« python3Packages.discordpy: 1.2.4 -> 1.2.5, enable, add import checks Β»: https://git.io/Jvf8c
<{^_^}> [nixpkgs] @jonringer merged pull request #77513 β†’ vimPlugins.LanguageClient-neovim: 0.1.155 -> 0.1.156 β†’ https://git.io/Jvf3T
<{^_^}> [nixpkgs] @jonringer pushed commit from @minijackson to master Β« vimPlugins.LanguageClient-neovim: 0.1.155 -> 0.1.156 Β»: https://git.io/Jvf8C
<{^_^}> [nixpkgs] @flokli pushed to revert-76972-cross-glibc-warnings Β« Revert "glibc: fix cross compilation build failure" Β»: https://git.io/Jvf84
<{^_^}> [nixpkgs] @flokli pushed 0 commits to revert-76972-cross-glibc-warnings: https://git.io/Jvf80
<{^_^}> [nixpkgs] @jonringer merged pull request #77495 β†’ zsh-autosuggestions: 0.6.3 -> 0.6.4 β†’ https://git.io/JvfLI
<{^_^}> [nixpkgs] @jonringer pushed commit from @dtzWill to master Β« zsh-autosuggestions: 0.6.3 -> 0.6.4 Β»: https://git.io/Jvf8E
<{^_^}> [nixpkgs] @jonringer merged pull request #77496 β†’ cinnamon.xapps: 1.6.8 -> 1.6.10 β†’ https://git.io/JvfLm
<{^_^}> [nixpkgs] @jonringer pushed commit from @dtzWill to master Β« cinnamon.xapps: 1.6.8 -> 1.6.10 Β»: https://git.io/Jvf8g
smatting_ has joined #nixos
<{^_^}> [nixpkgs] @flokli pushed to staging Β« Revert "glibc: fix cross compilation build failure" Β»: https://git.io/Jvf8V
smatting has quit [Ping timeout: 260 seconds]
alex has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to master: https://git.io/Jvf8K
<{^_^}> [nixpkgs] @vcunat merged pull request #77526 β†’ krita: set -Wno-deprecated-copy for gcc β†’ https://git.io/Jvfli
eolmatrixorg[m] has joined #nixos
alexherbo2 has joined #nixos
reverbtank has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #77492 β†’ dhcp: fix homepage, quote β†’ https://git.io/JvfIA
<{^_^}> [nixpkgs] @jonringer pushed commit from @dtzWill to master Β« dhcp: fix homepage, quote Β»: https://git.io/Jvf81
Guest92090 has quit [Ping timeout: 265 seconds]
halfbit has joined #nixos
m1cr0man has quit [Quit: Ping timeout (120 seconds)]
<{^_^}> [nixpkgs] @jonringer merged pull request #77505 β†’ mongodb-tools: use default openssl β†’ https://git.io/Jvfm6
<{^_^}> [nixpkgs] @jonringer pushed commit from @flokli to master Β« mongodb-tools: use default openssl Β»: https://git.io/Jvf8d
<{^_^}> [nixpkgs] @grahamc merged pull request #75713 β†’ [19.09] chromium: 78.0.3904.108 -> 79.0.3945.79 β†’ https://git.io/JeQ1f
<{^_^}> [nixpkgs] @grahamc pushed 5 commits to release-19.09: https://git.io/Jvf8N
<reverbtank> Anyone here have a config with working Jack Audio and Qjackctl? I've been unable to get them working by following the Nix Jack Wiki
<{^_^}> [nixpkgs] @aanderse merged pull request #75817 β†’ tuir: init at 1.28.03 β†’ https://git.io/Je7rN
<{^_^}> [nixpkgs] @aanderse pushed 3 commits to master: https://git.io/Jvf8j
<reverbtank> Opened an issue but not having any luck. Chime in if you have ideas
<{^_^}> #74742 (by bcaccia, 6 weeks ago, open): Jack Audio does not present any valid output devices
Guest92090 has joined #nixos
<gchristensen> thanks for the report, reverbtank :) hopefully someone who knows takes a look
<reverbtank> (y)
<{^_^}> [nixpkgs] @jonringer merged pull request #77522 β†’ actkbd: fixed the description of the `services.actkbd.bindings` option β†’ https://git.io/JvfW3
<{^_^}> [nixpkgs] @jonringer pushed commit from @snicket2100 to master Β« actkbd: fixed the description of the `services.actkbd.bindings` option Β»: https://git.io/Jvf4v
<lovesegfault> Building for NINETEEN HOURS
* lovesegfault dies
<{^_^}> [nixpkgs] @jonringer merged pull request #77511 β†’ rx: 0.3.0 -> 0.3.1 β†’ https://git.io/JvfO5
<{^_^}> [nixpkgs] @jonringer pushed commit from @minijackson to master Β« rx: 0.3.0 -> 0.3.1 Β»: https://git.io/Jvf4J
<samueldr> building what is, in the end, as many or more features than your operating system into one program is bound to take some time :)
bhipple has joined #nixos
mexisme_ has quit [Ping timeout: 268 seconds]
<lovesegfault> samueldr: I'm always blown away by chrome's size
UndefinedIsNotAF has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<gchristensen> so we should probably mark chromium as big-parallel
<gchristensen> if anyone wants to do thaht, it'll go faster
<gchristensen> oops it is already
smatting_ has quit [Ping timeout: 268 seconds]
<lovesegfault> gchristensen: I wish hydra had finer control over the resources a build needs
slack1256 has quit [Remote host closed the connection]
<lovesegfault> gchristensen: define TAGS?
<gchristensen> the document does it
<lovesegfault> Ah, I see it now
eolmatrixorg[m] is now known as e0lmatrixorge0lm
e0lmatrixorge0lm is now known as eolmatrixorgeolm
eolmatrixorgeolm is now known as eol[m]
boogiewoogie has quit [Quit: Leaving]
gustavderdrache has quit [Quit: Leaving.]
civodul has joined #nixos
<{^_^}> [nixpkgs] @jonringer merged pull request #77482 β†’ sidequest: 0.7.6 -> 0.8.4 β†’ https://git.io/Jvfkg
<{^_^}> [nixpkgs] @jonringer pushed commit from @andrew-d to master Β« sidequest: 0.7.6 -> 0.8.4 Β»: https://git.io/Jvf4n
<lovesegfault> gchristensen: I like this idea!
<lovesegfault> Would you keep track of previous build times to try and estimate the initial timeout?
<gchristensen> probably not at first
<gchristensen> it would greatly complicate the implementation, and can be done later
<lovesegfault> gchristensen: Agree
<lovesegfault> *d
<lovesegfault> gchristensen: Having that time information can also help more optimally sort the build graph
<gchristensen> perhaps so, yeah
<gchristensen> I've gotta get back and focus on a task at hand so I'd better stop replying for a while :P
<lovesegfault> gchristensen: Sure, thanks for the brain teaser :)
<gchristensen> :)
Guest92090 has quit [Ping timeout: 240 seconds]
<gchristensen> read the paper I link to! it is so good
<lovesegfault> gchristensen: I am :D
cosimone has quit [Quit: Quit.]
<{^_^}> [nixpkgs] @mebubo opened pull request #77528 β†’ [19.09] [backport] chromium: 79.0.3945.79 -> 79.0.3945.88 β†’ https://git.io/Jvf4B
Guest92090 has joined #nixos
<BugeyeD> when a package is updated (such as chrome) how does one update when using home-manager?
UndefinedIsNotAF has joined #nixos
<lovesegfault> BugeyeD: home-manager switch
<lovesegfault> After you update the nix(os|pkgs) channel
<BugeyeD> lovesegfault: well ... that is simple enough to be boring. :) been wondering. the missing piece for me was the channel update. thanks!
<lovesegfault> BugeyeD: np :)
Guest92090 has quit [Remote host closed the connection]
rnhmjoj has quit [Changing host]
rnhmjoj has joined #nixos
rnhmjoj has joined #nixos
<alex> how to show package information from the command-line?
<alex> I want to show nixos.bc package
Kritnich has joined #nixos
<lovesegfault> alex: You can use nix search
Guest92090 has joined #nixos
<lovesegfault> `nix search nixos.bc`
<alex> how
<lovesegfault> alex: see my previous message
<lovesegfault> it will show a description and version
<chloekek> Is it possible to install Nix without downloading Nixpkgs channels? I am only going to use pinned Nixpkgs (not channels).
<alex> I want to display the homepage
reverbtank has quit [Remote host closed the connection]
<lovesegfault> alex: `echo "bc.meta" | nix repl '<nixpkgs>'`
<gchristensen> also nix-instantiate --eval --strict --json '<nixpkgs>' -A bc.meta, or nix-instantiate --eval --strict --json '<nixpkgs>' -A bc.meta.homepage
<lovesegfault> And if you want it pretty: nix-instantiate --eval --strict --json '<nixpkgs>' -A bc.meta | jq
<lovesegfault> gchristensen: Nice solution gchristensen :)
o1lo01ol1o has joined #nixos
<alex> looks complicated
fusion809 has quit [Remote host closed the connection]
<evils> > bc.meta.homepage
madamecoco has joined #nixos
<lovesegfault> evils: Schooled us
<lovesegfault> :O
<lovesegfault> *:P
knupfer has quit [Remote host closed the connection]
<madamecoco> Hi folks, am I correct assuming you've stopped updating wine unstable? I see 4.17 as the latest version?
shibboleth has joined #nixos
erictapen has quit [Ping timeout: 268 seconds]
<evils> madamecoco: #75438 seems to have 5.0-rc2
<{^_^}> https://github.com/NixOS/nixpkgs/pull/75438 (by avnik, 4 weeks ago, open): wine: 4.0.2 -> 4.0.3, 4.17 -> 4.21
<madamecoco> So not updated for 3 months and PR hangs for a month. Thank you.
<gchristensen> must have gotten lost in the 2,000 PRs we've received since
<madamecoco> So do you merge it?
<{^_^}> [nixpkgs] @symphorien opened pull request #77529 β†’ rust: include the rustc-dev component β†’ https://git.io/Jvf4h
acarrico has joined #nixos
eacameron has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed to release-19.09 Β« Merge #77499: thunderbird*: 68.3.0 -> 68.4.1 (security) Β»: https://git.io/JvfBJ
drakonis has joined #nixos
<eacameron> How does 'cachix use' not require sudo?
<eacameron> domenkozar[m]: cc ^
<{^_^}> [nixpkgs] @grahamc merged pull request #75438 β†’ wine: 4.0.2 -> 4.0.3, 4.17 -> 4.21 β†’ https://git.io/Je939
<{^_^}> [nixpkgs] @grahamc pushed 4 commits to master: https://git.io/JvfBU
<domenkozar[m]> trusted users
juhe has quit [Read error: Connection reset by peer]
juhe has joined #nixos
<eacameron> domenkozar[m]: Does it automatically add a user to trusted users somehow or is it just that most users happen to be trusted already?
<lovesegfault> How can I keep my `nix-shell` deps from being gc'd?
<lovesegfault> We have a _huge_ setup at work and I hate to have to rebuild it every time I run the GC to collect old OS generations
<gchristensen> lorri, lovesegfault
delli3_ has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @jonringer merged pull request #73122 β†’ pythonPackages.measurement: now python3 only β†’ https://git.io/JeV66
<{^_^}> [nixpkgs] @jonringer pushed commit from @bhipple to master Β« pythonPackages.measurement: now python3 only Β»: https://git.io/JvfBL
<lovesegfault> gchristensen: Does that need any work or is it drop-in?
<gchristensen> it requires you create a .envrc file with this in it: eval "$(lorri direnv)"
<lovesegfault> Then I'll have to wrestle people to get it included
<lovesegfault> but it's okay
<lovesegfault> I will wrestle
mexisme_ has joined #nixos
<domenkozar[m]> only root can add trusted users
<gchristensen> you can have it locally and ignore the .envrc file
Guest92090 has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @grahamc opened pull request #77530 β†’ diceware: pythonPackages -> python3Packages β†’ https://git.io/JvfBG
<eacameron> domenkozar[m]: That's what I figured. I guess I'm just surprised your docs don't add steps for this as if it wasn't needed in most cases.
<domenkozar[m]> room for improvement :)
<domenkozar[m]> really need to make nixconf monoidal first
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c8db7a8a16e (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
<gchristensen> :o
mexisme_ has quit [Ping timeout: 252 seconds]
__monty__ has quit [Quit: leaving]
o1lo01ol1o has joined #nixos
juhe has quit [Quit: Leaving.]
Guest92090 has joined #nixos
<madamecoco> Thank you gchristensen you are the best feature of Nix.
m1cr0man has joined #nixos
<evanjs> weird (?) question -- is there a way or applet that can show me what `man configuration.nix` does, but with my current settings?
<gchristensen> evanjs: $ nixos-option services.openssh.enable
<evanjs> gchristensen: sure sure. But like as an overview?
<gchristensen> don't know
<evanjs> alright. *adds to project ideas*
fenedor has joined #nixos
<gchristensen> it'd be cool to get editor integration for options
<evanjs> basically just like a "current value" field in addition to the overviews given by e.g. https://nixos.org/nixos/options.html and `man configuration.nix`
<m1cr0man> Hey again. I'm trying to figure out how to add a change notice to security.acme.certs.<name>.extraDomains to convert it from a dict to a list. I have already worked with mkChangedOptionModule but that doesn't seem like the right choice because the name is staying the same. I was trying to take inspiration from the recently merged loaOf deprecation
<m1cr0man> PR but I can't figure out how that works. Is there an easy way to do this?
<gchristensen> it is changing from a dict to a list?
knupfer has joined #nixos
<m1cr0man> Yeah
<m1cr0man> There's no longer support for custom webtree paths per extra domain
<gchristensen> oh I see
fendor has quit [Ping timeout: 240 seconds]
<lovesegfault> gchristensen: Nix language server :P
madamecoco has quit [Remote host closed the connection]
<evanjs> gchristensen: yeah that’s been on my wishlist for a while. I can see how some options or values might be a little weird to handle (looking at you, mkAliasDefinitions...) but I would definitely use it
<evanjs> lovesegfault: I mean yeah butβ€”
Thra11 has quit [Quit: WeeChat 2.7]
Guest92090 has quit [Ping timeout: 268 seconds]
<gchristensen> no "but" needed :P let's do it! :)
<bhipple> Is there some documentation anywhere on how/when/where the tarballs.nixos.org hashed mirror gets updated?
<m1cr0man> Hm, would the way to do this be add an assertion to print a warning if it's not a list, then check if it's a list in the module code somewhere during use and convert it if necessary?
<m1cr0man> That doesn't change the value of the option though..other modules might have issues
<gchristensen> m1cr0man: it basically has to be a hard error, though
<gchristensen> since the user might be depending on that old behavior I think/
<bhipple> I've been running my own internal hashed mirror at $WORK for about a year with a heavily forked version of the find-tarballs.nix and copy-tarballs.pl scripts, and noticed a handful of deficiencies. Would be nice to sync up with someone who knows more about how it works upstream
<m1cr0man> gchristensen: Ugh yeah that sucks because other than this I think I can make the new module work out of the box for people that aren't changing the webroot path
Guest92090 has joined #nixos
<evanjs> gchristensen: seriously, though. Also on my list of β€œwhat if’s” is a Mobile/remote NixOS config editor. Yes, I am crazy πŸ˜‚ but mobile ssh is not fun haha
<gchristensen> one sec bhipple
<m1cr0man> evanjs, git repo with some CI/CD? :P github's mobile editor is not the worst
<{^_^}> Channel nixpkgs-19.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/0e7f6819f5e (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-19.09-darwin)
<infinisil> Is there a way to make a `fetchTarball { ... }` available in a NixOS qemu vm?
<evanjs> m1cr0man: oh good lord. No I was thinking something more visual haha. Like a playground (ie Swift, Rust) of sorts? Probably way better analogies than those haha
<infinisil> I think since it's not technically a derivation I can't just add it with virtualisation.pathsInNixDB
Guest92100 has joined #nixos
<infinisil> (well I tried that and it didn't work)
Guest92090 has quit [Remote host closed the connection]
<infinisil> And I'm wondering if there's a way to achieve this other than changing it to something ugly like `(import <nixpkgs> {}).fetchFromGitHub { ... }`
<qyliss> infinisil: how about copyPathToStore (fetchTarball ...)
<{^_^}> [nixpkgs] @mweinelt opened pull request #77531 β†’ kernel: set POWERCAP and INTEL_RAPL β†’ https://git.io/JvfBF
<gchristensen> bhipple: pretty much daily on a cron. what kind of updates would you like?
<bhipple> Internally, I've rewritten it from perl -> python to avoid needing support on perl langbinds, and parameterized where it uploads (S3, flat FTP server, dir on disk), and updated it to not need a local nix store. Would kinda like to upstream some of this but I'm not 100% clear on the current feature set, and know my script is missing some stuff
<gchristensen> ah
<infinisil> qyliss: Nah that doesn't work
<bhipple> But as far as features: I've noticed that often find-tarballs.nix misses src dependencies in private let bindings, noticed that the builtins fetcher uses base16 encoding instead of base32, noticed that the copy-tarballs only does flat files (no recursive) so I was wondering if we need a NAR mirror support or something
<bhipple> the last one is the biggest, as it means that things like fetchFromGitHub can be mirrored if it's a release src tarball, but not if it's a git clone dir
<infinisil> qyliss: I guess I haven't mentioned it, but the vm is running inside a nix-build
halfbit has quit [Ping timeout: 252 seconds]
Guest92100 has quit [Ping timeout: 265 seconds]
<gchristensen> so I know eelco isn't keen on rewrites, bhipple, but perhaps the part about no local nix store is interesting
<viric> Anyone knows what can make a luks device in use? It's not mounted
<infinisil> So nix evaluation doesn't have access to the internet
<bhipple> I have various workarounds for most of these but was just curious who knows the most about it to see if I'm not rediscovering old known issues one at a time :)
<viric> on luksClose I get "Device lvluks is still in use."
<gchristensen> bhipple: the hashes in the hashed mirror is intentionally a hash that upstream would recognize (ie: not a NAR). I think NARs should stay in the cache. the tarballs mirror really is for archives we've fetched
DerGuteMoritz has quit [Ping timeout: 268 seconds]
<bhipple> gchristensen: makes sense. I'm building NixPkgs with builders that are 100% air-gapped from all remote network access except the hashed mirror, which I do because we want to be able to re-build historical archives in fresh nix stores, and upstream URLs often disappear
<bhipple> (my own hashed mirror, not tarballs.nixos.org)
civodul has quit [Ping timeout: 260 seconds]
fusion809 has joined #nixos
<gchristensen> right
<viric> luks is mixing two devices... grmbl
<viric> # cryptsetup luksClose lvluks --debug # ....
<m1cr0man> evanjs that makes more sense, and infact I'd really like something like that for one of my deployments
<viric> ... things with lvluks ... # Replacing mountinfo device (0:53) with matching DM device backup (253:12).
<bhipple> The ones that are more problematic are ones like cargo, go, and bazel, which do a goModSha256 trick where they "vendor" their dependencies into a src hash package. These are the sort of recursive hashed-mirror packages I'm interested in supporting
<viric> The DM device "backup" is another one
<m1cr0man> ok gonna sleep and dream about SSL certs and how to nixify them :)
<gchristensen> bhipple: cargo, go, bazel are devils and should be banned.
m1cr0man has quit [Remote host closed the connection]
<gchristensen> those fetchers, thaht is
<qyliss> gchristensen++
<{^_^}> gchristensen's karma got increased to 195
<bhipple> Hah, no disagreements there :)
<evanjs> yeah I think cargo's I just overlook but go just drives me crazy (probably because I haven't done much with it) because of the whole GO PATH thing haha
<gchristensen> bhipple: so instead of improving upstream's mirror tooling, I'd rather work on fixing nixpkgs
<bhipple> It's definitely hard to build this nix expr in an air-gapped builder https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/text/ripgrep/default.nix#L17
<bhipple> Not impossible though :)
<gchristensen> for example, maybe fetchGit should be replaced with fetchGitArchive which produces a .tar.gz as the result
drakonis has quit [Quit: WeeChat 2.6]
Guest92090 has joined #nixos
drakonis has joined #nixos
<evanjs> I swear, if broot has one more release before this is merged... :P https://github.com/NixOS/nixpkgs/pull/77415
<{^_^}> #77415 (by evanjs, 1 day ago, open): broot: 0.10.2 -> 0.11.7
civodul has joined #nixos
<bhipple> gchristensen: that's an interesting idea, and is actually how my workaround spoofer works: if it's going to look for a pkg with recursive dir hash X, I can put a tar.gz file in the hashed mirror at location X (tho the tar.gz file has hash Y), and the fetcher will find it and unpack it, then validate that, indeed, it hash hash X once unpacked. Super dirty, would be nice if we were just looking for Y.tar.gz
<bhipple> in the first place
<gchristensen> bhipple: it would be more in the spirit of fixed output builders anyway
<bhipple> essentially, the hashed mirrors only work with --flat hashes
<gchristensen> right
<{^_^}> [nixpkgs] @symphorien opened pull request #77532 β†’ nixos/roundcube: security improvements β†’ https://git.io/JvfRq
<bhipple> I guess there's performance/efficiency value in the recursive hash for some src inputs, though, since the builders aren't always unpacking as the first phase of builds?
<bhipple> considering for NixPkgs' sake, not my own
<gchristensen> there are nice perks of using archives and not recursive ashes
<gchristensen> for example, if the source is an archive, SOURCE_DATE_EPOCH is filled in automatically to a reasonable date, and generated docs get relevant dates
Guest92090 has quit [Remote host closed the connection]
<bhipple> Computing and checking the hashes is much faster/simpler, too
<gchristensen> yeah
werner291 has quit [Quit: werner291]
<bhipple> although perhaps not net faster when considering time to pack after the git clone, and time to unpack at the start of a build
<bhipple> would save some space on disk for all the src packages too, though
<gchristensen> I have to assume that compared to compilation the compress / decompress is nothing
<infinisil> Regarding what I asked earlier, I think the solution is to just not nix-build in the vm but let the outer nix handle that
<infinisil> Makes a lot more sense
gustavderdrache has joined #nixos
<{^_^}> [nixpkgs] @zowoq opened pull request #77533 β†’ fuse-overlayfs: 0.7.2 -> 0.7.3 β†’ https://git.io/JvfR4
philr has joined #nixos
mexisme_ has joined #nixos
<{^_^}> [nixpkgs] @bjornfor merged pull request #77527 β†’ davfs2: substitute ps command β†’ https://git.io/Jvfl1
<{^_^}> [nixpkgs] @bjornfor pushed commit from @flokli to master Β« davfs2: substitute ps command Β»: https://git.io/JvfRR
<{^_^}> [nixpkgs] @grahamc merged pull request #77530 β†’ diceware: pythonPackages -> python3Packages β†’ https://git.io/JvfBG
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/JvfRE
<gchristensen> I can't wait for 20.03 so I won't have python2 on my system anymore
<{^_^}> [nixpkgs] @bhipple opened pull request #77534 β†’ doc: update rust example on buildRustPackage β†’ https://git.io/JvfRu
Guest92090 has joined #nixos
<lovesegfault> gchristensen: 20.03 nukes py2 completely?
<bhipple> Are we swapping to python = python3 in all-packages.nix as the default?
<gchristensen> bhipple: I think python will stay python2 by default for now...
<{^_^}> [nixpkgs] @bjornfor merged pull request #77518 β†’ fix catAttrs documentation signature β†’ https://git.io/JvfZi
<{^_^}> [nixpkgs] @bjornfor pushed commit from @iv-nn to master Β« fix catAttrs documentation signature Β»: https://git.io/JvfRz
<gchristensen> lovesegfault: no, but my system won't need python2 anymore :)
<lovesegfault> I tried to plot all pkgs in my system that have a py2 dep and it was a rats nest
<bhipple> Is there a ticket/plan/initiative to work on swapping the update and changing things that still need python2 to explicitly state it as such?
<gchristensen> bhipple: not sure... tbh it would be best to delete the `python` name altogether and explicitly onl yhave python2 or python3
<gchristensen> imo
<infinisil> +1 to that
<bhipple> yeah that's what RedHat is doing on RHEL8
<infinisil> Well or at least make `python` emit a warning
<bhipple> (along with most other distros, I'd imagine)
<gchristensen> in nixpkgs, it'd be good to move `python = ` and `pythonPackages =` in to the aliases.nix so it can't be used in nixpkgs
mexisme_ has quit [Ping timeout: 248 seconds]
<infinisil> Seems like a good first step
<infinisil> As in, make a PR with that, fix stuff until ofborg is happy
<{^_^}> [nixpkgs] @bjornfor merged pull request #77506 β†’ nixos/nat: use nixos-nat-out instead of OUTPUT β†’ https://git.io/JvfYJ
<{^_^}> [nixpkgs] @bjornfor pushed commit from @volth to master Β« nixos/nat: use nixos-nat-out instead of OUTPUT Β»: https://git.io/JvfRg
<gchristensen> yeah
<lovesegfault> Lots of commits today
* gchristensen gets distracted from the totally unfun thing he should be doing, does that instead
<{^_^}> [nixpkgs] @bjornfor merged pull request #77491 β†’ qmidinet: fix by using qt's mkDerivation β†’ https://git.io/JvfIF
<{^_^}> [nixpkgs] @bjornfor pushed commit from @dtzWill to master Β« qmidinet: fix by using qt's mkDerivation Β»: https://git.io/JvfRa
* lovesegfault wishes the bot didn't show merge commits
DerGuteMoritz has joined #nixos
<gchristensen> me too lovesegfault but it is hard to only filter out merge commits which didn't correlate to a PR
<lovesegfault> gchristensen: What do you mean?
<gchristensen> I would want it to post merge commits which were pushed bya user
<lovesegfault> Oooh
<lovesegfault> I see
<lovesegfault> Yeah; that is harder
<lovesegfault> OH
<gchristensen> and the ydon't necessarily come in a good order
Guest92090 has quit [Ping timeout: 268 seconds]
<lovesegfault> except the PR-associated ones are signed with GH's key
<gchristensen> oh interesting
<lovesegfault> you could filter out any merge commits signed with 4AEE18F83AFDEB23
<gchristensen> I wonder if the push event from the github webhook includes the hash
<{^_^}> [nixpkgs] @grahamc opened pull request #77535 β†’ {python{Full,Packages},pypyPackages}: move unversioned aliases to aliases.nix β†’ https://git.io/JvfRi
Guest92090 has joined #nixos
<LnL> merge is still a merge tho
jgeerds has quit [Ping timeout: 265 seconds]
foonicorn has quit [Ping timeout: 265 seconds]
shibboleth has quit [Quit: shibboleth]
knupfer has quit [Ping timeout: 248 seconds]
<gchristensen> LnL: yeah it is absolutely going to be a nightmare PR :P
<gchristensen> rg --files-with-matches "pythonPackages" | wc -l => 243
<{^_^}> [nixpkgs] @lovesegfault opened pull request #77536 β†’ COPYING: include 2020 β†’ https://git.io/JvfR7
<LnL> in theory that's just a replace
<lovesegfault> If anyone can merge that one I'd appreciate it
<gchristensen> so many call sites pin callPackage ... { pythonPackages = ... }
<LnL> most annoying thing are cases where both 2 and 3 work and using either explicitly is semantically wrong
<gchristensen> heh yeah
dansho has joined #nixos
<lovesegfault> pythonNaNPackages
<lovesegfault> problem solved
Guest92090 has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @grahamc merged pull request #77536 β†’ COPYING: include 2020 β†’ https://git.io/JvfR7
<{^_^}> [nixpkgs] @grahamc pushed 2 commits to master: https://git.io/Jvf0e
<lovesegfault> thx gchristensen
hexa- has quit [Quit: WeeChat 2.7]
<gchristensen> thank you :)
hexa- has joined #nixos
<LnL> btw I was actually looking at the darwin stdenv today, happy to tackle that part separately if necessary
Heirlung has quit [Ping timeout: 265 seconds]
<gchristensen> nice :D
<gchristensen> well already my branch can evaluate release.nix :P
<LnL> including darwin?
<gchristensen> ah oops
Guest92090 has joined #nixos
<gchristensen> ...seems to, LnL ?
<gchristensen> HOME=/homeless-shelter NIX_PATH=nixpkgs=$(pwd) nix-instantiate ./pkgs/top-level/release.nix -A unstable --option restrict-eval true --option build-timeout 1800 --argstr system x86_64-darwin --show-trace
<LnL> oh right, but that doesn't really change
<gchristensen> I think I'm doing it wrong
<gchristensen> no, I am, and it works
<LnL> yeah
Heirlung has joined #nixos
<gchristensen> cool
chloekek has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @zowoq opened pull request #77537 β†’ shfmt: 2.6.4 -> 3.0.1 β†’ https://git.io/Jvf0c
noudle has quit []
<LnL> pkgs/development/compilers/llvm/7/default.nix:1:1 called without required argument 'python'
<LnL> and changing that might make other things unhappy
domogled has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @adisbladis opened pull request #77538 β†’ poetry2nix: 1.2.0 -> 1.2.1 β†’ https://git.io/Jvf00
<gchristensen> I am a bit shocked at how little has broken actually
<gchristensen> did I not do it right?
<LnL> I've seen quite a bit of activity of people moving stuff to py3, I think a lot of the work has been done already
<gchristensen> awesome :D
Ralith_ has joined #nixos
elibrokeit has quit [Read error: Connection reset by peer]
civodul has quit [Quit: ERC (IRC client for Emacs 26.3)]
elibrokeit has joined #nixos
alexherbo22 has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
alex has quit [Ping timeout: 268 seconds]
bvdw has joined #nixos
alexherbo2 has quit [Ping timeout: 268 seconds]
alexherbo22 is now known as alexherbo2
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
alex has joined #nixos