sphalerite changed the topic of #nixos to: NixOS stable: 19.03 \o/ https://discourse.nixos.org/t/nixos-19-03-release/2652 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon ... nixcon videos: https://tinyurl.com/nixcon2018
<m5n> Actually, I think I figured it out
<m5n> It looks like this is only a nix-shell problem, so probably all I want is to add clang_8 to my system packages.
<m5n> It also seems to be fixed in the `nix run` version
<m5n> So `nix run nixpkgs.clang_8` does the right thing
<m5n> Thanks for your help :)
<averell> sure, i totally helped :P
<{^_^}> [nixpkgs] @grahamc closed pull request #65818 → shotcut: use qt's mkDerivation → https://git.io/fj95O
ris has quit [Ping timeout: 245 seconds]
m5n has left #nixos ["WeeChat 2.5"]
Soo_Slow has quit [Remote host closed the connection]
ericsagnes has quit [Ping timeout: 252 seconds]
<alienpirate5> Can someone please help me with this build error
<alienpirate5> I'm trying to build cross compile spidermonkey 60 to ARM
<alienpirate5> The Python-based build system is thoring errors like "Could not create virtualenv"
<alienpirate5> You can test this yourself by running `nix-build '<nixpkgs>' -A pkgsCross.armv7l-hf-multiplatform.spidermonkey_60`
ayerhart has joined #nixos
<alienpirate5> s/thoring/throwing
___laika has joined #nixos
rouma has quit [Ping timeout: 248 seconds]
MarcWeber has joined #nixos
selfsymmetric-mu has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fj9Fo
wfranzini has quit [Remote host closed the connection]
rouma has joined #nixos
wfranzini has joined #nixos
ericsagnes has joined #nixos
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/dc5edd18ada (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
ayerhart has quit [Ping timeout: 245 seconds]
ottidmes has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @jonringer opened pull request #65824 → Update jupyter → https://git.io/fj9F1
<ToxicFrog> How do I buildPerlPackage something that depends on a C library (in this case db4)?
selfsymmetric-mu has joined #nixos
<ToxicFrog> I have `buildInputs = [ pkgs.db4 ];` and that gets it to build, but the tests fail with "undefined symbol db_env_create in BDB.so", indicating that it can't find libdb at runtime.
ayerhart has joined #nixos
nDuff has quit [Quit: zzz]
<DigitalKiwi> maybe propagatedBuildInputs
ayerhart_ has joined #nixos
<ToxicFrog> DigitalKiwi: nope.
ayerhart has quit [Ping timeout: 248 seconds]
<ToxicFrog> Also, no matter where I put it, I get a "Warning (mostly harmless): No library found for -ldb" earlier in the build.
johnny101m has joined #nixos
<DigitalKiwi> checkInputs didn't work either?
<ToxicFrog> It looks like the 'BerkeleyDB' perl module solves this by writing LIB= and INCLUDE= lines to configure.in that point to pkgs.db during preConfigure, but that doesn't work for BDB -- possibly it doesn't use configure.in?
<ToxicFrog> I'll try that.
Xal has quit [Ping timeout: 258 seconds]
<ToxicFrog> Nope.
<ToxicFrog> For reference, here's the compilation line emitted by the build process:
<ToxicFrog> cc -shared -O2 -L/nix/store/iykxb0bmfjmi7s53kfg6pjbfpd8jmza6-glibc-2.27/lib -fstack-protector-strong BDB.o -o blib/arch/auto/BDB/BDB.so
<ToxicFrog> There should be a -ldb4 and -lpthread in there, at least :/
<DigitalKiwi> idk then :(
Xal has joined #nixos
johnny101m2 has quit [Ping timeout: 250 seconds]
betawaffle has quit [Quit: Oh noes, my ZNC!]
MarcWeber has quit [Ping timeout: 246 seconds]
<ToxicFrog> Solution turned out to be NIX_CFLAGS_COMPILE and NIX_CFLAGS_LINK
rouma has quit [Ping timeout: 245 seconds]
justan0theruser has joined #nixos
<ToxicFrog> Now a new problem: the thing I'm trying to build depends on Coro::EV. According to CPAN, installing Coro should automatically get me Coro::EV -- but it doesn't. :/
<ToxicFrog> Argh, it looks like it's in the same tarball but isn't actually part of the same module?
<ToxicFrog> This is the same maintainer who keeps uploading stuff to CKAN that has a META.yml that's actually JSON >.<
justanotheruser has quit [Ping timeout: 245 seconds]
owickstrom has quit [Quit: Connection closed for inactivity]
justan0theruser is now known as justanotheruser
orivej has quit [Ping timeout: 258 seconds]
<samueldr> alienpirate5: you're in luck, someone is looking into fixing this, see #65758
<{^_^}> https://github.com/NixOS/nixpkgs/pull/65758 (by erictapen, 1 day ago, open): spidermonkey_{38,60}: fix cross compilation
<samueldr> ToxicFrog: YAML is a superset of JSON by design :)
<ToxicFrog> samueldr: well, the YAML parser in nix-generate-from-cpan doesn't parse JSON.
xkapastel has quit [Quit: Connection closed for inactivity]
<samueldr> interesting
<samueldr> it ends up using this
iyzsong has joined #nixos
<samueldr> wondering if the reason is that the yaml backend and json backend have different shapes
<samueldr> >> Read and write a subset of YAML for CPAN Meta files
<ToxicFrog> Specifically, CPAN::Meta::YAML failed to classify line '{' at /nix/store/wzn5g91zj8ajqzdwwlyxcwaw4y1bj04h-perl-5.28.2/lib/perl5/5.28.2/Parse/CPAN/Meta.pm line 47.
<samueldr> yeah, found the "issue", by design it doesn't handle full YAML it seems like
<samueldr> (sorry though, it's not really helpful in the end)
selfsymmetric-mu has quit [Remote host closed the connection]
Mister_Magister has quit [Ping timeout: 258 seconds]
selfsymmetric-mu has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #64707 → pantheon.cerbere: 0.2.4 -> 2.5.0 → https://git.io/fjX3a
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fj9Fh
<{^_^}> [nixpkgs] @worldofpeace pushed to release-19.03 « pantheon.cerbere: 0.2.4 -> 2.5.0 »: https://git.io/fj9be
<ToxicFrog> Yay, I have all the perl modules sorted out!
<ToxicFrog> Now I have to solve the dependency on blitz++, which is going to be exciting because the blitz++ in nixpkgs does not build
Mister_Magister has joined #nixos
ddellacosta has quit [Ping timeout: 248 seconds]
iyzsong has quit [Read error: Connection reset by peer]
<DigitalKiwi> well looks like you get to fix it and make a PR :D
iyzsong has joined #nixos
zacts has joined #nixos
<ToxicFrog> At this point my PR to get Deliantra building is going to be pretty large >.<
<{^_^}> [nixpkgs] @worldofpeace opened pull request #65825 → fwupd: correct hardcode patch → https://git.io/fj9bY
<DigitalKiwi> is it this big 8 files +348 −0
<pie_> depends on the density :P
ddellacosta has joined #nixos
<DigitalKiwi> considering how many months i've spent on it i'd say it's sparse
georges has quit [Ping timeout: 244 seconds]
<ToxicFrog> Probably not that big, but we'll see how many other packages need to be fixed
ddellacosta has quit [Ping timeout: 258 seconds]
ddellacosta has joined #nixos
jgt has quit [Ping timeout: 252 seconds]
jgt has joined #nixos
joehh has joined #nixos
<{^_^}> [nixpkgs] @jonringer opened pull request #65826 → pythonPackages.pytest-cram: fix build → https://git.io/fj9bG
<{^_^}> [nixpkgs] @jonringer opened pull request #65827 → pythonPackages.paramiko: 2.4.2 -> 2.6.0 → https://git.io/fj9bZ
joehh has quit [Ping timeout: 250 seconds]
jlv has quit [Remote host closed the connection]
meteo has quit [Ping timeout: 246 seconds]
ddellacosta has quit [Ping timeout: 245 seconds]
___laika has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @xrelkd opened pull request #65828 → font-awesome: 5.10.0 -> 5.10.1 → https://git.io/fj9bc
rouma7 has joined #nixos
ddellacosta has joined #nixos
___laika has joined #nixos
arc[m] is now known as arcnmx
MarcWeber has joined #nixos
___laika has quit [Ping timeout: 244 seconds]
fusion809 has joined #nixos
___laika has joined #nixos
tomberek has joined #nixos
georges has joined #nixos
___laika has quit [Ping timeout: 272 seconds]
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/4f2b76e45fc (from 54 minutes ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<{^_^}> [nixpkgs] @sikmir opened pull request #65829 → goldendict: 2018-06-13 -> 2019-08-01 → https://git.io/fj9bz
meteo has joined #nixos
___laika has joined #nixos
___laika has quit [Ping timeout: 246 seconds]
iyzsong has quit [Read error: Connection reset by peer]
englishm has quit [Excess Flood]
englishm has joined #nixos
MarcWeber has quit [Ping timeout: 268 seconds]
phaebz has quit [Remote host closed the connection]
sb0 has joined #nixos
<iqubic> adisbladis: are you here?
MmeQuignon has quit [Ping timeout: 248 seconds]
zacts has quit [Quit: WeeChat 2.4]
Supersonic has quit [Ping timeout: 250 seconds]
sushi_ has quit [Read error: Connection reset by peer]
<rajivr___> Is there a derivation that is equivalent to "build-essential" in Nix?
<gchristensen> stdenv
<gchristensen> but yo ushoudn't install it, instead just write nix expressions.
Supersonic has joined #nixos
<rajivr___> I see... I just tried installing it! :-)
<rajivr___> and was wondering why I am not able to get gcc ar etc.,
domogled has joined #nixos
<rajivr___> What derivation will give me gcc, ar and other tools?
wfranzini has quit [Remote host closed the connection]
<rajivr___> That I can use in my environment.
wfranzini has joined #nixos
sushi_ has joined #nixos
<simpson> You can create nix-shell environments with those tools. Making nix-env environments is a little harder. You might want to write some Nix expressions instead of trying to build your project like you're on Debian.
meteo has quit [Ping timeout: 244 seconds]
sb0 has quit [Quit: Leaving]
<Ralith> can someone merge this super stale broken package fix? https://github.com/NixOS/nixpkgs/pull/62957
<{^_^}> #62957 (by Ralith, 7 weeks ago, open): vulkan-validation-layers: 1.1.101.0 -> 1.1.106.0
<rajivr___> I see. Thanks @simpson I'll that.
<iqubic> Even I struggle to create proper shell.nix files to get environments up and running.
<iqubic> I've been using nixos for the past 2 years. I should really be better at this,
jb55 has quit [Ping timeout: 260 seconds]
mexisme has joined #nixos
<rajivr___> Based on what I understood from here https://github.com/NixOS/nixpkgs/issues/18315, using `myEnvFun` seems to be better approach than using nix-shell.
<{^_^}> #18315 (by domenkozar, 2 years ago, open): Remove myEnvFun
<iqubic> No.
<iqubic> It really isn't
<iqubic> Easier, maybe. Better, no.
<tomberek> what problem are you trying to solve?
<simpson> rajivr___: What are you actually trying to build? Are you trying to set up a development environment, or install something not in nixpkgs, or something else?
<rajivr___> So, I am trying to get a basic haskell, emacs, dante development environment going (BTW, I am pretty new to Nix)
MarcWeber has joined #nixos
<iqubic> Good lord. That combination is the worst. I recall spending such a long time trying to get that to work. I don't recall if I ever got it working.
<iqubic> Here's dante for those that care: https://github.com/jyp/dante
<iqubic> The code should be easy to read if you understand a little bit of little bit of lisp.
meteo has joined #nixos
<rajivr___> `cabal new-build` fails for not finding `ar`
ericsagnes has quit [Ping timeout: 272 seconds]
<iqubic> rajivr___: That's not a dante issue
<rajivr___> I can pretty easily get build-essential rolling (because the underlying disto is debian), but I wanted to see if there was a canonical Nix way of doing it.
<simpson> rajivr___: Hm, how much of https://nixos.org/nixpkgs/manual/#how-to-create-a-development-environment have you followed?
<iqubic> Oh, are you running nix on Debian? That's good to know.
<rajivr___> Yes, I didn't say it was was a dante issue.
<rajivr___> Yes, its running inside a debian container. :-)
<rajivr___> in single user mode.
<tomberek> got binutils?
<rajivr___> I am trying to keep the debian side of the house minimal
<iqubic> I'd assume so. Unless you remove it from Debian it should be installed by default.
<rajivr___> Its a minimal debian image.
<rajivr___> Regarding following haskell dev enviornment, there is an overlay that modifies `haskellPackages.ghc` to ghc865 similar to https://github.com/jwiegley/nix-config/blob/master/overlays/10-haskell.nix#L211 and installs ghc and cabal-install into the environment.
joebobjoe has joined #nixos
<joebobjoe> does nix-darwin use the same package repo as nix?
<iqubic> Yes.
<rajivr___> Btw, `nix-env --install --attr nixpkgs.binutils` seems to work.
<tomberek> it uses the same package descriptions, but they may evaluate differently
<rajivr___> Thanks all for the help! :-)
<iqubic> joebobjoe: You can search packages here: https://nixos.org/nixos/packages.html
<tomberek> rajivr___ does adding that resolve the cabal issue?
<rajivr___> yes. I seem to be getting a different error.
<tomberek> what's next?
<iqubic> joebobjoe: I know that claims it's for nixos, but it will work for nix-darwin.
<joebobjoe> iqubic: ok thanks
<iqubic> rajivr___: If you've got another terminal error that you can pastebin for use, that would be wonderful.
<rajivr___> that I need to figure out. Its got to do with Haskell modules. :-) Attempting to learn haskell has sent be down the Nix rabbithole in a good way.
<joebobjoe> can we merge #nix and #nix-darwin? there are only 36 users there
<joebobjoe> and I get much faster answers to questions here
<tomberek> learning curve is steep, but i promise that it can become a secret super weapon for you
<infinisil> joebobjoe: #nix is not a thing :)
hellrazor has quit [Quit: WeeChat 2.5]
<joebobjoe> I guess #nix is a redirect
<simpson> joebobjoe: Presumably #nix-darwin is for questions specific to nix-darwin or general Darwin support for Nix.
<iqubic> rajivr___: You claim there is another issue. How do you know there is another error? Do you have an output claiming there's another error?
<simpson> rajivr___: $(nix-shell -p ghc --run ghci) will get you a GHC prompt. You may be overthinking Nix.
<iqubic> we can't help you if we don't know what the errors are.
<iqubic> simpson: The issue comes from when you want to use libraries from hackage.
<rajivr___> Let me try and look at if first. :-)
<iqubic> That's the hard part.
<iqubic> rajivr___: Sure. Attempt to solve your issue on your own is a great way to learn.
<rajivr___> Thanks a lot for the help :-)
ericsagnes has joined #nixos
meteo has quit [Remote host closed the connection]
meteo has joined #nixos
endformationage has quit [Quit: WeeChat 2.5]
<simpson> iqubic: Sure. Something like (a real shell.nix) https://gist.github.com/217134859b0d8b641f219cd878e4a238 . IMO the issue isn't wanting to use libraries, but not writing Nix expressions.
<iqubic> I see.
<iqubic> So, in my configuration.nix, there's this section labelled imports, where I'm importing ./hardware-config.nix What other things can I import?
hellrazor has joined #nixos
<samueldr> the simple explanation is "any other nix file"
<samueldr> they'll be handled just like configuration.nix is
<samueldr> so this allows you to split your configuration in multiple files
<samueldr> e.g. you could have a "topic" configuration file for emacs, one for erm... anything else you use
<samueldr> so, it's all up to you
abathur has quit [Ping timeout: 244 seconds]
<samueldr> technically, you're not beholden to have a hardware-config.nix being imported, you could also have it all in the one configuration.nix file, but it's a bit messy that way
<iqubic> Right. I see.
<iqubic> And what sort of inputs should those .nix functions take that import?
<infinisil> samueldr: I'm wondering if flattening all modules like that might make NixOS evals faster
<samueldr> infinisil: what do you mean?
<samueldr> iqubic: the same as configuration.nix
<infinisil> samueldr: Inlining all `imports`
<infinisil> Recursively
<infinisil> Flattening all NixOS modules into a single file
<iqubic> I notice that my main configuration.nix is function that takes two arguments: config and pkgs.
<samueldr> iqubic: that section of the manual covers pretty well the configuration system https://nixos.org/nixos/manual/index.html#sec-configuration-syntax
<iqubic> What do those mean?
<samueldr> it will receive more, but the ellipsis `...` makes it so they're ignored
<samueldr> pkgs is the final package set, so nixpkgs + your overlays and other misc. overrides
<samueldr> config... a bit more complex to explain, though that chapter I just linked has the necessary info to understand it
<iqubic> But isn't that a bit recursive? Where pkgs is the very thing I'm creating?
<samueldr> but are you?
<samueldr> :)
<joebobjoe> I need help. nix-env -u completes but does not update any packages. currently, irssi-1.1.3 is the latest package, but nix-env --query returns irssi-1.1.2
<iqubic> samueldr: I'm not sure.
<joebobjoe> also, I'm on darwin if that makes a difference
<samueldr> iqubic: you're likely not, nix evaluation is lazy, so order doesn't have much importance
<samueldr> it's at that point that I grok (understand) the subject less, so I generally don't try to explain how and why :)
<joebobjoe> I'm still new to nix, you can do nix-env -u to upgrade packages updated on the nixpokg repo right?
<iqubic> samueldr: I also don't really understand overlays either.
<iqubic> I've tried to understand them several times but I just can't.
<simpson> joebobjoe: What have you read so far? https://github.com/LnL7/nix-darwin#updating is how to update nix-darwin itself, I think, and similarly there's a channel for nixpkgs, IIRC.
<iqubic> samueldr: Also, I'm quite familiar with Haskell. I know what lazy evaluation is, and how to harness it.
<iqubic> Well, how to harness it in Haskell.
<infinisil> simpson: They didn't mention they use nix-darwin though
<iqubic> actually, infinisil I think they did.
<infinisil> Ah, it's way up there
<iqubic> Yeah. It's hard to manage multiple conversations in IRC.
<infinisil> joebobjoe: Have you updated your channel?
<joebobjoe> simpson: hm, never used that man before. when I do nix-channel --list I get nothing
<joebobjoe> I tried updating nix-2.2.1 to nix-2.2.2 using nix upgade-nix but I get lockfile errors
<joebobjoe> oh the perils of a multi user install on darwin I guess
<clever> joebobjoe: run `sudo -i` then `nix-channel --list`, dont use `sudo nix-channel --list
<simpson> Oh yikes, multi-user on Darwin sounds horrible. Two terrible flavors.
<joebobjoe> clever: what's wrong with the later command?
<iqubic> What exactly does import do?
<clever> joebobjoe: sudo on darwin sets the wrong $HOME, so nix-channel doesnt act on root
<joebobjoe> uh, how could a posix os like darwin "set the wrong home"?
<clever> joebobjoe: its a config option in /etc/sudoers
<iqubic> $HOME is just a variable that is set when you launch a terminal.
<clever> joebobjoe: darwin choose to use the "wrong" value
<iqubic> what value does darwin default to?
<clever> iqubic: the one that perserves $HOME when you `sudo foo`
<clever> iqubic: so foo doesnt have roots HOME
<iqubic> Actually, I don't use darwin, so I don't really care. Sorry.
<joebobjoe> hm, that is strange, sudo doesn't change $HOME, it's still my user dir
<joebobjoe> running nix-channel after doing sudo -i worked btw
<joebobjoe> it's not in the nix-darwin readme, I guess they assume single user installation
<iqubic> infinisil: The nixos manual states you can use "nix-env -u '*'" to update all packages installed with nix-env.
<iqubic> Should I convert my multi-user nixos install to a single user nixos?
<clever> joebobjoe: what does `type nix-env` return, in both a normal and root shell?
<clever> iqubic: nixos doesnt support single-user
<infinisil> iqubic: Why are you telling me this?
<iqubic> I don't know.
<iqubic> The first line ({ config, pkgs, ... }:) denotes that this is actually a function that takes at least the two arguments config and pkgs. (These are explained later.)
<iqubic> I'm reading the nixos manual and looking for the location where those things are explained.
<iqubic> I can't seem to find it.
<joebobjoe> nix-env is hashed (/nix/var/nix/profiles/default/bin/nix-env) and nix-env is /var/root/.nix-profile/bin/nix-env
<joebobjoe> clever: ^
<clever> joebobjoe: both of those are roots profile, so it should be good there
<simpson> iqubic: Yeah. https://nixos.org/nixos/manual/index.html#sec-modularity is the exact section where modules are explained.
<joebobjoe> nix-channel --list under root finally returns something: nixpkgs https://nixos.org/channels/nixpkgs-unstable
<clever> joebobjoe: is nix-daemon running?
<joebobjoe> clever: yes
<iqubic> if my entire nixos config is a function, then when is it called?
<iqubic> And what values are passed in as the parameters?
<clever> joebobjoe: what is the ocmmand that fails?
<joebobjoe> clever: nix-env -u
<clever> joebobjoe: what error does it give?
<joebobjoe> doesn't update irssi to the latest version shown on nixpkgs. nothing, no error
wfranzini has quit [Remote host closed the connection]
<clever> joebobjoe: what does `nix-env -iA nixpkgs.irssi` report?
wfranzini has joined #nixos
<iqubic> How exactly does import work?
<clever> iqubic: it will parse whatever file you point it at, and return the top-level value of that file
<joebobjoe> clever: ****, I accidentally did it while in sudo -i
<joebobjoe> how do I remove the nix profile for the root user?
<iqubic> But what if that top-level thing is a function?
<clever> joebobjoe: nix-env -e irssi
<clever> iqubic: then you must call that function with the right arguments
<joebobjoe> clever: can I safetly remove all the .nix* in /root?
<clever> joebobjoe: no, thats where nix itself comes from
<clever> 2019-08-03 01:28:50 < joebobjoe> nix-env is hashed (/nix/var/nix/profiles/default/bin/nix-env) and nix-env is /var/root/.nix-profile/bin/nix-env
<iqubic> clever: execpt I'm not actually using the import function.
<iqubic> Instead I'm just adding things to the list of imports in configuration.nix.
<clever> iqubic: the module system in nixpkgs will import it for you
<joebobjoe> clever: I'm on a multiuser installation though, and the -iA added a bunch of symlinks it said
<joebobjoe> which did not get removed when I uninstalled the package
<joebobjoe> because I installed it again and it said nothing about creating symlinks
<iqubic> Except that it's not quite working the way I want it to.
<clever> joebobjoe: those symlinks it added are in an older generation
<clever> joebobjoe: they will only be removed when you do garbage collection
<iqubic> anonymous function at /etc/nixos/wm.nix:1:1 called with unexpected argument 'config', at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:170:8
<iqubic> So, IDK what's up with that.
<clever> iqubic: what is the 1st line of wm.nix ?
<iqubic> { pkgs }:
<clever> iqubic: change it to { pkgs, ... }:
<iqubic> It's just a one argument function.
<joebobjoe> clever: https://pastebin.com/JcSYRnRt
<iqubic> Why will that fix my issue?
<clever> iqubic: the ... makes it ignore any other arguments it doesnt want
<clever> joebobjoe: version 1.1.2 is the latest one in your copy of nixpkgs
<iqubic> right, but what arguments is it being called with? I never specified any arguments ever.
<clever> joebobjoe: did you `nix-channel --update` correctly (within `sudo -i`) ?
<clever> iqubic: the module system passes config, pkgs, lib, and others, to every single module
<clever> iqubic: everything in imports is a module
<joebobjoe> clever: my copy of nixpkgs? nix doesn't update its package list automatically, like brew?
<iqubic> Is there a way to get a list of all the arguments passed int the module system?
<clever> joebobjoe: correct, you must `nix-channel --update` to update the package set
<clever> iqubic: add each one it complains about to the function, until it stops complaining
<joebobjoe> so in a multiuser environment, the users must rely upon the admin to update nixpkg channel?
<joebobjoe> that worked by the way clever, thank you! I can now upate
<iqubic> Also, it seems weird that the order of the arguments doesn't matter, but only the names.
<clever> joebobjoe: that is why nix-channel also works as your own user
<clever> joebobjoe: so you can ignore what root's channels are, and manage them yourself
<joebobjoe> so a multiuser installation is near pointless
<clever> joebobjoe: but if you do have root, that feature causes confusion, because users tend to wind up with duplicate copies of the channel setup
<iqubic> the first line of hardware-configuration.nix is "{ config, lib, pkgs, ... }:" which causes no issues.
<clever> iqubic: 2019-08-03 01:40:00 < clever> iqubic: the ... makes it ignore any other arguments it doesnt want
<iqubic> That seems to imply that config and lib must be added first, but that doesnt see right.
<clever> joebobjoe: multi-user setup still protects /nix/store from corruption
<clever> joebobjoe: on a multi-user setup, you must go thru nix-daemon to modify it, and that enforces the rules
<iqubic> Usually when you have a function like: "{x, y}: x - y" the order of the arguments matters.
<clever> joebobjoe: but on a single-user, you can just edit anything you want
<clever> iqubic: the order of arguments doesnt matter when its a set
<joebobjoe> I would never put a directory meant for one user in the root location
<iqubic> "{x, y}: x - y" must surely be different from "{y, x}: x - y"
<clever> iqubic: they are identical
<iqubic> Right. I see.
<joebobjoe> so a single non-root user installation of nix requires root privileges?
<joebobjoe> to write a nix store to /nix?
<joebobjoe> I ditched homebrew on mac to avoid those shennanigans
<iqubic> So the module system just passes in a set and I just pick which of the parts of that set I want to use?
<clever> joebobjoe: if you own an empty /nix/, the single-user install can act without sudo
<clever> iqubic: yes
<pie_> clever: hi ^.^/ *trods off back to writing a "distro"
ddellacosta has quit [Ping timeout: 244 seconds]
<clever> joebobjoe: if you dont own /nix then it will use sudo to make you own it
<joebobjoe> clever: yea but no single user should own anything in /
<joebobjoe> I don't set up my systems that way I'm not retarded
<joebobjoe> user files belong in /homes
<joebobjoe> or whatever
<joebobjoe> $HOME
<clever> joebobjoe: changing the directory of /nix/store requires rebuilding every single package from source
<clever> joebobjoe: and darwin doesnt really support chroot or namespaces, so the linux work-arounds dont help
Rusty1 has quit [Quit: Konversation terminated!]
<joebobjoe> why are packages that can't be dynamically relocated allowed?
<clever> joebobjoe: the length of the path is in compiled binaries
<joebobjoe> I guess that's just how software is built on posix systems?
<clever> joebobjoe: changing that path will upset the offset of every other value in the binary and just make it corrupt
<joebobjoe> so multi-user nix is the only sane nix
<tomberek> joebobjoe you can put them elsewhere, but then you won't be able to use the existing caches
<joebobjoe> if I build a program, I can copy its binary to any folder I want and it still runs. linux programs must suck
<clever> joebobjoe: its the changes nix makes to give you every benefit of nix
<simpson> joebobjoe: Single-user Nix makes a lot of sense in certain restricted contexts. A personal laptop (nearly every Darwin user!) or a Docker-compatible container, for example.
<clever> joebobjoe: normal linux binaries load libc from /lib/libc.so
<tomberek> I've had luck moving existing package closures with https://github.com/timjrd/nixrewrite
<clever> joebobjoe: but now upgrading libc can break things
<pie_> clever: if only unprivileged bind mounts were a thing (Without possibly getting rooted onoes)
<clever> joebobjoe: nix sovles that by loading libc from /nix/store/hash-libc/lib/libc.so
<clever> joebobjoe: but now, if the store isnt in /nix/store, the binary breaks, same if you try to use it outside of nix
<joebobjoe> so nix hashes libc
<clever> joebobjoe: nix hashes every single dependency
<joebobjoe> programs shouldn't be designed to only work with a specific implementation of libc anyway
<joebobjoe> libc should be considered part of the os
<joebobjoe> does nix hash the os?
<clever> joebobjoe: nix just applies those same basic rules to every single dependency, so it doesnt care what the host OS is
<joebobjoe> so on linux libc is delivered by the package manager?
<simpson> Yes, on NixOS, Nix manages the kernel.
<joebobjoe> oh so it's full circle
<clever> joebobjoe: always, but most linux distros only give you a single libc, but nixos gives you many
<simpson> joebobjoe: Actually, yes. Are you new to Linux in general? That'd explain a bit. In general, a Linux distro is a collage of packages, assembled without the assent of upstreams.
<simpson> A libc is just another pile of code, really.
<joebobjoe> hm that makes sense, thanks guys
<iqubic> What the heck is emacsPackagesNg?
dansho has joined #nixos
<joebobjoe> how do I switch my channel from unstable to stable?
<clever> joebobjoe: run `nix-channel --add` with the right params, as root
<clever> joebobjoe: you can confirm what has happened with --list, there should just be a single entry named nixpkgs
<clever> then --update to apply the changes
<joebobjoe> oh wow it replace the unstable ok thanks
<iqubic> What is emacsPackageNg? What does that even do?
<clever> joebobjoe: you could use both at once, but you said switch
<joebobjoe> clever: yea that's what I wanted, just didn't know add was destructive
<clever> joebobjoe: -add will overwrite if the name collides
<joebobjoe> looks like nixpkgs-unstable is the right channel after all, there is no nixpkgs-stable chan
<joebobjoe> clever: convenient
<clever> joebobjoe: the stable channels are named after the year and month of release
<clever> ,howoldis joebobjoe
<hyper_ch> isn't that way too logical to name stable channels?
<joebobjoe> that makes sense yes
<joebobjoe> stable channels are really stable
<hyper_ch> nixos-13.10 has been stable for 1773 days ;)
<iqubic> Is there a guide for how one can get started with home-manager?
<hyper_ch> iqubic: you mean like a readme.md? https://github.com/rycee/home-manager
rouma7 has quit [Ping timeout: 276 seconds]
<iqubic> Yeah, I suppose that works.
FRidh has joined #nixos
<joebobjoe> um, was it a good idea to do a nix-env -e '*' under root? now when I run nix-env in my user I get -bash: /nix/var/nix/profiles/default/bin/nix-env: No such file or directory
<joebobjoe> oops
<joebobjoe> but I also just updated nix under root so I don't know
<clever> joebobjoe: as i said, nix itself is in roots profile
<clever> joebobjoe: you just uninstalled nix!
rouma has joined #nixos
<clever> joebobjoe: what does `ls -lh /nix/var/nix/profiles/default` report?
<joebobjoe> well but uh
<joebobjoe> lrwxr-xr-x 1 root wheel 15B Aug 2 22:05 /nix/var/nix/profiles/default -> default-13-link
<clever> joebobjoe: /nix/var/nix/profiles/default-12-link/bin/nix-env --rollback
<joebobjoe> i dont like the number 13
<clever> that will undo the last change you did
<iqubic> How does home-manager work?
<iqubic> How is it able to create its own nix-channel?
<joebobjoe> clever: oops accidentally did that in my user nix
<hyper_ch> (it uses advanced automagic)
<clever> iqubic: channels are just tar files containing nix files
<joebobjoe> how do I roll forward?
<{^_^}> [nixpkgs] @FRidh pushed to staging-next « and another gdk_pixbuf rename »: https://git.io/fj9Nz
<clever> joebobjoe: figure out what storepath the new generation is at, and use `nix-env --set /nix/store/foo`
<iqubic> clever: doesn't that lead to inconsistancies?
<clever> iqubic: such as?
<{^_^}> [nixpkgs] @FRidh merged pull request #65826 → pythonPackages.pytest-cram: fix build → https://git.io/fj9bG
<{^_^}> [nixpkgs] @FRidh pushed commit from @jonringer to master « pythonPackages.pytest-cram: fix build »: https://git.io/fj9N2
<{^_^}> [nixpkgs] @FRidh merged pull request #65823 → pythonPackages.nbval: 0.9.1 -> 0.9.2 → https://git.io/fj9dQ
<{^_^}> [nixpkgs] @FRidh pushed commit from @jonringer to master « pythonPackages.nbval: 0.9.1 -> 0.9.2 »: https://git.io/fj9Na
<{^_^}> [nixpkgs] @FRidh merged pull request #65819 → python3Packages.ipykernel: 5.1.0 -> 5.1.1 → https://git.io/fj95c
<{^_^}> [nixpkgs] @FRidh pushed commit from @jonringer to master « python3Packages.ipykernel: 5.1.0 -> 5.1.1 »: https://git.io/fj9Nw
<{^_^}> [nixpkgs] @FRidh merged pull request #65798 → pythonPackages.msreset: 0.6.8 -> 0.6.9 → https://git.io/fj9yr
<{^_^}> [nixpkgs] @FRidh pushed commit from @jonringer to master « pythonPackages.msreset: 0.6.8 -> 0.6.9 »: https://git.io/fj9Nr
<{^_^}> [nixpkgs] @FRidh merged pull request #65828 → font-awesome: 5.10.0 -> 5.10.1 → https://git.io/fj9bc
<{^_^}> [nixpkgs] @FRidh pushed commit from @xrelkd to master « font-awesome: 5.10.0 -> 5.10.1 »: https://git.io/fj9No
<joebobjoe> clever: figure out where the next generation is at in /nix/store?
<joebobjoe> it's full of a bunch of packages
<clever> joebobjoe: ls -l ~/.nix-profile
<hyper_ch> iqubic: from what I gather home-manager just manages the dot-filesin your user home. so there's no conflifct with normal nixos configuration.nix
<joebobjoe> clever: /Users/moon/.nix-profile -> /nix/var/nix/profiles/per-user/moon/profile
<clever> joebobjoe: ls -l /nix/var/nix/profiles/per-user/moon/profile
<joebobjoe> /nix/var/nix/profiles/per-user/moon/profile -> profile-20-link
<clever> joebobjoe: does profile-21-link exist?
<joebobjoe> yes
<clever> joebobjoe: that is the version you where on, prior to the rolback
<clever> joebobjoe: you want to run --set on whatever profile-21-link points to
<joebobjoe> ok
<joebobjoe> I wodner what happens if I just set it to the symlink
<joebobjoe> wow, ok so we use the software in generation 12 to rollback the switch to generation 13
<joebobjoe> cool
<clever> joebobjoe: those generations are also why installing irssi as root a second time didnt do anything
<clever> it has already computed the outcome of adding irssi to roots profile, and didnt have to re-compute it
<joebobjoe> hm I don't get it but ok
<joebobjoe> does nixpkgs-unstable include unstable software too? it wants to update my python to python3-3.8.0b2
<clever> > python38
<{^_^}> "<derivation /nix/store/v7wz2n38qxbpbpyxp6s1nm8nld6qh82v-python3-3.8.0b2.drv>"
<clever> that exact version is already in nixpkgs
<clever> > python3
<{^_^}> "<derivation /nix/store/rsz34fy8gfmycyiym21vh1bjj7zs9d01-python3-3.7.4.drv>"
<clever> its just not the default version of python3 currently
<joebobjoe> clever: then why is my nix-env -u wanting to upgrade my python3-3.7.2 to python3-3.8.0b2
<clever> joebobjoe: i dont trust -u, and prefer -i
<joebobjoe> nix sucks
<joebobjoe> I give up
<joebobjoe> going back to brew
<clever> joebobjoe: nix-env -iA nixpkgs.python38 is what you want
<joebobjoe> I want the latest stable version of python 3
<joebobjoe> there is no way to specify that?
<clever> python38 is version python3-3.8.0b2
<joebobjoe> I don't want python38 if it's a beta
<clever> joebobjoe: then you want python3, which is 3.7
<joebobjoe> clever: how do I find out what name I installed a package under
<joebobjoe> I'm pretty sure I installed python3 and now it is updating to 3.8
<clever> joebobjoe: thats what home-manager can solve
<clever> nix-env -i cant track the attribute names
<joebobjoe> clever: so what is it doing?
<joebobjoe> I installed as python3
<clever> nix-env tracks the name of the package, not the attribute path
<joebobjoe> not python37
MarcWeber has quit [Ping timeout: 248 seconds]
<clever> and -u searches for things with a similar name
<joebobjoe> oh god
<clever> and it gets confused when you have a dozen versions to pick from
<clever> 2019-08-03 02:24:51 < clever> joebobjoe: i dont trust -u, and prefer -i
<clever> hence why i dont use -u
<joebobjoe> so it just chooses the most newest version number, including betas?
<clever> probably
<clever> i prefer -i, so i know exactly what is happening
<joebobjoe> so that sounds like an improvement I can make to nix-env then
<joebobjoe> clever: I don't get it though. if my python is currently python3-3.7.2, and nix searches by name, if I do a nix-env -i python3 I get 3.7.2, but if I then do a -u it immediately upgrades to 3.8b0?
<clever> ,-A
<{^_^}> You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<clever> -i also searched by name, and leads to unpredictable results
<clever> you want `nix-env -iA nixpkgs.python3` as i said above
<joebobjoe> > python3
<{^_^}> "<derivation /nix/store/rsz34fy8gfmycyiym21vh1bjj7zs9d01-python3-3.7.4.drv>"
<joebobjoe> is that not searching by name?
<clever> thats by attribute name, not .name
<clever> > python3.name
<{^_^}> "python3-3.7.4"
<clever> > python38.name
<{^_^}> "python3-3.8.0b2"
<clever> both match python3*
<joebobjoe> why doesn't nix-env -u do it by attribute then
<clever> because it didnt save the attribute when installing
<joebobjoe> so I can never user -u to just upgrade all my packages?
<joebobjoe> because it will trample my attrs?
<clever> yeah
<FRidh> correct. Unless...
<clever> thats why people recomend home-manager
<joebobjoe> why doesn't the nix project just fix it
<FRidh> ...you create a `buildEnv` that has your packages in it.
<clever> joebobjoe: there are plans to improve that further
<joebobjoe> so, can I maintain a list of attribute names of packages I want updates, and have nix update them without using any third party addons?
<clever> joebobjoe: yeah
<clever> joebobjoe: i do that with a config.nix file
<joebobjoe> and then what command to upgrade all packages?
<clever> joebobjoe: this creates a custom mystuff package, and then i can just nix-env -iA nixpkgs.mystuff
<clever> and it will replace the old mystuff with the new mystuff
<joebobjoe> what is all that package ovverides stuff
<clever> joebobjoe: thats how you override what a package does
<clever> joebobjoe: its all in the nixpkgs manual
<DigitalKiwi> hi FRidh
<joebobjoe> well the nix manual also said I could upgrade my packages using -u
<joebobjoe> how big of a donation do I need to make to fix nix-env -u
<joebobjoe> nix-env should just track attribute names
<clever> joebobjoe: have fun dealing with `nix-env -E 'giant lump of nix' -i`
<clever> what attribute did that come from? :D
<{^_^}> [nixpkgs] @jameysharp closed pull request #64594 → Prebuild /etc/passwd and /etc/group if possible → https://git.io/fjPWU
<joebobjoe> for every package identified by name it should figure out the attribute and find the newest package with that attribute
<joebobjoe> I don't know why someone would want a giant lump of nix anyway
<joebobjoe> I guess I can just maintain a list of attributes I want installed and feed it to nix-env -iA every time I want to update
<joebobjoe> after updating nix-channel in the root user
<clever> joebobjoe: thats exactly what mystuff in config.nix is doing
<{^_^}> [nixpkgs] @FRidh pushed 78 commits to master: https://git.io/fj9NQ
<{^_^}> [nixpkgs] @FRidh closed pull request #65497 → Staging next → https://git.io/fjyPT
<joebobjoe> that is such a hack
<joebobjoe> the reason I'm upset about nix-env -u trying to install the beta versions is now I am getting an installation error and now all my other pkgs won't update
<joebobjoe> and now I don't know whether to blame nix or python beta
ericsagnes has quit [Ping timeout: 276 seconds]
<FRidh> well, here we could improve the names of the Python derivations actually. But there are many other cases where you would encounter this.
<FRidh> DigitalKiwi: hi
<DigitalKiwi> FRidh: ty for helping with ocrmypdf
ngirard has joined #nixos
<FRidh> DigitalKiwi: you're welcome
<joebobjoe> ^ my python won't update :(
<joebobjoe> patching failed
<DigitalKiwi> i've spent months trying to get something that worked right ;_;
<joebobjoe> whoever and whatever is patching it
<clever> joebobjoe: thats python 3.8, try nix-env -iA nixpkgs.python3
<joebobjoe> clever: I'm just gonna upgrade to the beta version
<joebobjoe> just gonna use nix-env -u
<{^_^}> [nixpkgs] @FRidh pushed 15 commits to staging-next: https://git.io/fj9Nd
<{^_^}> [nixpkgs] @FRidh pushed 197 commits to staging: https://git.io/fj9NF
<FRidh> DigitalKiwi: almost done now :)
<{^_^}> [nixpkgs] @FRidh merged pull request #65758 → spidermonkey_{38,60}: fix cross compilation → https://git.io/fj92J
<{^_^}> [nixpkgs] @FRidh pushed 3 commits to staging: https://git.io/fj9Nb
<{^_^}> [nixpkgs] @FRidh merged pull request #65755 → pythonPackages.simplejson: 3.16.0 -> 3.16.1 → https://git.io/fj9gQ
<{^_^}> [nixpkgs] @FRidh pushed commit from @jonringer to master « pythonPackages.simplejson: 3.16.0 -> 3.16.1 »: https://git.io/fj9NA
<{^_^}> [nixpkgs] @FRidh pushed to master « Revert "pythonPackages.simplejson: 3.16.0 -> 3.16.1" »: https://git.io/fj9Nx
<{^_^}> [nixpkgs] @FRidh pushed commit from @jonringer to staging « pythonPackages.simplejson: 3.16.0 -> 3.16.1 »: https://git.io/fj9Np
<{^_^}> [nixpkgs] @FRidh merged pull request #65672 → pango: CVE-2019-1010238 → https://git.io/fj9J0
<{^_^}> [nixpkgs] @FRidh pushed commit from @mmahut to staging-19.03 « pango: CVE-2019-1010238 »: https://git.io/fj9Nj
<{^_^}> [nixpkgs] @Mic92 merged pull request #65827 → pythonPackages.paramiko: 2.4.2 -> 2.6.0 → https://git.io/fj9bZ
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fj9Ae
day|flip has quit [Quit: ERC (IRC client for Emacs 26.1)]
<{^_^}> [nixpkgs] @FRidh closed pull request #65662 → iptables: CVE-2019-11360 (release-19.03) → https://git.io/fj9vI
<{^_^}> [nixpkgs] @Mic92 merged pull request #65790 → [19.03] doc: fix passthru.updateScript help command → https://git.io/fj9Mx
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to release-19.03: https://git.io/fj9Av
<joebobjoe> ha, just piped a cutted xargs of nix-env -q to nix-env -iA and it actually downgraded some versions haha
<joebobjoe> hm, when I do a nix-env -i botan I get botan-2.7.0, but when I do nix-env -iA nixpkgs.botan I get botan-1.10.17
ericsagnes has joined #nixos
<clever> joebobjoe: 2 > 1
<joebobjoe> just like installing python3 by name rather than by attribute name gets a newer version
<joebobjoe> clever: shouldn't the attribute name point to the latest stable one
<clever> joebobjoe: 2.7 may not be stable?
<joebobjoe> but surely there is a stable 2.*
<{^_^}> [nixpkgs] @FRidh merged pull request #65624 → networkmanager: 1.18.1 -> 1.18.2 → https://git.io/fjS54
<clever> or 2 has major difference from 1 and breaks things
<{^_^}> [nixpkgs] @FRidh pushed 4 commits to staging: https://git.io/fj9Af
<clever> so users have to want 2
<joebobjoe> oh god
<joebobjoe> why do package managers insist on mangling names
<joebobjoe> if someone wants to old one they should have to specify botan1
<joebobjoe> if upstream 2 breaks something that's upsteam's fault
<joebobjoe> makes the whole experience more counterintuitive for new users
<srhb> I think you're probably right in this case, but it's not always so clear.
<joebobjoe> clever: because if I install nixpkgs.botan2 to get the latest, I'll be stuck on the oldest when 3 comes out
<{^_^}> [nixpkgs] @FRidh merged pull request #65376 → Use upstream units for mdadm → https://git.io/fjDAB
<{^_^}> [nixpkgs] @FRidh pushed 10 commits to staging: https://git.io/fj9AJ
<joebobjoe> what's the point of doing semantic versioning if all the package names have to stay behind because devs break things anyway
<joebobjoe> package managers shouldn't try to fix this
<srhb> Ideally we had a better way of dealing with versioned attributes other than just specifying the name, but we don't
<srhb> But file a PR. :)
<joebobjoe> how do I find the .drv files on github for https://nixos.org/channels/nixpkgs-unstable
<srhb> joebobjoe: The drv files don't exist in source control.
<joebobjoe> ok, where do I find the nix package for python3-3.8.0b2
<joebobjoe> couldn't search it in the nixpkg search tool
<clever> > python38.meta.position
<{^_^}> "/var/lib/nixbot/nixpkgs/master/repo/pkgs/development/interpreters/python/cpython/default.nix:258"
<joebobjoe> wow
<clever> > builtins.unsafeGetAttrPos "python38" pkgs
<{^_^}> { column = 31; file = "/var/lib/nixbot/nixpkgs/master/repo/pkgs/top-level/all-packages.nix"; line = 8661; }
<clever> joebobjoe: youll also want to look at that line of all-packages.nix
<joebobjoe> ugh one would think that the master branch should be called unstable
<joebobjoe> to correspond with nixpkgs-unstable naming
<clever> joebobjoe: unstable is the latest version of master to pass a set of tests
<joebobjoe> that's what confused me i was browsing a specific tree in github
<joebobjoe> clever: well how do I find that on github?
<srhb> joebobjoe: The corresponding tested channels are in the nixpkgs-channels repo.
<srhb> joebobjoe: Basically the commits that passed scrutiny by Hydra.
zupo has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed to master « python38: 3.8.0b2 -> 3.8.0b3 »: https://git.io/fj9At
<joebobjoe> thanks for help all I'll be back later
joebobjoe has quit [Quit: Lost terminal]
<{^_^}> [nixpkgs] @vbgl merged pull request #65424 → coqPackages.coquelicot: 3.0.2 -> 3.0.3 → https://git.io/fjycN
<{^_^}> [nixpkgs] @vbgl pushed to master « coqPackages.coquelicot: 3.0.2 -> 3.0.3 »: https://git.io/fj9AO
<{^_^}> [nixpkgs] @FRidh merged pull request #65043 → perlPackages: update → https://git.io/fj1Fr
<{^_^}> [nixpkgs] @FRidh pushed 123 commits to staging: https://git.io/fj9As
gspia[m] has joined #nixos
eof_ has joined #nixos
<{^_^}> [nixpkgs] @srhb merged pull request #65793 → solr: 7.7.1 -> 7.7.2, 8.1.1 -> 8.2.0 → https://git.io/fj9DD
<{^_^}> [nixpkgs] @srhb pushed 3 commits to master: https://git.io/fj9AG
<{^_^}> [nixpkgs] @FRidh closed pull request #64264 → [Golang] nix-shell: Symlink src root under package path in GOPATH → https://git.io/fj6OE
eof has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @FRidh pushed 172 commits to staging-next: https://git.io/fj9AZ
<{^_^}> [nixpkgs] @srhb merged pull request #65778 → reason: 3.3.7 -> 3.5.0 → https://git.io/fj9ox
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fj9Ac
<{^_^}> [nixpkgs] @Mic92 merged pull request #64655 → fribidi: fix cross compilation → https://git.io/fjPdn
<{^_^}> [nixpkgs] @Mic92 pushed commit from @tadeokondrak to staging « fribidi: fix cross compilation (#64655) »: https://git.io/fj9AC
<{^_^}> [nixpkgs] @srhb merged pull request #65749 → hound: Wrap git & mercurial binaries → https://git.io/fj9uX
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fj9AW
<{^_^}> [nixpkgs] @srhb merged pull request #65736 → duktape: 2.3.0 -> 2.4.0 → https://git.io/fj9BA
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fj9A8
iqubic has quit [Ping timeout: 244 seconds]
<{^_^}> Channel nixos-19.03-small advanced to https://github.com/NixOS/nixpkgs/commit/93ea6db29cc (from 37 minutes ago, history: https://channels.nix.gsc.io/nixos-19.03-small)
<pie_> do you guys know any good software defined networking "stuff"? im interested in managing network stuff for containers - but unrelated to that, I heard from a prof about _one_ SDN tool that turned out good, flow-somethingorother? or something-flow?
MarcWeber has joined #nixos
<srhb> pie_: OpenFlow?
<pie_> yeah thanks!
<srhb> Most of the k8s stuff is basically all tied together magically on top of iptables, ipvs, lvs, ...
<srhb> For better or worse.
<pie_> isnt there something more ergonomic
<pie_> or is there some fundamental reason that thats the best we can do
<srhb> I don't know enough of networking to really answer that convincingly. I will say that it gets you a very long way.
<pie_> well obviously you can do everytihng with it, thats not really what i meant
* srhb nods
<pie_> i havent been attracted to learning it because all that stuff looks ugly and meh :(
<pie_> but i guess i might just have to
<srhb> At the very least in order to know why it's worse than some more grounds-up SDN approach, I suppose :-P
<{^_^}> [nixpkgs] @srhb merged pull request #65616 → nixos/tests/cassandra: Test jmxPort → https://git.io/fjS92
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fj9AR
lambda-11235 has quit [Quit: Bye]
<{^_^}> [nixpkgs] @srhb merged pull request #65621 → nfpm: init at 0.12.0 → https://git.io/fjSQw
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fj9Au
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fj9A2
<{^_^}> [nixpkgs] @srhb merged pull request #65607 → gopro: init at 1.0 → https://git.io/fjSXM
iqubic has joined #nixos
<{^_^}> [nixpkgs] @srhb merged pull request #65599 → hcloud: 1.11.0 -> 1.13.0 → https://git.io/fjS2n
<{^_^}> [nixpkgs] @srhb pushed 3 commits to master: https://git.io/fj9Ar
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MarcWeber has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @srhb merged pull request #65336 → mongodb-compass: 1.13.1 -> 1.17.0 → https://git.io/fjDrp
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fj9Ai
alex`` has joined #nixos
joebobjoe has joined #nixos
<joebobjoe> are there any newer or competing projects that think they're better than nix for package management on linux?
<srhb> joebobjoe: guix is newer (given that it's based on Nix)
<srhb> joebobjoe: I don't think it's necessarily better though.
<clever> srhb: does guix even work on darwin?
<joebobjoe> does it have the nix-env issues?
<srhb> clever: No idea, but I'd expect not.
<clever> srhb: thats what i suspected
<srhb> joebobjoe: What nix-env issues?
<clever> srhb: -u matching by name
<srhb> Ah. I don't know. But I wouldn't use -u or nix-env for general package management anyway.
<joebobjoe> then why does it exist
<joebobjoe> to deter new users?
<clever> legacy code i'm guessing
<srhb> joebobjoe: You're being unnecessarily facetious, please don't. It was probably felt it was a good idea at the time to provide a "normal package manager"-like approach to package management :)
<jackdk> this seems likely to me too
<srhb> It then turned out to be not really that great compared to more declarative approaches.
<srhb> So the issues, that are fixable, went largely unfixed.
<joebobjoe> has no one found a proper bijunction?
<joebobjoe> or overlay or whatever
<srhb> joebobjoe: What do you mean by that?
<joebobjoe> to overlay old behavior on top of the new, maybe with a few assumptions or additional specifications by the user should anything go awry
<joebobjoe> the traditional package manager behavior, like pacman, on top of nix
<srhb> I would say no, not really.
<joebobjoe> maybe nix-env can be improved
<srhb> The declarative approach is deemed better in most cases.
<srhb> And people are sort of waiting around to see what kind of things might be "neat" with nix flakes.
<srhb> I think we're mostly in agreement that the problem with traditional package managers is what makes the *traditional* package managers.
<srhb> them*
<rawtaz> joebobjoe: what do you need a non-declarative package manager for?
<srhb> And we just tend to not use Nix in that way, because we feel we have a better approach :)
<rawtaz> im just trying to follow along
<joebobjoe> then why is there no way to simply declare a list of packages in a text file in my home directory that is kept up to date automatically, or on update command?
<iqubic> I'm having a bit trouble installing home-manager.
<srhb> joebobjoe: There is.
<joebobjoe> if declarative is better^
<srhb> Plenty of ways, in fact..
<joebobjoe> built-in
<joebobjoe> without third party addons
<FRidh> buildEnv...
<srhb> That's the monolith vs. unixy tools argument over again.
<srhb> There's nothing wrong with using nix-prefetch-git to update a json file which nix then uses.
<iqubic> I just tried running `nix-shell '<home-manager>' -A install` in a shell.
<FRidh> although that's not even needed either, just a list is enough
<iqubic> I just got "error: file 'home-manager' was not found in the Nix search path (add it using $NIX_PATH or -I)" return.
<joebobjoe> then why is nix called a "package manager" if there is no simple built in way to declare a list of packages without doing the whole "my package" bs
<srhb> iqubic: Did you add that path to your NIX_PATH?
<srhb> joebobjoe: yes, that's probably a mistake.
<srhb> Nix is not really a package manager :)
<sphalerite> joebobjoe: `with import <nixpkgs> {}; { inherit tmux vim nethack; }` in a file called packages.nix, and install using nix-env -f packages.nix -ir
<srhb> There's definitely arguments for rebranding.
<iqubic> srhb: I ran "nix-channel --add https://github.com/rycee/home-manager/archive/release-19.03.tar.gz home-manager" then updated the channel.
<iqubic> I'm on Nixos.
<joebobjoe> sphalerite: where should packages.nix go?
<sphalerite> joebobjoe: doesn't matter.
<joebobjoe> what is nix then? a channel manager?
<srhb> iqubic: Is your channels path in your nix path?
<clever> iqubic: you need to relog the first time you add a non-root channel
<srhb> joebobjoe: I find it difficult to say. It's still, in the history of software management, a new thing. I find it hard to come up with an appropriate term.
<iqubic> clever: I see
<rawtaz> joebobjoe: could you please stop being so critical or unfriendly in your tone? calling stuff here bullshit isn't exactly coming across very nicely. please be less frustrated in how you write.
<iqubic> I was hoping I wouldn't need to do that.
<rawtaz> joebobjoe: its an interesting discussion, but would be nice not to read condecending wordings
<joebobjoe> ok but this was sold to me as something amazing, and I tried it on mac and have hit software quality issues ever since
<FRidh> sphalerite: list and attribute set actually still cause -u to use names, so it seems buildEnv is needed afterall
<sphalerite> FRidh: well, the idea is not to use -u ;)
<rawtaz> joebobjoe: that goes for about every other software too. its just what $computing is..
<srhb> joebobjoe: That *is* frustrating, of course.. But we're all just volunteers. We welcome all help :)
<clever> FRidh: -u will always use names, but if you -i a list/set, it will install just the things in that list/set
<joebobjoe> FRidh: exactly
<sphalerite> FRidh: so the same -ir command should be used for updating too
<clever> FRidh: and if it was already installed, then it updates to whatever the expr gave
<rawtaz> joebobjoe: if do you have any ideas how things can be improved?
<joebobjoe> I guess one thing the "functional declarative" style still hasn't fixed about programming is integration with posix
<FRidh> I know it uses names, but there are ways to use -u despite that, e.g. by using a buildEnv. it will only use name resolution for the buildEnv, but not for its contents
<joebobjoe> things still are stateful
<iqubic> I was hoping I wouldn't have to relog, because I have a ton of tabs opened in Firefox related to my current project, and I don't want to lose them.
<srhb> joebobjoe: Yeah. In a similar vein, there's a reason we threw FHS out the window on NixOS.
<srhb> joebobjoe: Some packages play really nice with immutable concepts, and some really, *really* don't.
<DigitalKiwi> i think a lot of things that seem broken with nix are just broken things that when used with nix shows how broken the systems really are
<DigitalKiwi> if that makes sense
<joebobjoe> DigitalKiwi: yea sure does
<srhb> Often, at least. I do find most packaging would be superior if they packaged for nix constraints first and everything else second.
<joebobjoe> like the headache of terminals
<joebobjoe> termcap
<srhb> When a build starts requiring internet access just to determine its dependencies I cry a little :-)
<clever> srhb: *eyes go*
<srhb> :/
<joebobjoe> srhb: wait, you through out FHS? :( is that why you install in my / ?
<srhb> joebobjoe: Yeah, we did.
<DigitalKiwi> srhb: this is the test framework for something i'm trying to package https://github.com/tmbdev/hocr-tools/blob/master/test/tsht
<srhb> That's not why though
<clever> joebobjoe: thats why nixos doesnt use /bin and /lib at all
<joebobjoe> but where does I put my resources? images and such?
<srhb> joebobjoe: There's no reason /nix couldn't live in /var/lib/nix or something.
<iqubic> clever: Is there a way to do this without relogging?
<joebobjoe> srhb: can I do that on install?
<srhb> joebobjoe: No, you'd lose all binary caches
<clever> iqubic: [clever@amd-nixos:~]$ ls ~/.nix-defexpr/channels/
<clever> iqubic: is home-manager in there?
<srhb> joebobjoe: Since we link to full paths into /nix, you would change every package by doing that.
<iqubic> Yes.
<srhb> joebobjoe: So... Yes, but no. ;-)
<iqubic> It is.
<iqubic> Home-manager is there.
<clever> iqubic: use that path instead lf <home-manager>
<iqubic> and a manifest.nix
<joebobjoe> so sphalerite's solution of ultimately using a packages.nix with -ir for maintaining a list of updated packages in an env is agreed as a good idea?
<iqubic> clever: It's not working.
<sphalerite> ,declarative
<{^_^}> There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env https://git.io/fAQHW ; 2) buildEnv, providing more control over the paths that are linked into the profile https://git.io/fp0aU ; 3) home-manager, providing nixos-like config for your ~ https://github.com/rycee/home-manager
<srhb> joebobjoe: Yes.
<sphalerite> joebobjoe: ^ these are the 3 "best" options for managing a declarative user setup
<clever> iqubic: single quotes stop ~ from doing its job
<iqubic> I see.
<srhb> joebobjoe: I find having just one thing "installed" in the traditionel sense is the way to go.
<srhb> joebobjoe: (In my case, that's my system profile)
<iqubic> There we go. It's building now.
<srhb> joebobjoe: Which ultimately and uniquely determines every package in my system that is not transient.
<joebobjoe> sphalerite: which of the three are built-in to nix
<joebobjoe> srhb: where do you put your system profile?
<sphalerite> joebobjoe: the first two
<joebobjoe> or how do you maintain the packages
domogled has quit [Quit: domogled]
<srhb> joebobjoe: it's just a list, I edit the list.
<clever> joebobjoe: 1 is directly part of nix, 2 make use of nixpkgs (you almost never use nix without nixpkgs), 3 is a 3rd party extension
<joebobjoe> sphalerite: when you used that packages.nix, was that the attrset method?
<sphalerite> joebobjoe: yes
<joebobjoe> ok I liked that, more unixy
<clever> i also prefer 1 over 2
<sphalerite> joebobjoe: I think the part missing in srhb's explanation is that she's using nixos, so she configures the system declaratively as a whole anyway :)
<clever> 2 creates a single massive package in nix-env, and you must update it all at once
<clever> 1 just tells nix-env to install each thing seperately
<iqubic> how important is it to read all the home manager news? I seem to have 71 unread messages.
<clever> so you can temporarily ignore this advice, and `nix-env -iA nixpkgs.python38` to update just one thing, rather then updating it all at once
<pie_> teto: i see you wrote the package for mininet, I dont suppose you know much about SDN stuff?
<joebobjoe> sphalerite: how do you emulate the nixos way most closely on darwin? method 1? attrset?
<clever> or `nix-env -e python3` to remove it temporarily, without also updating everything else at the same time
<srhb> joebobjoe: nix-darwin probably :)
<iqubic> Also ~/.config/nixpkgs/home.nix seems like a terrible place for the config. Can't I just put it in ~/home.nix ?
ottidmes has joined #nixos
<joebobjoe> clever: or you could just edit your package file
<iqubic> I can just make a symlink, right?
<clever> joebobjoe: but to apply that new package file, you need to atomicly update everything listed in it
<clever> joebobjoe: and sometimes you may run into issues where you have to update 20 things just to remove 1 thing
<joebobjoe> oh I didn't realize your package file wouldn't be frozen
<srhb> iqubic: Yes, but import resolution might surprise you at times if you do that. It might be nicer to have it be a file with a nix import
<joebobjoe> ok I like this
<iqubic> srhb: How might I get suprised?
<joebobjoe> is there a blog post or article or something that explains the justifications of abandoning FHS on nix?
<joebobjoe> like isn't FHS posix compliant?
<{^_^}> nix#2109 (by Infinisil, 1 year ago, open): imports don't resolve symlinks absolutely, leading to unexpected behaviour
<joebobjoe> er, ehm prs or something
<iqubic> srhb: do those issues exist in home-manager?
<srhb> joebobjoe: I don't know of one, but for example we use it to avoid accidental impurities (like a package somehow picking up /bin/bash from the environment)
<srhb> iqubic: It's a nix issue, so yes.
<iqubic> I see.
<srhb> joebobjoe: So, one reason is isolation and purity.
<iqubic> I guess I'll just use the .config location for home.nix
<joebobjoe> I just realized nix is written in c++
<srhb> joebobjoe: Since.. Recently :-)
<clever> joebobjoe: when i was on gentoo, some packages would enable featues i didnt say to enable, because it auto-detected X installed, and enabled support for X
<clever> joebobjoe: and then when i remove X, the package breaks hard
<joebobjoe> clever: that doesn't happen on nix right?
<clever> joebobjoe: correct
<iqubic> how long has nix been based on C++?
<joebobjoe> ok that's how every package manager should behave
<joebobjoe> like nix
<srhb> iqubic: Since nix 2 basically.
<clever> joebobjoe: because X is at /nix/store/hash-x, you cant auto-detect it without nix giving you the whole path to it
<srhb> iqubic: really 1.12 or something...
<iqubic> What was it written in before then?
<srhb> Mostly perl.
<clever> joebobjoe: there is also the optional sandbox, which basically builds things in a container, so you cant even be naughty and look in /nix/store/*/ yourself
<joebobjoe> clever: they could search for it
<srhb> Hence the sandbox. :)
<clever> joebobjoe: the sandbox is basically a container, it changes what / maps to, so you cant search!
<joebobjoe> does the sandbox only work on nixos?
<srhb> No, any Linux. Partially on Darwin, iirc.
<clever> joebobjoe: on darwin, the sandbox is implemented with ACL's, that cause error codes if you look at something you shouldnt
<joebobjoe> that sounds just as secure as on linux?
<srhb> The sandbox just more than just limit filesystem access.
<srhb> does more*
<clever> joebobjoe: it means darwin cant remap paths, only block access
<joebobjoe> oh
<clever> joebobjoe: on linux, /bin/sh can differ between builds
<joebobjoe> does macos's built in sandbox feature only work with app store apps?
<iqubic> srhb: Perl is the embodiment of the quote "The art of doing twice as much as you should half as well as you should"
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<iqubic> I know that quote describes multitasking, but that's my opinion on Perl.
<iqubic> It's got the whole kitchen sink, and then some.
<srhb> Well, you know, opinions... :)
<joebobjoe> clever: isn't that gentoo packager issue you described a bug?
<clever> joebobjoe: yeah
<clever> joebobjoe: it could be solved by adding more --disable-x flags, to every single package in the system
<clever> joebobjoe: but the problem is finding those bugs, and fixing them, endlessly
<iqubic> joebobjoe: I used to use Gentoo, two years ago, before switching to Nixos. That same bug plauged me back then too.
<clever> the nix store just automatically prevents it from ever happening
<srhb> It's not a bug as much as a class of bugs that we've just eliminated.
<iqubic> it was one of the reasons I migrated to nixos.
<srhb> Which is the coolbeans part.
<iqubic> yeah. I love how the nix store works.
<joebobjoe> why can't gentoo just run the nix store as part of its bug identification process?
<joebobjoe> or anyone run it
<srhb> They absolutely could.
<srhb> That's basically what I meant when I said: People should package for Nix first, everything else second.
<srhb> That gives you a ton of benefits.
<srhb> But at some point you've just reimplemented Nix.
<srhb> Er, NixOS :)
<iqubic> if you must have that one package that relies on an old version of Qt, you can still run that package, and update Qt to the latest version at the same time.
<joebobjoe> but why is it worth abandoning the FHS
<clever> joebobjoe: conflicting packages in /lib and /bin
<joebobjoe> why do you combine /lib and /bin
<joebobjoe> it's not posix?
<clever> joebobjoe: combined, as in, they both have the same problems
<joebobjoe> oh
<clever> joebobjoe: there are 2 node binaries, one is nodejs, the other is a ham radio program
<clever> joebobjoe: which one gets to win the /bin/node path?
<rawtaz> joebobjoe: stuff are linked from the usual places into the nix store, so what does it matter? :o
<joebobjoe> oh, so nix is basically a symlink manager
<iqubic> You're right. Nix/NixOS is not posix compliant.
<{^_^}> [nixpkgs] @srhb merged pull request #63352 → skopeo: 0.1.36 -> 0.1.37 → https://git.io/fjaiA
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fj9xO
<joebobjoe> is there something like nix/nixos, that is posix compliant?
<iqubic> joebobjoe: It's much more than a symlink manger.
<iqubic> joebobjoe: No. Because those two concepts are complete opposites.
<joebobjoe> I don't get why you can't just symlink packages into /bin /lib as appropriate and still be fhs compliant
<clever> joebobjoe: buildFHSEnv basically does that, thats how steam works on nixos
<iqubic> What is so important about having a FHS compliant system?
<srhb> Have you read the POSIX standard? :)
<joebobjoe> srhb: no, no I haven't
<joebobjoe> but parts of it are beautifyl
<joebobjoe> and they are working on it
<srhb> Yeah. Some aren't :D
<joebobjoe> I just care about FHS because everyone is doing FHS
* srhb shrugs
<joebobjoe> it's cool having a standard for where files should go
<srhb> But as shown above, it breaks immediately when you have two files of the same type with the same name
<joebobjoe> or maybe you're saying nix's standard is better (er, nixos's?)
<srhb> I don't want to lose that feature
<srhb> I am, yes.
<iqubic> Nix doesn't do FHS, but still has a rock solid standard for where each file goes.
<srhb> I _need_ to have multiple versions of the same program available at all times
<rawtaz> wait, is it just in NixOS that nix symlinks into the store, so things look like they would on a regular system?
<srhb> rawtaz: *almost*
<rawtaz> i mean, if it does symlink, then there will be files in the FHS places, so whats the difference?
<rawtaz> it *looks* FHS compliant
<srhb> rawtaz: NixOS is really one nix profile that creates something that sort of looks like a regular FHS system almost. Plus systemd, plus activation scripts.
<clever> but its mainly rooted under /run/current-system/
<iqubic> The difference is that there will always be that one application that doesn't respect the symlinks.
<clever> /run/current-system/etc, /run/current-system/sw/bin, /run/current-system/sw/share
<joebobjoe> also, two other gotchyas I've encountered so far
<iqubic> yes?
<joebobjoe> package attribute naming standard does not correspond well with the semantic versioning standard
<joebobjoe> which I know is more recent than nic
<{^_^}> [nixpkgs] @jorsn opened pull request #65831 → proot-termux: init at 20190505 (termux fork of proot) → https://git.io/fj9x8
<joebobjoe> > botan
<{^_^}> "<derivation /nix/store/4g24a1fgcm4n6s2bz9zdiljybl9v27y7-botan-1.10.17.drv>"
<joebobjoe> > botan2
<{^_^}> "<derivation /nix/store/421wnr75c0lfh6mx5qysmm8s7jiihfnw-botan-2.7.0.drv>"
<joebobjoe> nixpkgs.<package> should always point to the current version
<srhb> *usually* the old package gets the name with the suffix.
<srhb> joebobjoe: Yes.
<srhb> (Which is why I invited you to PR a fix!) :)
<joebobjoe> ok, so some people do agree it can be chagned ok
<srhb> yeah.
<joebobjoe> maybe will create upstream work to integrate packages?
<srhb> There are reasons to sometimes not do the change immediately
<joebobjoe> or would that just be rejected
<srhb> As in, multi version packages?
<srhb> I would probably hold off a bit as the nix flakes concept might significantly influence how we do versioning. At least, you may risk wasting some work currently, things are in flux.
<joebobjoe> idk like if a package relies on the attribute botan but not the specific version and then botan-2.whatever breaks that package
<srhb> joebobjoe: Usually, packages require "botan" and are fed the specific version as an argument.
podylato has joined #nixos
<srhb> joebobjoe: callPackage ./foo.nix { botan = botan1; };
<srhb> joebobjoe: Like so
<joebobjoe> huh
mexisme has quit [Ping timeout: 250 seconds]
<joebobjoe> what if they require a specific range of versions themselves
<joebobjoe> what kind of packages are there
<srhb> joebobjoe: Sorry, i did not understand that.
<joebobjoe> ok nix flakes sounds interesting then I'll try to read about that
<joebobjoe> like, is the reason nixpkgs.botan refers to version 1 of botan because botan 2 breaks a lot of packages that depend on it?
<srhb> joebobjoe: Probably yes. Another example is boost. We have many versions of that because we cannot easily avoid it.
<srhb> joebobjoe: So packages will say, { boost = boost155; }
<srhb> Considering how few packages rely on botan I'm more inclined to say the main attribute pointing to the old version is likely a mistake that's easily fixed.
<joebobjoe> but on nix, different versions will not conflict
<srhb> but I didn't check the commit history.
<srhb> joebobjoe: Right. But they will clutter, and require maintenance, and security concerns, and {...}
<joebobjoe> ok I'll check
<srhb> joebobjoe: Our main issue is really time and effort on the part of contributors and maintainers.
<joebobjoe> oh I see
<srhb> nixpkgs is... huge. :-)
<joebobjoe> is there a way to see which of my packages are being "held back" from updating by other packages?
<{^_^}> [nixpkgs] @teto merged pull request #64848 → matomo: 3.9.1 -> 3.10.0 → https://git.io/fjX5S
<iqubic> I don't think you can easily see that.
<{^_^}> [nixpkgs] @teto pushed commit from @jonringer to master « matomo: 3.9.1 -> 3.10.0 (#64848) »: https://git.io/fj9xu
<srhb> joebobjoe: Your best bet is to update it and see what breaks.
orivej has joined #nixos
<srhb> joebobjoe: Unfortunately that's an expensive operation if it's far down the hierarchy.
<joebobjoe> but nix is a dependency resolver too right?
<srhb> Yes.
<clever> but it doesnt compute the right version based on constraints
<clever> it instead just has the version set for every package, and it only updates if its confirmed to not break other open-source things
<joebobjoe> whoah is that repology a data mining thing
<clever> for example, libquazip got updated recently, but it broke teamspeak
<rawtaz> repology?
<srhb> joebobjoe: We provide some json to help them see what we have, I'm not clear on the details.
<clever> due to teamspeak being closed-source, CI cant test it, so nobody noticed when updaitng libquazip
<rawtaz> ah
lambda-11235 has joined #nixos
<rawtaz> its amazing how many packages nix has. i mean, heck, where did that come from anyway :)
<rawtaz> and the fact that theyre well up to date too
<srhb> rawtaz: We have some auto generators that help us a lot
<joebobjoe> I guess they are good projects to port a piece of software to nix
<srhb> But we can also test and ci better than a lot others.
<srhb> And automatically do a lot of stuff in general.
<joebobjoe> wait why does repology have a nix_stable thing
<srhb> Having your "package manager" (sorry) be a programming language is quite powerful :-P
<DigitalKiwi> rawtaz: the way you phrased that reminded me of https://www.neverstopmarketing.com/wp-content/uploads/2016/11/facebook5.jpg
<rawtaz> yeah, its easier to work with nix it seems, when packaging
<joebobjoe> there is no such thing as a nix-stable channel I thought
<srhb> joebobjoe: that'll be nixos-19.03
<rawtaz> DigitalKiwi: :D
<joebobjoe> srhb: so that'll be available on darwin soon?
gxt has quit [Ping timeout: 260 seconds]
<srhb> joebobjoe: It's always available.
<srhb> joebobjoe: It might not have very relevant test sets for darwin though
<srhb> joebobjoe: Read this: http://howoldis.herokuapp.com/ -- nixpkgs-19.03-darwin is the most relevant for you.
<joebobjoe> srhb: yes but in nix you have to refer to the channels by date
<joebobjoe> on repology's website they just havea a "current" stable
<srhb> joebobjoe: There is only one stable, and that's the latest of the .03 and .09 releases.
<joebobjoe> yea but there is no channel that tracks the latetest release
<joebobjoe> sorry I'm high
<srhb> It's just a name. :)
<rawtaz> hm. wikipedia says "
<rawtaz> GNU Guix - another declarative package manager for Linux distributions, built on Nix but which uses the more ubiquitous GNU Guile for configuration and customization, instead of the domain-specific language of Nix"
<rawtaz> is that really accurate? i wasnt aware guix being "built on" nix
<srhb> Yes, it's accurate.
<joebobjoe> probably some european translation mistake
<srhb> No, it is indeed built on Nix.
<rawtaz> meh. whats the point then, hehe
<joebobjoe> ugh
dansho has quit [Ping timeout: 248 seconds]
<srhb> Some people like guile.
<joebobjoe> I don't get how using nix .03/.09 releases provide more security?
<srhb> rawtaz: I think these are solid points: https://news.ycombinator.com/item?id=16490027
<joebobjoe> aren't rolling updates more secure
<srhb> joebobjoe: unstable can be blocked on mass rebuilds
<iqubic> joebobjoe: Not really.
<srhb> joebobjoe: This may delay security fixes.
<srhb> joebobjoe: The stable branch mostly just receives security fixes, so channel bumps are fast.
<joebobjoe> srhb: so that's the *only* reason nix introduced stable branches?
<srhb> No.. People like stable branches for more than that reason.
<joebobjoe> they don't want their software to break?
<srhb> For instance, not suddenly having major software updates require migrations or whatnot
<srhb> You can reasonably safely automatically update your stable branch servers without intervention.
<srhb> You absolutely cannot do that on unstable.
<srhb> (at least, not in general)
<srhb> But this is not unique to NixOS in any way.
<joebobjoe> oh I think my understanding of nix is wrong
<joebobjoe> every package already has its dependency versions set in stone in the nix channel?
<srhb> fsvo of stone
<joebobjoe> all packages on all machiens always have the same dependencies?
<srhb> It's easy to override locally.
<srhb> Yes.
<srhb> Given 1 nixpkgs commit and no overlays
<joebobjoe> why would I need to do that
<joebobjoe> if the packages work
<srhb> overlays?
<joebobjoe> or are you talking about custom packages
<joebobjoe> updated versions
<srhb> You.. Might want a different version than the one in nixpkgs? :)
<joebobjoe> just for yourself?
<srhb> I mean, I don't know your use cases, just my own :P
<srhb> You may want a feature enabled that we don't want...
<DigitalKiwi> sometimes you want to enable a feature that's not enabled by default
<joebobjoe> if you do that is your package tested as much as the nix organization tests them for the channel?
<srhb> No.
dansho has joined #nixos
linarcx has joined #nixos
<srhb> It's tested 100% less.
<joebobjoe> so how do I know it works
<srhb> You try it.
<joebobjoe> but it is tested locally
<srhb> I don't understand what you're saying. :)
<joebobjoe> with its dependencies, just not as the dependency of every other package in the channel
<joebobjoe> nevermind I understand now
<rawtaz> srhb: looks like a lot of computer scientifical stuff that end users dont see or care about at all, that article :)
<srhb> rawtaz: I guess I might be one of those computer scientifically interested people then :-P
<srhb> (As are a lot of Nix users)
<srhb> I think they're all solid points, and I think it's absolutely great that guix is a real choice.
Diagon has joined #nixos
<rawtaz> hehe sure :)
<srhb> Also, their UI absolutely blows ours out of the water.
<srhb> UX in general.
<srhb> So we have a lot to learn :)
<rawtaz> srhb: but do you think Guix is "better"?
MarcWeber has joined #nixos
<srhb> rawtaz: I think parts of it is, and parts of it isn't.
<petercommand> I am having trouble getting `nix-shell -p gcc9` to work
<joebobjoe> wait so guix is kinda like a fork of the nix project
<rawtaz> someone should pick the best of both worlds and make one supreme bastard that kicks everyone elses butt
<srhb> joebobjoe: In a sense.
<petercommand> After doing `nix-shell -p gcc9`, I am dropped into a shell where gcc7 is the default gcc
<srhb> rawtaz: What's wrong with healthy competition :P
<rawtaz> joebobjoe: you have lots of questions today
<joebobjoe> and not write it in c++
<iqubic> I can't use GuixSD, because my internet card isn't compatible.
<clever> petercommand: one min
<joebobjoe> jk
<rawtaz> srhb: just seems inefficient that so much time and energy is spent on two different things instead of one :)
<clever> petercommand: you want to use gcc9Stdenv
<srhb> I will say that it would be great if we could *share* more
<petercommand> clever: ah..
<{^_^}> [nixpkgs] @Mic92 merged pull request #65407 → Add zfs replication → https://git.io/fjyLS
<clever> petercommand: nix-shell -E 'with import <nixpkgs> {}; gcc9Stdenv.mkDerivation { name = "foo"; }'
<{^_^}> [nixpkgs] @Mic92 pushed 4 commits to master: https://git.io/fj9xa
<srhb> But I absolutely think 2 projects is better than 1. Ideologically you just get to explore more space.
<iqubic> My laptop has wireless chip that isn't compatible with Guixsd.
<rawtaz> srhb: but whichever one you use, you are missing some things thats in the other one :P
<rawtaz> kinda sucks
<srhb> True true.
<petercommand> clever: thanks, this works
<rawtaz> but anyway, it is what it is. i just find it sad that they created a new one instead of fixing up the old one, so to speak
<petercommand> clever: :D
<rawtaz> its like linux distros. TOOOOOOO MANY
<clever> rawtaz: ive made 2 more distros, using nix as a base, lol
<rawtaz> clever: why? :P
<srhb> rawtaz: I think the people that wanted guix wanted, no questions asked, a scheme as the language.
<DigitalKiwi> rawtaz: https://xkcd.com/927/
<clever> rawtaz: the 1st, is a single haskell binary, in the initrd, and thats it
<srhb> rawtaz: You can by nixlang out of my cold, dead hands ;-)
<srhb> pry*
<clever> rawtaz: it was more of a toy, just to say i can do it :P
<rawtaz> clever: right :)
<clever> rawtaz: the 2nd is more of an embeded os, that doesnt contain systemd
<joebobjoe> I want 1) a posix-compatible nix, 2) it written in c, or haskell, 3) it be seamless multi-user/single-user, and uh a whole bunch of other things I forgot
<clever> rawtaz: its also small, but not single-binary small
<srhb> joebobjoe: Good luck :-P
linarcx has quit [Quit: WeeChat 2.5]
<rawtaz> srhb: my feeling is that, ok, maybe scheme is very nice. but is it NICER ENOUGH to justify spending all this time and energy on building Guix, when there's already Nix and nix being nice too.
<clever> joebobjoe: have a look at the haskell-init above, and say goodbye to posix compat, because you can now live in forkIO children! :P
<srhb> rawtaz: Yeah. What I was trying to say is that for these people it's the end-goal, not something you can trade off.
<srhb> I know the feeling, I had a scheme period in my life too :P
<clever> joebobjoe: rewrite every single util you ever plan to use, in haskell, and forkIO them, rather then createProcess!
<rawtaz> srhb: so how come youre not scheming today too? how come you didnt continue with guix instead of nix?
<rawtaz> if youre a schemer i mean
<rawtaz> or do you like nix more?
<srhb> rawtaz: I ended up being more enamored by purity than by the ADT-niceness.
<srhb> rawtaz: So, Haskell.
<srhb> rawtaz: Then I wanted a pure package manager. So, Nix.
<srhb> rawtaz: Then I wanted a pure OS. So, NixOS.
<srhb> Now the extreme niceness of Nix + Haskell is hard to let go of.
<srhb> I will try GuixSD one day for sure.
<DigitalKiwi> joebobjoe: https://github.com/haskell-nix/hnix
<rawtaz> bah. screw this, im going back to slackware. seems like the least changing and duplicating environment ;)
<srhb> Haha
<srhb> Oh Slackware, never change...
<srhb> And so they didn't!
<joebobjoe> clever: what architectures were your bare bones os's written for
<joebobjoe> and your initrd env
<joebobjoe> ugh fine I'll check it myself damnit
<clever> joebobjoe: not-os has been compiled for ARM first, but only tested on x86
<clever> joebobjoe: haskell-init has only been compiled/tested on x86, but arm shouldnt be that hard
<sphalerite> clever: wait, you've never run not-os on ARM?
<clever> sphalerite: correct, ive compiled it to arm before, but never actually ran it on arm (neither vm nor rpi)
<sphalerite> lol
<clever> sphalerite: wait wait, forgot, lol
<clever> sphalerite: actually, i have netbooted the rpi to it, lol
<sphalerite> ah ok
<clever> and that was my arm build slave at one time
<clever> but the power supply has trouble booting now
<clever> thats also where i'm using nix-env in interesting ways
<sphalerite> I was thinking, that would be strange, writing it and building it and then not actually testing it
<clever> nix-env -p /nix/var/nix/profiles/per-user/root/rpi3-netboot -f not-os/release.nix -A rpi_image -I nixpkgs=./nixpkgs/ --set
<sphalerite> why not?
<clever> this builds not-os, for netboot rpi, then updates the rpi3-netboot profile to point to the result
<clever> and symlinks in the tftp config then boot that profile
<clever> if i ever brick the rpi, i can do a nix-env rollback, at the router, and the rpi is un-bricked
<clever> but the power supply has trouble even booting, and it randomly locks up mid way thru bootup
<sphalerite> get a new power supply? :p
<clever> need to experiment with them more to find out which one is best
<sphalerite> shouldn't anything that can do 3A be enough?
<sphalerite> Or do you have some power-hungry USB devices attached or something?
<clever> just a bare naked pi with only ethernet plugged in, lol
<sphalerite> surely 3A should do
<clever> aha, my main phone charger is 1.55a
<clever> also, just for fun, i took my wireless qi charging adapter (it puts out 5v on micro-usb) and plugged it into the pi :P
<clever> it does light up, but i didnt have an SD card, so the boot obviously fails
<joebobjoe> I will show it power through the ethkill device
<clever> all the power!
<ldlework> anyone wanna help me convert the Cataclysm nixpkgs build stuff, to a shell.nix that would let me do development on that project?
<rawtaz> joebobjoe: mu gosh, what an asortment!
ng0 has joined #nixos
podylato has quit [Remote host closed the connection]
Diagon has quit [Quit: Leaving]
justanotheruser has quit [Ping timeout: 258 seconds]
crow has joined #nixos
rouma has quit [Ping timeout: 276 seconds]
<joebobjoe> nix should not have to do this.. what?
<sphalerite> lol
init_6 has joined #nixos
<ldlework> in nix-shell how do I access the 'optionals' function?
o1lo01ol1o has joined #nixos
<ldlework> ah stdenv.lib
<ldlework> I keep getting this
<ldlework> $ nix-shell
<ldlework> ⚠ dumping very large path (> 256 MiB); this may run out of memory
<ldlework> And then my ran goes away
<ldlework> ram*
<clever> ldlework: nix-shell -v, are you doing src = ./. with a large . ?
o1lo01ol1o has quit [Remote host closed the connection]
<ldlework> clever: yeah the project is pretty big
<ldlework> oh maybe it worked
<clever> ldlework: your shell.nix may want to just set src = null;
<clever> ldlework: since you pretty much never use unpackPhase when nix-shell'ing in, since the source is already at .
justanotheruser has joined #nixos
lambda-11235 has quit [Quit: Bye]
<ldlework> oh right
<{^_^}> [nixpkgs] @danieldk opened pull request #65832 → drawio: 10.9.5 -> 11.1.1 → https://git.io/fj9x5
MarcWeber has quit [Ping timeout: 244 seconds]
ericsagnes has quit [Ping timeout: 258 seconds]
<pie_> ldlework: cataclysm?
crow has quit [Remote host closed the connection]
linarcx has joined #nixos
o1lo01ol1o has joined #nixos
hmpffff has joined #nixos
<{^_^}> [nixpkgs] @timokau pushed to revert-65602-spotify/update/1.1.10.546 « Revert "spotify: 1.0.96.181 -> 1.1.10.546" »: https://git.io/fj9pe
<{^_^}> [nixpkgs] @timokau opened pull request #65833 → Revert "spotify: 1.0.96.181 -> 1.1.10.546" → https://git.io/fj9pv
linarcx has quit [Quit: WeeChat 2.5]
linarcx has joined #nixos
<manveru> man... i really would love to be able to get a nix repl at an arbitrary point in code :|
<pie_> manveru: heh was wanting that earlier today, for some variant of "that"
iyzsong has joined #nixos
ris has joined #nixos
v0d1ch has quit [Ping timeout: 252 seconds]
coot has quit [Ping timeout: 252 seconds]
nlofaro has quit [Ping timeout: 252 seconds]
v0d1ch has joined #nixos
digitalgrease has quit [Ping timeout: 252 seconds]
pointfree has quit [Ping timeout: 252 seconds]
heatm1s3r has quit [Ping timeout: 252 seconds]
philipcristiano has quit [Ping timeout: 252 seconds]
ProofTechnique has quit [Ping timeout: 252 seconds]
NemesisD_ has joined #nixos
mog- has joined #nixos
<{^_^}> [nixpkgs] @timokau opened pull request #65834 → vimPlugins: update → https://git.io/fj9pO
glowpelt has quit [Ping timeout: 252 seconds]
simpson has quit [Ping timeout: 252 seconds]
alunduil has quit [Ping timeout: 252 seconds]
CMCDragonkai has quit [Ping timeout: 252 seconds]
alunduil_ has joined #nixos
alunduil_ is now known as alunduil
mog has quit [Ping timeout: 252 seconds]
dongcarl has quit [Ping timeout: 252 seconds]
zimbatm has quit [Ping timeout: 252 seconds]
rizary_ has quit [Ping timeout: 252 seconds]
jeregrine has quit [Ping timeout: 252 seconds]
NemesisD has quit [Ping timeout: 252 seconds]
mog- is now known as mog
NemesisD_ is now known as NemesisD
r0bby has quit [Ping timeout: 252 seconds]
philipcristiano has joined #nixos
coot has joined #nixos
nlofaro has joined #nixos
digitalgrease has joined #nixos
heatm1s3r has joined #nixos
ProofTechnique has joined #nixos
glowpelt has joined #nixos
pointfree has joined #nixos
zimbatm has joined #nixos
CMCDragonkai has joined #nixos
_e has quit [Ping timeout: 252 seconds]
benley has quit [Ping timeout: 252 seconds]
_e has joined #nixos
dongcarl has joined #nixos
r0bby has joined #nixos
jeregrine has joined #nixos
drakonis_ has quit [Ping timeout: 246 seconds]
emery has joined #nixos
<{^_^}> [nixpkgs] @jorsn opened pull request #65835 → libextractor: add support for gstreamer plugin → https://git.io/fj9p3
drakonis_ has joined #nixos
hmpffff has quit [Quit: nchrrrr…]
<{^_^}> [nixpkgs] @timokau merged pull request #65833 → Revert "spotify: 1.0.96.181 -> 1.1.10.546" → https://git.io/fj9pv
<{^_^}> [nixpkgs] @timokau pushed to master « Revert "spotify: 1.0.96.181 -> 1.1.10.546" (#65833) »: https://git.io/fj9pZ
<{^_^}> [nixpkgs] @timokau pushed 0 commits to revert-65602-spotify/update/1.1.10.546: https://git.io/fj9pn
MarcWeber has joined #nixos
ericsagnes has joined #nixos
Thra11 has joined #nixos
simpson has joined #nixos
linarcx has quit [Quit: WeeChat 2.5]
linarcx has joined #nixos
<Izorkin> Mic92: please recheck pr #65222 Rebased and updated.
<{^_^}> https://github.com/NixOS/nixpkgs/pull/65222 (by Izorkin, 1 week ago, open): mariadb: update packages
<{^_^}> [nixpkgs] @FRidh opened pull request #65836 → pythonPackages.pyqt5: upgrade and solve qml issue → https://git.io/fj9pc
<{^_^}> [nixpkgs] @FRidh closed pull request #56354 → python.pkgs.pyqt5: 5.11.3 -> 5.12 → https://git.io/fhbDX
benley has joined #nixos
rizary_ has joined #nixos
linarcx has quit [Read error: Connection reset by peer]
<sphalerite> https://github.com/NixOS/nix/issues/3023 would appreciate some further opinions on this :)
<{^_^}> nix#3023 (by lheckemann, 18 hours ago, open): Generate and use signing keys automatically
linarcx has joined #nixos
thc202 has joined #nixos
jgt has quit [Ping timeout: 244 seconds]
joebobjoe has quit [Ping timeout: 248 seconds]
jgt has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<pie_> qyliss: any idea if this would work on nixos https://xapi-project.github.io/networkd/overview.html
<pie_> hm apparently that also uses openvswitch
<pie_> edef ^
orivej has quit [Ping timeout: 246 seconds]
o1lo01ol1o has joined #nixos
<edef> don't see why not?
<pie_> / with your qubes experience, would it be worth looking into?
<pie_> i mean would it be worth thinking about porting
<pie_> packaging / whtever
<clever> pie_: there was a talk at the last nixcon about redoing the networking stuff in nixos
<pie_> clever: i know, that was with systemd networkd
<pie_> i dont know much about that
<pie_> Ill probably have to try it myself anyway I just dont want to waste much time on it if people say its not good
asymptotically has joined #nixos
linarcx has quit [Quit: WeeChat 2.5]
linarcx has joined #nixos
meteo has quit [Remote host closed the connection]
meteo has joined #nixos
logzet has joined #nixos
srid has quit [Remote host closed the connection]
linarcx has quit [Quit: WeeChat 2.5]
<ToxicFrog> More perl questions!
linarcx has joined #nixos
<ToxicFrog> I now have a package that builds and emits a mix of binaries (that depend on libperl and a bunch of perl modules) and perl scripts (that also depend on a bunch of perl modules).
<ToxicFrog> The build works fine, but none of the binaries actually run because they can't find their perl modules in @INC.
boothead has joined #nixos
<Miyu-chan> makeWrapper is the first thing that comes into mind.
<ToxicFrog> How do I get the perl modules that are depended on by the build to be available at runtime too? Putting them in propagatedBuildInputs doesn't help.
<boothead> Hi folks what's the preferred way to nixify a python module with a requirements.txt at the moment? I see 3 alternatives and the pypi2nix option I tried didn't work...
srid has joined #nixos
<Miyu-chan> I don't knwo what environtment variable Perl uses, but let's just assume PERLLIBS.
<ToxicFrog> PERL5LIB, I think.
<ToxicFrog> But I'm not a perl programmer.
<clever> *looks*
<Miyu-chan> You can use `wrapProgram ./foo.pl --prefix PERL5LIB : libraries`.
<{^_^}> [nixpkgs] @jdanekrh opened pull request #65837 → jetbrains.{datagrip,ruby-mine}: 2019.1.* -> 2019.2.* → https://git.io/fj9pX
<Miyu-chan> :D
<clever> Miyu-chan: i think if you have perl int he buildInputs, and use #!/path/to/perl, the fixup phase will fix it for you
<Miyu-chan> Right.
<Miyu-chan> clever: Also, do you think it's possible to make Go use setupHook for its libraries?
<clever> probably
<Miyu-chan> I helped someone over here with a shell.nix which uses Go, because the environment variable setup is done on configurePhase.
<{^_^}> [nixpkgs] @timokau merged pull request #65834 → vimPlugins: update → https://git.io/fj9pO
<{^_^}> [nixpkgs] @timokau pushed to master « vimPlugins: update (#65834) »: https://git.io/fj9pM
<clever> if its done with env vars, then a setup hook can probably also do it
<ToxicFrog> clever: in this case, postFixup seems to be fixing the shebang path but not adding the `use lib perl_includes`, and I'll look into that in a minute
<ToxicFrog> But that doesn't help with the binaries -- they have no shebang but still need to be able to find perl modules.
<ToxicFrog> So I'm going to need makeWrapper regardless
<clever> ToxicFrog: ahh, yeah
meteo_ has joined #nixos
meteo has quit [Read error: Connection reset by peer]
zaninime has joined #nixos
<ToxicFrog> (it's a game server written in C++ that supports perl scripts attached to maps/items, so)
<clever> ahh
emery has quit [Quit: leaving]
<zaninime> Hey everyone! I'm new here. I'm a NixOS user for a year or a bit more, and I have a question regarding 19.03. Since I last rebuilt my system with `nixos-rebuild switch` it can't boot properly anymore. It fails when running the init script with `systemd: command not found`
<clever> zaninime: activation scripts can cause that problem if they have an error
<clever> zaninime: did you have any custom ones?
vcunat has joined #nixos
<zaninime> clever: yes, but it has a `do my thing || exit 0`
<zaninime> clever: I can nonetheless disable it
<clever> zaninime: are you still able to boot an older generation? or try removing it
<{^_^}> [nixpkgs] @costrouc closed pull request #65378 → [WIP] pythonPackages.cq-editor: init at 0.1RC1 → https://git.io/fjDpY
<zaninime> clever: yes currently connected from an old gen, on which the same script was
<zaninime> clever: the difference between generations is also a `nix-channel --update` in the middle. But I'm targeting stable.
ehmry has joined #nixos
ehmry has quit [Client Quit]
<zaninime> clever: alright. easy. It was the activation script. Why is that, btw?
<clever> zaninime: youll need to add `set -x` before it, and see what exactly is failing
<clever> zaninime: and maybe read the finished activate script in the nix store
<clever> -r-xr-xr-x 1 root root 18346 Dec 31 1969 /nix/var/nix/profiles/system-500-link/activate
<zaninime> clever: sure, I meant why a failing activation script makes it impossible to find `systemd` later on
<clever> zaninime: it will be at a path like this, check the system symlink to see what the latest is, then look backwards a bit
<clever> zaninime: when the activation script fails, it bails out early, before putting systemd in PATH
<zaninime> clever: I see. And now it makes sense. Since I have `do_my_thing || exit 0`, the final script is exiting early :)
<clever> oh, yeah, that will do it, lol
<clever> you want || true
<sphalerite> tilpner: activation script breaking stuff ^ ;)
<zaninime> my approach was not so... clever ;)
<tilpner> sphalerite: I always agreed they're dangerous!
<clever> zaninime: i think nixos unstable also wraps every script for you, to prevent problems
<clever> zaninime: so || exit 0 will make it worse
<zaninime> clever: looking forward unstable then ;)
<clever> ever since i helped debug that first guy that lacked systemd, ive been saying, just use a systemd script
<tilpner> sphalerite: But it can mostly be circumvented by calling generated scripts instead of inserting code directly
noudle has joined #nixos
<zaninime> clever: you mean a unit with `Type=oneshot`? That would also make sense
<clever> zaninime: yeah
<clever> zaninime: what is the script doing?
<zaninime> clever: printer setup in a brutal way. It fits better in a `systemd` script actually
<zaninime> clever: just calling `lpadmin` and accepting the fact that it will fail from time to time
<clever> zaninime: cups isnt even running when activation scripts happen, so its more likely to fail 100% of the time
<zaninime> clever: no no, it actually works when you run `nixos-rebuild`
<zaninime> clever: but I agree at boot it makes no sense. I will just move it to a `systemd` unit
<clever> yeah, nixos-rebuild will re-run activation scripts, to apply changes
<clever> and thats the exact same problem the 1st guy with activation problems had
<clever> he was doing network in his activation script, and hadnt rebooted in years, so it always worked
<clever> then after years of not rebooting, he rebooted, and it failed on bootup
<clever> and he had also GC'd older generations, because it was running fine for years
<zaninime> yeah, lesson learned.
<zaninime> what could you do, in that case? recovery boot from USB?
<clever> if you change the kernel cmdline in grub to `init=/bin/sh` you can force a single-user shell
<clever> (this works in any linux distro, even nixos)
<clever> then you have root, without systemd, and can do whatever you want
<zaninime> right, so you can mount your disk and chroot into it
<clever> no need to
<clever> the disk is already mounted to / when it runs "init"
<zaninime> true dat. I guess I never had to do it
<clever> nixos just has some extra requirements
<clever> 1st, stage-1 will claim /bin/sh doesnt exist (its an absolute symlink, and its testing relative to the wrong root), tell it to continue anyways
jgt has quit [Ping timeout: 264 seconds]
<clever> 2nd, /bin is empty!, youll want to export PATH=/nix/var/nix/profiles/system/sw/bin/
<{^_^}> [nixpkgs] @peti pushed 4 commits to haskell-updates: https://git.io/fj9p5
<zaninime> Ah yeah, nice. Next time I will try it. ;)
linarcx has quit [Quit: WeeChat 2.5]
linarcx has joined #nixos
iufgoiwhfouihohd has joined #nixos
jgt has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fj9pd
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/4f2b76e45fc (from 10 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
<{^_^}> [nixpkgs] @terlar opened pull request #65838 → yubioath-desktop: use qt wrapped mkDerivation → https://git.io/fj9pb
MmeQuignon has joined #nixos
<iufgoiwhfouihohd> I am trying to contribute to an OS project from my nixos computer. The project is godot (https://github.com/NixOS/nixpkgs/tree/master/pkgs/development/tools/godot) and requires a patch (https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/godot/dont_clobber_environment.patch) to work in order to work on nixos. How can I set up the ri
<iufgoiwhfouihohd> ght environment for it to work?
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « LTS Haskell 13.30 »: https://git.io/fj9pp
wfranzini has quit [Remote host closed the connection]
tg has quit [Excess Flood]
MarcWeber has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @terlar opened pull request #65840 → yubikey-personalization-gui: use qt wrapped mkDerivation → https://git.io/fj9hf
tg has joined #nixos
<{^_^}> [nixpkgs] @aanderse opened pull request #65841 → flare: 1.10 -> 1.11 → https://git.io/fj9hU
<{^_^}> [nixpkgs] @Ma27 merged pull request #65832 → drawio: 10.9.5 -> 11.1.1 → https://git.io/fj9x5
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fj9hT
ericsagnes has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fj9hk
jgt has quit [Ping timeout: 246 seconds]
ambro718 has joined #nixos
erictapen has joined #nixos
<{^_^}> [nixpkgs] @jrp2014 opened pull request #65842 → Update hyperv-guest.nix → https://git.io/fj9h3
terlar has joined #nixos
ericsagnes has joined #nixos
Soo_Slow has joined #nixos
erictapen has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @Ma27 merged pull request #65829 → goldendict: 2018-06-13 -> 2019-08-01 → https://git.io/fj9bz
<{^_^}> [nixpkgs] @Ma27 pushed 2 commits to master: https://git.io/fj9hZ
<{^_^}> [nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fj9hn
mexisme has joined #nixos
jluttine has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « haskell-stack: fix build by updating unliftio, which rio requires »: https://git.io/fj9hB
<{^_^}> [nixpkgs] @FRidh merged pull request #65820 → pythonPackages.jsonpickle: 1.1 -> 1.2 → https://git.io/fj95w
<{^_^}> [nixpkgs] @FRidh pushed commit from @jonringer to master « pythonPackages.jsonpickle: 1.1 -> 1.2 »: https://git.io/fj9hR
mexisme has quit [Ping timeout: 245 seconds]
tmaekawa has joined #nixos
<{^_^}> [nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/fj9hV
drakonis has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage2nix: update list of broken builds »: https://git.io/fj9hX
abcrawf has quit [Remote host closed the connection]
drakonis_ has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fj9h1
anon has joined #nixos
anon is now known as Guest72152
joehh has joined #nixos
drakonis has quit [Ping timeout: 252 seconds]
abcrawf has joined #nixos
* ToxicFrog screams at programs that hard-code all of their /var paths at compile time
<{^_^}> [nixpkgs] @aanderse closed pull request #65795 → solr: 7.6.0 -> 7.7.2 [backport] → https://git.io/fj9DH
jgt has joined #nixos
drakonis has joined #nixos
logzet has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Guest72152 has quit [Quit: znc]
<srhb> iufgoiwhfouihohd: As in, an environment in which to work on godot?
anon1 has joined #nixos
<srhb> iufgoiwhfouihohd: You're probably best off patching your local sources before building it, unless you want to nix-build it every time.
boothead has quit [Remote host closed the connection]
<iufgoiwhfouihohd> How do I do that?
<iufgoiwhfouihohd> How do I patch the files?
<srhb> patch < thepatch.patch
lnh^ has joined #nixos
<iufgoiwhfouihohd> Is there a way for nix to do that automatically?
drakonis has quit [Ping timeout: 264 seconds]
<srhb> iufgoiwhfouihohd: That's what it does when you build it with nix, yeahj
fendor has joined #nixos
<iufgoiwhfouihohd> How do I build it with nix?
anon1 has quit [Quit: WeeChat 2.4]
fendor has quit [Remote host closed the connection]
enh^ has joined #nixos
andreabedini_ has quit [Quit: ZNC 1.6.6+deb1ubuntu0.1 - http://znc.in]
drakonis has joined #nixos
fendor has joined #nixos
zupo has joined #nixos
andreabedini has joined #nixos
andreabedini is now known as andreabedini_
andreabedini_ is now known as andreabedini
o1lo01ol1o has quit [Remote host closed the connection]
drakonis_ has joined #nixos
drakonis has quit [Ping timeout: 250 seconds]
avn has quit [Remote host closed the connection]
betawaffle has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to master « androidStudioPackages.beta: 3.5.0.18 -> 3.5.0.19 »: https://git.io/fj9jf
<{^_^}> [nixpkgs] @vcunat pushed 2 commits to master: https://git.io/fj9jU
Chiliparrot has joined #nixos
_kwstas has joined #nixos
<Izorkin> Please check PR #65222
<{^_^}> https://github.com/NixOS/nixpkgs/pull/65222 (by Izorkin, 1 week ago, open): mariadb: update packages
kp__ has joined #nixos
iqubic has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @vcunat pushed 26 commits to staging-19.03: https://git.io/fj9jk
orivej has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
o1lo01ol1o has joined #nixos
chloekek has joined #nixos
meteo_ has quit [Ping timeout: 272 seconds]
o1lo01ol1o has quit [Ping timeout: 248 seconds]
npmccallum has joined #nixos
fendor has quit [Remote host closed the connection]
ambro718 has quit [Quit: Konversation terminated!]
Thra11 has quit [Quit: WeeChat 2.5]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/d80de1b135c (from 40 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
ris has quit [Ping timeout: 245 seconds]
meteo_ has joined #nixos
drakonis has joined #nixos
is_null has quit [Remote host closed the connection]
justanotheruser has quit [Ping timeout: 258 seconds]
thc202 has quit [Ping timeout: 264 seconds]
o1lo01ol1o has joined #nixos
hsd^ has joined #nixos
o1lo01ol1o has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @worldofpeace merged pull request #65840 → yubikey-personalization-gui: use qt wrapped mkDerivation → https://git.io/fj9hf
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjHec
ambro718 has joined #nixos
orivej has quit [Ping timeout: 248 seconds]
justanotheruser has joined #nixos
thc202 has joined #nixos
<DigitalKiwi> worldofpeace: did you see i fixed those things you asked for in bitwarden
revtintin has joined #nixos
<DigitalKiwi> or almost did :)
<worldofpeace> ah no I missed that DigitalKiwi :)
<DigitalKiwi> should i just do the commit suggestion button
<DigitalKiwi> normally i gpg sign
<DigitalKiwi> hmm, it'd add a commit though wouldn't it, so can't
kp__ has quit [Quit: WeeChat 2.5]
aanderse-znc has joined #nixos
<DigitalKiwi> "''${gappsWrapperArgs[@]}" \
<DigitalKiwi> should that one be indented too?
<{^_^}> Channel nixos-19.03 advanced to https://github.com/NixOS/nixpkgs/commit/93ea6db29cc (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-19.03)
kp__ has joined #nixos
mexisme has joined #nixos
aanderse has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @matthewbauer merged pull request #65792 → man-db: macOS → https://git.io/fj9DM
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fjHe2
hmpffff has joined #nixos
<{^_^}> [nixpkgs] @vbgl merged pull request #63494 → framac: 18 -> 19 and update why3 → https://git.io/fjVY1
<{^_^}> [nixpkgs] @vbgl pushed commit from @jbaum98 to master « framac: 18 -> 19 and update why3 »: https://git.io/fjHeV
hmpffff has quit [Client Quit]
<DigitalKiwi> worldofpeace: I think it should be so I did...if not I'll fix it again :)
<{^_^}> [nixpkgs] @FRidh merged pull request #65836 → pythonPackages.pyqt5: upgrade and solve qml issue → https://git.io/fj9pc
<{^_^}> [nixpkgs] @FRidh pushed 8 commits to master: https://git.io/fjHew
anon has joined #nixos
<worldofpeace> FRidh++
<{^_^}> FRidh's karma got increased to 6
anon is now known as Guest97439
mexisme has quit [Ping timeout: 248 seconds]
<worldofpeace> DigitalKiwi: probably should be good. perhaps you could open an issue with the problem with the debug console?
noam has joined #nixos
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
<DigitalKiwi> i could sure
<{^_^}> [nixpkgs] @matthewbauer opened pull request #65844 → man: use man-db everywhere → https://git.io/fjHeo
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<DigitalKiwi> i was thinking about installing it on a vm or my windows machine and seeing if it happens there for all i know it's intended
<DigitalKiwi> or at least not abnormal
Guest97439 has quit [Quit: WeeChat 2.4]
xvello has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
orivej has joined #nixos
<{^_^}> [nixpkgs] @orivej-nixos merged pull request #64189 → rednotebook: 2.8 -> 2.11.1 → https://git.io/fjK53
<{^_^}> [nixpkgs] @orivej-nixos pushed 3 commits to master: https://git.io/fjHe1
xvello has joined #nixos
ris has joined #nixos
aanderse-znc is now known as aanderse
<{^_^}> [nixpkgs] @vbgl opened pull request #65845 → ocamlPackages.pgocaml: 2.3 -> 3.2 → https://git.io/fjHey
orivej has quit [Ping timeout: 245 seconds]
_kwstas has quit [Quit: _kwstas]
<{^_^}> [nixpkgs] @vbgl closed pull request #65664 → framac: 18.0 -> 19.0 → https://git.io/fj9vS
dansho has quit [Remote host closed the connection]
init_6 has quit []
dansho has joined #nixos
<{^_^}> [nixpkgs] @Infinisil merged pull request #65794 → idrisPackages: Fix overrides not applying → https://git.io/fj9Dy
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fjHeH
endformationage has joined #nixos
<{^_^}> [nixpkgs] @Izorkin opened pull request #65846 → Update php packages → https://git.io/fjHeb
lpil has left #nixos ["The Lounge - https://thelounge.chat"]
<{^_^}> [nixpkgs] @mmahut merged pull request #65809 → litecli: 1.0.0 -> 1.1.0 → https://git.io/fj99O
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjHeA
orivej has joined #nixos
d3vnu11 has joined #nixos
englishm has quit [Excess Flood]
d3vnu11 has quit [Remote host closed the connection]
d3vnu11 has joined #nixos
englishm has joined #nixos
Soo_Slow has quit [Ping timeout: 258 seconds]
d3vnu11 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @vcunat pushed 5 commits to master: https://git.io/fjHvG
7YSACMP4H has joined #nixos
<{^_^}> [nixpkgs] @vcunat merged pull request #65460 → postgis: allow on Darwin → https://git.io/fjyEx
<{^_^}> [nixpkgs] @ysndr opened pull request #65847 → solaar: track latest release and set correct repo owner → https://git.io/fjHvl
<{^_^}> [nixpkgs] @grahamc merged pull request #65807 → firefox-beta-bin-unwrapped, firefox-devedition-bin-unwrapped: 68.0b12 -> 69.0b10 → https://git.io/fj99L
<{^_^}> [nixpkgs] @grahamc pushed 3 commits to master: https://git.io/fjHv4
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « git-annex: update sha256 hash for version 7.20190730 »: https://git.io/fjHvE
justanotheruser has quit [Quit: WeeChat 2.4]
justanotheruser has joined #nixos
zupo has joined #nixos
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage2nix: update broken packages »: https://git.io/fjHvK
7YSACMP4H has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjHv6
wfranzini has joined #nixos
<{^_^}> [nixpkgs] @marsam opened pull request #65848 → tflint: 0.9.2 -> 0.9.3 → https://git.io/fjHvM
mrCyborg has quit [Remote host closed the connection]
mrCyborg has joined #nixos
tg has quit [Excess Flood]
<{^_^}> [nixpkgs] @marsam opened pull request #65849 → twitterBootstrap3: drop → https://git.io/fjHv7
linarcx has quit [Quit: WeeChat 2.5]
linarcx has joined #nixos
tg has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace opened pull request #65850 → glib,gtk: correct CLAGS for plain buildtype → https://git.io/fjHvN
<{^_^}> [nixpkgs] @mmahut opened pull request #65851 → github-commenter: init at 0.5.0 → https://git.io/fjHvA
zmlww_ has joined #nixos
sepi` has joined #nixos
dftxbs3e has quit [Quit: Leaving.]
m1crOman has joined #nixos
m1cr0man has quit [Ping timeout: 268 seconds]
linuxdaemon has quit [Ping timeout: 252 seconds]
duairc has quit [Ping timeout: 268 seconds]
Niall has quit [Ping timeout: 268 seconds]
zmlww has quit [Ping timeout: 245 seconds]
Palpares has quit [Ping timeout: 260 seconds]
cantstanya has quit [Ping timeout: 260 seconds]
Asmadeus has quit [Ping timeout: 276 seconds]
sepi has quit [Ping timeout: 268 seconds]
Zalondo16 has joined #nixos
ddellacosta has joined #nixos
duairc has joined #nixos
Asmadeus has joined #nixos
Palpares has joined #nixos
joehh has quit [Ping timeout: 272 seconds]
cantstanya has joined #nixos
linuxdaemon has joined #nixos
o1lo01ol1o has joined #nixos
dftxbs3e has joined #nixos
<{^_^}> [nixpkgs] @mmahut merged pull request #65797 → xteddy: 2.2 -> 2.2-5 (use debian sources and patches) → https://git.io/fj9ys
<{^_^}> [nixpkgs] @mmahut pushed 2 commits to master: https://git.io/fjHfG
<{^_^}> [nixpkgs] @peti pushed 12 commits to haskell-updates: https://git.io/fjHfZ
<Miyu-chan> for (auto & i : tokenizeString<Strings>(getEnv("NIX_SSHOPTS")))
<Miyu-chan> What does this say? ; ;
<Miyu-chan> Yeah, I made a guess, and eep.
<{^_^}> [cabal2nix] @peti pushed commit from @worldofpeace to master « Rename gdk_pixbuf to gdk-pixbuf »: https://git.io/fjHfn
<{^_^}> [cabal2nix] @peti pushed 0 commits to t/rename-gdk-pixbuf: https://git.io/fjHfc
<Miyu-chan> So it doesnt support -o, welps. :/.
Niall has joined #nixos
<gchristensen> eh?
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fjHfC
cartwright has joined #nixos
<gchristensen> Miyu-chan: it would be surprising for NIX_SSHOPTS to not support -o, since I'm pretty sure I use that
<{^_^}> [nixpkgs] @peti opened pull request #65852 → LTS Haskell 13.30 → https://git.io/fjHf8
<Miyu-chan> Oh, I don't mean it too literally. More context is that `NIX_SSHOPTS='-o "ProxyCommand ..."'` wouldn't work.
<gchristensen> how about -o ProxyCommand=...
<Miyu-chan> Common usage of ProxyCommand requires spaces. :/
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Miyu-chan> OTOH, I think this is where Nix actually excels now that I think about it.
<gchristensen> oh?
zacts has joined #nixos
<Miyu-chan> `NIX_SSHOPTS='-o ProxyCommand=${file}'` where file = writeScript ... \o/
<gchristensen> oh! definitely yes =)
<gchristensen> okay, gotta run for abit.
<Miyu-chan> Seeya!
<{^_^}> [nixpkgs] @globin merged pull request #65849 → twitterBootstrap3: drop → https://git.io/fjHv7
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/fjHfV
<{^_^}> [nixpkgs] @globin merged pull request #65841 → flare: 1.10 -> 1.11 → https://git.io/fj9hU
<{^_^}> [nixpkgs] @globin pushed 3 commits to master: https://git.io/fjHfo
<{^_^}> [nixpkgs] @globin merged pull request #65837 → jetbrains.{datagrip,ruby-mine}: 2019.1.* -> 2019.2.* → https://git.io/fj9pX
<{^_^}> [nixpkgs] @globin pushed 3 commits to master: https://git.io/fjHfK
<Ralith> can someone merge https://github.com/NixOS/nixpkgs/pull/62957 ? it is super stale and fixes a broken package
<{^_^}> #62957 (by Ralith, 7 weeks ago, open): vulkan-validation-layers: 1.1.101.0 -> 1.1.106.0
cantstanya has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @FRidh merged pull request #62957 → vulkan-validation-layers: 1.1.101.0 -> 1.1.106.0 → https://git.io/fjgsS
<{^_^}> [nixpkgs] @FRidh pushed commit from @Ralith to master « vulkan-validation-layers: 1.1.101.0 -> 1.1.106.0 »: https://git.io/fjHf1
<{^_^}> [nixpkgs] @FRidh closed pull request #35096 → Some QuantStack libraries → https://git.io/vAl0i
<Ralith> thank you <3
<{^_^}> [nixpkgs] @FRidh closed pull request #34856 → aspellWithDicts: don't --set ASPELL_CONFIG but use --add-flags → https://git.io/vAqGu
linarcx has quit [Ping timeout: 272 seconds]
drakonis has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @vcunat pushed commit from @mmahut to staging-19.03 « iptables: CVE-2019-11360 (release-19.03, PR #65662) »: https://git.io/fjHfd
<{^_^}> [nixpkgs] @marsam merged pull request #65168 → pyznap: 1.1.2 -> 1.2.1 → https://git.io/fjMlB
<{^_^}> [nixpkgs] @marsam pushed 2 commits to master: https://git.io/fjHfF
drakonis has joined #nixos
_kwstas has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
Zalondo16 has quit [Ping timeout: 244 seconds]
Zalondo16 has joined #nixos
drakonis_ has quit [Ping timeout: 250 seconds]
hmpffff has joined #nixos
Edes has joined #nixos
<{^_^}> [nixpkgs] @wahjava opened pull request #65853 → sagitarrius-scheme: init at 0.9.6 → https://git.io/fjHJJ
zacts has quit [Quit: WeeChat 2.4]
<{^_^}> [nixpkgs] @zimbatm closed pull request #34034 → [WIP] Rust platform improvements → https://git.io/vNE1v
<{^_^}> [nixpkgs] @kalbasit merged pull request #65848 → tflint: 0.9.2 -> 0.9.3 → https://git.io/fjHvM
<{^_^}> [nixpkgs] @kalbasit pushed commit from @marsam to master « tflint: 0.9.2 -> 0.9.3 (#65848) »: https://git.io/fjHJ3
terlar has quit [Ping timeout: 244 seconds]
noam has quit [Quit: Leaving]
GiGa has joined #nixos
GiGa has joined #nixos
GiGa has quit [Changing host]
<GiGa> How do people find Play On Linux / Lutris these days?
<GiGa> I don't think we have Lutris in the repo?
zacts has joined #nixos
<Yaniel> we do actually
<infinisil> Yeah since #61742
<{^_^}> https://github.com/NixOS/nixpkgs/pull/61742 (by abbradar, 10 weeks ago, merged): lutris: init at 0.5.2.1
<GiGa> Reallly?
Zalondo16 has quit [Ping timeout: 268 seconds]
<infinisil> But getting games to work sometimes involves some work
<GiGa> Wow, apparently I can't type today
Zalondo16 has joined #nixos
<Yaniel> as far as lutris overall goes, reddit seems to be quite happy with it
hmpffff has quit [Quit: nchrrrr…]
<GiGa> Searching nixos packages via the website draws a blank :(
<Yaniel> yeah it doesn't show there
<Yaniel> ...because that site was updated almost a year ago
<GiGa> oh, is it discontinued?
<Yaniel> idk, but it has a timestamp in the footer
<infinisil> Well, the website shows the stable release packages
<infinisil> And there's only a stable release every 6 months
<infinisil> But you can use lutris from unstable
<GiGa> infinisil: ah
<GiGa> OK, nix search shows it
<GiGa> what's the difference between "lutris", "lutris-free" and "lutris-unwrapped"?
<{^_^}> [nixpkgs] @jonringer opened pull request #65855 → disper: 0.3.1 -> 0.3.1.1 → https://git.io/fjHJE
<{^_^}> [nixpkgs] @jonringer opened pull request #65856 → rust-cbindgen: 0.8.7 -> 0.9.0 → https://git.io/fjHJz
<{^_^}> [nixpkgs] @jonringer opened pull request #65857 → click: 0.3.2 -> 0.4.2 → https://git.io/fjHJ2
palo has quit [Quit: WeeChat 2.4]
jmeredith has quit [Quit: Connection closed for inactivity]
MmeQuignon has quit [Ping timeout: 245 seconds]
o1lo01ol1o has joined #nixos
<infinisil> GiGa: lutris-free is without steam support, lutris-unwrapped is the raw lutris build without any libraries available you need for running it decently
<GiGa> infinisil: cool, thanks
ng0 has quit [Quit: Alexa, when is the end of world?]
o1lo01ol1o has quit [Ping timeout: 258 seconds]
cinimod has joined #nixos
<GiGa> This is cool, it can pull in my Linux Steam games list
<GiGa> I'll have to install Windows Steam for some other bits too I'm guessing
* GiGa thinks it's time to go and read the docs
<Yaniel> proton works for most windows games either out of the box or with some tweaks
<marius851000[m]> {^_^}: I want to update dolphin-emu-master (broken), and the actual version is 5.0-9976. Want mean 9976 and how I find it for the latest commit ?
<marius851000[m]> I want to update dolphin-emu-master (broken), and the actual version is 5.0-9976. Want mean 9976 and how I find it for the latest commit ?
<Yaniel> marius851000[m]: that is a bot
<GiGa> Yaniel: Do I need to install that separately?
<Yaniel> the linux version for steam downloads it if you enable steam play
<GiGa> OK, that's already done
<Yaniel> also check "enable steam play for all titles" in steam settings
<Yaniel> then all windows games should show up in your steam library
<GiGa> Yaniel: Yep, although some things like Magicka don't work
<Yaniel> not sure how exactly this interacts with lutris
<cinimod> I am following this on how to use R via nix: https://nixos.wiki/wiki/R
<GiGa> It's possible to use "Wine Steam" too, so I'm giving that a go
<Yaniel> looks like no workarounds exist yet
<GiGa> Yaniel: I like the "borked" declaration there
<cinimod> R-with-my-packages = pkgs.nixpkgs.rWrapper.override {
<cinimod> packages = with pkgs.nixpkgs.rPackages; [ ggplot2 dplyr xts ];
<cinimod>
<cinimod> };
revtintin has quit [Quit: WeeChat 2.5]
<GiGa> Grr, installing Wine Steam tells me it needs to be online to update, yet it is :(
<cinimod> But if I try to replace systemPackages = self: [ self.R ]; with systemPackages = self: [ self.R-with-my-packages ];
<cinimod> then I get an error
<cinimod> error: attribute 'R-with-my-packages' missing
work_ has joined #nixos
ddellacosta has quit [Ping timeout: 245 seconds]
hmpffff has joined #nixos
_kwstas has quit [Quit: _kwstas]
halfbit has joined #nixos
drakonis_ has joined #nixos
dansho has quit [Ping timeout: 258 seconds]
vcunat has quit [Ping timeout: 252 seconds]
Thra11 has joined #nixos
o1lo01ol1o has joined #nixos
tmaekawa has quit [Quit: tmaekawa]
ddellacosta has joined #nixos
<{^_^}> [nixpkgs] @jonringer opened pull request #65858 → cpp-netlib: 0.12.0 -> 0.13.0-final → https://git.io/fjHJb
drakonis has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @marsam opened pull request #65859 → postgresqlPackages.pg_auto_failover: 1.0.2 -> 1.0.3 → https://git.io/fjHJA
<Athas> What controls the contents of mimeinfo.cache in NixOS? Mine has associated PDFs with GIMP and it is infuriating me.
<yorick> reminds me of that time where it associated .html with internet explorer in wine
<Athas> It used to associate .pdf with Wine IE until I found a few rogue .desktop files in my $HOME and blasted them.
<Athas> I'm curious why Fedora (my previous distro) just ignored them. I had the same $HOME.
<Athas> Apparently the problem is that Evince does not come with a .desktop file.
ddellacosta has quit [Ping timeout: 246 seconds]
<Athas> Oh wait, org.gnome.Evince.desktop.
meteo_ has quit [Remote host closed the connection]
lambda-11235 has joined #nixos
meteo_ has joined #nixos
<{^_^}> [nixpkgs] @etu opened pull request #65860 → Surf display kiosk session → https://git.io/fjHUT
<etu> yay, my pr is in
<Athas> Woah, surf is still around?
meteo_ has quit [Remote host closed the connection]
meteo_ has joined #nixos
cinimod has quit [Ping timeout: 272 seconds]
noudle has quit [Read error: Connection reset by peer]
noudle has joined #nixos
cinimod has joined #nixos
drakonis has joined #nixos
<infinisil> Athas: Yeah evince for some reason changed their .desktop file, breaking it for many people..
<infinisil> ,mime btw
<{^_^}> btw: `xdg-mime query filetype <file>` to get the mimetype of <file>, see available .desktop files in /run/current-system/sw/share/applications (or others from $XDG_DATA_DIRS), use `xdg-mime default <programname>.desktop <mimetype>` to change the default program, e.g. `xdg-mime default firefox.desktop text/plain`. Mime type for HTTP and HTTPS is x-scheme-handler/http and x-scheme-handler/https
<{^_^}> [nixpkgs] @peti merged pull request #65852 → LTS Haskell 13.30 → https://git.io/fjHf8
<{^_^}> [nixpkgs] @peti pushed 14 commits to master: https://git.io/fjHUl
<{^_^}> [nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/fjHU8
<{^_^}> [nixpkgs] @peti merged pull request #65510 → ghc: always use ld.gold → https://git.io/fjy7K
anon has joined #nixos
<{^_^}> [nixpkgs] @peti pushed commit from @alpmestan to haskell-updates « ghc: always use ld.gold »: https://git.io/fjHU4
rouma7 has joined #nixos
anon is now known as Guest38071
iufgoiwhfouihohd has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @periklis opened pull request #65861 → [throttled] Enable custom config → https://git.io/fjHUz
<Miyu-chan> Is it safe to put /nix in a separate storage on AWS using NixOps?
<Miyu-chan> I vaguely remember the answer being no back then.
<Miyu-chan> Oh. Found the issue.
<{^_^}> nixops#484 (by lo1tuma, 3 years ago, open): Allow mounting /nix/store on separate ebs volume
<sphalerite> Miyu-chan: I suspect the answer is no because the AMI contains the store or something
thc202 has quit [Ping timeout: 246 seconds]
<Miyu-chan> Hm. I guess I should just make it so that /nix/store is auto-collected and periodically being uploaded to S3?
o1lo01ol1o has quit [Remote host closed the connection]
cinimod has quit [Ping timeout: 258 seconds]
tails[m] has joined #nixos
cinimod has joined #nixos
halfbit has quit [Ping timeout: 246 seconds]
linarcx has joined #nixos
cinimod has quit [Ping timeout: 245 seconds]
mexisme has joined #nixos
drakonis1 has joined #nixos
ottidmes has quit [Ping timeout: 272 seconds]
mexisme has quit [Ping timeout: 268 seconds]
cinimod has joined #nixos
o1lo01ol1o has joined #nixos
drakonis_ has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @jonringer opened pull request #65862 → libgpiod: unstable-2018-10-07 -> 1.4 → https://git.io/fjHU5
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
o1lo01ol1o has quit [Ping timeout: 248 seconds]
zacts has quit [Quit: WeeChat 2.4]
<colemickens> oh my goodness, why is edns on again
jmeredith has joined #nixos
rouma7 has quit [Ping timeout: 276 seconds]
zupo has joined #nixos
<Miyu-chan> Hm. Where's that discourse link of nix(pkgs) gripes?
FRidh has quit [Quit: Konversation terminated!]
Guest38071 has quit [Ping timeout: 248 seconds]
Xal has quit [Ping timeout: 268 seconds]
Guest38071 has joined #nixos
<GiGa> Thanks everyone for the help with Lutris, seems to be working well
cinimod has quit [Ping timeout: 248 seconds]
Xal has joined #nixos
<Athas> Can anyone recommend a good/simple image viewing program?
<Miyu-chan> Athas: I use feh.
wildtrees has joined #nixos
<Athas> Oh, I remember feh from the old days.
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #nixos
wildtrees has quit [Remote host closed the connection]
GiGa has quit [Remote host closed the connection]
wildtrees has joined #nixos
xkapastel has joined #nixos
shibboleth has joined #nixos
<{^_^}> [nixpkgs] @marius851000 opened pull request #65863 → dolphinEmuMaster: update to the latest upstream version → https://git.io/fjHTM
<infinisil> Athas: Can also recommend feh, very simple but also powerful
fusion809 has quit [Remote host closed the connection]
<qyliss> I use imv
<qyliss> Main advantage for me is that it runs natively on Wayland
<{^_^}> [nixpkgs] @eadwu opened pull request #65864 → python3Packages.cairocffi: gdk-pixbuf -> gdk_pixbuf → https://git.io/fjHTd
wildtrees has quit [Remote host closed the connection]
<pie_> anyone ever looked at netplan? https://netplan.io/
work_ has quit [Quit: Connection closed for inactivity]
wildtrees has joined #nixos
<xantoz> pie_: that's the thing that ubuntu server uses these days, right?
<pie_> (fpletz?)
<pie_> xantoz: apparently, given that the bottom of the page says canonical and ubuntu
Zalondo16 has quit []
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vcunat has joined #nixos
davidak has joined #nixos
<davidak> is it known, that https://hydra.nixos.org is DOWN?
iqubic has joined #nixos
<clever> gchristensen: ^^
<gchristensen> yes
<{^_^}> [nixpkgs] @jonasnick opened pull request #65865 → lnd: 0.7.0-beta -> 0.7.1-beta → https://git.io/fjHkJ
<gchristensen> we're performing maintenance
<davidak> ok
<{^_^}> [nixpkgs] @jonringer opened pull request #65866 → pythonPackages.boltons: 2019-01-07 -> 19.1.0 → https://git.io/fjHkk
<davidak> (it would be helpful to have a simple maintainance site instead)
<gchristensen> specifically: a few weeks ago we got a larger server for hydra.nixos.org. its larder root made the filesystem be abl eto have many more files inthe nix store. this hit the bmaximum number of entries in /nix/store, so we're working on tuning the fs
<clever> gchristensen: zfs!, zfs!
selfsymmetric-mu has quit [Remote host closed the connection]
<hyper_ch> what clever said.
<kreisys> When I use the output of nix-prefetch-git with nixpkgs's fetchgit I end up with different store paths (i.e., nix-prefetch-git outputs one store path and nix-build does the git fetch all over again and ends up with another store path) even though the hash is the same and the contents of the store paths are otherwise bit-identical (according to `diff -qr`). Is that expected? I'm asking because I've been struggling to get my
<kreisys> nix builds to hit my hydra cache and I traced it down to this issue.
<kreisys> @clever please tell me you know exactly what's going on :P
<kreisys> oh I forgot to mention, hydra uses a different nix-prefetch-git which comes up with yet another different store path...
<clever> kreisys: are the names identical?
<clever> kreisys: the name is part of what gets hashed
cinimod has joined #nixos
<kreisys> they're not. nix-prefetch-git uses "repo", fetchgit uses "repo-sortrev", hydra nix-prefetch-git uses "source"
<kreisys> s/sortrev/shortrev
cinimod` has joined #nixos
<clever> hyper_ch: you want to set name="source"; on the nix function doing the fetch
<clever> kreisys: oops, ^^
<kreisys> Really? Isn't that kinda... gross?
<clever> kreisys: yeah, a bit of messy
<kreisys> Is that like a common practice? I feel like this is a mainstream use case
<clever> kreisys: the problem is more that hydra doesnt know what the name should be, so it has to fetch it as "source"
<clever> kreisys: and then fetchFromGitHub and friends had to be changed to "source" to match hydra
<kreisys> but not fetchgit?
<clever> kreisys: fetchgit or fetchGit?
<kreisys> Well now I tested with nixpkgs' fetchgit
cinimod has quit [Ping timeout: 268 seconds]
<clever> kreisys: on which version of nixpkgs?
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<kreisys> fairly recent nixos-unstable
zupo has joined #nixos
<clever> kreisys: ah, fetchgit uses a name based on the url, but fetchFromGitHub uses "source"
zacts has joined #nixos
<kreisys> Yeah ok I can confirm that hydra's version of nix-prefetch-git does indeed produce an identical store path to builtins.fetchGit
<kreisys> I should take note of this somewhere
zacts_pi has joined #nixos
<kreisys> So I guess my problem is different
jb55 has joined #nixos
<{^_^}> [nixpkgs] @worldofpeace merged pull request #65862 → libgpiod: unstable-2018-10-07 -> 1.4 → https://git.io/fjHU5
<{^_^}> [nixpkgs] @worldofpeace pushed 2 commits to master: https://git.io/fjHkc
wildtrees_ has joined #nixos
<kreisys> My issue is that builtins.fetchGit and hydra's variant of nix-prefetch-git are only compatible for repos with no submodules. once you have submodules, builtins.fetchGit doesn't fetch them while hydra's nix-prefetch-git does
cinimod` has quit [Ping timeout: 246 seconds]
<clever> kreisys: i believe only iohk's fork of hydra will fetch submodules
<kreisys> I switched to upstream yesterday and sure as hell that submodule was there
<kreisys> I even went as far as enabling deepClone and then `builtins.fetchGit ./.`
zacts has quit [Ping timeout: 276 seconds]
npmccallum has quit [Quit: npmccallum]
wildtrees has quit [Ping timeout: 246 seconds]
<kreisys> I still don't understand why that didn't work
<kreisys> I mean it did *work* as in it built, it just wasn't the same hash my other machine produced
<clever> kreisys: deep clone is the reverse of shallow clone, its to do with history, not submodules
<kreisys> if you look at the GitInput perl module you'll see that enabling deepClone also enables keepDotGit.
<clever> kreisys: and .git is often a source of impurities
<kreisys> and confusingly if you run hydra's nix-prefetch-git it suggests that deepClone actually controls whether it fetches submodules or not (that's incorrect)
<kreisys> so you mean that if I were to `builtins.fetchGit ./.` from 2 different clones that differ only in.. idk.. local config? then they'd produce a different store path?
<clever> the version of git, and the state of unrelated branches, will impact what git puts in .git
<clever> so something as simple as an unrelated branch getting pushed, can result in a different .git
davidak has quit [Quit: Leaving]
<kreisys> oh yes of course! but that's why I'm doing the additional `builtins.fetchGit ./.` from within the source fetched by hydra (after getting it to not delete .git from it)
<worldofpeace> colemickens: did i confuse you in #65843?
<{^_^}> https://github.com/NixOS/nixpkgs/issues/65843 (by colemickens, 6 hours ago, open): fractal panics at runtime
<kreisys> does the source of builtins.fetchGit affect the resulting store path?
mexisme has joined #nixos
<kreisys> does it matter whether I've gotten the repo via https, ssh, local directory or a store path?
<clever> kreisys: i think it mainly impacts the name
<iqubic> Is there anywhere I can go to read all the options home-manager gives me.
<kreisys> Is there any conventional way to handle this issue with repos that have submodules? My game plan was to use niv sources and "inject" the submodules in one of the phases
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<iqubic> Similar to this: https://nixos.org/nixos/options.html# but for home-manager only.
mexisme has quit [Ping timeout: 250 seconds]
<clever> kreisys: my idea, was to make a json file in the repo, that describes the submodules, and then use runCommand to merge things together, using multiple fetchFromGithub (deepfire/serge has implemented it)
<iqubic> Because there's this one option, home.file.".emacs".source, and I don't know what type that thing is asking for.
<clever> iqubic: .source is usually a path to a file
<clever> (or directory)
<iqubic> I see.
<kreisys> @clever yeah but can I make hydra use fetchFromGithub instead of nix-prefetch-git?
<iqubic> My next question is, how does nix handle the character '~' in paths?
<clever> kreisys: the release.nix would have to fetch the submodules that ./submodules.json defines, then merge ./. with the submodules
<clever> iqubic: it expands it to $HOME
<kreisys> there's currently no way to disable hydra fetching submodules (fact check me https://github.com/NixOS/hydra/blob/master/src/script/nix-prefetch-git#L166)
<infinisil> iqubic: man home-configuration.nix
<{^_^}> hydra#599 (by tomberek, 43 weeks ago, merged): submodule fix
<clever> kreisys: you may need to patch hydra to turn it back off
<iqubic> home.file.".emacs".source = ~/.emacs.d/init.el
<iqubic> Is that valid?
<clever> iqubic: should be
<iqubic> cool.
<kreisys> but but but perl :(
<clever> kreisys: the nix-prefetch-git script is bash
<iqubic> thanks.
<kreisys> yeah I'm thanking the lawd for that.
zacts_pi has quit [Quit: WeeChat 2.4]
<kreisys> I'm contemplating just axing this submodule and vendoring it in. It's just a few files and the submodule repo isn't very active. Do you think they'll notice? :D
<clever> kreisys: give it a try!
<kreisys> Also random thought... I'm going through all the workaround instead of looking this in the face. Wouldn't it be more wholesome a solution to just patch builtins.fetchGit to support submodules?
<kreisys> Like enhance Nix instead of crippling Hydra in a sense.
<kreisys> I'm just asking to know whether there be dragons
<clever> kreisys: thats fairly complicated, let me link it
<kreisys> there be dragons :(
<kreisys> The one thing that scares me more than perl is c++.
<clever> kreisys: line 94, it init's a bare git repo, 131 it fetches things, 171 it generates an archive at a given rev
<clever> kreisys: the problem, is that `git archive` doesnt support submodules
<kreisys> So what's hydra's nix-prefetch-git doing?
<iqubic> Why does home-manager have a ton of options related to email?
<kreisys> I'm gonna call it hnpg henceforth. It's tedious to type.
<clever> kreisys: its cloning/fetching to a bare repo, then clone again to a non-bare one
<clever> then deleting the .git folder
<ToxicFrog> For Perl modules, what's the preferred way to structure the PR? One commit per module, one commit for all of them, or put them in the same commit as the thing that depends on them?
<kreisys> it using TopGit
<kreisys> I don't know what that is
<kreisys> oh only if you have a .topdeps file
<Edes> I asked this a few days ago but was busy and forgot I asked this
<Edes> I switched from i3 to gnome and the brightness control no longer works
<Edes> I'm on xorg
halfbit has joined #nixos
<Edes> the brightness doesn't work on the slider on the menu, on the media keys or through xbrightness
<Edes> I'm on a thinkpad x260 if that helps
<niso> Edes: what's your output of "cat /sys/class/backlight/*/brightness" ?
drakonis_ has joined #nixos
<Edes> 272
drakonis1 has quit [Ping timeout: 268 seconds]
<kreisys> @clever I don't think I understand what's preventing builtins.fetchGit from following the same routine nix-prefetch-git follows? what's up with feeding the output of `git archive` to tar in the first place?
rtjure has quit [Quit: ZNC 1.6.5 - http://znc.in]
<clever> kreisys: cloning from the bare repo i think copies the entire .git dir, and then it deletes it
<clever> kreisys: `git archive` gives you a subset that you want
<kreisys> that's silly you can just use git worktrees
<clever> kreisys: but worktrees yeah
<kreisys> did I just assign myself a pr?
<clever> kreisys: maybe :D
<kreisys> crap
<kreisys> k I better pay a visit to the sqdc then :|
<niso> Edes: then my brightness script might work
<Edes> any idea why it might not be working?
<Edes> at least I can use that to stop being blinded late at night
wfranzini has quit [Remote host closed the connection]
alloy has joined #nixos
wfranzini has joined #nixos
ddellacosta has joined #nixos
pukkamustard has quit [Ping timeout: 258 seconds]
<alloy> I'm quite a novice to NixOS, maybe it's my fault not finding the right option: But why is nix search so much faster than nix-env -qa?
<Yaniel> probably built completely differently
ottidmes has joined #nixos
<alloy> Okay, thanks for the awnser! I was just wondering why nix-env -qa takes like 5 seconds to complete
<hr[m]> alloy: When I run nix search I get `warning: using cached results; pass '-u' to update the cache` along with the result. The cache could be the reason for the speed improvement.
drakonis1 has joined #nixos
<Yaniel> nix search is from nix 2.0
<Yaniel> I think
<Yaniel> and nix-env -qa is a separate application AFAIK, from the nix 1.x days
<Yaniel> so yeah probably cache was added where nix-env has to evaluate the entire derivation tree
mexisme has joined #nixos
drakonis_ has quit [Ping timeout: 264 seconds]
<alloy> The timing makes sense now :D Is there an 2.0 alternitive to nix-env for multi-user package-managment?
<Baughn> I like home-manager.
<Baughn> It can even be hooked into the system configuration, if you'd want that.
<alloy> Okay, will have a look at it. Thanks!
<Baughn> alloy: Strictly speaking the answer to your question is no. They're still debating how `nix install` should work.
<Baughn> But home-manager will do the job.
<Baughn> (And also rather more.)
<alloy> First impression looks good! I always wondered about the lack of declarative managment for users
<wildtrees_> how come using custom open port list with nix firewall default to enabled, but not specifically enabled is broken, and default the hostname of avahai services was broken as well, more so how come defaulting for nixos seems somewhat broken?
wildtrees_ is now known as wildtrees
<lambda-11235> How do I rollback to a specific revision?
<lambda-11235> `nixos-rebuild switch --rollback` does take a generation.
<infinisil> lambda-11235: Go to /nix/var/nix/profiles and choose a generation
_kwstas has joined #nixos
<infinisil> Then call sudo /nix/var/nix/profiles/system-XXX-link/bin/switch-to-configuration switch
<infinisil> ,declarative alloy
<{^_^}> alloy: There are multiple ways of managing declarative profiles. 1) Attrset, compatible with imperative use of nix-env https://git.io/fAQHW ; 2) buildEnv, providing more control over the paths that are linked into the profile https://git.io/fp0aU ; 3) home-manager, providing nixos-like config for your ~ https://github.com/rycee/home-manager
<infinisil> I can also recommend home-manager :)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #65867 → caf: 0.16.3 -> 0.17.0 → https://git.io/fjHIO
<alj[m]> good evening!
<alj[m]> Can someone explain to me how to make a module for some strings, that i can import in the main config?
chloekek has quit [Ping timeout: 245 seconds]
joebobjoe has joined #nixos
<alj[m]> I want to be able to set service.something.key = options.mystrings.somethingkey (or something close to this) in the main configuration.nix
<alj[m]> if options is even the right place for that
<alj[m]> * I want to be able to set `service.something.key = options.mystrings.somethingkey` (or something close to this) in the main configuration.nix
<alj[m]> * if `options` is even the right place for that
fusion809 has joined #nixos
Palpares has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #65868 → c-blosc: 1.16.3 -> 1.17.0 → https://git.io/fjHIc
Palpares has joined #nixos
evanjs has joined #nixos
<alloy> {^_^}: Thanks for the tips!
halfbit has quit [Ping timeout: 264 seconds]
<infinisil> ({^_^} is a bot btw :))
<mgdm> good bot
<alloy> Oh :D Turing test complete
<alj[m]> Does noone have time to help me real quick?
<etu> alj[m]: Just describe your issue
<etu> oh, you have
<gchristensen> alj[m]: after you set this string, what do you want to do with it?
<alj[m]> Use it in the configuration.nix
<alj[m]> I basically want to outsource some stuff so I can just use a static name for it instead
<gchristensen> like as a variable that you can look at in othermodules?
fusion809 has quit [Remote host closed the connection]
<alj[m]> I think so yes.
ambro718 has quit [Ping timeout: 258 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #65869 → aws-google-auth: 0.0.29 -> 0.0.32 → https://git.io/fjHI4
<evanjs> Okay so... Not sure what info to provide, but sorta confused right now. systemd-boot-builder is failing and I can't rebuild. There's a system link that isn't a valid system link (just contains a manifest.nix?) so it'll try to switch to it but it can't find the kernel, because, well, that's not a valid system profile in the first place. Happy to provide whatever info is needed, just totally lost right now
<evanjs> haha
xkapastel has quit [Quit: Connection closed for inactivity]
hnd^ has joined #nixos
<evanjs> Here's the full error I'm seeing: https://pastebin.com/fN3rihUZ
mexisme has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #65870 → bind: 9.14.3 -> 9.14.4 → https://git.io/fjHI2
<infinisil> alj[m]: I recommend declaring an option for that
<alj[m]> infinisil: I tried going through the manual for that but I cant seem to understand how...
* infinisil is writing a short example
<infinisil> alj[m]: Something like this in a file you import: `{ lib, ... }: { options.mystrings = mkOption { type = lib.types.attrsOf lib.types.str; default = {}; }; config.mystrings = { somethingkey = "hello"; foo = "bar"; }; }`
<infinisil> s/mkOption/lib.mkOption
<infinisil> Then you can refer to these in any other module with `config.mystrings.*`
<alj[m]> oh okay I think I understand! Man someday I'll understand the nix syntax properly
<alj[m]> Thanks so much!
<infinisil> :D
<alj[m]> <infinisil "Then you can refer to these in a"> wouldnt it be options.mystrings ?
<gchristensen> modules take a bit to learn :)
<infinisil> alj[m]: `config` represents the resulting value of options
<infinisil> While `options` is the option definition itself
<infinisil> (which actually also contains the resulting value of it, but also the type and the default and such)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #65871 → abcmidi: 2019.06.14 -> 2019.07.12 → https://git.io/fjHIa
<alj[m]> uh... I'll just accept that I think.
<alj[m]> Again thanks so much!
<gchristensen> you'll get it :)
<gchristensen> just give it time. get used to using it first
sbdchd has joined #nixos
Guest38071 has quit [Quit: WeeChat 2.4]
<infinisil> The module system sure isn't the simplest thing to get
<niso> Edes: i refactored the script a bit: http://paste.debian.net/1094282/
<{^_^}> [nixpkgs] @r-ryantm opened pull request #65872 → birdfont: 2.26.0 -> 2.27.0 → https://git.io/fjHIw
jumblemuddle has joined #nixos
<infinisil> I'm just experimenting a bit with the module system
<infinisil> Would be nice to have assertions and warnings you can turn off
<alj[m]> @in
<jumblemuddle> Is there a way to make NixOS automatically create a raid array on boot if it doesn't exist? I'm trying to deploy to GCE using NixOps, and I'd like for the mdadm raid0 array to be automatically generated. All I can find for NixOS options is `mdadmConf` though, and it doesn't look like that'll automatically create the array.
<alj[m]> infinisil: Can I insert sub-divisions like config.mystrings.sub.foo ?
Edes has quit [Ping timeout: 245 seconds]
alloy has quit [Quit: leaving]
<infinisil> alj[m]: Yeah by changing the type to e.g. `attrsOf (either (attrsOf str) str)`
jumble has joined #nixos
<timokau[m]> f
<alj[m]> right now its `attrsOf str;` what do i have to change?
jumble has quit [Remote host closed the connection]
<infinisil> Change it to what I just showed
shibboleth has quit [Quit: shibboleth]
xkapastel has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #65873 → aws-c-common: 0.3.11 -> 0.3.15 → https://git.io/fjHI1
Boubert has joined #nixos
ddellacosta has quit [Quit: WeeChat 2.2]
<{^_^}> [nixpkgs] @adisbladis opened pull request #65874 → Emacs melpa overrides → https://git.io/fjHID
Thra11 has quit [Ping timeout: 246 seconds]
ddellacosta has joined #nixos
Edes has joined #nixos
tomberek has quit [Ping timeout: 260 seconds]
lambda-11235 has quit [Quit: Bye]
<{^_^}> [nixpkgs] @jdanekrh opened pull request #65875 → Jd mono6 → https://git.io/fjHI9
linarcx has quit [Ping timeout: 272 seconds]
Edes has quit [Ping timeout: 268 seconds]
_kwstas has quit [Quit: _kwstas]
johnny101m has quit [Read error: Connection reset by peer]
johnny101m2 has joined #nixos
Boubert has quit [Quit: Mutter: www.mutterirc.com]
asymptotically has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
Boubert has joined #nixos
selfsymmetric-mu has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #65877 → armadillo: 9.600.4 -> 9.600.5 → https://git.io/fjHIx
<tazjin> if anyone has a better idea for how to deal with retrieving attributes in a case-insensitive way, please ping me: https://github.com/google/nixery/pull/22
<{^_^}> google/nixery#22 (by tazjin, 4 hours ago, merged): fix(nix): Support retrieving differently cased top-level attributes
hmpffff has quit [Quit: nchrrrr…]
<iqubic> How do I tell home-manager to launch lightDM?
joebobjoe has quit [Ping timeout: 248 seconds]
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg opened pull request #65878 → nixos/openvpn: user, forwarding and local state dir → https://git.io/fjHIh
<infinisil> lightdm is a display manager, which isn't something home-manager should manage
kreisys has quit [Remote host closed the connection]
Rusty1 has joined #nixos
<iqubic> Oh. I see.
<iqubic> but home-manager is allowed to manage the Xorg display server?
<iqubic> And it's allowed to manage keyboard layouts too?
<infinisil> Only the xsession, which is what your user wants to start as a window manager/desktop environment
<infinisil> Not the x server itself
<infinisil> Keyboard layouts are also something user-specific
<infinisil> home-manager is simply said for things that can be specific to users
<iqubic> I see.
<iqubic> Makes sense.
<{^_^}> [nixpkgs] @markuskowa merged pull request #65671 → urh: add support for Pluto, soundcards, and optionally USRP → https://git.io/fj9J8
<{^_^}> [nixpkgs] @markuskowa pushed 2 commits to master: https://git.io/fjHLJ
<iqubic> The default option for home.keyboard.module is "pc104" how can I verify if that is the right layout. If it's not the layout, how can I find the right layout option?
<iqubic> I'm using the ANSI layout.
<qyliss> iqubic: if you notice a key not doing what it's supposed to, it's not the right layout :P
MmeQuignon has joined #nixos
kreisys has joined #nixos
<iqubic> I see. I'll just set the variant to "qwerty" and see what happens.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #65879 → babeld: 1.8.4 -> 1.8.5 → https://git.io/fjHLt
<iqubic> home-manager doesn't seem to have any sort of libinput settings. Will I have to manage that in my configuration.nix?
<iqubic> I'm talking about laptop trackpad options.
<clever> iqubic: first, you need to figure out if those options are controlled via a config file, or if they can be changed by a command after you login
<iqubic> Really all I'm doing setting the option "services.xserver.libinput.enable" to true in my configuration.nix.
<iqubic> Nothing too fancy.
Boubert has quit [Quit: Mutter: www.mutterirc.com]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #65880 → binaryen: 86 -> 88 → https://git.io/fjHLY
drakonis_ has joined #nixos
jgt has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #65881 → batctl: 2019.2 -> 2019.3 → https://git.io/fjHLs
o1lo01ol1o has joined #nixos
drakonis1 has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #65882 → bear: 2.4.0 -> 2.4.1 → https://git.io/fjHLC
drakonis1 has joined #nixos
ngirard has quit [Quit: Ex-Chat]
drakonis_ has quit [Ping timeout: 250 seconds]
zacts has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #65883 → checkstyle: 8.22 -> 8.23 → https://git.io/fjHL0
troydm has quit [Ping timeout: 248 seconds]
alex`` has quit [Ping timeout: 245 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
erictapen has joined #nixos
jumblemuddle has quit [Remote host closed the connection]
<clever> sphalerite: where did i leave my scope probes...
o1lo01ol1o has joined #nixos
mbrgm_ has joined #nixos
mbrgm has quit [Ping timeout: 276 seconds]
mbrgm_ is now known as mbrgm
<{^_^}> [nixpkgs] @r-ryantm opened pull request #65884 → claws-mail: 3.17.3 -> 3.17.4 → https://git.io/fjHL6
bvdw has joined #nixos
vcunat has quit [Ping timeout: 252 seconds]
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @globin merged pull request #65879 → babeld: 1.8.4 -> 1.8.5 → https://git.io/fjHLt
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/fjHLM
<{^_^}> [nixpkgs] @globin merged pull request #65883 → checkstyle: 8.22 -> 8.23 → https://git.io/fjHL0
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/fjHLD
<DigitalKiwi> https://twitter.com/ArchKiwi/status/1157794447494717440?s=20 new batch of nix logos. made the paint too thin i think so it bled and the first stencil was too sticky (new adhesive, not used to it)... next one's will be better i hope
<{^_^}> [nixpkgs] @globin merged pull request #65882 → bear: 2.4.0 -> 2.4.1 → https://git.io/fjHLC
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/fjHLy
jgt has joined #nixos
<{^_^}> [nixpkgs] @globin merged pull request #65881 → batctl: 2019.2 -> 2019.3 → https://git.io/fjHLs
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/fjHLS
<{^_^}> [nixpkgs] @r-ryantm opened pull request #65885 → curaengine: 4.1.0 -> 4.2.0 → https://git.io/fjHL9
<{^_^}> [nixpkgs] @globin merged pull request #65870 → bind: 9.14.3 -> 9.14.4 → https://git.io/fjHI2
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/fjHL7
erictapen has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #65886 → cups-filters: 1.25.0 -> 1.25.1 → https://git.io/fjHL5
ottidmes has quit [Ping timeout: 246 seconds]
drakonis1 has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @globin merged pull request #64921 → qjackctl: 0.5.8 -> 0.5.9 → https://git.io/fj1Uu
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/fjHLF
<{^_^}> [nixpkgs] @globin merged pull request #64933 → qmidinet: 0.5.4 -> 0.5.5 → https://git.io/fj1k0
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/fjHLb
<{^_^}> [nixpkgs] @globin merged pull request #64926 → qsampler: 0.5.5 -> 0.5.6 → https://git.io/fj1Ta
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/fjHLN
<{^_^}> [nixpkgs] @globin merged pull request #65067 → esptool: 2.6 -> 2.7 → https://git.io/fj1jb
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/fjHLA
drakonis1 has joined #nixos
<{^_^}> [nixpkgs] @globin merged pull request #65075 → freecad: 0.18.2 -> 0.18.3 → https://git.io/fjMJC
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/fjHLp
<{^_^}> [nixpkgs] @globin closed pull request #65066 → dovecot_pigeonhole: 0.5.6 -> 0.5.7 → https://git.io/fj1jQ
<{^_^}> [nixpkgs] @globin merged pull request #64087 → mopidy: 2.2.2 -> 2.2.3 → https://git.io/fjKgz
<{^_^}> [nixpkgs] @globin pushed 2 commits to master: https://git.io/fjHte
<{^_^}> [nixpkgs] @r-ryantm opened pull request #65887 → confluent-platform: 5.2.1 -> 5.3.0 → https://git.io/fjHtv
<{^_^}> [nixpkgs] @r-ryantm opened pull request #65888 → cppzmq: 4.3.0 -> 4.4.1 → https://git.io/fjHtf
zacts has quit [Quit: WeeChat 2.4]