gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || 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
blankhart has joined #nixos
<judson> nix search doesn't find a package and I'm confused why.
<judson> nix search kafkacat => no results
<judson> nix-env -qaP '.*kafkacat.*' => nixpkgs.kafkacat kafkacat-1.3.1
<judson> I've run search recently with -c
timbod7 has joined #nixos
Fare has joined #nixos
ZaraChimera has quit [Ping timeout: 276 seconds]
TonyTheLion has quit [Quit: leaving]
TonyTheLion has joined #nixos
blonkhart has joined #nixos
flugsio1 has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
TonyTheLion has quit [Ping timeout: 240 seconds]
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
<jtojnar> timbod7: NIX_CFLAGS_COMPILE and NIX_LDFLAGS environment variables are set, CC is wrapped or patched so it reads them
<jophish> judson, fwiw I never learnt how to use nix-env -q, I usually use Ag in the nixpkgs git tree
<gillmanash> judson: jophish: Or Nox
boxscape has quit [Ping timeout: 260 seconds]
<judson> Nox is also my go to, but I'm trying out Nix 2 stuff.
<judson> nix search is fast and has nice output.
<judson> But... doesn't include some packages?
<jtojnar> boxscape: old system configurations need not really share much with the newer ones, since whenever a package is updated, all packages that depend on it (transitively) will need to be replaced. So yes, they take a lot of space.
<judson> Huh. nixos-rebuild doesn't see kafkacat either...
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
<judson> With NixOS 18.03 on the channel
<judson> Seems it hadn't updated
digitus has quit [Quit: digitus]
hiroshi has quit [Ping timeout: 255 seconds]
kerrhau has quit [Ping timeout: 260 seconds]
<jtojnar> dhess: PHP-FMP is the official FastCGI implementation and it is the recommended way of using PHP at the moment (at least with nginx)
ottidmes has quit [Ping timeout: 260 seconds]
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
abathur has joined #nixos
coconnor has quit [Remote host closed the connection]
<timbod7> jtojnar: Thanks. My confusion was that you don't get the extra environment variables set if you don't also include the gcc package. ie if I run `nix-shell -p gtk3 --command /usr/bin/env | grep NIX` there are 8 environment variables set, whereas if you include the gcc pacakge: `nix-shell -p gtk3 -p gcc --command /usr/bin/env | grep NIX` there are 14, including NIX_TARGET_CFLAGS_COMPILE and NIX_TARGET_LDFLAGS.
hakujin2 has quit [Ping timeout: 260 seconds]
Brejick has quit [Quit: Quit]
<jtojnar> that would be from gcc setup hooks probably
<timbod7> so "hooks" means package specific environment changes?
tertle||eltret has joined #nixos
hakujin2 has joined #nixos
markus1199 has joined #nixos
iyzsong has joined #nixos
markus1189 has quit [Ping timeout: 276 seconds]
hakujin2 has quit [Ping timeout: 256 seconds]
abathur has quit [Ping timeout: 260 seconds]
mbrgm has quit [Ping timeout: 256 seconds]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
mbrgm has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/d307ab5ca3b (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
thc202 has quit [Ping timeout: 276 seconds]
jperras has quit [Quit: WeeChat 2.1]
<{^_^}> [nixpkgs] @avnik opened pull request #38494 → [WIP] Refactor libprefixed packages to multioutput → https://git.io/vxSiK
<avn> Lol, someone need to fix this crap, why not me? ;)
jrolfs_ has joined #nixos
ZaraChimera has joined #nixos
nikivi- has quit [Quit: ZNC 1.6.6 - http://znc.in]
jrolfs_ has quit [Ping timeout: 264 seconds]
nikivi has joined #nixos
hakujin2 has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
hakujin2 has quit [Ping timeout: 260 seconds]
Fare has quit [Ping timeout: 264 seconds]
<gillmanash> timbod7: I think your derivation env will be more similar to `nix-shell -p gtk3 stdenv`. I am not sure on internals, but I think stdenv is automaticcaly included with stdenv.buildDerivation, and stdenv includes gcc
<gillmanash> timbod7: But that is a weird way to do it, I always write a nix expression for a project if I'm compiling
kmicklas has quit [Ping timeout: 256 seconds]
alp has quit [Ping timeout: 252 seconds]
<gillmanash> timbod7: I do often use `nix-shell -p ...` for python things, or run-once binaries
iyzsong has quit [Ping timeout: 256 seconds]
<srid> Trying to upgrade to nixos-18.03 => No space left on device https://www.irccloud.com/pastebin/iSN2wjtM/
<srid> I do see that my /boot is full (uses all of 256M)
<srid> How can I solve this?
alp has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bara has quit [Read error: Connection reset by peer]
<avn> srid: use grub2? Then you will have only grub itself on efi (or in /boot/efi, if you still need copyKernels)
bara has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
<srid> joepie91: thx, running gc fixed it. must be old kernels
<srid> avn: don't know; this is what I have: boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true;
jrolfs_ has joined #nixos
badi has joined #nixos
Fare has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38495 → wireshark-gtk: 2.4.5 -> newVersion → https://git.io/vxSXg
jrolfs has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @jerith666 opened pull request #38496 → amazonka: fix build after hackage update → https://git.io/vxSXw
<{^_^}> [nixpkgs] @r-ryantm closed pull request #38495 → wireshark-gtk: 2.4.5 -> newVersion → https://git.io/vxSXg
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
jrolfs_ has quit [Ping timeout: 265 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38497 → wireshark-gtk: 2.4.5 -> newVersion → https://git.io/vxSX9
<{^_^}> [nixpkgs] @r-ryantm closed pull request #38497 → wireshark-gtk: 2.4.5 -> newVersion → https://git.io/vxSX9
<ryantm> sorry!
jperras has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
bara has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38498 → wireshark-gtk: 2.4.5 -> 2.4.6 → https://git.io/vxSXd
<ryantm> That's more like it.
bara has joined #nixos
<joepie91> flappy button? :)
fusion809 has joined #nixos
<fusion809> Hi folks, nix-build fails on my Tumbleweed system, I have NIX_PATH set to ~/.nixpkgs (where I have cloned the NixOS/nixpkgs repository) yet I get the error: error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at /home/fusion809/runescape-launcher/default.nix:1:17
<joepie91> ryantm: ah, you're automating updates!
<fusion809> If it helps the runescape-launcher thing is taken from this NixOS/nixpkgs issue: https://github.com/NixOS/nixpkgs/issues/30582#issuecomment-341016865.
<joepie91> excellent :)
cybrian_ has quit [Quit: cya]
cybrian has joined #nixos
<fusion809> Ah https://unix.stackexchange.com/questions/424533/nixpkgs-unstable-visible-imperatively-but-not-declaratively taught me what I was doing wrong, their NIX_PATH, with some modification, worked
fusion809 has quit [Quit: Leaving]
sanscoeur has joined #nixos
jperras has quit [Quit: WeeChat 2.1]
abathur has joined #nixos
jrolfs_ has joined #nixos
schoppenhauer has quit [Ping timeout: 256 seconds]
tmaekawa has joined #nixos
bara has quit [Read error: Connection reset by peer]
schoppenhauer has joined #nixos
bara has joined #nixos
jrolfs_ has quit [Ping timeout: 260 seconds]
<abathur> hmm
<abathur> I know I successfully accessed my android before...
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
tmaekawa has quit [Quit: tmaekawa]
hph^ has quit [Ping timeout: 268 seconds]
Ridout has quit [Quit: Lost terminal]
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
tmaekawa has joined #nixos
tmaekawa has quit [Client Quit]
jrolfs_ has joined #nixos
hellrazor has joined #nixos
hakujin2 has joined #nixos
hellrazo1 has quit [Ping timeout: 265 seconds]
jrolfs_ has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
hakujin2 has quit [Ping timeout: 260 seconds]
pie_ has joined #nixos
<acowley> joepie91: Did you figure out how to fix your 18.03 upgrade?
codedmart_ has quit []
codedmart has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38500 → sysbench: 1.0.13 -> 1.0.14 → https://git.io/vxSyE
jrolfs_ has joined #nixos
Tobba has quit [Ping timeout: 256 seconds]
jrolfs_ has quit [Ping timeout: 276 seconds]
hakujin2 has joined #nixos
Tobba has joined #nixos
hakujin2 has quit [Ping timeout: 260 seconds]
jrolfs has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
abathur has quit [Ping timeout: 265 seconds]
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
mahalel_ has quit [Ping timeout: 245 seconds]
jrolfs has quit [Ping timeout: 260 seconds]
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
blonkhart has quit [Quit: WeeChat 1.9.1]
sigmundv has quit [Ping timeout: 256 seconds]
stumble has joined #nixos
<stumble> Hi everyone. I'm having trouble upgrading to 18.03. Anyone willing to help diagnose the problem please?
<elvishjerricco> stumble: What's the problem?
bara has quit [Read error: Connection reset by peer]
<stumble> Thanks. When I change my channel to 18.03 and then `nixos-rebuild`, I get the initial messages and downloads that I expect, and then a couple of innocuous-looking warnings which I'll paste in a minute, and then nothing. I've left it for more than 10 minutes so far.
bara has joined #nixos
bara has quit [Read error: Connection reset by peer]
<stumble> The warnings are (the first one is one I always get):
<stumble> trace: warning: mlocate does not support searching as user other than root
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/d307ab5ca3b (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
bara has joined #nixos
<stumble> and
<stumble> warning: unknown setting 'signed-binary-caches'
bara has quit [Read error: Connection reset by peer]
<stumble> End quote.
<elvishjerricco> stumble: Can you post the full log from nixos-rebuild?
<elvishjerricco> would be useful to know which stage it's failing in
<stumble> OK to paste it here, or shall I pop it on the web somewhere?
<clever> stumble: gist.github.com
<elvishjerricco> typically a little easier to put it on pastebin or gist or something.
bara has joined #nixos
<stumble> Right. Just a sec then.
<stumble> Sorry - can't find a build log. Unless you mean what the build process outputs to my terminal.
bara has quit [Read error: Connection reset by peer]
<elvishjerricco> yea
<mightybyte> In nix expressions, can double quoted strings contain newline characters?
<clever> mightybyte: yes
<mightybyte> clever: Cool, thanks.
<elvishjerricco> mightybyte: Double quoted as in ", and newline characters as in actual line breaks in your source?
Rusty1_ has quit [Quit: Konversation terminated!]
bara has joined #nixos
<mightybyte> Strings surrounded by "double quote characters"
<clever> mightybyte: double as in ''foo bar''
<elvishjerricco> Yea, those can have `\n` literals, but not actual line breaks in the source, I thought
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
<mightybyte> elvishjerricco: This made me think otherwise. https://github.com/NixOS/nix/blob/master/tests/lang/eval-okay-string.nix#L6
bara has quit [Read error: Connection reset by peer]
<elvishjerricco> mightybyte: TIL
<elvishjerricco> weird
<elvishjerricco> always though double single quoted strings were required
<stumble> Here's what I see on my terminal:
<stumble> https://bin.disroot.org/?be505269bbead1d4#1W1sUoHkdhSYJDs+IJ8W6eSGN4bhXFueWOmx73egDH4=
<clever> the difference, is that double-single will strip common indents
bara has joined #nixos
<clever> stumble: does it hang again if you try the same command again?
bara has quit [Read error: Connection reset by peer]
<stumble> Yes. It doesn't redo the downloads of course, but the warnings and the hang are identical.
bara has joined #nixos
bara has quit [Read error: Connection reset by peer]
<stumble> (Hooray for idempotency so I wasn't worried about trying it repeatedly.)
bara has joined #nixos
<clever> stumble: if you check top while its hung, is there any high cpu usage?
<stumble> No.
<clever> strange
<stumble> The process nix-build has high CPU usage for a few seconds; then after that nothing does.
<mightybyte> elvishjerricco: Oh, now this is weird. That file apparently is supposed to generate this: https://github.com/NixOS/nix/blob/master/tests/lang/eval-okay-string.exp
<mightybyte> What command can I use to manually evaluate that file and play around with it?
<elvishjerricco> mightybyte: Why is that weird? That's just the same string but with `\n` literals instead of actual line breaks
rauno has joined #nixos
<elvishjerricco> mightybyte: nix-instantiate --eval, or nix eval with Nix 2.0
<stumble> Ah, although ... there is a process with 1% CPU usage that keeps going during the hang ...
<clever> stumble: name?
<stumble> download-from-binary-cache.pl --query
<clever> stumble: thats nix checking the binary caches
<stumble> Making progress!
<clever> it should be
<stumble> I could leave it for more than 10 minutes, although I'm on an OK internet connection so it seems strange.
<clever> it should warn you if it took over a minute
<stumble> Maybe I should delete local binary caches?
<clever> ?
<stumble> I mean I could re-download everything, and that way nixos-build wouldn't have to check the binary caches (or doing so would be trivial). Just guessing though.
jrolfs has joined #nixos
krey has quit [Ping timeout: 240 seconds]
<zybell_> If you get a warning about 'signed-binary-caches' in upgrade to 18.03 then you left another --channel on. Don't do that!
<stumble> Ah. Interesting. I don't think I have another channel ...
<stumble> jason@core 14:55.57 /a> sudo nix-channel --list
<stumble> jason@core 14:56.03 /a>
<clever> zybell_: that warning happens if you run nix2 with a nix1.11 /etc/nix/nix.conf file
<stumble> I wondered about that.
<clever> which will happen any time your doing the upgrade
<stumble> Right!
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
timbod7 has quit [Quit: timbod7]
orivej has quit [Ping timeout: 240 seconds]
bara has quit [Read error: Connection reset by peer]
hakujin2 has joined #nixos
<stumble> This is strange but possibly good: after leaving it for a few more minutes, it's now doing some more downloading!
bara has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
<stumble> Of what look like normal derivations.
<stumble> So hopefully (although strangely) it really did take that long to check the binary cache.
<clever> that sounds entirely normal
<clever> just a bit slow
bara has quit [Read error: Connection reset by peer]
<stumble> OK, good. Fingers crossed then.
bara has joined #nixos
shoogz has quit [Read error: Connection reset by peer]
phreedom has quit [Read error: Connection reset by peer]
bara has quit [Read error: Connection reset by peer]
<zybell_> clever: I thought nix.conf would normally be updated (with nix) before the real update (nixos) runs, but the additional channel stops the automatic.
bara has joined #nixos
phreedom has joined #nixos
<stumble> zybell_: interesting.
shoogz has joined #nixos
<clever> zybell_: nope, the issue is that the config is built with nix
<clever> zybell_: so nix has to run with the old config, to make the new config
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
vidbina has joined #nixos
hakujin2 has quit [Ping timeout: 265 seconds]
Guanin has quit [Ping timeout: 260 seconds]
hakujin2 has joined #nixos
<zybell_> that would eplain the warning once, but reading the log I see that I forgot to mention that I meant a permanent warning with error later.
jrolfs has quit [Ping timeout: 264 seconds]
<zybell_> explain*
<clever> yeah, if the warning keeps happening, thats generally due to installing nix 2 with nix-env, while running nix 1 as the daemon
MercurialAlchemi has joined #nixos
<stumble> I saw a snarky comment on reddit recently (don't remember exactly where - it wasn't in the nix subreddit) saying that nixos and guix couldn't possibly work, because they couldn't upgrade themselves when their database formats changed. I found it very irritating. There - I've got that off my chest now.
hakujin2 has quit [Ping timeout: 276 seconds]
Guanin has joined #nixos
<zybell_> yeah and in the update context sth like that occurs when another channel is open (don't know why exactly)
<stumble> I imagine it's very complicated to get the details of a major upgrade right, even though the basic design is so elegant.
spacefrogg has quit [Remote host closed the connection]
aw has quit [Remote host closed the connection]
aw has joined #nixos
spacefrogg has joined #nixos
jqtrde has quit [Ping timeout: 256 seconds]
jqtrde has joined #nixos
aw has quit [Remote host closed the connection]
spacefrogg has quit [Remote host closed the connection]
bara has quit [Read error: Connection reset by peer]
aw has joined #nixos
bara has joined #nixos
spacefrogg has joined #nixos
jeaye is now known as jeaye-hiring
aw has quit [Remote host closed the connection]
spacefrogg has quit [Remote host closed the connection]
aw has joined #nixos
aw has quit [Remote host closed the connection]
simukis has joined #nixos
aw has joined #nixos
bara has quit [Read error: Connection reset by peer]
spacefrogg has joined #nixos
bara has joined #nixos
rauno has quit [Remote host closed the connection]
johnhamelink has quit [Ping timeout: 245 seconds]
nocoolnametom has quit [Ping timeout: 246 seconds]
xy2_ has joined #nixos
vidbina has quit [Ping timeout: 240 seconds]
Aexoden has quit [Quit: No Ping reply in 180 seconds.]
vidbina has joined #nixos
<stumble> It completed successfully! Using 18.03 now. Hooray! About to reboot.
stumble has quit [Remote host closed the connection]
<hyper_ch> time to upgrade to unstable then :)
Aexoden has joined #nixos
stumble has joined #nixos
<stumble> Rebooted. Complete success. Thanks for the help!
nocoolnametom has joined #nixos
USERNAME00 has joined #nixos
MercurialAlchemi has quit [Ping timeout: 240 seconds]
<USERNAME00> How can I make nixos do secure and trusted boot efi? Neither likely do shit but apparently theres a windows shim or something
MercurialAlchemi has joined #nixos
hamishmack has quit [Ping timeout: 276 seconds]
stumble has quit [Ping timeout: 265 seconds]
klntsky has joined #nixos
coot has joined #nixos
xy2_ has quit [Ping timeout: 260 seconds]
coot has quit [Client Quit]
jrolfs has joined #nixos
<judson> Ugh. Very frustrated with the rustfmt situation.
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
<judson> I'd like to manage my rust toolchain with Nix, but "current" rustfmt can't build on Rust stable yet.
bara has quit [Read error: Connection reset by peer]
<judson> I think a nixpkgs expression for rustfmt-preview would require pulling in the Mozilla overlay.
bara has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
<judson> buildRustPackage is pretty slick though.
davidlt has joined #nixos
reinzelmann has joined #nixos
<judson> On the other hand, I think that would be true for any Rocket app (and will likely stay that way.)
<judson> Is there a categorical resistance to getting a rustNightly into nixpkgs?
robstr has joined #nixos
timbod7 has joined #nixos
<USERNAME00> oh shut it
krey has joined #nixos
USERNAME00 has quit [Quit: leaving]
timbod7 has quit [Quit: timbod7]
timbod7 has joined #nixos
timbod7 has left #nixos [#nixos]
xelxebar has joined #nixos
<elvishjerricco> judson: Doesn't the current rust infrastructure in nixpkgs build all of crates.io as a single monolithic derivation? I think that really needs to be addressed
vidbina has quit [Ping timeout: 265 seconds]
<xelxebar> I've spent hours trying to debug what is probably some pebkac problem but I'm stumped. nix-channel --update errors out with "unable to check 'https://nixos.org/channels/nixpkgs-unstable'"
hakujin2 has joined #nixos
hakujin2 has quit [Ping timeout: 265 seconds]
bara has quit [Read error: Connection reset by peer]
<xelxebar> Googling and trawling the wiki haven't been fruitful so far. However, I'm thinking that I screwed up permissions in /nix somewhere, but my sleuthing skills are failing me.
<judson> elvishjerricco, it vendors the crates on a per-package basis. It's not all of crates.io.
bara has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
<elvishjerricco> judson: Oh so it's a monolithic derivation that only builds a certain subset?
bpa has joined #nixos
<judson> Effectively
<elvishjerricco> judson: Something more like haskellPackages, where each package is a single derivation and it's all composed pretty normally would be really nice
<judson> I think that's buying a lot of work to no benefit, though.
<elvishjerricco> I'd say it benefits haskellPackages quite massively...
krey has quit [Ping timeout: 256 seconds]
<judson> Rust packages are like Ruby or NPM: they specify the versions of their libs pretty specifically. So to update a package, you'd need to ensure that the appropriate packages are in nix, and translate the Cargo.lock manually.
<judson> What do you get out of it in Haskell?
<elvishjerricco> judson: Well a lock file is fundamentally the same thing as the massive pinned snapshot that haskellPackages represents. It's just that the haskellPackages snapshot is a massive, curated, agreed-upon snapshot.
<elvishjerricco> The value in it is that you can be much more granular with your dependencies, and you make minimal changes without having to rebuild the compiler. Also, it's super important to be able to write overlays on the haskell package set itself so that you can specify custom package sets on top of haskellPackages
<judson> Except that the lockfile is scoped to the application it's a part of, as opposed to "all of Rust in nix"
bara has quit [Read error: Connection reset by peer]
<elvishjerricco> judson: Right, but that's not meaningfully different
<elvishjerricco> in fact
<elvishjerricco> we do this with nodePackages
bara has joined #nixos
<elvishjerricco> Though I guess no one actually uses it that way... node2nix does things pretty differently
<elvishjerricco> sort of differently*
<elvishjerricco> there's still one derivation per package
bara has quit [Read error: Connection reset by peer]
<judson> ... But node2nix is how nodePackages is generated.
bara has joined #nixos
<elvishjerricco> right I just meant that people tend to run node2nix for their own project, ignoring any package set checked into nixpkgs
xy2_ has joined #nixos
<judson> So... node-packages-v8.nix has 3 versions of glob, for instance. I can see some value to only declaring "glob-7.1.2" once in nix, but not a lot. A new package that needs a fourth version is just going to add it.
<judson> I'm not understanding the motivation. "more granular with your dependencies" - you have to specify a sha256 at the end of the day regardless.
bara has quit [Read error: Connection reset by peer]
<judson> Is "minimal changes" a Haskell thing?
bara has joined #nixos
<fearlessKim[m]> could we have patchShebangs accepts several arguments ? like several folders ? `patchShebangs .` takes too much time
<elvishjerricco> judson: Maybe it's just different in Haskell. Since we have Stackage, we _can_ just check in a massive snapshot of Haskell packages that people can expect to work relatively well. With such a massive snapshot, a monolithic derivation just isn't reasonable. Having to download thousands of haskell packages just to build xmonad would be ridiculous
MichaelRaskin has left #nixos [#nixos]
bara has quit [Read error: Connection reset by peer]
<elvishjerricco> fearlessKim[m]: Why not just call patchShebangs multiple times?
hakujin2 has joined #nixos
bara has joined #nixos
<fearlessKim[m]> elvishjerricco: that's what I do but it's boring :)
hamishmack has joined #nixos
<judson> Right, but wouldn't the packages you'd need for xmonad only be the ones xmonad requires?
<judson> Anyhow, it looks like zimbatim zapped rust beta and nightly ("nixpkgs is for stable software. If you want beta and nightly, use the nixpkgs-mozilla overlay")
bara has quit [Read error: Connection reset by peer]
<judson> er zimbatm did.
bara has joined #nixos
<judson> I guess using the Mozilla overaly might be the thing to do, at least for rustfmt.
<{^_^}> [nixpkgs] @coreyoconnor opened pull request #38501 → virt-manager-qt: 0.52.80 -> 0.57.86. → https://git.io/vxS5z
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
hakujin2 has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #31346 → [RFC] ns-3: init at 28.0 → https://git.io/vF4zZ
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxS5K
<{^_^}> → 863c2908 by @teto: ns-3: init at 28.0
<{^_^}> → 859a96e4 by @Mic92: Merge pull request #31346 from teto/ns3
leat has quit [Ping timeout: 245 seconds]
johnhamelink has joined #nixos
<vaibhavsagar> dfd
<vaibhavsagar> oops, sorry about that
<reinzelmann> Good morning! Is anyone else using qutebrowser and noticed that media playback and google sheets stopped working?
judson has quit [Remote host closed the connection]
rauno has joined #nixos
bara has quit [Read error: Connection reset by peer]
Fare has quit [Ping timeout: 240 seconds]
bara has joined #nixos
tmaekawa has joined #nixos
jluttine has quit [Quit: WeeChat 2.0]
<{^_^}> [nixos-hardware] @Mic92 pushed to master « Update README.org »: https://git.io/vxSdt
jluttine has joined #nixos
leat has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
orivej has joined #nixos
Ivanych has joined #nixos
enterprisey has quit [Remote host closed the connection]
oahong has quit [Ping timeout: 256 seconds]
coot has joined #nixos
oahong has joined #nixos
Fare has joined #nixos
xy2_ has quit [Ping timeout: 265 seconds]
iyzsong has joined #nixos
ertes has quit [Ping timeout: 260 seconds]
jrolfs has quit [Ping timeout: 260 seconds]
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
jrolfs_ has joined #nixos
michas_ has joined #nixos
<{^_^}> [nix] @andrew-d opened pull request #2047 → Use $CPPFLAGS when detecting version of aws-sdk-cpp → https://git.io/vxSbs
<{^_^}> [nixpkgs] @Mic92 opened pull request #38502 → pwndbg: init at 2018-04-06 → https://git.io/vxSbc
root has joined #nixos
bara has quit [Read error: Connection reset by peer]
root is now known as Guest49865
Guest49865 is now known as hyper_ch2
bara has joined #nixos
<hyper_ch2> hmmm, I can't boot nixos anymore... it gets stuck at importing the zpool
<hyper_ch2> from the live iso I can import zpool without issues
<hyper_ch2> any suggestion?
vaninwagen has joined #nixos
jrolfs_ has quit [Ping timeout: 256 seconds]
Fare has quit [Ping timeout: 260 seconds]
vidbina has joined #nixos
jensens has joined #nixos
<LnL> did the force import thing get merged?
michas_ has quit [Ping timeout: 240 seconds]
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
<{^_^}> [nix] @shlevy pushed commit from @andrew-d to master « Use $CPPFLAGS when detecting version of aws-sdk-cpp »: https://git.io/vxSNv
<{^_^}> [nix] @shlevy merged pull request #2047 → Use $CPPFLAGS when detecting version of aws-sdk-cpp → https://git.io/vxSbs
sigmundv has joined #nixos
TonyTheLion has joined #nixos
<hyper_ch2> LnL: doesn't seem to be
<hyper_ch2> and I'm still very against this force import change
knupfer has joined #nixos
<hyper_ch2> the only benefit that the force import change would bring is to make sure, that the pool won't accidentally get imported on two systems
bara has quit [Read error: Connection reset by peer]
spear2 has quit [Ping timeout: 265 seconds]
bara has joined #nixos
<hyper_ch2> however the drawback of not using force import by default is much higher... you can't easily switch between live iso and system anymore... especially on servers it sounds like a bad idea.. not to forget, that there is no actual proper function to do a proper export upon shutting down
<hyper_ch2> ok, just reintalled now and will reboot
bara has quit [Read error: Connection reset by peer]
bennofs has joined #nixos
hyper_ch2 has quit [Quit: Konversation terminated!]
hellrazor has quit [Ping timeout: 276 seconds]
bara has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #38318 → nixos/lxqt: needs upower → https://git.io/vx6Ky
<{^_^}> [nixpkgs] @Mic92 pushed commit from @redfish64 to master « nixos/lxqt: enable upower if config.powerManagement is enabled (#38318) »: https://git.io/vxSNK
hellrazor has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @Mic92 pushed commit from @redfish64 to release-18.03 « nixos/lxqt: enable upower if config.powerManagement is enabled (#38318) »: https://git.io/vxSND
dan_b has joined #nixos
telent has joined #nixos
jrolfs has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #38491 → neofetch: 3.3.0 -> 3.4.0 → https://git.io/vxS27
<{^_^}> [nixpkgs] @dotlambda pushed commit from @konimex to master « neofetch: 3.3.0 -> 3.4.0 (#38491) »: https://git.io/vxSAv
bennofs has quit [Quit: WeeChat 2.0]
<{^_^}> [nixpkgs] @dotlambda merged pull request #38443 → pywal: init at 2.0.5 → https://git.io/vxDGJ
<{^_^}> [nixpkgs] @dotlambda pushed commit from @Fresheyeball to master « pywal: init at 2.0.5 (#38443) »: https://git.io/vxSAm
<fearlessKim[m]> does one need to reboot after updating nix ? nix --version still returns 2.0 even after building nix from master through nix-rebuild
<fearlessKim[m]> nixos-rebuild*
<{^_^}> [nixpkgs] @Chiiruno opened pull request #38503 → terraria-server: 1.3.1.1 -> 1.3.5.3 → https://git.io/vxSAP
tmaekawa has quit [Quit: tmaekawa]
Jetien has joined #nixos
hellrazo1 has joined #nixos
sud0x3 has joined #nixos
hellrazor has quit [Ping timeout: 265 seconds]
leat has quit [Ping timeout: 260 seconds]
goibhniu has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
troydm has quit [Ping timeout: 255 seconds]
troydm has joined #nixos
<manveru> fearlessKim[m]: what should it show instead?
<manveru> 2.0 is what's in 18.03
<fearlessKim[m]> manveru: sometimes you see a -dev or the commit hash after the version number
<manveru> that was when it was still nixUnstable, no?
<fearlessKim[m]> manveru: it builds nix from master
rauno has quit [Ping timeout: 276 seconds]
<fearlessKim[m]> I mean nix/master not nixplgs/master
<fearlessKim[m]> like I can't deploy any VM with nixUnstable because of the memory problem (https://github.com/NixOS/nix/issues/1988) so I wanna try the master version
leat has joined #nixos
rauno has joined #nixos
michas_ has joined #nixos
asuryawanshi has joined #nixos
leat has quit [Ping timeout: 260 seconds]
alexteves has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
<michas__> Hi, I'm setting up vpnc on nixos for the first time. If I read correctly, I simply need to set networking.vpnc.services.name="$config" and the system will connect automatically. How do I connect and disconnect to the VPN manually?
thc202 has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
nick_l has joined #nixos
<nick_l> nixos-option networking.firewall.enable on a NixOps deployed machine doesn't output the NixOps configured configuration. Why not?
hakujin2 has joined #nixos
<nick_l> Is there even way to get the correct answer?
hyper_ch2 has joined #nixos
<hyper_ch2> Mic92: something in latest zfs is broken.... it won't import pool anymore
<hyper_ch2> If I revert to 18.03 it works fine though
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
<Mic92> hyper_ch2: I think I have to blacklist 4.16
freeman42x]NixOS has joined #nixos
<Mic92> 4.14 works fine.
<Mic92> hyper_ch2: if you could confirm that linuxPackages works, but not linuxPackages_latest, I can add a constraint for that.
hakujin2 has quit [Ping timeout: 260 seconds]
<hyper_ch2> I first have to get my notebook to run properly again
<nick_l> hyper_ch2: did it actually break something? Otherwise rebooting a different generation should be enough, right?
asuryawanshi has quit [Remote host closed the connection]
<Mic92> mhm, zfs tests also work fine with the latest kernel...
asuryawanshi has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxShC
<{^_^}> → d7d2ac0a by R. RyanTM: sysbench: 1.0.13 -> 1.0.14
<{^_^}> → 9430efbe by @Mic92: Merge pull request #38500 from r-ryantm/auto-update/sysbench
<{^_^}> [nixpkgs] @Mic92 merged pull request #38500 → sysbench: 1.0.13 -> 1.0.14 → https://git.io/vxSyE
AluisioASG has quit [Ping timeout: 246 seconds]
<nick_l> Mic92: it would be nice to have a feature where in case of zfs failure like this, it would just reboot the previous generation and it would submit an issue to Github.
roberth has joined #nixos
<Mic92> nick_l: this goes to far, I think
<hyper_ch2> nick_l: how would it auto-reboot?
<hyper_ch2> it tries to import the pool for a while.... which fails and then it tries to continue to boot
ma271 has joined #nixos
AluisioASG has joined #nixos
<nick_l> hyper_ch2: simple: presumably at some point it would normally show some error message and stop doing anything. At that point, insert the code to modify the default grub to boot and reboot.
<hyper_ch2> yes, it goes to a screen with some error and options to reboot or trying to continue
<nick_l> hyper_ch2: if you know what to do in advance, then we can better just tell the machine what to do instead, so you don't have to do it manually.
<nick_l> At least, that's my philosophy.
<hyper_ch2> :)
<hyper_ch2> I know in advance that I'll die some day .....
<nick_l> hyper_ch2: pessimist.
<hyper_ch2> just because in some old book, someone came back after a while, doesn't mean the same thing will happen to me ;)
rauno has quit [Remote host closed the connection]
<nick_l> hyper_ch2: no, but perhaps you would actually become a god due to advanced in science.
<nick_l> advances*
<hyper_ch2> there is no od
<hyper_ch2> god
hyper_ch2 has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @peti merged pull request #38496 → amazonka: fix build after hackage update → https://git.io/vxSXw
bara has quit [Read error: Connection reset by peer]
<{^_^}> → 8ea70531 by @jerith666: amazonka: fix build after hackage update
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/vxShN
<{^_^}> → fac2951d by @peti: Merge pull request #38496 from jerith666/amazonka-fix
bara has joined #nixos
<{^_^}> [nixpkgs] @peti merged pull request #38288 → Added ElvishJerricco to GHCJS maintainers → https://git.io/vxK5x
<{^_^}> [nixpkgs] @peti pushed 2 commits to master: https://git.io/vxSj3
<{^_^}> → c6a9e3a9 by @ElvishJerricco: Added ElvishJerricco to GHCJS maintainers
<{^_^}> → 935526e1 by @peti: Merge pull request #38288 from ElvishJerricco/elvishjerricco-ghcjs-maintainer
<fearlessKim[m]> would be nice if nix-shell could like alias vim setup and do the 'set path+=' automatically
<michas__> Ok, I think I understand vpnc now. the module only puts the config file in place. I also need to add vpnc itself and connect using `vpnc name`.
jrolfs_ has joined #nixos
<michas__> If I want to use vpnc as a normal user, is there an offical way to make vpnc setuid root?
<{^_^}> [nixpkgs] @rbvermaa pushed to master « Update create-gce.sh script. Set default option for GCE images to disable host key replacement by service. »: https://git.io/vxSjV
<{^_^}> [nixpkgs] @rbvermaa pushed to release-18.03 « Update create-gce.sh script. Set default option for GCE images to disable host key replacement by service. »: https://git.io/vxSjo
huxx has joined #nixos
<huxx> Heyyy everyone
<huxx> Can anyone help me please
hyper_ch2 has joined #nixos
<hyper_ch2> let's reinstall nixos
<huxx> I am referencing a git repository inside a package
<hyper_ch2> I screwed up beyond help
<huxx> I need to read its contents when fetched, doing a files = stdenv.mkderivation{ ... fetchgit..}, then passing 'files' as argument to another package
bara has quit [Read error: Connection reset by peer]
frankqux has quit [Quit: Lost terminal]
bara has joined #nixos
<huxx> I want to know if 'files' reference the /nix/store/xxxxxxxxxxxxxxxxxx path or not ?
<vaibhavsagar> hyper_ch2: what happened?
<vaibhavsagar> huxx: can you put the whole thing in a gist or an lpaste or something?
ma271 has quit [Ping timeout: 260 seconds]
<nick_l> I think he has zfs on root with a broken grub.
<vaibhavsagar> huxx: I think the answer to your question is yes but I can't say without seeing some working code
<nick_l> hyper_ch2: just because there are no gods now, doesn't mean there can't be in the future ;)
<hyper_ch2> vaibhavsagar: I rolled back the zfs snapshot... but of course /boot is a seperate thing... so entries didn't match up anymore
<{^_^}> [nixpkgs] @matthiasbeyer opened pull request #38504 → Remove maintainership → https://git.io/vx9eG
<vaibhavsagar> :'(
klntsky has quit [Ping timeout: 268 seconds]
michas_ has quit [Ping timeout: 268 seconds]
<hyper_ch2> it's ok
<huxx> vaibhavsagar: dropped it
<nick_l> hyper_ch2: you should just have done nixos-rebuild switch --rollback
ottidmes has joined #nixos
<nick_l> hyper_ch2: if /boot is a separate thing on your setup, that should have fixed it.
bara has quit [Read error: Connection reset by peer]
<hyper_ch2> how could I do nixos-rebuild switch --rollback if it doesn't even boot anymore?
<vaibhavsagar> huxx: seems alright to me, what are you having issues with?
<huxx> vaibhavsagar: I think its because fetchgit is creating a subdirectory
bara has joined #nixos
<vaibhavsagar> huxx: why don't you do an ls -al in your installPhase so you can see what is actually happening?
<hyper_ch2> btw, I like the new stats on the installer
<vaibhavsagar> printf debugging ftw
<vaibhavsagar> hyper_ch2: live usb?
bara has quit [Read error: Connection reset by peer]
<ottidmes> hyper_ch2: LiveCD and chroot into your installation, and then call whatever?
MP2E has quit [Remote host closed the connection]
<hyper_ch2> is there a chance that will also be used for nixos-rebuild ?
<huxx> vaibhavsagar: Will do that
<hyper_ch2> ottidmes: too complicated :)
spear2 has joined #nixos
bara has joined #nixos
<hyper_ch2> why can't grub be on zfs :(
<ottidmes> hyper_ch2: Complicated? Last time I had to do that I could just call --chroot I believe on nixos-install
leat has joined #nixos
<hyper_ch2> ottidmes: as said, too complicated for simple brains like me
<hyper_ch2> I'll remmeber for next time :)
bara has quit [Read error: Connection reset by peer]
<huxx> vaibhavsagar: I don' have any output (using nix 2.0: nix build --debug -f x.nix)
<nick_l> hyper_ch2: it looks like it is technically possible to make it work, it's just not a standard thing to do yet.
<hyper_ch2> nick_l: I tried to but failed miserably
bara has joined #nixos
<nick_l> hyper_ch2: the rollback? That sounds bad. I don't suppose you still have the output?
<hyper_ch2> nick_l: no, grub in zfs
roberth has quit [Quit: Leaving.]
<vaibhavsagar> huxx: that is strange
<nick_l> hyper_ch2: did you actually try to develop on it or just as a user?
<nick_l> hyper_ch2: if you are in a mental state where you need to fix something "right now"
<hyper_ch2> I'm just a simple user
<nick_l> it's unlikely to result in much good.
<nick_l> hyper_ch2: you use NixOS, ZFS, and you are on IRC. That ship has sailed.
<ottidmes> Could someone help me with this error: https://pastebin.com/1TSadJh5 It is caused by talloc.so missing in /nix/store/...-samba-4.7.6/lib/python2.7/site-packackages/talloc.so missing since I updated to 18.03 (I was already using samba 4.7.6). How does `python buildtools/bin/waf build` work, does it copy over *.so files from its buildInputs? The talloc package does have the missing
<ottidmes> lib/python2.7/site-packages/talloc.so, so I am quite confused as someone with very little Python experience and no Python in NixOS experience, on what caused this issue
roberth has joined #nixos
<hyper_ch2> nick_l: I just use it because everyone says I should and just keep whining here until someone takes a pity on me and solves my issue.... so I'm just a simple user
hjst has left #nixos ["out"]
<hyper_ch2> ok, reinstalled... I hope this time kde will work
hyper_ch2 has quit [Remote host closed the connection]
jrolfs_ has quit [Ping timeout: 260 seconds]
civodul has joined #nixos
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
vidbina has quit [Ping timeout: 268 seconds]
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/vx9fB
<{^_^}> → f1d0d601 by @adisbladis: Merge pull request #38504 from matthiasbeyer/remove-maintainership
<{^_^}> → ce1c1e30 by @matthiasbeyer: Remove maintainership
<{^_^}> [nixpkgs] @adisbladis merged pull request #38504 → Remove maintainership → https://git.io/vx9eG
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/9430efbe49d (from 40 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<{^_^}> [nix] @edolstra merged pull request #2040 → document that writeTextFile from Nixpkgs is an alternative to toFile → https://git.io/vxXpx
<{^_^}> [nix] @edolstra pushed 2 commits to master: https://git.io/vx9fK
<{^_^}> → 27e9ce0e by @edolstra: Merge pull request #2040 from erictapen/doc-tofile-writetextfile
<{^_^}> → 045eb844 by @erictapen: document that writeTextFile from Nixpkgs is an alternative to builtins.toFile
nemtudom has joined #nixos
<bennofs[m]> Is there a document explaining the tradeoffs involved in the current python packaging infrastructure? I have lost track of the continuous changes made through PRs
<hyper_ch> so, booted into new install :)
bara has quit [Read error: Connection reset by peer]
bara has joined #nixos
<bennofs[m]> For example, the choice on 'patch python scripts themselves to insert additional site directories` vs 'create a virtualenv-like where the interpreter includes additional packages and patch scripts to use this "wrapped" interpreter'
<bennofs[m]> vs just add stuff to PYTHONPATH with a wrapper before the app runs
<bennofs[m]> i know there are issues with some of these but I have lost track of the edge cases to consider. If there is a summary that would be nice
<Mic92> bennofs[m]: creating a patched interpreter would not work in gdb's case
<Mic92> because gdb is linked against libpython
<bennofs[m]> yeah that's true. I was just trying to understand how it works in normal python apps before I try to understand what's right for gdb
<Mic92> apart from that python.md in nixpkgs should be up to date
shachaf has quit [Ping timeout: 240 seconds]
<bennofs[m]> yeah, but that doesn't explain why other approaches won't work (the other approaches we've tried before, what issues they had)
bara has quit [Read error: Connection reset by peer]
<Mic92> using a wrapped interpreter does not work on macOS
<Mic92> because shebangs are not allowed to be scripts
shachaf has joined #nixos
<Mic92> shebangs are dispatched in libc on macOS whereas in linux the kernel resolves that
bara has joined #nixos
<Mic92> that's why we use wrapped interpreters mainly in ./nixos and and not in nixpkgs itself.
vaninwagen_ has joined #nixos
<bennofs[m]> Mic92: if i understand the current infrastructure well enough, could you not just patch pwndbg like an "application"? that would add a small header to the gdbinit.py that adds the deps to the site
<Mic92> bennofs[m]: that would be an option, but then it is not possible to include gdbinit.py in your .gdbinit
<bennofs[m]> Oh? why not?
<bennofs[m]> You mean, you cannot `import` it?
<Mic92> bennofs[m]: maybe I have not understood, what you mean by patching exactly?
<Mic92> I mean "source ${pwndbg}/.."
<bennofs[m]> the same stuff that happens for python applications
bara has quit [Read error: Connection reset by peer]
<nick_l> During a NixOps deployment I compute a bunch of variabels internally. Is there a concept of output variables like Terraform and other tools have?
<nick_l> variables*
<Mic92> if it pwndbg is only used as a standalone, this should be ok, but is actually a plugin, that can be source as such
vaninwagen has quit [Ping timeout: 268 seconds]
<bennofs[m]> where you've got a `import sys;import site;import functools;sys.argv[0] = '/nix/store/6vplcr9f8rb4vscn83f9pi9hqfbxcnxi-poezio-0.11/bin/poezio';functools.reduce(lambda k, p: site.addsitedir(p, k), [...]` at the top of each script
Jackneill has quit [Read error: Connection reset by peer]
bara has joined #nixos
<nick_l> I want to be able to use the values of those variables (which could for example be in a let block) in other scripts.
Jackneill has joined #nixos
xelxebar has quit [Ping timeout: 276 seconds]
<Mic92> bennofs[m]: this is generated by some setuptools wrapper by nixpkgs. I am not sure, how to reproduce that.
<nick_l> Another way to do this would be if it would be possible to "deploy" to the local file system.
<nemtudom> is it possible to set services.mingetty.autologinUser only on tty1?
<Mic92> nick_l: maybe there is a way, on the other hand there is also this: https://github.com/tweag/terraform-provider-nixos
selaux has joined #nixos
iyzsong has quit [Ping timeout: 240 seconds]
bara has quit [Read error: Connection reset by peer]
pkill9 has joined #nixos
bara has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #36569 → terraform-provider-nixos: init at 0.0.1 → https://git.io/vAxC7
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vx9Up
<{^_^}> → 380dd22f by @grahamc: terraform-provider-nixos: init at 0.0.1
<{^_^}> → e76825a9 by @Mic92: Merge pull request #36569 from grahamc/terraform-provider-nixos
spear2 has quit [Quit: Leaving]
jensens has quit [Remote host closed the connection]
Mateon3 has joined #nixos
rauno has joined #nixos
jensens has joined #nixos
Mateon1 has quit [Ping timeout: 264 seconds]
bara has quit [Read error: Connection reset by peer]
Mateon3 is now known as Mateon1
nemtudom has left #nixos ["Leaving"]
bara has joined #nixos
hakujin2 has joined #nixos
<bennofs[m]> Mic92: do we want the pwndbg gdb to load python packages from `~/.local/python2.7`?
asuryawanshi has quit [Ping timeout: 264 seconds]
<Mic92> bennofs[m]: probably not, but maybe gdb should be able to do so.
hakujin2 has quit [Ping timeout: 265 seconds]
<nick_l> Is there a version of stdenv.shell which resolves to sh?
selaux has quit [Quit: selaux]
<bennofs[m]> Mic92: need to set PYTHONNOUSERSITE='true' in that case in the wrapper
<Mic92> bennofs[m]: the question is, does is hurt? has ~/.local prededence over the injected paths?
oahong has quit [Ping timeout: 264 seconds]
<bennofs[m]> Mic92: yeah should not hurt. it has precendence right now since you use `.extend`, but if you prepend it should be fine
<Mic92> because there might be valid use cases to load libraries at runtime
kerrhau has quit [Ping timeout: 260 seconds]
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/ff5baea979b (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
oahong has joined #nixos
<Mic92> I changed the order
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vx9kP
<{^_^}> → 2ed8e7a0 by @Mic92: pwndbg: init at 2018-04-06
<{^_^}> → 315f06df by @Mic92: Merge pull request #38502 from Mic92/pwndbg
<{^_^}> [nixpkgs] @Mic92 merged pull request #38502 → pwndbg: init at 2018-04-06 → https://git.io/vxSbc
<nick_l> While evaluting stdenv.__bootPackages, I get: { "2048-in-terminal" = error: anonymous function at /nix/store/pdzv10yplcy50wzssgasxxpmflb48sqv-nixos-17.09.2182.7f6f0c49f0/nixos/pkgs/build-support/fetchurl/boot.nix:5:1 called with unexpected argument ‘meta’, at /nix/store/pdzv10yplcy50wzssgasxxpmflb48sqv-nixos-17.09.2182.7f6f0c49f0/nixos/pkgs/build-support/fetchzip/default.nix:16:25 «derivation
<nick_l> evaluating*
<{^_^}> [nixos-hardware] @yegortimoshenko pushed 0 commits to 20180406.101256/builtins.fetchGit: https://git.io/vx9k9
<ertes-w> is there something like 'cpp -M' and/or 'cpp -MM' for nix?
bara has quit [Remote host closed the connection]
<ertes-w> to generate Makefile dependencies
<{^_^}> [nixos-hardware] @yegortimoshenko pushed 0 commits to master: https://git.io/vx9kd
<nick_l> Mic92: that terraform integration is certainly interesting and my impression is the same regarding reducing the scope of nixops as far possible. Do you work for the company that made it?
<{^_^}> [nixos-hardware] @yegortimoshenko opened pull request #54 → Add builtins.fetchGit to README.org → https://git.io/vx9kp
<Mic92> nick_l: no. gchristensen and zimbatm do
<nick_l> Mic92: gchristensen stopped working at Tumblr?
<hyper_ch> Mic92: upgrading again to nixos unstable
emilis has joined #nixos
<Mic92> hyper_ch: let me know, if you can spot the root cause. Appearently this is related to hardware.
<gchristensen> Tweag.io is the company
<hyper_ch> Mic92: what makes you think it's related to hardware?
<gchristensen> Oh you weren't along which company =)
<Mic92> hyper_ch: because it did not break tests
<Mic92> which run in VMs
<nick_l> gchristensen: who had the insight to fund that?
<hyper_ch> Mic92: maybe you just did the tests wrong :)
asuryawanshi has joined #nixos
<nick_l> gchristensen: I built my own bridge between Terraform and NixOps, but I can imagine your version is less of a hack.
<Mic92> hyper_ch: could be, maybe they do not boot from that.
<hyper_ch> it's native encrypted root zfs here
<Mic92> hyper_ch: I have the same, but default kernel
<Mic92> so my suspection is, it breaks on 4.17
<Mic92> *416
<hyper_ch> could be
<hyper_ch> I wonder if unstable (not small) also uses 4.17
<{^_^}> [nixpkgs] @Synthetica9 opened pull request #38505 → atom : 1.25.0 -> 1.25.1 → https://git.io/vx9IP
periklis has joined #nixos
<Mic92> it uses 4.14, and 4.16 if you changed to _latest kernel
<hyper_ch> I do use latest
knupfer has quit [Remote host closed the connection]
knupfer has joined #nixos
Synthetica has joined #nixos
<hyper_ch> rebooting into unstable now
huxx has quit [Ping timeout: 260 seconds]
scribbler has quit [Ping timeout: 276 seconds]
leat has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @bennofs pushed to master « pwndbg: fix wrapper mistake »: https://git.io/vx9LO
jensens has quit [Ping timeout: 264 seconds]
<pkill9> which package is libXss in?
<Mic92> nix-shell -p nix-index --command 'nix-locate libXss' ... xlibs.libXScrnSaver.out 0 s /nix/store/xi0y08ds3va7s94h1ll8yhgk4fcvvbpk-libXScrnSaver-1.2.2/lib/libXss.so
<Mic92> do we have irc bot that call nix-locate?
bpa has quit [Remote host closed the connection]
<pkill9> thanks :)
nyberg has quit [Quit: WeeChat 2.0.1]
<bennofs[m]> Why does python add sitepackages after usersitepackages? That seems backwards to me, usersitepackages should only augment not override system packages...
<Mic92> I can see why
<nick_l> Mic92: That commands returns for me: error: reading from the database at ... failed. This may be caused by a corrupt or missing database, try (re)running `nix-index`` to generate the database.
<Mic92> if the administrator installs old version of stuff
ma271 has joined #nixos
<nick_l> bennofs[m]: I suppose that is your program that is failing on my machine.
ma271 has quit [Client Quit]
Wharncliffe has joined #nixos
ma27 has joined #nixos
<nick_l> I think it's just that Mic92's command was incomplete.
<bennofs[m]> yeah you need to run nix-index before that
<nick_l> bennofs[m]: the error message could be better, though. Since not even its parent directory exists.
<nick_l> bennofs[m]: I think it would also be better if regardless of existing context, nix-shell -p nix-index --command 'nix-locate libXss' would work.
wangoe has joined #nixos
bkchr has joined #nixos
<bennofs[m]> you're right, I need to improve the error handling. It's been on my todo list for a while :)
<nick_l> bennofs[m]: it could say something like "Hey, you don't have an index yet, we are now creating one, press Control-c to cancel this process. Your answer will come in a minute or so.".
<ertes-w> trying to build a docker image (on nixos-unstable) i'm getting this: tarsum.go:8:2: code in directory /build/tarsum/src/tarsum expects import "github.com/docker/docker/pkg/tarsum"
<ertes-w> any ideas?
<bkchr> Hi, who is maintaining the kernel packages?
<Mic92> ertes-w: was this related to an new go version? I think we had fixed a similar issue a while ago
vidbina has joined #nixos
<ertes-w> Mic92: i don't know… the buildImage stuff is a black box to me
<ertes-w> it's the first time i'm running into an issue with it
hakujin2 has joined #nixos
elasticdog has quit [Ping timeout: 268 seconds]
<Mic92> ertes-w: maybe all you need is a channel upgrade, if the channel has progressed to this?
elasticdog has joined #nixos
mbrock has quit [Disconnected by services]
vidbina has quit [Ping timeout: 260 seconds]
hakujin2 has quit [Ping timeout: 256 seconds]
humanoyd has joined #nixos
Wharncliffe has quit [Quit: Lost terminal]
kai_w has joined #nixos
<{^_^}> [nix] @edolstra merged pull request #2036 → Make the TTL for disk cache configurable → https://git.io/vx6F3
<{^_^}> [nix] @edolstra pushed 6 commits to master: https://git.io/vx9tx
<{^_^}> → 2855c3d9 by @AmineChikhaoui: Make the TTL for disk cache configurable, we can now completely disable
<{^_^}> → 86930ed4 by @AmineChikhaoui: add documentation for the local disk cache TTL config
<{^_^}> → 33b08899 by @AmineChikhaoui: re-order the options using the alphabetical order and improve the example in the positive lookup case
<{^_^}> [nixpkgs] @Mic92 merged pull request #38505 → atom : 1.25.0 -> 1.25.1 → https://git.io/vx9IP
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vx9qk
<{^_^}> → e7a352f9 by @Synthetica9: atom : 1.25.0 -> 1.25.1
<{^_^}> → 3c5697b7 by @Mic92: Merge pull request #38505 from Synthetica9/origin/atom-125
<{^_^}> [nixpkgs] @Mic92 pushed commit from @Synthetica9 to release-18.03 « atom : 1.25.0 -> 1.25.1 »: https://git.io/vx9qt
Wharncliffe has joined #nixos
<hyper_ch> Mic92: Nixos Unstable works, Nixos Unstalbe Small doesn't
<hyper_ch> Unstable uses 4.15 kernel
<Mic92> hyper_ch: before the upgrade the zfs unstable module, was incompatible with 4.16
<Mic92> I will blacklist 4.16 for now
<hyper_ch> before which upgrade?
<Mic92> zfsUnstable
<Mic92> that was the motivation for the upgrade in the first place
<hyper_ch> yes, unstable small uses 4.16 here which causes the problem
leat has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed to master « zfsUnstable: mark linux 4.16 as broken »: https://git.io/vx9mq
stefan___ has joined #nixos
stefan___ is now known as selaux
<{^_^}> [nixpkgs] @Mic92 pushed to master « zfsUnstable: mark correct zfs version as incompatible »: https://git.io/vx9m8
<{^_^}> [nixpkgs] @Mic92 pushed to release-18.03 « zfsUnstable: mark correct zfs version as incompatible »: https://git.io/vx9m0
<Mic92> done
<Mic92> I don't have enough information to write a proper upstream bug report though
<Mic92> So I will resort to enterprise waiting here.
iyzsong has joined #nixos
sud0x3 has quit [Ping timeout: 256 seconds]
thblt has joined #nixos
<hyper_ch> Mic92: anything I can to do help debug this for filing upstream bug?
<Mic92> hyper_ch: I think it hangs somewhere while loading the module, because /dev/zfs is not created.
mahalel_ has joined #nixos
mahalel_ has left #nixos [#nixos]
kiloreux has joined #nixos
<Mic92> hyper_ch: you can add boot.debug1 as a boot parameter in grub or systemd-boot and play with the zfs command line
<ertes-w> Mic92: nope, that didn't help
<hyper_ch> Mic92: I'm asking in #zfs... they seem to have an idea
<ertes-w> is there a way to maintain channel profiles in arbitrary paths?
<ertes-w> % nix-channel -p channel --update # something like this
wangoe has quit [Quit: WeeChat 1.9.1]
humanoyd has quit [Ping timeout: 276 seconds]
xcmw has joined #nixos
<kiloreux> How can I install nix in a directory different than /nix ?
<ottidmes> ertes-w: Why don't you just stop using nix-channel and maintain a nixpkgs checkout yourself? Just point to it in your NIX_PATH via nixpkgs=/your/checkout, you can set this env var via nix.nixPath
<avn> kiloreux: in theory, but you can't use caches then, and idk what errors can come out
<hyper_ch> Mic92: adding that parameter through hardware-configuration.nix?
<hyper_ch> or what does that do?
<avn> kiloreux: but if you about physical placement (not logical), you can use bind-mount
<Mic92> hyper_ch: either boot.kernelParams through at configuration time or at boot time by hitting tab in the bootloader
<kiloreux> avn, I'm basically trying to mount a docker container and copy content from my nix image to that directory, as you can guess my nix image already has /nix so I have to copy to a different directory.
<hyper_ch> Mic92: is there anything bad adding this permanently to boot.kernelParams?
<Mic92> hyper_ch: yes. you would get an interactive shell after every boot. but you have an os with a rollback mechanism
<ertes-w> ottidmes: that's what i was thinking, but i can only do that if there is a tag or branch that is automatically advanced by hydra
<Mic92> faster!
<avn> kiloreux: can you explain, what you try to do? Looks very like XY problem.
<ertes-w> ah, perfect
<Mic92> Since I use nix, I use nixpkgs checkout instead of channels
<ottidmes> Mic92: Darnit, should not have double checked :P
<ertes-w> thanks Mic92 and ottidmes – alphabetically =P
hakujin2 has joined #nixos
<kiloreux> avn, so basically I have built a docker image that contains all my nix binaries. Now I need to copy the contents of that directory to another one, because I can't use that image in production. It's there just to contain the binaries. So I want to mount a volume inside the image (let's say /app) copy all contents of /nix to /app.
<kiloreux> And then I will have to copy from /app to /nix again (when the image is unmounted). Which seems stupid.
aarvar has quit [Ping timeout: 240 seconds]
<avn> why you can't use image in production? Why not use any of dockerTools (or how they named)
hakujin2 has quit [Ping timeout: 276 seconds]
<LnL> does that support adding a pure layer ontop of an existing image?
Fare has joined #nixos
<kiloreux> Well I am doing this to avoid having a huge images in production. That's why i try to copy the content to a volume (using kubernetes by the way)
knupfer has quit [Ping timeout: 265 seconds]
humanoyd has joined #nixos
<avn> I am not best person, to ask about dockerTools, but a lot of ppl here used it.
heatm1s3r has joined #nixos
<ertes-w> the -small channels are just the regular ones, but with fewer tests, right?
asuryawanshi has quit [Ping timeout: 265 seconds]
JosW has joined #nixos
<ottidmes> ertes-w: "Small channels (nixos-18.03-small, nixos-unstable-small) are identical to large channels, but contain fewer binaries. This means they update faster, but require more to be built from source."
<ertes-w> ah, thanks
<ertes-w> it also means that x-small might advance more quickly than x, right?
<{^_^}> [nixpkgs] @dotlambda pushed 9 commits to python-unstable: https://git.io/vx9sz
<{^_^}> → 600d1c8b by @dotlambda: python: keyring: 12.0.0 -> 12.0.1
<{^_^}> → 7ed35847 by @dotlambda: home-assistant: pin async-timeout version
<{^_^}> → 44e6dd2d by @dotlambda: python: aiohttp: 3.1.1 -> 3.1.2
<ottidmes> ertes-w: Correct, it almost always advances more quickly
<bkchr> Mic92: Any idea what did break rustc on aarch64? https://hydra.nixos.org/build/71495028/nixlog/2 I don't have any idea what is happening.
<Dezgeg> I think it's just spurious test failures
<nick_l> Is there a script to install and uninstall Nix on the last two most recent versions of Mac OSX without user interaction (perhaps the input of a password is OK)?
<ertes-w> ok, thanks
<nick_l> I know there have been scripts, but last time I checked those always had users complaining about how it "broke their system".
<bkchr> Dezgeg: Hmm, but it worked before.
<hyper_ch> Mic92: ok, that didn't work.... I got immediately error that something wrong with root and I could press buttons to reboot or interactive shell and stuff... but it didn't accept any button entries
<ertes-w> why doesn't hydra just maintain those branches in the main repo?
<Dezgeg> I have a feeling it started failing after the 1.24 upgrade, but not sure
<bkchr> Dezgeg: No, I know that Mic92 tested it and everything worked.
<Dezgeg> yes but the failures are spurious
<bkchr> Hydra says that between these two commits https://github.com/NixOS/nixpkgs/commit/4471faf0b8ca358e6da7e72412b9c9cd54e8caae https://github.com/NixOS/nixpkgs/commit/1f3e74f36272f2a508373a41051c74cf0318667e which are the same, but have different hashes, it failed
Wharncliffe has quit [Quit: Lost terminal]
<hyper_ch> Mic92: so, as for kernel issues: I get this: https://images.sjau.ch/img/8a13fe78.jpg and about 10min later I get https://images.sjau.ch/img/fe15e223.jpg
<Dezgeg> it's always "error: Error during translation/LLVM phase." which happens one or two times and always on different tests
psychic1 has joined #nixos
psychic1 has quit [Client Quit]
<bkchr> Dezgeg: okay, so should we disable the tests on aarch64?
<Dezgeg> I suppose we should open an upstream ticket as well, but yeah I see no other solution for now
fendor has joined #nixos
<bkchr> Dezgeg: Maybe we should update to 1.25 and see if it is already fixed. Do you have some powerfull machine to test aarch64 builds? I only have raspberry pi and that takes ages to compile and test rust
<{^_^}> [nixpkgs] @geistesk opened pull request #38508 → platformio: 3.5.1 -> 3.5.2 → https://git.io/vx9GD
<nick_l> Just like there is python27.withPackages, is there something similar for Ruby?
<LnL> there's a wrappedRuby thing
<avn> Folks, I need a hint: `cycle detected in the references of '/nix/store/gjrwic6s0jq60wwi3dvjsxlqkvrypy4r-heimdal-7.5.0-bin' from '/nix/store/jybjqmkxyzi26jqf7gp9fi1cxvh47hcg-heimdal-7.5.0'
<hyper_ch> Mic92: it seems zfs behaviour changed: https://github.com/zfsonlinux/zfs/pull/7287
leat has quit [Read error: Connection reset by peer]
<avn> How to debug it, to see exact reference (I even know file, but not context)
leat has joined #nixos
<nick_l> The documentation for Ruby in the manual could use some work, because it says it has examples, but it doesn't actually have a full example for all the discussed different features. I.e., something like run the following command and you actually see something work.
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
klntsky has joined #nixos
asuryawanshi has joined #nixos
JosW has quit [Ping timeout: 245 seconds]
JosW has joined #nixos
<hyper_ch> still, the stage-1-init.sh script does do modprobe zfs
<JosW> Can anyone tell me howto upgrade to 18.03?
<JosW> added the channel but I stay on 17.03
<goibhniu> hi JosW did you add the channel to your root profile?
<JosW> yes
<goibhniu> JosW: and then you ran `nixos-rebuild switch --upgrade`?
<JosW> yes and a reboot
<JosW> channel --list still has 17.09
<hyper_ch> from 17.03 to 18.03 I wouldn't use "switch" but "boot"
<{^_^}> [nixpkgs] @rbvermaa pushed to release-18.03 « julia: remove wrapper from julia binaries, in stead »: https://git.io/vx9na
<goibhniu> JosW: what's in /root/.nix-channels?
iyzsong has quit [Ping timeout: 256 seconds]
<hyper_ch> as root: nix-channel --add https://nixos.org/channels/nixos-18.03 nixos
<{^_^}> [nixpkgs] @rbvermaa pushed to master « julia: remove wrapper from julia binaries, in stead »: https://git.io/vx9nr
<JosW> arrrch i have nix channel and not nix-channel ....
<JosW> there we go :)
xcmw has joined #nixos
Jetien has quit [Remote host closed the connection]
<JosW> building nix gives a warning unknown setting signed-binary but it keeps going
<JosW> saw that mentioned in here yesterday also
<ottidmes> JosW: You can safely ignore it, that options got replaced by require-sigs in 2.0, which is on by default
<ottidmes> JosW: in Nix 2.0
<JosW> Ok thanks, will see how far this goes. If all stays well will try a dualboot Windows10
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reinzelmann has quit [Quit: Leaving]
Rusty1_ has joined #nixos
coot has quit [Quit: coot]
iyzsong has joined #nixos
hiroshi has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
ShalokShalom3 has joined #nixos
<ShalokShalom3> hi there
<ShalokShalom3> i read you lack a decent installer?
<ShalokShalom3> are you aware about Calamares?
<ShalokShalom3> its designed to be distro agnostic
rauno has quit [Remote host closed the connection]
<tilpner> Even if there was an excellent NixOS installer, there is nothing to hide Nix afterwards
<phreedom> I guess it's more about initial partitioning and looking pretty
<phreedom> because yes, you can't easily hide nix :)
<tilpner> The difficulty in installing NixOS comes from knowing how to partition your drives and changing your nixos-config
<Dezgeg> I think someone already was working on a calamares-based installer, but I cannot remember who
<{^_^}> [nixos-homepage] @ShalokShalom opened pull request #204 → add link to online package viewer → https://git.io/vx9Wn
<tilpner> It could even be considered a little dishonest if NixOS came with a shiny installer, and then dropped the user into a Nix + CLI workflow
<ShalokShalom3> do you know that the online package viewer shows [object Object] instead of the maintainers?
<ShalokShalom3> tilpner: its one first step
<Dezgeg> yeah, I wouldn't create a super-shiny installer myself either, just something that has a partitioner, runs nixos-generate-config and leaves the rest to the user
vaninwagen_ has quit [Quit: WeeChat 1.9.1]
vaninwagen has joined #nixos
<tilpner> True. With something like nixui and a few preset profiles, it could work well without never using Nix or the CLI
<tilpner> *ever using
<{^_^}> [nixpkgs] @dotlambda pushed 3 commits to python-unstable: https://git.io/vx9Wi
<{^_^}> → 479c99e3 by @dotlambda: mitmproxy: 3.0.2 -> 3.0.4
<{^_^}> → 650c3619 by @dotlambda: python.pkgs.pyperclip: move expression
<{^_^}> → 96a28e9a by @dotlambda: python: pyperclip: 1.5.27 -> 1.6.0
<ShalokShalom3> Dezgeg: even that would take longer as implementing the nix package manager in Cala
<ShalokShalom3> it took openmandriva a few days
krey has joined #nixos
<ShalokShalom3> and we use this installer since couple of years
<ShalokShalom3> (KaOS)
<Dezgeg> yes, I'm sure you could use the calamares partitioner here
scribbler has joined #nixos
<ShalokShalom3> you strictly avoid user friendlyness even if it costs more effort?
<ShalokShalom3> to leave keyboard setup, locale and so on in?
<phreedom> not really, you just have to undertand that nixos in general is hard to grasp even for a regular dev
<phreedom> it's really different
<ShalokShalom3> well
<ShalokShalom3> change this?
<manveru> ShalokShalom3: i tried making a nixos installer with calamares :)
<ShalokShalom3> no reason to block people on purpose
<ShalokShalom3> manveru: fine
<phreedom> so some things simply don't map well to gui. the configuration language is turing-complete
<ShalokShalom3> well, thats fine
<Dezgeg> yeah, I guess you could generate some things to the configuration.nix based on gui inputs
<ShalokShalom3> :)
<manveru> ShalokShalom3: so we got a calamares package for it, but someone needs to rewrite some of the default C++ code to make a configuration.nix instead of executing actions itself
<etu[m]> The big treshold to even run NixOS is not the installer :p
<phreedom> I can see how you can make a gui installer that might occasionally work, but the moment the user has to tweak something, they're back to cli
<ShalokShalom3> well, thats fine
<ShalokShalom3> step by step
logzet has joined #nixos
<phreedom> back to cli in a rather hardcore way that is. almost having to code :)
<ShalokShalom3> nobody requires you to offer a full gui customizable os from day one
<ShalokShalom3> yeah, i see
<ShalokShalom3> this is, how it is
lord| has quit [Quit: WeeChat 2.1]
<ShalokShalom3> i just dont know how "it is difficult today" is a justification for "we need to keep it that way"
<ShalokShalom3> it may not appeal to everyone
<ShalokShalom3> and you still can announce it (Nix) as something for professionals
xcmw has joined #nixos
<ShalokShalom3> manveru: how is your experience?
scribbler has quit [Ping timeout: 276 seconds]
<manveru> experience with what?
<Dezgeg> I guess the hard part is, once you've have the user go through things like partitioning, timezone selection etc., and made their custom modifications to the generated config file, what do do if the user realizes he made a mistake needs to say re-do the partitioning
<goibhniu> it wouldn't be crazy to have a shiny installer, with a set of packages and configuration for a particular use case
<phreedom> it's not so much about appeal. some things are just complex and they can't be simplified further without a drastic change in what they are. like you can't make a tank look like a sports car without some fundamental compromises
<Dezgeg> without throwing out all the changes they made to the configuration file
<goibhniu> something like musnix
<goibhniu> at least upgrades would be easy, and you'd get rollbacks
<phreedom> it's not because tank manufacturers hate their customers or want to keep it this way
<phreedom> nixos has the highest barrier to entry among the distros that actually boot and work afaik
<TimePath> While the nix language might be Turing complete, there is the option to import a json file as system configuration
<goibhniu> I don't think NixOS is all that hard (I don't even know much of the nix language and I've been using it for ~9 years)
<phreedom> it is hard in comparison to other distros. I'm not saying you have to be a genius to use
<phreedom> although advanced use cases require some skills
<phreedom> basically, if you want some features, you're going to get some extra complexity as a side-effect :/
<goibhniu> compared to the amount of trouble I had maintaining debian, ubuntu, mandriva and gentoo, I feel it's a better experience
xcmw has quit [Ping timeout: 264 seconds]
<phreedom> yes, but this is a long-term gain
<ShalokShalom3> manveru: With Calamares
<phreedom> you pay up-front by learning complex stuff and then it just works
sud0x3 has joined #nixos
<ShalokShalom3> I think using the nix package manager on the current os is an excellent way to get into NixOS
<ShalokShalom3> this is what i am aiming to do now
<manveru> ShalokShalom3: it's alright, although i don't like the way it's configured all over the system, or that they split their modules into C++ and Python ones...
<ShalokShalom3> phreedom: i thought nix is side-effect free? :P
<phreedom> also, it's kinda hard to see the things from the PoV of the user, after you've been a core contributor or an advanced user for many years
<ShalokShalom3> manveru: yeah, this is an often repeated critic
<ShalokShalom3> they really should have thought about this approach
<goibhniu> I don't think you really need to know that much though. How to search for package names and add them to systemPackages is all you need as a desktop user IMO
<ShalokShalom3> while this was the decision of the original maintainer/creator
jensens has joined #nixos
<ShalokShalom3> phreedom: yeah, i see this
<phreedom> ShalokShalom3: I didn't get the joke :'(
<manveru> ShalokShalom3: so i'm looking into https://github.com/elementary/installer now, since i have more of a chance to learn Vala than C++
<ShalokShalom3> which joke?
<ShalokShalom3> xD
<phreedom> <ShalokShalom3> phreedom: i thought nix is side-effect free? :P
Synthetica has quit [Quit: Connection closed for inactivity]
<ShalokShalom3> ah i see
<ShalokShalom3> since nix is declarative/functional?
<phreedom> nix does write to the nix store ;)
<ShalokShalom3> manveru just did the joke :P
chimay has joined #nixos
<goibhniu> I know some people have worked on web based installers. That seems like a great approach to me, since you could then also use it for deploying servers, building RPi images etc.
<phreedom> so, I really have no idea how much it can help a typical user. I can see how example configs help a lot, and how general setups being packaged helps a lot, virtual-appliance style. but whether we can/are ready to take the next step, towards just a list of checkboxes is an open question.
<goibhniu> ShalokShalom3: does calamares have a web based interface option?
<manveru> yeah, just that partitioning in a web based installer is super hard
<manveru> also recognizing keyboard layouts and such
<manveru> i tried implement them :)
<goibhniu> :D
throwboy has joined #nixos
Jetien has joined #nixos
ShalokShalom3 has left #nixos ["Konversation terminated!"]
jrolfs_ has joined #nixos
<throwboy> I just looked at the nixpkgs repo and noticed that nixUnstable currently just points to nixStable. Is this just because nix 2.0 has come out so recently?
blankhart has quit [Ping timeout: 264 seconds]
ShalokShalom1 has joined #nixos
<Jetien> Hi, I have a nixops problem: I've added a custom derivation in to environment.systemPackages, but when I deploy the package isn't there, not even in the nix store. I can build the derivation just fine, and other custom packages in environment.systemPackges show up on the deployed system. What could be the issue?
<ShalokShalom1> siduction just gave up their web based installer
<ShalokShalom1> for cala
<phreedom> throwboy: probably. there are no hard rules what nixunstable should point to in general other than it should be at least as fresh as stable, as opposed to being a broken version :)
<ShalokShalom1> do you know about the issue with the packager viewer?
<ShalokShalom1> maintainers get shown as [object Object]
<phreedom> Jetien: you'd have to show us the relevant parts of the config
hyper_ch has quit [Read error: Connection reset by peer]
<ShalokShalom1> ➜ ~ nix-env -iA nixos.emacs
<ShalokShalom1> error: attribute 'nixos' in selection path 'nixos.emacs' not found
hyper_ch has joined #nixos
<ShalokShalom1> why?
<ShalokShalom1> fresh installed
<manveru> nixos channel is missing
<ShalokShalom1> i run the command which is shown after the install
<ShalokShalom1> how that?
jrolfs has quit [Ping timeout: 276 seconds]
<manveru> `sudo nix-channel --list`
<ShalokShalom1> then installation instructions are missing
ryantm has quit [Ping timeout: 256 seconds]
<manveru> you can fix it with `sudo nix-channel --add https://nixos.org/channels/nixos-18.03 nixos && sudo nix-channel --update`
<ShalokShalom1> manveru: thy, it shows nothing
<ShalokShalom1> thanks
<ShalokShalom1> consider to put this in the instructions of the shell script?
<ShalokShalom1> warning: the group 'nixbld' specified in 'build-users-group' does not exist
<ShalokShalom1> :/
<ShalokShalom1> did you ever tested the installation of another OS as NixOS?
<manveru> you can ignore that warning too :)
<ShalokShalom1> aha, ok
<ShalokShalom1> error: program '/nix/store/6p2gambjac7xdkd2a7w1dsxdk1q5cq4d-nix-2.0/bin/nix-env' failed with exit code 1
jrolfs_ has quit [Ping timeout: 264 seconds]
<Dezgeg> in non-nixos you need to run nix-env -iA nixpkgs.emacs
<Dezgeg> and don't use sudo
<manveru> ah
<manveru> yeah...
<manveru> also probably not the nixos channel
<ShalokShalom1> thanks ^^
<ShalokShalom1> manveru: it works
<ShalokShalom1> and your command failed
<ShalokShalom1> so the command of Dezgeg obviously would have worked out of the box
<throwboy> what is the syntax for running a binary that is not installed in the system/user env and currently only lives in the nix store?
scribbler has joined #nixos
<goibhniu> throwboy: you can run it from the store directly
<throwboy> like {pkgs.package}/bin/binary in nix expressions
<ShalokShalom1> Dezgeg: Can you detect the OS in the browser?
<ShalokShalom1> i guess so
<ShalokShalom1> this would allow you to customize the command
<manveru> throwboy: `nix run nixpkgs.hello -c hello` for example?
<Dezgeg> I guess in nix 2.0 you could write 'nix install nixpkgs.emacs' in both NixOS but non-NixOS
<throwboy> manveru: yes, exactly that, I think
<Dezgeg> but I have not tried the nix 2.0 commands yet, so not sure
<hyper_ch> hmmm, anyone can do me a favour?
<manveru> Dezgeg: there's no `nix install` yet
<manveru> anw, got meetings now, bbl :)
<ShalokShalom1> also no install command here in 2.0
<ShalokShalom1> hyper_ch: hnn?
jperras has joined #nixos
<Dezgeg> oh, it was only planned, not implemented yet
<hyper_ch> ShalokShalom1: is the website https://www.pathofexile.com working for you? I can ping it just fine but can't connect through the browser to it
hakujin2 has joined #nixos
<throwboy> manveru: yes that was indeed exactly what I needed, thank you
<ShalokShalom1> yes, it shows up
szicari has joined #nixos
<hyper_ch> ShalokShalom1: why isn't it working for me then
<ShalokShalom1> idk?
scribbler has quit [Ping timeout: 245 seconds]
<ShalokShalom1> i use FF59
<throwboy> hyper_ch: works for me, but I'm currently on a windows machine
<ShalokShalom1> hyper_ch: throw the cookies away
<ShalokShalom1> try in anonymous mode and with another browserr
<hyper_ch> neither my gaming notebook nor my work notebook can open it
<ShalokShalom1> firewall?
<hyper_ch> ShalokShalom1: nope, no firewall
<Dezgeg> location-based cdn borked?
<throwboy> hyper_ch: maybe it's region-blocked
<ShalokShalom1> you can try tor
<hyper_ch> throwboy: no, it worked yesterday and the years before
<Dezgeg> IPv6 problems?
<hyper_ch> I don't think I'm using ipv6
<Jetien> phreedom: thanks! https://pastebin.com/jvrcyAeQ - The second snippet is the derivation in question.
<hyper_ch> ipv6 on the windows gaming notebook is disabled
hakujin2 has quit [Ping timeout: 245 seconds]
zybell_ has quit [Quit: Leaving]
<hyper_ch> ShalokShalom1: what ip do you ping to for pathofexile.com ?
zybell_ has joined #nixos
<Jetien> phreedom: <apkgs> is our own package collection under which "foobar" resides
<ShalokShalom1> hyper_ch: i opened it in the browser
<ShalokShalom1> no ping
<hyper_ch> ShalokShalom1: can you ping it for the ip?
<ShalokShalom1> 23.246.201.124
jrolfs has joined #nixos
<hyper_ch> same for me
jrolfs_ has joined #nixos
<ShalokShalom1> cookies?
<hyper_ch> "this site can't be reached" "took too long to respond"
<ShalokShalom1> well, if both for two machines...
<ShalokShalom1> yeah, true
<hyper_ch> weird
kai_w has quit [Quit: kai_w]
markus1199 has quit [Ping timeout: 260 seconds]
ma27 has quit [Ping timeout: 260 seconds]
<hyper_ch> what's weird, when I ping it, all pings use exactely 192ms
<zybell_> ip blocking by state?
<hyper_ch> zybell_: shouldn't be
<hyper_ch> worked just fine yesterday and the last few years
<zybell_> shouldn't!
<ShalokShalom1> try tor
markus1189 has joined #nixos
<ShalokShalom1> my ping times are different
ma27 has joined #nixos
<zybell_> 192ms looks like an ISP issue.
<hyper_ch> contacting isp now
<goibhniu> hyper_ch: did you try restarting nscd?
<hyper_ch> goibhniu: doesn't work on windows and linux
<goibhniu> ah
<hyper_ch> also, notebook was just freshly started
<hyper_ch> (not sure if nscd survives reboots though)
<ShalokShalom1> there is also no man page shipped?
<zybell_> can't have anything to do with nscd, IP match
<ShalokShalom1> one output suggested to use man nix, which is not there :)
leat has quit [Ping timeout: 264 seconds]
jrolfs has quit [Ping timeout: 240 seconds]
<ottidmes> ShalokShalom1: Use nix --help for now, most other nix binaries do have a manpage
<ShalokShalom1> ok, thanks
<ShalokShalom1> the line goes: For full documentation, run 'man nix' or 'man nix-<COMMAND>'.
<ShalokShalom1> it appears in nix --help
<ShalokShalom1> thy
<hyper_ch> goibhniu: zybell_: isp said there's some routing issue :(
<goibhniu> hyper_ch: as a workaround, I guess you can add it to your hosts file
<nick_l> Looking at https://github.com/manveru/bundix/issues, it seems this method of packaging ruby should never have been a part of NixOS, since it fails on anything but the simplests inputs.
<hyper_ch> goibhniu: how would that help?
asuryawanshi has quit [Ping timeout: 260 seconds]
<goibhniu> sorry, I guess I don't understand the problem
<hyper_ch> isp told me that there's package loss of more than 60%
<hyper_ch> goibhniu: it's ok :) thx though
xcmw has joined #nixos
szicari has quit [Quit: szicari]
<ottidmes> ShalokShalom1: Nix 2.0 has been in development for a long time, and from what I gathered they just decided it was stable enough to try and bundle it with 18.03, the upside is that we now can use the fancy new stuff from nix 2.0, but the downside is that not everything was quite yet in the state you expect for a final release, such as the missing manpages
<ShalokShalom1> i see
<ShalokShalom1> i just hint there is something that can get fixed within a few seconds
<ShalokShalom1> no man pages are one issue, a hint to trigger them another
<ShalokShalom1> there is also no solution to look into already installed apps?
<ShalokShalom1> what is different between 2.0 and the previous versions?
<ottidmes> ShalokShalom1: What do you mean by that last question?
<ShalokShalom1> so, what is the hot new stuff? :D
<ShalokShalom1> which one?
<ottidmes> ShalokShalom1: lol, yeah, timing issue, I meant "look into already installed apps"
martingale has quit [Read error: Connection reset by peer]
<ShalokShalom1> query the already locally installed packages?
<ShalokShalom1> or list them
martingale has joined #nixos
hyper_ch has quit [Ping timeout: 260 seconds]
<ottidmes> ShalokShalom1: Depends on what you mean with locally installed packages, you can install via nix-env and via systemPackages, the former has a way to query them, the latter you could do by:
vidbina has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @dotlambda pushed 6 commits to python-unstable: https://git.io/vx9Ey
<{^_^}> → a1030733 by @dotlambda: python.pkgs.wakeonlan: fix build
<{^_^}> → 0e5698f3 by @dotlambda: python.pkgs.vobject: move expression
<{^_^}> → 221ee96e by @dotlambda: python.pkgs.txaio: fix build
<ottidmes> nixos-option environment.systemPackages (but the output is quite ugly, there are better ways, let me see)
kmicklas has joined #nixos
sigmundv has quit [Ping timeout: 268 seconds]
leat has joined #nixos
sigmundv has joined #nixos
<{^_^}> [nixpkgs] @dotlambda pushed to python-unstable « python.pkgs.msgpack-numpy: replace msgpack-python by msgpack »: https://git.io/vx9Eb
xcmw has joined #nixos
<makefu> ottidmes: there is also (a new) users.users.<username>.packages
<ShalokShalom1> i use nix-env
hyper_ch has joined #nixos
vidbina has quit [Ping timeout: 264 seconds]
<ShalokShalom1> and i see a solution to query all available packages
<ottidmes> makefu: Good call, I forgot about that one, I am the only user, so I will probably forget again :P
<tilpner> nix-instantiate --strict --eval -E 'map (p: p.name) ((import <nixpkgs/nixos> {}).config.environment.systemPackages
<tilpner> )'
<ShalokShalom1> looks nice to remind :D
<tfc[m]> hey there. i just installed `nix-env -i python36Full` and `nix-env -i python36Packages.tox`. when i then run python3.6 and do `import tox` it doesnt find that package. when i run `nix-shell -p python36Full python36Packages.tox` then it does work. what is the difference?
Neo-- has joined #nixos
<tilpner> !library
<{^_^}> Don't install libraries through nix-env or systemPackages. See https://nixos.wiki/wiki/FAQ/Libraries for details.
xcmw has quit [Ping timeout: 264 seconds]
kreisys has joined #nixos
<Jetien> phreedom: could the reson be that the derivation provides no common path like bin/ in its $out?
<tfc[m]> {^_^}: ok i understand that. now i have a follow-up problem. when i want to run the same thing on an offline computer, what to i need to `nix copy` over on that machine so that it has everything cached needed for the nix-shell command?
lonokhov has joined #nixos
ilyaigpetrov has joined #nixos
<zybell_> there is a fundamental issue with nix/nixos. It comes up in several disguises at least once a day on #nixos. I would call it the plugin issue. The (often unstated) issue is: A package (like libnss,python,...)uses libdl to load a plugin mentioned in a config/script-file, which it expect to find in a compiled in path. Even when that plugin is installed (dependency is missing)it is never and can't be in that path.
<{^_^}> [nixpkgs] @bricewge opened pull request #38510 → nerdfonts: 1.1.0 -> 2.0.0 → https://git.io/vx9gS
<{^_^}> [nixpkgs] @peti merged pull request #38442 → Backport: callHackage: Keep deriver, like callCabal2nix → https://git.io/vxD3T
<{^_^}> [nixpkgs] @peti pushed 2 commits to release-18.03: https://git.io/vx9gx
<{^_^}> → 312a8b46 by @ElvishJerricco: callHackage: Keep deriver, like callCabal2nix
<{^_^}> → c194065f by @peti: Merge pull request #38442 from ElvishJerricco/backport-callhackage-deriver-18.03
<ottidmes> ShalokShalom1: This one also sorts and removes duplicates using jq: nix-instantiate --json --eval --strict --expr 'map (p: p.name) (import <nixpkgs/nixos> {}).config.environment.systemPackages' | jq 'unique | sort_by(ascii_downcase)'
<ShalokShalom1> ..
<ShalokShalom1> i installed neovim and now its unable to open it
<ShalokShalom1> document or file not found
<ShalokShalom1> i tried neovim and vim
thblt has quit [Ping timeout: 240 seconds]
<makefu> ShalokShalom1: how have you installed neovim exactly? when does the error occur?
Ivanych has quit [Quit: Leaving.]
silver has joined #nixos
<Dezgeg> it's called 'nvim', no?
<Dezgeg> the binary I mean
<hyper_ch> makefu: zfs is broken in unstable small with latest kernel /me is soooooo sad
<makefu> hyper_ch: not ok!
<hyper_ch> I know :(
<tilpner> tfc[m] - {^_^} is a bot. And you can just nix copy --to ssh://foo nixpkgs.python36Full nixpkgs.python36Packages.tox
<hyper_ch> mic92 already marks kernel 4.16 as not working
<Dezgeg> any out-of-tree kernel module + latest kernel = bad idea
jrolfs has joined #nixos
<Dezgeg> just don't do that
<Jetien> nixops question: how can you show the closure that is copied to a target machine?
<tfc[m]> tilpner: lol ok. :D well i tried exactly that and it did not work. `nix-shell` seems to have some extra requirements
<nick_l> Dezgeg: that sounds like something that could be asserted instead.
<tilpner> Jetien - Not sure about the nixops part, but you can get the closure of any store path with "nix-store -qR"
<Dezgeg> the assertion is that if it fails to compile, don't use it :)
<nick_l> Dezgeg: it did compile.
<nick_l> Dezgeg: it was a run-time issue.
<Dezgeg> oh well
<nick_l> Dezgeg: or boot time to be more exact.
<Dezgeg> it's an zfs upstream problem them
<tilpner> tfc[m] - Oh, right. Try python36Full.all
Ivanych has joined #nixos
<ottidmes> hyper_ch: Ahhh! I was just building Linux 4.16 for my server that uses ZFS to fix some other thing... The never ending bug loop, things one fix, break others...
<nick_l> Dezgeg: it depends on how you count.
<Dezgeg> how so?
<tilpner> tfc[m] - And python36Packages.tox.all
<nick_l> Dezgeg: it is hyper_ch's problem from his point of view.,
<nick_l> Dezgeg: and for other packages at some point it's the problem of the end user.
<tfc[m]> tilpner: what is the difference between full and full.all? full suggests... all already. kind of.
<hyper_ch> nick_l: you meant to highlight me?
<nick_l> Dezgeg: it's just that those people have a wish that upstream fixes it.
<hyper_ch> ottidmes: well, you can go and try it
<Dezgeg> how are you going to know a version of zfs doesn't work without a later kernel without psychic powers?
<tilpner> tfc[m] - .all contains all parts of a multiple-output derivation
<makefu> hyper_ch: Mic92 how has a laptop running on unstable + zfs (incl crypto) so he has to fix zfs now forerver!
<tilpner> tfc[m] - Derivations can be split into multiple parts, like bin, out, dev, info, etc.
<ottidmes> hyper_ch: I don't boot from ZFS, hopefully that simplifies matters
<nick_l> hyper_ch: no, typically people only configure their IRC client to respond to mention like hyper_ch:
<nick_l> mentions*
<hyper_ch> makefu: mic92 also runs native encrypted root zfs?
<nick_l> Dezgeg: for example, one could reboot the server at night when you are sleeping? :)
<hyper_ch> ottidmes: maybe :) let me know
<nick_l> Dezgeg: this is a solution that would great for enthusiast users. Enterprise users would have other infrastructure such that this won't be a problem.
<nick_l> work great*
<hyper_ch> nick_l: I don't understand
<nick_l> hyper_ch: no, I did not mean to bother you.
<makefu> hyper_ch: yes exactly, thats hardcore, right?
jrolfs has quit [Ping timeout: 256 seconds]
<tilpner> tfc[m] - But now that I check, neither of them seems to use multiple outputs, so... it shouldn't change anything (I'm gone now)
<Mic92> makefu: yes
<hyper_ch> nick_l: it's ok :)
<Dezgeg> I guess it could be documented somewhere that using out-of-tree modules + linuxPackages_latest is that you're essentially performing beta testing for that upstream project
<hyper_ch> makefu: I do the same
<hyper_ch> native encrypted root zfs
jperras has quit [Ping timeout: 264 seconds]
iyzsong has quit [Ping timeout: 264 seconds]
<nick_l> Dezgeg: in the real world there are signs that say "watch out, you could die here".
<Dezgeg> yep
<nick_l> Dezgeg: in NixOS an assertion dependent on a flag like "IKnowWhatIamDoing" could help.
<ottidmes> hyper_ch: I will, once it finishing building Linux 4.16.0, I really should look into how I can strip down the kernel if I have to build it myself, since most drivers I will never need
<hyper_ch> ottidmes: good luck... let us know how it works for you
<Dezgeg> but how do you know for a certain out-of-tree kernel module package what versions of kernel package it works without having to be an IKnowWhatIamDoing-level exper?
klntsky has quit [Ping timeout: 268 seconds]
<zybell_> the build recipe should check
<ottidmes> hyper_ch: The alternative is using 4.14 and just ignoring a CIFS (Samba) mount error. The mount still succeeds and seems to work, but I also read about corruptions elsewhere, so I am not keen on ignoring the error, while some issue tracker comment mentioned the error was resolved in a 4.16 release candidate
<Dezgeg> who should be responsible for writing that check? nixpkgs? zfs unstable?
<nick_l> Dezgeg: nixpkgs
<hyper_ch> ottidmes: what mount errors with cifs?
<nick_l> Dezgeg: it is possible to detect whether someone configured the latest kernel.
<nick_l> Dezgeg: so a nixos-rebuild would simply fail.
<Dezgeg> and what if zfs upstream fixes zfs for linux 4.16 before 4.17 is released?
<nick_l> Dezgeg: at that point you are free to set the flag "IKnowWhatIamDoing".
<ottidmes> hyper_ch: CIFS VFS: ioctl error in smb2_get_dfs_refer rc=-2
<hyper_ch> ottidmes: no idea
<zybell_> out of tree must build against kernel headers, build recipe must be written by IKnowWhatIamDoing-level expert, expert should know to check about applicable version.
jrolfs has joined #nixos
<ottidmes> hyper_ch: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1748689 this a bug report about it, and the last comment states "It appears the issue is not occuring in 4.16-rc1", so here is to hoping ZFS doesn't break along the way
<Dezgeg> I guess pull requests are welcome
<hyper_ch> ottidmes: I don't use those options
<zybell_> from earlier this channel here: zfs breaks in 4.16, idk about -rc.
nuncanada has joined #nixos
<Dezgeg> yes, and before linux 4.16 was released, how was the packager supposed to know beforehand that 4.16 will break it at runtime?
<ottidmes> hyper_ch: What do you do then? You still use SMB 1, which is unsafe? I love to know alternatives, I just want to mount my samba share on Linux
<ToxicFrog> ottidmes: I've given up on mounting smb and just run sshd on the same machine that hosts the smb shares and mount it over sshfs
<zybell_> No packager checks later than minimal version, earlier than latest that *did* run, has to be updated if new ver comes out that works too.
<Dezgeg> well, currently nixpkgs by default (tries to) builds all out-of-tree kernel modules against all possible kernel versions
hiroshi has quit [Ping timeout: 260 seconds]
<hyper_ch> ottidmes: I use it like this https://paste.simplylinux.ch/view/raw/6e87a795
<Dezgeg> pull requests to change that are welcome, I suppose
<zybell_> No, the packager checks 'later than minimal version, earlier than latest ver that *did* run', has to be updated if new ver comes out that works too.
jrolfs has quit [Ping timeout: 240 seconds]
<zybell_> sorry about missing delimiters
<ottidmes> ToxicFrog: My reason for wanting to mount my Samba shares on Linux is because what you suggest is what I tried first, but I need it go through Samba to get the correct ACLs in place
<zybell_> afk
<ToxicFrog> Aah.
<ToxicFrog> Good luck :/
<hyper_ch> ottidmes: samba is only accessible through the lan and vpn
coot has joined #nixos
<ottidmes> hyper_ch: Thanks, I think I have tried the same, but got errors about the version. I will try again
ryantm has joined #nixos
knupfer has joined #nixos
<hyper_ch> ottidmes: works fine for me
<ottidmes> ToxicFrog: Thanks, definitely gonna need it, getting Samba the way I want has been quite a puzzle so far, i.e. those times where when you Google search for something and you have seen all results already...
humanoyd has quit [Quit: WeeChat 2.1]
jrolfs has joined #nixos
jperras has joined #nixos
hellrazo1 has quit [Quit: WeeChat 2.1]
Guest46793 has joined #nixos
Guest46793 is now known as mero
jrolfs has quit [Ping timeout: 265 seconds]
ryanartecona has joined #nixos
jrolfs has joined #nixos
jperras has quit [Quit: WeeChat 2.1]
<{^_^}> [nixpkgs] @bkchr opened pull request #38511 → rustc: 1.24.0 -> 1.25.0 → https://git.io/vx96e
chessai has joined #nixos
<{^_^}> [nixpkgs] @vbgl opened pull request #38512 → gnome3.gtksourceview: fix build on Darwin → https://git.io/vx96a
<nick_l> In other news, did you know that Python (as in Python master) doesn't support features that exist since Linux 2.2?
sanscoeur has quit [Remote host closed the connection]
jrolfs has quit [Ping timeout: 264 seconds]
<goibhniu> nick_l: if you want assistance, please ask a question
<nick_l> goibhniu: I was just sharing something I thought was fairly interesting.
foldingcookie has quit [Remote host closed the connection]
dan_b has quit [Ping timeout: 240 seconds]
linarcx has joined #nixos
grpala has joined #nixos
telent has quit [Ping timeout: 276 seconds]
grpala has left #nixos [#nixos]
jrolfs has joined #nixos
vaninwagen has quit [Ping timeout: 240 seconds]
zybell_ has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Mic92 pushed to master « zfsUnstable: fix evaluation of error message »: https://git.io/vx9PH
linarcx has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Mic92 pushed to release-18.03 « zfsUnstable: fix evaluation of error message »: https://git.io/vx9Xe
jrolfs has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Ma27 opened pull request #38513 → clementine: provide free derivation by default → https://git.io/vx9X8
jrolfs has joined #nixos
knupfer has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @disassembler opened pull request #38514 → grafana-reporter: init at 2.0.1 → https://git.io/vx9Xd
chisui has joined #nixos
Ariakenom has joined #nixos
zybell_ has joined #nixos
hakujin2 has joined #nixos
<infinisil> Hey rycee, has the NixUP developer been trying to get some collaboration regarding user profiles? I thought he wanted to work with you together, but I haven't seen anything
ma27 has quit [Ping timeout: 255 seconds]
<mero> I'm getting this error when performing a nixops deploy
<mero> attribute 'nixosVersion' missing, at /nix/store/.../nixops/ec2.nix:153:41
<nick_l> Is there a function which conditionally returns a string, so equivalent to z = condf: x: if cond then x else "";?
<mero> I saw there's a closed issue on github, but it's not really clear to me how to tackle it
chimay has quit [Quit: WeeChat 2.1]
<nick_l> mero: nixops master doesn't have that issue, AFAIK.
bpa has joined #nixos
<nick_l> mero: the other solution requires overlays, which require that you know what an overlay is and as such is likely more complicated.
<mero> Is 1.5.2 the latest version available?
hakujin2 has quit [Ping timeout: 276 seconds]
<ottidmes> I might be missing something obvious, but what is the reason for shellAliases not running: escapeShellArg on the aliases? Seems a usability bug to me, or is it kept that way to prevent aliases from breaking now that people started escaping single quotes themselves?
<nick_l> mero: I am using some master version and it starts with 1.6.*. I think a new version was also recently released.
<ottidmes> nick_l: optionalString
jensbin has joined #nixos
<mero> nick_l: I see, and this version isn't yet available in the main channel?
<mero> I'll see to upgrade it, then
<nick_l> mero: I don't know, but probably not.
<ottidmes> nick_l: Naming aside is it exactly what you wrote: optionalString = cond: string: if cond then string else "";
<ottidmes> nick_l: You should just check <nixpkgs/lib/*.nix> when you have such questions in the future
<mero> Alright, thanks!
grumblr has joined #nixos
grumble is now known as Guest46633
Guest46633 has quit [Killed (leguin.freenode.net (Nickname regained by services))]
grumblr is now known as grumble
chreekat has joined #nixos
kiloreux has quit [Quit: Leaving]
xy2_ has joined #nixos
jperras has joined #nixos
digitus has joined #nixos
ryanartecona has quit [Read error: Connection reset by peer]
ryanarte_ has joined #nixos
emilis has quit [Quit: Leaving]
akaWolf has quit [Ping timeout: 255 seconds]
jrolfs_ has quit [Ping timeout: 240 seconds]
jensens has quit [Ping timeout: 260 seconds]
hotfuzz has quit [Quit: WeeChat 2.0]
<aminechikhaoui> nice to see NixOS 18.03 3rd in hacker news :)
<{^_^}> [nixpkgs] @taku0 opened pull request #38515 → firefox: fix wrapper to make proper symlink to icon → https://git.io/vx9Sa
jperras has quit [Ping timeout: 264 seconds]
hotfuzz has joined #nixos
alex`` has joined #nixos
jperras has joined #nixos
alex`` has quit [Client Quit]
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<infinisil> aminechikhaoui: \o/
blankhart has joined #nixos
hakujin2 has joined #nixos
selaux has quit [Quit: selaux]
lonokhov has quit [Quit: leaving]
jrolfs_ has joined #nixos
judson has joined #nixos
judson has quit [Remote host closed the connection]
hyper_ch has quit [Ping timeout: 260 seconds]
<Taneb> Is it possible to either find a folder in the nix store by the time it was created, or to get the paths of the build inputs of a known folder in the nix store?
drewr has quit [Remote host closed the connection]
judson has joined #nixos
periklis has quit [Ping timeout: 265 seconds]
ndrei has joined #nixos
sigmundv has quit [Ping timeout: 264 seconds]
blankhart has quit [Ping timeout: 256 seconds]
<judson> Related to a discussion last I was having last night: how can I tell which version of a Haskell package Nix has installed?
<judson> If, say, taffybar doesn't have a version flag?
hyper_ch has joined #nixos
hakujin3 has joined #nixos
ndrei has quit [Remote host closed the connection]
vidbina has joined #nixos
<das-g[m]> @Taneb Finding a folder by the time it was created should be possible with the UNIX command `find`, whether it's in the nix store or elsewhere.
ndrei has joined #nixos
<das-g[m]> The inputs are hashed into the folder name, but I guess that's a one-way thing so I don't think you can get them back from the folder.
drewr has joined #nixos
<Taneb> das-g[m]: the times are all 1st of January 1970 in the nix store
hakujin2 has quit [Ping timeout: 265 seconds]
<das-g[m]> oh
ndrei has quit [Remote host closed the connection]
<avn> btw folks, how to enable/disable new progress ui in `nix build`?
<infinisil> The criticism on HN about NixOS' install instructions being too hard is valuable
jrolfs_ has quit [Ping timeout: 260 seconds]
<ShalokShalom1> ➜ ~ nvim
<ShalokShalom1> zsh: command not found: nvim
<ShalokShalom1> makefu:
<nick_l> infinisil: install instructions are generally not available for relevant setups.
<ShalokShalom1> installed with nix-env -iA nixpkgs.neovim
vidbina has quit [Ping timeout: 260 seconds]
MichaelP has joined #nixos
<nick_l> infinisil: for example, a ZFS setup with encrypted disks is already asking too much and this is what various people already run.
<nick_l> infinisil: similarly, setting up a file server based on ZFS is also already out of scope.
<infinisil> nick_l: Yeah, but the installation is like the first thing somebody wanting to use NixOS reads, it would be nice to not deter people then already
<makefu> ShalokShalom1: can you try `nix-shell -p neovim --run nvim`
<{^_^}> [nixpkgs] @zimbatm merged pull request #38383 → Sublime dev → https://git.io/vxPHo
<{^_^}> [nixpkgs] @zimbatm pushed commit from @MasseGuillaume to master « Sublime dev (#38383) »: https://git.io/vx9Q8
<nick_l> infinisil: if you are not a huge Unix nerd, you are never going to end up with something that is even reasonable secure.
<nick_l> reasonably*
<ShalokShalom1> yep, that works
<ShalokShalom1> i get a bquote> prompt
<ShalokShalom1> well, now i like to build onivim and gonvim on top of it
<infinisil> nick_l: I think it still can be improved for just newcomers that maybe just wanna get started quickly
<ShalokShalom1> is this possible with pacman?
<nick_l> infinisil: compare with Ubuntu where you can say in the installer that you want to have full disk encryption without even understanding what is happening.
<nick_l> infinisil: I think everyone agrees that it could be made better.
<infinisil> nick_l: What prevents us from doing that other than finding somebody to create the UI?
<nick_l> infinisil: heh, finding somebody willing to create the UI.
blankhart has joined #nixos
<infinisil> :P
<nick_l> infinisil: I think everyone who can do it is working on more important things.
<judson> Part of that is figuring out what install scenarios to support and how much you need the user's input.
<nick_l> infinisil: I could literally clone myself ten times and then there would still be more important things to do.
<MichaelP> On plasma is NixOS always 2 version numbers behind ?
<makefu> ShalokShalom1: weird, you are using nix on nixos or on another os?
<ShalokShalom1> other os
<nick_l> MichaelP: stable is.
<nick_l> MichaelP: master, perhaps.
<nick_l> MichaelP: and not literally two versions, but it is behind.
<makefu> ShalokShalom1: can you run nix-channel --list
<ShalokShalom1> zsh: command not found: nix-channel
<nick_l> MichaelP: the last major upgrade took quite some effort, I think.
<infinisil> nick_l: judson: I've always been thinking: I want a nice AST editor for Nix, that could then provide a way to set up your configuration.nix but in a beginner friendly way, but also allow for more powerful things
<{^_^}> [nixpkgs] @dotlambda pushed 4 commits to python-unstable: https://git.io/vx9QH
<{^_^}> → b596e121 by @dotlambda: mkdocs: fix build
<{^_^}> → cf77474b by @dotlambda: octoprint: fix build
<{^_^}> → da911cde by @dotlambda: python.pkgs.pyfakefs: run tests
<MichaelP> nick_l: right now it 5.12.2 so that is 2 versions behind
<das-g[m]> I think the next time I'll install Nixos on a personal computer, I'll follow https://qfpl.io/posts/installing-nixos/ , as that's close to the setup I want.
<nick_l> MichaelP: are you comparing with master?
<makefu> ShalokShalom1: it seems that your nix installation is somehow broken (in a way that the PATH is not expanded correctly)
<ShalokShalom1> aha
<ShalokShalom1> this nix installation is fresh
<ShalokShalom1> and with guidence here in the chat
<makefu> ShalokShalom1: which documentation have you followed apart from this chat?
<MichaelP> nick_l: on top of website... clicked packages type plasma in search
xcmw has joined #nixos
goibhniu has quit [Ping timeout: 264 seconds]
acarrico has joined #nixos
MichaelRaskin has joined #nixos
<nick_l> MichaelP: that might refer to the stable distribution, which might be 18.03 now. Sure, one would expect the latest version. A cheap excuse is that this old version seems to work fine. I don't know why there is no newer version yet in 18.03.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38516 → notmuch: 0.26 -> 0.26.1 → https://git.io/vx97l
<Acou_Bass> oheyy i didn't realise 18.03 was released \o/ time to upgrade
<{^_^}> [nixpkgs] @dotlambda pushed 6 commits to python-unstable: https://git.io/vx970
<{^_^}> → 6e354f97 by @dotlambda: mkdocs: fix build
<{^_^}> → 895a3430 by @dotlambda: python.pkgs.msgpack-numpy: replace msgpack-python by msgpack
<{^_^}> → b453e383 by @dotlambda: octoprint: fix build
<judson> Yeah, I was thinking about manipulating Nix expressions recently. I'd love to write some Rust to that effect, but it seems fraught to reimplement the parser. I'm less attracted to writing it in C++, honestly.
xcmw has quit [Ping timeout: 240 seconds]
<judson> Continuing my odyssey to figure out which version of Taffybar I have installed - why does my search for the actual executable go through the GHC package?
jrolfs_ has joined #nixos
Myrl-saki has quit [Ping timeout: 240 seconds]
<judson> (I am starting to think I am getting dragged unwillingly into a kind of Silk Road of language repos, learning a zillion little argots.)
ma27 has joined #nixos
<makefu> ShalokShalom1: i will try to reproduce your issue, however i am currently in the train and my downstream pretty shitty (living in Neuland country where UMTS more than 2GB traffic is incredibly expensive)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38517 → openttd: 1.7.2 -> 1.8.0 → https://git.io/vx97x
<{^_^}> [nixpkgs] @bricewge opened pull request #38518 → nodePackages.webtorrent-cli: init at 1.11.0 → https://git.io/vx95e
<MichaelP> Say for fixing a problem. That needs a chroot... Is Nix an easy one for that. or 10 to many steps ? I like in arch mount /dev/sda1 /mnt mount /dev/sda2 /mnt/home arch-chroot /mnt /bin/bash ... your in.....
detran has joined #nixos
jb55 has joined #nixos
<makefu> MichaelP: there is nixos-enter https://nixos.wiki/wiki/Change_root
humanoyd has joined #nixos
jrolfs has quit [Ping timeout: 265 seconds]
sanscoeur has joined #nixos
coot has quit [Quit: coot]
<Mic92> MichaelP: you need 18.03 iso for nixos-enter though
<Mic92> *an 18.03
<Mic92> not installed system itself though
michas_ has joined #nixos
<MichaelP> nixos-enter is samething as doing a chroot ?
<Mic92> yes, but is nixos aware
boxofrox has quit [Quit: WeeChat 2.1]
boxofrox has joined #nixos
<Mic92> so it does a bit more then just chroot
<Acou_Bass> so that's the nix equivalent of arch-chroot... that's handy
boxofrox has quit [Client Quit]
boxofrox has joined #nixos
vgtyhb has joined #nixos
<Mic92> yes.
vgtyhb has left #nixos [#nixos]
<Acou_Bass> i don't think I've ever had to chroot into nixos because it's usually easy enough to rollback XD but cool to know it exists
[Leary] has joined #nixos
Lears has quit [Read error: No route to host]
<MichaelP> i8.03 Graphical live CD does it have a graphical installer or cli ?
<clever> MichaelP: cli
<disasm> MichaelP: cli, nix would be really hard to graphically install
<{^_^}> [nixpkgs] @limeytexan opened pull request #38519 → perlPackages.FileTouch: init at 0.11 → https://git.io/vx95Q
<detran> I get into a boot loop when trying to boot the graphical live iso on a thinkpad t480
<MichaelP> is package system pre-built packages ?
<detran> any ideas on how to boot into that?
Tucky has quit [Remote host closed the connection]
<ottidmes> hyper_ch: I just tried kernel 4.16 (took a while to build...) and it failed miserably, ZFS, its AMD GPU driver and other things all fail, so I am not even going to try and make it work
Ralith_ has quit [Ping timeout: 256 seconds]
Ralith_ has joined #nixos
ma27 has quit [Ping timeout: 240 seconds]
<nick_l> Perhaps someone should complain to Linus :P
<Dezgeg> zfs is an out-of-tree module so he doesn't care
<freeman42x]NixOS> to search for package containing gio executable I can use nix-index, or what? (I'm on XFCE) https://unix.stackexchange.com/a/435953/30584
<Dezgeg> if by 'AMD GPU driver' means the in-tree driver and not some out-of-tree driver then that would be complainable, yes
cript0nauta1 has joined #nixos
MichaelP has left #nixos ["Konversation terminated!"]
digitus has quit [Quit: digitus]
<detran> It shows the installer menu, and when I select the basic installer it starts loading:
<detran> loading /boot/bzImage ok
<detran> loading /boot/initrd ok
<detran> then Probing EDD (something something something can't read because it's not on screen long enough)
<detran> then it reboots
CptCaptain has joined #nixos
<manveru> freeman42x]NixOS: yeah
hyper_ch has quit [Ping timeout: 260 seconds]
<CptCaptain> Hey guys, I'm getting a "No medium found" error using cfdisk and fdisk on my new hard machine (no pre installed os)
<CptCaptain> It doesn't show up using blkid
<detran> I've tried the other installers (nomodeset, copytoram, debug), but it's the same deal
<CptCaptain> but I can see it in /dev
<ottidmes> Dezgeg: "BUG: unable to handle kernel NULL pointer dereference at 0000000000000004" "BUG: unable to handle kernel paging request at fffffffef8618030" "amd_gpio_irq_handler [pinctrl_amd]" (so actually, its the CPU that crashes on a bug that was fixed in 4.13 I believe)
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
jwynn6 has quit [Ping timeout: 268 seconds]
<ShalokShalom1> makefu: all fine, thanks a lot
Acou_Bass has joined #nixos
<ottidmes> And I am not sure what is the ZFS bug, but I did see "Process '/nix/store/mmfzgzl5kaxn5w69wkihwj9zzyscmadg-kmod-25/bin/modprobe zfs' terminated by signal KILL.", which cannot be good :P
jensbin has quit [Quit: Leaving]
<freeman42x]NixOS> manveru, I did a search in nixpkgs and couldn't find gio there so it might not be packaged
<disasm> ottidmes: are you on zfsUnstable?
<makefu> ShalokShalom1: weird, i've installed nix on centos7 via the default install procedure, afterwards i ran nix-env -iA nixpkgs.neovim, nvim is available afterwards
hakujin3 is now known as hakujin
hyper_ch has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/0af5b254ab6 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<makefu> ShalokShalom1: nix-channel is in my path as well
<ottidmes> disasm: Nope, which I should when using 4.16, but considering the other bugs, which seem unrelated to ZFS, I am going to wait with 4.16
<hyper_ch> ottidmes: the conf I sent for samba works fine for me
<hyper_ch> regarding security: as said, only accessible on the lan and through vpn
jwynn6 has joined #nixos
<ottidmes> hyper_ch: But does it give any errors in the journal? Mine seems to work, but I'd rather not have any errors being mentioned unless I can be sure they are harmless
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38520 → libuv: 1.19.2 -> 1.20.0 → https://git.io/vx9bT
<ottidmes> hyper_ch: I am mounting on the machine itself and plan to use SSHFS to mount my desktop to it (it has to go through Samba, in part due to wanting correct ACLs being set)
fendor has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @yesbox opened pull request #38521 → rclone: 1.39 -> 1.40 → https://git.io/vx9bZ
CptCaptain has left #nixos ["WeeChat 2.1"]
<{^_^}> [nixpkgs] @Infinisil opened pull request #38522 → lib: make extensible → https://git.io/vx9b2
<infinisil> For anybody interested in the module system, this PR of mine might interest you ^^
Lisanna has joined #nixos
<ottidmes> awesome! I should have tried that right away, then again the comment on the issue explicitly mentioned kernel 4.16-rc1, but kernel 4.15 solves my error with CIFS :)
<freeman42x]NixOS> interesting pattern: 172 issues in NixOS/nixpkgs
<infinisil> freeman42x]NixOS: Not sure where you're getting this low number from, I see 2316 open issues
MP2E has joined #nixos
<freeman42x]NixOS> infinisil, oh, sorry, I forgot the important part :/ 172 issues when searching for gio
nick_l has quit [Ping timeout: 260 seconds]
<ottidmes> freeman42x]NixOS: To anser your question, gio seems to be in glib
roberth has quit [Ping timeout: 268 seconds]
<freeman42x]NixOS> ottidmes, how did you figure that out?
<ottidmes> freeman42x]NixOS: Just a brute force search on /nix/store: find /nix/store -name 'gio' -type f
<freeman42x]NixOS> ah, you had it installed already
<ottidmes> freeman42x]NixOS: Then I double checked with --help to see if it actually matched what you were looking for, and the help commands and description matches what you showed in the link
<infinisil> freeman42x]NixOS: ottidmes: nix-locate is really really useful for this
<ottidmes> freeman42x]NixOS: It should be in glib.dev
<infinisil> `nix-locate bin/gio` gives you glib.dev instantly
<ottidmes> infinisil: I know, but it too assumes you have it installed, right?
<infinisil> Nope
digitus has joined #nixos
<infinisil> nix-locate searches over all packages files, and doesn't require you to have anything installed
<freeman42x]NixOS> that's cool, thank you
<infinisil> It uses Hydra to download the folders and files of all packages
<infinisil> Just the names I mean
<ottidmes> infinisil: Ah, thats how
<infinisil> Also really useful when you need some library: `nix-locate lib/libasound.so` -> alsaLib
<ottidmes> infinisil: Ah, now I remember, I have to fix my nix-env (which I never use) since nix-index fails on some error, in this case error: attribute 'Cabal_2_0_1_1' missing, at /wheel/fork/nixpkgs/pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix:60:69
<ottidmes> infinisil: Yeah, super useful, solves the whole searching problem when packaging prebuild binaries
<infinisil> ottidmes: Hmm, not sure what your error is about, what does nix-info give you? Usually a good indication of the state of nix-env
<{^_^}> [nixpkgs] @primeos pushed to master « neomutt: Fix the path to the auxiliary tools »: https://git.io/vx9NA
Jetien has quit [Ping timeout: 268 seconds]
klntsky has joined #nixos
alex`` has joined #nixos
<ottidmes> infinisil: Just the normal output, no errors: system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 2.0, channels(root): "", channels(user): "", nixpkgs: /wheel/fork/nixpkgs
<jeaye-hiring> Congrats on the release!
<ottidmes> infinisil: nix-env -q --installed works as well, its just with nix-index that it fails, I probably just have to through my overlays, since nix-index probably evaluates everything, while normally due to lazy evaluation I run in no problems, thats my guess
asuryawanshi has joined #nixos
<infinisil> ottidmes: `nix-index -f 'https://github.com/NixOS/nixpkgs/archive/master.tar.gz'` should work
<Ankhers> Has anyone successfully installed NixOS into a VMware Fusion VM using UEFI?
<infinisil> jeaye-hiring: \o/
<ottidmes> infinisil: Nope, it does not work, same error
<infinisil> ottidmes: Huh, what's `nix-index --version` and your nix version?
<infinisil> The -f master works for me
<infinisil> I have Nix 2.0 and nix-index version 0.1.0
<ottidmes> infinisil: Its my overlays, I removed my Haskell overlay and it fails on another overlay now, so I just have to fix my overlays, thanks for the suggestions!
<infinisil> Ohh alright
<infinisil> Always forgetting about those.. They're hidden arguments to `import <nixpkgs> {}`..
<{^_^}> [nixpkgs] @disassembler pushed 2 commits to release-18.03: https://git.io/vx9xU
<{^_^}> → 4bbaec1b by @bendlas: wxwidgets: depend on generic webkitgtk instead of 218x
<{^_^}> → c1c70849 by @bendlas: vimb-unwrapped: depend on generic webkitgtk instead of 218x
<ottidmes> infinisil: I updated to 18.03 today, so its just that some of my overlays still need upgrading
<infinisil> I see
xy2_ has quit [Ping timeout: 240 seconds]
dvim has quit [Quit: WeeChat 2.1]
<ottidmes> for example, licenses.bsd is no more, needs to be specific, now I have to figure out which version they use
digitus has quit [Quit: digitus]
mizu_no_oto has joined #nixos
dbe_ has joined #nixos
digitus has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed to release-18.03 « neomutt: Fix the path to the auxiliary tools »: https://git.io/vx9xD
mizu_no_oto has quit [Client Quit]
<infinisil> ottidmes: Huh? When's the last time you updated nixpkgs? I can't find a licenses.bsd definition anywhere in all points in time
logzet has quit [Ping timeout: 265 seconds]
<disasm> looking for a review for https://github.com/NixOS/nixpkgs/pull/38514/files. I know functionality is good and GrahamcOfBorg gave me a pass :)
<ottidmes> infinisil: 17.09 in March, it was easy enough, I was thinking version, but its about the clauses, and it has 3 list items, so that would be bsd3
szicari has joined #nixos
ShalokShalom3 has joined #nixos
jb551 has joined #nixos
<judson> Anyone know the gtk ecosystem? I'm getting this error in a build: Configuring gtk-traymanager-1.0.0... Setup: The pkg-config package 'gtk+-3.0' is required but it could not be found
<judson> I assume I need to add a dep to the expression, but not sure which one.
<clever> judson: gnome3.gtk
apostolis has joined #nixos
<judson> Thanks, clever
<apostolis> hello, I am taking the Nix Pills, I am at pill 4. I get an error when I try to use the nix-repl.
<Dezgeg> I think a general way to ask which package contains a given pkg-config package is 'nix-locate lib/pkgconfig/gtk+-3.0.pc'
<ottidmes> infinisil: Could it be that the meta.license never got evaluated, since I cannot find it either :P
<clever> apostolis: what error?
<apostolis> It says that the nix db is not writable.
<apostolis> "/nix/var/nix/db"
badi has quit [Quit: WeeChat 1.9.1]
<clever> apostolis: export NIX_REMOTE=daemon
<clever> apostolis: its an issue caused by nix2
badi has joined #nixos
ShalokShalom1 has quit [Ping timeout: 240 seconds]
<apostolis> ok
<clever> apostolis: there is also `nix repl` without the -, but its ui is slightly different
<clever> nix repl has somewhat worse tab completion, the repl history persists between restarts, and it uses nix2
<clever> nix-repl has better tab completion, no history, and it uses nix 1.11
Lisanna has quit [Ping timeout: 240 seconds]
<apostolis> Let me try it.
<disasm> clever: that could probably be solved with makeWrapper right? make nix-repl have a wrapper that sets NIX_REMOTE=daemon
<infinisil> ottidmes: That might be it
<clever> disasm: that could handle it
<clever> disasm: originally, nixos was setting that system wide, because nix 1.11 cant auto-detect it
<detran> alright, I just verified the sha256 and dd-ed it over to the usb again and retried, but I'm still stuck in a boot loop
<clever> nix 2 auto-detects it, so it is now unset
<Dezgeg> except that NIX_REMOTE=daemon breaks non-nixos uses, I think
<infinisil> clever: I heard somebody say those issues are fixed in the latest version, but I haven't tried it myself
xy2_ has joined #nixos
<detran> Before I try the minimal iso, does anybody have any idea if there's a bios/uefi setting that would cause this?
<judson> Hm. taffybar already has gtk3 in its `executableHaskellDepends` attr. Is that not enough?
<ottidmes> infinisil: the index successfully build, thanks for the help, now I just have to think of ways to leverage it in scripts :)
<clever> judson: its not a haskell dependency
<clever> judson: librarySystemDepends
<{^_^}> [nixpkgs] @garbas merged pull request #38516 → notmuch: 0.26 -> 0.26.1 → https://git.io/vx97l
<{^_^}> [nixpkgs] @garbas pushed commit from R. RyanTM to master « notmuch: 0.26 -> 0.26.1 »: https://git.io/vx9hk
<clever> detran: how are you dd'ing the iso to the usb?, what is the exact command?
isidore has joined #nixos
flyx has quit [Quit: ZNC - http://znc.in]
chreekat has quit [Ping timeout: 256 seconds]
<dbe_> Any rust users in here? What do you use to get rust unstable/nightly? rustup? rustUnstable and rustNightly is marked as broken...
ryanarte_ has quit [Quit: ryanarte_]
chreekat has joined #nixos
<ottidmes> dbe_: Not a Rust user, but I believe you should get those from the Mozilla nixpkgs overlay
<joepie91> yeah, I use the overlay as well
<joepie91> the overlay uses rustup's data source so it's always in sync
<dbe_> ooh sweet! that's awesome. thanks.
<detran> clever: sudo dd bs=1m if=/path/to/nixos.iso of=/dev/rdisk2
<infinisil> Using the rust overlay too
fendor has joined #nixos
<clever> detran: and rdisk2 is the full drive?
<detran> yes
<dbe_> ottidmes, thanks!
<clever> detran: that should work
hph^ has joined #nixos
<detran> clever: that's what I thought, and I've done this several times before (just not on this machine)
<detran> and I just tried the minimal iso with the same result
<clever> detran: i'm guessing the kernel doesnt like your hardware, try an older iso
<detran> clever: ok, will do
<mpickering> How is QT_PLUGIN_PATH usually set?
<detran> does that mean I'll get some guff if I try updating to 18.03?
<clever> detran: you should be able to just change the nix-channel after booting the iso, then install
jb551 has quit [Ping timeout: 260 seconds]
fendor_ has joined #nixos
<detran> clever: perfect
JosW has quit [Quit: Konversation terminated!]
<mpickering> Looks like it is usually set with makeWrapper, that'll probably do for me
<detran> and I just verified the the 18.03 installer does work on my old laptop, so you're right that it must be hardware related
<detran> thanks!
<cript0nauta1> I was finally able to install nixos on a LUKS2 partition :) thanks makefu!
apostolis has quit [Quit: WeeChat 1.6]
fendor has quit [Ping timeout: 255 seconds]
isidore has quit [Quit: WeeChat 2.1]
ogotai has joined #nixos
dbe_ has quit [Remote host closed the connection]
<cript0nauta1> I'm thinking on changing the Full Disk Encryption wiki page to put a workaround to achieve that until the changes in the PR are merged, is this a good practice?
<{^_^}> [nixpkgs] @LnL7 merged pull request #38468 → mesos: fix on darwin by disabling java interface → https://git.io/vxyED
<{^_^}> [nixpkgs] @LnL7 pushed 4 commits to master: https://git.io/vx9jq
<{^_^}> → e1209152 by @veprbl: mesos: fix on darwin by disabling java interface
<{^_^}> → c639649e by @veprbl: leveldb: fix install_name on darwin
<{^_^}> → 3868973c by @veprbl: libevent: fix install_name on darwin
<detran> And the 17.09 installer runs without a hitch
humanoyd has quit [Quit: WeeChat 2.1]
<clever> detran: you could potentially bisect nixpkgs now, but it might take an hour to narrow down the cause
<ogotai> hi, just ran standard install on MacOS 10.12.6, and it didn't create my user profile, ~/.nix-profile points to non-existent directory /nix/var/nix/profiles/per-user/<user>/profile, although the path up to the <user> part exists, just no profile sub-dir there - no errors during install
<{^_^}> [nix] @mightybyte opened pull request #2049 → Add missing eval-okay-regex-split.exp test file → https://git.io/vx9j8
<detran> clever: I'd be happy to help (especially since this is a Thinkpad T480, so I imagine I'm not the only one who'll hit this issue). I've never done a bisect before, though, how does that work?
chreekat has quit [Ping timeout: 255 seconds]
<LnL> ogotai: pretty sure that's not a problem, once you install something in the profile it will be created
dbe_ has joined #nixos
<ogotai> LnL: oh I see, I thought that was the reason nix-shell wasn't in my PATH, should I be looking elsewhere? /etc/zshrc seems to have been edited fine, and as root I can 'nix-shell', but as my user, in new terminal (I'm using ZSH), nix-shell isn't available, any pointers?
<LnL> did you open a new shell?
<ogotai> yes, and I also tried to directly dot-include the shell file that gets added to /etc/zshrc by the installer
<LnL> that's weird...
<ogotai> is this expected as well? 'error: getting status of '/private/var/root/default.nix': No such file or directory', is default here name of an environment or something? (I'm new to nix, not sure of the naming)
<LnL> possibly, depends on what command you ran
<ogotai> just 'nix-shell' as root, no arguments
reinzelmann has joined #nixos
<LnL> yeah, try something like nix-shell -p hello
<judson> clever, Dezgeg, I'm flailing around trying to add this dep to the right place. It's the gtk-traymanager package that actually breaks. I've added gtk3 to its libraryPkgconfigDepends and librarySystemDepends attrs: still fails build the same way. Adding gnome to its callPackage arg fails (called without required argument).
flyx has joined #nixos
<judson> nix-locate looks like gnome3.gtk.dev 744 r /nix/store/j2czjihk45bdgwwkvns980v41gcw6vgf-gtk+3-3.22.28-dev/lib/pkgconfig/gtk+-3.0.pc. But I can't see how to use the dev output of gtk. (No such attribute when I try)
<Dezgeg> plain 'gtk' or 'gnome3.gtk'? I think plain 'gtk' refers to GTK 2
<ogotai> LnL: yep that works, and I also found the culprit, kind of, of why the PATH is screwed - there's something in my ~/.zshrc that conflicts silently with Nix, maybe oh-my-zsh, maybe something else, when I remove my ~/.zshrc, suddently nix-shell shows up in PATH in a new shell
<LnL> ogotai: do you see anything if you run env | grep __ETC
<LnL> ah, that would cause problems :)
<ogotai> LnL: with my original ~/.zshrc, no, nothing named __ETC
<ogotai> LnL: but even when I dot-include the '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' after the shell has fully loaded, shouldn't that just add the relevant thing to PATH?
<ogotai> LnL: unless there's something in my zsh that fiddles with PATH constantly, I'm not sure
<makefu> cript0nauta1: you can simply link to the PR via {{pr|NUMBER}} - just describe what you did to get it working right now :) you are also welcome to join #nixos-wiki for any further questions
<LnL> ogotai: that's to avoid expanding variables like PATH multiple times
coot has joined #nixos
<ogotai> LnL: oh well, I'm not going to goose chase zsh issues, that never ends well, just adding this to the end of my rc should help hopfully - unset __ETC_PROFILE_NIX_SOURCED && . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
<ogotai> LnL: thanks for the help :)
<{^_^}> [nixpkgs] @coreyoconnor opened pull request #38523 → firefox: correct missing icons for wrapped firefox-bin packages. → https://git.io/vxHvu
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/e8853782a0b (from 46 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
hotfuzz_ has joined #nixos
coconnor has joined #nixos
<LnL> ogotai: heh, I stopped using ohmyzsh feel like it causes more problems than it solves
hotfuzz has quit [Ping timeout: 255 seconds]
winem_ has joined #nixos
<cript0nauta1> makefu: great! i'll write it in a few days
<benny> how do I make /usr/bin/env available in a package? I tried to include coreutils in the nativeBuildInputs but /usr/bin/env does not exist
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38524 → lxc: 2.1.1 -> 3.0.0 → https://git.io/vxHvp
johnw has quit [Ping timeout: 260 seconds]
asuryawanshi has quit [Remote host closed the connection]
MercurialAlchemi has quit [Ping timeout: 264 seconds]
asuryawanshi has joined #nixos
sud0x3 has quit [Ping timeout: 240 seconds]
sud0x3 has joined #nixos
<clever> benny: buildInputs only ever land in $PATH
<benny> what's the right way to package something that has 10+ scripts that use /usr/bin/env in their shebang?
<clever> benny: run patchShebangs on that directory
<benny> let me try!
<benny> this seems to patch things right, so thanks for that!
<benny> let's hope it doesn't generate some more scripts as an intermediate step in its buildchian
<{^_^}> [nixpkgs] @pSub pushed to master « checkstyle: 8.8 -> 8.9 »: https://git.io/vxHJB
<ottidmes> benny: I believe fixup does a pathShebangs as well, so those should be automatically fixed
<benny> ottidmes: I haven't touched the phases but this is not a standard configure make make install build process
<judson> Dezgeg, doh!
<judson> gnome3.gtk not gnome.gtk3
fendor_ has quit [Quit: Leaving]
klntsky has quit [Ping timeout: 268 seconds]
klntsky has joined #nixos
<judson> Hurray, a new error!
vaninwagen has joined #nixos
dadou has joined #nixos
Lisanna has joined #nixos
<dadou> Hello I am currently experiencng this issue : https://github.com/NixOS/nixpkgs/issues/38477
<dadou> Is this still possible to download the latest stable release ?
<ShalokShalom3> well, this nix is confusing
<ShalokShalom3> i just download nodejs with it, then elchemy with that one
stabbmesiter has joined #nixos
<ShalokShalom3> now are these both gone, without any mention, plus nix-env is also not found
<ShalokShalom3> 2.0 seems to be almost not tested on other operating systems
<ShalokShalom3> is there a way to use the stable one?
<MichaelRaskin> nixStable1 I think
<ShalokShalom3> yeah, how too?
<ShalokShalom3> i am afraid to clutter all up now
<judson> Dezgeg, clever: getting errors during build like error: ‘GTK_TYPE_SOCKET’ undeclared (first use in this function); did you mean ‘ATK_TYPE_SOCKET’? Look familiar? I assume somehow I still haven't threaded something into gtk-traymanager
<ShalokShalom3> can i mix both versions?
<MichaelRaskin> nixStable1 is the attribute name
<ShalokShalom3> how to delete the first one?
<ShalokShalom3> aha
<ottidmes> ShalokShalom3: Its in nix1 according to nix-locate
<ShalokShalom3> ..
<ShalokShalom3> nix-env is also not working anymore?
<ShalokShalom3> not found
<ShalokShalom3> it just disappeared :D
<ShalokShalom3> i installed it with your shell script
<ottidmes> ShalokShalom3: find /nix/store -name 'nix-env' -type f
<ShalokShalom3> thy
<ShalokShalom3> /nix/store/6p2gambjac7xdkd2a7w1dsxdk1q5cq4d-nix-2.0/bin/nix-env
<ShalokShalom3> delete that?
<ShalokShalom3> hnn, when i execute that, does it work
<ShalokShalom3> seems the bindings are missing
<ShalokShalom3> probably also to the others
<ShalokShalom3> why?
<ShalokShalom3> should i report this somewhere?
<ottidmes> ShalokShalom3: its not really nix its fault, its the scripting around it, so I would not downgrade to nix 1.11 if I were you
<dadou> Hello, I want to install nixos on my computer, but I have bug from the 18.03 (it seems). Where could I download the previous one please ?
<ShalokShalom3> what is the sense of that cryptic names in /nix/store?
<ShalokShalom3> security?
<ShalokShalom3> ottidmes: ok, thanks a lot
<ShalokShalom3> so, who does this scripting?
ShalokShalom3 is now known as ShalokShalom2
<ottidmes> ShalokShalom3: It could very well be that your environment breaks assumptions made in the script that setups Nix in your distribution
<ShalokShalom2> yep
<ShalokShalom2> my distro is pretty well unknown
<ShalokShalom2> so, report this issue to whom?
<ottidmes> ShalokShalom2: To the nix github repo I guess
<ShalokShalom2> i hope i can use nix as my second package manager, since the default repos are small
<ShalokShalom2> while very well maintained
<ShalokShalom2> thanks a lot
<ottidmes> dadou: What is the bug?
<ShalokShalom2> any ideas to infos i can provide?
Lisanna has quit [Quit: Lisanna]
<dadou> ottidmes: I have exactl this : https://github.com/NixOS/nixpkgs/issues/38477
<ottidmes> ShalokShalom2: The steps you took to install nix for starters, the distribution you are using, probably your env output
<dadou> bkchr: Thanks! I could not find it.
<bkchr> (just googled the one that should work)
winem_ has quit [Ping timeout: 264 seconds]
coot has quit [Quit: coot]
<{^_^}> [nixpkgs] @primeos pushed to master « wlroots,rootston: Mark them as broken until the first stable release »: https://git.io/vxHTG
<ottidmes> dadou: I always build a custom installation iso for hyper-v, but I haven't tried 18.03 with it yet
ryanartecona has joined #nixos
<dadou> ottidmes: yes, this bug seems pretty recent. I am very confident that it will be solved soon :)
<{^_^}> [nixpkgs] @pSub pushed to master « pugixml: 1.8.1 -> 1.9 »: https://git.io/vxHT6
<{^_^}> [nixpkgs] @mpickering opened pull request #38526 → openorienteering-mapper: 0.8.1 -> 0.8.1.2 and fix templates → https://git.io/vxHTP
<lejonet> srhb: ping
<ShalokShalom2> env output?
<ottidmes> dadou: I have been using this config for hyper-v: https://pastebin.com/QuZQEFPA
<ottidmes> ShalokShalom2: the env executable, showing your environment variables
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/e8853782a0b (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<ottidmes> ShalokShalom2: Ahh, you installed things directly via npm, you have to overwrite the global directory otherwise it will use the directory where node is installed, which is readonly
roberth has joined #nixos
acarrico has quit [Ping timeout: 265 seconds]
<ShalokShalom2> seems like it takes a crystal ball to use nix :P
<ShalokShalom2> ottidmes: how to do that?
<ottidmes> ShalokShalom2: No, just practice
<ShalokShalom2> and why is nix-env eaten also?
<ShalokShalom2> why is this not part of the build script for npm?
<ShalokShalom2> respectivly nodejs
* hodapp walks in, sees Node.js, walks back out
<ShalokShalom2> haha
<ShalokShalom2> its the only way to download and install elchemy
<ottidmes> ShalokShalom2: I am checking that now for your, its been a while since I set it up, and note that it only works for regular packages, those that use C++ and such need to go through nodePackages
<ShalokShalom2> that itself doesnt use it, afaik
<ShalokShalom2> simply as package manger
<ShalokShalom2> ottidmes: thanks a lot
<ShalokShalom2> is that documented?
<ShalokShalom2> i thought nix is 9 years old?
<{^_^}> [nixpkgs] @pSub pushed to master « calibre: 3.20.0 -> 3.21.0 »: https://git.io/vxHII
<ottidmes> ShalokShalom2: Well, you can check the nixpkgs manual, it should have a section about nodejs, and support for it is pretty good
<ShalokShalom2> is it possible to do this setting in the build scripts for nodejs?
<ShalokShalom2> what is the sense to not do this?
<ShalokShalom2> so eg, to break the whole environment, when you install node
<ShalokShalom2> without any warning even
<lejonet> ShalokShalom2: that is what node does to your system ;) it breaks it, without warning! *ducks out*
ma27 has joined #nixos
<judson> getting errors during build like error: ‘GTK_TYPE_SOCKET’ undeclared (first use in this function); did you mean ‘ATK_TYPE_SOCKET’? Look familiar? I assume somehow I still haven't threaded something into gtk-traymanager - but I don't know what else to thread in. I see --extra-include-dirs=/nix/store/{...}-gtk+3-3.22.29-dev/include and --extra-lib-dirs=/nix/store/{...}-gtk+3-3.22.29-dev/lib in the configureFlags...
<ottidmes> ShalokShalom2: Anyway, what I am showing you is for using npm directly, I have in my ~/.npmrc the contents (without quotes) "globalconfig = /wheel/opt/npm/npmrc", where /wheel/opt/npm/npmrc has "prefix = /wheel/opt/npm"
<{^_^}> [nixpkgs] @primeos closed pull request #38401 → nixos/rootston: Use an attribute set and the new keyboard configuration format → https://git.io/vxXwI
<ShalokShalom2> ty
<ShalokShalom2> lejonet: as said, your build script can fix that
<ottidmes> ShalokShalom2: I am not sure its related (node installs missing and nix no longer being on PATH), if it is, its a severe bug, its good that you reported it anyway
<ShalokShalom2> the local node doesnt break anything
<ShalokShalom2> ok, fine
<lejonet> ShalokShalom2: I was trying to be funny and imply that node by design is broken ;) :P
<ShalokShalom2> yeah i see ;)
<ShalokShalom2> i dont have much opionions on it
<hodapp> it's great, if you like JavaScript and cooperative threads
<ShalokShalom2> i am a non coder, trying to figure out how to do programming and it happens that one candidate, elchemy, uses it to distribute itself
<lejonet> I don't have much opinions on the language, but maintaining something written in nodejs is... a handful
<ShalokShalom2> well, i like modern JavaScript..
<ShalokShalom2> as a language to compile to :D
<ShalokShalom2> like with Fable and Elm
<pkill9> hi, does Minecraft (through MultiMC) work with Nouveau drivers?
<ShalokShalom2> i heard something good about yarn
<ShalokShalom2> i guess your chip is helpful?
<ShalokShalom2> and probably less people here tested it that way
<ShalokShalom2> you mean on NixOS?
<maurer> ShalokShalom2: In general, you'll probably find that you land in trouble when you try to mix another package manager with nix unless you're very careful
<ShalokShalom2> i thought thats supported?
<ShalokShalom2> i asked here twice before i started
ma27 has quit [Ping timeout: 240 seconds]
<ottidmes> ShalokShalom2: I have used npm and yarn on NixOS, almost completely outside nix (only some binary packages needed to be installed through nix)
<ShalokShalom2> yeah, i guess he means pacman
<ShalokShalom2> or she
<infinisil> pkill9: I don't see a reason why it shouldn't
<{^_^}> [nixpkgs] @gnidorah opened pull request #38527 → nixos/nginx: fix gitweb submodule → https://git.io/vxHLY
ma27 has joined #nixos
<infinisil> maurer: ShalokShalom2: Only NixOS can be a problem with other package managers, but Nix itself will be no problem
stabbmesiter has quit [Ping timeout: 265 seconds]
<infinisil> ShalokShalom2: Can you also describe how you installed Nix in your issue?
<ShalokShalom2> ottidmes: i have no .npmrc in my home, only .npm
<ShalokShalom2> and that one is full with packages in form of json files, whyever
<ShalokShalom2> infinisil: ok, fine
<ShalokShalom2> infinisil: shell script, that one on your homepage
<ShalokShalom2> infinisil: i already did?
<ShalokShalom2> reload
<ShalokShalom2> i edited it before :)
<infinisil> Ah right sorry
<ShalokShalom2> all fine
<ShalokShalom2> thy
<{^_^}> [nixpkgs] @dotlambda pushed 8 commits to python-unstable: https://git.io/vxHLz
<{^_^}> → 4f8560fb by @dotlambda: python.pkgs.cerberus: specify checkInputs
<{^_^}> → 3457f916 by @dotlambda: python.pkgs.datadog: fix build
<{^_^}> → bea49f85 by @dotlambda: python.pkgs.futures: move expression
<{^_^}> [nixpkgs] @LnL7 pushed 3 commits to release-18.03: https://git.io/vxHLa
<{^_^}> → b1b56b5e by @veprbl: mesos: fix on darwin by disabling java interface
<{^_^}> → 9e96a696 by @veprbl: leveldb: fix install_name on darwin
<{^_^}> → 8244fb16 by @veprbl: libevent: fix install_name on darwin
adamt has joined #nixos
<infinisil> ShalokShalom2: Do any of the files .bash_profile, .bash_login or .profile have a Nix section added to the end of them?
<ShalokShalom2> yep
<ShalokShalom2> bash_profile
<ShalokShalom2> and now?
<infinisil> ShalokShalom2: Are you using bash? Does this file get sourced?
<ShalokShalom2> zsh
<ShalokShalom2> how to detect, if it get sourced? i think zshrc get
<ottidmes> ShalokShalom2: If .npmrc does not exist, you simply have to make it yourself
<infinisil> ShalokShalom2: Alright, when you source the file manually, with `. .bash_profile`, does nix-env become available?
<ShalokShalom2> .zshrc get sourced for sure
<ShalokShalom2> ottidmes: ok
<ShalokShalom2> such a confusing situation
<ShalokShalom2> can i suggest changes to the nodejs build script?
<ShalokShalom2> how are these scripts called in nix?
martingale has quit [Read error: Connection reset by peer]
<ShalokShalom2> infinisil: you mean like: zsh ..bash_profile or so?
<ShalokShalom2> he puts it in my bashrc
<infinisil> ShalokShalom2: No, just type `. .bash_profile` in your shell
<ShalokShalom2> he assumes, i use basj
<ShalokShalom2> why?
<ShalokShalom2> ok
martingale has joined #nixos
<infinisil> or `source .bash_profile`, or wherever Nix put the nix section (you said .bash_profile before)
<ShalokShalom2> not found
<infinisil> not found what?
<ShalokShalom2> gimme a sec
<ShalokShalom2> this has to be adjusted, imho
<ShalokShalom2> i will do .npmrc now
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38528 → libedit: 20160903-3.1 -> 20170329-3.1 → https://git.io/vxHtd
<ShalokShalom2> to be honest, i dont like to succeed
<ShalokShalom2> thanks a lot for all your help
<ShalokShalom2> in my opinion, this .nix file for nodejs is badly broken, idk if i should open an issue report
<infinisil> What file?
<ShalokShalom2> primarly, because i dont know what to mention exactly
<ShalokShalom2> that build script
<ShalokShalom2> it hard codes towards bash - why?
<infinisil> Link?
<ShalokShalom2> it seems a special process is needed to °prevent it from eating all my symlinks in nix°
dan_b has joined #nixos
telent has joined #nixos
<{^_^}> [nixpkgs] @primeos pushed 0 commits to generators-codeowners: https://git.io/vxHqO
<ShalokShalom2> ottidmes: will you help me to conclude a new issue for it?
<ShalokShalom2> with a reference to the first, of course
<infinisil> Nix won't eat your symlinks if you use it properly
<ShalokShalom2> well, i installed nodejs
<ShalokShalom2> is this properly usage?
<ShalokShalom2> [21:25] <ottidmes> ShalokShalom2: Ahh, you installed things directly via npm, you have to overwrite the global directory otherwise it will use the directory where node is installed, which is readonly
<ShalokShalom2> [21:29] <ottidmes> ShalokShalom2: I am checking that now for your, its been a while since I set it up, and note that it only works for regular packages, those that use C++ and such need to go through nodePackages
<ShalokShalom2> that seems a bit questionable
ma27 has quit [Ping timeout: 265 seconds]
<ShalokShalom2> if i have to overwrite the global directory, why does this belong to me, instead to the build script?
<ShalokShalom2> this can be automated, or is there any downside of doing so?
<ShalokShalom2> and at least a message about that can be displayed
<ottidmes> ShalokShalom2: I think it can only be configured in your home directory
<ShalokShalom2> ?
<ottidmes> ShalokShalom2: The configuration of the globalconfig, I am not sure how to do that outside a ~/.npmrc, which is bound to the HOME dir
<benny> can I use multiple fetchurl in a single derivation? one of the fetchurls only needs to be downloaded, nothing more.
martingale has quit [Read error: Connection reset by peer]
<ShalokShalom2> well, i guess there is a common practice for that?
<clever> benny: yeah, just assign it to another attribute, and that will become an env var at build-time
<ottidmes> ShalokShalom2: But remember, this is what I did to make nodejs work outside of nix, you should probably first check the official Nix way of handling nodejs packages
martingale has joined #nixos
<ShalokShalom2> i am fine with doing it in .npmrc
<benny> clever: I'll try thanks
<infinisil> benny: Or just use it directly where you need it, e.g. `cp ${fetchurl { ... }} $out/foo`
<ShalokShalom2> i am just asking, why this is not be done by the .nix
<ShalokShalom2> how can someone ship a package, which eats symlinks, when you actually use it?
<ottidmes> ShalokShalom2: I cannot answer that, only make an educated guess, which I just did, namely that it probably cannot be configured at that point
<ShalokShalom2> how many packages/users/scenarios use npm to download software?
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
<ShalokShalom2> ok, thanks a lot
<ottidmes> ShalokShalom2: Are you sure that is actually caused by nodejs
<ShalokShalom2> no
<ShalokShalom2> i am new in this environment, you suggested me it is possible :)
<ShalokShalom2> while it worked in the way i describe in the Github issue
<ShalokShalom2> and there was no action in between whatsoever
<ShalokShalom2> between these commands
digitus has quit [Quit: digitus]
<ShalokShalom2> anyway, the hardcoding on bash is an issue on its own, imho
<ottidmes> ShalokShalom2: Then you should stop making that claim. Like I said, it is probably unrelated. Your environment problably broke at some point, some env var or something was not make persistent, so when you reloaded your terminal or whatever happened, those references were gone. I just remarked that I too had problems with installing global nodejs packages that way, since the globalconfig defaults to a directory
<ottidmes> in the /nix/store which is readonly
<ShalokShalom2> so lets detect this
<ottidmes> ShalokShalom2: I agree, its a valid choice, but it should be made clear
<ShalokShalom2> i see no such choice in these packages, to be honest
reinzelmann has quit [Quit: Leaving]
<ShalokShalom2> there is only one mention about bash, which is about the completion
<ShalokShalom2> totally confusing
<infinisil> ottidmes: You are talking about npm's install command trying to install stuff in /nix/store?
<ottidmes> infinisil: yeah
<ottidmes> infinisil: global installs anyway
<ShalokShalom2> ottidmes: i think there is noting wrong in writing to zsh also
<ShalokShalom2> if there is no way to detect what is used
<ShalokShalom2> anyway
<clever> ottidmes: i dont think npm global installs can ever work, because they assume the dir npm was installed to is mutable
<ShalokShalom2> so npm defaults to /nix/store, what it should not?
<ShalokShalom2> because it get installed there?
<clever> ShalokShalom2: where else would you have it install to?
<ShalokShalom2> *itself
<clever> ShalokShalom2: yeah
<ottidmes> clever: I know, but you can fix that, which is what I did
<ShalokShalom2> i see
<ShalokShalom2> where is this configured?
<ShalokShalom2> if not in .npmrc
digitus has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #37337 → lib: Fix #30902 on 18.03 → https://git.io/vx3lC
<{^_^}> [nixpkgs] @Ericson2314 pushed 23 commits to release-18.03: https://git.io/vxHmw
<{^_^}> → dde80d70 by @Ericson2314: qtbase: Fix x86_64-conditional logic
<{^_^}> → eeb8419c by @Ericson2314: ceph: Fix --with-file-aio logic for new meta.platforms and cross
<{^_^}> → 79d8353b by @Ericson2314: treewide: Make `shouldUsePackages` copypasta use meta.available
<ShalokShalom2> clever: where ever it works?
pSub has quit [Remote host closed the connection]
<ShalokShalom2> ottidmes: can you show me your config?
<ShalokShalom2> of npmrc
<ottidmes> ShalokShalom2: in .npmrc I point to my globalconfig file, and that file in turn contains "prefix = /my/global/npm" to point to the global location where npm should install global packages
<ottidmes> ShalokShalom2: I already did, I will post again
<ShalokShalom2> where you have that
<ottidmes> ShalokShalom2: Anyway, what I am showing you is for using npm directly, I have in my ~/.npmrc the contents (without quotes) "globalconfig = /wheel/opt/npm/npmrc", where /wheel/opt/npm/npmrc has "prefix = /wheel/opt/npm"
pSub has joined #nixos
pSub has quit [Changing host]
pSub has joined #nixos
<ShalokShalom2> yeah, the second part was confusing to me, probably since english is my second language
<clever> ottidmes: and that will only work if the bin of that is already in $PATH
<ShalokShalom2> what means >where /wheel/opt/npm/npmrc has "prefix = /wheel/opt/npm"<
<ShalokShalom2> first line: globalconfig = /wheel/opt/npm/npmrc
<ShalokShalom2> second line?
<ottidmes> clever: correct, you still have to update your PATH to contain in my case: /wheel/opt/npm/bin
<ShalokShalom2> and why is this impossible for the build script to do?
<clever> ShalokShalom2: a normal user wont have write access to that path
<ShalokShalom2> ah i see
<clever> and nix is very against global things like that
<ShalokShalom2> so it would prompt for password?
<clever> they defeat the whole point of nix
<ShalokShalom2> i see
<ShalokShalom2> break by default is a sane choice
<ShalokShalom2> maybe this is the reason why people find NixOS hard to us
<ShalokShalom2> use
<ShalokShalom2> at least a message with a hint is in
<clever> you just need to get into the right mindset, then it all makes sense
<ShalokShalom2> most people probably try that, break it and thats it
<ShalokShalom2> this is really the reason why Haskell and so on is still very less used
<clever> why are you trying to globally install something with npm?
<ShalokShalom2> you cant assume someone starts with that "right mindset"
<ottidmes> ShalokShalom2: I am not sure what you misunderstand, there are two files 1) ~/.npmrc containing 1 line "globalconfig = /wheel/opt/npm/npmrc", 2) /wheel/opt/npm/npmrc containing 1 line "prefix = /wheel/opt/npm", note that those paths are just my choices, you can do whatever you like for them
<ShalokShalom2> why not?
<ShalokShalom2> because thats it for what its there
<ShalokShalom2> i do this with my current package manager too
<ShalokShalom2> ah see
<ShalokShalom2> second file
<ShalokShalom2> well, and when there is no whell in /, create one?
<ottidmes> ShalokShalom2: Like I said, that is just my location, you can choose your own
<ottidmes> ShalokShalom2: As long as you update the path in ~/.npmrc accordingly
coot has joined #nixos
<ottidmes> ShalokShalom2: You probably want to look at this too: https://nixos.org/nixpkgs/manual/#node.js-packages https://github.com/svanderburg/node2nix which would be the way to install nodejs packages via nix itself
<{^_^}> Channel nixos-18.03 advanced to https://github.com/NixOS/nixpkgs/commit/489a14add9a (from 27 hours ago, history: https://channels.nix.gsc.io/nixos-18.03)
<ShalokShalom2> oh great, he doesnt find emacs anymore xD
jrolfs_ has quit [Ping timeout: 256 seconds]
<ShalokShalom2> so, done
<Kim_> Is there a good way to handle both requiring both 32- and 64-bit dependencies in a package? Been poking around for a while and haven't found what I'm looking for
aarvar has joined #nixos
dadou has quit [Quit: Page closed]
<ShalokShalom2> ottidmes: thy
<ShalokShalom2> and now, i have to reload something?
<ShalokShalom2> in order to restore the bindings
jrolfs has joined #nixos
<clever> Kim_: what needs both 32 and 64?
<Kim_> Packaging up a weird app that has some 32-bit binaries that get called by 64-bit binaries, and no source available
detran has quit [Ping timeout: 260 seconds]
<clever> Kim_: you can use pkgsi686Linux to access the 32bit versions of packages when doing patchelf
coot has quit [Quit: coot]
<Kim_> Ah, thanks clever
Kim_ is now known as Kim
akaWolf has joined #nixos
jrolfs has quit [Ping timeout: 264 seconds]
johnw has joined #nixos
<ottidmes> ShalokShalom2: Yeah, that is what I have as well, not sure what you mean by reload something, or do you mean sourcing that script that setup Nix correctly in your shell again?
leat has quit [Ping timeout: 240 seconds]
Fare has quit [Ping timeout: 245 seconds]
jrolfs_ has joined #nixos
logzet has joined #nixos
hiroshi has joined #nixos
sud0x3 has quit [Quit: WeeChat 2.1]
jrolfs has joined #nixos
<ShalokShalom2> ottidmes: idk
<ShalokShalom2> what is the next step to restore nix?
<ShalokShalom2> clever: do you think a complete unusable state is the purpose of nix?
<ShalokShalom2> you can choose between an exceptional state and a complete broken nix
<clever> ShalokShalom2: generally, development time things shouldnt be installed globally when using nix
<ShalokShalom2> since that is it, how it looks for 90% of all casual users
<ShalokShalom2> i think technology should fit on me
<ShalokShalom2> and not the other way around
<abcrawf> That's a pretty shallow mindset.
ShalokShalom2 has left #nixos ["Konversation terminated!"]
<clever> that part msg is perfect, lol
jrolfs has quit [Ping timeout: 240 seconds]
<abcrawf> heh
<ottidmes> With that mindset I guess Nix just isn't for him
jrolfs has joined #nixos
drakonis has joined #nixos
<infinisil> Yeah..
robstr has quit [Quit: WeeChat 1.9.1]
<infinisil> Well I tried to help him with his nix installation but he didn't seem to want my help
<infinisil> ¯\_(ツ)_/¯
<lejonet> You'd think that when you pick up a tool, you atleast read the basics...
asuryawanshi has quit [Ping timeout: 245 seconds]
<lejonet> I guess node suits him, because its broken as hell
<ottidmes> infinisil: And I think his complaints about using Nix outside NixOS were mostly valid, that should be way more beginner friendly, but if you expect Nix to behave like any other FHS package manager, you are missing the point
<MichaelRaskin> Yeah, that's how people learn to emphatise with tools that require that you copy a password from the manual to the config.
jrolfs_ has quit [Ping timeout: 268 seconds]
<infinisil> lejonet: Heh, I'm glad I don't have to use node
orivej has joined #nixos
<infinisil> And if I did, I'd use nodeWithPackages or whatever it's called
<ottidmes> infinisil: What do you use? Just curious, I use mostly Haskell and TypeScript (with nodejs...)
<lejonet> ottidmes: yeah, and not just missing the point with a little, but with an astronomical length
<MichaelRaskin> Missing the point at point blank
<lejonet> Yep
<lejonet> To me his rants sounded exactly like "tldr; I didn't bother to read anything about this, why doesn't it work the way I think it should?!"
Ivan__1 has joined #nixos
<infinisil> ottidmes: Well, I was really good at Swift on macOS, but now I can't use this on Linux. I've done some Haskell stuff here and there and am trying to learn Rust now
<MichaelRaskin> The notionally hidden truth about Nix: if we don't get any new users except those who are willing to read the table of contents of the three manuals in advance, the project will move faster, not slower.
<ottidmes> lejonet: Yep, pretty much, so I hope for him he is not doing it for its day job (programming / system admin / etc), because that's unfortunately should be business as usual
<infinisil> I just got my Haskell environment set up decently for emacs, with auto-completion and stuff :D
<lejonet> ottidmes: same here
<infinisil> MichaelRaskin: Eventually the Nix way will be known as the one true way of doing things and it's gonna be the normal mindset. Children will use Haskell as their first programming language and the world will be in peace
<MichaelRaskin> Just nope
<ottidmes> infinisil: Nice, I do not find Emacs worth the learning curve and I see it as a potential time sink (I probably will be spending way too much time on tinkering with it)
<abcrawf> I've got a question for y'all about a problem I'm running into with cmake and clang. I think I've narrowed it down to nix-support/setup-hook on my system which has the following line: export NIX_CXXSTDLIB_COMPILE+="-isystem ...". When this is called twice, -isystem is smooshed into the previous argument. The problem is, I have no idea where this file is coming from. I don't see it in NixPkgs (though, I see
<abcrawf> similar contents in a few places).
<infinisil> ottidmes: I'm mostly just running evil mode (vim bindings) and learned the bare minimum of key commands to get through the day :P
<abcrawf> I'm on channels(root): "nixos-18.03.131807.489a14add9a"
alexteves_ has joined #nixos
Fare has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38529 → hamlib: 1.2.15.3 -> 3.2 → https://git.io/vxHZc
<abcrawf> Dang it, it's broken in 18.03, but fixed in unstable.
alexteves has quit [Ping timeout: 256 seconds]
<infinisil> Heh yeah, always nice to see fixes
<infinisil> Somewhat related is this issue of mine: https://github.com/NixOS/nixpkgs/issues/27533
alhariel has quit [Ping timeout: 276 seconds]
ruhatch has joined #nixos
<ruhatch> Hey all
<ruhatch> I'm playing around with NixOps encrypted links
<ruhatch> Does anyone know how to use them for SSH/SCP commands
<ottidmes> infinisil: I have had that one in the past as well, or something similar, very annoying
Fare has quit [Ping timeout: 264 seconds]
<benny> I think I've successfully build a package, how do I test it in the wild? I would think I do nix-shell -p mynewpackage but it's not part of upstream of course and nix-shell doesn't accept -I like nix-build does for my own nixpkgs clone
ndrei has joined #nixos
jperras has quit [Ping timeout: 260 seconds]
<infinisil> ruhatch: I've played around with these before too, but I didn't really get it
<judson> I can't seem to get the taffybar in master to install.
<ruhatch> infinisil: It looks like there is some sort of connection when I look at netstat
<infinisil> benny: If you have a default.nix file that you can nix-build, then you can install it with `nix-env -if.`
jperras has joined #nixos
<ruhatch> And there are aliases in /etc/hosts
szicari has quit [Quit: szicari]
<ruhatch> But there doesn't seem to be an obvious way to use the connection!
<benny> infinisil: that fails because it's a lib (it's a python module)
<judson> This is experience is not endearing Haskell to me.
<ruhatch> In the nixops tests there is a test that just runs pings between the two machines, so maybe this isn't actually meant for ssh...
ndrei has quit [Remote host closed the connection]
<infinisil> ruhatch: Ah, pinging the host alias works?
<ruhatch> Yeah
ndrei has joined #nixos
<Acou_Bass> hey everyone, ive had a problem for a while and to be honest only just thought about asking how to fix it... pulseaudio is never started when i login and i have to do systemctl --user start pulseaudio every time, i have hardware.pulseaudio.enable = true; set
<ottidmes> benny: How about: NIX_PATH=nixpkgs=/path/to nix-shell ...
<infinisil> benny: Well why do you want to install a library?
<infinisil> !library
<{^_^}> Don't install libraries through nix-env or systemPackages. See https://nixos.wiki/wiki/FAQ/Libraries for details.
leat has joined #nixos
<benny> I want to write an application and for that I need a library for development, I want to move from pip to nix
<ottidmes> Acou_Bass: Are you on 18.03 (doubt it, since you say you have it for a while), but in 18.03 you need sound.enable = true;
<Acou_Bass> well im on 18.03 now but yeah i had the issue before i upgraded too
<benny> ottidmes: that works! thanks!
knupfer has joined #nixos
<ottidmes> Acou_Bass: It should work out of the box normally, another thing you could try is to let pulseaudio be global, let me check
<Acou_Bass> wouldnt that cause issues (setting it to run as the 'pulse' user is what i assume you mean)
<ottidmes> Acou_Bass: https://nixos.org/nixos/options.html#hardware.pulseaudio.systemwide
<Acou_Bass> i have a few weird 'n whacky pulseaudio settings in my user .config files (nothing insane, but its stuff id rather keep)
<{^_^}> [nixpkgs] @andersk opened pull request #38530 → pytorch: 0.2.0 → 0.3.1 with CUDA and cuDNN → https://git.io/vxHcq
<infinisil> ruhatch: Hmm, there is ProxyCommand you can use with ssh (see the ssh_config manpage) to give a command to use for transfer, but then it would encrypt stuff over ssh as well
<ottidmes> Acou_Bass: Maybe `systemctl --user enable pulseaudio`?
<Acou_Bass> yeah ive done that =\
Ivan__1 has left #nixos [#nixos]
<ottidmes> Acou_Bass: lol, ah well, for all I know it would have worked :P
<ottidmes> Acou_Bass: Nothing in journalctl?
<Acou_Bass> hmmmm potentially!
<Acou_Bass> looks like theres a module that it doesnt like... but surely if it doesnt work on boot it wouldnt work when i start it manually either XD lemme try
<Acou_Bass> Apr 06 19:45:18 EdsNixDesktop pulseaudio[1345]: bind(): Address already in use
<benny> looks like the package works good, I should read on how to submit this upstream
<Acou_Bass> huh
michas_ has quit [Ping timeout: 276 seconds]
digitus has quit [Quit: digitus]
NightTrain has joined #nixos
Guanin has quit [Remote host closed the connection]
<Acou_Bass> hmmm yeah that weird random socket file... ill have a hunt for that
<Acou_Bass> because yeah his error looks a lot like mine :P
<ottidmes> benny: Make a checkout of nixpkgs master, add it to the right spot in the file tree and add it to pkgs/top-level/all-packages.nix at the appropriate spot and do a pull request
bkchr has quit [Quit: Konversation terminated!]
<benny> ottidmes: yeah I'm reading the contributors guide right now
<Acou_Bass> there appears to be a random -runtime file in my ~/.pulse that symlinks to nowhere
<benny> ottidmes: meta.maintainers must be set, so I add myself in my first PR to that file?
<ottidmes> Acou_Bass: Another https://bugzilla.redhat.com/show_bug.cgi?id=400201#c6 so it seems likely that that is the issue, try and clean all state folders/files of pulseaudio, clean ~/.pulse /var/lib/pulse (if such a thing exists) check /tmp as well
<clever> Acou_Bass: what exactly does it point to?
alexteves_ has quit [Ping timeout: 265 seconds]
<ottidmes> benny: I am not sure what the policy is, whether that has to go in a separate PR. I did it in a separate at the time, but the downside of that is, that your PR cannot be merged before your maintainers PR is
<Acou_Bass> clever: it was a file in /tmp/pulse-randomletters that isnt there anymore
<Acou_Bass> there was two different ones
<clever> Acou_Bass: what about the last-mod timestamp on the symlink?, it may be from ages ago and /tmp has been cleaned up
<Acou_Bass> id idnt check to be honest just removed the symlink!
chessai has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 255 seconds]
<ottidmes> Acou_Bass: I read that it might also help to fiddle with pavu control, that can apparantly help getting the state back into working order
kerrhau has quit [Ping timeout: 255 seconds]
<Acou_Bass> yeah thats the one
<Acou_Bass> wrong chat for that ^ but yeah... ill have a play around
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
<Acou_Bass> when i installed nixos i did it using an existing /home from an arch linux install so i imagine there are things leftover in my /home from the old OS
<clever> Acou_Bass: that would explain why none of my nixos machines have a ~/.pulse/
<Acou_Bass> hehe yep!
dan_b has quit [Ping timeout: 240 seconds]
telent has quit [Ping timeout: 240 seconds]
<Acou_Bass> i have both a ~/.config/pulse and a ~/.pulse
<Acou_Bass> i should probably remove one or the other
<ottidmes> Acou_Bass: Keep the ~/.config/pulse one, remove the ~/.pulse
<ruhatch> infinisil: So it looks like there is some ssh public key added to the authorized_hosts on one of the machines
<ottidmes> Acou_Bass: Since I am on NixOS and have the ~/.config/pulse one
<ruhatch> But looking at the output of ssh -v there isn't a private key being sent that matches it
iyzsong has joined #nixos
<Acou_Bass> i think pulseaudio can use either to be honest, its just the usual case of it running through the different dir's until it finds one that exists
<Acou_Bass> but i have both so i guess it gets confused
<ottidmes> ruhatch: That is what NixOPs uses to connect via SSH to the machine, so it should never send the private key
<judson> Anyway, issue created for taffybar :(
johnw has quit [Ping timeout: 260 seconds]
<Acou_Bass> and FWIW my ~/.config/pulse hasnt been touched since 2016 apparently... whereas my ~/.pulse is in use as we speak... so i guess it went for that one first (plus thats the one that has the current /tmp/ symlink in there)
hiratara has quit [Ping timeout: 276 seconds]
<ruhatch> ottidmes: In the physical specification output by nixops show-physical there is another public key, to connect between the two machines in the deployment
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/7060c5261e7 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
knupfer has quit [Ping timeout: 240 seconds]
<ottidmes> ruhatch: Ah, my use of nixops is pretty basic, but I wanted to keep the ability to use nixos-rebuild so I have only looked at the key pairs used to connect nixops with a machine so far, not sure about those interconnection ones you mention
<clever> ottidmes: if you run nixos-rebuild, then it will revert all changes nixops was doing
<clever> ottidmes: and nixops deploy will revert all changes nixos-rebuild had done
hiratara has joined #nixos
jb55 has quit [Quit: WeeChat 2.0]
<ottidmes> clever: I am quite aware, I don't mind. I use nixops mostly for testing purposes, and nixos-rebuild when I commited my config
<ottidmes> clever: So I do not have to copy over the configuration on every change, and neither do I have to commit so often
<[Leary]> If I have a.b = { c = ...; d = ...; }; in one of my imports and a.b = { e = ...; f = ...; }; in configuration.nix, do all four settings take effect or does setting the latter two unset the first two?
<clever> [Leary]: depends on the types of each attribute and the merge functions for those types
<judson> zimbatm, I'm just realizing I pinged you last night about unstable Rust and then rebooted my computer. I'm sorry about that.
foldingcookie has joined #nixos
<{^_^}> [nixpkgs] @bandresen opened pull request #38532 → pythonPackages.ewmh: init at 0.1.6 → https://git.io/vxHlC
lord| has joined #nixos
<clever> [Leary]: for most, it will inteligently merge things, for some, it will give a clear failure when they conflict, and for a rare few, it will just pick one over another
<benny> ottidmes: I went through a few commits and it seems mostly it's part of the initial version pkg commit, I don't like that so I separated the commits but kept in the same PR. Thanks!
detran has joined #nixos
<ruhatch> infinisil: So this other key is linked into /etc/static/ssh/authorized_keys.d/root and it is labelled NixOps VPN key of machine_name
<clever> ruhatch: nixops configured that
<ruhatch> Yup
orivej has quit [Ping timeout: 264 seconds]
<foldingcookie> hi, does anyone have zsh as their login shell? does "ssh you@nixbox ls" work?
<ruhatch> But how can I use it!
<ruhatch> ?
<ottidmes> benny: Sounds good. No, thank you for contributing!
<clever> ruhatch: i think it generated a systemd service that setup an ssh link between the 2 machines
<ruhatch> And how do I use that?
<clever> ruhatch: if you run `ip addr`, do you see an extra interface?
martingale has quit [Read error: Connection reset by peer]
martinga_ has joined #nixos
<ruhatch> Yeah, I've got a tun1000
<clever> there should be an ip on both ends, which you can just use
<[Leary]> Weird that the behaviour isn't uniform.. Thanks, clever. I'll just have to test all the places I'm doing this.
<clever> [Leary]: it depends on what the type was set to when the option was defined
<ruhatch> What do you mean when you say 'which you can just use'?
<clever> ruhatch: you should be able to connect to the ip of the other machine
jmeredith has joined #nixos
<ruhatch> Well I can ping the other machine at the IP
<ruhatch> But I want to be able to SSH into the other machine
Fare has joined #nixos
<ottidmes> foldingcookie: Yes, and yes
<clever> ruhatch: what happens if you run ssh against that ip?
<ruhatch> Well if I run using the alias which resolves to that ip it just asks me for a password
<clever> ruhatch: you still need your own keys to get a shell, the vpn key is only for the vpn itself
<{^_^}> [nixpkgs] @nyanloutre opened pull request #38533 → duplicati: init at 2.0.3.3 → https://git.io/vxH88
<ruhatch> Ah okay, I was hoping there would be a way of getting NixOps to provision that for me
<ruhatch> Although, why can't I use whatever key has been added to the authorized_key file for root?
<clever> ruhatch: check the .service file for the vpn in /etc/systemd/system/
<clever> you should find the path to the private in there
<foldingcookie> ottidmes: hmmm, I get 'zsh:1: command not found: ls'
<clever> ruhatch: it might be /root/.ssh/id_charon_vpn
<ruhatch> I tried that one and it didn't work sadly
<ruhatch> Checking the service file now though
<ottidmes> foldingcookie: Are you sure you not using rzsh by any chance?
<foldingcookie> I've never heard of rzsh; how would I check?
Fare has quit [Ping timeout: 276 seconds]
<ottidmes> foldingcookie: If you zsh executable is named rzsh (can be just a symlink) it will be run as a restricted shell, allowing you to do next to nothing, unless specified
<foldingcookie> passwd lists user:x:1000:100::/home/user:/run/current-system/sw/bin/zsh
chisui has quit [Ping timeout: 260 seconds]
<foldingcookie> users.extraUsers."user" = { shell = pkgs.zsh; ...
<ruhatch> Any idea what the service file might be called?
<foldingcookie> and interactive login is fine
<clever> ruhatch: nope
<ottidmes> foldingcookie: your passwd seems alright, but your shell = pkgs.zsh seems wrong
<ottidmes> foldingcookie: Shouldn't it be "${pkgs.zsh}/bin/zsh"?
<clever> ottidmes: nixos will autodetect that
<ottidmes> clever: Ah nice, I guess it would otherwise have been wrong in the passwd as well
<{^_^}> [nixos-hardware] @Mic92 closed pull request #54 → Add builtins.fetchGit to README.org → https://git.io/vx9kp
<ottidmes> foldingcookie: I would check which files zsh loads a certain points and check those on your system, probably something breaks your PATH at some point
<foldingcookie> https://github.com/NixOS/nixpkgs/issues/14256 looks like this problem but was closed in 2016
vaninwagen has quit [Quit: WeeChat 2.1]
ona has quit [Ping timeout: 265 seconds]
blankhart has quit [Ping timeout: 264 seconds]
jperras has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
sigmundv has joined #nixos
<clever> foldingcookie: did you programs.zsh.enable = true; ?
<ruhatch> clever: can't find anything sadly :(
<ruhatch> Do you know who might know more?
hiratara has quit [Quit: ZNC - http://znc.in]
Maxdamantus has joined #nixos
<clever> ruhatch: what do you see when you ls /etc/systemd/system/ on the machine nixops was controlling?
cript0nauta1 has quit [Ping timeout: 265 seconds]
<foldingcookie> clever: no, is that necessary separately from "environment.systemPackages = with pkgs; [ ... zsh ... ];"?
hiratara has joined #nixos
<clever> foldingcookie: yes, without that, you wont have a /etc/zshrc and stuff
<foldingcookie> that would explain it
<foldingcookie> thank you!
<clever> you can also remove it from systemPackages
<clever> the option i named puts it there
<foldingcookie> right
coot has joined #nixos
coot has quit [Remote host closed the connection]
<foldingcookie> awesome, it works
<{^_^}> [nixpkgs] @Infinisil opened pull request #38534 → openssh_hpn: 7.5p1 -> 7.6p1 → https://git.io/vxHBy
<ruhatch> clever: You want me to paste you the whole list?
nyanloutre_ has joined #nixos
<clever> ruhatch: yeah
<clever> preferably in a pastebin
<nyanloutre_> Hello ! How should I proceed after I submited a pull request ?
<ruhatch> clever: It's in a text snippet in private message
<lejonet> Hmm, how would I tell nix to give a specific capability to a binary? (I'm fiddling around with lxd, and lxc can't create network devices for the containers, so I'd like to put cap_net_admin+ep on the lxc binary)
logzet has quit [Remote host closed the connection]
<lejonet> security.wrappers doesn't seem to do that, it seems to only fiddle with stuff that is already wrapped or such
stefan___ has joined #nixos
<clever> lejonet: security.wrappers is how the wrappers get made
<clever> and it does have capability support
<lejonet> clever: I must've failed with setting it up then, let me fix a gist and see if you can tell me where I did wrong
<infinisil> nyanloutre_: Wait :)
<nyanloutre_> @infinisil Thanks :)
<lejonet> clever: oh, I think I just realized my mistake lol... I did security.wrappers.lxd = { stuff } where I indeed wanted to do lxc = :P
<clever> lejonet: ah, so that made an lxd binary!
<lejonet> clever: and probably clobbered and broke stuff, ooops! :P
martinga_ has quit [Read error: Connection reset by peer]
<infinisil> nyanloutre_: I'm having a look at it now. What does mono do exactly? It's a windows program only, and it just runs the exe?
martingale has joined #nixos
<lejonet> mono is the linux-port of .NET/C# iirc
<infinisil> Ah, I just see some other package doing that too to run exe files
<nyanloutre_> infinisil : mono is a cross platform dot net implementation
<ruhatch> clever: From what I can see here (https://github.com/NixOS/nixops/blob/884d6c3994b227eb09c307e5d25d6885c9af8220/nixops/backends/__init__.py) /root/.ssh/id_charon_vpn is supposed to be the private key
Fare has joined #nixos
<ruhatch> But this isn't being authorized for some reason
spear2 has joined #nixos
<lejonet> clever: meh, lxc start still gets "failed to create veth pair", I guess it might be lxd I actually want to patch with it, logically it should be lxd that does the heavy lifting afterall
ona has joined #nixos
iyzsong has quit [Ping timeout: 264 seconds]
<ruhatch> clever: Oh - it worked one way using /id_charon_vpn, but not the other
telent has joined #nixos
dan_b has joined #nixos
<ruhatch> So it looks like this is not what these keys are supposed to be for...
Fare has quit [Ping timeout: 264 seconds]
<ruhatch> The implementation has this in it
<clever> yeah, its meant to be used by a vpn link, nixops will tunnel the packets over ssh
boomshroom has joined #nixos
<ruhatch> # FIXME: set up the authorized_key file such that ‘m’
<ruhatch> # can do nothing more than create a tunnel.
<clever> and that
<ruhatch> Okay, well is there any mechanism to set up keys for the two machines to ssh into each other?
<clever> manually run ssh-keygen on each machine, and then put the publics into the nixops config
<boomshroom> Hello!
<ruhatch> Yeah, seems like the only way
<ruhatch> Thanks for your help!
<clever> yep
<lejonet> clever: hmm, if I want the security.wrapper for my user only..., anyway to do that? (going to add the setuid that chromium and vivaldi want for their sandboxes, but atleast vivaldi is unfree, and don't really want to enable unfree in configuration.nix)
<boomshroom> How's wayland support at the moment and does anyone have experience with bcachefs?
<lejonet> clever: home-manager or similar, is that the answer perhaps?
jrolfs_ has joined #nixos
<clever> lejonet: only root can create the wrappers
<clever> so home-manager wont work
<lejonet> clever: true
<lejonet> so I guess unfree in configuration.nix is the only way then
<clever> there is also an unfree predicate, let me fidn it
<lejonet> :D
sanscoeur has quit [Ping timeout: 264 seconds]
<clever> lejonet: instead of just blinding allowing all unfree, you give it a function from package name to boolean
<clever> then you can enable only one unfree package
<rycee> infinisil: Yeah, Thomas Strobel was nice enough to contact me when he prepared the updated PR for nixcon, I think it was in November. Unfortunately I made a mess of that because I had to start work full time and had difficulties keeping up with work and my other obligations. I had hopes for others to do a thorough review of the nixup PR but I think it turned out too daunting (it is quite large).
endformationage has joined #nixos
<lejonet> clever: so basically do nixpkgs.config.allowUnfreePredicate = (x: pkgs.lib.hasPrefix "vivaldi-" x.name); should work?
<clever> lejonet: yeah
<lejonet> clever: wuhu!
<infinisil> rycee: I see, thanks for the info :)
bpa has quit [Remote host closed the connection]
jrolfs_ has quit [Ping timeout: 264 seconds]
<rycee> infinisil: And as it looks right now I'm unlikely to have enough free time until Oct-Nov :-(
simukis has quit [Ping timeout: 260 seconds]
ndrei has quit [Remote host closed the connection]
Ralith_ has quit [Ping timeout: 260 seconds]
<lejonet> clever: meh, proprietary garbage and their hardcoded idiocy, vivaldi doesn't want to accept the wrapper, for some odd reason it requires the binary at the nix store path to be 4755 :(
<clever> lejonet: chrome had similar problems, the derivation has to be patched to put a symlink into /run/wrappers in the store
<MichaelRaskin> Is there some --no-sandbox flag like for chromium?
<boomshroom> lejonet: As a fellow Vivaldi user, what's the issue?
<clever> lejonet: then the setuid wrapper calls back to the real binary
<infinisil> rycee: You're maintaining HM very well though I have to say :O
<adamt> Oh the joy. We had to LD_PRELOAD stuff to get our backup tool working, because it didn't liked being run from a link.
<lejonet> boomshroom: vivaldi is being a fussyputt and not liking that its sandbox binary doesn't have setuid and stuff
<lejonet> clever: probably the case here too
johnw has joined #nixos
Ralith_ has joined #nixos
<infinisil> Isn't setuid a bad thing, especially for a browser??
<infinisil> Oh but the sandbox might need it, right
<lejonet> infinisil: its a helper binary that gets the setuid, luckily
davidlt has quit [Ping timeout: 260 seconds]
<lejonet> but yeah, setuid is generally Bad(TM)
<foldingcookie> now that I've set "programs.zsh.enable = true;", I have a green tilde printed at the right edge of my terminal with the prompt...
<judson> How does hashell-packages get generated?
<adamt> foldingcookie: Isn't that just zsh' right side prompt?!?
<adamt> (showing you current dir i think)
<foldingcookie> the same user configuration doesn't show it on Arch; I'd never seen it before
<clever> foldingcookie: probably from the /etc/zshrc nixos made
<foldingcookie> yes, I'm trying to figure out where it does that
blankhart has joined #nixos
<ottidmes> foldingcookie: its caused by RPROMPT
<foldingcookie> RPROMPT is unset
<lejonet> MichaelRaskin: yes, there is a --no-sandbox, I just hoped there was a quick way to not need to do that :P
<foldingcookie> same for RPS1, etc.
<foldingcookie> oh wait wrong terminal
<foldingcookie> thanks
ona has quit [Read error: Connection reset by peer]
<MichaelRaskin> lejonet: why would you believe the browser does sandboxing correctly? It is Blink, for Cthulhu's sake. It's not like Chrome has been recently found to ship with a specialised anti-virus and scan all the files on the Windows computers
<MichaelRaskin> nsjail, and one page per browser instance, and unique UIDs. And who cares about whatever the built-in sandbox was trying to do…
<foldingcookie> https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/programs/zsh/zsh.nix#L72 why does nixOS use the walters config by default?
alex`` has quit [Ping timeout: 265 seconds]
<lejonet> MichaelRaskin: I never said I believe it did the right thing, just that giving it its sandbox would make it less whiney :P
<judson> infinisil, I'm looking at https://github.com/NixOS/nixpkgs/issues/38531#issuecomment-379404159 and wondering what the right way to do that would be.
tertle||eltret has quit [Quit: Connection closed for inactivity]
<infinisil> judson: I mean if you wanna get taffybar working as fast as possible you can just use an older nixpkgs version
<nyanloutre_> Thanks for the help infinisil, I will look into this tomorow !
<infinisil> nyanloutre_: :)
<judson> I want taffybar 1.0 though ;) I've been waiting for a long time for it to get into hackage, infinisil.
<infinisil> Ah I see
<judson> I'm cherrypicking Averell's patches and the build is running now.
<judson> So *I'll* have it.
<judson> But as is, taffybar is broken in master.
jrolfs has quit [Ping timeout: 240 seconds]
xy2_ has quit [Ping timeout: 265 seconds]
<judson> And the fixes to make it work involve editing hackage-packages.nix
<clever> judson: there is a configuration-common.nix nearby, that has overrides for it
<infinisil> Yeah, I think all of those patches should be able to go in that file
<infinisil> judson: overrideCabal is probably the thing to use to add an additional libraryPkgconfigDepends
<infinisil> This file contains a whole bunch of stuff you can do to change the generated set
* lejonet does a security.wrappers = { MichaelRaskin = { source = MichaelRaskin; }
nyanloutre_ has quit [Ping timeout: 260 seconds]
<clever> foldingcookie: for bash on ubuntu, the prompt is prefixed by the unterminated line, which is fugly but still intact
<foldingcookie> clever: I'm only concerned with parity of zsh behavior across distros
<clever> foldingcookie: bash on nixos always has a \n at the start of the prompt, leaving a spare blank line 90% of the time
<clever> zsh could also add that spare \n
<foldingcookie> it does, except that it seems the nixOS default configuration triggers a zsh bug that disables that
jrolfs_ has joined #nixos
<foldingcookie> (and only in cases where the command was not newline-terminated)
<foldingcookie> er, the output
jrolfs has joined #nixos
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
<rycee> infinisil: Thanks 😃 I'm glad people like and use it.
<tnks> Last I looked it up, I convinced myself that the difference between nativeBuildInputs and buildInputs is whether the dependency ends up referenced in the built artifact or not.
<tnks> Is that incorrect?
<infinisil> rycee: You probably saw this already, but if not: https://github.com/NixOS/nixpkgs/pull/38522
<lejonet> Hmm, what is the correct way of overriding a services ExecStart? Its not liking me doing a systemd...serviceConfig = systemd...serviceConfig // { ExecStart = "stuff" }; :P
jrolfs_ has quit [Ping timeout: 260 seconds]
<clever> lejonet: ExecStart cant really be overriden easily
<lejonet> clever: fair enough I guess, bleh
<infinisil> lejonet: Just do systemd.foobar.serviceConfig.ExecStart = mkForce "...";
<MichaelRaskin> Not even with mkForce?
<infinisil> It totally works, not sure what clever means :P
<lejonet> infinisil: poor service... :P
<lejonet> mkForce is in nixpkgs.lib right?
<infinisil> yeah, you can add it to the argument list at the top to get it
<infinisil> { pkgs, lib, ... }: ...
<clever> infinisil: the option is serviceConfig, not ExecStart
<infinisil> (You probably knew that already though, I excuse me)
Sonarpulse has quit [Quit: Leaving]
<clever> infinisil: so you cant use mkForce within the serviceConfig
jrolfs has quit [Ping timeout: 240 seconds]
johnw has quit [Ping timeout: 264 seconds]
<lejonet> infinisil: ^^ but this is in configuration.nix, so
<{^_^}> [nixpkgs] @giraffito opened pull request #38535 → nixos/zsh: do not set ZSH prompt to the 'walters' style → https://git.io/vxHuj
<infinisil> clever: It works through submodules
<infinisil> I just recently used mkForce to override ExecStart and it worked :)
<clever> example?
<infinisil> lejonet: Yeah, the arguments work in configuration.nix
<lejonet> infinisil: yeah, that I know, and I seemed to have guessed right that pkgs == nixpkgs so pkgs.lib works :)
<lejonet> (I'm a tad tired, so that statement/question was more a double check xD )
<infinisil> clever: Well we're gonna see whether it works once lejonet builds it
<lejonet> it worked fine enough, I just seem to have screwed something else up that made it yell at me, but that is not nix related at all :P
<infinisil> clever: Ah here, nix-build this: https://git.io/vxHzs
<infinisil> In the resulting service file you can see that ExecStart is not the normal nix-serve one
jrolfs has joined #nixos
<lejonet> Hmm, now to figure out what the @ in the beginning means (was a while since I looked into systemd.unit, and can't remember seeing anything about a @ prefix for an ExecStart command, only for template services)
<clever> infinisil: you dont need writeScript for that also
<clever> infinisil: ExecStart can just be line 8 alone
<clever> oh wait, yeah, the nix-remote hmmm
<elvishjerricco> What's the fastest way to automatically spin up an ubuntu machine of some sort? To spin up a new NixOS, I just do a nixops virtualbox deployment. Obviously nixops can't deploy ubuntu, but I'd like to do something similarly automatic.
<clever> id just use nix-serve.script if i could
<infinisil> clever: Yeah, the guy i was helping wanted to use this on a non-nixos machine
<tnks> no takers for my quick question about nativeBuildInputs versus buildInputs?
<clever> elvishjerricco: i have a debian and ubuntu iso that i just booted inside virtualbox and installed normally
<infinisil> clever: In theory, the environment should be overridable
<clever> tnks: neither winds up being a runtime dependency
<elvishjerricco> clever: But I don't want to manually step through an install process :P
<clever> tnks: nix detects the runtime ones by scanning $out to see what you are still refering to
<tnks> clever: shucks, I'm thinking about this wrong still.
<edef> lejonet: it sets argv[0] to the second thing
<elvishjerricco> tnks: propagatedBuildInputs is more like a runtime dependency
<tnks> clever: sorry, that's not what I mean exactly... I understand the part you explained.
<lejonet> edef: yeah, just found it, thanks :)
<edef> lejonet: @/bin/foo bar baz makes argv "bar", "baz"
<infinisil> clever: As in `nix-serve.environment.NIX_DAEMON = null` should work, but it doesn't because it has the wrong type (types.attrs instead of types.attrsOf (...))
<edef> this is such an awful DSL
<clever> infinisil: "" ?
<tnks> clever: what I mean, is what exact question should I ask myself when deciding when to put something under nativeBuildInputs versus buildInputs?
<elvishjerricco> tnks: nativeBuildInputs are tools that need to be run on the build machine. buildInputs are things that run on the target machine
<edef> the systemd sigils, that is
<infinisil> clever: still the same problem, doesn't override it
<boomshroom> Quick question: the mozilla rust overlays download the prebuilt rust binaries? Should I wish to to make a custom build, I'd need to write a new derivation?
<elvishjerricco> tnks: So it's usually only relevant for cross compilation
<infinisil> clever: This PR fixes that: https://github.com/NixOS/nixpkgs/pull/38356
<clever> tnks: nativeBuildInputs are compile-time only things like cmake, that need to run on the machine building the package
<clever> tnks: buildInputs are runtime things like libraries,that have to be cross-compiled to the target platform
<clever> tnks: if your not cross-compiling, they both do the same thing
<clever> infinisil: ah
<tnks> clever: okay, so if I was being conservative, I could put everything under "buildInputs" and not be efficient, but not be wrong?
<clever> tnks: yeah, most packages just use buildInputs, it only becomes a problem if somebody ever wants to cross-compile it
<tnks> also, I'm not cross-building, but I'm not opposed to having a more robust Nix expression.
<tnks> clever: but by "problem" you mean it's inefficient?
<clever> tnks: it will build the arm version of cmake, then try to run it on an x86 machine, and obviously fail
<foldingcookie> now zsh startup takes ~1.5s?
<tnks> clever: elvishjerricco: okay, I think I understand now
<tnks> in that regard, I feel my original way of stating this was not incorrect.
<{^_^}> [nixpkgs] @primeos pushed to master « lf: 1 -> 2 »: https://git.io/vxHzP
<tnks> shared libraries are pulled in as runtime dependencies.
<tnks> but not by forcing them to be with propagation, but by the smart search of $out
<infinisil> foldingcookie: Definitely needs some cleanup.. I'm not a fan of NixOS' default zsh stuff either
<foldingcookie> hm, it seems "compinit" is taking all the time
<tnks> so if I have build inputs that are going to be pulled in this way, they should be normal "buildInputs"
<foldingcookie> (in /etc/zshrc)
<foldingcookie> sadly I am not a zsh expert and don't know why that would be there in the first place
<infinisil> foldingcookie: It's not there for me?
<foldingcookie> ${optionalString cfg.enableCompletion "autoload -U compinit && compinit"}
<infinisil> Ah right
<infinisil> I disabled completion
<infinisil> I have all my zsh config in the user level
mero has quit [Remote host closed the connection]
<infinisil> Well most of it