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]
<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?
<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
<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
<{^_^}>
[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
<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
<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...
<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
<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>
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
<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.
<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.
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 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
<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
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>
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) {}`
<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.
<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>
[ { 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]
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
<{^_^}>
[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.
<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?
<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.
<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
<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?
<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!
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
<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
<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++
<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
<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 ];
<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.
<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.
<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)
<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?
<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)
<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
<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.
<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`
<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
<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
<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
<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.
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?
<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 ?
<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 ./
<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 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
<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?
<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?
<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
<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?
<__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)
<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
<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 :)
<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
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
<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
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
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
<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...
<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
<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?
<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...)
<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
<{^_^}>
[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)
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...
<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
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 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 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