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 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
<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
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
<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 ...
<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.
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]
<{^_^}>
[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
<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...
<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]
<{^_^}>
→ 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: 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]
<{^_^}>
→ 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
<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?
<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]
<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
<{^_^}>
→ 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
<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?
<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
<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>
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
<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'
<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
<{^_^}>
[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 :'(
<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]
<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
<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
<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?
<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.
<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.
<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
<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...
<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
<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 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>
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.
<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] @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.....
<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
<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
<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
<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)
<{^_^}>
[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
<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
<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 :)
<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
<{^_^}>
→ 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
<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
<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
<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
<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] @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
<{^_^}>
[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
<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
<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"
<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?
<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: 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
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
<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
<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
<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
<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
<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
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…
<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.
<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>
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