gchristensen changed the topic of #nixos to: The Nix Ecosystem, https://nixos.org | NixOS: https://nixos.org/nixos/download.html | Nix: https://nixos.org/nix/download.html | Logs: https://logs.nix.samueldr.com/nixos/ | #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
<alienpirate5> wait wait
<alienpirate5> it's for talloc
<alienpirate5> which is a build dependency of cifs-utils
<growpotkin> alienpirate5: Maybe it's using a subset of Qemu in a library or something?
<alienpirate5> qhy am i even building cifs-utils?
<alienpirate5> ok, i removed cifs from the supported filesystems and it is now no longer pulling in qemu
evax has quit [Ping timeout: 245 seconds]
growpotk- has joined #nixos
<alienpirate5> how do I disable lvm2?
fusion809 has quit [Remote host closed the connection]
tilpner_ has joined #nixos
Twey has quit [Ping timeout: 268 seconds]
tilpner has quit [Ping timeout: 244 seconds]
Twey has joined #nixos
brycec-M has quit [Ping timeout: 264 seconds]
thonkpod has quit [Ping timeout: 264 seconds]
brycec-M has joined #nixos
noudle has quit []
thonkpod has joined #nixos
ryantrinkle has quit [Ping timeout: 272 seconds]
dansho has quit [Ping timeout: 246 seconds]
thc202 has quit [Ping timeout: 250 seconds]
___laika has quit [Ping timeout: 245 seconds]
evax has joined #nixos
ottidmes has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjQzR
mexisme has joined #nixos
<alienpirate5> i finally managed to successfully build an image with a functioning X server
<alienpirate5> well
<alienpirate5> i think it's functioning
<alienpirate5> haven't tested it yet
<simpson> Nice!
<qyliss> infinisil: have you heard of guix? :P
<infinisil> Yes of course!
<infinisil> Ahh regarding lisp
<qyliss> yes
<alienpirate5> wait no, I haven't enabled the X server yet
<alienpirate5> but polkit works at least
<qyliss> oh gods... I just looked at your README again. I didn't realise the first time that it isn't actually parsing anything
<alienpirate5> why does everything want to pull in gobject-introspection?
<qyliss> that's cool, but also that's horrifying!
mexisme has quit [Ping timeout: 264 seconds]
<simpson> alienpirate5: The cost of using a desktop environment is being beholden to the desktop environment's developer's choices.
<alienpirate5> i'm not using a desktop environment
<alienpirate5> i just want auto login to X
<alienpirate5> this is for an embedded device
mog has quit [Ping timeout: 276 seconds]
<infinisil> qyliss: Well it kinda is
<alienpirate5> why does i3wm depend on a perl module for pkg-config?!
<simpson> alienpirate5: Sure. Embedded devices are often big enough now for GTK+ or Qt, though, and so those libraries aren't as off-limits as they used to be. You can ask Nix why something depends on something else with $(nix why-depends).
<infinisil> qyliss: It parses the file to extract all variable names
<alienpirate5> thanks for the `nix why-depends` simpson
<alienpirate5> the problem with `gobject-introspection` is that it refuses to cross compile properly
___laika has joined #nixos
mckeankylej has joined #nixos
<mckeankylej> hyperfekt `pkgs.chromium.overrideAttrs (old: { src = chromium-src; });` didnt change the derivation
<mckeankylej> where:
<mckeankylej> chromium-src = pkgs.fetchgit { url = "https://chromium.googlesource.com/chromium/src"; rev = "400413e1bdcf356041794dbc60583a80280914f6"; sha256 = "1wdkhxwdjmav865x3km832f915wjwc718253pffhpns988v94d01"; };
<growpotkin> Is there any particular reason that overlays in `configuration.nix` are not applied to `nix` tools? Like was the decision intentional or is just a lapse in support/development?
<alienpirate5> i just don't want gtk+3 to be built
liberiga has quit [Ping timeout: 260 seconds]
<growpotkin> I use that hackish overlay folder thing to make my overlays global but I never knew if there was a real reason that configuration overlays aren't applied to "nix"
<infinisil> growpotkin: You mean like nix-build & co.?
mog has joined #nixos
logzet_ has joined #nixos
logzet has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @aanderse merged pull request #56568 → arangodb: 3.3.19 -> 3.2.18, 3.3.23.1, 3.4.7, 3.5.0-rc.7 → https://git.io/fhA30
<{^_^}> [nixpkgs] @aanderse pushed 3 commits to master: https://git.io/fjQz6
<alienpirate5> is `gobject-introspection` just completely impossible to compile?
<exarkun> it might be impossible to cross compile
<exarkun> lots of things are
<exarkun> (or, probably not impossible, but how much effort do you want to put in)
orcus has quit [Quit: leaving]
<growpotkin> infinisil: yeah
<growpotkin> infinisil: I am aware of the variety of reasons to keep them separate but it seems like a unintuitive default IMO
<infinisil> Hm, nixos and nix-build tools are like a totally different evaluations
<infinisil> Overlays you use for NixOS don't have to be used for nix-* tools, and the other way around too
<infinisil> And maybe a good reason is purity. Making NixOS overlays be used by default means more impurities
<infinisil> (overlays are impure in nix-* tools)
<infinisil> (with a standard `import <nixpkgs> {}` I mean)
lambda-11235 has joined #nixos
<{^_^}> [nixpkgs] @samueldr merged pull request #65954 → mysql57: 5.7.25 -> 5.7.27 [backport] → https://git.io/fjH8x
<{^_^}> [nixpkgs] @samueldr pushed 3 commits to release-19.03: https://git.io/fjQz9
mckeankylej has quit [Ping timeout: 260 seconds]
psy3497 has joined #nixos
ddellacosta has joined #nixos
erhandsome has joined #nixos
<{^_^}> [nixpkgs] @jonringer opened pull request #66242 → python3Packages.pylibgen: 2.0.1 -> 2.0.2 → https://git.io/fjQzb
___laika has quit [Ping timeout: 244 seconds]
ThatOtherGuy is now known as LogicAside
mexisme has joined #nixos
jluttine has quit [Ping timeout: 245 seconds]
hyperfekt has quit [Remote host closed the connection]
<pie_> is it possible to access the set of overlays used to construct the current pkgs?
<pie_> (not in a module, just normal pkgs)
___laika has joined #nixos
<pie_> clever: ^ ?
<pie_> hm and its not like one can .override pkgs :P
___laika has quit [Ping timeout: 245 seconds]
<pie_> i wish all functions were overridable
tsrt^ has joined #nixos
<vaibhavsagar> pie_: what would you want to do with a list of functions?
<pie_> vaibhavsagar: i want to pass them to the nixpkgs function again
<vaibhavsagar> that makes no sense to me
gagbo has quit [Remote host closed the connection]
gagbo has joined #nixos
<pie_> vaibhavsagar: https://bpaste.net/show/fAkm
<{^_^}> [nixpkgs] @jonringer opened pull request #66243 → Fix altair → https://git.io/fjQg0
<pie_> vaibhavsagar: using pkgs in imports leads to infinite recursion in some way due to how module evaluation is written
<pie_> so either i copy paste that function in their or i do some hackery like this, im open to other options
<vaibhavsagar> pie_: why don't you create another overlay that adds the overlay you want as a definition?
<pie_> i dont follow
<pie_> you mean create an attr that is my list of overlays?
<pie_> i might be able to do that....assuming it doesnt run into the same pkgs access problem
<pie_> oh...i guess that ends up being a problem in any case
<pie_> hm
<pie_> (though at that point i still dont see why one would just not have the top level nixpkgs options being accessible somehow anyway)
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/2f1fc1b6986 (from 59 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
domogled has joined #nixos
selfsymmetric-mu has joined #nixos
<pie_> aszlig: is there any other way to access pkgs.lib in imports other than import <nixpkgs> ... ? ^
<pie_> hmph....
* pie_ scratches head
<pie_> infinisil: in think one reason i didnt get it the first time around is i didnt realize pkgs is just another moduel variable thing
ndi^ has quit []
hc^ has joined #nixos
<hr[m]> From my experience there is currently an xcbuild build bug on MacOS that has appeared over the last few days. I'm not sure what changed on MacOS but it causes xcbuild to fail to build which means that dependent programs cannot be built. [PR: #66154](https://github.com/NixOS/nixpkgs/pull/66154) has solved the issue for me. It may be useful to merge this soon so that the affected programs will build again on Darwin during the next
<hr[m]> nixpkgs unstable update.
<{^_^}> https://github.com/NixOS/nixpkgs/pull/66154 (by marsam, 21 hours ago, open): xcbuild: fix build on darwin
ecr^ has joined #nixos
mexisme has quit [Ping timeout: 250 seconds]
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/2f1fc1b6986 (from 74 minutes ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/79c9533e39b (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @HugoReeves opened pull request #66244 → gopass: fix build on darwin → https://git.io/fjQgX
tewlz has joined #nixos
<pie_> anyone know how to fix "The option `config' defined in `/home/paprika/nixos2/common-modules/default.nix' does not exist." when said file does not mention "config" anywhere
<tewlz> new to nix in general, are there any tools for server orchestration e.g. I'd like to deploy a bunch of clustered services and ideally I'd like to scale up/down based on monitoring data - reading docs nixops seems to be fairly static, would I need to build some tooling around nixops or is anyone else building something like that?
laalf has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<pie_> ok i think i figured it out https://github.com/NixOS/nixpkgs/blob/master/lib/modules.nix#L82 , i have no idea what this code does but im guessing the most top level import that causes an error causes the message - at least that is what seems to happened in my case, and the actual problem was in one of the nested imports
laalf has joined #nixos
<samueldr> pie_: ^ bleh, can't find the right sentence in the chapter, but when options and config aren't present, it hoists the attrset into config, so I guess it's related to the problem you had
<samueldr> at least, that's how it works under the hood
<pie_> hm that kind of makes sense
<pie_> samueldr: if i make a nested attrset of constants do i have to define a bunch of options?
<samueldr> not sure I follow
<samueldr> but you can't have "floating" attributes in the config; everything will need to be an option somehow
<pie_> i want to set something like mystuff = {b = 1; c = { d = "a" ; b = 3; }; };
<{^_^}> [nixpkgs] @corngood opened pull request #66245 → chicken: fixes for chicken 5.1.0 → https://git.io/fjQgy
<pie_> samueldr: ^
phreedom has joined #nixos
<pie_> basically i want to create a database of "private" constants (like hashed passwords, whatever) i can refer to elsewhere
<{^_^}> [nixpkgs] @aanderse merged pull request #66186 → cassandra_2_2: 2.2.13 -> 2.2.14 → https://git.io/fjQOp
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/fjQg9
<samueldr> yeah, still the same answer, I guess, you can't have "floating" attributes on the config; you'd need at least a config option to set it, or set it somehow else that's available to the module system
<samueldr> I'm not that knowledgeable on the internals of it, though, so I'm getting into uncomfortable territories :)
<{^_^}> [nixpkgs] @samueldr merged pull request #66232 → [19.03] kubernetes: 1.13.7 -> 1.13.9 → https://git.io/fjQ0O
<{^_^}> [nixpkgs] @samueldr pushed 2 commits to release-19.03: https://git.io/fjQgQ
<pie_> it would be annoying to have to add types everywhere given that everything is already checked where i use them....
<pie_> hm
* pie_ tries the "attrs" type he just found in types.nix
<infinisil> attrs won't work
<infinisil> You need some recursive type
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/2f1fc1b6986 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
<pie_> yeah it didnt work
<samueldr> don't ya ever sleep? :) though good to see you answering as you have a good grasp on the modules system
<infinisil> mystuff = mkOption { type = let val = either unspecified (attrsOf val); in val; }
<infinisil> Might work
<pie_> infinisil: how did you do your private thing
<infinisil> That's an `attrsOf str` for the passwords
<infinisil> And manually declared options for everything else
<pie_> :I
<pie_> i might end up doing that later but i jsut want something adhoc right now :(
<pie_> will try what you pasted
<infinisil> Try out what I just showed above
<pie_> posted
<pie_> infinisil: cant just do a top level unspecified? ;P
<infinisil> Well you can, but then merging won't work properly
<pie_> dont think i would need to merge this :thinking:
<pie_> good to know though
<pie_> i guess if i wanted to split it into multiple files or import some values from elsewhere or something
<infinisil> Yeah for the splitting you need merging
<pie_> hmm.. still getting stuff like ` The option `mine.private.admin' defined in `common-modules/default.nix' does not exist. `
<infinisil> > :p types.unspecified.merge ["mystuff"] [{ file = "/a"; value = { x.y = 10; }; } { file = "/b"; value = { x.z = 20; }; }]
<{^_^}> { x = { z = 20; }; }
<pie_> stuff only refers to admin.something not admin by itself
<infinisil> (Demonstration of types.unspecified not merging properly)
<infinisil> That should still work, can't help much without seeing the code though
<infinisil> Or it's much harder anyways!
<infinisil> Forgot mkOption
<pie_> duh :I
<infinisil> Oh actually, unspecified is bad, I'd recommend using `either int (either str bool)` or so instead
<infinisil> Like `type = let val = either (either int (either str bool)) (attrsOf val); in val;`
<infinisil> Oh and you'll get an infinite recursion error with this actually
<infinisil> Like `type = let val = either (either int (either str bool)) (attrsOf val); in val // { description = "free-style"; };`
<infinisil> Gotta do this to fix it
<infinisil> Alright well I'm off to sleep for now, see ya
<infinisil> :)
<pie_> i didnt get an infinite recursion error (yet) ..probably because im still fixing other errors :P
ozychhi has quit [Ping timeout: 268 seconds]
<pie_> also, >_> 0_0
<pie_> how are yall not constantly clueless how to do things
ozychhi has joined #nixos
<pie_> wait..is ./. not relative to the current file?
<{^_^}> [nixpkgs] @MetaDark opened pull request #66246 → qbittorrent: 4.1.6 -> 4.1.7 → https://git.io/fjQgx
alex`` has quit [Ping timeout: 248 seconds]
<samueldr> it should be
<pie_> oh hm it seems to be the current directory, as opposed to the current file
<pie_> oh duh
<pie_> im so bad ;_;
jluttine has joined #nixos
<samueldr> you're bad only if you continually do the same mistake and not realise it
<pie_> infinisil: hm, no infinite recursion and i didnt apply the fix
Okinan has quit [Quit: Konversation terminated!]
<infinisil> Will only occur when you nixos-rebuild the system
<pie_> something about the description?
<infinisil> Yea, it needs to render the options description in the man page.
domogled has quit [Ping timeout: 268 seconds]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
domogled has joined #nixos
domogled has quit [Client Quit]
ddellacosta has quit [Ping timeout: 248 seconds]
MmeQuignon has quit [Ping timeout: 268 seconds]
jb55 has quit [Ping timeout: 260 seconds]
growpotk- has quit [Quit: ZNC 1.7.4 - https://znc.in]
growpotk- has joined #nixos
<DigitalKiwi> samueldr: https://www.dropbox.com/s/276tko3sxxmsdw8/2019-08-06%2022.28.05.jpg?dl=0 finished these nixos logos
<pie_> is there any way to make `nix build` dump some progress output
<pie_> nix-build has -v
<pie_> DigitalKiwi: diy sticker printing or...?
<pie_> \o/
<DigitalKiwi> pie_: yeah
<DigitalKiwi> airbrush
growpotkin has quit [Quit: WeeChat 2.5]
<{^_^}> [nixpkgs] @veprbl opened pull request #66247 → arrow-cpp: 0.13.0 -> 0.14.1 → https://git.io/fjQ2Y
kvda has joined #nixos
kvda has quit [Client Quit]
<pie_> i have a real weird problem
<pie_> find . -exec bash -c \''sha256sum <<< "salt.{}"'\' \;
<pie_> gives stuff like bash: sha256sum <<< "salt../.git/objects/14": No such file or directory
<pie_> but running any individual command in the shell is fine...
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/56d94c8c69f (from 70 minutes ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<pie_> ah hm i forgot to try using strace again
<{^_^}> [nixpkgs] @ryantm merged pull request #66189 → xapian: 1.4.11 -> 1.4.12 → https://git.io/fjQ3W
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ2W
<pie_> well that would do it...
<pie_> execve("sha256sum <<< \"salt../config/nodes/serv/todo/nixos2/.git/objects/96/33b240b8075093be2e496899226b09ba39e715\"",
<pie_> but why...
<pie_> running it in bash as opposed to find:
<pie_> execve("/nix/store/d9s1kq1bnwqgxwcvv4zrc36ysnxg8gv7-coreutils-8.30/bin/sha256sum" ...
gagbo has quit [Ping timeout: 245 seconds]
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/56d94c8c69f (from 75 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
Zer0xp has quit [Ping timeout: 245 seconds]
gagbo has joined #nixos
doyougnu has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg opened pull request #66248 → grc: leave /etc/grc.conf alone so we can override it → https://git.io/fjQ24
<{^_^}> [nixpkgs] @ryantm merged pull request #66042 → python37Packages.cfgv: 2.0.0 -> 2.0.1 → https://git.io/fjHQI
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ2R
kvda has joined #nixos
kvda has quit [Client Quit]
<ryantm> pie_: I bet running bash like that isn't setting up a PATH with sha256sum on it, so it is saying it can't find "sha256sum"
<ryantm> pie_: You could verify that by echo PATH or running `which sha256sum` in your bash script
<{^_^}> [nixpkgs] @ryantm merged pull request #66024 → python37Packages.azure-batch: 6.0.1 -> 7.0.0 → https://git.io/fjHSD
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ2z
<{^_^}> [nixpkgs] @ryantm merged pull request #66027 → python37Packages.azure-mgmt-eventgrid: 2.0.0 -> 2.2.0 → https://git.io/fjH9a
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ2g
<{^_^}> [nixpkgs] @ryantm merged pull request #66034 → python37Packages.azure-mgmt-dns: 2.1.0 -> 3.0.0 → https://git.io/fjHHU
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ22
<pie_> ryantm: i tried which sha256sum and it seems to be fine
<pie_> ryantm: and bash doesnt seem to be wrapped
<{^_^}> [nixpkgs] @ryantm merged pull request #66029 → python37Packages.azure-mgmt-monitor: 0.6.0 -> 0.7.0 → https://git.io/fjH9y
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ2r
<{^_^}> [nixpkgs] @ryantm merged pull request #66033 → python37Packages.azure-mgmt-signalr: 0.1.1 -> 0.2.0 → https://git.io/fjHHe
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ2o
<pie_> ryantm: ok the #bash people told me i was using one too many levels of quoting
<pie_> works now :I
<jackdk> "problem" "solved" :S
<ryantm> Yay!
<{^_^}> [nixpkgs] @ryantm merged pull request #66045 → python37Packages.azure-mgmt-recoveryservicesbackup: 0.3.0 -> 0.4.0 → https://git.io/fjHQ9
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ26
<{^_^}> [nixpkgs] @ryantm merged pull request #66048 → python37Packages.azure-mgmt-servicefabric: 0.2.0 -> 0.3.0 → https://git.io/fjH7C
<{^_^}> [nixpkgs] @ryantm merged pull request #66048 → python37Packages.azure-mgmt-servicefabric: 0.2.0 -> 0.3.0 → https://git.io/fjH7C
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ2i
lord| has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @ryantm merged pull request #66052 → python37Packages.azure-mgmt-web: 0.41.0 -> 0.42.0 → https://git.io/fjH7X
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ2P
<{^_^}> [nixpkgs] @ryantm merged pull request #66064 → python37Packages.azure-mgmt-datamigration: 2.1.0 -> 2.2.0 → https://git.io/fjHdj
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ2X
<pie_> im not quite sure why that works correctly
<{^_^}> [nixpkgs] @ryantm merged pull request #66059 → python37Packages.azure-mgmt-rdbms: 1.8.0 -> 1.9.0 → https://git.io/fjHdU
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ21
<{^_^}> [nixpkgs] @ryantm merged pull request #66067 → python37Packages.azure-mgmt-containerinstance: 1.4.1 -> 1.5.0 → https://git.io/fjHFP
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ2M
<{^_^}> [nixpkgs] @ryantm merged pull request #66068 → python37Packages.azure-mgmt-search: 2.0.0 -> 2.1.0 → https://git.io/fjHFH
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ2D
<{^_^}> [nixpkgs] @ryantm merged pull request #66072 → python37Packages.azure-mgmt-authorization: 0.51.1 -> 0.52.0 → https://git.io/fjHbs
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ2y
<{^_^}> [nixpkgs] @ryantm merged pull request #66074 → python37Packages.azure-mgmt-eventhub: 2.6.0 -> 3.0.0 → https://git.io/fjHbg
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ2S
<{^_^}> [nixpkgs] @ryantm merged pull request #66100 → python37Packages.portalocker: 1.4.0 -> 1.5.0 → https://git.io/fjHjQ
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ29
<{^_^}> [nixpkgs] @ryantm merged pull request #66081 → python37Packages.pyglet: 1.3.2 -> 1.4.1 → https://git.io/fjHAN
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ2H
<pie_> ok after some more poking i think it makes sense now
lord| has joined #nixos
<pie_> find should see (bash, -c, sha256sum ...)
<{^_^}> [nixpkgs] @ryantm merged pull request #66076 → python37Packages.azure-mgmt-cosmosdb: 0.6.0 -> 0.7.0 → https://git.io/fjHNJ
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ27
kvda has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #65972 → mbuffer: 20190127 -> 20190725 → https://git.io/fjH6a
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ25
<{^_^}> [nixpkgs] @ryantm merged pull request #66025 → python37Packages.biopython: 1.73 -> 1.74 → https://git.io/fjHSS
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ2d
owickstrom has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #65990 → lmdb: 0.9.23 -> 0.9.24 → https://git.io/fjHXW
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQ2x
abbiya has joined #nixos
<{^_^}> [nixpkgs] @ryantm pushed 5 commits to master: https://git.io/fjQ2j
<{^_^}> [nixpkgs] @ryantm merged pull request #65750 → pythonPackages.sepaxml: 2.0.0 -> 2.1.0 → https://git.io/fj9uD
<{^_^}> [nixpkgs] @ryantm closed pull request #66032 → python37Packages.fints: 2.1.1 -> 2.2.0 → https://git.io/fjH9A
<{^_^}> [nixpkgs] @virusdave opened pull request #66249 → unison-ucm: init at 0.0.1 alpha M1c → https://git.io/fjQae
<{^_^}> [nixpkgs] @ryantm merged pull request #66018 → picard-tools: 2.20.3 -> 2.20.4 → https://git.io/fjHSv
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQav
<{^_^}> [nixpkgs] @ryantm merged pull request #66022 → python37Packages.azure-mgmt-keyvault: 1.1.0 -> 2.0.0 → https://git.io/fjHSP
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQaf
chloekek has joined #nixos
<chloekek> When using fetchgit and downloading submodules, how can I specify the hash for each submodule? I see hash options for the outermost clone, but the only option for submodules is fetchSubmodules Boolean.
<ryantm> chloekek: Doesn't git already do this?
Rusty1 has quit [Quit: Konversation terminated!]
<chloekek> ryantm: .gitmodules doesn't contain hashes, where would it get them from?
<ryantm> I think that's the whole point of git submodules.
<{^_^}> [nixpkgs] @ryantm merged pull request #64037 → gnuapl: 1.7 -> 1.8 → https://git.io/fjK8t
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQat
<chloekek> Ah I see, thanks, then I have to check if the hash that Nix checks is computed before or after fetching submodules.
<ryantm> chloekek: Or trust Git behaves correctly when fetching the submodules in either case.
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<chloekek> Then I have to check if Git checks the hash of each object it downloads. That's probably easier.
<chloekek> ryantm: thanks!
cfricke has joined #nixos
doyougnu has quit [Ping timeout: 264 seconds]
gagbo has quit [Ping timeout: 258 seconds]
gagbo has joined #nixos
<danderson> just to make sure... It is safe to create files and directories in /etc imperatively on nixos, right?
<danderson> Assuming I don't conflict with files that a module is trying to define
___laika has joined #nixos
abathur has quit [Ping timeout: 248 seconds]
___laika has quit [Ping timeout: 245 seconds]
chloekek has quit [Ping timeout: 245 seconds]
nhk^ has left #nixos [#nixos]
<clever> danderson: yeah
nehth^ has joined #nixos
vmandela has joined #nixos
ecr^ has quit []
srt^ has joined #nixos
eds^ has quit []
zupo has joined #nixos
anderslundstedt has quit [Quit: leaving]
sgh^^ has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
anderslundstedt has joined #nixos
palo1 has joined #nixos
palo has quit [Ping timeout: 248 seconds]
palo1 is now known as palo
endformationage has quit [Ping timeout: 245 seconds]
sakalli has joined #nixos
gxt has joined #nixos
<Izorkin> aanderse: please check PR #65222
<{^_^}> https://github.com/NixOS/nixpkgs/pull/65222 (by Izorkin, 2 weeks ago, open): mariadb: update packages
gagbo has quit [Ping timeout: 272 seconds]
gagbo has joined #nixos
<{^_^}> [nixpkgs] @magenbluten opened pull request #66250 → Dpdk → https://git.io/fjQad
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/e275a6c2f38 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
vmandela_ has joined #nixos
gxt has quit [Ping timeout: 260 seconds]
vmandela_ has left #nixos [#nixos]
hyper_ch2 has joined #nixos
abbiya has quit [Remote host closed the connection]
abbiya has joined #nixos
gagbo has quit [Ping timeout: 268 seconds]
gagbo has joined #nixos
<{^_^}> [nixpkgs] @lilyball opened pull request #66251 → cocoapods-beta: 1.7.5 -> 1.8.0.beta.1 → https://git.io/fjQVt
gagbo has quit [Ping timeout: 268 seconds]
gagbo has joined #nixos
wfranzini has joined #nixos
justanotheruser has quit [Ping timeout: 258 seconds]
gagbo has quit [Ping timeout: 272 seconds]
gagbo has joined #nixos
linarcx has joined #nixos
judson_ has joined #nixos
<pie_> clever: infinisil, for when you want to load a uniquely named directory in an arbitrary location :ok_hand: https://bpaste.net/show/cpo_
Jackneill has joined #nixos
judson has quit [Read error: Connection reset by peer]
kbZ has quit [Quit: The Lounge - https://thelounge.chat]
Lukas4452 has joined #nixos
growpotk- has quit [Quit: ZNC 1.7.4 - https://znc.in]
growpotkin has joined #nixos
gagbo has quit [Ping timeout: 244 seconds]
gagbo has joined #nixos
<pie_> hmm...can i run an IFD outside the sandbox in a module?
<pie_> im guessing grub does stuff at activation time which is how the grub script gets run
<pie_> hm
kbZ has joined #nixos
<{^_^}> [nixpkgs] @ivan opened pull request #66252 → scream-receivers: init at 3.3 → https://git.io/fjQVQ
veske has joined #nixos
wfranzini has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @magenbluten opened pull request #66253 → rocksdb: 6.1.2 -> 6.2.2 → https://git.io/fjQwT
<{^_^}> [nixpkgs] @marcus7070 opened pull request #66254 → pythonPackages.cadquery: init at 2.0RC0 → https://git.io/fjQwk
<{^_^}> [nixpkgs] @jdanekrh opened pull request #66255 → gnome-sharp: mono4 -> mono5 → https://git.io/fjQwI
___laika has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
pietranera has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
lambda-11235 has quit [Quit: Bye]
lord| has quit [Quit: WeeChat 2.5]
gagbo has quit [Ping timeout: 272 seconds]
gagbo has joined #nixos
lord| has joined #nixos
vmandela has quit [Quit: Leaving]
___laika has quit [Ping timeout: 245 seconds]
alex`` has joined #nixos
joepie91 has joined #nixos
cfricke has quit [Quit: WeeChat 2.5]
<{^_^}> [nixpkgs] @adisbladis merged pull request #61141 → perl-packages: Set perlPackages attr in perlPackages scope → https://git.io/fjcDb
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fjQwW
<joepie91> so I'm currently trying to write a morph configuration, moving some 'preset' bits of config out into their own files... but I'm running into an issue: https://gist.github.com/joepie91/4e43480995edfec720a56f6543b09656 -- that includes both the root config and the presets/nginx/php.nix, and Nix yells at me with the following: "error: attribute 'services' missing, at
<joepie91> /home/sven/projects/morph-rc/configuration/presets/nginx/php.nix:9:25"
asymptotically has joined #nixos
<joepie91> I *suspect* that the issue here is my usage of lib.mkMerge in the nginx virtualhosts config, as it will be trying to evaluate that php preset before the top-level config has been evaluated, and therefore `config` is empty
<joepie91> how do I resolve this?
<joepie91> (it worked fine when the PHP stuff was defined inline in `default.nix`)
schjetne has joined #nixos
<{^_^}> [nixpkgs] @Lassulus pushed commit from @Moredread to master « vcv-rack: 0.6.2b -> 1.1.3 »: https://git.io/fjQwo
<{^_^}> [nixpkgs] @Lassulus merged pull request #63984 → vcv-rack: 0.6.2b -> 1.1.3 → https://git.io/fjKqq
gagbo has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @vbgl pushed 7 commits to master: https://git.io/fjQwK
<{^_^}> [nixpkgs] @vbgl merged pull request #65715 → OCaml build support: add oasis build system → https://git.io/fj9G0
gagbo has joined #nixos
nhey_ has joined #nixos
vmandela has joined #nixos
Makaveli7 has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pie_ has quit [Ping timeout: 250 seconds]
veske has joined #nixos
sigmundv has joined #nixos
johanot has joined #nixos
hyper_ch2 has joined #nixos
Shoubit has joined #nixos
hcs^ has joined #nixos
<{^_^}> [nixpkgs] @peti merged pull request #66204 → R: Update CRAN and bioconductor packages → https://git.io/fjQnu
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fjQw5
<{^_^}> [cabal2nix] @domenkozar pushed to domenkozar-patch-1 « Add mapping for Nix libraries »: https://git.io/fjQwd
<{^_^}> [cabal2nix] @domenkozar opened pull request #425 → Add mapping for Nix libraries → https://git.io/fjQwF
gagbo has quit [Ping timeout: 248 seconds]
gagbo has joined #nixos
<{^_^}> [nixpkgs] @xrelkd opened pull request #66256 → cargo-bloat: 0.7.2 -> 0.8.2 → https://git.io/fjQwx
growpotkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
phreedom has quit [Remote host closed the connection]
growpotkin has joined #nixos
phreedom has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
<{^_^}> [cabal2nix] @peti merged pull request #425 → Add mapping for Nix libraries → https://git.io/fjQwF
<{^_^}> [cabal2nix] @peti pushed 2 commits to master: https://git.io/fjQwj
<{^_^}> [cabal2nix] @peti pushed 0 commits to domenkozar-patch-1: https://git.io/fjQre
<{^_^}> [nixpkgs] @knl opened pull request #66257 → Make hostname in tests overridable → https://git.io/fjQrv
thc202 has joined #nixos
Lukas4452 has quit [Ping timeout: 246 seconds]
veske has joined #nixos
gagbo has quit [Ping timeout: 245 seconds]
ottidmes has joined #nixos
<{^_^}> [nixpkgs] @mmahut opened pull request #66258 → flexibee: init at 2019.2.5 → https://git.io/fjQr4
gagbo has joined #nixos
<{^_^}> [cabal2nix] @domenkozar pushed to master « typo »: https://git.io/fjQrB
zupo has joined #nixos
o1lo01ol1o has joined #nixos
palo has quit [Quit: WeeChat 2.4]
owickstrom has quit [Quit: Connection closed for inactivity]
growpotkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
growpotkin has joined #nixos
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/56d94c8c69f (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
growpotkin has quit [Client Quit]
Lukas4452 has joined #nixos
tmaekawa has joined #nixos
owickstrom has joined #nixos
gagbo has quit [Ping timeout: 245 seconds]
fendor has joined #nixos
gagbo has joined #nixos
Lukas4452 has quit [Ping timeout: 272 seconds]
psy3497 has quit [Ping timeout: 248 seconds]
o1lo01ol1o has quit [Ping timeout: 268 seconds]
fusion809 has joined #nixos
Lukas4452 has joined #nixos
niso has joined #nixos
lsix has joined #nixos
ubert has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #66144 → shaarli: 0.10.4 -> 0.11.0 → https://git.io/fjQIK
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjQot
zaeph has quit [Ping timeout: 276 seconds]
vk3wtf has quit [Ping timeout: 246 seconds]
Makaveli7 has quit [Quit: WeeChat 2.5]
Lukas4452 has quit [Ping timeout: 245 seconds]
palo has joined #nixos
zaeph has joined #nixos
vk3wtf has joined #nixos
orivej has quit [Ping timeout: 272 seconds]
jtojnar has quit [Quit: jtojnar]
<petercommand> Finally got Zettlr to work in a nix-shell environment..
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fjQoB
<{^_^}> [nixpkgs] @Mic92 merged pull request #65695 → ripgrep-all: init at 0.9.2 → https://git.io/fj9L0
Lukas4452 has joined #nixos
jtojnar has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fjQoa
<{^_^}> [nixpkgs] @Mic92 merged pull request #66216 → arduino: fix incorrect sha256 in Darwin build → https://git.io/fjQle
tmaekawa has quit [Quit: tmaekawa]
spacekookie has quit [Quit: **agressive swooshing**]
<{^_^}> [nixpkgs] @Mic92 merged pull request #66244 → gopass: fix build on darwin → https://git.io/fjQgX
<{^_^}> [nixpkgs] @Mic92 pushed commit from @HugoReeves to master « gopass: fix build on darwin (#66244) »: https://git.io/fjQoo
spacekookie has joined #nixos
jgt has joined #nixos
vmandela has quit [Remote host closed the connection]
<jgt> from the NixOS wiki, I can see that I can move /nix to another device. What isn't clear to me is: does this also work on MacOS?
vmandela has joined #nixos
<Mic92> jgt: I would say yes.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @mmahut merged pull request #66001 → nagios: 4.4.3 -> 4.4.4 → https://git.io/fjHMY
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjQoP
<Mic92> mhm. bind mount seems to be not available on macOS
<{^_^}> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/e275a6c2f38 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
<{^_^}> [nixpkgs] @mmahut merged pull request #66006 → openapi-generator-cli: 4.0.1 -> 4.0.3 → https://git.io/fjHDe
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjQo1
<LnL> you can put the nix store on a separate volume, but there are no bind mounts so you'll have to mount it at /nix
andreas303 has quit [Remote host closed the connection]
<jgt> LnL: the motivation for me here is that I keep running out of disk space
<jgt> is the implication of what you're saying that the path _must_ be /nix, even if that's just a symlink?
andreas303 has joined #nixos
<petercommand> what's the recommended way to force evaluation of an expression?
gagbo has quit [Ping timeout: 248 seconds]
<Taneb> petercommand: builtins.seq ?
<LnL> yes, and a symlink won't work out of the box
gagbo has joined #nixos
<petercommand> Taneb: thanks
<jgt> LnL: what will I have to do?
<jgt> LnL: but I'm not sure this advice applies here
<jgt> LnL: I also found this answer: https://stackoverflow.com/a/54339875/704015
johanot has quit [Quit: WeeChat 2.4]
<LnL> proot doesn't exist on darwin and I'm not sure why you'd want to put it elsewhere
<LnL> apfs supports quotas for volumes
<jgt> LnL: "I'm not sure why you'd want to put it elsewhere" I have a 128GB hard drive in my MacBook. My nix store currently uses 44GB of that.
ZeDestructor has quit [Quit: o.O]
<LnL> yes?
<jgt> I currently have 3.5GB of free space on my hard drive.
<jgt> this is not great
<manveru> 44GB means you either installed a ton, or it's time for some very aggressive GC
<symphorien> you can use nix-du to find out what is using space
<jgt> command not found: nix-du
<{^_^}> [nixpkgs] @luispedro opened pull request #66261 → pythonPackages.jug: 1.6.8 -> 1.6.9 → https://git.io/fjQoA
<symphorien> jgt: it is in nixpkgs
<jgt> ok, I pulled it into a nix shell
<jgt> running it now
ZeDestructor has joined #nixos
<jgt> ok, the output of that command is pretty much indecipherable
hyper_ch2 has quit [Remote host closed the connection]
zupo has joined #nixos
<manveru> it's meant to be used with graphviz
<manveru> check the --help
<jgt> right
<jgt> so, I _can't_ move /nix to an external device on MacOS then?
mexisme has joined #nixos
<manveru> looks like it...
<{^_^}> [nixpkgs] @xaverdh opened pull request #66262 → wpa_supplicant/gui: fix qt wrapping → https://git.io/fjQKT
<manveru> i think you can maybe mount a whole drive at a custom location?
nhey_ has quit [Remote host closed the connection]
<jgt> the graph generated by nix-du doesn't tell me much
<jgt> one of these nodes is coloured in red, but it's only 5.3GB
xqsl has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
xqsl has joined #nixos
orivej has joined #nixos
<jgt> I'm running nix-collect-garbage -d, and it's mostly Haskell packages
ThatDocsLady has joined #nixos
rndd has joined #nixos
<rndd> hi everyone
<rndd> i need to get sha256 to build go package. but dont now how to ddo it
<manveru> ,tofu rndd
<{^_^}> rndd: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<{^_^}> [nixpkgs] @basvandijk merged pull request #66257 → Make hostname in tests overridable → https://git.io/fjQrv
<{^_^}> [nixpkgs] @basvandijk pushed 2 commits to master: https://git.io/fjQKn
o1lo01ol1o has joined #nixos
<manveru> jgt: that sounds about right :)
pepesza has quit [Ping timeout: 244 seconds]
<jgt> manveru: right, so I don't think it's just a case of installing too much stuff
<manveru> well, it depends on your use
<manveru> and garbage collection isn't automatic unless you active it
<manveru> *activate it
<jgt> Haskell development, and compiling and deploying Haskell applications
<jgt> which also necessitates using a Docker machine as a build slave
<rndd> {^_^} i tried it and output said me write sha256, but after putting it inside sha256 = "" nothing changed
<manveru> rndd: {^_^} is a bot :)
<jgt> manveru: so do you think enabling automatic GC will take care of the problem?
<manveru> rndd: can you show your code?
<adisbladis> rndd: Which of the go build abstractions are you using?
pepesza has joined #nixos
<manveru> jgt: if you heavily use nix-shell, note that this will also remove those unless you added GC roots
<rndd> src = fetchFromGitHub { owner = "sparrc"; repo = "go-ping"; rev = "4e5b6552494c8005c60de6c60b50ebaefc69e592"; sha256 = "788EB2EFC52660FE41472319F0D2C623BE6540C956921B3632FCC934BF1BE10D"; };
<manveru> rndd: i think you replaced the wrong hash then
<rndd> sha256 is random
<manveru> and sha256 can't be random, use the 0000000000000000000000000000000000000000000000000000 above
<rndd> src = fetchFromGitHub { owner = "sparrc"; repo = "go-ping"; rev = "4e5b6552494c8005c60de6c60b50ebaefc69e592"; sha256 = "788EB2EFC52660FE41472319F0D2C623BE6540C956921B3632FCC934BF1BE10D"; };
<{^_^}> [nixpkgs] @averelld opened pull request #66263 → python.pkgs.handout: init at 1.0.0 → https://git.io/fjQK8
<rndd> oooooo
<rndd> it works
o1lo01ol1o has quit [Ping timeout: 272 seconds]
<adisbladis> rndd: That package has dependencies too, so you'll likely want to use a tool like go2nix to generate your nix expression
<rndd> @adisbladis will check it
rndd has quit [Remote host closed the connection]
igh^ has quit []
Lukas4452 has quit [Ping timeout: 272 seconds]
eok^ has joined #nixos
<jgt> is this a possible solution to moving /nix to an external drive on MacOS? https://apple.stackexchange.com/questions/197029/how-do-you-mount-bind-a-local-directory
Lukas4452 has joined #nixos
<jgt> hmm… that answer is four years old
<Taneb> Things don't always change quickly
<jgt> I know :)
<manveru> jgt: you might have better luck in #nix-darwin
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/8b85de318db (from 48 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<{^_^}> [nixpkgs] @adisbladis merged pull request #66243 → Fix altair → https://git.io/fjQg0
<{^_^}> [nixpkgs] @adisbladis pushed 3 commits to master: https://git.io/fjQKa
<jgt> manveru: looks like a rather empty room
<manveru> jgt: quality over quantity man :P
<adisbladis> ^_^
<jgt> looks like rpc and nfsd are already installed on my system
<jgt> so that's a good start
<sphalerite> I'm trying to open a LUKS device, but getting the error "device-mapper: reload ioctl on failed: Invalid argument". Anyone know this one?
<{^_^}> [nixpkgs] @mgttlinger opened pull request #66264 → ocaml-minisat: init at 0.2 → https://git.io/fjQKr
<emilsp> has anyone actually built an android app with gradle on NixOS without using android studio?
<Miyu-chan> Is there a programs.ocaml? It seems to always prefer the most up-to-date packages, resulting in..
johanot has joined #nixos
<Miyu-chan> [myrl@myrl:~]$ nix run nixpkgs.gnumake nixpkgs.gnum4 -c opam install core base
<Miyu-chan> [ERROR] core unmet availability conditions, e.g. ocaml-version >= "4.03.0"
<Miyu-chan> [ERROR] base unmet availability conditions, e.g. ocaml-version >= "4.04.1"
<Miyu-chan> I'd rather not have to nix-shell all the time either.
<sphalerite> emilsp: not sure about the gradle part, but I do think obsidian systems build android apps using their obelisk thing with nix
<emilsp> sphalerite: but are they using ant underneath? I really don't want to force all of my coworkers to move to an _ant_ique build system.
<emilsp> it's really hard to use nixOS when the world is using tools that just work :/
grw has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @adisbladis merged pull request #66228 → openjfx: fix build → https://git.io/fjQR5
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fjQKX
<sphalerite> emilsp: yeah, iktf. Also good job on that pun :p
<sphalerite> emilsp: anyway, to actually answer your question: I think I did at one point
MmeQuignon has joined #nixos
<emilsp> sphalerite: do you recall any special hoops you had to jump through?
<sphalerite> no
<emilsp> :/
<emilsp> ah well, I'll go and have a look at obsidian systems
iyzsong has joined #nixos
<sphalerite> emilsp: well, have you _tried_ building with gradle? If so, how has it gone wrong?
psyanticy has joined #nixos
<emilsp> It fails to use aapt2 with a very descriptive java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2InternalException: AAPT2 aapt2-3.3.2-5309881-linux Daemon #0: Daemon startup failed
<emilsp> Putting aapt2 in my path doesn't help, I've set `ANDROID_HOME` env var and all.
<emilsp> specifically, running gradle assembleDebug fails
<sphalerite> ooh fascinating.
<emilsp> The same thing builds just fine with android-studio
<sphalerite> Is this aapt2 from nixpkgs?
<emilsp> it's an aapt2 binary that's distributed as part of androidenv's androidsdk
<emilsp> so a part of nixpkgs
<sphalerite> and running it yourself works?
<emilsp> to be fair, I think that gradle should find the aapt2 through ANDROID_HOME env var which is set correctly afaict. aapt2 does not fail horribly when ran manually, no.
veske has quit [Quit: This computer has gone to sleep]
Palpares has quit [Remote host closed the connection]
Palpares has joined #nixos
d1rewolf has quit [Quit: Connection closed for inactivity]
<{^_^}> [nixpkgs] @peti merged pull request #66262 → wpa_supplicant/gui: fix qt wrapping → https://git.io/fjQKT
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/fjQ6T
<{^_^}> [nixpkgs] @WilliButz opened pull request #66265 → grafana: 6.3.0 -> 6.3.2 → https://git.io/fjQ6I
ng0 has joined #nixos
xelxebar has quit [Remote host closed the connection]
xelxebar has joined #nixos
shandogs has joined #nixos
orivej has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @danbst merged pull request #66224 → pgpool: 3.4.14 -> 4.0.5 → https://git.io/fjQBO
<{^_^}> [nixpkgs] @danbst pushed commit from @takeda to master « pgpool: 3.4.14 -> 4.0.5 (#66224) »: https://git.io/fjQ6O
dansho has joined #nixos
<{^_^}> [nixpkgs] @danbst merged pull request #65309 → postgresql: running `initdb` from command line now works → https://git.io/fjDnE
<{^_^}> [nixpkgs] @danbst pushed to master « postgresql: running `initdb` from command line now works (#65309) »: https://git.io/fjQ6Z
__monty__ has joined #nixos
pie_ has joined #nixos
<petercommand> is it the case that in a typical node(yarn?) package, there can be multiple package.json?
<petercommand> https://gist.github.com/petercommand/7c1ec2df3b452122548587243e0ff642 right now I am trying to build Zettlr with this
<petercommand> nix-build succeeds, but no binary is produced
orivej has joined #nixos
Lukas4452 has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @ttuegel opened pull request #66266 → Replay Qt 5.12.3 version bump → https://git.io/fjQ68
<sphalerite> Anybody seen this one before when trying to open a luks device? https://gist.github.com/lheckemann/c58749ce553bcaec62e9cf00cdcdba70
<petercommand> maybe I should just unpack a binary package intended for other distro (like atom in nixpkgs)
<{^_^}> [nixpkgs] @mmahut merged pull request #65984 → pythonPackages.webrtcvad: init at 2.0.10 → https://git.io/fjHPH
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjQ6u
Lukas4452 has joined #nixos
hyper_ch2 has joined #nixos
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjQ6z
<{^_^}> [nixpkgs] @mmahut merged pull request #65782 → runwayml: init at 0.8.1 → https://git.io/fj9il
kfound has joined #nixos
Lukas4452 has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @marsam merged pull request #66261 → pythonPackages.jug: 1.6.8 -> 1.6.9 → https://git.io/fjQoA
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/fjQ6K
<{^_^}> [nixpkgs] @Infinisil merged pull request #65666 → add options for build idris package → https://git.io/fj9ft
<{^_^}> [nixpkgs] @Infinisil pushed 3 commits to master: https://git.io/fjQ66
<{^_^}> [nixpkgs] @worldofpeace merged pull request #66222 → virtualbox: use wrapQtAppsHook → https://git.io/fjQ8O
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjQ6i
<{^_^}> [nixpkgs] @marsam merged pull request #66240 → protontricks: 1.2.3 -> 1.2.4 → https://git.io/fjQuj
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/fjQ6P
<emilsp> how do I set licenseAccepted to true?
rsoeldner has quit [Ping timeout: 246 seconds]
___laika has joined #nixos
rsoeldner has joined #nixos
<ajs124> emilsp: for which packet?
Lukas4452 has joined #nixos
<emilsp> androidsdk
domogled has joined #nixos
<johanot> emilsp: config.android_sdk.accept_license = true;
___laika has quit [Ping timeout: 245 seconds]
<johanot> where config = nixpkgs.config
<emilsp> like this - with import <nixpkgs> { config.android_sdk.accept_license = true; }; ?
<{^_^}> [nixpkgs] @johnchildren opened pull request #66269 → golangci-lint: 1.16.0 -> 1.17.1 → https://git.io/fjQ6A
<johanot> emilsp: yep, for example
Neo-- has joined #nixos
<symphorien> <jgt> one of these nodes is coloured in red, but it's only 5.3GB << the graph will tell you which roots (triple octogons) you need to remove to free these 5.3 GB
owickstrom has quit [Quit: Connection closed for inactivity]
<Gopal[m]> hello!
<Gopal[m]> I'm somehow locked myself out of my server. I made the mistake of deleting `/etc/ssh/ssh_known_hosts` and `~root/.ssh` and `~user/.ssh`
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
<emilsp> gah, can I force a deriviation to be rebuilt?
<Gopal[m]> I tried `nixos-enter` and then `nixos-rebuild switch` but it doesn't seem to have worked
<johanot> emilsp: try adding --check to nix-build
domogled has quit [Ping timeout: 248 seconds]
linarcx has quit [Quit: WeeChat 2.5]
<Gopal[m]> any help?
adamt has joined #nixos
linarcx has joined #nixos
<emilsp> heh, passing the parameters isn't actually the issue, it seems like the gradle build does not respect that the license is accepted. This seems to be so because there is no license folder in $ANDROID_HOME, which is what one would expect when they've accepted the license.
justanotheruser has joined #nixos
<symphorien> Gopal[m]: you can recreate these files within nixos-enter "by hand"
grw has joined #nixos
<johanot> emilsp: ah.. sounds.. annoying. Haven't played with Android on Nix for a long time though, so I'm perhaps not the right person to help here :) It isn't just about you refreshing your environment? Are you on NixOS even?
<emilsp> I am on NixOS, yes.
<Gopal[m]> symphorien: sorry, haha,
<emilsp> I did try and re-enter that nix-shell multiple times, the androidsdk deriviation isn't being rebuilt. And if I do not actually pass that parameter, then the deriviation actually fails to build.
<hyper_ch2> emilsp: you need adb?
domogled has joined #nixos
<emilsp> hyper_ch2: I want to be able to `./gradlew assembleDebug` :/
<hyper_ch2> no idea what that is but good luck
<emilsp> hyper_ch2: I'm trying to build an android app with gradle, but the issue is that the gradle build tools do not respect my $ANDROID_HOME, since it doesn't look like any licenses have been accepted.
<johanot> what does gradle actually say to you?
rsoeldner has quit [Read error: Connection reset by peer]
rsoeldner has joined #nixos
<emilsp> johanot: Failed to install the following Android SDK packages as some licences have not been accepted. To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
ryantrinkle has joined #nixos
<manveru> hmm
domogled has quit [Ping timeout: 258 seconds]
<johanot> emilsp: can you open the sdk-manager and accept the licenses interactively?
<manveru> emilsp: yes | sdkmanager --licenses && yes | sdkmanager --update
<manveru> seems like the canonical way
<johanot> manveru++
<{^_^}> manveru's karma got increased to 17
<emilsp> no I cannot since it will try to create the directory within the deriviation, which is read-only.
<emilsp> and sdkmanager --licenses no longer works, it's an unknown argument
domogled has joined #nixos
<manveru> fun stuff
<pbb> How can I use the $out variable in configureFlags? I tried "configureFlags = [ "--prefix=$(out)" ];", but it gets escaped
<{^_^}> #23910 (by husnoo, 2 years ago, open): Nixos android sdk license
<emilsp> pbb it's not $(out) but ${out}
<pbb> that gives me "error: undefined variable 'out' at"...
mgdm has left #nixos ["WeeChat 1.4"]
<Gopal[m]> one more question, can `docker-compose` be replaced with `docker.containers` nix attribute?
<Gopal[m]> if so, is anyone doing this?
<manveru> pbb: `configureFlags = [ ''--prefix="$out"'' ];` then?
<manveru> Gopal[m]: check out https://github.com/hercules-ci/arion
<pbb> manveru: configure: error: expected an absolute directory name for --prefix: "$out"
Lukas4452 has quit [Ping timeout: 272 seconds]
<manveru> heh
<manveru> `--prefix=${placeholder "out"}` ?
<manveru> i dunno, it really depends on how that flag gets used i guess...
hyper_ch2 has quit [Remote host closed the connection]
<pbb> configure: error: expected an absolute directory name for --prefix: "$out"
<Gopal[m]> this is amazing :D
<pbb> whoops
<Gopal[m]> thank you @manveru
<pbb> how does this work then?
<manveru> maybe that's used in a makefile?
<manveru> `$(out)` in bash means "execute the out binary and return the output"
<pbb> but it gets escaped by stdenv
linarcx has quit [Quit: WeeChat 2.5]
Lukas4452 has joined #nixos
shandogs has quit [Remote host closed the connection]
<manveru> ok, and a simple `"--prefix=$out"`?
<Gopal[m]> thanks to nix, I'm getting closer to truly one-click deployments in case of hardware failure
<manveru> i mean, it's not supposed to have space in the name anyway...
<pbb> manveru: the $ gets escaped
<{^_^}> [nixpkgs] @vbgl merged pull request #65631 → ocamlPackages.findlib: 1.8.0 -> 1.8.1 → https://git.io/fjSbB
<{^_^}> [nixpkgs] @vbgl pushed to master « ocamlPackages.findlib: 1.8.0 -> 1.8.1 »: https://git.io/fjQig
<pbb> the placeholder trick actually gave me the output hash, but not the path
<Gopal[m]> manveru: is there a way for arion to do automatic updates?
<{^_^}> [nixpkgs] @vdot0x23 opened pull request #66271 → nixos/stubby: clearer wording for upstreamServers → https://git.io/fjQi2
<manveru> huh
<manveru> pbb: can you share the derivation?
<Gopal[m]> currently I use watchtower to do this but I prefer rolling back images too if the newer images have problems starting up
<manveru> Gopal[m]: it's bound to your nixpkgs
<Gopal[m]> wdym
<adamt> Gopal[m]: Why do you need to roll back images in general? Sounds like you're deploying from tags like :latest
<pbb> unfortunately not. but I actually found the solution now:
<pbb> I still had $out last time so that gave me the hash and not the path
<pbb> configureFlags = [ ''--prefix=${placeholder "out"}'' ];
<manveru> so if you put a fixed version in arion-pkgs.nix, you can rely it always gives you the same images as result
<Gopal[m]> adamt: yes
<Gopal[m]> I am
<__monty__> Is there a way to make the binary cache usable on a very slow connection? Kbps rather than Mbps?
<manveru> rolling back with :latest is... tricky :P
<Gopal[m]> yeah, it probably is
<Gopal[m]> which is why things like kubernetes exist :P
hyper_ch2 has joined #nixos
<manveru> :)
<Gopal[m]> no problem though
<manveru> i build kubernetes config with nix, so the image is fixed that way
<Gopal[m]> I see
<adamt> Gopal[m]: How does k8s save you with regard to rollbacks when you're deploying :latest?
<Gopal[m]> k8s has rolling updates
WhittlesJr has joined #nixos
<Gopal[m]> it updates as soon as there is a newer image available and if it doesn't work, it rolls back
<manveru> __monty__: not really... i suffer this every day :P
<adamt> Gopal[m]: And if the job is started on a host that didn't have the old version?
<manveru> __monty__: just have a lot of patience, i guess
<Gopal[m]> adamt can there be a situation like that though?
<__monty__> manveru: It goes a bit like this, try copying some paths, timeout, abort, restart, try copying the same paths... : (
rsoeldner has quit [Read error: Connection reset by peer]
<johanot> "latest" really only works as expected, if you remember to set "ImagePullPolicy: Always"
<manveru> __monty__: jup
rsoeldner has joined #nixos
<__monty__> I'd rather it fall back to a slow but steady sequential mode than just keep failing to get things in parallel.
<Gopal[m]> If I am at some older version, I'm going to retain that image until that's deleted, right? That image will be only deleted when the newer image is confirmed to be working.
<adamt> Gopal[m]: It honestly sounds like you'll be hosed if the server running the last good version crashes in the middle of it, since you're not doing rollbacks, just failing a new update.
<Gopal[m]> manveru: how many nodes to you use with k8s?
<manveru> Gopal[m]: uh, hard to tell, i don't maintain k8s
<Gopal[m]> adamt: I think you can also set an interval for image deletion
<Gopal[m]> if that does happen, I can rollback manually regardless
<manveru> but given that you push images to your registry and specify the exact tag on deploy, it works nicely
<Gopal[m]> manveru: I see. Well, it's just that the last time I tried k8s w/ 2 nodes with nix. I failed miserably.
<adamt> manveru: Gopal[m] said he is deploying the tag "latest", not a specific tag.
<manveru> adamt: yeah
<adamt> I'm basically just trying to say "don't do that, it's a really really really bad idea".
<manveru> exactly :)
<Gopal[m]> I've been doing this for 2 years and I haven't run into a problem with stability, tbh
<Gopal[m]> for projects like invidious or searx, I'd prefer to stay on the latest commit
abbiya has quit [Quit: abbiya]
<manveru> then i'm not sure i understand the issue
<Gopal[m]> for databases, obviously I'm using a specific tag
<Gopal[m]> manveru: the issue is that I'm trying to cover for _that one day_ when the newer image fails :P
<manveru> i'm talking about deploys of apps i write, not random images from the interwebs :)
<Gopal[m]> I see
veske has joined #nixos
<manveru> so i decide on the tag and can insert that into the k8s config for that service
<manveru> so we're talking two different things?
<Gopal[m]> alright, just one more thing
<Gopal[m]> (manveru do you manually update images then?)
<Gopal[m]> I think so
noudle has joined #nixos
<manveru> CI builds the image
<manveru> tag is taken from github sha
<manveru> s/github/git/
fendor has quit [Read error: Connection reset by peer]
<adamt> We integrated the process of building images with the process of creating k8s deployments, and always refer to docker images using a tag that is really a checksum of the image derivation. It's neat, and predictable.
<johanot> manveru: have you considered pulling by digest instead of tag (now that you are tagging with a digest anyway) ? :)
<johanot> I guess traceability to git is a good thing.
mexisme has quit [Ping timeout: 276 seconds]
fendor has joined #nixos
seanparsons has quit [Ping timeout: 244 seconds]
<manveru> johanot: yeah, it's just company policy mostly
<Gopal[m]> adamt: I think that applies only when you are the builder of the images that you use
<manveru> we got a nice UI that shows every version of every container with the corresponding commit
<manveru> you could do it with labels too... i guess
<adamt> Gopal[m]: Well, we also support downloading images by tag (and with an expected hash), and use the same pipeline for those.
<johanot> Right. Worst drawback with your approach I guess, is that you can easily end up with multiple identical images - with different tags, since every git commit doesn't necessary change the image content.
<Gopal[m]> I'm not sure I understand how you manage updates for images built by other than yourself
<manveru> well, we don't allow those...
<Gopal[m]> <Gopal[m] "alright, just one more thing"> and yeah, are we getting any closer to live patching kernels?
<adamt> Gopal[m]: We manually bump the version of external images, just like you would with normal packages
<johanot> My experience is that you reeeally want to pull by Digest when using "upstream-images". Because... People tend to re-push tags :(
<Gopal[m]> <manveru "well, we don't allow those..."> were you talking about kernel updates?
<Gopal[m]> <adamt "Gopal: We manually bump the vers"> I see
<manveru> Gopal[m]: i meant images not built by ourselves
fendor_ has joined #nixos
<Gopal[m]> well, your approach is definitely great for production
<manveru> it's not super pragmatic, but otherwise you just ask for exploits
<manveru> anw, gotta go, cu :)
<johanot> if you examine the content of an external image and pin that to something static and verifyable (not a tag), it can be safe enough.
<Gopal[m]> manveru: doesn't ubuntu do live patching?
<Gopal[m]> thanks for your help, buddy!
<johanot> sidenote: there is #nixos-kubernetes on Freenode if you want to discuss this topic in more detail some time.
<Gopal[m]> johanot: I think I have bothered you a lot already on that channel :P
fendor has quit [Ping timeout: 268 seconds]
<adisbladis> Ohh #nixos-kubernetes <3
<Gopal[m]> I remember asking and checking your setup out a lot of times but I couldn't wrap my mind around it
mexisme has joined #nixos
<adisbladis> (we need an index of all #nixos-$blah irc channels)
seanparsons has joined #nixos
<johanot> adisbladis: is there a #nixos-blah though? :P there should be
<adisbladis> johanot: #nixos-chat is close enough ;)
<johanot> true :P logs.nix.samueldr.com is the best index I can think of... thanks samueldr again for that, btw
<{^_^}> [nixpkgs] @prusnak opened pull request #66272 → pythonPackages.wget: init at 3.2 → https://git.io/fjQij
npmccallum has joined #nixos
<{^_^}> [nixpkgs] @prusnak closed pull request #66272 → pythonPackages.wget: init at 3.2 → https://git.io/fjQij
<{^_^}> [nix] @dtzWill opened pull request #3030 → pathlocks: add include to fcntl.h for O_CLOEXEC → https://git.io/fjQPq
pie_ has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @danbst pushed 2 commits to pacien-postgresql-wal-receiver: https://git.io/fjQP3
<{^_^}> [nix] @edolstra merged pull request #2995 → Add a post build hook → https://git.io/fj1rp
<{^_^}> [nix] @edolstra pushed 3 commits to master: https://git.io/fjQPG
<{^_^}> [nixpkgs] @danbst pushed 0 commits to pacien-postgresql-wal-receiver: https://git.io/fjQPZ
orivej has quit [Ping timeout: 244 seconds]
<dminuoso> Ive enabled docker in configuration.nix and tried to add "docker" to my extraGroups, but its not working. If I check ⌜groups⌝ its not listing the docker group. What's going on here?
<gchristensen> did you log out and log in?
<yorick> sudo as yourself for a quick workaround
<yorick> sudo -su $(whoami)
<dminuoso> Ah interesting. I take it that my shell reuses the user information from its parent process, inheriting it from the long living X process - which still doesnt have the group?
<yorick> basically, yes
<gchristensen> exactly
<adamt> It's also not a NixOS thing, it's an annoyance everywhere =/
drakonis has joined #nixos
<dminuoso> How does that work exactly? I mean I'd expect ⌜groups⌝ to call into some system library (?) - so I naively expected ⌜groups⌝ to always tell me the truth.
<dminuoso> Is there some generic "uid/groups" struct provided by the kernel?
<etu> dminuoso: I don't know the inner workings, but it's assigned to your session somehow on login
Chiliparrot has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #66012 → pdns-recursor: 4.1.14 -> 4.2.0 → https://git.io/fjHyt
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQPl
<dminuoso> Okay I think I just worked it out then.
<dminuoso> It must be glued into task_struct
<dminuoso> My reasoning is this: In order for the security model to work, this information has to live in the kernel. And the only reasonable structure for this has to be the the process/task struct.
<dminuoso> (Which presumably gets inherited if you fork/exec)
<johanot> dminuoso: yeah, see: man 7 user_namespaces :)
<dminuoso> johanot: Ah cheers.
<{^_^}> [nixpkgs] @emmanuelrosa closed pull request #64730 → syncthing: 1.1.4 -> 1.2.0 → https://git.io/fjXRT
ryantrinkle has quit [Ping timeout: 244 seconds]
<exarkun> if I want to write some nixos tests (https://nixos.org/nixos/manual/index.html#sec-nixos-tests) and I don't want to write any perl, and I just screwed?
<{^_^}> [nixpkgs] @adisbladis merged pull request #66269 → golangci-lint: 1.16.0 -> 1.17.1 → https://git.io/fjQ6A
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fjQPg
fendor_ has quit [Read error: Connection reset by peer]
fendor_ has joined #nixos
___laika has joined #nixos
AluisioASG has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
domogled has quit [Ping timeout: 272 seconds]
<worldofpeace> why can't we change the target the buildPhase does?
<adisbladis> exarkun: Yep, though you don't really have to write much perl to write a nixos test
<thoughtpolice> exarkun: I mean, if you are literally, physically unable to write it or something because it's using Perl, then yes, you are basically screwed. But you normally do not need to write much perl at all
<adisbladis> In fact I mostly tend to forget I'm writing perl when hacking on nixos tests
<exarkun> thoughtpolice: I might be physically unable to write something in Perl, yes.
<thoughtpolice> Then you are screwed.
<adisbladis> You can basically consider the test suite a tiny subset of perl
___laika has quit [Remote host closed the connection]
___laika has joined #nixos
<adamt> It doesn't sound like the size of the subset matters much in this case :P
Lukas4452 has quit [Ping timeout: 245 seconds]
<exarkun> Give me a couple hours to stare at some terrible file of ansible and terraform, maybe I can get over it
<exarkun> At least perl is shitty technology from the last century instead of shitty technology from this century
<adisbladis> It's literally 5 lines of perl (and they're all $machine->succeed)
<exarkun> adisbladis: Heh. I already have that open in emacs.
<Gopal[m]> <exarkun "Give me a couple hours to stare "> Are those that bad? :P
<exarkun> Gopal[m]: I dunno. Maybe I'll decide writing Perl is worse...
<adisbladis> exarkun: :)
<adamt> exarkun: Maybe cut back a bit on the snark. ;-)
<{^_^}> [nixpkgs] @NeQuissimus pushed 7 commits to master: https://git.io/fjQPH
<adisbladis> Gopal[m]: Imho terraform (the language) is terrible
<Gopal[m]> Any of you guys manage emacs packages with nix?
<adisbladis> Gopal[m]: Yes
<exarkun> adisbladis: It's all very simplistic testing. That's great. I love simple. I'm used to using very expressive test frameworks though. It's an adjustment.
<Gopal[m]> <adisbladis "Gopal: Imho terraform (the langu"> Really? I've had a senior who immensely praises terraform and all of hashicorp
<{^_^}> [nixpkgs] @NeQuissimus pushed 4 commits to release-19.03: https://git.io/fjQP7
<{^_^}> [nixpkgs] @FRidh merged pull request #66229 → calibre: fix build → https://git.io/fjQRj
<{^_^}> [nixpkgs] @FRidh pushed commit from Averell Dalton to master « calibre: fix build »: https://git.io/fjQPd
<adisbladis> Gopal[m]: Terraform, the tool, is great
<exarkun> adisbladis: My first impression is "this is way too simplistic, I can't express anything I want to express with this".
<adisbladis> Gopal[m]: I just find the language terrible
<Gopal[m]> <adisbladis "Gopal: Yes"> How do you stay updated with packages?
<adisbladis> Try to write a loop, I dare ya
rsoeldner has quit [Remote host closed the connection]
<exarkun> Gopal[m]: "a senior who immensely praises ..." is kind of meaningless
rsoeldner has joined #nixos
<exarkun> Gopal[m]: "senior" doesn't mean much
<Gopal[m]> <exarkun "Gopal: "a senior who immensely p"> Wdym?
joshuagl has joined #nixos
<exarkun> Gopal[m]: and non-technical praise is usually more about culture and fads than actual software quality
<adisbladis> Gopal[m]: We're recently done some changes to our melpa infra. Expect much more up to date packages in the future.
<adisbladis> Gopal[m]: Or is that not what you meant?
<Gopal[m]> Hmm, I think I said senior because he has used Hashicorp's products in production for several startups
<{^_^}> [nixpkgs] @basvandijk opened pull request #66273 → Backport "Remove default value for nixpkgs.system" to release-19.03 → https://git.io/fjQPN
<exarkun> Gopal[m]: So he's, like, at least 25? :)
<Gopal[m]> And has had great experience with those
<adisbladis> ^_^
<adisbladis> Gopal[m]: I have nothing against Terraform as a deployment tool, it's just a damn shame the language is not expressive enough
<thoughtpolice> Gonna go ahead and throw this out there: this is not the channel to really be hashing out popularity/design of something like Terraform or whatever hearsay you want to discuss. As noted, NixOS test scripts are currently written in Perl, and that's currently the way life is.
<adisbladis> thoughtpolice: <3
<thoughtpolice> I think that's basically all that needs to be said.
<johanot> thoughtpolice++
<{^_^}> thoughtpolice's karma got increased to 14
<Gopal[m]> <adisbladis "Gopal: We're recently done some "> I'm just afraid of converting packages again to nix. As it is, I've had a terrible experience with nix on the desktop. :P
<Gopal[m]> NixOS*
<{^_^}> [nixpkgs] @timokau merged pull request #66233 → spotifyd: update cargoSha256 hash → https://git.io/fjQ04
<{^_^}> [nixpkgs] @timokau pushed commit from @BenSchZA to master « spotifyd: update cargoSha256 hash (#66233) »: https://git.io/fjQPp
linarcx has joined #nixos
<exarkun> is this how a nixos test should complete? "vde_switch: EOF on stdin, cleaning up and exiting", "vde_switch: Could not remove ctl dir '/build/vde1.ctl': Directory not empty"
<adisbladis> Gopal[m]: Ok? Using nix for your emacs packages shouldn't really affect your emacs config so I don't know what you have to lose.
<adisbladis> exarkun: Yeah, that looks familiar.
fendor_ has quit [Ping timeout: 258 seconds]
orivej has joined #nixos
marek has quit [Changing host]
marek has joined #nixos
rsoeldner has quit [Ping timeout: 246 seconds]
johann__ has joined #nixos
<{^_^}> [nixpkgs] @vbgl merged pull request #66264 → ocaml-minisat: init at 0.2 → https://git.io/fjQKr
<{^_^}> [nixpkgs] @vbgl pushed commit from @mgttlinger to master « ocaml-minisat: init at 0.2 »: https://git.io/fjQXm
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @ttuegel merged pull request #66226 → Add bluez-qt as an explicit dependency of plasma5 → https://git.io/fjQRU
<{^_^}> [nixpkgs] @ttuegel pushed 2 commits to master: https://git.io/fjQXY
<Gopal[m]> <adisbladis "Gopal: I have nothing against Te"> I see
hyper_ch2 has quit [Remote host closed the connection]
<Gopal[m]> <adisbladis "Gopal: Ok? Using nix for your em"> I always forget
<Gopal[m]> <exarkun "Gopal: So he's, like, at least 2"> What does age have to do with it?
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<adisbladis> Gopal[m]: It was a jab at "senior" not really meaning anything
<Gopal[m]> Btw how does Terraform compare against nixops?
<exarkun> Gopal[m]: I don't think this conversation is welcome here.
o1lo01ol1o has joined #nixos
<Gopal[m]> <adisbladis "yozu: It was a jab at "senior" n"> oh, haha, I just said senior because he's a year ahead of me at uni
Lukas4452 has joined #nixos
_kwstas has joined #nixos
<__monty__> Gopal[m]: Could you stop quoting previous messages rather than just mentioning people? I'm sure it's a nice feature on matrix but on the other side of the bridge it's pretty confusing.
_kwstas has quit [Remote host closed the connection]
<Gopal[m]> <exarkun "yozu: I don't think this convers"> huh?
<Gopal[m]> I'm sorry
jgt has quit [Ping timeout: 264 seconds]
<Gopal[m]> on android, it's a pita to copy paste
<exarkun> we can probably follow your meaning if you just write your message, you don't have to quote or copy/paste anyone else's messages
<exarkun> it's how irc works, everyone on irc has lots of practice doing it :)
<Gopal[m]> understood :)
linarcx has quit [Ping timeout: 246 seconds]
FRidh has quit [Quit: Konversation terminated!]
<exarkun> So is there something more like unit testing for Nix? I see https://nixos.org/nixpkgs/manual/#function-library-lib.debug.runTests - is that it?
<adamt> Gopal[m]: I'm pretty sure it's ok to ask how terraform compares to nixops here, but that people (other than you) should keep the debate more civil than before.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Gopal[m]> I see
mexisme has quit [Ping timeout: 252 seconds]
<Gopal[m]> Is there a reason plasma is still 5.15 in the repos?
<manveru> Gopal[m]: terraform and nixops have a bit of overlap, but terraform has a much larger feature set, like setting up dns, cdn, heroku, mailgun, newrelic, etc...
rsoeldner has joined #nixos
<manveru> nixops (as i used it), is mostly about "deploy this nixos config to this box"
<adisbladis> There was already an (incomplete) index of channels on the wiki: https://nixos.wiki/wiki/Get_In_Touch#IRC_on_Freenode
<Gopal[m]> I see
<manveru> though nixops does have configs for AWS/GCE/Azure, i just never used them myself since i don't use those services
<manveru> and both can be pretty nerve-wrecking at times :)
<Gopal[m]> can NixOps be used to do that after deployment? For example, I have a central repo which has configs for all my machines. The problem now is that I have to keep a copy at each of the machines. I was wondering if I could use my laptop to deploy some particular config to a box?
<johanot> Gopal[m]: have you looked at https://github.com/DBCDK/morph ? :)
<Gopal[m]> nix is already nerve-wrecking for me lol
<Gopal[m]> I think I have failed to use nix on the desktop 7+ times for now
{`-`} has joined #nixos
<manveru> Gopal[m]: now i'd love to hear that story :D
<adisbladis> johanot: Wasn't there a nice comparison matrix somewhere between nixops/morph/krops?
<Gopal[m]> johanot: somebody should make one of those _awesome_ lists for nixos for projects like these
<kandinski> Gopal[m]: my experience is the reverse. I installed it once and it worked so well that my frustration is not progressing in learning. I don't have the incentive I once had to learn to fix stuff that broke.
<exarkun> and if lib.tests.runTests is how you do it, where do you put your tests and how do you convince something to evaluate them?
<Gopal[m]> manveru: it involves me beating my head against the wall for some package that does not yet exist or work well on nix :P
dontobey has quit [Ping timeout: 246 seconds]
<Gopal[m]> kandinski: I think the problem comes from my imperative background
vmandela has quit [Quit: Leaving]
xkapastel has joined #nixos
<Gopal[m]> and also that package installation is so easy and painless in arch linux that having to open up `home.nix` to add a package and then do `home-manager switch` feels annoying almost always
<adamt> Gopal[m]: I had similar issues running maple on nixos, but ended up running it inside a FHS userenv. Maybe that's worth looking into, but it obviously depend on the exact problem faced. :P
<johanot> adisbladis: there's this thread.. https://discourse.nixos.org/t/morph-nix-based-deployment-tool/1276 .. which links to the good-old nixops/krops comparison. adamt might be able to provide further resources :P
<adamt> Gopal[m]: You could always just nix-env -iA nixos.foopkg (not ideal, but about as easy as pacman)
<Gopal[m]> adamt: I tried looking into packaing ungoogled-chromium for nixos... but oh boy
rsoeldner has quit [Remote host closed the connection]
<adamt> Gopal[m]: Or, if you need a tool but only once, just make a new shell with it (nix-shell -p foopkg)
rsoeldner has joined #nixos
<adisbladis> johanot: That's the one I was thinking of. Thanks.
<adamt> johanot: I know nothing of nixops or krops
<adamt> I'm pretty familiar with morph features, though
<adisbladis> johanot: Could I persuade you to make a wiki article on the subject? ;)
<Gopal[m]> adamt: the "not ideal" part is where the transition becomes a pain. it's like trying something new but unable to because I'm too used to the older way
<adisbladis> Or adamt
<Gopal[m]> also one of my major complaints is that plasma simply sucks on nixos
<Yaniel> sucks?
<Yaniel> it must be absolutely stellar on other distros then
<adisbladis> Hm? I never had much Nixos-specfic Plasma issues.
<Gopal[m]> yeah, I've had terrible experience with Plasma on NixOS. mutliple times, that tooo
<Gopal[m]> Yaniel: plasma on arch is amazing, even more so on OpenSUSE tumbleweed
<adisbladis> Gopal[m]: Instead of generally complaining could you make it into something constructive?
<adisbladis> What's your problems you're experiencing?
<Yaniel> haven't had much to complain about on nixos so...
<Gopal[m]> sure thing
<adisbladis> Saying that something just sucks is not nice to all the peeps working hard to maintain the packages
<exarkun> if I put a call to runTests into a .nix file and nix-build it, it seems to be a no-op
<Gopal[m]> the animations lagged way too much
<exarkun> adisbladis: saying some_one_ sucks isn't nice. things are just things.
<johanot> adisbladis: yeah we should do that. and btw.. we'll probably do a talk about morph on NixCon in Brno.
__monty__ has quit [Remote host closed the connection]
<adamt> Gopal[m]: So probably a driver issue, and not plasma specific
<Gopal[m]> adisbladis: I'm sorry about that
<Gopal[m]> I'm really thankful to all the people putting work into NixOS. I should word my statements better.
<drakonis> adisbladis: no issues with baloo's indexing?
<adamt> exarkun: And things are made by people that probably have feelings for the things they made.
<Gopal[m]> adamt: umm, it happened with both my laptops. intel and nvidia
<Yaniel> oh, I just assumed it's supposed to be janky like that, like on a certain other OS xD
<adisbladis> drakonis: Tbh I've always turned off baloo
<Gopal[m]> I think there were problems with sddm too but I can't remember
<exarkun> adamt: It's sad that people develop emotional attachments to technology. It gets in the way of making things better.
<drakonis> fedora goes nuclear and just rips out the majority of indexing features
<Yaniel> what bothers me more is that kwin_x11 loves crashing a lot
<Gopal[m]> it's been over three months since I tried plasma on nixos
<drakonis> so the daemon is there but it doesnt do anything useful
<Yaniel> i.e. basically every time I press alt+tab
<Gopal[m]> baloo is really useful for finding files tho
<exarkun> adamt: You are not the C you got on the math test. You are not the buggy software you write.
veske has quit [Ping timeout: 272 seconds]
<drakonis> adisbladis: nothing regarding updating the desktop file index for the start menu either?
<Gopal[m]> Yaniel: I really haven't seen kwin_x11 crash, bar very rarely with the nvidia laptop I have
<Yaniel> and it seems that there are like two people other than me with that problem
veske has joined #nixos
<exarkun> Failure is a normal, healthy part of life. Learn from it and move on and do better.
<Gopal[m]> on my thinkpad, it's flawless
<drakonis> not as egregious but its something the other distributions do whenever installing new software
<adisbladis> drakonis: I've manually run `kbuildsycoca5` to rebuild that
<Gopal[m]> im using plasma right now, on arch
jgt has joined #nixos
<adisbladis> Anyway, for the last year or so I've been on exwm and not much plasma anymore. I only use Plasma on my tablet now.
<drakonis> that's what i do myself
<drakonis> whenever i actually change my system instead of running shells
<Gopal[m]> also, back to my original question, why is plasma on nixos still 5.15? didn't 5.16 come out two months back?
<drakonis> not one bit different from my experience
<Yaniel> which nixos channel are you on
<Gopal[m]> unstable
<Gopal[m]> I use unstable everywhere, haha
<Gopal[m]> haven't had problems except for libreoffice and python packages
<adisbladis> Gopal[m]: I guess it's just that no one bothered to update it.
<Gopal[m]> I see
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/47f648c38ac (from 43 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
<adamt> Gopal[m]: You can probably just increment the versions on https://github.com/NixOS/nixpkgs/blob/master/pkgs/desktops/plasma-5/srcs.nix, update the checksums, and make a PR :-)
<adisbladis> adamt: There is an update script for kde/qt
<drakonis> its the easiest thing about nix my dude
<drakonis> pushing updates is the easiest
<Gopal[m]> all this talk is convincing me to try nixos yet again :P
jgt has quit [Ping timeout: 252 seconds]
<adamt> adisbladis: Yeah, I just saw the first line of the file. My bad.
<exarkun> Can anyone give me any tips on using lib.runTests?
* adisbladis runs the updater
<adisbladis> Let's see what happens
<Gopal[m]> where is the update script?
<Gopal[m]> oh fetch.sh
<Gopal[m]> my bad
<adisbladis> Gopal[m]: It's more complicated ;)
<Gopal[m]> I really should make an effort with nixos again
<joepie91> Gopal[m]: come to the dark side, we (still) have cookies!
<Gopal[m]> we also have infinite path resolution problems :P
<joepie91> we now also have morph, which has significantly improved my ops experience with Nix...
<Gopal[m]> oh yeah, I meant to ask
<adisbladis> Gopal[m]: cd pkgs/desktops && ../../../maintainers/scripts/fetch-kde-qt.sh plasma-5
<Gopal[m]> I'm confused. nixops and morph?
<adisbladis> (though I've already run it, running plasma tests now)
endformationage has joined #nixos
<adisbladis> Gah, some build failure
<adisbladis> I don't have time to look into this too much now
<adamt> Maybe that's why nobody bumped it :P
<joepie91> Gopal[m]: morph is basically the simple stateless alternative to nixops
<Gopal[m]> oh?
<adisbladis> joepie91: Does it do local building and copies the closure?
<joepie91> Gopal[m]: morph == config file goes in, morph builds and deploys (using SSH keys from your environment) on the stated hostnames, working systems come out
<adamt> joepie91: Do you know whether things changed in nixops related to state?
<johanot> adisbladis: :D personally I was preparing popcorn when you said "runs the updater". I like the "updates are easy" part of this conversation.
<Gopal[m]> nixops keeps track of states? how is that good / bad?
<joepie91> Gopal[m]: nixops is a lot more complex, supports complex cloudycloud resource management and whatnot but is also highly stateful
<adisbladis> johanot: I've updated plasma a few times, usually it's just some small change in dependencies or some patch that needs removal
<adisbladis> It's usually quite easy
<joepie91> well, the main benefit of morph over nixops imo is that you can reason about morph pretty easily with only very little experience with it; very few moving parts, very straightforward process, easy to follow, easy to find issues with
__monty__ has joined #nixos
<joepie91> nixops has a lot of internal state (autocreated SSH keys, other resources, etc.) that is difficult to inspect and it's difficult to understand how it relates to other settings that it has
<johanot> adisbladis: just kidding :) it's just.. you know.. when people say "it's easy".
<adisbladis> Yeah :)
___laika has quit [Ping timeout: 268 seconds]
<joepie91> nixops is really a capital-S deployment System
<joepie91> whereas morph is more like a deployment tool, a minimal extension to what you already do with Nix to make it apply to other machines
<adamt> I just got the impression some time back that it you could now use nixops without state, of course without the provisioning bits
<adisbladis> My dad always says "Chinese is easy, even the kids in China knows how to speak it."
<joepie91> adisbladis: all builds are local in morph afaik, I don't think it has a "download stuff directly to target system" switch yet
<johanot> :D human language don't compute.. <- that's all I have to say to that
<manveru> exarkun: it's like this: `lib.runTests { testAdd = { name = "stuff"; expr = 2 + 2; expected = 2; }; testSub = { expr = 1 - 1; expected = 0; }; }`
<manveru> exarkun: it'll return a list of failed tests
<Gopal[m]> I see
<Gopal[m]> thank you
<exarkun> manveru: Then you nix-build it?
<adamt> joepie91: Correct, we haven't implemented remote download/build yet, and not sure we will any time soon, since we don't really need it at work
<Gopal[m]> i see
<johanot> adamt forgot to say: "PR's are welcome" :)
<manveru> exarkun: you could, if you put it in a derivation, but `nix eval` or `nix repl` is probably easier
<Gopal[m]> I use servers from hetzner and I see that nixops docs have means to completely automate the process. right now I run their rescue system, transfer a kexec_bundle from another server, do the kexec, ssh back in and run my deploy script
<joepie91> adamt: oh, you work on morph? :P
<Gopal[m]> joepie91: oh?
<Gopal[m]> I was looking for remote builds
<__monty__> Hmm, does krops have remote build?
<Gopal[m]> I don't want to do anything on my pc
<adamt> joepie91: I wrote the original go implementation, yes
<Gopal[m]> or laptop as upload speeds suck :P
<adamt> __monty__: Looking at the nixops/krops comparison, i think the answer is "yes"
<adisbladis> __monty__ I think Krops always copies the expressions to the remote and does all building on the target?
<johanot> Gopal[m]: I use nixops/terraform only for provisioning my hetzner servers. after that I switch to morph.. But I'm (like adamt) probably a bit biased :)
rsoeldner has quit [Remote host closed the connection]
<joepie91> adamt: ah, right :) for me the 'build/DL locally and upload' thing isn't an issue personally since I'm on fast internet, but I suspect it'll be a blocker for many
rsoeldner has joined #nixos
<adamt> joepie91 / Gopal[m]: Yeah, I never even considered how that must be annoying in a cloud environment
<joepie91> don't really have any other criticisms about morph other than the slightly sparse docs (and I will probably make a PR for that)
<joepie91> so far it's done quite well at Just Working
<johanot> joepie91: great!
<adamt> Many of the design decisions in morph are a result of how we deploy actual hardware hosted 20 meters from our office
<adisbladis> Sparse docs? In a Nix project?! I'd never...
<Gopal[m]> yeah, transferring stuff from local to anywhere else is out of the equation.
lunik18 has quit [Read error: Connection reset by peer]
<joepie91> adamt: oh, one small suggestion for improvement: a flag to make a healthcheck fail after N attempts and return a non-zero exit code
<joepie91> for better deployment automation
<__monty__> adamt, adisbladis: Ah thanks, that difference didn't come out of a recent morph v. krops discussion I had.
<exarkun> manveru: What should I make of this? https://gist.github.com/exarkun/aaab98bc897497982101fa3dcb6892a1
<adamt> joepie91: YOu want morph to continue deploying the remaining hosts, or just fail?
<Gopal[m]> can nixops do remote builds?
<adisbladis> __monty__: Don't take my word for it. I'm only using Nixops.
<exarkun> manveru: oh. that I didn't give the attribute a "test" prefix...
lunik18 has joined #nixos
<exarkun> manveru: Thanks!
<joepie91> adamt: I don't actually know what the current behaviour is (does it continue deploying other hosts while one healthcheck is failing?) but I have no specific expectation that that behaviour changes, the only problem I'm running into is that I need to manually ctrl+C when a healthcheck keeps failing
<joepie91> and it can be especially annoying when it causes logspam due to an application error :p
<adamt> joepie91: As a work-around you could use --timeout with some high-ish number for now
<johanot> if the result of a healthcheck is "unknown", it should be considered "failed", imho :)
<joepie91> right, it's not a blocker for me, to be clear
<Gopal[m]> I guess I should just make a script to ssh in, git pull and run `nixos-rebuild` :P
<joepie91> but as I integrate the deployment command into other scripts in the future I expect this to become more annoying :)
<joepie91> so I figured I'd at least mention the usecase
<adamt> joepie91: Morph can't progress to a new host before the current one is considered healthy, but I don't think we would be opposed to a flag specifying the max number of tries before failing
<manveru> exarkun: like this maybe https://www.irccloud.com/pastebin/v5KSs9xQ/test.nix
<exarkun> manveru: cool, thanks
<manveru> exarkun: and yeah, i really wish all lib docs had at least one example of usage :)
<adamt> Also, we could start considering rollbacks if the user could specify conditions for when a rollback should happend (e.g. after n failures, or n seconds of failing checks, &c)
<joepie91> adamt: right. I would find "stops trying after N attempts, then aborts deployment entirely with non-zero exit code" to be completely acceptable behaviour
<joepie91> in that context
<johanot> python question: "does python3Packages.python.withPackages" honor an overlay of "python3Packages" ?
<adisbladis> manveru: Hmm, I love Elixir's doctest
<joepie91> rollbacks would be nice, but - at least right now - for me they aren't a hard requirement
<adisbladis> Imho we should have something similar
shibboleth has joined #nixos
<manveru> adisbladis: that'd be awesome, yeah :)
<manveru> if nix didn't suck so much at printing nix expressions...
<{^_^}> [nixpkgs] @worldofpeace merged pull request #66231 → kdeFrameworks.ktexteditor: compile with editorconfig-core-c → https://git.io/fjQ0T
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjQ1k
ryantrinkle has joined #nixos
<manveru> guess `:p` in nix repl is the best we have right now, i wonder why there's no builtin for that
<adisbladis> manveru: I guess because it forces eval even in nested structures
<manveru> yes, but i consider that a good thing :P
___laika has joined #nixos
<manveru> at least for printing, it's always a PITA to try to track stuff down with `trace` when you only see a level deep
domogled has joined #nixos
* adisbladis usually abuses a combination of builtins.trace & builtins.toJSON
<adisbladis> Which have similar properties as :p
<manveru> plus i want a `debugger` statement that i can just drop somewhere and get a repl
<adisbladis> manveru++
<{^_^}> manveru's karma got increased to 18
<manveru> like... it's 2019 :P
<{^_^}> [nixpkgs] @edolstra merged pull request #66273 → Backport "Remove default value for nixpkgs.system" to release-19.03 → https://git.io/fjQPN
<{^_^}> [nixpkgs] @edolstra pushed 2 commits to release-19.03: https://git.io/fjQ1m
hyper_ch2 has joined #nixos
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #66223 → kdeconnect: Use qt5's mkDerivation → https://git.io/fjQ4r
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjQ1s
<{^_^}> [nixpkgs] @talyz opened pull request #66274 → nixos/gitlab nixos/systemd: Add support for fully priviliged scripts in systemd services, secure secrets in gitlab, and … → https://git.io/fjQ1G
johann__ has quit [Quit: WeeChat 2.4]
___laika has quit [Ping timeout: 246 seconds]
<ajs124> so. gchristensen: The commit that introduced the wireguard restart semantics is 1bff53cb8408f583f4f9a02e487dbe2fa4110271, the motivation seems to be DNS problems. A few commits later (1de35c7f5ecbfe3c5bae252f660068669eb62b7a) we're setting WG_ENDPOINT_RESOLUTION_RETRIES to infinity, which the wg(8) manpage documents as something that should solve the same DNS problems.
<gchristensen> yep
<gchristensen> exactly
<ajs124> If I were to open a PR that reverts the first commit, giving my reasoning about "broken configs should lead to systemd services breaking", would that be merged?
<gchristensen> I think so, yeah
<hyper_ch2> wireguard? dns problems? /me is all ears
<ajs124> Cool, I'll do that soon(ish), then.
<gchristensen> sounds great, thanks ajs124
<hyper_ch2> ajs124: I missed the first part of the conversation. What are you intending to do?
drakonis has quit [Read error: Connection reset by peer]
<ajs124> hyper_ch2: it's in #nixos-chat. I can @ you on the PR, I'll write it up there.
<{^_^}> [nixpkgs] @mgttlinger opened pull request #66275 → ocaml-sat-solvers: init at 0.4 → https://git.io/fjQ1l
drakonis has joined #nixos
<hyper_ch2> ajs124: use @sjau
<hyper_ch2> ajs124: thx
___laika has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
__monty__ has quit [Ping timeout: 258 seconds]
<sakalli> hi, how difficult do you think it would it be to make a package for the davinci resolve. ie like this: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=davinci-resolve
<{^_^}> [nixpkgs] @clefru closed pull request #56133 → emacs-w3m: Update 2013-03-21 -> 2019-02-20 → https://git.io/fhFOr
<joepie91> sakalli: minor nightmare
<joepie91> probably hopeless without an FHS chroot
<joepie91> (buildFHSUserEnv is the name of the nixpkgs utility for those)
<joepie91> looked at this a while ago and gave up back then :P
<ajs124> hyper_ch2, gchristensen: so. turns out, wireguard works different on master, than it does on stable and it's actually oneshot again, already
<gchristensen> yep
<gchristensen> on master it is much more robust to individual peer failures
<ajs124> oneshot units can't be auto-restarted, therefore (probably?) fixing my issue
<sakalli> joepie91: oh, dear... a pity. its a great nle
<gchristensen> right, master already fixes your problem. the problem I'm hoping to get either a bug report or a PR fixing is that 19.03 regressed
<joepie91> sakalli: to be clear, it's probably possible in an FHS
<joepie91> but resolve is full of hard-coded paths
<joepie91> so I would expect to run into some snags while packaging it
<sakalli> joepie91: gotcha. thanks
<laas> does anyone here know how to get the wayland plugin for QT?
<ajs124> gchristensen: ahaha, you actually reverted this on 2019-06-01, so it should be fine on stable, as well. Seems like I was mainly doing wireguard stuff back then and I haven't paid attention to what's happening to the module.
<laas> I looked in the derivation and I see there's an optional module for it which seems to be activated when you use Linux?
<laas> but I don't have it on my system
<gchristensen> ajs124: so what is the current status?
iyzsong has quit [Remote host closed the connection]
<ajs124> gchristensen: let me check ^^
<hyper_ch2> gchristensen: still this issue remains: https://github.com/NixOS/nixpkgs/issues/63869
<{^_^}> #63869 (by sjau, 5 weeks ago, open): Wireguard doesn't bring up peers
iyzsong has joined #nixos
rsoeldner has quit [Remote host closed the connection]
<gchristensen> hyper_ch2: I know
rsoeldner has joined #nixos
<gchristensen> there is no good solution
<gchristensen> that I know of
<hyper_ch2> IMHO changing peer unit files back to retry would solve the problem
<gchristensen> it doesn't, see ajs124's note about the regression on 19.03
<hyper_ch2> it would only restart those and not bring down the while interface
<hyper_ch2> gchristensen: I don't know what ajs124 note is
<gchristensen> okay
<gchristensen> the thing to do is fixing our nsswitch config
<ajs124> gchristensen: the service *does* fail. As luck would have it, we redesigned and redeployed our wireguard infrastracture in exactly that week, that it was on stable.
<gchristensen> oh good
<gchristensen> ajs124: so, all good?
<ajs124> gchristensen: yes. Thanks for your support.
<ajs124> gchristensen++
<{^_^}> gchristensen's karma got increased to 137
<gchristensen> ajs124: great!
<hyper_ch2> gotta catch train again
<{^_^}> [nixpkgs] @mmahut merged pull request #65994 → minizincide: 2.3.0 -> 2.3.1 → https://git.io/fjH1Z
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjQ1o
hyper_ch2 has quit [Remote host closed the connection]
jgt has joined #nixos
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
atlas_ has quit [Quit: ZNC 1.7.3 - https://znc.in]
anrgistan has joined #nixos
__monty__ has joined #nixos
atlas_ has joined #nixos
jgt has quit [Ping timeout: 250 seconds]
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
___laika has quit [Ping timeout: 245 seconds]
veske has quit [Quit: This computer has gone to sleep]
domogled has quit [Quit: domogled]
nbathum has quit [Quit: Lost terminal]
growpotkin has joined #nixos
veske has joined #nixos
rsoeldner has quit [Remote host closed the connection]
<mightybyte> I think I've discovered a mismatch in the way nix binary caches serve nar files compared to how they are created.
<gchristensen> oh?
rsoeldner has joined #nixos
<mightybyte> The cache server uses the store path hash prefix (via `queryPathFromHashPart`) as the hash part of the filename.
<mightybyte> which runs this query on the nix package db
<mightybyte> However, `nix copy` and `nix-copy-closure` both call `addToStore` which uses the hash of the nar file for the filename in the store.
<mightybyte> Am I missing something here?
<gchristensen> no
<gchristensen> actually, yes :)
<gchristensen> the store path hash prefix is used to find the .narinfo file: curl https://cache.nixos.org/$(readlink $(which bash) | cut -d/ -f4 | cut -d- -f1).narinfo
byteflam1 has joined #nixos
johanot has quit [Quit: WeeChat 2.4]
<gchristensen> that then points to a content-addressed .nar file, which is named based on the hash of the file
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/47f648c38ac (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<mightybyte> Then why does queryPathFromHashPart look it up with this query
pi3r has joined #nixos
<mightybyte> "select path from ValidPaths where path >= ? limit 1;"
<gchristensen> I don't know, do you seem to think there is still an inconsistency after this explanation?
veske has quit [Quit: This computer has gone to sleep]
<mightybyte> I don't have your explanation 100% clear in my mind, but it seems like the same thing I was saying.
veske has joined #nixos
<gchristensen> well, nix-serve is well within its right to do something different
<gchristensen> there is no hard rule by how `.nar`s should be named
<gchristensen> the `.narinfo` provides a pointer to where to find the actual .nar
<mightybyte> Right
<pi3r> I am trying to install 'pythonPackages.odo' in nixos 19.03. It is marked as broken in the stable channel so this is what I have tried: https://paste.ee/p/0Mqza
<mightybyte> But nix-serve looks that up in the path column of the DB, which is what seems wrong to me.
<{^_^}> [nixpkgs] @eraserhd opened pull request #66276 → xcbuild: fix darwin build → https://git.io/fjQMl
<gchristensen> I'm not understanding what seems wrong :/
<gchristensen> maybe you could put together a gist or something with actual example values and query results
<pi3r> Does that mean that I am misunderstanding how to install a package from unstable or does it mean that it is still broken even if the 'broken' marker has been removed in unstable.
<mightybyte> gchristensen: Ok. The above was my first stab at doing that. I'll give it another shot.
<manveru> pi3r: try: `nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz -p 'python.withPackages (p: [ p.odo p.dask ])' --run odo`
rsoeldner has quit [Remote host closed the connection]
<manveru> though it seems like the package should have dask in propagatedBuildInputs, so it's a bug i'd say
rsoeldner has joined #nixos
<manveru> also no clue what odo does, but at least it outputs some semi-helpful backtrace after that :)
angristan has joined #nixos
erasmas has joined #nixos
anrgistan has quit [Ping timeout: 252 seconds]
<pi3r> manveru: thanks !
<niso> uhm, how would i get the last element of a list? (aka. builtins.head on a reversed list)
angristan has quit [Ping timeout: 246 seconds]
<gchristensen> builtins.tail?
<manveru> niso: lib.last
<gchristensen> oops duh
<gchristensen> :|
<adamt> gchristensen: call builtins.tail recursively until the length is 1
<gchristensen> :x
<manveru> never mix up your cdr and cars :)
<adamt> niso: There's a nix file for lists, attrs, strings, .. like this one: https://github.com/NixOS/nixpkgs/blob/master/lib/lists.nix
<adamt> I usually look in them when I need something. :-)
<niso> thanks!
* niso wasn't aware of lib
rsoeldner has quit [Remote host closed the connection]
rsoeldner has joined #nixos
<infinisil> Note that lists in Nix are arrays and therefore have different performance characteristics than in Haskell
<gchristensen> mightybyte: sorry, I need actual values
<gchristensen> and like, what is actually in the .narinfo etc.
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/38f3c6afa11 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<exarkun> is attrset iteration order specified? lexicographical on attribute name?
sigmundv has quit [Ping timeout: 245 seconds]
pietranera has quit [Quit: Leaving.]
<gchristensen> right
<exarkun> thanks
<adamt> infinisil: If performance is really relevant, use runCommand :P
<manveru> adamt: real men only use `derivation` :)
wildtrees has joined #nixos
<adamt> manveru: I'm sure it's funny, but it's way above my skills to understand it. :-(
<manveru> adamt: it's really not that difficult, at least way easier to understand than mkDerivation i think
<manveru> because it does almost nothing
<exarkun> manveru: Here's where I ended up, fwiw - https://github.com/PrivateStorageio/PrivateStorageio/blob/133.nixos-service-module/nixos/tests.nix (I couldn't get mkDerivation to be happy w/ just `runCommand`).
<infinisil> Yeah, it's pretty much just `builder = "/path/to/executable/that/writes/to/$out"`
<adamt> Ah, I've never seen what is apparently the most imported built-in function before. :-P
veske has quit [Quit: This computer has gone to sleep]
<adamt> s/imported/important/
Okinan has joined #nixos
jgt has joined #nixos
rsoeldner has quit [Ping timeout: 252 seconds]
<thoughtpolice> mightybyte: It doesn't really matter what particulars any cache server uses for the .nar names, tbh. The .narinfo file always points you in the right direction; in the case of nix-serve (and Eris), they treat the store path prefix as both the name of the .narinfo *and also* the .nar file itself, but this is just for simplicitly
<thoughtpolice> The actual binary cache server, which is NOT an actual application, but just an S3 bucket, can use whatever layout it wants, similarly. Nix does not care what the .nar is actually named, it will just follow whatever is in the .narinfo
kbZ has left #nixos ["The Lounge - https://thelounge.chat"]
<{^_^}> [nixpkgs] @ryantm merged pull request #66108 → python37Packages.kubernetes: 9.0.0 -> 10.0.0 → https://git.io/fjQvC
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fjQMh
jgt has quit [Ping timeout: 250 seconds]
<{^_^}> Channel nixpkgs-19.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/f8096b25f80 (from 87 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-19.03-darwin)
<{^_^}> [nixpkgs] @vbgl opened pull request #66279 → smplayer, smtube: fix execution (“Could not find the Qt platform plugin "xcb"”) → https://git.io/fjQDf
rsoeldner has joined #nixos
<thoughtpolice> mightybyte: So yes, nix-serve and nix copy may not have consistent conventions for the names of .nar files, this is possible. But it doesn't really matter since Nix doesn't care. You could also change nix-serve so that it was consistent with the names in cache.nixos.org, as well, e.g. based on the SHA256 of the .nar file rather than the store prefix
<mightybyte> thoughtpolice: Ahh, ok.
<thoughtpolice> But the specifics of how the .nar name itself is computed are irrelevant
<thoughtpolice> The only thing that matters is that the .narinfo names are consistent
<mightybyte> Got it
<mightybyte> That answers my question. Thanks!
<{^_^}> [nixpkgs] @mmlb opened pull request #66280 → pythonPackages.git-revise: init at 0.4.2 → https://git.io/fjQDU
<thoughtpolice> 👍
<gchristensen> I thought I said that :p
<mightybyte> gchristensen: Yeah, you probably did. I'm just slow. :P
<gchristensen> no worries, glad its clear
<gchristensen> thoughtpolice++
<{^_^}> thoughtpolice's karma got increased to 15
<thoughtpolice> (I think I also remember figuring this out when I wrote Eris, since I selfishly copied the rules from nix-store, and had to convince myself it didn't matter, either)
<mightybyte> Ahhh, yep
_kwstas has joined #nixos
<adamt> Regarding caches/substituters, is there any plans on making the negative cache duration configurable? It's hardcoded to 60s currently. Or should i just go PR it already?
<thoughtpolice> I thought we only track TTLs for narinfo files?
<thoughtpolice> Does `--option narinfo-cache-negative-ttl 30` not do the trick
<thoughtpolice> Well, I guess if we don't upload the .nar's before the .narinfo's, then there's a race there where the .narinfo may exist and the .nar doesn't
<thoughtpolice> And maybe Nix tracks that 404, as well. Not sure
Guest1 has joined #nixos
<adamt> Uh, maybe? Our issues is that we have a private substituter, and it would make things easier to just add it to all our laptops, but then we would run into timeouts when not on the private network, so we considered just making the domain resolvable from the outside, but always return bogus
<gchristensen> good thing we don't write the narinfo before writing the nar :) https://github.com/NixOS/nix/blob/56df30cd3f89f76f608b469044c17a42cdb2b338/src/libstore/binary-cache-store.cc#L203
<thoughtpolice> mightybyte: Also thinking about it more, I don't think it's reasonably possible for the nix copy filename layout to work easily with eris/nix-serve without keeping state around... Think about it: .narinfo and .nar are uploaded at once by Nix, so it can upload them both with the right names
<adamt> But we also want to avoid long negative cache hits in case we just forgot to open the VPN tunnel
Guest1 is now known as fvh
<thoughtpolice> But when you *fetch* the .nar -- let's say it was the SHA256 of the .narinfo or whatever -- then how does the handler for the .nar file know what path to fetch from the store?
<thoughtpolice> It would have to keep some kind of reverse mapping
<{^_^}> [nixpkgs] @worldofpeace opened pull request #66282 → tilix: 1.9.3 -> 2019-08-03 → https://git.io/fjQD8
<gchristensen> content addressability solves so many problems
jgt has joined #nixos
<thoughtpolice> adamt: I think narinfo-cache-negative-ttl (which is currently 1 hour, IIRC) is basically what you want. Don't quote me on this but I think Nix only tracks the TTLs of the narinfo files, nothing else matters. So you can just configure a low TTL and be on your way.
<thoughtpolice> One unfortunate thing is that the ttl setting is global, you can't have per cache settings. This means you will also hit cache.nixos.org more frequently, too.
<thoughtpolice> (In the negative case, that is)
drakonis has quit [Quit: WeeChat 2.4]
drakonis_ has joined #nixos
<fvh> hi guys, can you help me out. I installed recently nix system on Fedora and noticed that I'm not able to access `nix-env` after reboot and need I need to install it again. On second time it's very quick install but I want to know how to fix it and make persistent? Maybe there is some magic variable?
<adamt> thoughtpolice: Annoying it's not per cache, but I'll try narinfo-cache-negative-ttl. Do you have any idea what is the best way to fail when hitting the (non-existing) cache from the outside? connection refused? 403? 404? 5xx?
<thoughtpolice> adamt: I can tell you that the official cache and the third party cache servers do use 404. :) But I am not sure if Nix treats all non-200s etc, as equivalent.
<thoughtpolice> I don't think it does.
<thoughtpolice> Errr, I think *it does* treat all those as equivalent, I mean
<{^_^}> [nixpkgs] @worldofpeace opened pull request #66283 → ideogram: init at 1.2.2 → https://git.io/fjQDB
<thoughtpolice> fvh: The installer will normally add something to your local .bashrc/profile or whatnot, perhaps that was not added?
<thoughtpolice> (I cannot check at the moment since I'm not sitting at my desktop with my Ubuntu/Nix machine)
ubert has quit [Quit: Leaving]
<gchristensen> fvh: which version of fedora?
emilsp has quit [Quit: bye]
emilsp has joined #nixos
<adamt> thoughtpolice: I think there's an internal hardcoded negative TTL of 60s for one of the cases, but I can't remember which :-) Thanks for the help so far
<fvh> @thoughtpolice after install it asks to source `. /home/fvh/.nix-profile/etc/profile.d/nix.sh` but I'm getting `.nix-profile/etc/profile.d/nix.sh:stat:15: %u: no such file or directory Nix: WARNING: bad ownership on /nix/var/nix/profiles/per-user/fvh, should be 1000` I checked and it equals to `1000` but nix script on if statement `%u` fails. Is t
<fvh> hat possible it's a bug? Running Fedora 30 / 5.2.5-200
<fvh> gchristensen v30
<thoughtpolice> Hmmm. Maybe. gchristensen would certainly know more
<thoughtpolice> adamt: Yeah if there's a fixed timeout IDK about that, would be interested in knowing. (Maybe like, nix-cache-info or something?)
<thoughtpolice> Which you might want to always serve, even if all non-internal requests get sinkholed into a 404. (I do know nix does track binary cache endpoints in the .db based on nix-cache-info, but can't remember the specifics of what it tracks)
<gchristensen> fvh: I'll check the install matrix here in about 30min.
<{^_^}> [nixpkgs] @sam-willis opened pull request #66284 → added QT_PLUGIN_PATH env to mixxx package → https://git.io/fjQDV
<{^_^}> [nixpkgs] @worldofpeace merged pull request #66256 → cargo-bloat: 0.7.2 -> 0.8.2 → https://git.io/fjQwx
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjQDw
<fvh> gchristensen sorry not yet familiar with ecosystem, you have some kind of build matrix for different versions/platforms on CI?
<adamt> Yeah, I figured the nix-cache-info would be required, but if things like the priority is added to a DB it might get messy, since the cache.example.com will sometimes be broken on purpose, and sometimes working as it should
<adamt> Damn secrets, would be so easy to just make the cache public it if wasn't for them.
byteflam1 has quit [Ping timeout: 244 seconds]
<thoughtpolice> adamt: An alternative is to use netrc to add authentication to your cache
<gchristensen> fvh: right, I install Nix 3 ways on 24 distros
<thoughtpolice> Though that requires a whole lot of extra shit to keep automated outside of a VPN
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/f8096b25f80 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<thoughtpolice> "All developers copy/paste this one password into /etc/nix/netrc!"
<Izorkin> please check pr #65222
<{^_^}> https://github.com/NixOS/nixpkgs/pull/65222 (by Izorkin, 2 weeks ago, open): mariadb: update packages
<fvh> gchristensenals notice, after even command failed, I can start using nix-env and other commands until next reboot
<adamt> thoughtpolice: Heh, it's not more difficult than all people having to add our cache as a trusted substituter :P
* thoughtpolice quietly whispers: "Eris supports netrc natively out of the box if you're running your own server"
<adamt> We have a local ceph setup, so we'll probably migrate to nix copy'ing into an S3 bucket for redundancy, instead of using nix-serve as we do now, sorry. ^^
<adamt> Still, netrc might be a good solution. Oh man, so many things to fix that doesn't provide measurable business value.
judson__ has joined #nixos
judson has joined #nixos
_kwstas has quit [Quit: _kwstas]
palo has quit [Ping timeout: 248 seconds]
veske has joined #nixos
_kwstas has joined #nixos
<{^_^}> [nixpkgs] @vbgl merged pull request #66275 → ocaml-sat-solvers: init at 0.4 → https://git.io/fjQ1l
<{^_^}> [nixpkgs] @vbgl pushed commit from @mgttlinger to master « ocaml-sat-solvers: init at 0.4 (#66275) »: https://git.io/fjQD9
oida has quit [Remote host closed the connection]
mexisme has joined #nixos
chloekek has joined #nixos
palo has joined #nixos
<{^_^}> [nixpkgs] @teto pushed 3 commits to master: https://git.io/fjQDN
<{^_^}> [nixpkgs] @teto merged pull request #66142 → qdirstat: 1.5.90 -> 1.6 → https://git.io/fjQk7
<{^_^}> [nixpkgs] @worldofpeace opened pull request #66285 → mixxx: drop custom wrapper → https://git.io/fjQDx
drakonis has joined #nixos
Czen has quit [Remote host closed the connection]
erba has quit [Quit: WeeChat 2.4]
jb55 has joined #nixos
mexisme has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @umazalakain opened pull request #66286 → coq-equations: 1.2-beta2-8.8 -> 1.2-8.8 → https://git.io/fjQDh
_kwstas has quit [Quit: _kwstas]
Czen has joined #nixos
veske has quit [Quit: This computer has gone to sleep]
jslight90 has joined #nixos
byteflam1 has joined #nixos
<jslight90> I am having some difficulty getting qemu emulation working to build aarch64 systems with nixops. Can anyone assist me with this?
adamt has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @adisbladis merged pull request #65874 → emacs-packages: Clean up redundant packages & allow overriding attrsets → https://git.io/fjHID
<{^_^}> [nixpkgs] @adisbladis pushed 21 commits to master: https://git.io/fjQyY
<exarkun> jslight90: hey me too.
joshuagl has quit [Quit: Textual IRC Client: www.textualapp.com]
<infinisil> ,query {^_^} ,expand #nixos jslight90
<infinisil> Haha
<infinisil> ,expand for transparency
<{^_^}> ,expand #<channel> <user>: Anonymously send "Please expand your question to include more information, this will help us help you :)" to a user in a specific channel (only works in PMs)
<{^_^}> jslight90: Please expand your question to include more information, this will help us help you :)
___laika has joined #nixos
<ar> i wonder how often after something like this people ask {^_^} their question on query
<fvh> is there any guide on how to setup hydra to build binary for me not just using that I built locally?
<jslight90> According to https://nixos.wiki/wiki/NixOS_on_ARM#Crosscompiling, it seems that you deploy the module made by @clever to an x86 or amd64 system to enable emulated building.
<infinisil> ar: Hasn't happened so far at least
<jslight90> When I do this, it still seems to be attempting to cross compile the packages.
<infinisil> (And it wouldn't matter anyways)
tkral has quit [Ping timeout: 272 seconds]
<exarkun> jslight90: Did you tell your nix that it is has the aarch64 capability?
tkral has joined #nixos
<exarkun> jslight90: "extra-platforms" - https://nixos.org/nix/manual/#ch-files - I think
psyanticy has quit [Quit: Connection closed for inactivity]
noogie has joined #nixos
___laika has quit [Ping timeout: 245 seconds]
linarcx has joined #nixos
byteflam1 has quit [Ping timeout: 245 seconds]
<jslight90> exarkun: I have added @clevers repo (https://github.com/cleverca22/nixos-configs) as a git submodule to my nixops config. I then add `qemu-user.aarch64 = true;` to the building system to enable it, which has `nix.supportedPlatforms = (optionals cfg.arm [ "armv6l-linux" "armv7l-linux" ])
<jslight90> ++ (optional cfg.aarch64 "aarch64-linux");`.
atlas_ is now known as Guest47918
Guest47918 has quit [Killed (hitchcock.freenode.net (Nickname regained by services))]
atlas- has joined #nixos
atlas_ has joined #nixos
<exarkun> jslight90: hm I guess that seems plausible to me
byteflam1 has joined #nixos
<exarkun> jslight90: this is a different path than I have explored
Thra11 has joined #nixos
tkral has quit [Ping timeout: 248 seconds]
andymandias has quit [Quit: ZNC 1.7.3 - https://znc.in]
<Thra11> If you use channels, does it keep a complete copy of nixpkgs somewhere on the machine?
<yorick> Thra11: yes
<yorick> just a checkout, not the entire git history
camal has joined #nixos
<Thra11> yorick: Where does it put it? Is it in the store or in /nix/var?
<yorick> Thra11: it's in the store
<yorick> Thra11: also /nix/var/nix/profiles/per-user/root/channels/nixos
<yorick> (/nix/var/nix/profiles/per-user/root/channels/nixos -> /nix/store/pf4awg063l3abj5xssyz0cw3fl1rk6ad-nixos-19.09pre181008.eccb90a2d99/nixos)
byteflam1 has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #66285 → mixxx: drop custom wrapper → https://git.io/fjQDx
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjQy0
camal is now known as plain
plain has quit [Quit: leaving]
ryantrinkle has quit [Ping timeout: 258 seconds]
pi3r has quit [Quit: Leaving]
justanotheruser has quit [Ping timeout: 244 seconds]
linarcx has quit [Ping timeout: 246 seconds]
WhittlesJr has quit [Ping timeout: 260 seconds]
andymandias has joined #nixos
<joepie91> !tofu
<joepie91> ,tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<joepie91> can never have enough tofu
<{^_^}> [nixpkgs] @mgttlinger opened pull request #66287 → pgsolver: init at 4.1 → https://git.io/fjQyg
<Thra11> yorick: cool. thanks
andymandias has quit [Client Quit]
<asymmetric> is there a way to avoid rebuilding the xml manual when doing a nixos-rebuild?
<asymmetric> i'm working on a module and i don't need the manual and it takes time
<jslight90> exarkun: I may have figured it out. I changed `nixpkgs.crossSystem.config = "aarch64-unknown-linux-gnu";` to `nixpkgs.localSystem...`. I'll let you know if it works.
<infinisil> asymmetric: documentation.enable = false
<infinisil> Or documentation.nixos.enable = false
andymandias has joined #nixos
<infinisil> (Recommend the latter)
andymandias has quit [Client Quit]
<asymmetric> right, makes sense, thx!
pie_ has joined #nixos
Lukas4452 has quit [Ping timeout: 248 seconds]
andymandias has joined #nixos
andymandias has quit [Client Quit]
Lukas4452 has joined #nixos
andymandias has joined #nixos
<averell> There is a wine (defaults to 32bit) -> gstreamer (plugins-bad) -> opencv -> cudatoolkit (impossible to build on i686) dependency if cudaSupport=true. Where should that be addressed? opencv=opencvWithoutCuda in gstreamer seems a bit much.
<infinisil> averell: I think cuda is nvidia specific
<infinisil> So I'd do what you said there
<averell> always build gstreamer without cuda support for opencv?
<averell> I'll make a PR. I don't really understand how to query current platform build, otherwise opencv could just set the cudaSupportFlag &&= platform = x86_64
argarg has joined #nixos
kfound has quit [Ping timeout: 272 seconds]
<infinisil> Maybe yeah
<infinisil> And I guess nvidia could also be used on i686, soo
<infinisil> Though I gotta admit, I don't have much of a clue what each of those packages does
byteflam1 has joined #nixos
<growpotkin> Anybody 'round these parts know about plugging ZNC into a notification daemon like Dunst?
reanimus has joined #nixos
<ToxicFrog> I've never used Dunst, but I did something similar with Munin by giving it an alerting path that wrote alerts to a "file" that was actually a fifo managed by ii, which then passed it on to IRC
<growpotkin> That sounds like just the thing I need.
<ToxicFrog> Or, wait. Is the goal Dunst generates notifications -> ZNC displays them, or vice versa?
<growpotkin> Visa Versa
<ToxicFrog> Oh
<ToxicFrog> Then what I described is the opposite of what you need
<exarkun> is there a coverage measurement tool for nix?
<growpotkin> So when I get a DM or something with ZNC I'd like to pop up a notification (similar to those I get when WeeChat or some similar client is up)
<growpotkin> exarkun: could you give a use case example?
<exarkun> growpotkin: I wrote some nix code and then I wrote some tests for that nix code and now I want to know if I wrote tests for _all_ of that nix code.
<growpotkin> exarkun: Code coverage is not something I conventionally consider in a package manager
<infinisil> growpotkin: You run znc on your local machine and want to receive notifications from your local machine?
<exarkun> maybe I mean "the nix expression language", not "nix".
<exarkun> the language and the package manager kinda sorta seem to have the same name
<argarg> Quick question, running RoonServer on a nixos server and it's unable to write to the backup directory (unless that directory is set to /tmp) and we can't figure out why. Permissions appear to be correctly set to the roon-server user, and when you su as the roon-server user you can touch files in the backup directory
<infinisil> exarkun: I doubt there is something like that, but would be cool if there was
logand has joined #nixos
<growpotkin> infinisil: yeah, I just run ZNC as a daemon and use WeeChat as a client on the same machine. It's just to keep logs and things like that even when I close my clients. But I'd like to get notifications for my channels straight from ZNC even if my client is closed.
<growpotkin> exarkun: OH
<argarg> if you're using WeeChat, why even bother with ZNC, the WeeChat Relay protocol is pretty nice
<growpotkin> exarkun: I was imagining that you were trying to test a package-set or something
<exarkun> growpotkin: understandable
<ToxicFrog> argarg: weechat doesn't do weechat-to-weechat relays for some baffling reason, so if you want to use weechat as the frontend you have to use ZNC or weechat in its ZNC-alike rfc1459relay mode anyways.
<growpotkin> argarg: I had no clue that WeeChat had a relay protocol. A buddy just suggested ZNC and I popped up the NixOS module for it last night.
<ToxicFrog> If you're ok using one of the other frontends weechat is really good, though.
<argarg> ToxicFrog: oh right I forget that it's weird like that
<ToxicFrog> My setup is weechat-in-tmux on the server, with `ssh -t tmux attach` as the "frontend", and weechatdroid on my phone for notification relaying.
<infinisil> growpotkin: You might be able to use the "Custom URL GET requests" with the push module: https://github.com/jreese/znc-push/#znc-push
<growpotkin> ToxicFrog: I tried the ol' "WeeChat in Screen" thing last night but I was not all that impressed :(
<ToxicFrog> Wait, hang on, I missed the "use weechat as a client on the same machine" part
<growpotkin> infinisil: thank you
<infinisil> growpotkin: Make it do requests to localhost, where a systemd socket listens and executes a notify-send for every connection
<ToxicFrog> That's really confusing, what's wrong with screen/tmux?
byteflam1 has quit [Ping timeout: 258 seconds]
<growpotkin> I was using our NixOS module and couldn't decipher how to connect to it as a normal user. I gave up pretty quickly and dove into ZNC (honestly I didn't give it an extensive shot)
<growpotkin> infinisil: Thank You!
<infinisil> argarg: Regarding the roon server thing, you gotta give a bit more information, errors and configs and such, hard to help otherwise
<ToxicFrog> growpotkin: so, it's been a while since I used screen, but I remember it working basically the same as tmux, i.e. you just run "screen" from your terminal and it gives you a shell inside screen, and then you do whatever.
<argarg> infinisil: sure thing. For logs, we can't find anything solid. reanimus would have the configsm, it's their box. What else can I grab for you?
<ToxicFrog> And then to reattach you "screen -dR" or "tmux attach".
<ToxicFrog> There's no separate daemon you have to start up or anything.
<growpotkin> On a somewhat related note: Does anybody use Nix to configure WeeChat? I have been using the `init` module option to do a startup script and launching with `weechat -t` to avoid using existing configs; but maybe there's another way.
<growpotkin> ToxicFrog: I might give that another try, that's convenient because my notifications are already set up with WeeChat
<ToxicFrog> growpotkin: there's even tmuxinator if you want a declarative tmux configuration
<infinisil> argarg: How are you running roon-server? With the new NixOS module?
<reanimus> infinisil: yes
<infinisil> How did you configure the backup directory?
<argarg> with the Roon GUI
<infinisil> And the setting did apply? Is there some config file you can check to make sure?
<reanimus> infinisil: the app's configuration is largely handled directly through its UI. we installed roon, connected to the core and pointed it to the backup using its internal backup mechanism
<growpotkin> ToxicFrog: I might try that. Honestly I haven't used Tmux for a couple of years. I started using XMonad and I don't usually need to SSH that much so I didn't have a huge need for Tmux anymore.
<growpotkin> ToxicFrog: I gotta shake the rust off a bit haha
<infinisil> reanimus: argarg: Ah, the problem might be that roon-server is running with DynamicUser
<argarg> infinisil: we were able to read from the configured path to restore a previous backup.
<reanimus> oh?
tomas1 has joined #nixos
<reanimus> infinisil: this error also occurred when we made the backup dir have 777 perms
<infinisil> Which error?
<argarg> "Backup Failed at <time> / Backup directory is not available"
<argarg> it doesn't show in logs, just in the GUI when I try to force a backup
<reanimus> infinisil: we also did an strace during this and saw a line where it attempts to unlink a file in there and gets EROFS as a result
<infinisil> That makes me think that it's trying to back up to the /nix/store, which is a RO filesystem
<ToxicFrog> growpotkin: fair enough, I practically live in the terminal so I'm tmuxing all the time
<infinisil> Where did you configure the backup path to be?
<reanimus> that was my guess
<reanimus> /External/Backups/Roon
<argarg> if we set it to /tmp/something it works fine
<fvh> I'm trying to use nixops to deploy my package to vbox and ec2 and always get `SSHConnectionFailed: unable to start SSH master connection to root@<ip>` but I can connect easily from terminal, what could be the reason for this? I have `services.openssh.enable = true;` any hints?
<infinisil> What if you made /External/Backups/Roon all have the same permissions as /tmp/something
<argarg> oh, so the /tmp/something isn't in /tmp when I just ls it
<argarg> so it's probably the /tmp inside the store?
<infinisil> Huh
* infinisil checks the roon-server nix build file
<argarg> thanjs
<argarg> k*
<infinisil> argarg: The strace should show the full path though
<infinisil> I think
<argarg> it showed it just as /External...
<argarg> no extra paths
drakonis_ has quit [Ping timeout: 250 seconds]
<reanimus> infinisil: [pid 18245] unlink("/External/Backup/Roon/.tmp-_roon_backup_root_") = -1 EROFS (Read-only file system)
<infinisil> Oh
<infinisil> I think it's DynamicUser
Jackneill has quit [Remote host closed the connection]
<infinisil> Because
<infinisil> "If DynamicUser is enabled, PrivateTmp is implied"
<infinisil> And `ProtectSystem=strict` and `ProtectHome=read-only` as well
<infinisil> From `man systemd.exec`
<pie_> qyliss: i might have given myself a weird problem. to fully evaluate my entire config i need python to run a python script i wrote that finds some stuff and passes it through getEnv, but on a fresh system presumably you might not be able to do that yet? any ideas?
growpotkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
<infinisil> So /tmp is an empty new fs for the service
<reanimus> infinisil: :(
<infinisil> While pretty much everything else is read-only
<argarg> makes sense.
<reanimus> so do we override the derivation and make it non-dynamic user?
<reanimus> or can we whitelist paths?
<infinisil> Yeah you can whitelist paths
<reanimus> sweet
<qyliss> pie_: nix-shell shebang
<infinisil> I think um
<pie_> qyliss: ok i wasnt sure if there was some reason that wouldnt work
<qyliss> as long as you point it to the right nixpkgs
<pie_> qyliss: because you said not to use that in `activate`
<infinisil> reanimus: argarg: ReadWritePaths=
<infinisil> Should work
<qyliss> pie_: I could have activate use the local tree if I wanted to
<argarg> infinisil: Thanks :)
<qyliss> that would be fine
<qyliss> It just can't rely on my normal NIX_PATH that points into the store
<reanimus> infinisil: related q: how do we manage filesystem perms for this with dynamicuser
<pie_> qyliss: it makes some sense i just havent thought about it deeply enough yet to play through the scenarios
<qyliss> I just figured all this out through trial and error
<infinisil> reanimus: Yeah so actually I think DynamicUser isn't really a good fit when the service needs to interact with things outside of itself
<infinisil> Because I don't think there's a way to deal with this properly regarding permissions
<reanimus> that's what i figured
<reanimus> roon manages library directories and such, so i don't know if dynamicuser makes sense for it
<{^_^}> [nixpkgs] @schmittlauch opened pull request #66289 → hedgewars: 0.9.25 -> 1.0.0-beta1 → https://git.io/fjQST
<reanimus> a lot about roon doesn't play nice with the way nix likes to do things haha
<infinisil> Hehe yeah
<infinisil> Hm, backups with DynamicUser..
<infinisil> What should the owner be of backup files?
<reanimus> roon-server
<reanimus> the user that runs the daemon
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/55aa81a5c5d (from 63 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
ixxie has joined #nixos
<infinisil> Ah, so actually that works no problem then right?
<reanimus> will the UID stay stable?
<reanimus> if so yes
<jslight90> exarkun: The change I mentioned about 45 minutes ago worked for qemu building aarch64 systems.
<reanimus> i imagine it will though
<reanimus> let's try it
<exarkun> jslight90: neat. Can you still build x86_64 derivations?
<exarkun> Or, rather, can you still build packages for the local machine?
<infinisil> reanimus: I don't think so..
<jslight90> exarkun: Yes.
<exarkun> I would have guessed that telling nix the localSystem is aarch64 would mess with that
<exarkun> So now I wonder what "localSystem" really means
<infinisil> Reading the DynamicUser section in `man systemd.exec` it says uid's get recycled every time the service has run
<{^_^}> [nixpkgs] @worldofpeace closed pull request #66284 → added QT_PLUGIN_PATH env to mixxx package → https://git.io/fjQDV
<reanimus> ugh
<infinisil> "Care should be taken that any processes running as part of a unit for which dynamic users/groups are enabled do not leave files or directories owned by these users/groups around, as a different unit might get the same UID/GID assigned later on, and thus gain access to these files or directories."
<reanimus> :(
<infinisil> Yeah so that ain't gonna work
byteflam1 has joined #nixos
<reanimus> I may disable dynamicuser on the service then
<jslight90> I only have that option enabled for NixOps systems that are running on aarch64 processors. I then have a separate builder system with the QEMU emulation enabled for building aarch64 packages.
<reanimus> it may be worth making that change overall
<infinisil> reanimus: Yeah might be best
<infinisil> reanimus: Would be cool if you could write a short comment in #65698 for this, describing why DynamicUser doesn't work here
<{^_^}> https://github.com/NixOS/nixpkgs/pull/65698 (by Infinisil, 6 days ago, open): [RFC] Away from static id's for services
<jslight90> So the builder system will use native building for x86 or amd64 systems, and emulated building if the system's localSystem is configured.
<exarkun> jslight90: ooooohhhhh I see
<exarkun> jslight90: _That_ makes sense.
growpotkin has joined #nixos
karetsu has joined #nixos
<exarkun> guess this is what I should try next time I get around to screwing with arm
<jslight90> exarkun: Since I'm doing this with NixOps, the command looks like: `nix-shell --run "nixops deploy -d rpi-tester"`.
karetsu has quit [Client Quit]
bakakuna has joined #nixos
byteflam1 has quit [Ping timeout: 246 seconds]
<infinisil> reanimus: Thanks :)
<reanimus> also, side note, when we tried to do a su to roon-server, the path for nologin was wrong for it
<infinisil> wrong as in?
<reanimus> [root@Requiem:/]# sudo su roon-server
<reanimus> Cannot execute /sbin/nologin: No such file or directory
<infinisil> Hm odd
bakakuna has quit [Client Quit]
<reanimus> i would guess systemd sets it assuming that path works
bakakuna has joined #nixos
zupo has joined #nixos
Shoubit has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @schmittlauch opened pull request #66290 → [backport] hedgewars: 0.9.25 -> 1.0.0-beta1 → https://git.io/fjQS0
byteflam1 has joined #nixos
ris has joined #nixos
gxt has joined #nixos
fresheyeball has quit [Quit: WeeChat 2.4]
<jslight90> exarkun: Interestingly, if I try to build as root, it doesn't use the nix-daemon and fails to utilize the emulation.
bakakuna has quit [Ping timeout: 248 seconds]
Neo-- has quit [Ping timeout: 250 seconds]
byteflam1 has quit [Ping timeout: 268 seconds]
<exarkun> jslight90: Hm I can almost imagine why that might happen but I don't really know enough to say anything for sure. I bet there's some way to fix it, though.
<{^_^}> [nix] @grahamc pushed to master « fixup: docs for post-build-hook »: https://git.io/fjQSV
<exarkun> On a completely different topic, I wonder if anyone knows what tricks to use to get CircleCI caching to play nicely with /nix/store?
<exarkun> I thought it was working fine for a while but suddenly today it is spewing errors about things in .links not existing and breaking nix-build.
Florian[m] is now known as florianjacob
gxt has quit [Ping timeout: 260 seconds]
bakakuna has joined #nixos
Lukas4452 has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @bjornfor pushed 3 commits to master: https://git.io/fjQSo
shandogs has joined #nixos
Lukas4452 has joined #nixos
ThatDocsLady has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #65764 → bitwarden: init at 1.15.2 → https://git.io/fj9wm
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjQS6
byteflam1 has joined #nixos
bakakuna has quit [Quit: bakakuna]
mexisme has joined #nixos
shandogs has quit [Ping timeout: 246 seconds]
growpotkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
<{^_^}> [nixpkgs] @reanimus opened pull request #66291 → roon-server: disable DynamicUser → https://git.io/fjQS1
nfip^ has quit []
<eraserhd> I have symlinked ~/.nix-defexpr to a git checkout of nixpkgs, and _something_ keeps removing the symlink, making it a directory, and adding channels to it. Does anybody know what?
<eraserhd> I'm using nix-darwin, though I'm not sure that matters.
growpotkin has joined #nixos
erk^ has joined #nixos
mexisme has quit [Ping timeout: 245 seconds]
<__monty__> Where do options that would ordinarily go in mkinitcpio.conf go in nixos? I need keyboard, encrypt and lvm2 hooks because of dm-crypt.
<reanimus> so i opened that PR for removing dynamicuser but other than removing the two fields in the systemd unit is there anything else i need to do? i think i may need to add the id to nixos/modules/misc/ids.nix as well, no?
<__monty__> Also, where do fstab options go? hardware-configuration.nix says not to touch because it's generated.
_reanimus_ has joined #nixos
<jslight90> exarkun: Setting NIX_REMOTE=daemon allows root to utilize the emulation.
reanimus has quit [Ping timeout: 276 seconds]
sakalli has quit [Ping timeout: 268 seconds]
tkral has joined #nixos
logzet_ has quit [Ping timeout: 264 seconds]
justanotheruser has joined #nixos
<__monty__> I guess I *can* and *should* edit hardware-configuration.nix for these things?
<infinisil> __monty__: There should be no problem with putting filesystem options in configuration.nix
<__monty__> So I shouldn't touch hardware-configuration.nix?
<infinisil> Manually editing hardware-configuration.nix means that you either lose those edits when you regenerate it, or you can never regenerate it again (unless you somehow keep track of the changes you made and reapply them every time)
<infinisil> Yeah I wouldn't touch it
zeta_0 has joined #nixos
<__monty__> It seems LVM-on-LUKS is supported ootb but LVM-on-plain-dm-crypt is not? Anyone have an idea of how to do this?
selfsymmetric-mu has quit [Remote host closed the connection]
<petercommand> why doesn't nix allow network access when building packages?
ambro718 has joined #nixos
amf has quit [Quit: WeeChat 2.5]
<petercommand> or is it possible to enable network access
<__monty__> petercommand: The sandbox doesn't allow it unless you use one of the function that allow specifying a hash I believe. It's to keep builds pure/reproducible.
vesper11 has quit [Ping timeout: 258 seconds]
glittershark has joined #nixos
<glittershark> how do I take a directory returned by something like fetchFromGithub and get its subdirectory?
<petercommand> __monty__: hmm..
<__monty__> glittershark: Do you mean listing the directory?
<infinisil> glittershark: "${fetchFromGitHub { ... }}/subdirectory"
<glittershark> oh it just returns a string
<glittershark> cool
<infinisil> Well, not exactly no, but close enough :P
<glittershark> haha sure
<glittershark> dynamic types are dynamic
lambda-11235 has joined #nixos
<{^_^}> [nixpkgs] @averelld opened pull request #66292 → opencv: dont try cuda on 32 bit → https://git.io/fjQ98
zeta_0 has quit [Remote host closed the connection]
selfsymmetric-mu has joined #nixos
<infinisil> If anybody is interested: string interpolation works on not only strings, but also attribute sets. Namely it will take the `outPath` attribute as the string value
<selfsymmetric-mu> How can I install the unstable version of `emacs-libvterm` in my Emacs? The one from 19.03 crashes me.
<selfsymmetric-mu> Here is how I currently install it: https://gist.github.com/228a5660409bf7f7c9801057727c4872
<infinisil> > "${{ outPath = "Hello, "; }} world"
<{^_^}> "Hello, world"
<infinisil> And derivations are attributes which contain their resulting path in `outPath`
<infinisil> s/attributes/attribute sets/
_reanimus_ has quit [Quit: Logging off...]
reanimus has joined #nixos
<{^_^}> [nix] @grahamc opened pull request #3031 → conf: low-speed-limit: tunable → https://git.io/fjQ9B
mexisme has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @astro opened pull request #66294 → firestarter: init at 1.7.3 → https://git.io/fjQ9E
<petercommand> __monty__: how are the fetch utilities allowed network access?
angristan has joined #nixos
mexisme has quit [Ping timeout: 276 seconds]
<simpson> petercommand: They promise to fetch a specific object, and the object's hashes are fixed ahead of time. These are called "fixed-output derivations" in the manual, IIRC.
_kwstas has joined #nixos
_kwstas has quit [Remote host closed the connection]
<selfsymmetric-mu> I overrode the source but then I got `error: could not find git for clone of libvterm`.
shibboleth has quit [Quit: shibboleth]
Lukas4452 has quit [Ping timeout: 244 seconds]
Lukas4452 has joined #nixos
zeta_0 has joined #nixos
<fvh> @gchristensen any news on fedora 30 build?
<gchristensen> d'oh
<gchristensen> lost track of time
Lukas4452 has quit [Client Quit]
<gchristensen> fvh: looks like I don't have fedora30 yet. just 25,26,17,28 :/
<{^_^}> [nixpkgs] @aanderse merged pull request #66258 → flexibee: init at 2019.2.5 → https://git.io/fjQr4
<{^_^}> [nixpkgs] @aanderse pushed 2 commits to master: https://git.io/fjQ9g
erasmas has quit [Ping timeout: 245 seconds]
vika_nezrimaya has joined #nixos
<gchristensen> fvh: are you all set for now? ie: you have an okay workaround, while I put this on to my to-do list?
erasmas has joined #nixos
<vika_nezrimaya> question about nixpkgs.uwsgi: do I need to provide custom python3 with own path to be able to launch sites with it like people usually do when installing a webapp into site_packages?
<{^_^}> [nix] @edolstra merged pull request #3030 → pathlocks: add include to fcntl.h for O_CLOEXEC → https://git.io/fjQPq
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/fjQ9K
_kwstas has joined #nixos
ixxie has quit [Ping timeout: 245 seconds]
<zeta_0> hello guys, do you know the correct way to install ihaskell and it's packages in home.nix? https://nixos.org/nixos/packages.html#ihaskell
<__monty__> zeta_0: Probably using ghcWithPackages.
tomas1 has quit [Quit: WeeChat 2.4]
bakakuna has joined #nixos
<selfsymmetric-mu> My derivation can't find a Github repository. Any reason that might be the case? https://gist.github.com/e4d436606e8cb36922a2271163cdce97
<selfsymmetric-mu> Here is what I am attempting: https://gist.github.com/8c2396174da8e1b16857f486af3f2243
fendor has joined #nixos
<selfsymmetric-mu> As you can see I have tried adding `git` and `curl` to the `buildInputs` in case they weren't already there for some reason, but no dice.
<symphorien> selfsymmetric-mu: derivations are forbidden to access the network
<selfsymmetric-mu> symphorien: I see. How then can I appropriately get a more recent version of `emacs-libvterm`?
<symphorien> I expect that the build system tries to fetch this repo itself
<symphorien> no idea
<selfsymmetric-mu> The one from 19.03 crahes my Emacs.
<selfsymmetric-mu> I am hoping to try a newer version without waiting until October.
<zeta_0> __monty__: why?
o1lo01ol1o has joined #nixos
<symphorien> you would have to understand how to coax the build system of this package into using a clone of libvterm that you obtained with fetchFromGitHub
<__monty__> zeta_0: Because I assume ihaskell needs a ghc that can provide several packages.
<selfsymmetric-mu> symphorien: Okay I'll take a look.
<averell> > null.bla or "how?"
<{^_^}> "how?"
<averell> how come that works?
<zeta_0> __monty__: i already tried that but it says packages are broken, when i pasted: `nixpkgs.config.allowBroken = true;` into configuration.nix it still did not work, maybe it has something to do with home.nix?
<__monty__> zeta_0: No, the problem is some of the packages you need are broken. That's not just nix being silly, they're marked broken for a reason. Sadly it's a common occurence with the haskell infra lately : /
<__monty__> zeta_0: You'll need to identify each broken package and overlay it with one that's not broken.
<infinisil> averell: It's a builtin nix syntax
<averell> on the or? cause i looked through the nix manual, and i can't find it
<infinisil> Ah, although, I didn't know it worked with null
<zeta_0> __monty__: i talked with the one of the main developers (vaibhavsagar) yesterday, and he says it's working fine, so i am not sure what i am doing wrong?
<infinisil> "It is possible to provide a default value in an attribute selection using the or keyword. For example, "
<__monty__> zeta_0: Does it work if you try it in a nix-shell?
dispanser has joined #nixos
<vaibhavsagar> zeta_0: you are being a help vampire
dispanser has left #nixos [#nixos]
<vaibhavsagar> please stop
zupo has joined #nixos
<zeta_0> __monty__: i haven't tried that yet
<vaibhavsagar> IHaskell itself works fine, the current version bundled in nixos-19.03 is broken
fendor has quit [Ping timeout: 245 seconds]
johanot has joined #nixos
<__monty__> ,overlay zeta_0
<{^_^}> zeta_0: Overlays look like `self: super: { foo = ...; }`. Use the self argument to get dependencies, super for overriding things and library functions (including callPackage). More info: https://nixos.org/nixpkgs/manual/#sec-overlays-install
<vaibhavsagar> I told you yesterday that I recommend using `master` from GitHub
<averell> ok, and the null or "whatever".bla or x it will just take anything where i pretend attrib access i assume
dispanser has joined #nixos
<selfsymmetric-mu> Okay, I reported a bug and I'll wait for October.
<__monty__> zeta_0: You'll have to overlay IHaskell with a working version. If it's on hackage you can use callHackage, otherwise you could clone nixpkgs and fix it there.
wfranzini has joined #nixos
<vaibhavsagar> zeta_0, add this line to your home-manager configuration as a separate package in `packages`: `(let ihaskell = builtins.fetchTarball { url = "https://github.com/gibiansky/IHaskell/tarball/bb2500c448c35ca79bddaac30b799d42947e8774"; sha256 = "1n4yqxaf2xcnjfq0r1v7mzjhrizx7z5b2n6gj1kdk2yi37z672py"; }; in import "${ihaskell}/release.nix" { compiler = "ghc865"; nixpkgs = pkgs; })`
chloekek has quit [Ping timeout: 258 seconds]
angristan has quit [Quit: Textual IRC Client: www.textualapp.com]
<vaibhavsagar> monty: that's not necessary or sufficient, IHaskell has Python dependencies that also need to be installed for it to work correctly
<averell> btw that linked manual right there has a line "y = f { bla = 456; };" and i think that f is a typo?
<__monty__> vaibhavsagar: Ah, didn't know it had a nix expression. Was just going off my generic haskell/nix experience.
<infinisil> __monty__: I hope that flakes will encourage using upstream nix files more
<__monty__> infinisil: Not in nixpkgs.
<vaibhavsagar> __monty__: I went over all this yesterday on #haskell but zeta_0 ignored everything I said and is asking the same questions again today
<infinisil> Hm I wonder, if a package is always broken beyond repair in nixpkgs, it might make sense to just point to upstream's nix files if they have them
<vaibhavsagar> __monty__: a couple of years ago I pulled the existing nixpkgs support straight into the IHaskell repo and I've been using it that way ever since
<vaibhavsagar> I have a notebooks repo so that I can portably use IHaskell across all my computers: https://github.com/vaibhavsagar/notebooks
bakakuna has quit [Ping timeout: 244 seconds]
ng0 has quit [Quit: Alexa, when is the end of world?]
<__monty__> infinisil: Nixpkgs maintainers want to guarantee quality of things in nixpkgs. That's only made harder if flakes get included in nixpkgs.
byteflam1 has quit [Quit: leaving]
<zeta_0> thanks guys, i have been using nixos for three months so there it still a lot i don't know, i am going to have to swallow a lot of nix pills
<{^_^}> [nixpkgs] @mmahut merged pull request #66132 → qtractor: 0.9.8 -> 0.9.9 → https://git.io/fjQUy
<{^_^}> [nixpkgs] @mmahut pushed 3 commits to master: https://git.io/fjQ9h
<__monty__> vaibhavsagar: Oh, cool.
o1lo01ol1o has quit [Remote host closed the connection]
byteflam1 has joined #nixos
<__monty__> zeta_0: In this particular case the pill has been pretty well chewed for you though.
<infinisil> __monty__: Well maybe not include the flake itself, but just point to it
<infinisil> __monty__: As in `some-package = throw "Use this flake instead"`
jlv has joined #nixos
<__monty__> infinisil: Like a stub expression? { broken = true; custom-broken-message = "Get it from upstream flake."; }
<__monty__> ... thinking alike
<infinisil> Not even a derivation, just `some-package = throw` in all-packages.nix
<infinisil> Although I guess the meta information could be useful
<infinisil> For nix search or so
<infinisil> __monty__: Oh, how about some flakes hook, where if you try to do `nix-env -iA some-package` and it evaluates to `{ upstream-flake = <flake uri>; }`, nix-env detects that and then says "This package is unavailable in nixpkgs, do you want to install it from the upstream flake instead (flake URI)?"
johanot has quit [Quit: WeeChat 2.4]
<zeta_0> vaibhavsagar: thanks for clarifying things from yesterday, lets see if i can get this to work
<infinisil> (I wish i read through the flakes proposal a bit better so I would know how it works a bit more precisely)
<__monty__> infinisil: Sounds great. Though I think that blurs the line a lot about whether nixpkgs maintainers approve of the package.
<zeta_0> __monty__: ya thanks for the nix pill
<infinisil> __monty__: Hm true, it might give a false sense of security. The code in the flakes hasn't been reviewed in any way by the nixpkgs members
<infinisil> One could add their flake reference to nixpkgs and later just straight up package malware in it
<infinisil> So maybe an interactive hook isn't very good, an error message with just a link to the flake website might be better then
jtojnar has quit [Ping timeout: 272 seconds]
npmccallum has quit [Quit: npmccallum]
<__monty__> infinisil: It'd be possible if you pinned the flake, which flakes make easy. But then the burden of updating the pin is on nixpkgs maintainer again. Maybe that's acceptable but people don't seem eager for this.
wfranzini has quit [Remote host closed the connection]
<infinisil> Yeah and I think a big point of flakes is that you shouldn't have to update them manually
leotaku has quit [Quit: ZNC 1.7.3 - https://znc.in]
leotaku has joined #nixos
<{^_^}> [nixpkgs] @virusdave opened pull request #66297 → maintainers: add virusdave → https://git.io/fjQHY
<zeta_0> what does `flake` mean?
lord| has quit [Quit: WeeChat 2.5]
<{^_^}> rfcs#49 (by edolstra, 3 weeks ago, open): [RFC 0049] Flakes
<zeta_0> simpson: thanks
jslight90 has left #nixos ["Leaving"]
lord| has joined #nixos
<{^_^}> [nixpkgs] @lsix pushed 3 commits to master: https://git.io/fjQHG
<{^_^}> [nixpkgs] @lsix merged pull request #66050 → pythonPackages.django_{1_11,2_1}: update → https://git.io/fjH7r
<{^_^}> flakes redefined, was defined as https://github.com/NixOS/nix/blob/flakes/doc/flakes/design.md
<{^_^}> [nixpkgs] @lsix pushed 2 commits to release-19.03: https://git.io/fjQHC
drakonis has quit [Ping timeout: 245 seconds]
<zeta_0> oh, interesting
mexisme has joined #nixos
<__monty__> How can I set additional boot.initrd.availableKernelModules, since it's also set in hardware-configuration.nix?
<{^_^}> [nixpkgs] @timokau merged pull request #63673 → codespell: init at 1.15.0 → https://git.io/fjwzo
<{^_^}> [nixpkgs] @timokau pushed commit from @JohnAZoidberg to master « codespell: init at 1.15.0 (#63673) »: https://git.io/fjQHz
<__monty__> infinisil: I'm not sure where you're getting the "shouldn't have to update them manually?" Flakes make pinning really easy, and that's a good thing. The main thing flakes achieve is replacing channels and being more modular than channels at the same time.
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil> Ah yeah, I just meant like, if we did `throw "Use flake foo at version cd438a2 for this package"` then it would have to be updated manually
mexisme has quit [Ping timeout: 244 seconds]
<alienpirate5> what's causing my `system-path` to depend on gtk+3?
<gchristensen> nix why-depends <your-system-path> <the-gtk-3-path>
<alienpirate5> i'm building a sd image from a configuration file, i don't know how i would invoke that here
vesper11 has joined #nixos
<alienpirate5> why is `libXxf86misc`'s build system written in a way that causes it to not be able to cross compile?
<{^_^}> [nixpkgs] @mmahut merged pull request #66246 → qbittorrent: 4.1.6 -> 4.1.7 → https://git.io/fjQgx
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjQHy
<gchristensen> truly a question for the ages
<{^_^}> [nixpkgs] @worldofpeace merged pull request #66297 → maintainers: add virusdave → https://git.io/fjQHY
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjQH9
<infinisil> alienpirate5: If you have some .drv file (which nix-build will output at the beginning), you can do `nix-store -q --tree /nix/store/....drv` to see its dependency tree
<alienpirate5> thank you
hc^ has quit []
<infinisil> There you can grep for gtk
<alienpirate5> i'm using `nix build` though not `nix-build`
<alienpirate5> actually it still outputs derivation names when it fails
growpotkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
damesca has joined #nixos
<craige> I've just suggested via discourse that we add a GitHub label to track Librem-5 related patches: https://discourse.nixos.org/t/github-label-for-prs-for-librem-5-related-packages/3653
<alienpirate5> it just seems to be a hard dep
<alienpirate5> first-level in the tree
nrt^ has joined #nixos
vika_nezrimaya has quit [Ping timeout: 244 seconds]
<infinisil> craige: Nice! I'm really looking forward to my Librem 5, having NixOS work well would be greate
<infinisil> s/greate/great
growpotkin has joined #nixos
<craige> I'm plugging away quietly infinisil - not getting as much done as I'd like though. There may have to be some custom binary caches or nix files to apply patches that are ot yet upstream.
<__monty__> Librem 5's a phone, right? Does nixos do telephony?
<craige> It will with the patches applied, __monty__
<damesca> Hi. Looking for help. I'm trying to install a newer version of aws-vault by overriding src/version in the nixpkgs 19.03 version, but getting a ton of build failures (see build config/errors here: https://pastebin.com/Gkh7SVyx). Can anyone help? This is my first attempt at changing a package, and after reading the manual/googling around I've still n
<damesca> ot found a good example that works for my slow brain. Would appreciate if anyone can lay it on me. :)
mexisme has joined #nixos
<craige> The phone is running PureOS (Debian) and the code is all public.
<__monty__> craige: Oh, awesome. Would those patches also allow running nixos on other phones?
<craige> Not that I'm aware of but there is a project for that lead by samueldr
<{^_^}> [nixpkgs] @matthewbauer merged pull request #66276 → xcbuild: fix darwin build → https://git.io/fjQMl
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjQHb
Denommus has joined #nixos
<samueldr> anything for the librem5 hardware will only benefit the librem5 hardware...
<samueldr> ... but anything like packaging GUIs and tools will help anything
johnny101m has joined #nixos
<samueldr> e.g. if the librem5 uses ofono, and ofono is packaged and configured for use in NixOS, it'd help anything else using ofono
<infinisil> craige: I replied in the discourse post
<craige> There's a secondary problem that I can't apply labels but that's for another day. :-)
<alienpirate5> having an issue building one of my packages
Jackneill has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjQQv
<alienpirate5> I get the following error:
<alienpirate5> error: cannot auto-call a function that has an argument without a default value ('stdenv')
<infinisil> craige: Yeah I mentioned that in my reply, I can assign the labels if you tell me which PR's
<infinisil> /issues
<{^_^}> [nixpkgs] @matthewbauer merged pull request #66154 → xcbuild: fix build on darwin → https://git.io/fjQts
<infinisil> alienpirate5: Are you adding this to nixpkgs?
<alienpirate5> not yet, but I plan to do this at some point
<alienpirate5> but I just want to get it to build first
<infinisil> ,callPackage alienpirate5
<{^_^}> alienpirate5: If a Nix file foo.nix starts with something like `{ stdenv, cmake }:`, you can build it with `nix-build -E '(import <nixpkgs> {}).callPackage ./foo.nix {}'`
<alienpirate5> Ok, let me try this
<infinisil> Alternatively (and probably preferably), you can replace the argument list with a `with import <nixpkgs> {};`
<alienpirate5> is this something that would work in nixpkgs?
Jackneill has quit [Read error: Connection reset by peer]
<alienpirate5> also ugh the build system installs directly to /usr/local/bin
<infinisil> `with import <nixpkgs> {};` won't work in nixpkgs
<infinisil> In nixpkgs you'll have to define a top level `my-package = callPackage ./path/to/the/file.nix {}`
growpotkin has quit [Quit: ZNC 1.7.4 - https://znc.in]
<__monty__> How do I access attributes specified in hardware-configuration.nix in configuration.nix?
<__monty__> I want to specify an option that's also specified there without overriding it.
lambda-11235 has quit [Ping timeout: 244 seconds]
growpotkin has joined #nixos
<infinisil> __monty__: More concretely?
asymptotically has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
znewman01 has joined #nixos
<__monty__> infinisil: Want to specify additional modules in boot.initrd.availableKernelModules. (for dm-crypt)
<craige> Replied, infinisil :-)
<infinisil> __monty__: Just assign this option again in your configuration.nix
<infinisil> __monty__: The module system will make sure to merge them
<infinisil> (in this case, concatenating the lists)
<__monty__> Oh, great.
<fvh> @gchristensen yes, I can work until next reboot
vika_nezrimaya has joined #nixos
noudle has quit []
vika_nezrimaya is now known as kisik21
kisik21 is now known as vika_nezrimaya
drakonis_ has joined #nixos
<craige> Thanks infinisil! :-D
endformationage has quit [Quit: WeeChat 2.5]
selfsymmetric-mu has quit [Remote host closed the connection]
_kwstas has quit [Quit: _kwstas]
damesca has quit [Remote host closed the connection]
<infinisil> :D
<fvh> There is error exist when working with failed SSH with binary from Nix on Fedora, it's related to system wide configuration described here https://nixos.wiki/wiki/Nix_Cookbook#Bad_configuration_option:_gssapikexalgorithms solution proposes to comment out bad config options but I want a more stable solution. Any hints where package is build? nixpkgs
<fvh> ?
fendor has joined #nixos
<{^_^}> [nixpkgs] @Ma27 merged pull request #66265 → grafana: 6.3.0 -> 6.3.2 → https://git.io/fjQ6I
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fjQQ6
wildtrees has quit [Quit: Leaving]
Thra11 has quit [Quit: WeeChat 2.5]
<{^_^}> [nixpkgs] @Ma27 pushed commit from @WilliButz to release-19.03 « grafana: 6.3.0 -> 6.3.2 »: https://git.io/fjQQP
zeta_0 has quit [Remote host closed the connection]
<vika_nezrimaya> I suppose that services.uwsgi.instance.pythonPackages thing never gets applied. I can't see a reference to my project (which works with Nix as its primary build system <3) in the uwsgi path, and it isn't getting imported! >.<
<vika_nezrimaya> This looks like NixOS/nixpkgs#28429, but I'm not sure how to solve it
<{^_^}> https://github.com/NixOS/nixpkgs/issues/28429 (by jluttine, 1 year ago, closed): uwsgi not finding python packages
<vika_nezrimaya> The config references a python path with empty site-packages
<vika_nezrimaya> is it normal?
byteflam1 has quit [Ping timeout: 246 seconds]
johanot has joined #nixos
<alienpirate5> Does this work for anyone else? `nix build '(import <nixpkgs> {}).pkgsCross.armv7l-hf-multiplatform.json-glib'`
<{^_^}> [nixpkgs] @jdanekrh opened pull request #66299 → fsharp41: 4.1.7 -> 4.1.34; mono = mono6 → https://git.io/fjQQy
<vika_nezrimaya> alienpirate5: trying it out right now... it seems like it will build it from source
<alienpirate5> shouldn't take too long to error out
<vika_nezrimaya> ok then
<vika_nezrimaya> right now it's downloading source code
<samueldr> it may take longer for you since it'll need to build a bunch of deps too unless you already had them built like alienpirate5 presumably has
<alienpirate5> oh you're right it might take a long time to build all of the dependencies for armv7l
<alienpirate5> hmm we said the same thing
<vika_nezrimaya> ugh
<vika_nezrimaya> sorry cancelling it, my battery won't last long enough to build EVERYTHING
<samueldr> alienpirate5: why are you asking? if it doesn't build for you, chances are great it won't build for everyone else
<alienpirate5> i don't actually know
Okinan has quit [Quit: Konversation terminated!]
<alienpirate5> I can pastebin the build errors I get though
<vika_nezrimaya> I tried building a whole armv7l system once. With --system armv7l-linux. It hanged on some sed invocation and never completed building.
<samueldr> (not scoldin you, really want to know the failure method, or a reason for asking)
<vika_nezrimaya> somewhere early
<vika_nezrimaya> like, on the toolchain stage?
fvh has quit [Remote host closed the connection]
<alienpirate5> oof
<vika_nezrimaya> oh, i'm lying, i tried twice or thrice
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/6d06fdee9f7 (from 85 minutes ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
fendor has quit [Ping timeout: 245 seconds]
<vika_nezrimaya> I really want to run NixOS on my old RPi2
<alienpirate5> yeah i'm building nixos images for a raspberry pi currently
<vika_nezrimaya> yay!
<{^_^}> [nixpkgs] @grahamc opened pull request #66300 → wireguard: allow whole-internet VPN configuration → https://git.io/fjQQ7
drakonis has joined #nixos
drakonis_ has quit [Read error: Connection reset by peer]
<samueldr> cross-compilation is still a big WIP for a system-wide use, though it's possible to build a limited sd image https://github.com/samueldr/cross-system
<alienpirate5> Here's the build errors I'm getting
<alienpirate5> for json-glib
<samueldr> limited in that you should probably use it to then do a native build
<vika_nezrimaya> samueldr: I'm compiling it pseudo-natively using QEMU
<vika_nezrimaya> 'cause I want it to be able to update itself
<samueldr> yeah, I never had any luck with that working right for everything
Okinan has joined #nixos
<samueldr> but using a cross-built nixos, it should be able to rebuild itself
johanot has quit [Quit: WeeChat 2.4]
<samueldr> though it'll (obviously I think) need to rebuild the world
<vika_nezrimaya> but first rebuild will be SLOW
<samueldr> yes
<alienpirate5> anyway samueldr I got polkit to build, now trying to build Xorg and all of its deps
<vika_nezrimaya> Ugh
<vika_nezrimaya> Will it burn out an old SD card completely? it served me for several years I think?
gentauro has quit [Read error: Connection reset by peer]
<alienpirate5> i'm also trying to get distributed cross-builds going
<samueldr> alternatively, if you have fast aarch64 with kvm, you could use a cross-built armv7 as a stepping stone, to get an armv7 VM, which is likely going to build quicker
<vika_nezrimaya> samueldr: I still don't have the money for an aarch64 machine
<samueldr> >> FileNotFoundError: [Errno 2] No such file or directory: 'ldd': 'ldd'
gentauro has joined #nixos
<vika_nezrimaya> and community builder is said to not be trusted for anything mission-critical
<samueldr> that's because ldd will be named something like armv7l-unknown-linux-gnueabihf-ldd
<samueldr> or at least, prefixed
<alienpirate5> so i should build minimal cross-images and then build images natively on the cross-built images?
<samueldr> that's what I would do right now
<vika_nezrimaya> I think so. alienpirate5, to not duplicate the work, could you upload the cross-built image and/or the minimal native system closure to cachix or some file hosting?
<samueldr> though, actively improving the cross-compilation story of nixos is good too!
<alienpirate5> vika_nezrimaya: there's already a minimal cross image closure at https://github.com/samueldr/cross-system
<vika_nezrimaya> oh wow
<vika_nezrimaya> I cant read
<samueldr> no, no closure, just the stuff to build
<alienpirate5> i was able to successfully build images from that repo
<samueldr> it'll take a hot minute (several!) to build, but it should be good to boot
<vika_nezrimaya> how long does it take?
<vika_nezrimaya> day? two?
<vika_nezrimaya> week?
<vika_nezrimaya> month?...
<alienpirate5> couple of hours
<samueldr> on my workstation, 12 core xeons, couple, like 2-4 I think
<vika_nezrimaya> 12 core xeons?!
<samueldr> xeon*
<vika_nezrimaya> how much did you pay for this?
<samueldr> used, 2012 era
<alienpirate5> i'm building my images on a laptop :/
<vika_nezrimaya> me too >.<
<samueldr> oops, 6 cores, *2 HT
<alienpirate5> workstation class laptop though
<alienpirate5> quad core haswell i7
<vika_nezrimaya> 2x2x2.5GHz AMD something-something
<vika_nezrimaya> 6G of RAM
<vika_nezrimaya> two GPUs
___laika has joined #nixos
<vika_nezrimaya> that's my laptop
<samueldr> I think the machine I tested on is equivalent to an i7-6770K or thereabout for that kind of workload
<vika_nezrimaya> I don't know the intel equivalent 'cause I've never had an Intel machine in my life
<vika_nezrimaya> The only Intel machine there is my mom's
__monty__ has quit [Ping timeout: 248 seconds]
<vika_nezrimaya> samueldr, alienpirate5: ok I started building it, wish me luck
<clever> ,tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<alienpirate5> have fun
fragamus has joined #nixos
<vika_nezrimaya> and while we're here... have anyone used uwsgi with python?
___laika has quit [Ping timeout: 245 seconds]
<alienpirate5> clever: couldn't you use the nix-prefetch-* scripts?
<vika_nezrimaya> can you drop me a snippet how you've configured it? I seem to be missing something VERY obvious
<clever> alienpirate5: the target isnt supported by those scripts
<alienpirate5> ah
<samueldr> 52i0 clever :)
<clever> samueldr: the "editor" is slack :P
<samueldr> ouch ;)
orivej has quit [Ping timeout: 245 seconds]
<samueldr> alienpirate5: first of all, I was mistaken, mistook ldd for ld
<samueldr> though even with ldd, it fails, I'm not sure what would be the better approach for an ldd that works there
mexisme_ has joined #nixos
jlv has quit [Remote host closed the connection]
<alienpirate5> oof
mexisme has quit [Ping timeout: 248 seconds]
justanotheruser has quit [Ping timeout: 264 seconds]
<samueldr> the issue might need to be fixed in gobject-introspection
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zgrep> How does soapysdr-with-plugins get made/created from the soapysdr package? I can't find where that derivation would be defined, it seems to just... magically exist.
adamt has joined #nixos
adamt is now known as Guest14863
erasmas has quit [Quit: leaving]
justanotheruser has joined #nixos
argarg has left #nixos ["goooooooooooooooooooooooooooooood bye"]
__monty__ has joined #nixos
<{^_^}> [nixpkgs] @adisbladis opened pull request #66301 → Drop deprecated emacs package sets → https://git.io/fjQ7B
___laika has joined #nixos
Guest14863 has quit [Ping timeout: 268 seconds]
lambda-11235 has joined #nixos
Guest14863 has joined #nixos
<adisbladis> zgrep: It's defined in pkgs/top-level/all-packages.nix
__monty__ has quit [Quit: leaving]
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 264 seconds]
mbrgm_ is now known as mbrgm
acarrico has quit [Ping timeout: 248 seconds]
<zgrep> adisbladis: Ah, I see. Interesting. Thanks.
reanimus has quit [Ping timeout: 276 seconds]
ddellacosta has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
<exarkun> How do I use https://github.com/cleverca22/nixos-configs/blob/master/qemu.nix ? I added it to my import list and I also added `qemu-user = {arm = true; aarch64 = true;};` and I get an infinite recursion error.
dansho has quit [Remote host closed the connection]
dansho has joined #nixos
<clever> exarkun: can you pastebin your configuration.nix file?
lambda-11235 has quit [Quit: Bye]
<exarkun> sure
<alienpirate5> why is flatpak a dependency of dbus?!
<alienpirate5> why am I even building dbus
reanimus has joined #nixos
<exarkun> clever: https://gist.github.com/exarkun/d54f5e8cacbb1cdf995393ce1d31cf47 - but I redacted some stuff, let me know if that's a problem
<clever> exarkun: try using builtins.fetchTarball instead of pkgs.fetchFromGitHub
<exarkun> ok
<clever> exarkun: the module is setting some overlays, so you cant use pkgs when fetching it
<exarkun> ah
yangm97 has left #nixos ["User left"]
Acou_Bass has quit [Ping timeout: 258 seconds]
<exarkun> hm
<exarkun> nix-prefetch-url gave me a sha256 that builtins.fetchTarball is unhappy with
<exarkun> I think this is maybe the 2nd time I've experienced this
<clever> exarkun: fetchTarball wants the unpacked sha256, so you need nix-prefetch-url --unpack
<exarkun> oof. ok.
<exarkun> stuff is happening.
emilsp has quit [Ping timeout: 615 seconds]
znewman01 has quit [Remote host closed the connection]
alex`` has quit [Ping timeout: 258 seconds]
<alienpirate5> ugh why is it that when i enable the x server, it enables every xdg portal, dbus, gtk+3, and gibject-introspection
<alienpirate5> * ugh why is it that when i enable the x server, it enables every xdg portal, dbus, gtk+3, and gobject-introspection
byteflam1 has joined #nixos
<alienpirate5> how do i just enable the x server
<alienpirate5> i don't even want xterm
emilsp has joined #nixos
reanimus has quit [Quit: Logging off...]
Acou_Bass has joined #nixos
reanimus has joined #nixos
ericsagnes has quit [Ping timeout: 264 seconds]
ddellacosta has quit [Quit: WeeChat 2.2]
acarrico has joined #nixos
thc202 has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @marsam opened pull request #66304 → pythonPackages.colorcet: fix build on darwin → https://git.io/fjQ5t
<ashkitten> where should i put things like disk images in a derivation that'll provide a script to use the disk image in an emulator? should i put it in a directory of the output, or create a separate derivation to use it?