gchristensen changed the topic of #nixos to: NixOS 18.09 released https://discourse.nixos.org/t/1076 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
o1lo01ol1o has quit [Ping timeout: 244 seconds]
jacereda has quit [Ping timeout: 258 seconds]
o1lo01ol1o has joined #nixos
aleph- has joined #nixos
<{^_^}> [nixpkgs] @andir merged pull request #53642 → libuv: 1.23.2 -> 1.24.1 → https://git.io/fhGAY
<{^_^}> [nixpkgs] @andir pushed 2 commits to staging: https://git.io/fhZLj
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
mmlb2 has quit [Ping timeout: 258 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
dbmikus_ has quit [Ping timeout: 258 seconds]
dslegends has quit [Quit: dslegends]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<duairc> There's a failing test in gpgme (t-tofuinfo) that's causing me all sorts of problems
kvda has joined #nixos
<duairc> I want to make an override for gpgme that disables that test
chessai has quit [Ping timeout: 250 seconds]
<duairc> I've tried setting doCheck to false, I've tried a patch that deletes every reference to the test in Makefiles and the source code of the test itself, I've tried every --disable-XXX-tests configureFlag... no matter what it still runs the test. But my overrides are definitely being picked up, because if, e.g., I put total nonsense in the configureFlags, then it fails at the configure stage
<jackdk> duairc: what's the upstream repo?
Guest13576 has quit [Read error: Connection reset by peer]
sinner has joined #nixos
sinner is now known as Guest69503
<jackdk> got a build log or a nix expr I can repro with?
mmlb2 has joined #nixos
goibhniu has quit [Ping timeout: 246 seconds]
<duairc> jackdk: I'm not sure what you need, but basically I'm overring pinentry to use the gnome3 variant by default, exactly as done in this commit: https://github.com/NixOS/nixpkgs/pull/27468/commits/3f7e3db74426f658b4625505d262c1f7b288606d#diff-036410e9211b4336186fc613f7200b12
Guest69503 has quit [Ping timeout: 240 seconds]
<duairc> So this causes gnupg to be rebuild, including everything that depends on gnupg, and when it gets to gpgme it fails on this one test no matter what I do
<duairc> I don't know why that change would affect whether that test succeeds or not, I kind of don't think it's related
<jackdk> I know you've said you've done it, but can you please configure with --disable-gpg-test and see if it borks? (your initial message to irc had an extra 's' at the end)
<duairc> jackdk: Sure, I'll try it again. I think I had the right option in the configureFlags, just in my message to IRC I mixed it up, but yeah I'll try
eadwu has joined #nixos
<jackdk> That should be the right flag, if my reading of the autofoo is correct. If it still fails can you post a build log?
<duairc> jackdk: Sure. I also reached the same conclusion from grepping
<duairc> By the way, does Nix store build logs somewhere? I don't actually know how to get the build log other than just selecting everything in the terminal and pasting it in a text editor
<srk> nix log!
<jackdk> srk: tell us more! I normally use 2>&1 | tee build.log
<elvishjerricco> What are the `temp` roots listed in `nix-store --gc --print-roots`, and why are some of them not valid?
<elvishjerricco> are they maybe the roots of ongoing builds?
<jackdk> https://nixos.org/~eelco/pubs/phd-thesis.pdf page 140, I think? (search "temporary root")
<srk> duairc: jackdk, nix log show the build log of the specified packages or paths, if available - should work for locally built drvs
<srk> nix log ./result
<samueldr> (it will also fetch them from the binary cache, if available!)
<srk> cool!
<samueldr> >> nix log nixpkgs.hello
<jackdk> can it also slowly scroll the lines in a terminal before installing software, in the style of apt-gentoo?
<duairc> Is there a way to tell nixos-rebuild to not try to parallelize things? Because it's also trying to build other stuff at the same time and some of the output is about other packages
<srk> samueldr: for some reason my .cache/nix/binary-cache-v5.sqlite is owned by root oO
<srk> duairc: nixos-rebuild --option max-jobs 1 switch
<elvishjerricco> jackdk: Thanks, looks like I was right
<duairc> srk: Great, couldn't find anything like that in the man page
Xal has quit [Ping timeout: 250 seconds]
aanderse has joined #nixos
<samueldr> srk: you'll have to ask root to give it back then :3
<duairc> jackdk: Ah, I think I partially figured it out
<srk> samueldr: is it safe to delete it? :)
<srk> should be, it's .cache ..
<aanderse> any llvm maintainers here? doesn't look like we have llvm 8 in master yet... was hoping someone would be kind and add :)
<duairc> jackdk: If I look closely at the list of deriviations nixos-rebuild wants to build, there are two gpgme derivations, one with my override, and one without
<samueldr> srk: never had issues deleting stuff in the ~/.cache/nix
<duairc> Perhaps I'm doing the override wrong such that something else that depends on gpgme is not picking up my overrided version, and it's still trying to build the normal one?
Xal has joined #nixos
<duairc> Is putting this in configuration.nix a reasonable thing to do? Am I doing overrides right? https://pastebin.com/xpRAcu1t
Dedalo has quit [Ping timeout: 250 seconds]
<srk> it is altough it's (probably) better to use overlays
<srk> ,overlay
<{^_^}> 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
<duairc> srk: Yeah, I'm actually using overlays as well in another place, but I'm just trying to quickly and dirtily test something really
<duairc> srk: Why would nixos-rebuild be trying to build a non-overridden version of gpgme as well as the overridden one? Is there a way I can find out what package is depending on the non-overriden one?
counting1ort has joined #nixos
<srk> hmm, not sure
<ottidmes> duairc: why not just use nixpkgs.overlays = [ (self: super: ...) ]; seems no less quick than what you are doing and it sure to behave the way you expect
<duairc> ottidmes: Sure, okay, I guess whenever I've used overlays I've always put them in separate folders etc
<duairc> ottidmes: But I'll try this and see how I get on
countingsort has quit [Ping timeout: 245 seconds]
<pingveno> Has anyone gotten vue-cli installed?
<pingveno> There is /a/ vue in nixpkgs, but it's some IDE that isn't at all relevant.
<ottidmes> pingveno: it is in nodePackages.vue-cli
<pingveno> Is that an overlay?
<ottidmes> no
<ottidmes> > nodePackages.vue-cli.name
<{^_^}> "node-vue-cli-2.9.6"
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @thoughtpolice merged pull request #53671 → Yosys, nextpnr, Z3, etc updates → https://git.io/fhZkl
<{^_^}> [nixpkgs] @thoughtpolice pushed 10 commits to master: https://git.io/fhZti
<ottidmes> or it probably is, but not something external its available like normally in nixpkgs
<pingveno> Hmmm, I'm not seeing it anywhere...
<pingveno> nox doesn't show it, and `nix-env -iA nodePackages.vue-cli` doesn't find it.
hcs^ has joined #nixos
<pingveno> I think I have the syntax right there, I never 100% understood nix-env.
<jackdk> nix-build '<nixpkgs>' -A nodePackages.vue-cli seems to build on my machine.
<ottidmes> nix-env --file '<nixpkgs>' --install --attr nodePackages.vue-cli should work I think
<pingveno> Cool, looks like that does it.
<pingveno> Does that work for any node package?
<ottidmes> any node package that is available on NixOS, yes
<ottidmes> and some node packages need certain versions, so you might need to be explicit about the version for some, e.g. nodePackages_10_x for nodejs 10.x
dbmikus_ has joined #nixos
<duairc> jackdk: I figured it out! All it was was that I needed to also override qgpgme, that's why gpgme was being built twice, it uses the same underlying nix expression for both of them
ris has quit [Ping timeout: 268 seconds]
hellrazor has joined #nixos
hellrazo1 has quit [Ping timeout: 246 seconds]
fresheyeball has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fhZtx
iqubic has joined #nixos
<duairc> I'm not sure how to override qgpgme though, because it's in libsForQt5
techieAgno2tic is now known as tA2
<jackdk> good work. I feel like an overlay may be easier here so you don't have to dive into libsForQt5
<duairc> jackdk: What would that look like?
<duairc> At the moment I'm doing something like libsForQt5 = super.libsForQt5 // {qgpgme = super.libsForQt5.gpgme....}, but it doesn't seem to work
sary has quit [Quit: Lost terminal]
<jackdk> duairc ^
<duairc> jackdk: No, I get that much, but I just don't understand what I need to do for libsForQt5... like if I just libsForQt5.qgpgme = whatever inside the overlay, I get: error: attribute 'callPackage' missing
<duairc> What did you mean when you said "so you don't have to dive into libsForQt5"?
<jackdk> I'm hoping that by setting it in the overlay, the existing code for qgpgme should just pick up your overridden gpgpme
sanscoeur has quit [Ping timeout: 245 seconds]
<duairc> Ah, no it doesn't. Both qgpgme and gpgme (in all-packages.nix) explicitly callPackage ../path/to/gpgme.nix, just with different things in scope
<duairc> Ah I just noticed there's actually a bug open about this whole fiasco: https://github.com/NixOS/nixpkgs/issues/53632
<{^_^}> #53632 (by hedning, 17 hours ago, open): [staging-next] libsForQt5.qgpgme fails tests (breaking kde/plasma)
epicmetal has joined #nixos
thc202 has quit [Ping timeout: 250 seconds]
<ottidmes> duairc: don't you need to call libsForQt5.callPackage instead of regular callPackage?
<ottidmes> duairc: and to override qgpgme in libsForQt5 you can use libsForQt5 = super.libsForQt5.overrideScope' (self: super: { ... }) I think at least
<duairc> ottidmes: Ah, overrideScope' is probably what I was missing, didn't know about that
<ottidmes> duairc: me neither :P just looked it up, thinking the makeScope used to define libsForQt5 probably had something to make overrides like mkDerivation has
<duairc> ottidmes: Yes, that actually works (I think)! It at least is having some effect, the build hasn't finished but it's looking good
<duairc> So overrideScope' is specific to libsForQt5?
<ottidmes> nope, for all scopes
<duairc> Okay, wow, then I think that might be the missing piece in another overlay that I could never get properly working then...
logzet has quit [Ping timeout: 264 seconds]
logzet_ has joined #nixos
lihop has joined #nixos
silver has quit [Read error: Connection reset by peer]
sary has joined #nixos
justanotheruser has quit [Quit: WeeChat 2.2]
justanotheruser has joined #nixos
Rusty1 has joined #nixos
drakonis has quit [Ping timeout: 272 seconds]
sigmundv_ has quit [Ping timeout: 250 seconds]
drakonis has joined #nixos
drakonis has quit [Read error: Connection reset by peer]
benhoman has joined #nixos
porrifolius has quit [Ping timeout: 272 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @endgame opened pull request #53680 → GHC 8.6 fixes and bound relaxation → https://git.io/fhZqy
Supersonic has quit [Ping timeout: 252 seconds]
<jackdk> can someone on darwin please run a `nix-build -A haskellPackages.postgresql-libpq` and let me know if it builds for you?
hellrazo1 has joined #nixos
Supersonic has joined #nixos
hellrazor has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @veprbl opened pull request #53681 → poppler: fix build on darwin → https://git.io/fhZqb
logzet_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<Ankhers> jackdk: On master?
<jackdk> stand by. does nix-build '<nixpkgs>' on multi-user darwin installs use your channel or root's channel?
<jackdk> I just had a big change in a build plan after a sudo nix-channel --update, despite running nix-build as a user
o1lo01ol1o has joined #nixos
orivej_ has quit [Ping timeout: 250 seconds]
romanofskiWork has quit [Ping timeout: 268 seconds]
o1lo01ol1o has quit [Ping timeout: 258 seconds]
cyounkin_ has quit [Remote host closed the connection]
cyounkins has joined #nixos
fusion809 has joined #nixos
cyounkins has quit [Ping timeout: 246 seconds]
<Ankhers> jackdk: Sorry, I can't seem to help at the moment. My nix installation seemed to have gotten messed up when I recently updated my OS. And now it is failing installation.
<{^_^}> [nixpkgs] @veprbl merged pull request #53681 → poppler: fix build on darwin → https://git.io/fhZqb
<{^_^}> [nixpkgs] @veprbl pushed to master « poppler: fix build on darwin »: https://git.io/fhZmq
aleph- has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @cdepillabout opened pull request #53682 → haskellPackages.genvalidity-hspec: don't run tests → https://git.io/fhZmn
wedens has joined #nixos
<jackdk> ok, thanks anyway
<{^_^}> [nixpkgs] @dtzWill opened pull request #53683 → tor: 0.3.4.9 -> 0.3.5.7, add few deps → https://git.io/fhZmC
<{^_^}> [nixpkgs] @dtzWill opened pull request #53684 → mercurial: 4.8.1 -> 4.8.2 → https://git.io/fhZmW
alex`` has quit [Ping timeout: 272 seconds]
samrose has quit [Ping timeout: 250 seconds]
samrose_ has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #53685 → scons: 3.0.2 -> 3.0.3 → https://git.io/fhZm4
<{^_^}> [nixpkgs] @dtzWill opened pull request #53686 → poppler: 0.72.0 -> 0.73.0 → https://git.io/fhZm0
romanofskiWork has joined #nixos
<Ankhers> Anyone know how to delete the nixbld users on OSX?
lassulus_ has joined #nixos
lassulus has quit [Ping timeout: 240 seconds]
lassulus_ is now known as lassulus
porrifolius has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #53687 → bash,readline80: upgrade bash 4 -> 5, init readline80 → https://git.io/fhZma
ottidmes has quit [Ping timeout: 252 seconds]
freeman42x has quit [Quit: Leaving]
eadwu has quit [Ping timeout: 252 seconds]
<ivegotasthma> when packaging a python library, should doCheck always be false?
<simpson> ivegotasthma: Ha! You can enable tests, it's fine.
<simpson> If the tests are broken, then yeah, I hear that disabling them is fine too.
<ivegotasthma> simpson: thanks
<ivegotasthma> I'd prefer to have them on, but I'm getting this weird error: https://dpaste.de/naav/raw
<simpson> Ha! Hilarious. The test is failing because it can't make a network connection because that's bad touch.
<ivegotasthma> yeah, I thought so, damn
<ivegotasthma> simpson: I like the enthusiasm in your messages, ha!
<simpson> I'm attempting to get across my IRL laughter at how terrible the Python ecosystem is at this sort of thing.
justanotheruser has quit [Quit: WeeChat 2.2]
justanotheruser has joined #nixos
dbmikus_ has quit [Ping timeout: 250 seconds]
justanotheruser has quit [Client Quit]
<duoi> simpson the polite way is to just say "hahahahaahahahahaha wtfff lololol thats fucked bro"
<duoi> or give em one of these ones "lmfaoooooooooooooooo!!!! wtf!!!"
<duoi> both are accepted methods of conveying heavy IRL laughter.
justanotheruser has joined #nixos
<ivegotasthma> snowflake8 python btfo by facts and logic vol. 420
worldofpeace has quit [Ping timeout: 258 seconds]
cyounkins has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kvda has joined #nixos
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
cyounkin_ has joined #nixos
georges_ has joined #nixos
Mateon3 has joined #nixos
equivrel` has joined #nixos
Baughn_ has joined #nixos
jordansinn_ has joined #nixos
palo1 has joined #nixos
glasserc_ has joined #nixos
obadz has quit [Ping timeout: 244 seconds]
cyounkins has quit [*.net *.split]
mmlb2 has quit [*.net *.split]
bvdw has quit [*.net *.split]
palo has quit [*.net *.split]
Mateon1 has quit [*.net *.split]
glasserc has quit [*.net *.split]
equivrel has quit [*.net *.split]
georges has quit [*.net *.split]
ryantm has quit [*.net *.split]
Baughn has quit [*.net *.split]
Mateon3 is now known as Mateon1
palo1 is now known as palo
bvdw has joined #nixos
mmlb2 has joined #nixos
obadz has joined #nixos
ryantm has joined #nixos
semilattice has quit [Quit: semilattice]
lihop has quit [Ping timeout: 268 seconds]
<DigitalKiwi> don't forget about /s
epicmetal has quit [Ping timeout: 240 seconds]
<porrifolius> Can anyone help me with adding a haskell package and using it in 'myHaskellEnv' (as per the advice in the manual)?
Ashton has joined #nixos
<porrifolius> I want to use a updated version of a haskell library (lushtags) that is at a certain revision in a git repository.
<porrifolius> The best I've managed is to get it to show up as another package, but I get an 'undefined variable' error when I try to add it to the list of packages to install.
<Ashton> Quick and simple question, anyone managed to setup antigen on their box?
<porrifolius> The best I've managed is to get it to show up as another package, but I get an 'undefined variable' error when I try to add it to the list of packages to install. My .config/nixpkgs/config.nix is here: https://pastebin.com/rF1NiKjw
<Ashton> The standard "/path/to/antigen" doesn't exactly work here.
paulvictor has joined #nixos
endformationage has quit [Quit: WeeChat 2.3]
lihop has joined #nixos
Ashton has quit [Quit: Page closed]
Rusty1 has quit [Quit: Konversation terminated!]
Ashton has joined #nixos
_lawlesseel has quit [Remote host closed the connection]
_lawlesseel has joined #nixos
<elvishjerricco> porrifolius: You're using `self.haskell.packages.ghc844`, but you set `self.haskellPackages`. You need to refer to that instead of `self.haskell.packages.ghc844`
vk3wtf has quit [Ping timeout: 252 seconds]
Boobie has joined #nixos
<porrifolius> elvishjerricco: ah, ok, changing the reference in myHaskellEnv to self.haskellPackages.lushtags_0_0_2_1 fixes the 'undefined variable'. Great, thanks! So am I right in concluding that the haskellPackages I overrode is not _the_ set of haskell packages, only an alias to a _particular_ set of packages for a single compiler (~ghc844)? That leads me to think I'm being a bit deviant overriding in haskellPackages...
<porrifolius> I'm sure there's better ways. Should I be declaring the package outside of any particular set seperately somehow, then using it for the compilers it's needed in? And I guess there is some nicer way to declare the package given the git repository has a default.nix that presumably provides all the info needed... some sort of "the declaration is at this git repository" type definition?
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elvishjerricco> porrifolius: Nah what you're doing is something I find myself doing from time to time for sure
<wedens> can nix be used to crosscompile for windows?
Ashton has quit [Ping timeout: 256 seconds]
aleph- has joined #nixos
<porrifolius> elvishjerricco: Ok, cool. I guess there would be some situations where you wanted to restrict the override to the given compiler, but... meh, this stuff is already making my head hurt so I'll take the small victory. Thanks.
<elvishjerricco> wedens: Yea. Go to the nix repl and check out the attributes in pkgsCross
<porrifolius> elvishjerricco: quick question... the override I'm doing, will it use the library dependencies from the lushtags.cabal file in the git repo? Or will it end up using the ones in the original lushtags derivation?
<elvishjerricco> porrifolius: The way you did it will use the old ones
<elvishjerricco> but there is a way to fix that easily
<elvishjerricco> You can use `callCabal2nix`
<elvishjerricco> `lushtags_0_0_2_1 = self1.callCabal2nix "lushtags" (self.fetchgit ...) {}`
<elvishjerricco> porrifolius: That'll run cabal2nix at eval time to find the right dependencies to give it
Ariakenom has joined #nixos
jackdk has quit [Ping timeout: 272 seconds]
simukis has joined #nixos
sinner has joined #nixos
<porrifolius> elvishjerricco: hmmm, maybe I don't understand the distinction between cabal dependencies and the derivation dependencies. When I use 'lushtags' I get "Setup encountered missing dependencies haskell-src-exts ==1.11.*, text ==0.11.*, vector ==0.9.*" but when I user 'lushtags_0_0_2_1" I get "vector >=0.9 && <0.12" for the missing dependencies.
sinner is now known as Guest43556
<porrifolius> So it is changing the dependencies somehow. Does cabal2nix push those changes through into the parameters to the derivation? ie pass vector_0_10_0_0 to the nix expression instead of vector.
<elvishjerricco> porrifolius: So you should usually think of nixpkgs as only having one version of every package, and the only time any of those versions changes is when you explicitly force it to change (as you're doing now). Nix just has a fixed set of deps that you can manipulate manually.
<elvishjerricco> When you see stuff like `encountered missing dependencies`, that means the package your building has a cabal file that isn't happy with those version that nixpkgs has available
<elvishjerricco> so you have to go about fixing versions somehow, or you can use `doJailbreak` to force a package to accept the versions that are available
palo1 has joined #nixos
<{^_^}> [nixpkgs] @dingxiangfei2009 opened pull request #53690 → Concourse CI → https://git.io/fhZYW
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
orivej has joined #nixos
kvda has joined #nixos
<porrifolius> elvishjerricco: Ok, I see in the hackage-packages.nix that lushtags is defined with callPackage...mkDerivation...vector. So I can get in amongst my override and replace vector with vector_0_10_0_0 somehow. Or doJailbreak. Or clone the git repository locally, run cabal2nix and then do a callPackage over the generated nix file. Correct? Which do you find best? (doJailbreak sounds like a last resort to me.)
<elvishjerricco> porrifolius: I'd check why the bound exists; it's likely they just haven't expanded it far enough yet. In that case, doJailbreak is what I usually do
Guest43556 has quit [Quit: Quit]
<{^_^}> [nixpkgs] @dingxiangfei2009 closed pull request #53690 → Concourse CI → https://git.io/fhZYW
<porrifolius> elvishjerricco: in this case there are code changes from lushtags (version 0.0.1.0 I think) up to the 0.0.2.1 I want to use, including a loosening of the dependencies. Which I think should work, except that installing tries to use vector instead of vector_0_10_0_ (which is already defined in haskellPackages).
<elvishjerricco> porrifolius: Those pkg_x_y_z packages are not there to be auto-detected by Nix. They're only there as a convenience to you to make the manual switching of version easier, so that you don't have to provide the expression for that version yourself
<elvishjerricco> So you need to add to your overrides: `vector = self1.vector_10_0_0;`
vk3wtf has joined #nixos
<elvishjerricco> porrifolius: Which version of vector do you have by default, without overriding anything?
<porrifolius> elvishjerricco: Ahhh, ok, now I think I see what you meant by thinking as if there was only one version. We shouldn't depend upon a blah_W_X_Y_Z, we should use it to override blah. The vector defined in haskellPackages is 0.0.1.
tzemanovic has joined #nixos
tzemanov_ has joined #nixos
<porrifolius> elvishjerricco: So if we have packages that require different versions of the same package we then need to do a little localized override for each of them? Sounds pretty hard to keep track of.
<elvishjerricco> porrifolius: Yea it can be annoying
tzemanovic has quit [Ping timeout: 252 seconds]
hyper_ch2 has joined #nixos
juhe has joined #nixos
tzemanov_ has quit [Ping timeout: 252 seconds]
<porrifolius> elvishjerrico: So I should probably add the override you suggested and add another one... "lushtags = lushtags_0_0_2_1;"? That seems like the paradigm... along with crossing your fingers and hoping that nothing else depended on the old overridden version.
<porrifolius> maybe need some sort of 'rec' in there though?
<elvishjerricco> porrifolius: No rec required. The `overrides` mechanism makes sure it's all consistent
<elvishjerricco> if it didn't, every time you changed any of them, you'd have to manually change all things that depend on them
Ariakenom has quit [Quit: Leaving]
ddellaco_ has quit [Remote host closed the connection]
Dedalo has joined #nixos
hellrazo1 has quit [Ping timeout: 246 seconds]
<porrifolius> elvishjerricco: haven't got to overriding lushtags with lushtags_0_0_2_1 yet but... I've added the vector = self1.vector_10_9_3; (corrected to the right version) but I still get the same dependencies error. I've checked the json representation of the definition for vector within haskellPackages and adding the overide gets rid of the default version, but in haskell.packages.ghc844 there are still the two versions, the default
<porrifolius> 0.12.0.1 and 0.10.9.3. So overiding vector within haskellPackages is no good because lushtags in ghc844 is looking for vector only within ghc844.
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhZYD
<porrifolius> does that mean I either have to add self.haskellPackages.vector to myHaskellEnv as well? Don't see how else it would get in there.
<porrifolius> or do the overiding directly in the ghc844 package set.
<porrifolius> so, adding self.haskellPackages.vector to myHaskellEnv has fixed the lushtags dependency problem (though I've hit another now). But having to add it manually seems pretty crappy.
cyounkin_ has quit [Remote host closed the connection]
cyounkins has joined #nixos
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
sinner has joined #nixos
sinner is now known as Guest4599
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 268 seconds]
justbeingglad has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.2]
<Mic92> it seems that firefox is crashing for me, whenever I enter a URL in master.
<Mic92> also firefox-bin
<{^_^}> [nixpkgs] @dingxiangfei2009 opened pull request #53691 → Concourse → https://git.io/fhZOZ
juhe has quit [Remote host closed the connection]
juhe has joined #nixos
juhe has quit [Remote host closed the connection]
cyounkins has quit [Remote host closed the connection]
cyounkins has joined #nixos
justanotheruser has quit [Ping timeout: 246 seconds]
<averell> with mozilla firefox overlay?
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cyounkins has quit [Ping timeout: 250 seconds]
foldingcookie has quit [Ping timeout: 250 seconds]
orivej has quit [Ping timeout: 272 seconds]
justbeingglad has left #nixos [#nixos]
<{^_^}> [nixpkgs] @Mic92 opened pull request #53692 → [backport] rambox: update electron to 3.x → https://git.io/fhZOB
<porrifolius> elvishjerricco: maybe I need to take a step back, am I trying to do something stupid? I was trying to use ghc844 to set up a generic development environment (hlint, haskell-ide-engine, ghc-mod, etc), but now I'm down to problems with versions of base. Not good.
<{^_^}> [nixos-hardware] @Mic92 merged pull request #92 → fix nix-env evaluation → https://git.io/fhOeq
<{^_^}> [nixos-hardware] @Mic92 pushed 2 commits to master: https://git.io/fhZO0
<{^_^}> [nixos-hardware] @Mic92 pushed 0 commits to fix-nix-env: https://git.io/fhZOE
<porrifolius> Is that stupid? It seems that the nix packages aren't self consistent so maybe I'm better off just installing a compiler and then trying to nix-shell into every utility programe I need, building it and getting it onto my path. Doesn't seem very 'declaritive' though. :(
Xal has quit [Ping timeout: 250 seconds]
<elvishjerricco> porrifolius: Remember that the bounds on a package's dependencies are entirely human-written. When you have a problem with base, it's because the package author used PVP conservative bounds to rule out future versions just in case there's a breaking change.
<elvishjerricco> Nothing smart goes on here; no automatic version solving or heuristic constraint checking. Literally nixpkgs just chooses a set of versions and says "Man I hope these work together."
<elvishjerricco> It's based on stackage, which is a curated and tested set, so the parts from stackage are almost always fine
equivrel` has quit [Quit: ERC (IRC client for Emacs 26.1)]
<elvishjerricco> but nixpkgs expands it aggressively to all hackage packages, and many of those turn out incompatible
<elvishjerricco> but often, the incompatibilities aren't actual brokenness
equivrel has joined #nixos
<elvishjerricco> often, it's just that a package has version bounds that are too conservative, because the author wanted them to be conservative
<elvishjerricco> and hasn't updated them since
Ariakenom has joined #nixos
<elvishjerricco> porrifolius: Notice that the last lushtags update was in 2011
Xal has joined #nixos
<elvishjerricco> the version constraints are bound to be horribly out of date
<elvishjerricco> and there's a good chance that newer versions of packages aren't going to be compatible with what it needs
<elvishjerricco> porrifolius: So what I'd recommend is just using `doJailbreak` on lushtags and doing nothing else; no vector override or anything else
<elvishjerricco> `doJailbreak` will erase all version constraints in lushtags
<elvishjerricco> `lushtags = self.haskell.lib.doJailbreak super1.lushtags;`
<teto> getting haskell to work can be a nightmare (as a beginner). I thought starting to learn with nix(os) would make it easier as it seems popular among haskell hackers but it ended up being even harder becuase then you have to understand the nix-haskell components too
<elvishjerricco> teto: Part of that is that the haskell infra in nixpkgs is more complicated than I wish it were
<elvishjerricco> I'd like for it to have the same searchability and obvious-ness as the nixos module system
<drager> How would I use a custom theme for lightdm? If I for example install "numix-gtk-theme", how would I apply that? If I set "Numix" here in my configuration.nix I still get the default one; https://nixos.org/nixos/manual/options.html#opt-services.xserver.displayManager.lightdm.greeters.gtk.theme.name
<teto> elvishjerricco: also. like choosing the compiler etc, no examples on how to write an overlay in the doc etc. Some things are broken too when using nix-shell (doesn't export some variables which make programs fail https://github.com/domenkozar/hie-nix/issues/27#issuecomment-440535771)
tzemanovic has joined #nixos
<teto> but the haskell ecosystem with the systematic upper bounds and different LTS proved to be different from what I was used to.
<elvishjerricco> porrifolius: And if doJailbreak doesn't work, then getting lushtags to build with Nix isn't going to be reasonable without some tool that can convert cabal-install plans to nix, which I don't think exists.
<porrifolius> elvishjerricco teto: The mkasa/lushtags github was updated not long ago, looks to have reasonable constraints. Ok, I'll give the doJailbreak a go... though it's starting to feel like I should ditch the nixpkg management of my ide utilities and stuff, just old-school build the individual utilities. I'm hoping working on _my_ projects will be better... if I ever get there! :(
<elvishjerricco> porrifolius: Oh I forgot you were trying it from git
<elvishjerricco> let me check that one real quick
orivej has joined #nixos
<elvishjerricco> porrifolius: Ok what if you just do `lushtags = self1.callCabal2nix "lushtags" (self.fetchgit ...) {};`?
<elvishjerricco> if you do that, and no other overrides, I *think* it might work
<porrifolius> elvishjerrico teto: yeah, usability has been a problem... I was sad when I couldn't geven get just the ghc862 to install (no extra packages in myHaskellEnv). Ok, I'll give the callCabal2nix a try.
<elvishjerricco> porrifolius: Yea ghc 8.6 isn't well supported in nixpkgs right now. You should be able to get the compiler itself, and at least several packages, but it won't be nearly as widely working as 8.4
<elvishjerricco> porrifolius: Also note, ghc-mod isn't released for GHC versions > 8.0 right now :/ You have to use a git checkout from some owner (I don't think the regular owner IIRC).
johanot has joined #nixos
Makaveli7 has joined #nixos
<Myrl-saki> Can anyone comment on #53600?
<{^_^}> https://github.com/NixOS/nixpkgs/pull/53600 (by adrianparvino, 1 day ago, open): nixos/modules/system/boot/stage-1.nix: Add support for mounting files encrypted with luks
Tucky has joined #nixos
<{^_^}> [nixpkgs] @hedning opened pull request #53693 → libsForQt5.qgpgme: fix tests after 2019-01-06 → https://git.io/fhZOw
<{^_^}> [nixpkgs] @cdepillabout closed pull request #53682 → haskellPackages.genvalidity-hspec: don't run tests → https://git.io/fhZmn
void__ has joined #nixos
Makaveli7 has quit [Ping timeout: 240 seconds]
periklis has joined #nixos
MarkOtaris has left #nixos ["User left"]
tzemanovic has quit [Remote host closed the connection]
kvda has joined #nixos
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
Guest4599 has quit [Ping timeout: 264 seconds]
hedning has joined #nixos
<porrifolius> elvishjerrico: No luck with just the callCabal2nix as the default vector is above the upperbound of the new lushtags. But wrapping it in a doJailbreak worked... at least got further before failing on cabal-helper.
<porrifolius> Can I ask what you do to get general utilities and stuff installed? Just liberal application of doJailbreak or do you build them outside of nixpkgs?
<porrifolius> I'll see how I get on with the doJailbreak for cabal-helper.
<elvishjerricco> porrifolius: I think you're trying to install too much at once
<elvishjerricco> the cabal-helper thing is the ghc-mod issue I was telling you about
<elvishjerricco> ghc-mod isn't supported on your GHC version officially. You have to get it from git
<elvishjerricco> but
<elvishjerricco> the latest lushtags has `vector >= 0.9 && < 0.13`, and the current version of `vector` is `0.12.0.2` so that is within bounds.
<siers> Does gnome session+i3 work well on nixos?
<elvishjerricco> porrifolius: Oh and one of the reasons that ghc-mod isn't supported yet is because cabal-helper isn't either. You won't get that working. You have to also get that from git
gagbo__ has joined #nixos
<elvishjerricco> you should try to use the same versions as those used by haskell-ide-engine's git repo
<porrifolius> elvishjerricco: Oh, hang-on... so mkHaskellEnv won't be the entirety of the the environment? It's just a convenience to install a bunch of stuff at one time (and that bunch must be self-consistent)? I thought it was like configuration.nix and specified exactly what was installed. So I could split it up and that might ease my problems.
<porrifolius> Ok, so I'll need to do some fetch-from-git overrides for those as well? Good thing I'm getting practice now! :)
<elvishjerricco> porrifolius: I don't understand the question
gagbo_work has quit [Ping timeout: 250 seconds]
<elvishjerricco> my point was that you seem to not be taking an incremental approach. i.e. I know that both lushtags and ghc-mod don't build, so you couldn't have added one, got it working, then added the other
<Myrl-saki> Is it only me, or is apply too magic?
<elvishjerricco> Myrl-saki: apply like the nixos module system's apply?
<Myrl-saki> Yep.
<elvishjerricco> Myrl-saki: What's magic about it?
<Myrl-saki> Basically, when does `apply` apply.
<{^_^}> [nixpkgs] @gebner merged pull request #53663 → ibus-engines.mozc: 2.20.2673.102 -> 2.23.2815.102 → https://git.io/fhZfS
<{^_^}> [nixpkgs] @gebner pushed 2 commits to master: https://git.io/fhZ3f
<Myrl-saki> I checked the source code, and this is what I got.
<porrifolius> elvishjerricco: I thought, incorrectly I think, that myHaskellEnv defined everything that would be installed. Similar to environment.systemPackages in /etc/nixos/configuration.nix. But now I think it simply a short-cut to doing a whole lot of nix-env install invocations. So I was taking a non-incremental approach because I thought it was necessary to do so. But now it seems I might as well just be executing nix-env install
<porrifolius> for each utility.
<Myrl-saki> opt.apply res.mergedValue
<elvishjerricco> porrifolius: You were right the first time. It installs them all at once
<elvishjerricco> And that's the problem.
<elvishjerricco> You put in several broken packages all at once and now you have several broken things confusing you
<elvishjerricco> Instead you should add one to your code, nixos-rebuild, add another, nixos-rebuild, and so on
<porrifolius> elvishjerricco: yeah, I know that nix-env install mkHaskellEnv installs them all at once (and they must be self-consistent it seems). But if I had mkHaskellEnv_piece1 and _piece2 would the things listed in _piece1 have to be self-consistent with _piece2 when they are installed with separate nix-env invocations?
Mateon3 has joined #nixos
<elvishjerricco> porrifolius: configuration.nix has nothing to do with nix-env. The packages installed by it are not installed via nix-env
Mateon1 has quit [Ping timeout: 268 seconds]
Mateon3 is now known as Mateon1
<elvishjerricco> porrifolius: Your whole system is reevaluated when you do nixos-rebuild
goibhniu has joined #nixos
<elvishjerricco> there's only one install, and that's at `/run/current-system`, which gets updated atomically every time you nixos-rebuild
agander has joined #nixos
<elvishjerricco> all your software installed via configuration.nix gets grouped together via some derivations that just build useful symlink trees, and then eventually there's one top level system symlink tree that gets linked to from /run/current-system
<porrifolius> elvishjerricco: I am currently editing ~/.config/nixpkgs/config.nix and making no changes to configuration.nix. Then, as user, running nix-env install myHaskellEnv. I'm not running nixos-rebuild.
<elvishjerricco> OH
<elvishjerricco> haha
<elvishjerricco> ok
<elvishjerricco> my
<elvishjerricco> my bad
agander_ has joined #nixos
<elvishjerricco> So yea, you were right the first time. But the concept is the same since you're bundling them under a single myHaskellEnv
johanot has quit [Ping timeout: 250 seconds]
Lears has quit [Read error: No route to host]
<porrifolius> I mentioned configurtion.nix because I thought that myHaskellEnv was a difinitive declaration of _everything_ extra that would be installed for my user, but now I think it is just a shortcut for doing nix-env install X, Y, Z etc and they must be self consistent.
Lears has joined #nixos
<elvishjerricco> it is not
<elvishjerricco> you were right the first time
<elvishjerricco> having everything in an env like that does make it declarative
<elvishjerricco> but my point about doing things incrementally is just that trying to fix a dozen broken packages at once is harder than fixing one broken package :P
<porrifolius> but if I had two separate myHEnv1 and myHEnv2 declations and installed them with separate invocations of nix-env install would everything need to be self-consistent? I think no, just self consistent within each nix-env install invocation.
<elvishjerricco> Right
agander has quit [Ping timeout: 252 seconds]
<porrifolius> Agreed, slapping them all in at once is more complex because I'm not totally certain I've fixed the first package because the now the second is crapping out. No argument there.
<elvishjerricco> porrifolius: FWIW, this built perfectly fine for me: `haskellPackages.callCabal2nix "lushtags" (builtins.fetchGit https://github.com/bitc/lushtags) {}`
<Myrl-saki> genericClosure doesn't seem documented. RIP
<porrifolius> Yeah, I'd expect it to, bitc vs mkasa have different upper bounds for the dependency. But mkasa has more functionality.
johanot has joined #nixos
<elvishjerricco> ahh
<elvishjerricco> I'll take a look at that one
<elvishjerricco> ok so that's what I was missing. Looks like mkasa should merge bitc's newer commits
knupfer has joined #nixos
justanotheruser has joined #nixos
<porrifolius> elvishjerricco: yeah, but your doJailbreak has fixed that for me. And if I only try to add lushtags to myHaskellEnv it all installs, generates hoogle docs and stuff now. So that's good.
o1lo01ol1o has joined #nixos
<elvishjerricco> porrifolius: Cool.
<Myrl-saki> what the heck is genericClosure lmao
<Myrl-saki> :p builtins.genericClosure { startSet = [ { key = "a"; value = "foo"; } { key = "b"; value = "bar"; } ]; operator = x: [ (x // { value = "baz"; }) ]; }
<Myrl-saki> [ { key = "a"; value = "foo"; } { key = "b"; value = "bar"; } ]
<elvishjerricco> Myrl-saki: This comment is the sole documentation on it :P https://github.com/NixOS/nix/issues/552#issuecomment-294173909
agander_ is now known as agander
<Myrl-saki> elvishjerricco: ... a "startset" ( a list...
<Myrl-saki> Hmmm
<porrifolius> so now I guess I just keep overriding and jailbreaking each extra package until I run across one which has a mutually incompatible dependency with an existing override. Then split myHaskellEnv into parts 1 and 2. Pretty tortuous process, but at least it's still declarative I guess.
<Myrl-saki> elvishjerricco: Anyways, thanks. :P I think I get it now.
<elvishjerricco> porrifolius: What package are you trying to fix now?
<Myrl-saki> elvishjerricco: nix-repl> :p builtins.genericClosure { startSet = [ { key = "a"; value = "foo"; } { key = "b"; value = "bar"; } ]; operator = { value, ... }: [ { key = value; value = ""; } ]; }
<Myrl-saki> [ { key = "a"; value = "foo"; } { key = "b"; value = "bar"; } { key = "foo"; value = ""; } { key = "bar"; value = ""; } { key = ""; value = ""; } ]
<Myrl-saki> elvishjerricco: Thanksies!
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<elvishjerricco> Myrl-saki: I *think* it uses a list instead of an attrset so that the `key` can be non-strings
<porrifolius> elvishjerricco: not sure which one I'm up to now but I've had to override pretty-show and jailbreak hedge-hog so far. Not sure what needed them. I'll reintroduce packages step by step to find out, though it's not definitive because one override might fix subsequent packages.
<Myrl-saki> elvishjerricco: I just found it funny that it's called startset but is a list. :P
<elvishjerricco> porrifolius: Are you still trying to install ghc-mod?
<Myrl-saki> Anyways, if I understand correctly.
tzemanovic has joined #nixos
<Myrl-saki> The NixOS module system flattens everything before going fixed-pointy?
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<Myrl-saki> Or not, idk.
tzemanovic has quit [Remote host closed the connection]
<elvishjerricco> Myrl-saki: The module system's implementation is dark magic to me :P
<Myrl-saki> elvishjerricco: ikr
tzemanovic has joined #nixos
<{^_^}> [nixpkgs] @bkchr opened pull request #53694 → linux: Adds patch for fixing wifi on raspberry pi → https://git.io/fhZ3z
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<porrifolius> elvishjerricco: Working through them now... looks like hoogle fails in the haddock generation, and... yeah, now I'm on ghc-mod and it's failing building cabal-helper. So you think it's no good overriding/jailbreaking to fix this one? I'll need to track down some git repo version updates?
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<elvishjerricco> porrifolius: Yes, ghc-mod and cabal-helper, as released on Hackage, explicitly do not support GHC > 8.0. You need to use whatever versions haskell-ide-engine is using
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<elvishjerricco> porrifolius: the ghc-mod and cabal-helper from here: https://github.com/haskell/haskell-ide-engine/tree/master/submodules
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<porrifolius> elvishjerricco: thanks, I'll see if I can figure it out... weirdly the head of haskell-ide-engine depends on cabal-helper>0.8.0.4 for which there is a version on hackage, but the submodules you pointed me at has a cabal-helper at version 0.9.0.0.
aleph- has quit [Ping timeout: 246 seconds]
<porrifolius> maybe the haskell-ide-engine.cabal was updated when there was no official cabal-helper 0.8.1.x
counting1ort is now known as countingsort
<elvishjerricco> porrifolius: Yea I'm guessing the version constraints in haskell-ide-engine are just totally out of whack :P
mgdm has left #nixos ["WeeChat 1.4"]
<teto> porrifolius: as ghc-mod does not support recent things and everything relies on ghc-mod, it's kind of a mess. to install hie there is project on domenkozar github
<elvishjerricco> Yea this is extremely handy: https://github.com/domenkozar/hie-nix
<{^_^}> [nixpkgs] @Mic92 pushed to master « electron_3: also update arm hashes »: https://git.io/fhZ3S
thc202 has joined #nixos
mariel__ has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<drager> How would I use a custom theme for lightdm? If I for example install "numix-gtk-theme", how would I apply that? If I set "Numix" here in my configuration.nix I still get the default one (Adawaita); https://nixos.org/nixos/manual/options.html#opt-services.xserver.displayManager.lightdm.greeters.gtk.theme.name
void__ has quit [Quit: Leaving]
<AK> WARNING: the per-user profile dir /nix/var/nix/profiles/per-user/$USER should belong to user id 0.
<AK> comes with su
johanot has quit [Ping timeout: 252 seconds]
<wedens> drager: there is also theme package option services.xserver.displayManager.lightdm.greeters.gtk.theme.package
johanot has joined #nixos
ubert has joined #nixos
<wedens> you should set both
fendor has joined #nixos
sakalli_ has quit [Ping timeout: 256 seconds]
rfold has joined #nixos
<drager> wedens: Ah! Thank you!
knupfer has quit [Ping timeout: 240 seconds]
<rfold> I want to write a derivation that uses patscc to compile some ATS code. However, patscc uses the absolute path to the source file for name mangling. This means the builds aren't reproducible. I tried copying the source files to /tmp before passing them to patscc, so that they'd always have the same path. But /tmp isn't writable. Is there some canonical way to get hold of a writable directory that always has the same absolute path in a
<rfold> Setting up a chroot inside the derivation seems like a lot of pain unless there's already a function for this.
<rfold> On NixOS it works because the working directory of the builder is always the same; /build. But on Ubuntu it's /tmp/nix-build-randomstring.
<srhb> rfold: Presumably that's related to Nix sandboxing rather than NixOS as such.
<srhb> While sandboxing is obviously preferable it's probably not something you can rely on..
<srhb> rfold: Maybe you can just build in $out, though it seems a bit hacky.
<rfold> Ah yeah that might work.
kvda has joined #nixos
<porrifolius> elvishjerricco teto: Thanks for the tip on hie, I've got it installed system wide, remains to be seen if it works with my user installed stuff. As for ghc-mod itself... how do I fix "...anonymous function called without required argument 'ghc-mod-core'...". ghc-mod has it as a parameter to it's nix expression and it's a libraryHaskellDepends.
<porrifolius> It's not showing in the nixos or haskell packages, and I don't see any sign of it in that git repository you directed me to.
<porrifolius> Ahhh... the sub-project at DanielG/ghc-mod perhaps...
<porrifolius> whoops, guess I need the alanz one, not DanielG
<rfold> srhb: Welp, that works. :D Thanks. Until I find a better solution, I will add an explanatory comment to my builder and leave it so.
reinhardt has joined #nixos
<srhb> rfold: Great. :)
<{^_^}> [nixpkgs] @chpatrick opened pull request #53695 → nixos/gnome3: add GNOME Flashback sessions option → https://git.io/fhZsd
dermetfan has joined #nixos
civodul has joined #nixos
rauno has joined #nixos
<{^_^}> [nixpkgs] @hedning merged pull request #53693 → libsForQt5.qgpgme: fix tests after 2019-01-06 → https://git.io/fhZOw
<{^_^}> [nixpkgs] @hedning pushed 2 commits to master: https://git.io/fhZGJ
agander_ has joined #nixos
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agander__ has joined #nixos
agander has quit [Ping timeout: 246 seconds]
agander__ is now known as agander
agander_ has quit [Ping timeout: 240 seconds]
<mr_noobs> Hy there!
<mr_noobs> How do I make a path accesible to a user?
<mr_noobs> I want to have some docker-compose.yml files, and I want to have the docker user make a stack with them
<mr_noobs> Nevermind, I think I'm overcomplicating nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #53692 → [backport] rambox: update electron to 3.x → https://git.io/fhZOB
<{^_^}> [nixpkgs] @Mic92 pushed 4 commits to release-18.09: https://git.io/fhZGO
<{^_^}> [nixpkgs] @makefu opened pull request #53696 → exfat-nofuse: unbreak for 4.18 and 4.20 → https://git.io/fhZG3
<porrifolius> elvishjerricco teto: anybody know how to write a callCabal2nix that fetches the cabal file from a subdirectory in a git project? This is the specific sub-directory: https://github.com/alanz/ghc-mod/tree/e5b7daf1a2c949b2d2900ae11b13a267ed25eedb/core
<porrifolius> something like "ghc-mod-core = self1.callCabal2nix "ghc-mod-core" (self.fetchgit { ... }"? But what goes in the url and revision for the fetchGit expression?
<elvishjerricco> porrifolius: `callCabal2nix "foo" (fetchgit {...} + /subdir_name) {}`
<duairc> I'm using MATE and the weather applet isn't working. When I look at journalctl, I see this message: Failed to get Met Office forecast data: 6 TLS/SSL support not available; install glib-networking.
<{^_^}> [nixpkgs] @7c6f434c merged pull request #53578 → rxvt_unicode: fix build → https://git.io/fhGgY
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/fhZGZ
<duairc> But as far as I can tell I have glib-networking installed
<Izorkin> Please check PR #53245 )
<{^_^}> https://github.com/NixOS/nixpkgs/pull/53245 (by Izorkin, 6 days ago, open): zsh.syntaxHighlighting: add option to customize styles
<porrifolius> elvishjerricco: Thanks, that's got me going again. So I guess fetchgit simply returns the local path of the cloned git repository... sort of obvious I suppose... sort of. :)
markus1189 has quit [Ping timeout: 268 seconds]
markus1189 has joined #nixos
<Taneb> It does frustrate me that it seems like the only way to get the inputs in a build in RunCommand seems to be to use the API to look up the build to get the eval, then look up the eval using the API
<duairc> How often does https://nixos.org/channels/nixos-unstable sync with the master branch of NixOS/nixpkgs ?
<symphorien> !stuck
<symphorien> duairc: it is explained at the top of this page ^
<{^_^}> [nixpkgs] @Mic92 merged pull request #53694 → linux: Adds patch for fixing wifi on raspberry pi → https://git.io/fhZ3z
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhZGg
lihop has quit [Ping timeout: 250 seconds]
epicmetal has joined #nixos
init_6 has joined #nixos
kochev has joined #nixos
alex`` has joined #nixos
<porrifolius> elvishjerricco: I think ghc-mod-core is good now. Now I'm hitting compile errors in ghc-mod (having jailbreaked it because of temporary), but these are all in the test sub-directory. Any way to disable the building of the test modules?
agander has quit [Ping timeout: 245 seconds]
epicmetal has quit [Ping timeout: 272 seconds]
__monty__ has joined #nixos
agander has joined #nixos
dmj` has quit [Ping timeout: 252 seconds]
epicmetal has joined #nixos
dmj` has joined #nixos
epicmetal has quit [Client Quit]
sigmundv_ has joined #nixos
iyzsong has joined #nixos
eadwu has joined #nixos
iqubic` has joined #nixos
jomik has joined #nixos
iqubic has quit [Ping timeout: 250 seconds]
Synthetica has joined #nixos
hoijui has joined #nixos
<{^_^}> [nixpkgs] @flokli merged pull request #53640 → minio: 2018-12-06T01-27-43Z -> 2018-12-27T18-33-08Z → https://git.io/fhGNF
<{^_^}> [nixpkgs] @flokli pushed 3 commits to master: https://git.io/fhZZe
<elvishjerricco> porrifolius: `dontCheck`, applies just like `doJailbreak`
<elvishjerricco> porrifolius: have a look in pkgs/development/haskell-modules/lib.nix There's some useful stuff in there :)
<porrifolius> elvishjerricco: I'll have a look... I saw dontCheck mentioned, but got the impression it just prevented the running of the the test suite, not the building of it.
<elvishjerricco> porrifolius: Not only does it prevent the building of it, but it also prevents building dependencies that are only used by the test suite
eadwu has quit [Ping timeout: 252 seconds]
rtjure has quit [Ping timeout: 268 seconds]
reinhardt has quit [Quit: Leaving]
<porrifolius> elvishjerricco: Unbelievable! ghc-mod is installed! Now I'm just praying for no segfaults when it runs. :)
ottidmes has joined #nixos
<porrifolius> elvishjerricco: plenty more to install, but I've got to take a break before a brain valve busts. Thanks so much for your advice, I really appreciate it. And... you'll probably hear from me again! :)
<elvishjerricco> porrifolius: happy to help :)
<porrifolius> elvishjerricco: better than statins, you've really brought my blood-pressure down. Thanks!
<siraben> Hi all, I'm trying to build tilp but it isn't working https://gist.github.com/siraben/81fdb530c179d9d658c79d9214392be0
<siraben> clever: maybe you would be able to take a look
<siraben> here's the log I get: https://paste.debian.net/1059364/
pie___ has joined #nixos
porrifolius has quit [Ping timeout: 240 seconds]
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
hedning has quit [Quit: hedning]
strobelight has joined #nixos
<{^_^}> [nixpkgs] @flokli pushed 4 commits to release-18.09: https://git.io/fhZZZ
neminis has joined #nixos
jomik has quit [Quit: WeeChat 2.2]
rtjure has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #53696 → exfat-nofuse: unbreak for 4.18 and 4.20 → https://git.io/fhZG3
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhZZc
tzemanovic has quit [Remote host closed the connection]
<paulvictor> When I run `nix-env -qa` I get the error `error: cannot import '/nix/store/zsfkn004z6sdfmkwvxf7jpkrw64fjh9y-source', since path '/nix/store/24mcf4vx1wn2srghzwr5q8r2md1ql053-source.drv' is not valid, at /nix/store/p3fpbsnkj0llqyg3w4nf3slqv7fy1zmv-home-manager/home-manager/tests/default.nix:14:1`
tzemanovic has joined #nixos
<paulvictor> Looks like something's messed up with my home-manager config
tzemanovic has quit [Remote host closed the connection]
<paulvictor> Can someone help?
das_j has joined #nixos
tzemanovic has joined #nixos
fusion809 has quit [Remote host closed the connection]
tzemanovic has quit [Remote host closed the connection]
hoijui has quit [Ping timeout: 268 seconds]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<das_j> Hey, is there a way to give a $NIX_PATH input into a build?
<das_j> Something like buildInputs = [ <nixos-config> ];
fusion809 has joined #nixos
<Mic92> das_j: yeah, you can import anything from nix path like that
rauno has quit [Ping timeout: 240 seconds]
<pie___> das_j: do you want the files for a derivation or just the path
<pie___> i feel like it might be good to know your intended goal here
<das_j> Ah, yes. My goal is to build a package list for all nix packages (as JSON). So I call nix-env in pkgs.runCommand. However, I also want my overlays
<Synthetica> Mic92: Would you mind merging https://github.com/NixOS/nixpkgs/pull/51412 ?
<{^_^}> #51412 (by Synthetica9, 5 weeks ago, open): konsole: fix arrow keys
<das_j> So I need to call nix-env with something -I <helsinki>/4pkgs
<das_j> Sorry, -I nixpkgs-overlays=<helsinki>/4pkgs
<{^_^}> [nixpkgs] @Mic92 merged pull request #51412 → konsole: fix arrow keys → https://git.io/fpKKU
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhZZ8
agander has quit [Ping timeout: 246 seconds]
<Mic92> Synthetica: so much impurity in our qt stuff.
<Synthetica> Mic92: Yeah, I know :(
hoijui has joined #nixos
<das_j> In case anyone has the same problem and reads the IRC logs: The solution is -I nixpkgs-overlays=${<helsinki/4pkgs>}/default.nix
hoijui has quit [Remote host closed the connection]
<pie___> das_j: hm yeah ok I don't have any good advice
<das_j> No worries, problem is fixed now :)
<{^_^}> [nixpkgs] @Mic92 merged pull request #51515 → gmp: don't use uname to detect system features → https://git.io/fpPXw
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to staging: https://git.io/fhZZg
<pie___> das_j: nix-env has a -a flag under -q ( --query ) that may be relevant
<pie___> ok
<paulvictor> When I run `nix-env -qa` I get the error `error: cannot import '/nix/store/zsfkn004z6sdfmkwvxf7jpkrw64fjh9y-source', since path '/nix/store/24mcf4vx1wn2srghzwr5q8r2md1ql053-source.drv' is not valid, at /nix/store/p3fpbsnkj0llqyg3w4nf3slqv7fy1zmv-home-manager/home-manager/tests/default.nix:14:1`
<paulvictor> Looks like something's messed up with my home-manager config
<paulvictor> Can someone help?
<pie___> Mic92: i think there are some long standing gripes with qt things, would be super nice if someone managed to do something about it ;P
<das_j> pie___: I know ;) The full call is: nix-env --readonly-mode -f '<nixpkgs>' -I nixpkgs=${(loadNixpkgs release).path} -I nixpkgs-overlays=${<helsinki/4pkgs>}/default.nix -qa --json
<das_j> That returns almost the same list that is used for nixos.org
<Mic92> pie___: someone (tm)
neminis has quit [Quit: Page closed]
<pie___> das_j: cool
<pie___> das_j: will it list unfree packages
paulvictor has quit [Quit: WeeChat 2.3]
agander has joined #nixos
strobelight_ has joined #nixos
strobelight is now known as Guest11639
strobelight_ is now known as strobelight
Guest11639 has quit [Ping timeout: 268 seconds]
<das_j> pie___: Damn... I'll need to do that
<{^_^}> [nixpkgs] @dotlambda closed pull request #53224 → python37Packages.pydot: 1.4.0 -> 1.4.1 → https://git.io/fhqbR
<{^_^}> [nixpkgs] @dotlambda merged pull request #52523 → python.pkgs.graphviz: hardcode path to graphviz's bin/ → https://git.io/fpjmb
<{^_^}> [nixpkgs] @dotlambda pushed 5 commits to master: https://git.io/fhZZP
tzemanovic has joined #nixos
<gchristensen> pemeunier: ping?
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @smaret closed pull request #53577 → gildas: 20181201_a -> 20190101_a → https://git.io/fhGzC
o1lo01ol1o has joined #nixos
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<das_j> pie___: Hmm, it seems like NIXPKGS_ALLOW_UNFREE=1 is ignored by nix-env in this case :/
tzemanovic has joined #nixos
<das_j> never mind, my browser had it cached
<das_j> Unfree packages work
<pie___> ah
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<das_j> Do you want any of the code?
<pie___> sure why not
<das_j> Okay, but it's not that good^^
o1lo01ol1o has quit [Ping timeout: 252 seconds]
psy3497 has joined #nixos
babic has quit [Remote host closed the connection]
<psy3497> Anyone can tell me how to use "nix copy" to copy to a machine over ssh that has the nix-store not in the default place?
<psy3497> I tried this but it does not work:
babic has joined #nixos
<psy3497> nix copy --to ssh://root@192.168.56.101?root=/mnt/nix/store /nix/store/15x24cw0dzzsw653hpk1mi9y3gjx8nif-nixos-system-vm-enc-19.03pre-git
<LnL> gchristensen: oh, you're working on a tags daemon?
babic has quit [Remote host closed the connection]
<gchristensen> LnL: sort of idly in spare minutes
<psy3497> If nobody knows, anyone knows how to create a single archive out of a closure? So I can transfer that file instead?
<clever> psy3497: one sec
<symphorien> tar cvf $(nix-store -qR /nix/store/....-foo)
<clever> this is a nix function, that will do what symphorien for you
<psy3497> interesting! thanks I'll take a look!
<psy3497> thanks symphorien clever
<clever> this nix function also generates symlinks at the root of the tar, so you dont have to go fishing in the new /nix/store/ to find what you wanted
<gchristensen> LnL: though right now, really, I'm just learning how the nix remote build protocl is formatted
<LnL> gchristensen: ah yeah, the path also makes me think it's not c++
silver has joined #nixos
siers has quit [Quit: ZNC 1.7.1 - https://znc.in]
<gchristensen> :)
siers has joined #nixos
dslegends has joined #nixos
agander_ has joined #nixos
<pie___> tags daemon?
agander has quit [Ping timeout: 244 seconds]
<siraben> clever: do you know what might causing the failed build of tilp?
<disasm> I updated nixpkgs to latest unstable, and now systemctl --user outputs Failed to list units: Process org.freedesktop.systemd1 exited with status 1
knupfer has joined #nixos
<disasm> Anyone else seeing this behavior? Should I file a github issue? I see back in 2015 this happened with a systemd update: https://github.com/NixOS/nixpkgs/issues/11480
<{^_^}> #11480 (by DamienCassou, 3 years ago, closed): systemctl --user stopped working
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/3cec2249aa6 (from 77 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<wedens> why `zsh-files` disappear from the store after reboot? https://paste.ee/p/BFlNe (minified configuration) they're referenced in zshrc by substituting `@my_zsh_files@`. am I missing something ovsious?
agander_ is now known as agander
<pie___> wedens: whats mkafter
<psy3497> clever: once I made the tar and sent it over to a different host, how do I extract it in the /nix/store?
<psy3497> considering /nix/store is read-only
<wedens> I think it's being GC'd. is there auto-gc on startup or shutdown?
<psy3497> df
<pie___> wedens: im not an expert but if its part of your configuration it shouldnt be gc-d? also i dont think theres a gc by default. maybe /tmp gets cleared or something and some things in /etc may get rebuilt, i dont remember exactly, but i dont think theres much more than that
<wedens> pie___: it affects merging order. makes it the last
<pie___> merging order?
<wedens> merging of modules options
<wedens> this one is concatenated. so it'll be the last thing to be appended
humanoyd has joined #nixos
drakonis has joined #nixos
humanoyd is now known as Guest12590
<wedens> i's indeed being removed by GC. why?
<wedens> is there some special handling for paths?
agander has quit [Ping timeout: 268 seconds]
<disasm> "${./files}" I don't think makes a gc-root
<disasm> if that were just ./files I think you'd get a gc root
<wedens> disasm: no, it's still being GC'd :/
lihop has joined #nixos
Guest12590 has quit [Quit: WeeChat 2.3]
<clever> psy3497: if there is a store on the remote machine already, any attempt to unpack into it will have problems, nix will try to delete it during GC
<psy3497> ok then let's say there's no pre-existing nix-store
<clever> psy3497: the tar i gave, and symphorien's tar are only for when nix isnt present on the remote end
<psy3497> in that case I just unpack it and that's it?
<clever> yep
<clever> just unpack it directly in /
<psy3497> Sorry I guess I should have made my use-case clear.
<psy3497> I am installing a fresh computer with NixOS
sinner has joined #nixos
<psy3497> I built the NixOS configuration on a different host
<clever> nix will also consider all of those files are not present
<clever> and nix itself wont use them
sinner is now known as Guest41314
<psy3497> I want the new computer to start with that configuration, and I don't want it to access the internet nor build anything, just use the closure I prepared in advance
<clever> psy3497: let me double-check something
<psy3497> I can access the computer with ssh from installation iso
<exarkun1> What's going on with this? builder for '/nix/store/946bay5wcgzvlglwhapclrsyajy7c8cc-gcc-7.3.0.drv' failed due to signal 9 (Killed); last 10 log lines:
<psy3497> I partitioned and mounted the file system, nixos is not installed there. I want it to start fresh with my configuration. Thanks clever.
<clever> psy3497: then you may just want something like `nix copy` or `nix-copy-closure`
<clever> exarkun1: double-check dmesg
<psy3497> I tried to use nix copy from the start
<psy3497> My original question was how do I use nix copy to copy to that hosts's /mnt/nix/store
ben has quit [Quit: Reconnecting]
<clever> psy3497: i have given an example on exactly that a few months ago, let me find it
<psy3497> Cool thanks.
<exarkun1> oom :(
hyper_ch2_ has joined #nixos
ben has joined #nixos
hyper_ch2 has quit [Ping timeout: 256 seconds]
lihop has quit [Ping timeout: 268 seconds]
<clever> psy3497: i keep the irc logs on an old machine, and grep takes forever, lol
<psy3497> Is there anyway for me to fish this information?
<psy3497> The documentation of nix copy is super short and contains NOTHING of that
<psy3497> I even tried to look at the source
<das_j> Is there a way to dynamically build $NIX_PATH imports? Something like <nixpkgs/ + ${packagePath}> ?
<clever> psy3497: nix copy operates on store URI's, which are under-documented
iyzsong has quit [Ping timeout: 240 seconds]
<psy3497> I've looked just about anywhere online and cannot find anything but a single github question which used a "local?root=" syntax with nix copy
<clever> psy3497: local?root is close to what you want, but there is a variant i'm forgetting
<psy3497> to which I've found documentation nowhere so can people figure it out except than by being versed with the source code of nix.
<psy3497> clever: how did you get to know all this?
<clever> psy3497: searching the irc logs for every instance of `nix copy` and cateloging all examples i can find, lol
<AK> How to install packages from github/nixos/nixpkgs
<symphorien> AK: can you explain what you intend to do ?
<AK> like I wanna install font-awesome-5 to installed through system configuration file.
<psy3497> Where online can I search all irc logs?
<{^_^}> [nixpkgs] @ivegotasthma opened pull request #53698 → djangorestframework-jwt: init at 1.11.0 → https://git.io/fhZnD
<clever> psy3497: in my case, i was just doing a grep on my local ones, but a link to the full logs is in the /topic
<psy3497> clever: thanks
<symphorien> AK: something in the lines of fonts.fonts = [ pkgs.font-awesome_5 ];
<clever> psy3497: found it!
<clever> nix copy --to ssh://root@target?remote-store=local?root=/mnt /nix/store/hash-nixos
<psy3497> clever: holy! How the hell is a man supposed to know that? THANKS!
<clever> psy3497: this tells nix copy, to open the URI "ssh://root@target?remote-store=local?root=/mnt" and copy a given thing into it
ubert has quit [Ping timeout: 250 seconds]
<clever> on the remote machine, nix is then told to open the URI "local?root=/mnt"
<AK> symphorien: what if desired font isn't in nixos repos. how can I install something from github repo?
<clever> psy3497: after that, you just need to set the profile with nix-env, then chroot with nixos-enter, and run switch-to-configuration boot
ubert has joined #nixos
<symphorien> AK: you can either package it for nix (it should not be too difficult for a font) or install it imperatively by hand in your home directory (like on any other distro)
<{^_^}> [nix] @0mp opened pull request #2618 → Escape square brackets in configure.ac → https://git.io/fhZn9
<psy3497> clever: thank you very much!
fendor has quit [Ping timeout: 268 seconds]
Guest41314 has quit [Ping timeout: 272 seconds]
psy3497 has quit [Quit: WeeChat 2.3]
<travelion> Does anyone know if there are any examples of a nixos install on a single disk that use the native encryption in zfsUnstable? The wiki has an example for it, but the default installation iso doesn't have `boot.zfs.enableUnstable` set.
fendor has joined #nixos
<{^_^}> [nixpkgs] @dotlambda pushed to master « esptool: 2.5.1 -> 2.6 »: https://git.io/fhZnh
agander has joined #nixos
kochev has quit [Ping timeout: 245 seconds]
<srhb> travelion: You can just enable it. I used to use it.
<srhb> (at least, if the kernel is compatible. Otherwise you can roll your own installer)
<travelion> Gotcha, so I can configure it with a regular pool/datasets and then enable after install?
<clever> travelion: you can edit the configuration.nix on the livecd, after booting, and `nixos-rebuild test`
<srhb> travelion: No, you need to enable it in the installer.
<srhb> Like that ^
<travelion> So I tried that, but it doesn't seem that the newer version of zfs is loading. At least there's nothing in dmesg about it loading 8. Though I was trying to use "switch" not test.
erictapen has joined #nixos
<DigitalKiwi> i had to build my own image to get zfsUnstable to work
<clever> travelion: you also have to `rmmod zfs` and `modprobe zfs` to reload the new version
<clever> travelion: nixos doesnt reload kernel modules on switch
<clever> travelion: other modules like spl may also have to be unloaded, before you load zfs
<travelion> Ahhh, that makes sense. DigitalKiwi: I started messing around with that but I was getting issues with the nixos-build chain so I came here. :P
<{^_^}> [nixpkgs] @makefu opened pull request #53699 → exfat-nofuse: fix build for 4.18 → https://git.io/fhZcC
erictapen has quit [Ping timeout: 272 seconds]
<DigitalKiwi> other people have had the same experience too
frigate_freedom has joined #nixos
<frigate_freedom> Hello guys! I have question again.
<DigitalKiwi> so either i (and others) are too stupid to figure out how to do the thing that the people that say it should work with the rebuild-switch with the downloadable image or it doesn't actually work. i had other problems with the images too and was able to build one that worked so to save my ego i'm going with it doesn't work
<DigitalKiwi> *shrug*
<travelion> I didn't expect it to be super easy, as there's a lot of warnings about it not being production ready, but I was hoping to get rid of the number of layers luks adds to stuff.
<DigitalKiwi> https://github.com/a-schaefers/themelios i found this useful to help
erictapen has joined #nixos
b1000101 has joined #nixos
<frigate_freedom> I have pidgin with telegram-purple installed via home-manager. It crashes after login to telegram. So I want to send debugging information to pidgin creators. They say to use gdb, but gdb says, that "~/.nix-profile/bin/pidgin": not in executable format: file format not recognized"
<travelion> I saw that, but doesn't he mention that native encryption isn't supported yet?
<DigitalKiwi> i changed it :)
<frigate_freedom> How can I make gdb work with pidgin?
knupfer has quit [Remote host closed the connection]
<b1000101> hi! is there something similar to nixui or a followup project like it? I'm trying to push NixOS to common linux users as I absolutely despise Mint and a nice GUI "software installer/channel switcher" would be extremely helpful.
agander has quit [Ping timeout: 246 seconds]
random_yanek has quit [Quit: random_yanek]
<sphalerite> b1000101: not really.
<travelion> Haha, that would do it. It is a good starting point. Is that how you made the iso?
<b1000101> sphalerite: oh hi sphalerite, how are you doing? Were you at 3C?
knupfer has joined #nixos
<avn> Folks! I have silly question, where static routes should be kept in configuration.nix (option)
<sphalerite> b1000101: o/ no, I wasn't
<DigitalKiwi> travelion: no
<sphalerite> avn: networking.interfaces.<name?>.ipv4.routes I'd guess
<sphalerite> (or ipv6 as appropriate)
erictapen has quit [Ping timeout: 250 seconds]
<b1000101> sphalerite: I noticed there was a NixOS assembly when leaving :) ...isn't there a plan/need for something like the nixui or not really?
<DigitalKiwi> travelion: i did like the standard one that you can find how to do in the manual but that was mostly because i didn't look too hard at his project >.>
<sphalerite> b1000101: not really AFAIK, because the people who might implement such a UI don't feel enough need for it :p
erictapen has joined #nixos
<DigitalKiwi> travelion: dunno if it helps but this is what i did for that https://dpaste.de/LAuK
<avn> sphalerite: thanks!
<travelion> DigitalKiwi: Fair enough. It shouldn't be that complicated, I just need to dig into it. That does help.
<DigitalKiwi> it took me a while to get to that :(
<DigitalKiwi> so if you're as bad at nix as i am that may save you a few hours of trial and error ;)
<gchristensen> can anyone run this command twice and send me the output: docker run --rm nixos/nix:2.1.3 nix-instantiate --eval -E 'fetchTarball http://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz'
<b1000101> sphalerite: right, yeah...makes sense though it would be nice to have to get more people onboard == better world :)
<sphalerite> gchristensen: The program ‘docker’ is currently not installed. You can install it by typing:
<sphalerite> nix-env -iA nixos.docker
<sphalerite> both times ;)
<gchristensen> lol
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
o1lo01ol1o has joined #nixos
<DigitalKiwi> ^^same
<gchristensen> *sigh*
<gchristensen> can people with docker enabled do that? :P
<ckauhaus> real pros at work here ;-)
<sphalerite> b1000101: yeah… but it's not something any particular company has needed or anything, so all the attempts have been hobby projects that their respective authors got bored of
<gchristensen> a colleague of mine is seeing the second run fail with tar: can't open '/nix/store/5ngwfk73bwnpyn2cy2kqfn01xqzs7ggy-source': No such file or directory
pareidolia has joined #nixos
fendor has quit [Ping timeout: 245 seconds]
romildo has joined #nixos
<sphalerite> b1000101: and at the same time, people unwilling to figure out how to use the CLI are unlikely to be happy nix/nixos users in general
<srhb> gchristensen: That sounds bizarre and I cannot reproduce it.
o1lo01ol1o has quit [Ping timeout: 264 seconds]
<gchristensen> same, and I can't imagine where to start reproducing.
<b1000101> sphalerite: got it... that actually answers a question I've been given recently. What is the motivation for the contributors. Clearly, a project like the nixui would not benefit a team or an individual and would be purely altruistic
<sphalerite> b1000101: I think a probably more useful approach is the one shown in "making nix ./pleasing to use at work"
<gchristensen> srhb: what is your root fs?
<srhb> gchristensen: zfs
fendor has joined #nixos
<gchristensen> same
<gchristensen> anyone with an ext4 root and docker enabled available to test something?
<sphalerite> b1000101: as in lower effort to implement and more motivation to complete and maintain it
<gchristensen> sphalerite: maybe you could install docker to test it?
<sphalerite> gchristensen: I'm on zfs too
<gchristensen> damn
<sphalerite> gchristensen: but I could create an ext4 filesystem on a zvol for /var/lib/docker I suppose?
<gchristensen> oooo
<b1000101> sphalerite: you're right...I'm actually trying out NixOS on "basic" users and to my surprise they're not hating it :) ...I had hard times from the beginning but it saves me a lot of headaches as admin and since they usually don't need to install anything, it's fine... the problem is, when there's an intermediate linux user who knows his way around debian-like systems and can't install binaries, search for packages, etc.
<gchristensen> sphalerite: I can do that, thanks for the idea
<sphalerite> \o/ I helped without having to get docker
<b1000101> sphalerite: sorry for starting a more philosophical than technical discussion :)
frigate_freedom has quit [Ping timeout: 256 seconds]
<sphalerite> b1000101: yeah, I don't think a GUI is a solution to either of those problems either really. For searching for packages, point them to `nix search` instead of `apt search` :)
hyper_ch2_ has quit [Ping timeout: 256 seconds]
<travelion> clever, shrb, DigitalKiwi: thanks for the help. I think I know which direction to go down the rabbit hole now.
<sphalerite> b1000101: and nothing wrong with philosophical discussions ;)
erictapen has quit [Ping timeout: 252 seconds]
<romildo> I am packaging a program that needs a new system user. Is there any guidelines or example on how to deal with it in the derivation?
<sphalerite> romildo: you don't. That's within the purview of nixos modules
<DigitalKiwi> travelion: you can look at my fork of that thelios to see how i made zfs encrypted on it but uh... am not an expert so it might not be helpful or good :P
erictapen has joined #nixos
<DigitalKiwi> my config has changed a lot since then and haven't pushed to github...
<romildo> sphalerit, and what is an easy example of a nixos module which creates a new system user?
* DigitalKiwi short attention span to projects :<
<clever> romildo: that example is in the default configuration.nix file
<b1000101> sphalerite: sure, that's what I'm doing at the moment, but I still think a GUI would help. At least to understand (very easily/graphically) how channels work and what packages are currently in the system, etc., etc. ...purely for visualization purposes. But I guess if that's something that I'm concerned with, the best way to address it would be to do it myself :).
<sphalerite> b1000101: feel free ;)
drakonis has quit [Read error: Connection reset by peer]
<b1000101> sphalerite: :)))
<travelion> DigitalKiwi: I always find myself finding the solution and being ready be done with the whole process before I get around to pushing stuff back up. :P
<b1000101> sphalerite: If I were a better programmer... :)
<DigitalKiwi> my installation was like a week long ordeal and that themelios thing got me past a bunch of bs >.>
erictapen has quit [Ping timeout: 240 seconds]
<DigitalKiwi> was a month ago and haven't wiped it yet so eh guess it worked...
<travelion> That counts. I think the first time I installed arch I ended up doing it 4 times before I kept one for a while. I'm enjoying the concept of nix but I just need to get over the initial knowledge hurdle I think.
erictapen has joined #nixos
knupfer has quit [Ping timeout: 246 seconds]
<wedens> how do I reference a directory without making a derivation so that it won't be GC'ed
<wedens> I mean without `mkDerivation` and using it as src
<DigitalKiwi> oh you're an arch user eh
smolboye has quit [Read error: Connection reset by peer]
smolboye_ has joined #nixos
<ottidmes> wedens: not quite sure what you mean, you do not mean just "${./dir}" ? than ./dir will be copied to the store
<srhb> wedens: It's not really about mkDerivation vs not, it's about having an actual root.
<srhb> wedens: How do you eventually install the thing?
<DigitalKiwi> 14:54 phrik: did you know that I use archlinux? https://warosu.org/data/g/img/0435/43/1407939189404.png
<travelion> Have to switch now since arch isn't hipster enough :D
<DigitalKiwi> i try to avoid it because of the ops and users :|
<wedens> ottidmes: it'll be copied in both cases, but there won't be a GC root
<travelion> We've had a lot of problems with some of the maintainers lately. To the point where a lot of my coworkers are moving to other distros.
<ottidmes> wedens: I am not sure what you are doing, so I cannot really help
<wedens> srhb: I use store path in zshrc as a string. it's just being substituted by substituteAll
<srhb> wedens: Ask yourself this: Which part of your active system is referencing that (store) path?
<DigitalKiwi> travelion: o rly like what?
<srhb> wedens: Is your zshrc generated via nix and installed via nix (in your profile, or the system profile eg.)?
<gchristensen> DigitalKiwi, travelion: that may not be a good conversatino to have in #nixos
<DigitalKiwi> but we can't have it in #archlinux they'll ban me :<
<wedens> srhb: that's the problem. it ends up being just a string in zshrc. I'm not sure how to implement it better. zshrc is managed by home-manager
<srhb> wedens: A string as in /nix/store...?
<gchristensen> #nixos isn't the place to dog on other distros. you can have it in private, for exmple
<wedens> srhb: yes
<srhb> wedens: That should be sufficient to prevent garbage collection.
<DigitalKiwi> fun hater :*
<srhb> Something else is going on. Time to share your code :)
<gchristensen> I don't see myself that way, but maybe so
<wedens> srhb: I've already shared relevant chunk :) https://paste.ee/p/BFlNe and in zshrc it's a bunch of lines like `source @my_zsh_files@/prompt.zsh`
<srhb> wedens: Sorry, I missed that.
jabranham has joined #nixos
<wedens> there is no difference between "${./files}" and ./files. it'll end up being gc'ed anyway
<srhb> wedens: And that renders as my_zsh_files = /nix/store/...?
<srhb> wedens: Yes, nor should there be a difference.
iqubic` has quit [Remote host closed the connection]
<wedens> srhb: `source /nix/store/hw57rm2sc8m4knq4fghmdsm2s5qlq28a-files/prompt.zsh` that's how it looks like in the final zshrc
erictapen has quit [Ping timeout: 246 seconds]
<wedens> but as soon as I reboot or invoke GC manually, this path no longer exists
<srhb> wedens: I'm unaware of any mechanism that collects garbage on reboot, odd.
<srhb> wedens: Regardless, if that is installed via home-manager and thus has a live root through home-manager's profile (or however that works) garbage collection of that store path _should_ be prevented.
<srhb> Check its roots manually perhaps?
pointfourone has joined #nixos
pointfourone has quit [Client Quit]
<wedens> I have `nix.gc.automatic = true;` if it matters
<gchristensen> that'll do ya :P
aswanson has quit [Quit: WeeChat 2.2]
<srhb> That should only run once a day iirc, regardless of reboots.
erictapen has joined #nixos
<gchristensen> ah, hrm
<srhb> But anyway, the fact that manual garbage collection removes it is sufficient to tell us that something is up.
<srhb> wedens: nix-store --query --roots /nix/store/hw57rm2sc8m4knq4fghmdsm2s5qlq28a-files -- sounds like this should have no roots for you
fendor has quit [Ping timeout: 250 seconds]
johanot has quit [Quit: leaving]
<wedens> yeah. it lists no roots (after some "removing stale link from .." messages)
romildo has quit [Quit: Leaving]
<arianvp> does nixos package SameKernel?
<srhb> wedens: I can't reproduce this at all. If I include an arbitrary directory in initExtra somewhere, the dependency is correctly picked up by Nix. How do you activate the config? home-manager switch?
<wedens> srhb: nixos module
<srhb> wedens: so nixos-rebuild switch?
<wedens> so, nixos-rebuild switch
<wedens> ye
<srhb> OK. I have no idea.
<srhb> wedens: But it's not about derivation vs "" vs ${} -- the fact that the nix store path is there should suffice.
<wedens> perhaps `readFile` somehow affect it?
<wedens> let me try something ...
o1lo01ol1o has joined #nixos
<wedens> yeah. `readFile` seems to cut off dependency graph or something like that
<wedens> srhb: https://paste.ee/p/uX7Qt this way it's not being GC'ed
<srhb> I didn't even see the readFile.
<wedens> :)
<clever> wedens: readFile happens at eval time, and just returns a string with no deps
<clever> wedens: you probably dont want to be using readFile
<wedens> clever: yeah, I can just `source` the path produced by `substituteAll`, but I'd rather have zshrc "glued". that's why I went for `readFile`
<clever> dont see any reason why you cant
<clever> just `source ${foo}`
erictapen has quit [Ping timeout: 244 seconds]
erictapen has joined #nixos
<ivegotasthma> I created my first PR to nixpkgs, how soon can I see it getting merged? https://github.com/NixOS/nixpkgs/pull/53698 I have several python libs I want to package, that depend on this one.
<{^_^}> #53698 (by ivegotasthma, 1 hour ago, open): djangorestframework-jwt: init at 1.11.0
knupfer has joined #nixos
<wedens> clever: I can do that in that case (i'd prefer not to, but it's not that important). but suppose I can't (e.g. there is no "include"-like thing). how would I do that (concatenate)?
<arianvp> I am writing a blog about reproducible builds
<arianvp> but need a trivial example of a non-reproducible build in Nix
<arianvp> but it's pretty hard due to sandboxing. any idea how to make a small bash script non-reproducible?
<arianvp> maybe something with threads?
<clever> wedens: you could also `cat ${file1} ${file2} > $out/file3`
<ivegotasthma> timestamp?
<arianvp> time is set to 1970 in nix
<arianvp> :(
<ivegotasthma> generate a random number?
<Yaniel> is $RANDOM fixed?
<Synthetica> I also asked in #haskell, but maybe someone here knows: "Is there a highlighting lib [for Haskell] with support for Nix? Kate and Skylighting both don't seem to support it"
<Ankhers> Does anyone know how to delete the nixbld users on OSX?
griff_ has joined #nixos
<ivegotasthma> Ankhers: the way you delete any other user on OSX?
<Ankhers> ivegotasthma: I don't see them listed under system preferences.
<ivegotasthma> Ankhers: cat /etc/passwd
erictapen has quit [Ping timeout: 268 seconds]
<ivegotasthma> and use userdel
<arianvp> $RANDOM is fixed
<arianvp> okay I just spawned 20 processes that write a letter
<arianvp> that works
aswanson has joined #nixos
<{^_^}> [nix] @edolstra merged pull request #2618 → Escape square brackets in configure.ac → https://git.io/fhZn9
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/fhZCx
<Ankhers> Weird. They don't show up there, but they show up elsewhere.
fendor has joined #nixos
chessai has joined #nixos
endformationage has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
fendor has quit [Ping timeout: 250 seconds]
<wedens> what's the use case for `symlinkJoin`?
tilpner has joined #nixos
<gchristensen> here are some examples, wedens https://search.nix.gsc.io/?q=symlinkJoin&i=nope&files=&repos=
<arianvp> ah turns out it wasnt my fault
<arianvp> seems to be a bug in nix T_T https://github.com/NixOS/nix/issues/2619
<{^_^}> nix#2619 (by arianvp, 1 minute ago, open): Nix 2.0 deterministic build options don't do anything
dbmikus_ has joined #nixos
<arianvp> been fighting this for hours *sigh*
tzemanovic has joined #nixos
<pbb> Hi, does anyone know how I can find out what module/package pulls in something, in this case xterm into my user profile?
danielrf has joined #nixos
<pbb> actually I can see that xterm is in the system profile with nix-store -q --tree, but it doesn't seem to be a dependency of anything
<pbb> so I guess it is added to the system profile by some module I enabled?
<wedens> gchristensen: I've seen it being used, but I'm not sure I understand what it does or what problem it solves. is it to group binaries of multiple derivations?
agander has joined #nixos
<gchristensen> yea
o1lo01ol1o has joined #nixos
o1lo01ol1o has quit [Ping timeout: 250 seconds]
<wedens> gchristensen: I'm looking at pkgs/applications/misc/zathura/wrapper.nix and I don't understand what symlinkJoin does there
Dedalo has quit [Ping timeout: 252 seconds]
<gchristensen> ot sure
griff_ has quit [Quit: griff_]
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux: 4.9.148 -> 4.9.149 »: https://git.io/fhZWo
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « linux: 4.9.148 -> 4.9.149 »: https://git.io/fhZWK
ben has quit [Quit: leaving]
ben has joined #nixos
o1lo01ol1o has joined #nixos
erictapen has joined #nixos
<ToxicFrog> telnetd is missing from the inetutils package now for some reason.
<ToxicFrog> Oh wait, no, it just got moved from bin/ to libexec/
fendor has joined #nixos
init_6 has quit [Ping timeout: 246 seconds]
o1lo01ol1o has quit [Ping timeout: 268 seconds]
griff_ has joined #nixos
<{^_^}> [nixpkgs] @ju1m closed pull request #46792 → nslcd: restart when nslcd.conf changes and let pwdutils tools use libnss_ldap.so → https://git.io/fADti
<ToxicFrog> No, that's telnetd, which is not the same as in.telnetd, which is the one I actually need. Argh.
Dedalo has joined #nixos
drakonis has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « linux: 4.14.91 -> 4.14.92 »: https://git.io/fhZlf
o1lo01ol1o has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux: 4.14.91 -> 4.14.92 »: https://git.io/fhZlT
<wedens> ToxicFrog: isn't telnetd in busybox package?
<sphalerite> ,locate in.telnetd
<ToxicFrog> wedens: it's probably also in busybox, but telnetd and in.telnetd are both normally in inetutils and that's where I've always called them from.
<{^_^}> Couldn't find in any packages
<ToxicFrog> It looks like I can in fact use plain telnetd, it just takes different arguments from in.telnetd
humanoyd has joined #nixos
humanoyd is now known as Guest59192
pie___ has quit [Quit: Page closed]
pie___ has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #53699 → exfat-nofuse: fix build for 4.18 → https://git.io/fhZcC
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fhZls
<wedens> ToxicFrog: I don't see in.telnetd in inetutils
<ToxicFrog> wedens: it was in there last year, not sure when it got removed because the service that depends on it gets used pretty rarely
* ToxicFrog checks journalctl
<pbb> Is there some way to use the xserver module but not install the packages in the system profile? I want to use xinit and have it all in my user profile only.
<{^_^}> [nixops] @AmineChikhaoui merged pull request #1075 → ec2: fix broken nixops check with NVMe → https://git.io/fhGjX
<{^_^}> [nixops] @AmineChikhaoui pushed 2 commits to master: https://git.io/fhZlW
<ToxicFrog> wedens: ok, looking at my logs, it was apparently there June-ish of 2018 and gone by November
<klntsky> I am writing a derivation for a python app, and I need to change the path here https://github.com/NixOS/nixpkgs/blob/c2950341d038995bf46a7b72db961bb3d3e9ac12/pkgs/development/libraries/geoip/default.nix#L4 to be set to my build directory. What's the best way?
<{^_^}> [nixpkgs] @aanderse opened pull request #53702 → nixos/httpd: add options sslCiphers & sslProtocols → https://git.io/fhZll
fendor has quit [Ping timeout: 250 seconds]
ddellacosta has joined #nixos
periklis has quit [Remote host closed the connection]
cyounkins has joined #nixos
erasmas has joined #nixos
agander has quit [Ping timeout: 240 seconds]
mariel__ has quit [Remote host closed the connection]
mariel__ has joined #nixos
<wedens> klntsky: geoip.override { geoipDatabase = "..."; }
rauno has joined #nixos
<{^_^}> [nixpkgs] @vbgl opened pull request #53703 → ocamlPackages.ocp-indent: 1.6.1 -> 1.7.0 → https://git.io/fhZl4
rfold has quit [Quit: Page closed]
mariel__ has quit [Remote host closed the connection]
mariel__ has joined #nixos
<klntsky> @wedens: and what should be in "..."? I use buildPythonApplication, don't see where the current path is mentioned.
<wedens> klntsky: "${./db}", I guess
<duairc> gnome-keyring has a file /etc/xdg/autostart/gnome-keyring-ssh.desktop, and it gets symlinked to /run/current-system/sw. Is there a way from configuration.nix to declaratively add a single line to that file?
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux: 4.20 -> 4.20.1 »: https://git.io/fhZlM
<symphorien> override gnome-keyring with postFixup = ''echo foo >> $out/etc/xdg/autostart/...''
<duairc> symphorien: This wouldn't be the worst thing in the world, but it would mean I'd have to pointless recompile everything that depends on gnome-keyring. There isn't a way to just change the file that gets symlinked in /run/system/sw ?
<duairc> *current-system
<{^_^}> [nixpkgs] @dtzWill opened pull request #53704 → utillinux; 2.33 -> 2.33.1 → https://git.io/fhZlF
<sphalerite> duairc: yes
o1lo01ol_ has joined #nixos
<sphalerite> duairc: that is, there is a way
o1lo01ol_ has quit [Client Quit]
<symphorien> you can also install (as in, add to environment.systemPackage) a package with higher priority containing the patched file
<sphalerite> just make a derivation that creates that path, using pkgs.writeTextFile for instance, and give it a high meta.priority
ubert has quit [Remote host closed the connection]
Dedalo has quit [Ping timeout: 250 seconds]
ThatDocsLady_ has joined #nixos
<duairc> And I could even make it take gnome-keyring as an input and get the file it built out of it
<klntsky> wedens: it does not work.
mariel__ has quit [Read error: Connection reset by peer]
<duairc> Is there an index where I can find functions like pkgs.writeTextFile and corresponding documentation?
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « linux: 4.19.13 -> 4.19.14 »: https://git.io/fhZ8I
fusion809 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux: 4.19.13 -> 4.19.14 »: https://git.io/fhZ8t
gagbo has joined #nixos
<{^_^}> [nixpkgs] @vbgl opened pull request #53705 → coqPackages.category-theory: bound build parallelism → https://git.io/fhZ8s
random_yanek has joined #nixos
random_yanek has quit [Max SendQ exceeded]
<klntsky> duairc: do grep to find the definitions and read the comments. look into pkgs/build-support
random_yanek has joined #nixos
<duairc> How do I declaratively say that one package should have a higher priority than another?
Dedalo has joined #nixos
<symphorien> with meta.priority iirc
<ottidmes> duairc: addMetaAttrs { priority = pkg2.meta.priority - 1; } pkg1, now pkg1 has a higher priority (lower value) than pkg2
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/70af21236d8 (from 56 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
b1000101 has quit [Quit: Page closed]
<{^_^}> [nixpkgs] @primeos merged pull request #53603 → iproute: 4.19.0 -> 4.20.0 → https://git.io/fhGS9
<{^_^}> [nixpkgs] @primeos pushed 2 commits to staging: https://git.io/fhZ88
sigmundv_ has quit [Ping timeout: 252 seconds]
irdr has quit [Ping timeout: 252 seconds]
Tucky has quit [Quit: WeeChat 2.2]
fendor has joined #nixos
jtojnar has quit [Ping timeout: 250 seconds]
Ariakenom has quit [Ping timeout: 246 seconds]
<bennofs[m]> Do we have standarized django packaging or should I invent my own way?
<bennofs[m]> (packaging of a web app built with django)
Ariakenom has joined #nixos
ThatDocsLady_ has quit [Ping timeout: 250 seconds]
timon37 has joined #nixos
simukis has left #nixos [#nixos]
simukis has joined #nixos
sanscoeur has joined #nixos
simukis has quit [Remote host closed the connection]
simukis has joined #nixos
jtojnar has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
endformationage has quit [Quit: WeeChat 2.3]
Watcher7 has quit [Ping timeout: 272 seconds]
endformationage has joined #nixos
Ariakenom has joined #nixos
Guest59192 has quit [Quit: WeeChat 2.3]
pita has quit [Ping timeout: 268 seconds]
cfricke has joined #nixos
ixxie has joined #nixos
<ixxie> heyo folks
<ixxie> long time no see
<ixxie> Finally fiddling with a .nix file again
<gchristensen> hey hey
<ixxie> hows life gchristensen
<ixxie> ?
<gchristensen> pretty great over here! you?
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/70af21236d8 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
knupfer has quit [Ping timeout: 252 seconds]
<ixxie> good! just sad that practical considerations made me sorta give up on using Nix/OS more extensively most of the time :( but its still my OS at hope and all
<gchristensen> right on
<ixxie> home*
<ixxie> so question time: where is this $src / $out stuff documented? I want to understand how this works
sigmundv_ has joined #nixos
<gchristensen> what specifically do you wantto know?
alex_giusi_tiri has quit [Ping timeout: 240 seconds]
lord| has quit [Read error: Connection reset by peer]
<ixxie> I am trying to do a build for my CV, which uses an R script to make a diagram. The R file is in $src/code but R importing is kinda botchy so the script wants execution to happen inside the same directory
<ixxie> but I figure cd $src && buildMyThing wouldn't work
<ixxie> because $src is immutable right?
<gchristensen> yea
<ixxie> but I could cp $src/code . ?
<ixxie> into the build environment?
<gchristensen> unpackPhase usually does that, copis it to ./
cfricke has quit [Ping timeout: 264 seconds]
<ixxie> I guess I got this build pattern randomly because it looks very convoluted
<ixxie> I am using runCommand
<ixxie> and I don't think it was made for this
<gchristensen> you probably want stdenv.mkDerivation
<ixxie> good old mkderivation yeah
<gchristensen> runCommand is for trivial stuff, like can $src | jq > $out
pie___ has quit [Quit: Page closed]
<ixxie> thanks gchristensen, I will study the nixpkgs docs and redesign approach
<ixxie> its been a few years since I made this one and I think I never got the default.nix to work then and instead just poluted my environment back then
<ixxie> this time I wanna do it right
alex_giusi_tiri has joined #nixos
<ixxie> I should switch the stupid R code to python too ^^
drakonis has quit [Read error: Connection reset by peer]
lord| has joined #nixos
<WilliamHamilton[> general/soft question: when developing haskell, I have the impression that most of the dependencies fail their test suites, and I'm always forced to write dontCheck. Is that the case for you also? Why does this happen?
pita has joined #nixos
silver has quit [Read error: Connection reset by peer]
<mdash> WilliamHamilton[: i have had this experience with python as well
<mdash> WilliamHamilton[: my general experience is that most software doesn't work
<mdash> so it's not surprising that tests fail
irdr has joined #nixos
<{^_^}> [nixpkgs] @orivej-nixos pushed commit from @orivej to master « go-mtpfs: 20150917 -> 2018-02-09 »: https://git.io/fhZ41
<WilliamHamilton[> mdash: that might be the case, but it seems to me that haskell test suites fail in nix more often than they fail on their own, in non-nix usage
<WilliamHamilton[> surely if it works it works with great effort on my part (at least once you are out the common path)
ixxie has quit [Remote host closed the connection]
Makaveli7 has joined #nixos
porrifolius has joined #nixos
silver has joined #nixos
ris has joined #nixos
alex`` has quit [Quit: WeeChat 2.3]
<clever> WilliamHamilton[: one haskell library ive seen tests fail for, wanted an api token, and internet access, to be able to run its tests
protocol has joined #nixos
Dedalo has quit [Ping timeout: 240 seconds]
protocol has left #nixos [#nixos]
<WilliamHamilton[> clever: I'm starting to believe that this kind of IO-heavy test should be put in different test-suites which are disabled by default. Wouldn't enable just the "pure" test suites solve the problem?
<WilliamHamilton[> by "pure" I mean "no crazy io"
<clever> WilliamHamilton[: yeah
<WilliamHamilton[> clever: so why is disabling the test suites not the norm in nix-haskell land?
<clever> WilliamHamilton[: there is an overlay in nixpkgs, that disables IO based tests that are known
<clever> so the pure tests can still be ran
<WilliamHamilton[> where is it/how do I use it?
<clever> it should be enabled automatically
<clever> WilliamHamilton[: this is where it joins all the overlays together to make haskellPackages, https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/haskell-modules/default.nix#L30
sanscoeur has quit [Read error: Connection reset by peer]
<WilliamHamilton[> clever: thanks, good to know! btw is there a way to disable tests everywhere? like ghcWithPackagesWithoutTests
<clever> WilliamHamilton[: you can use a normal haskell overlay, to overwrite the mkDerivation function
<clever> so when any package tries to do an mkDerivation, it winds up calling this variant
<clever> which forces a doCheck=false;
elibrokeit is now known as eschwartz
<WilliamHamilton[> that's brilliant! I have to start to use this, and I'll also throw in dontHaddock just to be on the safe side
eschwartz is now known as ztrawhcse
ztrawhcse is now known as elibrokeit
<duairc> I'm using MATE and I've been trying to disable gnome-keyring's SSH agent, because it interferes with GNUPG's one. I've successfully disabled the /etc/xdg/autostart service for it. But some further investigation has revealed that somewhere earlier in the boot, gnome-keyring-daemon (with all components, including SSH agent) is being started. I can't figure out where. I've grepped everything that looks like a
<duairc> systemd thing that I can find. How could I debug this further? I guess this is probably a systemd question more than a NixOS specific question
<dmj`> Is it possible to get nix to automatically build pkgconfig files for c libraries
<clever> dmj`: some packages put include files in weird places, there is no way for nix to guess that
<clever> dmj`: some packages need special -D flags
<ToxicFrog> duairc: does it show up in `systemctl` or `systemctl status` anywhere?
<dmj`> clever: this package just gave me the binaries pre compiled, so I have a derivation where I just copy the headers and shared objects into include and lib
<clever> duairc: also check `systemctl --user` variants of those
sanscoeur has joined #nixos
<dmj`> clever: but now I need this C library for development with autoreconf -i and there is no pkgconfig
sanscoeur has quit [Read error: Connection reset by peer]
<clever> dmj`: if the headers are in $out/include/ and the lib in $out/lib/libfoo.so, then the only thing you need is `-lfoo` at link time, and nothing else
<duairc> ToxicFrog: Aha, I knew there was something that was like a systemd version of pstree, but I couldn't for the life of me remember what it was
dermetfan has quit [Ping timeout: 268 seconds]
<dmj`> clever: right, I was able to build and run the examples, but am now trying to integrate it into a larger C++ project that is using other C libraries with pkg-configs for local development
Excape has joined #nixos
<clever> dmj`: then you should be able to just make your own with echo
<duairc> ToxicFrog: It does show up in there alright, as a child of session-3.scope
<duairc> I'm not sure what that is
JosW has joined #nixos
<Excape> Hey guys, after i updated to 18.09, my nixos doesn't boot anymore. It fails at the systemd-fsck service for the boot partition, with the error "fsck.vfat: invalid option -- 'M'". Obviously fsck.vfat doesn't know that option, whereas e.g. fsck.ext4 does
<dmj`> clever: I want something like this: nix-build '<nixpkgs>' -A ipopt && cat ./result/lib/pkgconfig/*.pc
<Excape> I've already tried reformatting the boot partition and doing a complete reinstall (with the same config)
<dmj`> but I can't just writeTextFile or nix gets confused about the ${prefix}
<dmj`> clever^
<ToxicFrog> duairc: session-foo.scope is generally a login session
<clever> dmj`: echo "foo" >> $out/lib/pkgconfig/foo.pc
<dmj`> clever: how do I escape ${prefix} in nix
<ToxicFrog> duairc: typically you'll see something like user.slice -> user-$UID.scope -> session-$PID.scope
<clever> > '' before ''${prefix} after ''
<{^_^}> "before ${prefix} after "
<ToxicFrog> duairc: So that implies that either (a) that user logged in and started it from the shell or (b) it's running as a user unit under that user's systemd instance
<dmj`> what is before and after?
<dmj`> just text/
<ToxicFrog> In the latter case, become that user and `systemctl --user status` should show it.
<dmj`> *?
<duairc> ToxicFrog: I tried that, and I get this :/
<duairc> Failed to read server status: Process org.freedesktop.systemd1 exited with status 1
<clever> dmj`: yes
<dmj`> clever: ok thanks
<dmj`> will let you know if it works
<ToxicFrog> duairc: weird. Can you pastebin the part of the root-level status tree that includes the gnome-keyring?
<duairc> ToxicFrog: Sure, one sec
sanscoeur has joined #nixos
<ToxicFrog> Ok, I'm assuming user 1000 is you, session-3 is clearly your graphical login session -- are you sure it's starting on boot, and not on login?
JosW has quit [Ping timeout: 252 seconds]
<ToxicFrog> It's not being started by systemd or it would be showing up under user@1000.service
<duairc> I had to set XDG_RUNTIME_DIR
Dedalo has joined #nixos
<ToxicFrog> Aha
<ToxicFrog> My guess here, not using MATE, is that MATE is starting it automatically on login, and also failing to properly set XDG_RUNTIME_DIR for some reason
<ToxicFrog> You might have an autostart for it somewhere in ~/.local or ~/.config
<ToxicFrog> I forget exactly where they live
<duairc> It's in ~/.config
<duairc> (autostart)
<duairc> But I don't have an autostart thing there
<ToxicFrog> There's also ~/.config/autostart-scripts and /usr/share/autostart, but I don't think the latter exists on Nix
semilattice has joined #nixos
<ToxicFrog> Hmm.
<duairc> So maybe it was misleading for me to say it starts on boot, I don't know where it starts. The thing is, there actually is autostart things in /etc/xdg/autostart for the different components of gnome-keyring-daemon, and I've disabled the SSH one, but when I look at journalctl, I see stuff labeled [xsession] complaining that it couldn't start gnome-keyring-daemon because the requested component was already
<duairc> enabled (this would be it trying to start the stuff in /etc/xdg/autostart)
imdoor has joined #nixos
<duairc> Maybe MATE is doing it, it's just I don't remember it doing this when I was using Debian
<ToxicFrog> This is, honestly, the point at which I would get out a really blunt hammer and fgrep -r "gnome-keyring-daemon --start" ~ /etc
<duairc> ToxicFrog: You'd probably want -R to go through symlinks, right? Because most of /etc on Nix is symlinks
imdoor has quit [Client Quit]
imdoor has joined #nixos
<ToxicFrog> Oh right, yes.
<ToxicFrog> Good catch.
<clever> ToxicFrog: i would want to `nix-store -qR /run/current-system | xargs grep ....`
<clever> then you dont have to follow symlinks, and you can get every single thing the current nixos could have referenced
<duairc> ToxicFrog: I have already tried that kind of thing though, no results. The fact that in the systemd status it shows up as /run/current-system/sw/bin/gnome-keyring-daemon and not /nix/store/xxxxxx/../gnome-keyring-daemon implies that it's not particularly Nix's fault I think
<ToxicFrog> clever: that would be the even blunter hammer I'd use next if this failed
<ToxicFrog> duairc: yeah, and it's not running as a systemd service either, so to me that points at MATE doing the wrong thing, but I know nothing about troubleshooting MATE. :/
smolboye_ has quit [Read error: Connection reset by peer]
smolboye has joined #nixos
imdoor has quit [Client Quit]
imdoor has joined #nixos
<duairc> clever: I will try your blunt hammer now :) Though I think I actually grepped all of /nix/store earlier, but that might have been for something else
<duairc> Binary file /nix/store/03f9d0cr3wpci47z9kx71a1386ffj3h5-mate-session-manager-1.21.0/bin/.mate-session-wrapped matches
<duairc> hmmm
rfold has joined #nixos
<clever> duairc: one sec
kvda has joined #nixos
<duairc> Well I'll just look at the source and see what's going on
<clever> duairc: nix-build '<nixpkgs>' -A mate.mate-session-manager.src -o mate.tar.gz ; tar -xvf mate.tar.gz
<clever> mate-session/msm-gnome.c:#define GNOME_KEYRING_DAEMON "gnome-keyring-daemon"
<duairc> clever: That's cool, I was doing it the hard way
<clever> mate-session/msm-gnome.c: argv[0] = GNOME_KEYRING_DAEMON;
<clever> definitely looks like its starting it
<clever> and its in a function called gnome_keyring_daemon_startup!
<duairc> Maybe it was doing this in Debian then, I can't remember how I got around it though
<clever> duairc: check the if statement near the call-site of gnome_keyring_daemon_startup
<clever> 228 array = g_settings_get_strv (settings, GSM_GNOME_COMPAT_STARTUP_KEY);
<clever> 45 #define GSM_GNOME_COMPAT_STARTUP_KEY "gnome-compat-startup"
<clever> duairc: i think this is an array of things to start
<duairc> clever: Aha! I do remmeber reading something about this alright
<duairc> There's a dconf setting for it
<clever> and you can just delete keyring from the array
<duairc> Yeah
<clever> you can also bake that into your configuration.nix, one min
o1lo01ol1o has quit [Remote host closed the connection]
<ivegotasthma> how long does it take on average for a PR to get reviewed?
<duairc> clever: You live up to your name ;)
<clever> duairc: services.xserver.displayManager.SessionCommands are ran shortly before the mate (which is on line 120), and its ran on every login
<clever> duairc: so you could do services.xserver.displayManager.sessionCommands = "dconf ....";
<clever> and then you never have to fix it again on a new install
<duairc> clever: Yeah, I definitely want to do this declaratively if I can, especially because I went through all the trouble of making a high-priority deriviation just to add a line to /etc/xdg/autostart/gnome-keyring-ssh.service to disable it by default!
o1lo01ol1o has joined #nixos
<duairc> clever: Not that I actually mind in this case, but won't that command be run every time a user logs in? In theory I only want to make it the default, and if a user wanted to enable it I'd want to respect that
<duairc> But in practice I'm the only user on the system and I don't want to enable it, so I don't care
<clever> duairc: if you look into dconf more, you may be able to generate something that mutates the "default", and then install that file into systemPackages
<clever> so the default is "right" out of the box, and it still respects changes to the config
<duairc> clever: I should probably just report this as a bug in MATE upstream to be honest, because given that there are xdg/autostart thingies that come with gnome-keyring that are enabled in MATE by default, they don't need this dconf nonsense anymore, certainly not by default
<clever> duairc: that also works
paper has joined #nixos
<paper> hi
<paper> I have a beginner question
agander has joined #nixos
<ivegotasthma> paper: :?
sanscoeur has quit [Read error: Connection reset by peer]
sanscoeur has joined #nixos
<paper> I started using nixos and nix just recently. I need to install leiningen (for clojure development) version 2.8.3. nix-env installs 2.8.1. How do I install the newer version?
smolboye has quit [Quit: WeeChat 2.2]
knupfer has joined #nixos
o1lo01ol1o has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @markuskowa merged pull request #53591 → metamath: 0.168 -> 0.171 → https://git.io/fhGP1
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fhZBK
o1lo01ol1o has joined #nixos
<__monty__> paper: The easiest way is probably to take the nix expression from nixpkgs and update it yourself, then install that.
<__monty__> Version bumps are usually quite simple though, fwiw. And you could even make it your first PR : )
<symphorien> paper: 1/ clone nixpkgs 2/ cd nixpkgs 3/ nix edit -f . leinigen 4/ change the version number 5/ change all sha256 to a wrong hash 6/ nix-build . -A leiningen and update the right sha256 7/ the new leiningen is in a result/bin dir in the cwd
<symphorien> (once nix-build . -A leiningen works)
<dmj`> clever: it worked! thanks clever!
alex`` has joined #nixos
smolboye has joined #nixos
Excape has quit [Ping timeout: 256 seconds]
<paper> wow thanks symphorien!
<{^_^}> [nixpkgs] @adisbladis merged pull request #53652 → emacsPackages.pdf-tools: 0.80 -> 0.90 → https://git.io/fhGpF
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/fhZBb
<{^_^}> [nixpkgs] @markuskowa merged pull request #53586 → pasystray: 0.7.0 -> 0.7.1 → https://git.io/fhGKZ
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fhZBN
o1lo01ol1o has quit [Remote host closed the connection]
paper has quit [Quit: Page closed]
worldofpeace has joined #nixos
Dedalo has quit [Ping timeout: 260 seconds]
sigmundv_ has quit [Ping timeout: 244 seconds]
<ToxicFrog> My approach to lein specifically is just to drop it in ~/bin and run `lein upgrade`
orivej has quit [Remote host closed the connection]
orivej has joined #nixos
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/7d6a506754e (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
hedning has joined #nixos
acarrico has quit [Ping timeout: 272 seconds]
Dedalo has joined #nixos
smolboye has quit [Quit: WeeChat 2.2]
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/7d6a506754e (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
[Leary] has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
Lears has quit [Read error: No route to host]
o1lo01ol1o has joined #nixos
smolboye has joined #nixos
<rain1> How do I specify a branch with fetchGit ?
<gchristensen> builtins.fetchGit?
orivej has joined #nixos
<rain1> oh i guess i just pass branchName
<rain1> yeah for a nix package
<duairc> How do I make nix search include haskellPackages?
tmaekawa has joined #nixos
<ottidmes> duairc: you might try and call recurseIntoAttrs on haskellPackages
<rain1> thanks
ng0 has joined #nixos
<LnL> rain1: nix-env -f '<nixpkgs>' -qaP -A haskellPackages
semilattice has quit [Ping timeout: 252 seconds]
freeman42x has joined #nixos
Dedalo has quit [Ping timeout: 250 seconds]
<gchristensen> duairc: ^
<duairc> LnL: Thanks!
<LnL> err, wrong person
smolboye has quit [Quit: WeeChat 2.2]
<LnL> you can also add an overlay that recurses, but that might make it hard to find non haskell stuff if you're searching for something else
<ottidmes> I can confirm that haskellPackages = super.recurseIntoAttrs super.haskellPackages; works though
dermetfan has joined #nixos
tmaekawa has quit [Quit: tmaekawa]
<duairc> ottidmes: What do I do with that expression? Put it in configuration.nix somewhere? If I type "nix search ghcid" then will it find it?
<duairc> Ah, you're using super, so I guess it's an overlay
<clever> duairc: for `nix search` to find it, the overlay must be somewhere in $HOME, i forget the exact path
<clever> duairc: configuration.nix only effects nixos-rebuild and nothing else
<ottidmes> duairc: yeah, it should be put in your overlay that is also used by nix-env the like, so not nixpkgs.overlays in your configuration.nix as mentioned by clever, and then searching for e.g. nix search nix-diff will result in: * nixpkgs.haskellPackages.nix-diff (nix-diff)
Lears has joined #nixos
eadwu has joined #nixos
[Leary] has quit [Ping timeout: 240 seconds]
smolboye has joined #nixos
<ottidmes> gchristensen: is it possible to access OfBorg checks of a PR before doing a force push? it seems to only allow selecting different commits, but when doing force pushes this becomes useless
<gchristensen> hmm
<gchristensen> I don't think so, because github doesn't support it?
<gchristensen> but I guess maybe ofborg could expose the info somewhere else?
<ottidmes> think so
<ottidmes> from what I remember when you asked me for feedback about the UI, most things were predetermined by github
<gchristensen> yeah
<{^_^}> [nixpkgs] @andir opened pull request #53709 → gopass: 1.8.3 -> 1.8.4 → https://git.io/fhZRE
griff_ has quit [Quit: griff_]
vk3wtf has quit [Ping timeout: 252 seconds]
drakonis has joined #nixos
<duairc> Maybe off-topic, but I just want to say that I'm really enjoying this. It's been a really hard week for me! It started when I was trying to help my friend put a new hard drive in her computer, and I somehow dd'd the contents of her old drive not onto the new hard drive, but to my own (!), overwriting my encryption key of course... I realised far, far too late. Hadn't done a proper back-up in ages either.
<duairc> I've never lost this much data and unfinished work in my life. It's been really stressful, haven't been able to get any work done either in this time. But I figured if I was going to be setting everything up from scratch anyway I might as well take the opportunity to do it on NixOS, and yeah it's been ages since I've tried out something so new with a learning curve like this, but everyone here has been so
<duairc> helpful. Haven't hung out in IRC like this since I was learning Haskell 9 years ago. The community really makes all the pain and unfamiliarity worth it, it makes easy to want to contribute and help fix the roughness around the edges rather than just be frustrated by it. So thanks everyone who has helped me over the last few days!
<simpson> Sorry to hear about your data loss. Glad you're enjoying NixOS.
<andi-> duairc: nice to hear those positive experiences. Did you do a backup yet? ;-)
<ottidmes> gchristensen: the reason I ask is that I just did a small push about the name/version of the packages in the PR, but they otherwise do not impact the build, but now the reviewer asking for the builds have to take my word for it they all passed or I would have to ask to rebuild them all again which feels annoying/wasteful to me
<gchristensen> duairc: ^.^ <3 we are so glad you are here! I'm glad you have found the community so friendly and welcoming. That is the exact thing that hooked me on NixOS a few years ago. Welcome :)
agander has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @andir opened pull request #53710 → gitAndTools.grv: 0.3.0 -> 0.3.1 → https://git.io/fhZRV
<rain1> https://github.com/NixOS/nixpkgs/issues/39658 I've got the same problem as this, Could not find the Qt platform plugin "xcb" in "" - but I'm not sure how to fix it. The linked fix seems to be about a different problem
<{^_^}> #39658 (by kisik21, 36 weeks ago, closed): cutegram cannot find Qt plugin "xcb"
<rain1> I think I need to wrap the binary with someone that sets QT_PLUGIN_PATH
<{^_^}> [nixpkgs] @andir opened pull request #53711 → ecdsautils: updated source to new location → https://git.io/fhZRo
lord| has quit [Ping timeout: 246 seconds]
orivej has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @liff opened pull request #53712 → bear: fix wrapper detection patch by checking result of find_executable → https://git.io/fhZRP
lord| has joined #nixos
orivej has joined #nixos
Makaveli7 has quit [Quit: Leaving]
Dedalo has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @andir opened pull request #53713 → websocketpp: 0.7.0 -> 0.8.1 → https://git.io/fhZRy
Synthetica has quit [Quit: Connection closed for inactivity]
sigmundv_ has joined #nixos
<{^_^}> [nixpkgs] @andir merged pull request #53710 → gitAndTools.grv: 0.3.0 -> 0.3.1 → https://git.io/fhZRV
<{^_^}> [nixpkgs] @andir pushed 2 commits to master: https://git.io/fhZR7
<{^_^}> [nixpkgs] @andir merged pull request #53709 → gopass: 1.8.3 -> 1.8.4 → https://git.io/fhZRE
<{^_^}> [nixpkgs] @andir pushed 2 commits to master: https://git.io/fhZRF
symphorien has quit [Quit: WeeChat 2.2]
symphorien has joined #nixos
<gchristensen> let's write a kernel patch where filesystem devices never appear in the same sdX order
tzemanovic has quit [Remote host closed the connection]
<hodapp> o_O
<hodapp> can't be much worse than devfs
<hodapp> who here remembers devfs?
tzemanovic has joined #nixos
<gchristensen> :|
obadz has quit [Ping timeout: 252 seconds]
tzemanovic has quit [Remote host closed the connection]
Lingjian has joined #nixos
<gchristensen> the idea being people think /dev/sdX appear in a reliable order, but they don't
tzemanovic has joined #nixos
<gchristensen> even better, let's just ditch /dev/sdX
tzemanovic has quit [Remote host closed the connection]
<hodapp> UUID all the things \o/
phreedom has quit [Remote host closed the connection]
<systemfault> label all the things? :(
tzemanovic has joined #nixos
<gchristensen> /dev/disk/by-{id,label,partlabel,partuuid,path,uuid} all the things
tzemanovic has quit [Remote host closed the connection]
<hodapp> blockchain all those things
tzemanovic has joined #nixos
<duairc> gchristensen: Haha! Is that in response to my hard drive incident? I never cared about /dev/disk/by-XXX until this week!
tzemanovic has quit [Remote host closed the connection]
<gchristensen> actually, no :) but similar pain
eadwu has quit [Ping timeout: 252 seconds]
tzemanovic has joined #nixos
<{^_^}> [nixpkgs] @andir merged pull request #53711 → ecdsautils: updated source to new location → https://git.io/fhZRo
<{^_^}> [nixpkgs] @andir pushed 2 commits to master: https://git.io/fhZRp
tzemanovic has quit [Remote host closed the connection]
<gchristensen> there is a system Ideal with which insists on a /dev/sdX naming but the hardware has many disks, so the /dev/sdX thing only causes problems
phreedom has joined #nixos
<{^_^}> [nixpkgs] @markuskowa merged pull request #53604 → nmon: 16g -> 16h → https://git.io/fhZRj
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fhZ0e
<duairc> I wish I could blame the potentially unreliable reordering of /dev/sdX for my mishap, but it wasn't even that, just pure fuck up on my part. The reason I like the /dev/disk/by-id thing is that it gives you a clear textual description of the drive that would make me think twice in a situation like that
<gchristensen> agreed
unyu has joined #nixos
Ariakenom has quit [Quit: Leaving]
<ottidmes> that was the first thing I added when writing a dd-iso shell function, allow things like /dev/sda but always show the full name and size and ask for confirmation first, it has never happened to me luckily, but my checking beforehand that I had the right name happened to be wrong plenty times
<hodapp> this would be an interesting Nix-y way to expose parts of the system that assume /dev/sdX when they shouldn't
<hodapp> but it would probably destroy a lot of things needlessly >_>
<gchristensen> I am totally on board with breaking stuff for the greater good
tdbgamer has joined #nixos
<hodapp> long as it's your hard drive and not mine
<gchristensen> lol
<hodapp> what about randomly-generated device names in /dev that change at each bootup?
<hodapp> such that a mismatched name won't nuke things
<ottidmes> gchristensen: did you fix your backups? I remember you saying that they were not as good as they should
tzemanovic has joined #nixos
<kingemp> Hello, quick question: I'm getting "invalid character" for fetchurl due to an ampersand. How can I escape? \& doesn't work
<gchristensen> ...sort of
vk3wtf has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<gchristensen> kingemp: don't escape the &, just pass another attribute: { url = "your&url"; name = "my-cool-name"; ... }
<gchristensen> ottidmes: I took more backups and set up nagger to remind me :)
o1lo01ol1o has quit [Remote host closed the connection]
simukis has left #nixos [#nixos]
epicmetal has joined #nixos
<adisbladis> gchristensen: What backup solution are you using now?
o1lo01ol1o has joined #nixos
<kingemp> gchristensen, that gives me `invalid character '&' in name '?i_agree=1&release_id=3143'`
<ottidmes> gchristensen: I would consider that "good enough" in practice, I do something similarly. At some point I really need to take the time and go through my whole system making sure that all things are backed up automatically in some fashion or the other
simukis has joined #nixos
Synthetica has joined #nixos
imdoor has quit [Quit: imdoor]
<ottidmes> kingemp: could you give you the full attrset passed to fetchurl?
<{^_^}> [nixpkgs] @jb55 closed pull request #50531 → nixos/clightning: init module → https://git.io/fpctj
<kingemp> ottidmes, just that url and a sha256
<{^_^}> [nixpkgs] @jb55 closed pull request #50382 → Add spruned application and nixos module → https://git.io/fpsYY
epicmetal has quit [Read error: Connection reset by peer]
<ottidmes> kingemp: yeah, thats the problem, gchristensen mentioned you have to add a name attribute to fix the issue
<ottidmes> kingemp: otherwise fetchurl will by default base the name of the URL passed to it, but since the URL contains characters that are considered invalid characters for Nix store paths, you get the error message
<ottidmes> kingemp: so by passing it an explicit name, you can workaround the issue
<kingemp> ohh I misunderstood, ty ottidmes and gchristensen! that works
Dedalo has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @hedning opened pull request #53714 → glib: fix libgio segfaults → https://git.io/fhZ0n
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<unyu> Sorry, noob question. I installed Xorg, xinit and XMonad, and it *almost* works: the only problem is that, when XMonad starts, it doesn't react to any keyboard or mouse events. (To kill xmonad, I have to SSH into my machine and “pkill xmonad”.) These are the relevant parts of my configuration.nix and xmonad.hs: https://gist.github.com/eduardoleon/ac2af4b5338e5ce8ac0d7004ef813305
<ottidmes> unyu: is it a laptop?
<unyu> No, desktop.
<{^_^}> [nixpkgs] @veprbl merged pull request #53713 → websocketpp: 0.7.0 -> 0.8.1 → https://git.io/fhZRy
<{^_^}> [nixpkgs] @veprbl pushed 2 commits to master: https://git.io/fhZ0C
<unyu> My wild guess is that, when you don't want X to be started automatically (I've set services.xserver.autorun = false, and installed the xorg.xinit package), you have to manually specify the xorg.xorgserver package and friends, rather than use the services.xserver option in configuration.nix...
<ottidmes> unyu: maybe add: services.xserver.desktopManager.xterm.enable = false;
<unyu> Thanks, will try.
<ottidmes> also check your journal for clues: sudo journalctl -e -n 30000
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<{^_^}> #47773 (by xeji, 14 weeks ago, merged): nixos/display-managers/startx: init
Lingjian has quit [Read error: Connection reset by peer]
Lingjian has joined #nixos
<ottidmes> unyu: the PR pointed to by ivan seems to suggest that xmonad does not work well with the default display manager lightdm
<unyu> Yes, that's why I'm not using a display manager.
worldofpeace has quit [Remote host closed the connection]
<unyu> I set services.xserver.autorun = false, so that I can manually start xmonad with xorg.xinit.
<ottidmes> ah ok
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
<unyu> journalctl is not showing anything suspicious, but this seems reasonable, given that I'm not using it to start X.
<unyu> s/it/systemd/
hamishmack has joined #nixos
q6AA4FD has quit [Quit: ZNC 1.7.1 - https://znc.in]
<Church-> unyu: Oh hey you're a NixOS'er too
<Church-> Neat
<Church-> Sup mate
<unyu> Church-: Not much, taking a break from reading boring papers. How about you?
<ottidmes> so things you could try are using a different display manager that does work with xmonad, try and run xinit from a tty (not sure if you can just do that, never used it myself)
<unyu> Oh, I found a clue: “xauth: file /home/unyu/.serverauth.<pid?> does not exist”. This is even after I installed the xorg.xauth package.
<Church-> unyu: Writing a CI server and debating on writing a graph theory library.
<Church-> Started doing Golang Saturday, very easy to pick up.
q6AA4FD has joined #nixos
<Church-> Have to upstream some stuff to nixpkgs too
<{^_^}> [nixpkgs] @8084 opened pull request #53717 → nicotine-plus: init at 1.4.1 → https://git.io/fhZ06
<gchristensen> ottidmes: borgbackup and sometimes zfs send
<ottidmes> adisbladis: ^
<rain1> how come i cant double click a video to watch it? (in xfce4 desktop pcmanfm) I have mpv installed. I thought this worked last boot
<adisbladis> ottidmes: Thanks :)
<adisbladis> I still haven't found a backup solution I'm happy with.
<adisbladis> Granted I don't know what I'm looking for but...
<ottidmes> adisbladis: I am using https://bvckup2.com/ together with two backup server backed by Samba (for the Windows machines) and ZFS, and kept in sync with znapzend
<kingemp> archwiki has a nice rsync command for full system backup, I don't see why it wouldn't work with nixos: https://wiki.archlinux.org/index.php/Rsync#Full_system_backup
<adisbladis> ottidmes: I don't have a stable place to host servers (at least not with tons of disk) :/
<{^_^}> [nixpkgs] @hedning merged pull request #53656 → xterm: 341 -> 342 → https://git.io/fhZeI
<{^_^}> [nixpkgs] @hedning pushed 2 commits to master: https://git.io/fhZ0H
<adisbladis> kingemp: Full system backup is not required with nixos (imho)
<ottidmes> adisbladis: ah, I have one in house and one in the house of a good friend (I hold his backups and he mine)
<samueldr> I guess most "user" systems you're fine even without backing-up /var/* as long as you have your home data backed up somewhere
knupfer has quit [Remote host closed the connection]
<unyu> ottidmes: Yeah, using a different display manager works. For now this will do. Thanks!
knupfer has joined #nixos
<kingemp> adisbladis, stuff still disappears from time to time, pdfshuffler for example recently stopped being hosted by a third party and now can't be installed via nixpkgs
<ottidmes> unyu: great to hear, just in case this question comes up again or someone reads the logs having the same question, what display manager did you end up using?
<unyu> sddm
<{^_^}> [nixpkgs] @jlesquembre opened pull request #53718 → clojure: 1.10.0.403 -> 1.10.0.411 → https://git.io/fhZ0d
<adisbladis> ottidmes: I'll have to make do with external drives and the occasional drop of an external drive for larger things :(
<ottidmes> seems a good choice, it seems to support most setups
<ivan> rain1: try starting pcmanfm in a terminal and looking at the output
dermetfan has quit [Ping timeout: 246 seconds]
<rain1> ty. trying that, i don't see relevant messages
<samueldr> adisbladis: are you using something to do that external-drive backup?
<gchristensen> hmm coming up to my 3yr nixosaversary
<samueldr> if not, borgbackup is definitely good with that too
<adisbladis> samueldr: btrfs send/recv
<samueldr> oh, fancy you
<samueldr> :)
<adisbladis> samueldr: Very fancy.. ;)
<jasongrossman> Hi all. New question: I don't suppose anybody's made a derivation for the linux clients of any commercial VPN services, have they? I can't find any with "nix search" ... but there's an infinite number of possible client names, and not all of them contain the substring "vpn" (e.g. one is called "Eddie").
<duairc> Does anyone ever get intermittent errors like HTTP error 200 (curl error: Failure when receiving data from the peer); retrying in 285 ms when using Nix?
<kingemp> on an unrelated note, anyone know how source root is set for derivations? Getting a very weird source root that must be some digital vestige of copying another application's default.nix... https://gist.github.com/tbenst/87533c36bd169b08f15a7d51db3abfe7
<duairc> When it tries to download things from the cache
<gchristensen> srcroot is set to the directory created when the source is unpacked
simukis has quit [Quit: simukis]
<kingemp> gchristensen, that's what I thought but not in this case it appears
<ottidmes> gchristensen: wait, I have been using NixOS longer than you??? (let actively sure, but still...)
<adisbladis> [backups]: If anything I'd want to reduce my backup fingerprints even further. https://twitter.com/shlevy/status/1073765612726439936 sounds very appealing
<gchristensen> adisbladis: same :)
aleph- has joined #nixos
<kingemp> duairc, is there a way to clear any lingering cache? I tried -r and nix-collect-garbage to no avail
<adisbladis> But for the same reasons as not having a good solution for backing up things I don't have a spare machine to try this out on
<gchristensen> 2016-01-15 was my first day, ottidmes
<gchristensen> adisbladis: we could each host a tahoe-lafs for each other, and back up to each other's storage.
cfricke has joined #nixos
<kingemp> I originally kept the sha256 for EMBOSS thinking I'd get a sha mismatch error and then correct it (the & stopped nix-prefecth-url from working), but this downloaded directly from cache
<adisbladis> gchristensen: Hmm... That would require a stable host with lots of disk, no?
<gchristensen> ah, yes, kingemp the name and URL mean nothing when the sha256 is specified
<gchristensen> kingemp: the sha256 exactly identifies the content and the name and url don't impact the content
<gchristensen> ,tofu kingemp
<{^_^}> kingemp: 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.
<aleph-> unyu: So figure the issue or still trouble shooting?
<gchristensen> adisbladis: not sure
<gchristensen> adisbladis: can look further in to it :)
<kingemp> {^_^}, yes, I changed one digit and got the correct hash & replaced
<unyu> aleph-: I have a temporary solution. I will work on a more definitive one when I have the time.
<unyu> I have to go back to reading these annoying papers.
<kingemp> but nix-env appears to still be grabbing the old tar.gz
<aleph-> Funnn, what papers?
griff_ has joined #nixos
<adisbladis> gchristensen: It's very tempting indeed
<ottidmes> gchristensen: I am not sure what my first day was, but my first accepted contribution was 2015-11-08
cyounkin_ has joined #nixos
<{^_^}> [nixpkgs] @timokau opened pull request #53719 → python3.pkgs.graph-tool: fix with python3.7 → https://git.io/fhZEt
<adisbladis> Hmm.. I think I can pinpoint the exact day I first installed nixos :)
<samueldr> I didn't keep using it at the time, but first contribution is 2015-05-24 for me, skewing things up
<adisbladis> Also some time in 2015
cyounkins has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53610 → librealsense: 2.17.0 -> 2.17.1 → https://git.io/fhGH1
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « librealsense: 2.17.0 -> 2.17.1 »: https://git.io/fhZEm
<ottidmes> ow, I just checked the age of my /nix/var folder, seems to be 2015-10-06, how about that, never reinstalled NixOS on my desktop it seems, nice :)
<adisbladis> Oh, it was actually early 2016
<kingemp> Doh, I was copying the wrong sha hah thx
<adisbladis> ottidmes: =)
<unyu> ottidmes: Oh, your original recommendation works too (...desktopManager.xterm.enable = false), by the way. I was misunderstanding you.
unyu has quit [Quit: brb]
<adisbladis> Little did I know that installation was gonna change my life this much..
unyu has joined #nixos
<samueldr> look at that, still the same FS as on my original setup on my test machine, 2016-11-25 for my install (stat /nix/var is probably a safe bet; my /var has other dates)
fusion809 has joined #nixos
vk3wtf has quit [Ping timeout: 260 seconds]
obadz has joined #nixos
knupfer has quit [Ping timeout: 252 seconds]
unyu has quit [Remote host closed the connection]
<{^_^}> #12549 (by grahamc, 2 years ago, closed): Install less so `aws help` outputs help docs
<{^_^}> [nixpkgs] @timokau pushed to master « python3.pkgs.graph-tool: fix with python3.7 (#53719) »: https://git.io/fhZEu
<{^_^}> [nixpkgs] @timokau merged pull request #53719 → python3.pkgs.graph-tool: fix with python3.7 → https://git.io/fhZEt
keta has joined #nixos
cfricke has quit [Ping timeout: 245 seconds]
unyu has joined #nixos
fendor has quit [Read error: Connection reset by peer]
<duairc> Is it possible to use Github directly as a Nixpkgs channel? Well, that's not actually what I want, but there a couple of fixes since the last time even the nixos-unstable channel was updated, and I really want them...
<gchristensen> ,which-channel
<gchristensen> duairc: ^
<ottidmes> duairc: you could do that, but you have to expect potentially building a lot from source, you might also try and cherry pick those commits into your own local nixpkgs checkout, or you can just copy paste them in, or if it is related to a package, you can overlay them, so plenty of ways
<duairc> Ah, okay, so there's such a thing a local nixpkgs checkout, where is that and how do I manipulate it?
<keta> hi, I'm a new Nix user on macOS and I use fish as my default shell (installed with homebrew). What I've onserved is when attempting to run nix-shell with fish (`nix-shell --command fish`) is that the Nix paths are appended to the $PATH instead of prepended (as in Bash) - would anybody have know why that's happening?
<keta> *observed
<__monty__> keta: Maybe your fish setup is actually prepending other paths to the PATH?
__monty__ has quit [Quit: leaving]
kisonecat has joined #nixos
<duairc> ottidmes: I guess I just have to clone the Nixpkgs repo, and then add my local clone as a channel? How do I add a local folder as a channel? Does nix-channel accept a file:/// URL?
<keta> well, fish is only picking up what's in /etc/paths[.d] (i.e. it's not configured to modify the $PATH), so unless the Nix paths were somehow to be loaded before fish's start-up routine or whatnot...
epicmetal has joined #nixos
rfold has quit [Quit: leaving]
<ottidmes> duairc: for questions about nix-channel you will have to ask someone else, but yeah you would just make a checkout of nixpkgs
<ottidmes> duairc: than follow these instructions to point it to the channel you want, like channels/nixos-18.09: https://github.com/NixOS/nixpkgs-channels
o1lo01ol1o has quit [Remote host closed the connection]
<ottidmes> duairc: then you have a local checkout of a channel
<duairc> ottidmes: Yeah, I understand all of that, it's just the nix-channel bit I'm not sure about. I'll try out a file URI in a minute, I'm still waiting for nixpkgs to finish cloning!
kisonecat has quit [Ping timeout: 246 seconds]
<ottidmes> duairc: yeah its almost 1G
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fhZEN
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53520 → kitty: 0.13.1 -> 0.13.2 → https://git.io/fhsgV
<ottidmes> duairc: I do not use nix-channel, I just changed my NIX_PATH to point to my local checkout, then you have no need for nix-channel anymore
<ottidmes> duairc: you can change your NIX_PATH via nix.nixPath, like nix.nixPath = [ "nixpkgs=/path/to/nixpkgs" ];
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53549 → python37Packages.elpy: 1.27.0 -> 1.28.0 → https://git.io/fhs7M
<{^_^}> [nixpkgs] @worldofpeace pushed commit from @r-ryantm to master « python37Packages.elpy: 1.27.0 -> 1.28.0 »: https://git.io/fhZue
<duairc> ottidmes: Thanks for all of that!
worldofpeace has joined #nixos
erasmas has quit [Quit: leaving]
cyphase has quit [Ping timeout: 268 seconds]
unyu has quit [Quit: brb]
Lingjian has quit [Ping timeout: 268 seconds]
unyu has joined #nixos
hedning has quit [Quit: hedning]
shibboleth has joined #nixos
<rain1> I put something in my nixos config to set up /etc/fuse.conf
<rain1> but when I try to use sshfs it gives an error about the options lacking in /nix/store/mg0gkrvxyl640abb4v961b8ggrzn4vaq-fuse-3.2.6/etc/fuse.conf
protocol has joined #nixos
<rain1> should I be editing that config somehow or is my fuse binary looking in the wrong place or what?
<{^_^}> [nixpkgs] @worldofpeace merged pull request #53212 → dropbox-cli: 2015.10.28 -> 2018.11.28 → https://git.io/fhqXM
<{^_^}> [nixpkgs] @worldofpeace pushed commit from wedens to master « dropbox-cli: 2015.10.28 -> 2018.11.28 »: https://git.io/fhZus
jackdk has joined #nixos
endformationage has quit [Quit: WeeChat 2.3]
endformationage has joined #nixos
drakonis has quit [Ping timeout: 240 seconds]
cyphase has joined #nixos
acarrico has joined #nixos
carlosdagos has joined #nixos
Mr_Keyser_Soze has joined #nixos
<duairc> I don't know what I've done, but I initally typo'd the path I tried to add to NIX_PATH, which caused nixos-rebuild to fail, but now even though I've fixed it I still can't do anything, everytime I call nixos-rebuild I get file 'nixos-config' was not found in the Nix search path (add it using $NIX_PATH or -I), even though I've commented out the nix.nixPkgs line from configuration.nix now
<gchristensen> nixos-rebuild -I nixos-config=/etc/nixos/configuration.nix
<ottidmes> duairc: if you add "nixos-config=/etc/nixos/configuration" to nix.nixPath it should work again
<ottidmes> duairc: besides the -I route, you can also use NIXOS_CONFIG=/etc/nixos/configuration.nix nixos-rebuild ...
fusion809 has quit [Remote host closed the connection]
dbmikus_ has quit [Ping timeout: 268 seconds]
<ottidmes> duairc: the reason for the error is by default your NixOS configuration is determined by this line: https://github.com/NixOS/nixpkgs/blob/8786617f8f8c613536682709d028fb0232c45ff8/nixos/default.nix#L1