<sir_guy_carleton>
okay, weird, typing in nix-channel --list brings no results
<elvishjerricco>
sir_guy_carleton: Try it as root
<sir_guy_carleton>
elvishjerricco: ah okay, it fine thanks
oltoAltn has joined #nixos
<sir_guy_carleton>
when do system package programs get upgraded?
<samueldr>
sir_guy_carleton: (assuming nixos) those in environment.systemPackages will be updated when the channel is updated, at the next nixos-rebuild
olto has quit [Ping timeout: 244 seconds]
<samueldr>
and those installed with `sudo nix-env -i` if any, manually using `sudo nix-env -u` (iirc)
mizu_no_oto has joined #nixos
<samueldr>
there's `nixos-rebuild ___ --upgrade` which can be used to update the channels before rebuilding
steell has joined #nixos
lassulus_ has joined #nixos
seafood has joined #nixos
<sir_guy_carleton>
hmm, okay. there's a website that shows what versions of some popular pieces of software have been pushed to the various nixos channels, right?
<samueldr>
maybe
<samueldr>
I know of one which shows all software, not only popular
<sir_guy_carleton>
well that's the one i was thinking of
<mpickering>
I think it is added here but I don't understand particularly
marusich has joined #nixos
<sir_guy_carleton>
samueldr: okay, let me see if i understand correctly. nixos-rebuold will simple make the system conform to what is specified in configuration.nix (and any files refered by it), but it doesn't upgrade any of the packages specified by it?
<mpickering>
Adding /nix/store makes the image 2gb bigger :.
<clever>
mpickering: i think thats so that docker just unpacks the whole file to a dir that becomes / after the chroot
<sir_guy_carleton>
you need to update the channel for it?
<samueldr>
sir_guy_carleton: it will make it conform to configuration.nix, with the current channel
<samueldr>
so yes
<clever>
mpickering: run ncdu on that store dir, what path within store is the biggest?
<samueldr>
there's the shortcut `nixos-rebuild switch --upgrade` for a one quick step
<clever>
mpickering: buildImage will always put a /nix/store/ into the image
<mpickering>
ncdu is not installed in the image. But du -sh * reports that 1.2G3cv3s9lv79qjkqyafbclbk03gz5z813w-ghc-8.2.2 is the biggest path
<samueldr>
well, that's a simplification, it conforms the system to <nixpkgs>, which for you is the root's channel (and the default)
<clever>
mpickering: then your real problem is that you depend on ghc at runtime, use `nix why-depends` to figure out why
<shachaf>
Hmm, I can only boot if I add "nomodeset" as a boot option.
<mpickering>
That was /lib
<mpickering>
But /lib/ is the same?
<clever>
they will only differ if it was a symlink
<mpickering>
du -sh * reports that /lib is 1.3gb and /nix is 1.9gb. fwiw
<iqubic>
How hard is it to setup a python3 virtualenv with pip? And will I be able to use "pip install" in said virtualenv?
<clever>
mpickering: the root problem, is that all of the paths in the binaries are hard-coded to /nix/store/
smallville7123 has joined #nixos
<clever>
mpickering: so the real question, is why does /lib exist in it?
seafood has quit [Quit: seafood]
ikitat has quit [Ping timeout: 248 seconds]
<mpickering>
I'll have to come back to this when not pushed for time
<clever>
mpickering: i'm looking into it a bit on this end
smallville7123 has quit [Quit: rosa]
<shachaf>
Is there a boot flag to start up without running X?
sir_guy_carleton has joined #nixos
jackdk has quit [Ping timeout: 244 seconds]
sigmundv__ has quit [Ping timeout: 260 seconds]
roconnor has quit [Quit: Konversation terminated!]
<samueldr>
shachaf: I haven't tried it, but systemd.mask= could probably be used with systemd.mask=display-manager.service
<samueldr>
(as a kernel parameter)
<shachaf>
Hmm, I'll try that if this keeps happening
ryantm has quit [Remote host closed the connection]
matthewbauer has quit [Remote host closed the connection]
acarrico has quit [Ping timeout: 240 seconds]
schoppenhauer has quit [Ping timeout: 260 seconds]
jackdk has joined #nixos
schoppenhauer has joined #nixos
<elvishjerricco>
shlevy: Are you still cross compiling NixOS?
shabius has quit [Ping timeout: 256 seconds]
Wharncliffe has quit [Quit: Lost terminal]
<shachaf>
I can't get the X server to start up so it's hard to look this up. How can I disable nouveau, which I think is being automatically turned on and causing trouble?
sbdchd has quit [Remote host closed the connection]
sigmundv_ has quit [Ping timeout: 244 seconds]
lewo` has quit [Remote host closed the connection]
lewo`` has joined #nixos
Guest87130 has quit [Ping timeout: 268 seconds]
stew has joined #nixos
sigmundv_ has joined #nixos
itzmjauz_ has joined #nixos
dev2 has joined #nixos
lstanley_ has joined #nixos
shoogz has quit [*.net *.split]
Biappi has quit [*.net *.split]
linuxdaemon has quit [*.net *.split]
aszlig has quit [*.net *.split]
frank87 has quit [*.net *.split]
flokli has quit [*.net *.split]
goodwill has quit [*.net *.split]
infty has quit [*.net *.split]
Kim has quit [*.net *.split]
PyroLagus has quit [*.net *.split]
sc_ has quit [*.net *.split]
johnhamelink has quit [*.net *.split]
mbrock_ has quit [*.net *.split]
ericbmerritt_ has quit [*.net *.split]
ghuntley has quit [*.net *.split]
nand0p has quit [*.net *.split]
scott has quit [*.net *.split]
midchildan has quit [*.net *.split]
aristid has quit [*.net *.split]
TrentP has quit [*.net *.split]
nkaretnikov has quit [*.net *.split]
dotlambda has quit [*.net *.split]
cruxeternus has quit [*.net *.split]
jophish has quit [*.net *.split]
philips has quit [*.net *.split]
mgdelacroix has quit [*.net *.split]
terrorjack has quit [*.net *.split]
gridaphobe has quit [*.net *.split]
dmj` has quit [*.net *.split]
h30 has quit [*.net *.split]
thoughtpolice has quit [*.net *.split]
Tritlo has quit [*.net *.split]
srid has quit [*.net *.split]
noefk has quit [*.net *.split]
fyuuri has quit [*.net *.split]
symphorien has quit [*.net *.split]
paraseba has quit [*.net *.split]
alfie has quit [*.net *.split]
nixy has quit [*.net *.split]
smola has quit [*.net *.split]
ajmccluskey has quit [*.net *.split]
anton_ has quit [*.net *.split]
bobj has quit [*.net *.split]
jbetz has quit [*.net *.split]
wavewave has quit [*.net *.split]
dgonyeo has quit [*.net *.split]
r0bby has quit [*.net *.split]
oh_lawd has quit [*.net *.split]
johs has quit [*.net *.split]
jonasem has quit [*.net *.split]
rizary has quit [*.net *.split]
carter has quit [*.net *.split]
bmpvieira has quit [*.net *.split]
luigy has quit [*.net *.split]
hexagoxel has quit [*.net *.split]
Guest6248 has quit [*.net *.split]
lstanley has quit [*.net *.split]
itzmjauz has quit [*.net *.split]
evax_ has quit [*.net *.split]
dev1 has quit [*.net *.split]
lstanley_ is now known as lstanley
jD91mZM2 has joined #nixos
<shachaf>
Is there a way I can force that package not to be installed or something?
<samueldr>
(I dumped all that here since I'm leaving for the night take care all)
<iqubic>
samueldr: Goodbye.
qz has joined #nixos
<shachaf>
I just want to use the Intel card for now.
<shachaf>
samueldr: Thanks, hopefully I can figure it out.
<shachaf>
I just want to get the X server running at all first, rather than segfaulting like it is now.
linuxdaemon has joined #nixos
steell has quit [Ping timeout: 240 seconds]
newhoggy_ has joined #nixos
YaZko has joined #nixos
schoppenhauer has quit [Ping timeout: 256 seconds]
newhoggy has quit [Ping timeout: 260 seconds]
schoppenhauer has joined #nixos
nallar has joined #nixos
Ross has quit [Ping timeout: 268 seconds]
nallar is now known as Ross
<judson>
I'm having some trouble with a Ruby nix-shell environment. I'm not sure if it's Nix or Ruby...
<judson>
But I'm getting errors like "bundler/rubygems_integration.rb:458:in `block in replace_bin_path': can't find executable bundler for gem bundler (Gem::Exception)"
alexteves__ has quit [Ping timeout: 256 seconds]
<judson>
Does that look familiar to anyone? zimbatm, maybe?
doyougnu has quit [Quit: WeeChat 1.9.1]
newhoggy_ has quit [Remote host closed the connection]
newhoggy has joined #nixos
orivej has joined #nixos
periklis has joined #nixos
aarvar has joined #nixos
Have-Quick has quit [Remote host closed the connection]
newhoggy has quit [Remote host closed the connection]
periklis has quit [Ping timeout: 248 seconds]
newhoggy has joined #nixos
nkaretnikov has joined #nixos
sigmundv_ has quit [Remote host closed the connection]
mahalel_ has quit [Remote host closed the connection]
<judson>
Figured it out - had to do with groups.
newhoggy has quit [Remote host closed the connection]
newhoggy has joined #nixos
periklis has joined #nixos
robstr has joined #nixos
owickstrom_ has joined #nixos
jperras has joined #nixos
jperras has quit [Ping timeout: 240 seconds]
seafood has joined #nixos
alex`` has joined #nixos
Ariakenom has joined #nixos
spear2 has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @vbgl opened pull request #41346 → opaline: init at 0.3.1 → https://git.io/vhcag
sary has quit [Ping timeout: 240 seconds]
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<clever>
mpickering: yeah, something seems off with the docker images
<hc>
Hi all! The link to the install image iso's sha256 goes to cloudfront. Shouldn't the sha256 be hosted directly on nixos.org?
<hc>
Or, better yet, how about gpg-signing the SIGNATURES file?
asuryawanshi has quit [Remote host closed the connection]
<etu>
boomshroom: I have read about it. But haven't tried it.
asuryawanshi has joined #nixos
leat has quit [Ping timeout: 256 seconds]
<boomshroom>
etu: I first saw it before it was released and now it's open source in public beta. From what I can tell, it's an attempt at a visual language that can fallback on a usable textual representation (that resembles the ML family).
qz has joined #nixos
<etu>
boomshroom: Someone should make a nix package of it :)
<boomshroom>
It's focus seems to be data processing and its visual representation seems to just be a data-flow graph.
magnetop` has quit [Remote host closed the connection]
<boomshroom>
In other news: `builder for '/nix/store/gknffqzgrnbx17mj2znyf067bimhn5cc-stack2nix-0.1.3.0.drv' failed with exit code 1;` `Module ???Nix.Parser??? does not export ???parseNixString???`
<boomshroom>
Those "???"s printed as unicode characters in the output, but weechat stupidly decided to replace them with question marks.
<boomshroom>
The part of Luna that I'm most excited about is writing code normally and watch the dataflow grpah built as I type.
<jD91mZM2>
Is that unstable? Sorry, I don't know how nix pre-releases work heh
<boomshroom>
Running `sudo nixos-rebuild switch --upgrade` gives several warnings about `Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring`. It is nixos-unstable.
<boomshroom>
Attempting to use nox prints a bunch of `derivation '<package>' has invalid meta attribute 'platforms'`
<jD91mZM2>
I think somebody got a similar warning yesterday, but I'm not sure
<jD91mZM2>
I think I was wrong, I can't find it in the logs
<Plato[m]>
I've got this warning, too, by the way.
newhoggy_ has quit [Remote host closed the connection]
<jD91mZM2>
Okay so I can't compile stack2nix either boomshroom
<jD91mZM2>
With unstable, I mean
<jD91mZM2>
You should report an issue :)
jperras has joined #nixos
<{^_^}>
[nixpkgs] @limeytexan opened pull request #41349 → perlPackages.Git: init at 0.42 → https://git.io/vhcKq
coot has joined #nixos
tzemanovic has joined #nixos
<boomshroom>
jD91mZM2: It looks at first glance that that's an old issue that's been resolved, but not published as a version.
jperras has quit [Ping timeout: 256 seconds]
michas_ has joined #nixos
semilattice has quit [Ping timeout: 240 seconds]
<jD91mZM2>
boomshroom: Link?
<boomshroom>
jD91mZM2: The version on hackage as the problem but the git master doesn't.
<jD91mZM2>
Ah, right
<boomshroom>
Currently building the master even though its late and I should get to bed.
<jD91mZM2>
You could also use nix-shell with a stable channel if you just want a quick fix
<magnetophon>
sphalerite: hi, are you there? I have a log of the kind we talked about: https://pastebin.com/TEKtrza4
<jD91mZM2>
Oooh, so you were the one who got the $HOME/.nix-defexpr/channels problem as well
<jD91mZM2>
magnetophon: What does `ls -l /etc/hosts` say? And `lsattr /etc/hosts`?
<sphalerit>
magnetophon: yeah, a bit busy today though. Maybe someone else can help you, or I can have another look tomorrow
<sphalerit>
Oh! That looks like it would be the cause actually!
<magnetophon>
-rw-r--r-- 1 777 wheel 968699 28 mei 22:20 /home/bart/nixosConfig/hosts
<sphalerit>
Because your home dir is probably o-rx
<jD91mZM2>
Who is user 777?
<magnetophon>
sphalerite: thanks.
<jD91mZM2>
Oooo good point sphalerit, I forgot parent directories' permissions matter
<magnetophon>
jD91mZM2: ah, that'smy error. no such user. I\ll try and fix itorres
<sphalerit>
So yeah you need to make sure your hosts file is accessible to all users. The easiest way is to make it get copied to the store
michas_ has quit [Ping timeout: 244 seconds]
<jD91mZM2>
Did you manually change /etc/hosts, or is the nix config doing it? Because I don't think nix is supposed to symlink stuff to a user's local file
<magnetophon>
jD91mZM2: it's in my config.
tzemanovic has quit [Remote host closed the connection]
<ldlework>
If I have an option which takes text, and I have a file at ./foo which contains the text I want to set the option to, how do I do that?
<ldlework>
I assume that doing
<ldlework>
someTextOption = ./foo;
<ldlework>
which set the option to the filename of ./foo in the store
<ldlework>
how to get the text?
shoogz has joined #nixos
<tilpner>
The common solution to allowing input as both strings and files is having two mutually exclusive options: see e.g. users.users.<name?>.openssh.authorizedKeys.keyFiles and users.users.<name?>.openssh.authorizedKeys.keys
terrorjack has joined #nixos
dmj` has joined #nixos
<tilpner>
If you are the user of a module that only offers the non-file version, you can use "builtins.readFile ./foo"
<ldlework>
cheers
<ldlework>
in a nix module, builtins is a name that's always avaialble right
<ldlework>
you don't have to put builtins as one of your module's attrset parameters?
<tilpner>
It is available everywhere, so also in modules
<ldlework>
thanks
<ldlework>
tilpner: last question; where is callPackage?
<ldlework>
builtins? lib?
<tilpner>
There are multiple callPackages. The most common one is perhaps pkgs.callPackage
<boomshroom>
I was able to get a stack2nix file with the luna components, but the studio seems more complex to build.
<ldlework>
All that does is introspect a function which takes an attrset, and automatically passes those arguments, with the ability to override some inherited names right?
<ldlework>
I just read the nix pill on it...
<tilpner>
Correct
<ldlework>
pretty handy
civodul has joined #nixos
<tilpner>
It's also useful because it carries along the autoArgs set
<ldlework>
the ... thing?
<tilpner>
So that you don't have to take { pkgs, callPackage, ... }, just to use callPackage
<etu>
ldlework: that is called ellipsis (the three dots)
<tilpner>
The autoArgs set is the set it will automatically pick arguments for the to-be-called function from
<ldlework>
I'm not sure anyone present cares, but the ZNC nixpkg is very limited. ZNC supports multiple users, but you can only configure a single one.
<tilpner>
(That's a limitation of the module, not the package)
<ldlework>
Yeah, that's clearer.
<ldlework>
Needs to somehow loop over multiple user configs. In time I might learn enough Nix to tackle it.
<tilpner>
I enabled mutable config, because I don't want to redeploy every time I join a channel (and because the ZNC is supposed to be temporary)
<ldlework>
Heresay!
<ldlework>
errr
<ldlework>
Heresy!
<ldlework>
lol
<ldlework>
redeploying with nixops is crazy easy!
<tilpner>
And will you give every user rights to redeploy your server?
<ldlework>
Also I kind of like the fact that channels I don't put in my config, will dissapear next time I redeploy.
<ldlework>
No but the only other user would be my girlfriend, and I'll rebuild a nix machine on her behalf anytime.
<ldlework>
You're a great help though. Thank you.
marusich has quit [Quit: Leaving]
jackdk has quit [Ping timeout: 256 seconds]
<sphalerite>
ldlework: infinisil uses znc and has been improving it recently iirc
<ldlework>
That's cool.
<ldlework>
I'm trying to get it all setup with ssl over both connections, with client-cert auth
boomshroom has quit [Quit: WeeChat 2.0]
seafood has joined #nixos
hamishmack has joined #nixos
leat has joined #nixos
Guest1138 has joined #nixos
coot has quit [Quit: coot]
coot has joined #nixos
lonokhov has joined #nixos
tzemanovic has joined #nixos
thc202 has joined #nixos
tzemanovic has quit [Ping timeout: 244 seconds]
<infinisil>
ldlework: My university semester ends today so I'll have more time now, I'll try to finish my znc module rewrite asap :)
<teto1>
what's the difference between clangStdenv and libcxxStdenv ?
hlolli has joined #nixos
nc_ has quit [Ping timeout: 248 seconds]
<periklis>
teto1: libcxxStdenv is just the c++ stdlib
newhoggy has joined #nixos
jperras has joined #nixos
<teto1>
it's weird, castxml picks up correctly cstddef but not stddef.h which is in the same folder "/nix/store/sxl790snpps39npa06l6l058nk4g0rf5-libc++-5.0.1/include/c++/v1/cstddef:44:15: fatal error: 'stddef.h' file not found".
<periklis>
teto1: is this fatal error a build error? Or an error when you compile your code looking for libcxxStdenv?
winem_ has joined #nixos
nc_ has joined #nixos
jperras has quit [Ping timeout: 276 seconds]
gmarmstrong has joined #nixos
<teto1>
periklis: it happens when trying to generate python bindings in https://github.com/NixOS/nixpkgs/pull/41264. The C++ code compiles ok with libcxxStdenv . Then I try to generate python bindings with "./waf --apiscan=all". This calls pybindgen -> pygccxml -> castxml. Castxml relies on libclang to build the AST and the rest generates the bindings. But castxml can't parse the thing. I wonder if I should change its
<teto1>
(propagated)buildInputs , i am a bit lost
<periklis>
hmm... cstd headers are afaik somehow wildly included by c++ compilers, there is this include_next macro
<{^_^}>
[nixpkgs] @Mic92 opened pull request #41350 → godep: remove in favor of dep → https://git.io/vhcQ8
<srhb>
domenkozar: Nice job, was excited to see what you did. :)
andi- has quit [Ping timeout: 256 seconds]
periklis has quit [Ping timeout: 244 seconds]
<domenkozar>
thanks :)
<domenkozar>
hope you find it useful :)
<periklis`>
dottedmag: sure when overlays land in. we at HolidayCheck use an overlay approach for our corporate packages inspired by nixpkgs-mozilla
<srhb>
domenkozar: You have a typo in the roadmap: Garbage collecttion
<teto1>
that's freaking cool
seafood has quit [Quit: seafood]
<domenkozar>
thanks
<teto1>
periklis`: thanks for the interesting link, what a mess :)
seafood has joined #nixos
<domenkozar>
srhb: fixed
<srhb>
domenkozar: \o/
<periklis`>
teto1: it's a mess accounting thirty years of c-compatibility
<teto1>
periklis`: oh I understand your comment now: castxml doesn't pick up the stddef.h in the same folder because that's the behavior of #include_next. Any idea where it should look for then ? .
<teto1>
domenkozar: when is cachix client reaching nixpkgs ?
<{^_^}>
[nixpkgs] @Mic92 opened pull request #41352 → dep2nix: init at 0.0.1 → https://git.io/vhc5W
<teto1>
I use nix 2.0 but it doesn't use the binary cache, maybe because of some changes in my local nixpkgs
<srhb>
teto1: You'd have to make some fairly severe changes far down the dependency line to get no cache at all
knupfer has joined #nixos
Have-Quick has quit [Ping timeout: 240 seconds]
<periklis`>
teto1: i can't remember anymore how to tell the clang compiler to do this include_next hop.
<domenkozar>
teto1: yeah you need to be trusted user
nc_ has quit [Ping timeout: 260 seconds]
simukis has joined #nixos
newhoggy has quit [Remote host closed the connection]
oida has quit [Remote host closed the connection]
klntsky has quit [Read error: Connection reset by peer]
phreedom has quit [Write error: Connection reset by peer]
phreedom has joined #nixos
<dottedmag>
domenkozar: Are the packages in binary cache signed by the original builder? That is only hinted at by "security" selling point, but not mentioned anywhere else.
andi- has quit [Excess Flood]
tzemanovic has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @xeji pushed commit from @vaibhavsagar to master « scite: 3.7.5 -> 4.0.5 (#41345) »: https://git.io/vhcNm
rauno has quit [Ping timeout: 244 seconds]
sigmundv__ has joined #nixos
aarvar has quit [Ping timeout: 244 seconds]
alex`` has quit [Ping timeout: 260 seconds]
alex`` has joined #nixos
tzemanovic has joined #nixos
tmaekawa has quit [Quit: tmaekawa]
thblt has joined #nixos
logzet has joined #nixos
tzemanovic has quit [Ping timeout: 260 seconds]
magnetophon has quit [Ping timeout: 255 seconds]
tzemanovic has joined #nixos
deepfire` has quit [Ping timeout: 244 seconds]
tzemanovic has quit [Ping timeout: 244 seconds]
tzemanovic has joined #nixos
deepfire` has joined #nixos
ixxie has joined #nixos
<{^_^}>
[nixpkgs] @mulderr opened pull request #41354 → odpic: init at 2.3.2 → https://git.io/vhcpR
yenzenz has joined #nixos
ixxie has quit [Client Quit]
acarrico has joined #nixos
rauno has joined #nixos
newhoggy has joined #nixos
leat has quit [Ping timeout: 256 seconds]
__monty__ has joined #nixos
nc_ has joined #nixos
ikitat has joined #nixos
ericsagnes has joined #nixos
alexteves_ has joined #nixos
leat has joined #nixos
seafood has quit [Quit: seafood]
seafood has joined #nixos
<tilpner>
domenkozar - FAQ/Roadmap doesn't render properly after login, and there's no logout button (short of clearing session)
JasonGrossman has joined #nixos
<tilpner>
Ah, found #21
rumi100300 has joined #nixos
rumi100300 has quit [Client Quit]
iyzsong has joined #nixos
steell has joined #nixos
<domenkozar>
tilpner: yes I was afraid going back and forth will be a pain (especially without logout button) :D
<domenkozar>
I'll add it in following days
ericsagnes has quit [Ping timeout: 248 seconds]
<tilpner>
domenkozar - This looks like a great idea in principle, but I'm worried about how users go from "just trust the cache.nixos.org operators" to "trust as many people as have access to all caches you use"
owickstrom_ has quit [Remote host closed the connection]
<domenkozar>
tilpner: it's no different to gpg or any other internet trust
owickstrom_ has joined #nixos
<tilpner>
domenkozar - The severity obliously depends on if it gets as bad as the "just add this ppa" (and users can always compile it manually by not adding the cache)
<domenkozar>
tilpner: or container hosting in general
<domenkozar>
but yes, same risks apply
ikitat has quit [Read error: Connection reset by peer]
ikitat has joined #nixos
<tilpner>
Not quite. Let's take your example of "container hosting" as hub.docker.com, which has manual pushes, and automated builds
<tilpner>
A manual push can contain anything, and you don't really how it was built
nc_ has quit [Ping timeout: 240 seconds]
<domenkozar>
I think in Nix you can at least audit it, you'll always have source
<domenkozar>
so if someone builds it themself, they can binary diff and report fraud
<tilpner>
But an automatic build comes with (there are issues here too) assurance that an image was built from this file
<tilpner>
Yes, that makes it less problematic
<domenkozar>
you could take cachix forward with binary determinism
<domenkozar>
and 3 different signature with identical binary output
<domenkozar>
could make it a distributed build farm
<tilpner>
Oh, that would be great
<domenkozar>
or what ever threshold you want to trust
<JasonGrossman>
domenkozar: The whole idea seems exciting to me, because NixOS will have to get less centralised, eventually.
<JasonGrossman>
domenkozar: So thank you!
silver has joined #nixos
<domenkozar>
glad to hear that :)
<owickstrom_>
domenkozar: I'm working on a multi-job (workflow) CircleCI build using Nix, and having quite some trouble with sharing Nix store artifacts between the running containers. Do you think cachix could be useful in that context, to share parts of the nix store between containers more quickly?
<domenkozar>
owickstrom_: yes, that was the main motivation
<domenkozar>
actually cachix itself uses it to get builds <3min
<owickstrom_>
It would probably require private caches in our case as it's a proprietary project
<nyanloutre[m]>
Plato[m]: what do you want to do ?
<kiloreux>
I am trying to use ffmpeg libraries inside another package. But I don't know how to access them ?
jperras has joined #nixos
<kiloreux>
ffmpeg.lib isn't working
<thblt>
kiloreux: it should be just ffmpeg I think
<kiloreux>
And I put it in buildInputs right ?
<kiloreux>
Doesn't work :(
schjetne has quit [Ping timeout: 244 seconds]
<Plato[m]>
Okay, I'll try -I
<andrewmiller1>
my os is fully usable* *except for reading from or writing to /nix/var/nix/db. i can't install, repair, update, or upgrade in nixos-rebuild, nix-env, or nix-channel. it's essentially frozen in its state. i'm having an awful time with usb boot. i have no cd drive or cds. does anyone know how to get myself a clean slate on the same partition? can i boot to my fedora partition, somehow get nix commands, mnt, and fix from there?
<srhb>
andrewmiller1: What's wrong with /nix/var/nix/db ?
<thblt>
kiloreux: describe "doesn't work"
<kiloreux>
thblt, I have a requirement to use libavcodec which exists only inside ffmpeg. When i try to compile it this way. The compiler doesn't recognize libavcodec and it complains that it doesn't understand it.
<kiloreux>
Like you never linked it.
<Plato[m]>
Yes, nix-shell -I nixpkgs=... seems to work. Thanks srhb.
<thblt>
the compiler cannot find the include or the linker cannot find the lib?
<andrewmiller1>
srhb: i have more than one issue i think. for /nix/var/nix/db, i now have a different sub-error, but it has the same "database disk image is malformed". "error: executing SQLite statement 'insert or replace into Refs (referrer, reference) values (?, ?);': database disk image is malformed (in '/nix/var/nix/db/db.sqlite')"
newhoggy has quit [Remote host closed the connection]
<srhb>
andrewmiller1: Ouch.
sary has joined #nixos
newhoggy has joined #nixos
<kiloreux>
thblt, the compiler cannot find the include.
<thblt>
kiloreux: the makefile seems to make unreasonable asumptions about paths
<srhb>
andrewmiller1: But yeah, usb boot would be simplest.
<andrewmiller1>
i started with this kind of issue. every day it seems to be a different package, but maybe the variance is because i've tried things here and there "[root@nixos:~]# nix-env -qa unetbootin error: syntax error, unexpected $end, expecting '.' or '=', at /nix/store/qafri0ixi888swvyqbzhfwzig1xqyz8h-nixos/nixos/pkgs/os-specific/linux/keyutils/default.nix:27:15"
<srhb>
andrewmiller1: If your store is read only, sounds like a dying disk.
<kiloreux>
thblt, can i override that step with my own ? If so, how ?
<andrewmiller1>
srhb: i don't think it's read only. but it is broken
<thblt>
kiloreux: no actually in my nix shell compilation breaks but all includes are found. Maybe I'm using a too recent ffmpeg
<srhb>
andrewmiller1: If it's not read only, other programs might be manipulating it and breaking things I guess.
newhoggy has quit [Remote host closed the connection]
<andrewmiller1>
srhb: it's a 2 year old ssd
newhoggy has joined #nixos
steell has joined #nixos
<thblt>
kiloreux: this nix-shell invocation works partially: nix-shell -p ffmpeg_2 gcc bzip2
<srhb>
andrewmiller1: All I know is that at least two files in /nix appear to be corrupted. :)
<{^_^}>
[nixpkgs] @aprokurov opened pull request #41356 → Fixed version → https://git.io/vhCto
<andrewmiller1>
srhb: yeah. it's definitely more than 2
alexteves_ has quit [Remote host closed the connection]
alexteves_ has joined #nixos
<thblt>
kiloreux: this one works perfectly nix-shell -p ffmpeg_2 gcc bzip2 lame x264 faad2 zlib
<{^_^}>
[nixpkgs] @ajs124 opened pull request #41357 → claws-mail: add support for python plugin → https://git.io/vhCt5
<andrewmiller1>
srhb: and i've already rm -rf /nix/var/nix/db, nixos-installed on a freshly mkfs.ext4 with a new config, and copied the /nix/var/nix/db over. that's what got me the "newer/different" "database disk is malformed" error message
<srhb>
andrewmiller1: So a completely new db was instantly corrupted? Uhhh.
<srhb>
andrewmiller1: That's Not Good.
newhoggy has quit [Ping timeout: 276 seconds]
<srhb>
Oh hm, I'm not sure how the copying would work..
<andrewmiller1>
srhb: but there are other errors so i'm wondering if this is just a side effect. i'm currently in denial about my ssd being injured
<srhb>
But I don't think the database should be corrupted itself.
<etu>
!tofo
<srhb>
andrewmiller1: That's OK, it's the first phase etc.
<etu>
!tofu
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<kiloreux>
thblt, Thank you. However I am installing it and it is complaining that there's not rule to make target install.
<kiloreux>
How can I override install with the makefile's "all"?
<kiloreux>
installTargets, figured it out.
<kiloreux>
Thank you very much.
<thblt>
kiloreux: that's because the makefile doesn't provide an install rule :-) but you wouldn't have used it anyways
jperras has joined #nixos
<kiloreux>
thblt, my nix derivation directory is empty.
<kiloreux>
How can I put the binary there ?
<thblt>
there may be a better way, but just mv it from your builder.sh
<clacke>
I have several displaymanagers enabled in configuration.nix
<clacke>
Desktop manager
<clacke>
What's a display managers that allows a user to choose which one to use for this session?
<clacke>
I tried lightdm and gdm3. On Ubuntu I recall that they both allowed choosing a desktop manager before logging in, but the greeters on NixOS don't seem to have this functionality.
<tilpner>
sddm and slim allow you to pick a session during login
<clacke>
Ok cool.
<tilpner>
(But note that slim has been abandoned for a while)
<clacke>
I tried to figure out where LightDM saves its choice, but I only found ~/.dmrc which didn't seem to have any effect. Maybe that's what gdm uses.
<gchristensen>
jophish: wfm fwiw I build a few dozen aarch64 images a week
<gchristensen>
though ... not sdcard
<jophish>
yeah, I was doing something similar at my previous workplace
ikitat has quit [Remote host closed the connection]
<jophish>
I had a pretty nifty setup there. We were programming the ARM chip in a fancy FPGA, I had an expression which would compile our FPGA netlist, u-boot, the pre u-boot step (was a horrible system to boot) and a nixos system into an sdimage
alexteves_ has quit [Remote host closed the connection]
<jophish>
oh, and also cross compile some Haskell program and a kernel driver for the FPGA logic
<jophish>
nix made that so so painless
fishi has joined #nixos
alexteves_ has joined #nixos
<jophish>
well, after the initial pain that is
<clever>
jophish: nice
<jophish>
gchristensen: what are all the arm64 images for? packet.net still?
<clever>
jophish: how did you get the fpga netlist building under nix?
<hodapp>
jophish: working with Clash here or what? Reduceron?
<clever>
jophish: the last time i did fpga stuff, the tools took up something like 20gig, and i dont see nix playing well with a 20gig storepath
<hodapp>
ewww
<jophish>
clever: we were packaging quartus in nix, yeah, some tens of GB derivations...
<hodapp>
but par for the course with FPGA stuff
<hodapp>
unfortunately
<jophish>
the quartus installation was a nightmare, ~25GB for the tarball, ~30GB for the unpacked tarball and ~30GB for $out
<jophish>
all of which had to be there at the same time
<jophish>
and heaven help you if that derivation changes and our poor hydra server tried to serve these images
deepfire` has joined #nixos
<clever>
only 1 of my machines has enough space for that, lol
<jophish>
nix could do with torrent like sharing of packages on a LAN
hlolli_ has quit [Remote host closed the connection]
<jophish>
hodapp: yeah, nearly everything was in Clash
<jophish>
however the haskell we were cross compiling was actually to interface between the ARM's ethernet port and the FPGA's memory
<jophish>
via that kernel module
<jophish>
although iirc I ended up rewriting that part in C++
atu has joined #nixos
atu has quit [Changing host]
atu has joined #nixos
<jophish>
it wasn't *really* a haskell suitable task
atu is now known as adamt
<clever>
jophish: ive had plans to do something similar many years ago, but i didnt have any fpga's with a hardcore, so i was going to abuse an rpi
<jophish>
clever: I don't think that the quartus install was ever watertight, I'm certain that it was snaffling libraries from the Ubuntu machine it was running on
<clever>
jophish: my plan was to turn the fpga into an ethernet card, and then write a custom SPI based driver for it on the rpi
<jophish>
clever: I think that the latest arduino will have a similar setup
<adamt>
Given a path foo=/nix/store/foo/bar, if I use nix-serve, what will be the URI for foo/bar?
<clever>
and then have some out of band traffic for other fpga stuff
<clever>
adamt: hash.narinfo and hash.nar.xz, for /nix/store/hash-foo
<jophish>
clever: ethernet is a whole can of worms :)
<clever>
jophish: my general plan, was to capture ~70mbit worth of data with an fpga, and shove it out ethernet
schjetne has joined #nixos
<adamt>
clever: Ah, so the raw files can't be accessed that way? Then i'll copy them to a www-root (it's files for pxe boot)
<clever>
the arm wasnt required to be in the loop, it was just to turn things on/off
<gchristensen>
jophish: yeah, lots of testing
<jophish>
At one point (before we started moving data through the ARM) I did the FPGA ethernet thing with some simple packet protocol
fishi has quit [Quit: leaving]
<clever>
adamt: yeah, nix-serve just shares the whole directory as a .nar.xz
<jophish>
It required writing some small CPU for the packet handling logic
<jophish>
it was a whole load of fun to write, and was very useful at the time, however there are zero regrets moving over to DMAing memory from some Linux chip
<adamt>
clever: I think you showed me already, or somebody else did. :p
<clever>
jophish: i had partially implemented dhcp in verilog before deciding to use an ARM
gmarmstrong has quit [Quit: Quit]
<jophish>
thoughtpolice: Are you still using Nix over there? Is the Quartus derivation situation any different?
<jophish>
clever: you should get on the Clash train before you lose your marbles
<clever>
jophish: i havent done any fpga stuff since getting into nixos and haskell
<adamt>
clever: I just got this silly idea that i want to do; i want to create my netboot media on demand, so that instead of specifying an kernel and initrd for a server, i'll basically point to the servers config, and build it while getting iPXE to sleep and retry until it's done.
<thoughtpolice>
Yeah, still on Nix ofc, upgrading soon! No, BSPs are still a giant pain in the ass, of course
<clever>
adamt: see the boot.php file in the example i linked above?
<clever>
adamt: that file receives the mac of the machine in the GET params, and it could just nix-build something on the fly, then respond with the path to the result
<clever>
adamt: replace with a server-side scripting language of your choice
<jophish>
thoughtpolice: I should probably write up all that BSP generating stuff before I forget it all, it was a pain to have to decipher from the "tutorials"
<jophish>
how's things overall anyway?
<thoughtpolice>
jophish: I do have an scheme of how to make Quartus less of a problem by trading off a little reproducibility, though -- install Quartus in a VM, on a qcow image file. Put the qcow in the store and track that. and have a Nix express the build in terms of booting QEMU and mounting a path
<jophish>
oh my god
<thoughtpolice>
Then you also don't have to worry about e.g. minor bumps to tools causing a huge cascade
<thoughtpolice>
And it means we could use NixOS
<jophish>
that's a really good solution given the constraints of the problem
<thoughtpolice>
Things are going pretty good though! I got to use Yosys recently instead too :D
<jophish>
thoughtpolice: one big loss is hard linking the quartus files however
<jophish>
perhaps you could, instead of storing qcow2, store a root fs
<jophish>
and chroot into that for the build
jperras has quit [Quit: WeeChat 2.1]
<thoughtpolice>
Permissions would be weird though due to the store.
<jophish>
(or whatever container tech is the soupe du jour)
<thoughtpolice>
But now we also have all these new store abstractions in Nix 2.0
<thoughtpolice>
.... qcow2 files as a store?!?!?!?!?!
<johnw>
thoughtpolice: Docker uses them
<jophish>
You're targeting lattice chips now?! Or doing some verification or asic work?
<thoughtpolice>
ASIC estimate stuff. Really though we should just abandon VHDL and use Verilog and Yosys all the time :D
<thoughtpolice>
I'd be interested to see how Yosys handles an RTL design of that size...
<jophish>
thoughtpolice: I don't think any lattice chips register on the scale of things you guys are doing though
<jophish>
unless you're moving properly over to asic work
<thoughtpolice>
johnw: Yeah, so one issue jophish and I had was that we could install this horrid 50GB monster into the store. But every new minor update was like 50GB. However, hard linking would save us like 99% of that
truth has joined #nixos
Guest73580 has joined #nixos
<Guest73580>
hello?
<samae>
nice work domenkozar (with cachix)
<johnw>
I imagine you turned on store optimization then?
<thoughtpolice>
jophish: Yosys has had a preliminary Intel techmap backend for a while but it's pretty rough. Someone is using it for Arria10, though
<{^_^}>
[nix] @dtzWill opened pull request #2200 → download.cc: fix readCallback return type (int -> size_t) → https://git.io/vhCuk
<thoughtpolice>
A lack of simulation models for some of the hard IP hurts, of course...
<Guest73580>
I recently installed NixOS and I'm loving it, but having trouble with teamspeak
<domenkozar>
samae: thanks!
<samae>
At installation step of cachix, I always get a “warning: ignoring untrusted substituter 'https://cachix.cachix.org'”
<samae>
even though I provide the public key, is it the right one?
<thoughtpolice>
johnw: Well, I'd like to move that software into a .qcow2 image file, like I said, and have the Nix expression instead boot a VM. Why? Because that horrible 50GB software package is never going to work on NixOS, unfortunately
<jophish>
thoughtpolice: I didn't know that, that's super cool!
<thoughtpolice>
(EDA tools are like..... really hostile to anything that isn't RHEL or Ubuntu LTS)
<domenkozar>
samae: that's nix UX, it should be saying "ignoring cachix.cachix.org because you're not a trusted user"
<thoughtpolice>
johnw: But we won't be able to optimize "through" the qcow2 files. They are, after all, just binary blobs as far as Nix knows...
<truth>
in ubuntu there is a script that gets called when ip address changes. How can I do the same in nixos?
<jophish>
how's it going anyway, domenkozar?
<domenkozar>
jophish: pretty good just launched cachix today after 2 months of work
<domenkozar>
:D
<samae>
Shouldn't it be pulling binaries from cachix instead of building everything (and eventually failing)?
sigmundv__ has quit [Ping timeout: 268 seconds]
<domenkozar>
samae: it fails? it will only work if you set "trusted-users = root samae" in /etc/nix/nix.conf
<adamt>
clever: That's exacly what i'm going to do (except plug in our own build magic and avoid PHP at all costs. :P)
<samae>
aaah, ok, that's why it always failed
YaZko has quit [Quit: YaZko]
<jophish>
domenkozar: looks great! a much needed niche in the ecosystem!
<domenkozar>
samae: oh it fails?
<adamt>
clever: I just hoped i could get away with just serving the nix-store, instead of e.g. linking the results into a www root or something like it
<domenkozar>
that's a bug in nix then
<domenkozar>
jophish: thanks!
<clever>
adamt: you would either need to add a subdir in nginx that shares all of /nix/store/ or setup symlinks in www-root every time you finish a build
<domenkozar>
samae: can you paste the whole output?
<adamt>
clever: Yup.
deepfire` has quit [Ping timeout: 260 seconds]
<jophish>
haha, my sd card reader seems to be broken, so I can't test this image...
<samae>
well, it fails for another reason than nix I'm sure (it's more specific to your build of cachix)
<jophish>
ah, was just the sd card, let's go!
<domenkozar>
samae: can you post the logs somewhere?
<samae>
yes, doing that
<johnw>
cachix looks very cool
<johnw>
i will use this for hnix
<johnw>
funny that installing it wants to build like 500 derivations
<Guest73580>
is there any way that nix can remove these packages after uninstalling?
<johnw>
domenkozar: nice!
<symphorien>
not that I know
<clever>
Guest73580: the above command stores the paths in /nix/store, and a normal nix-collect-garbage will delete all unused files in there
<symphorien>
nix barely touches any file outside /nix and ~/.nix_profile
<Guest73580>
clever: ah cheers, wasn't sure if it'd leave any clutter in home
<Guest73580>
symphorien: I'd have thought there'd be a way to track files created by packages and remove them afterwards, but I guess it'd be more hassle than it's worth
<samae>
teamspeak surely will create files in your home ^^
<clever>
Guest73580: nix-shell itself wont, but teamspeak will create ~/.ts3something
<samae>
Guest73580: nix cannot really know about these
yenzenz has quit [Ping timeout: 244 seconds]
<Guest73580>
ah ok, just something we have to put up with I guess?
<symphorien>
Guest73580: export HOME=$(mktemp -d /tmp/blah.XXXXX) might do the trick
winem_ has quit [Ping timeout: 240 seconds]
<Guest73580>
devilish
<Guest73580>
but then surely some packages may be searching directly in /home/xxx/
<samae>
domenkozar: how much do you pay for the hosting? How can I contribute to these costs if I'm using cachix on a regular basis?
<domenkozar>
not yet, I plan to setup some way to donate
<domenkozar>
first month is on me, then we'll see the costs :)
<samae>
You're an angel :D
<jophish>
hmm, rPi doesn't seem to be showing up on the network, I'll have to debug tomorrow
Guest73580 has quit [Quit: Lost terminal]
<jophish>
Aha, I do have a TV, so I can at least see it failing
<jophish>
clever: looks as though it's missing a broadcom driver, not sure if that's fatal though
<clever>
Guest70xxx: you must set it in config.nix as the error tells you
<Guest70xxx>
oh I'm actually a moron, you're right
<Guest70xxx>
forgot the command wasn't a nixos-rebuild
<clever>
jophish: that looks like its failing to find the device tree blobs
<symphorien>
Guest70xxx: or export NIXPKGS_ALLOW_UNFREE=1
<jophish>
let me check the image
codygman has joined #nixos
freeman42x]NixOS has quit [Ping timeout: 276 seconds]
ikitat has joined #nixos
<{^_^}>
[nix] @nlewo opened pull request #2201 → Add a delay before killing the builder process → https://git.io/vhCae
<samae>
domenkozar: guess you'll be able to collect all the secrets written to the world readable stores :D
<Guest70xxx>
perfect, it's allowing it now
schjetne has quit [Ping timeout: 240 seconds]
deepfire` has joined #nixos
<Guest70xxx>
fingers crossed for teamspeak
kai_w has quit [Quit: kai_w]
tzemanovic has quit [Ping timeout: 276 seconds]
<Guest70xxx>
any suggestions for any libre alternatives to teamspeak? Preferably something my friends and I can use as a messenger as well
<Guest70xxx>
I've seen riot.im but I'm not a big fan of electron
<jophish>
clever: indeed, the blob it's looking for is not present
<clever>
Guest70xxx: mumble/murmur
<jophish>
bcm203x-rpi-other.dtb
<Guest70xxx>
clever: I did have a look at that, does look pretty promising. I'll see if we can rent a server cheaply
<Guest70xxx>
ah the teamspeak solution didn't work
<acowley>
How can I see the size of a closure in the store?
<{^_^}>
[nixpkgs] @Anton-Latukha opened pull request #41365 → [WIP] Meson builds, fetchFromGitLab for GNOME ones → https://git.io/vhCa0
<jophish>
not sure what it's doing looking around in pxelinux
<clever>
acowley: one min
<jophish>
acowley: nix-store -qR /nix/store/path | xargs du -s | cut -f 1 | xargs | sed -e 's/ /+/' | bc
<acowley>
nix-store --query --size ?
<acowley>
I was hoping `nix copy` could take a --dry-run flag
<clever>
acowley: i tend to use `du --max=1 -hc $(nix-store -qR /run/current-system) | sort -h`
<clever>
--query --size will only show the size of a single dir, not the entire closure
<clever>
oops, you want --max=0 on the above
<clever>
du --max=0 -hc $(nix-store -qR /run/current-system) | sort -h
<codygman>
my new laptop I installed nixos on is stuck trying to start display manager but failing (probably graphics driver) and just flashing on and off. I tried ctrl-c but that doesn't work. Is there any way to fix this besides reinstaling without display manager enabled, instaling graphics drivers, then resinstaling display manager?
<clever>
codygman: if you wait a few minutes, does the flashing stop?
<infty>
Hi, could someone please explain how I can make a constructor associative?
<acowley>
Thank you jophish and clever!
<infty>
i.e given data Foo = Bar | X Foo Foo deriving Eq, I would like Bar `X` (Bar `X` Bar) == (Bar `X` Bar) `X` Bar to hold.
<jophish>
ah, that sed command should have a 'g' in
<jophish>
much less nice than clever's :)
<clever>
jophish: the -c in du tells it to output a total for you
<clever>
and | sort -h makes sure the total is last
<acowley>
It looks like if I wanted to upload the main AMD ROCm user-land stuff to Domen's new cachix service will be between 2 and 3 GB
<acowley>
But I don't know how to figure out the size of the kernel stuff
<acowley>
I'd like to do it at some point so other people can get up and running easily as I think it'd be an (admittedly niche) feather in the NixOS cap.
<clever>
acowley: the |sort -h should also tell you what the biggest paths are, so yu can try and trim the fat
<infty>
(Sorry, I thought I was in #haskell, please ignore my previous question)
<acowley>
clever: gcc and llvm are the whales for me
<acowley>
clever: and I think people have worked on their size
<codygman>
clever: It doesn't seem to stop
<clever>
acowley: in general, gcc and llvm shouldnt be in the runtime closure, use nix why-depends to track that down
<acowley>
clever: These are compilers
<clever>
codygman: does ctrl+alt+f1 do anything?
<clever>
acowley: ah
shabius has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<acowley>
infty: You can't do that in an automatic way. You'd typically have a `canonicalize` function that left- or right-associates your constructors so that a more rigid Eq instance does what you want.
shabius has quit [Client Quit]
shabius has joined #nixos
<jophish>
hmm, the boot partition looks just like it should
<jophish>
aside from that missing blob
<jophish>
so perhaps when it says "continuing..." it really means "I'll fail later"
<clever>
jophish: its trying to network boot when it continues
<jophish>
ah
schjetne has joined #nixos
truth has left #nixos [#nixos]
cloud-maingo has joined #nixos
deepfire` has quit [Ping timeout: 245 seconds]
sanscoeur has joined #nixos
sanscoeur has quit [Read error: Connection reset by peer]
sanscoeur has joined #nixos
lsix has quit [Quit: WeeChat 2.0]
<jophish>
ah, so perhaps the important line is: stopping nixos-default for failure retrieving fdt
<clever>
yeah
<clever>
find that file somewhere in the nix store of the sdcard, and copy it to the right path in /boot
<jophish>
I don't think it was on there
<jophish>
let me check again
<jophish>
nope :|
<clever>
what files refer to the name?
<Dezgeg>
is that the b+ model?
<jophish>
Dezgeg: yeah
nyanloutre_2 has joined #nixos
<nyanloutre_2>
hi !
schjetne has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @cillianderoiste closed pull request #41362 → linkchecker: use the default requests package → https://git.io/vhCl2
<Dezgeg>
right, that won't work until kernel 4.18
<jophish>
clever: bcm203 doesn't appear anywhere in /boot
<jophish>
Dezgeg: ah
<jophish>
Is it worth setting up a 4.18 compile overnight? (qemu)
<nyanloutre_2>
I have a problem with my up to date Nixos system : it doesn't boot and throw me in the UEFI
<nyanloutre_2>
I would also add that while in the live USB environment I can't see the SSD either and I get an error in dmesg "Identify Controller failed (-4)"
<Dezgeg>
yeah, even 4.17 is not released yet
<Dezgeg>
(only 4.17-rc7)
<jophish>
Do you happen to know if there is a patch I can apply with the relevant change?
<Dezgeg>
it might be in linux-next
<Dezgeg>
yeah, it is
y0no[m] has left #nixos ["User left"]
<ldlework>
infinisil: howdy
<jophish>
ok, I'll try replacing the source in linux-testing with a clone from linux-next
Sonarpulse has quit [Remote host closed the connection]
<ldlework>
infinisil: maybe attrsToZncConf or something?
<ldlework>
:D
<infinisil>
ldlework: yeah
asuryawanshi has quit [Remote host closed the connection]
<ldlework>
infinisil: my largest gripe with the current ZNC module is that ZNC supports multiple login-users but the module only supports one.
<infinisil>
Yeah, this change should make that work
asuryawanshi has joined #nixos
<infinisil>
Do you feel comfortable writing nixos modules?
<ldlework>
Nope, but I do it anyway
<{^_^}>
[nixpkgs] @xeji merged pull request #41351 → coqPackages.contribs.aac-tactics: enable for Coq 8.7 and 8.8 → https://git.io/vhcQx
<{^_^}>
[nixpkgs] @xeji pushed commit from @vbgl to master « coqPackages.contribs.aac-tactics: enable for Coq 8.7 and 8.8 (#41351) »: https://git.io/vhCK2
matthewbauer has quit [Read error: Connection reset by peer]
<infinisil>
Hmm, there are a lot of options that need to be made backwards compatible, maybe you could help with that if you want
<infinisil>
That's the main thing left to do i think
<ldlework>
Backwards-compatible in what sense?
truthadjustr has joined #nixos
matthewbauer has joined #nixos
matthewbauer has quit [Remote host closed the connection]
<truthadjustr>
how do we select which network to connect to? `wpa_cli select_network 2` is not working for me
<ldlework>
A big problem for me in contributing to nixpkgs development is that I'm still pretty confused about how to use the stable channel for most things, but then maybe have the unstable channel for some packages, and for some other packages use my own fork on nixpkgs, etc
<infinisil>
ldlework: The new znc module will have a single option representing the config with an attrset, which would be completely sufficient for setting everything, but the current module has a lot of extra options that will need to be converted to the single-attr-as-config style
<clever>
truthadjustr: what does the journal for wpa_supplicant say?
grp has joined #nixos
<ldlework>
infinisil: how do you cope with multiple user blocks?
<ldlework>
is the user attribute a list or something?
slack1256 has joined #nixos
<ldlework>
Like I still only see confOpts.userName
<infinisil>
ldlework: that will be just 'User.foo = { ... }; User.bar = { ... };' in the new attrset style
matthewbauer has joined #nixos
<ldlework>
I see.
<infinisil>
The old options i haven't touched at all
<infinisil>
Yet
<grp>
How faster is nix 2.0?
<truthadjustr>
clever: does not move a bit
<truthadjustr>
clever: nothing
<infinisil>
ldlework: Wanna try help with the option adjustements? Or testing would also be really helpful
<clever>
truthadjustr: try running wpa_cli without args, and use the repl to run select_network and status
mizu_no__ has joined #nixos
<clever>
truthadjustr: then you should see some events and what its doing
iyzsong has quit [Ping timeout: 276 seconds]
peacememories has joined #nixos
<ldlework>
infinisil: Do you like this idea? I'll help with testing, and you can help me understand the implementation, and maybe I will blog up a case study.
<truthadjustr>
clever: same.. log does not move
<clever>
truthadjustr: does it print anything to the wpa_cli repl?, what does status say?
<{^_^}>
[nixpkgs] @andir merged pull request #41367 → nixos/mpd: allow services.mpd.dbFile to be null → https://git.io/vhCoT
<truthadjustr>
clever: wpa_cli prints normally.. yes
<clever>
truthadjustr: what does it print when you run select_network 2?
<truthadjustr>
it printed OK
<{^_^}>
[nixpkgs] @andir pushed to release-18.03 « nixos/mpd: allow services.mpd.dbFile to be null »: https://git.io/vhC6s
<ldlework>
infinisil: basically, I'm just not sure what you need at the nixlang level, but I can spin up znc instances with nixops real easy :)
<infinisil>
ldlework: Sure, thanks! I'll tell you when I'm working on it and what needs testing then
<clever>
truthadjustr: what does status say?
<truthadjustr>
wpa_state=DISCONNECTED
<jophish>
bah, linux-next doesn't compile :(
YaZko has joined #nixos
<clever>
truthadjustr: are you able to run wpa-gui?
<truthadjustr>
clever: i have no wpa-gui
<clever>
truthadjustr: are you sure the ssid and password are correct?
peacememories has quit [Client Quit]
<clever>
truthadjustr: does scan_results show the network?
<jophish>
will try net-next
_cyril_ has quit [Ping timeout: 268 seconds]
<ldlework>
A guide on how to have your NixOS's stable channel, the unstable channel, and a personal nixpkgs fork all working together would be super handy.
<truthadjustr>
clever: 'wpa_cli list_network' does
_cyril_ has joined #nixos
<clever>
truthadjustr: it can only connect to networks that are in scan_results
<clever>
truthadjustr: run wpa_cli without args, then run scan and scan_results
devx has quit [Quit: . .. ...]
<truthadjustr>
clever: i did.. and it found list of networks
<truthadjustr>
but when i select.. nothing happens
devx has joined #nixos
<clever>
truthadjustr: and youve done the select from the > prompt inside wpa_cli?
<clever>
truthadjustr: what happens if you select a different network?
<truthadjustr>
yes
<truthadjustr>
clever: i re-run, scan/scan_results, and it's empty this time..
<johnw>
domenkozar: will cachix appear on Hackage? I'm trying to find a way to install it without using a tarball + nix-env (which is difficult to keep updated)
mizu_no__ has quit [Quit: Computer has gone to sleep.]
<truthadjustr>
clever: select_network does nothing
<truthadjustr>
clever: so far, the only way for me to change network is to edit /etc/wpa_supplicant.conf and `systemctl restart wpa_supplicant`
schjetne has quit [Ping timeout: 256 seconds]
<clever>
truthadjustr: are you able to install wpa-gui?
<clever>
truthadjustr: pkgs.wpa_supplicant_gui
<truthadjustr>
yes.. installed now
<adamt>
Is it possible to disable the (normally very nice) prompt of nix v2 (the one showing progress during build etc.) and get behaviour closer to nix-build? (i'm calling nix build from a script and would just like normal output)
<symphorien>
you can still use nix-build
nc_ has quit [Ping timeout: 244 seconds]
<adamt>
symphorien: I know, but I'm trying to avoid the old v1 versions of nix tools where possible
<truthadjustr>
clever: i see 2 sockets in /run/wpa_supplicant/ folder.
knupfer has quit [Remote host closed the connection]
<truthadjustr>
clever: wlp3s0 and p2p-dev-wlp3s0
<adamt>
nix build .. -v also prints a line every time something is done, but it just also shows the prompt
<clever>
truthadjustr: you may need to tell wpa_cli to use wlp3s0
toppler has joined #nixos
peacememories has joined #nixos
<truthadjustr>
clever: could not connect to wpa_supplicant
<clever>
truthadjustr: try running wpa-gui or wpa_gui
<maurer>
truthadjustr: Connecting to that socket requires root, if you weren't
<maurer>
e.g.
<maurer>
sudo wpa_cli -i wlp3s0
<maurer>
or, sometimes does
<maurer>
(maybe it's not your problem though)
truthadjustr has quit [Read error: Connection reset by peer]
truthadjustr has joined #nixos
<truthadjustr>
clever: working now. `wpa_cli -g /run/wpa_supplicant/wlp3s0` did the trick.. i am able to switch networks now. Should I rm the other socket?
<clever>
truthadjustr: it will create the other one automatically every time you boot
periklis` has quit [Ping timeout: 260 seconds]
Mateon3 has joined #nixos
Mateon1 has quit [Ping timeout: 256 seconds]
Mateon3 is now known as Mateon1
viric has quit [Ping timeout: 248 seconds]
<{^_^}>
[nixpkgs] @jbaum98 opened pull request #41369 → make-wrapper.sh: Add --export flag → https://git.io/vhCPl
asuryawanshi has quit [Read error: Connection reset by peer]
asuryawa_ has joined #nixos
schjetne has joined #nixos
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}>
[nixpkgs] @jbaum98 opened pull request #41370 → pass-audit: init at 0.1 → https://git.io/vhCPX
peacememories has joined #nixos
owickstrom has joined #nixos
peacememories has quit [Client Quit]
<phry>
can someone give me a hint on how to make a binary in a derivation setuid? nixpkgs.libutempter/lib/utempter/utempter needs to have the setuid bit for it to be able to update /var/run/utmp
<phry>
(or, if there's another, more NixOS way for that, what would be it?)
sbdchd has quit [Remote host closed the connection]
<neonfuz>
So I've been getting some errors for a while that seem incorrect
<neonfuz>
I get "warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring" despite that path existing
<neonfuz>
and I get "trace: warning: You don't have `system.nixos.stateVersion` explicitly set. Expect things to break." despite having that explicitly set in my configuration.nix
<toppler>
neonfuz: +1 for the questions. I'm also getting
logzet has quit [Remote host closed the connection]
<neonfuz>
I would like to try to use 'nix-instantiate --eval ...' to check system.nixos.stateVersion, but idk exactly how to check that
ikitat has quit [Ping timeout: 240 seconds]
<neonfuz>
I'm really just shooting in the dark here but I tried "nix-instantiate '<nixos>' --eval -A system" but that gives me the system string, not a set containing stateVersion
<LnL>
neonfuz: nix-instantiate --eval '<nixpkgs/nixos>' -A config.system.stateVersion
<neonfuz>
ah thanks
<LnL>
there's no nice way to get the unquoted value without using the unstable nix 2.0 cli tho
<neonfuz>
I get 'error: The option `system.stateVersion' is used but not defined.'
truthadjustr has quit [Read error: Connection reset by peer]
sbdchd has joined #nixos
szicari has joined #nixos
<neonfuz>
despite having the line " system.nixos.stateVersion = "17.09";
<neonfuz>
oops, well that line in my configuration.nix ^ lol
truthadjustr has joined #nixos
<LnL>
:p
YaZko has quit [Quit: YaZko]
Lisanna has joined #nixos
YaZko has joined #nixos
<toppler>
Any info on the ".nix-defexpr/channels' does not exist stuff?
<Lisanna>
Wow. If you delete the .nix file that a nixops deployment depends on, you're screwed. It won't even let you delete it. You have to put it back the way it was.
<Lisanna>
won't even let you delete the deployment*
<ben>
What happens if you replace it with an empty {} and apply that?
ikitat has joined #nixos
<phry>
Lisanna: ben beat me to it. Happened more than once for me )
<Lisanna>
ben phry that worked. that's so dumb
YaZko has quit [Client Quit]
jD91mZM2 has quit [Quit: WeeChat 2.0]
<Lisanna>
oh there's even a pull request that fixes that problem that's been open for a month and a half
<Lisanna>
<_<
<phry>
symphorien: so wrapping doesn't help me on it's own, as libutempter is hardcoded against /usr/lib/utempter/utempter *sigh* (yes, that's in nixpkgs..)
<phry>
I would have suspected that patchelf would be my friend here, but apparently not - do you have a pointer on where I could start on that?
<neonfuz>
toppler: no idea :/
<symphorien>
patch the source
<Lisanna>
phry unshare is your friend
<phry>
symphorien: thx. was fearing as much. this is quite the ordeal ^^
<phry>
Lisanna: unshare?
<Lisanna>
plus buildFHSUserEnv
ikitat has quit [Ping timeout: 256 seconds]
<phry>
Lisanna: do you have an example in nixpkgs that goes that way?
<Lisanna>
phry no, but you can run a program in unshare to manipulate its view of the filesystem
<Lisanna>
uses linux process namespaces
<phry>
Lisanna: yes, found it in the nix manual.
<Lisanna>
use wrapProgram/makeWrapper to wrap the executable to call it with unshare or something
<Lisanna>
buildFHSUserEnv does a similar thing, but is more limited... if you need a very specific path, I'd go with unshare
<phry>
I guess I should go a step back, maybe someone has a completely different approach for me:
<phry>
I started out because I wanted to check if a mosh connection was still active. Someone at #mosh pointed me to `who`, which sould show who is logged in. who uses /var/run/utmp, which is not updated by mosh. Mosh would require libutempter for that. Libutempter has one binary that would need to be executed as suid. The path to that binary is hardcoded.
<phry>
Before I go further down that rabbit hole: am I missing a quick fix along the way?
truthadjustr has quit [Read error: Connection reset by peer]
<symphorien>
imo, it is easier to have nix patch the hardcoded path to /run/wrappers/libutempter or so
tmaekawa has joined #nixos
truthadjustr has joined #nixos
<symphorien>
and it would fix everything which uses libutempter without having to wrap any program using libutempter
<phry>
guess that makes sense.
ikitat has joined #nixos
<truthadjustr>
`wpa_cli -g /run/wpa_supplicant/wlp3s0 -a /home/user/action.sh` how can i intercept the ip address assignment? i'm not getting any at the point of invoke yet...any tips?
halfbit has quit [Ping timeout: 276 seconds]
<truthadjustr>
i don't want to pull
ikitat has quit [Ping timeout: 240 seconds]
<neonfuz>
any news on when nixpkgs is gonna get emacs 26?
<domenkozar>
johnw: yes once servant 0.14 is out
<domenkozar>
hopefully folks at zurihac don't add too much open PRs :P
<neonfuz>
oh wait, nm it looks like there it is
MichaelRaskin has joined #nixos
<{^_^}>
[nixpkgs] @xeji merged pull request #41353 → gnome2.gtksourceview: fix build on darwin → https://git.io/vhcbY
<{^_^}>
[nixpkgs] @xeji pushed commit from @vbgl to master « gnome2.gtksourceview: fix build on darwin (#41353) »: https://git.io/vhCyW
sir_guy_carleton has joined #nixos
bennofs has joined #nixos
vaninwagen has joined #nixos
<domenkozar>
johnw: why not using the instructions I gave? right now there are no releases, but then you can switch to a tag
<johnw>
domenkozar: well, I tried, but it wants to build hundreds of packages to install that single utility, all the way down to the system libs
<johnw>
domenkozar: so I'd rather try to build it in the context of my existing nixpkgs, since what you're adding (a pair of Haskell projects) should be very small
<johnw>
i tried to do it from src, but it wants versions of things that nixpkgs-unstable doesn't have yet, so I finally gave up and will wait a bit for the world to catch up
truthadjustr has quit [Quit: leaving]
<domenkozar>
johnw: it should be using the binary cache as long as your nix user is trusted
<johnw>
it used the cache for nothing, and my user is definitely trusted
<johnw>
trustedUsers = [ "johnw" "@admin" ];
<phry>
symphorien: I've got it to work. https://pastebin.com/y2rdXVfZ The question is now: Is this something I should commit upstream to nixpkgs? Those changes _are_ useful in my eye, but they only work when the user adds the security wrapper.
<domenkozar>
johnw: nix-env --version?
tmaekawa has quit [Quit: tmaekawa]
<domenkozar>
you need at least 2.0.1
asuryawa_ has quit [Remote host closed the connection]
<johnw>
nix-env (Nix) 2.1pre6148_a4aac7f
<johnw>
i'm using nixpkgs-unstable as of a couple hours ago
<domenkozar>
but 2.0.1 shipped a fix that got trusted-users to work
asuryawanshi has joined #nixos
YaZko has joined #nixos
<domenkozar>
and be able to user extra binary caches
Ariakenom_ has joined #nixos
<domenkozar>
use*
<johnw>
I also added your binary caches to my system config
v0latil3 has joined #nixos
<johnw>
but even if the cache works, it's still installing a TON of stuf that needn't be duplicated
camsbury_ has joined #nixos
<johnw>
why it wants to reinstall some of the apple frameworks is beyond me
<LnL>
it uses a pinned nixpkgs
<johnw>
ah
<symphorien>
phry: yes I thinks so. Anyway, if you don't hardcode to the wrapper, it does not work at all. So the user may or may not create the wrapper, but the situation won't be worse. gksu does it this way: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/libgksu/default.nix#L59-L61 Maybe leave a not in the longdescription of the package to say that the wrapper is needed.
Ariakenom has quit [Read error: Connection reset by peer]
v0latil3_ has quit [Read error: Connection reset by peer]
camsbury has quit [Read error: Connection reset by peer]
owickstrom has quit [Remote host closed the connection]
owickstrom has joined #nixos
<elvishjerricco>
Is there a nix expression for building the android kernel?
<hodapp>
just the kernel?
<hodapp>
or the whole system
<phry>
symphorien: I could also add the wrapper to the `programs.mosh` module (maybe as a toggleable option)
_cyril_ has quit [Ping timeout: 240 seconds]
<symphorien>
what do you mean ?
<elvishjerricco>
hodapp: Just the kernel. What do you mean by "whole system"?
Akii has quit [Ping timeout: 260 seconds]
<elvishjerricco>
You'd have to choose an android distro to have a "whole system" to talk about, right? ;)
<hodapp>
elvishjerricco: it's only things like AOSP that I'm aware of there
Akii has joined #nixos
schjetne has joined #nixos
YaZko has quit [Quit: YaZko]
<elvishjerricco>
I'm mildly interested (in the extreme long term) in eventually getting a NixOS android distro. Seems like android doesn't have any opinions that get in the way of NixOS.
<phry>
symphorien: programs.mosh.enable=true; already modifies the system firewall, I could also make it add the suid wrapperfor utempter. Maybe with something like programs.mosh.withSuidWrappers = true;
YaZko has joined #nixos
<symphorien>
ah right
<symphorien>
nice idea
_cyril_ has joined #nixos
ixxie has joined #nixos
<hodapp>
elvishjerricco: unless "needs a build system larger than your OS" is an opinion
<hodapp>
that may be the first nut to crack
<elvishjerricco>
hodapp: Admittedly, I know next to nothing about building android. What exactly do you mean by that?
<hodapp>
elvishjerricco: that it has a ginormous build system that is very likely custom to the task
<hodapp>
elvishjerricco: it's theoretically possible, but disentangling things of that size can be quite an undertaking
<elvishjerricco>
hodapp: So, circling back to my original question, I guess this means there does not already exist an expression for building the kernel? :P
<clever>
matthewbauer: the only time ive seen something being built once in a truely cross-platform way, was when the derivation was simply to unpack and rename some font files, it was flagged as fixed-output, so the build on 1 platform can be used by all others, and nix enforces it building "properly"
civodul has joined #nixos
jperras has joined #nixos
<matthewbauer>
yeah I guess the hash must be different but it should be identical for each build. the big problem is it has to rebuild the whole gcc toolchain.
<LnL>
matthewbauer: if there are multiple attributes that expose the same drv, hydra creates 2 jobs but they will refer to the same build
<matthewbauer>
in this case they're different: /nix/store/sgka76mqphc5ykh8906z97vzd08nmb4r-libva-vdpau-driver-0.7.4.drv vs /nix/store/fdzn89sw5np9dqnilm91icpnjvy936ff-libva-vdpau-driver-0.7.4.drv
<{^_^}>
[nixpkgs] @xeji pushed commit from @r-ryantm to master « pdns-recursor: 4.1.2 -> 4.1.3 (#41049) »: https://git.io/vhCNH
<ixxie>
any data scientists around?
<hodapp>
depending on what you mean by the term, sure
<ixxie>
or interested in data science
<hodapp>
what do you need?
<ixxie>
just curious about coordinating packaging effort for a NixOS based data science stack
<ixxie>
we are working on Jupyter services atm for example
spear2 has quit [Remote host closed the connection]
<hodapp>
hmm, JupyterLab too?
<hodapp>
I guess I never thought of notebooks as data science, but just as a hugely useful thing
<ixxie>
its like an IDE for data science
<ixxie>
in a sense
<ixxie>
together with emacs ofc
<ixxie>
or some other proper IDE
<hodapp>
I mostly thought of it as "derping around, but with network transparency"
<ixxie>
I use it to prototype algorithms
<ldlework>
Is there any documentation regarding using multiple channels?
<hodapp>
and used it like crazy when my big noisy desktop with the GPU would be at home, but I'd be away from home and wanted to still make use of its resources
<ixxie>
hodapp: but of course what I am more interested is good coverage of ML, NLP and Dataflow packages and services
<hodapp>
I have worked a bit on MXNet and TensorFlow
<hodapp>
mostly to find excuses to cuss at them
<ixxie>
hodapp: we have a Jupyterhub/lab server at the office for that sort of thing
<d6e>
just a workflow question, but how do people typically get documentation about the builtin functions? Is there any sort of help() or man like system? I've been relying on the nix manual so far, but I guess I'm wondering if there's any builtin documentation?
<hodapp>
d6e: cripes, let me know too when you find out
<hodapp>
usually I look at Nix, NixOS, and Nixpkgs manual online
<ixxie>
ditto
<thoughtpolice>
We currently do DL training/iteration and use Nix, but currently it's more or less ancillary (the work is DNN related but it's not model training, we just have to do it sometimes). OOTB Jupyter modules would be pretty cool imo.
<hodapp>
wasn't there a PR on this?
<ixxie>
there is a
<ixxie>
PR for jupyter
<hodapp>
but Nix has been majorly useful for all of my ML/DL stuff, mostly because of how many of the libraries/frameworks are bloody clusterfucks when CUDA is involved
<ixxie>
I am hacking a jupyterlab module now but I am stuck with a 404 atm
<thoughtpolice>
Yeah, it's pretty convenient. Just as an example, the other day I wanted a trained AlexNet m odel, so I use nix-shell shebangs with pytorch to download pretrained ONNX models in like 2 or 3 minutes tops.
<ixxie>
I packaged jupyterhub and ldapauthenticator and hdbscan and wordfreq in the last few months and I hope to soon systematically scrap say the repology API and some lists in order to figure out what else we are missing
<d6e>
hodapp: okay, cool. Nice to know I'm not missing out then
<hodapp>
can't we just wait for the current machine learning hype wave to blow over?
<ixxie>
why?
<ixxie>
you don't want us to get popular ;)
<ixxie>
Science NEEDS NixOS
<hodapp>
and people realize that the fact that they made a DL model that is *really* good at detecting cats still doesn't mean that they've achieved the holy grail of a magical black-box algorithm that they throw "data" in and money comes out
<ixxie>
don't be greedy
<ixxie>
hodapp: true but data science has useful application
<ixxie>
like topic modeling, search engines, text interfaces
<ixxie>
that is the stuff I am into
<ixxie>
and yes some classification
<ixxie>
I would like to try and use ML to categorize our packages
<hodapp>
whaaa
sbdchd has quit [Remote host closed the connection]
<ixxie>
like, detect that firefox is a browser and gensim is a word embedding library
<ixxie>
anyway, would anybody be interested in joining the data science packaging effort?
<hodapp>
I have a pile of shell.nix derivations and stuff that I've used in my own related efforts
<hodapp>
and I can remove all the profanity from them pretty qucikly
<hodapp>
s/qucikly/quickly/
Guest29924 has joined #nixos
ixxie has quit [Quit: Lost terminal]
<hodapp>
at this point I have a pile of the same Python packages that I've used for so many things that it may as well be bundled together somehow... matplotlib, numpy, scipy, jupyter, some other stuff
<Guest29924>
Hi, I tried the teamspeak workaround suggested here earlier today but sadly it didn't work
<Guest29924>
does anyone have any suggestions to try and get it working?
justan0theruser has quit [Ping timeout: 268 seconds]
<Guest29924>
was the command used, with the following error:
<Guest29924>
QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
<symphorien>
iirc this is only a warning
<symphorien>
at least when I tested my fix it worked despite this message
<Guest29924>
there's a crashdump afterwards but I don't want to flood this chat with it
ThatPako has quit [Quit: Lost terminal]
<Guest29924>
failed to init text to speech engine is one of the INFO messages
<Guest29924>
oh actually I might have a fix, I'll reboot and try and let you know if it works
Guest29924 has quit [Quit: Lost terminal]
ixxie has joined #nixos
schjetne has joined #nixos
reinzelmann has quit [Ping timeout: 276 seconds]
<ixxie>
hodapp: one thing I could use help with is tryin to make jupyterlabWithExtensions
<ixxie>
hodapp: I never did anything complex like that and its also the first module I am making so....
theo_ has joined #nixos
<ixxie>
hodapp: and aborsu has the jupyter module PR in place and a jupyterhub in the works too afaik
<theo_>
symphorien: turns out your fix did work
<symphorien>
:)
<symphorien>
what was the problem ?
<ixxie>
hodapp: he jupyter module has this awesome function for building kernels
lord| has quit [Ping timeout: 244 seconds]
<ixxie>
hodapp: so we can now have jupyter environments specified in Nix xD
<theo_>
hahahah user error, I was using my old i3config which was sending all instances of teamspeak to a workspace that no longer exists
<symphorien>
I see :þ
<theo_>
such a ridiculous mistake, sorry for wasting your time
<symphorien>
np
<theo_>
will this fix be made upstream any time soon?
<ixxie>
here is a question: if a python library has a component which is installed as an extension to another piece of software (jupyterlab) how do I package it?
<symphorien>
it has already been merged, but it will take a few days to be built
<ixxie>
even if I did have jupyterlabWithExtensions I wouldn't know how to split the cake on that
<theo_>
will check it out, thanks for all the help
schjetne has quit [Ping timeout: 240 seconds]
<ixxie>
btw - crazy idea of the day: yaml2nix
<clever>
ixxie: there is a yaml2json binary in the yaml package
<clever>
ixxie: and builtins.fromJSON
<ixxie>
nice
<ixxie>
but I mean that we can sorta wrap Nix in YAML for non-power users
<ixxie>
so they can specify a system in YAML
<ixxie>
I guess those things can help with that?
<clever>
ixxie: but how would you encode the difference between a list of references: environment.systemPackages = with pkgs; [ git hello firefox ];
<clever>
ixxie: and a list of strings, boot.kernelParams = [ "boot.allow_shell" ];
<ixxie>
clever: the idea is NOT to replicate Nix in YAML
<ixxie>
the idea is to be able to toggle coarse grained switches in a config written in Nix using a YAML masterfile
<clever>
ah
<ixxie>
and specify some parameters too
serentty[m] has left #nixos ["User left"]
<ixxie>
like package names in a list or username or what not
<clever>
so the yaml would be more along the lines of { custom.fatvim = true; custom.xorg = true; }
<clever>
and then i would define options and config in a module elsewhere
<ixxie>
yes but newcomers could just work with the YAML and never see Nix
<symphorien>
well, there is already little documentation, if you advise newcomers to use another way to encode things, all the scarce documentation available won't apply to their case...
<ixxie>
they will have less options but they will get going fast
<ixxie>
and can delve into NixOS after
<clever>
ixxie: that would also make it much simpler to edit the yaml file from a gui
<ixxie>
good idea
<clever>
libraries already exist to parse and then re-encode yaml
<ixxie>
indeed I imagine
Ariakenom has joined #nixos
lord| has joined #nixos
<clever>
of note, nixos modules dont have to be functions
<ixxie>
I think the data structure seems quite appropriate somehow
<clever>
so your imports section could refer to a yaml.nix, which contains: builtins.fromYAML ./config.yaml
<ixxie>
and eventually we could do NixOps like that too
<clever>
and it just returns a naked set
<ixxie>
it would be simple AND powerful, a killer DevOps combo
xeji has quit [Quit: WeeChat 2.0]
<ixxie>
and in 5 years we will have a cluster defined in a YAML file
<ixxie>
xD
Ariakenom_ has quit [Ping timeout: 248 seconds]
<__monty__>
Let's forget about yaml and use dhall.
<MichaelRaskin>
And more stages of initiation than Scientology
<cransom>
you'll have to do a lot of convincing to me that yaml is a killer combo for anything :(
<{^_^}>
[nixpkgs] @LnL7 merged pull request #41254 → cfitsio: add Darwin support → https://git.io/vhsHo
<matthewbauer>
clever: running nix-diff i found that the two have different gcc configure flags . For arch64 the call includes two "--with-arch", the first one armv8-a and the second one i686.
<MichaelRaskin>
YAML + arbitrary object construction in deserealisation is a killer combo for security. You allow this, it kills security.
<clever>
matthewbauer: sounds like its just forcing a 32bit x86 build within the wrong attrset
<bebarker>
has anyone used openssh from nix on a non nix-os system? my config.nix has services.openssh.permitRootLogin = "yes"; in it, but this doesn't seem to have an effect in ./nix/store/hpnx760s247labqc3nbn2kripk73p0ca-openssh-7.6p1/etc/ssh/sshd_config
<LnL>
MichaelRaskin: I know right
<ixxie>
MichaelRaskin: who said anything about arbitrary?
<elvishjerricco>
Dezgeg: ping
<ixxie>
MichaelRaskin: I am talking about something much more simplistic
<MichaelRaskin>
ixxie: random decoding libraries do
<bebarker>
arg, got to go, will check back later
<cransom>
i would argue that if the options you aim to create at that simple, why layer yaml over top?
<symphorien>
bebarker: nixos options don't work on non nixos
<ixxie>
cransom: its much more familiar to people and you can write it in a slack message without much trouble so a bot could build it
<ixxie>
cransom: it also can be learned in 5 minutes
<ixxie>
I would be open to alternatives to YAML I just thing a minimalist language which is YAML like could be nice to soften the learning curve
<ixxie>
and actually
<cransom>
is reading `man configuration.nix` and copy pastaing those settings without any real idea how nix works more than 5 minutes of work?
<hyper_ch>
can't DD create bootable win usb sticks anymore?
<elvishjerricco>
Is there a good way to test NixOS on Aarch64 in a VM?
<clever>
cransom: how many people here have mixed up { foo = { bar = 1; }; foo.baz = 2; } and gotten confused?
<clever>
> { foo = { bar = 1; }; foo.baz = 2; }
<{^_^}>
{ foo = <CODE>; }
<clever>
that usually throws an error, lol
<cransom>
haaaa. clever even has to include self on that one even :)
<__monty__>
ixxie: Imo you could implement the infrastructure you want right now in restricted nix. Something like simpleNix { package = true; ... }.
<ixxie>
wrap Nix in a less powerful language and it will make for a super simple config mgmt system and some people would love that
xy2_ has joined #nixos
<ixxie>
__monty__: that is true
<ixxie>
__monty__: Nix is already very JSON like
<__monty__>
That way you also avoid the barrier to getting from basic bitch user to using more advanced nix features.
<MichaelRaskin>
But we need more stages of initiation!
c74d has joined #nixos
<ixxie>
MichaelRaskin: lol
<cransom>
and yes, many don't follow how attribute merging work. learning the system takes a little effort, but when you keep trying to make something idiot proof, they do make a better idiot
<ixxie>
MichaelRaskin: actually the most import thing is a very solid and clear Getting Started guide for Nix/OS in general
<ixxie>
cransom: fair enough
astrofog has joined #nixos
<MichaelRaskin>
I would say that Nix situation with nix-env vs nix-build vs nix-shell does force me to internalise _how_ people end up with multiple stages of initiation each advising to forget everything from the previous one.
deepfire` has joined #nixos
isHavvy has joined #nixos
<MichaelRaskin>
ixxie: it could be a first step to have a page that simultaneoulsy has links to all three manuals…
<nh2[m]>
domenkozar: slick site! But you should make it so that the landing page is still reachable even when logged in, otherwise after logging in people can't show it to others any more
<samueldr>
and I had the distinct feeling that the approach would be hard to get approval as it's... clumsy
* hodapp
. o O ( brb smoking a cigarette or brb there is smoke? )
<samueldr>
(though imho the navigation is already clumsy, and navigation is hard)
viric has joined #nixos
bbarker has joined #nixos
<matthewbauer>
averell: yes i am following hydra new failures closely & will probably need to use a few patches to get things working. libbsd has much more symbols than i expected
NightTrain has joined #nixos
schjetne has joined #nixos
phreedom_ has quit [Remote host closed the connection]
phreedom has joined #nixos
deepfire` has quit [Ping timeout: 265 seconds]
<adelbertc>
how do nix channels work? i have a multi-user install (on Darwin), and have my own channel tracking nixpkgs-18.03-darwin - i assume there is also a global default channel tracking nixpkgs-unstable
jtojnar has quit [Ping timeout: 256 seconds]
<adelbertc>
however after a `nix-channel --update` a `nix-env -u --dry-run` indicates the next `minikube` version is 0.23.0 which is broken
<symphorien>
iirc it defaults to .defexpr instead of NIX_PATH
<symphorien>
I don't know where channels fit into this
<ixxie>
clever: is there a simple example of packaging an application with plugins
<adelbertc>
how interesting
<symphorien>
what version does nix-build build ?
AluisioASG has quit [Quit: No Ping reply in 180 seconds.]
<adelbertc>
well this is fun `warning: name collision in input Nix expressions, skipping '/Users/z002qj8/.nix-defexpr/channels_root/nixpkgs-18.03-darwin'`
AluisioASG has joined #nixos
tzemanovic has quit [Ping timeout: 260 seconds]
slack1256 has quit [Ping timeout: 240 seconds]
<symphorien>
see, nix-env read .nix-defexpr
<adelbertc>
yeah..
xy2_ has quit [Ping timeout: 265 seconds]
<hodapp>
ixxie: then what, a hookah? a bong? :P
<symphorien>
try: nix-build "<nixpkgs>" -A minikube
<adelbertc>
`error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)`
<symphorien>
huh ?
<adelbertc>
yeah now im confused.
<symphorien>
i'm not familiar of the mac setup, but this seems strange
<bbarker>
c74d: I'm not, as in I'm trying to use nixpkgs in Linux containers
hiratara has joined #nixos
coot has quit [Quit: coot]
matthewbauer has joined #nixos
<Myrl-saki>
If something is released as a standalone binary, is it more idiomatic to package the binary, or to stil compile it?
matthewbauer has quit [Client Quit]
theo_ has quit [Quit: Lost terminal]
matthewbauer has joined #nixos
<infinisil>
Myrl-saki: Still compile it if possible. Advantages: can change compilation paramaters and other adjustments easily, no reliance on the binary source (can recompile with forks), better usage of cache because of dynamic linking
xy2_ has joined #nixos
<Myrl-saki>
infinisil: It's a Go program, sooo :P
<Myrl-saki>
Wait, does Go support dynamic linking?
<Myrl-saki>
holy crap I'm stupid. ' n '
<infinisil>
Not sure
__monty__ has quit [Quit: leaving]
<Myrl-saki>
OTOH, this is a new software which doesn't use XDG config. Not worth it. :P
<clever>
thats what it should look like in a multi-user install
<adelbertc>
yeah..
<Myrl-saki>
I giff up. Where are man pages installed
<adelbertc>
clever: should i symlink it manually?
<clever>
adelbertc: yeah
<clever>
Myrl-saki: usually under /run/current-system/sw/share/man and ~/.nix-profile/share/man
<Myrl-saki>
Are man pages in plain text?
<clever>
nope
<adelbertc>
ok so doing `rm channel` and then `nix-channel --update` symlinks it appropriately, but now `nix-env` is complaining about name collissions presumably because..
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<Myrl-saki>
Ah crap.
<Myrl-saki>
It's in .gz format,
<adelbertc>
both `channel` and `channel_root` contain `binary-caches manifest.nix nixpkgs-18.03-darwin`
<clever>
Myrl-saki: or rather, its a markup language using plaintext, think of it like markdown
<clever>
Myrl-saki: cat foo.1.gz | gunzip | less
<Myrl-saki>
Thanks.
<clever>
Myrl-saki: or just run the man program on the absolute path to it
<symphorien>
adelbertc: rename nixpks-18.03-darwin in nixpkgs
<Myrl-saki>
troff?
<Myrl-saki>
Or?
shabius has quit [Quit: Leaving]
<clever>
adelbertc: run nix-channel --list as both your user and root, do they collide?
<clever>
Myrl-saki: maybe troff, i never looked into it much
<clever>
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35.
jperras has joined #nixos
<adelbertc>
clever: weird part is they both print nothing
<clever>
a random man page begins with this line
<adelbertc>
i assume "as root" just means "with sudo"
<clever>
adelbertc: OSX?
<adelbertc>
yessir
<clever>
adelbertc: apple sets the wrong $HOME when you `sudo nix-channel --list` so its not roots channels
<clever>
adelbertc: `sudo -i` then `nix-channel --list`
<Myrl-saki>
So, uh, this was what's in setbuf.3.gz. .so man3/setbuf.3
<adelbertc>
clever: nothin
<clever>
adelbertc: and in that root shell, `nix-channel --update`
<adelbertc>
nothing is happening. urgh
<adelbertc>
ok my nix was installed through a company installer
<adelbertc>
i will ask my people for further guidance
<adelbertc>
i wonder if the installer was doing anything weird
<adelbertc>
thank you for your help
<clever>
adelbertc: check the ~/.nix-channels file for both your user and root
<clever>
that will bypass the --list
<symphorien>
adelbertc: remove your nixpkgs-18.03-darwin channel and readd it under the name nixpkgs
<tenten8401>
Just thought I'd ask here, but is there anything similar to "build-essential" for ubuntu in NixOS that I can install?
<Myrl-saki>
Also, apropos isn't working "well enough" for me.
<tenten8401>
I initially thought it was "stdenv", but that doesn't seem to provide make or anything
<Myrl-saki>
tenten8401: I think stdenv uses make, but doesn't add it to PATH.
<clever>
tenten8401: your not really supposed to install anything like build-essential when using nix
<clever>
tenten8401: you should always use nix-shell when you want to build something
<infinisil>
*cough* you're
tzemanovic has joined #nixos
palo_ has joined #nixos
tertle||eltret has joined #nixos
<tenten8401>
clever: Yes, However I want to be able to build my software on my current desktop NixOS system
<clever>
tenten8401: use nix-shell to open a shell with those build tools in it
palo has quit [Ping timeout: 240 seconds]
ikitat has quit [Ping timeout: 256 seconds]
<phry>
tenten8401: you really don't need a build environment as part of your NixOS installation. Instead, define a nix-shell that contains all dependencies you need.
<phry>
that allows you to switch between different unpolluted build environments quickly
erasmas has quit [Quit: leaving]
xy2_ has quit [Ping timeout: 240 seconds]
tzemanovic has quit [Ping timeout: 240 seconds]
<tenten8401>
I have a .c file bundled with a Makefile that I need to compile. How would I go about doing that?
<phry>
put it in the same directory as your source code and call `nix-shell`
<phry>
if you need more dependencies, add them to buildInputs
* phry
meant shell.nix, not nix.shell. should go to sleep.
<tenten8401>
I'd like to say I just need gcc/clang and gnumake
<tenten8401>
uhg, this looks kind've annoying but I guess I could see the purpose of it
<phry>
the one I've linked to you is a bit overengineered as it links to a specific nixpkgs commit. you don't really need that when starting, but when sharing the file among multiple people, it gets quite useful
<phry>
Myrl-saki: don't forget about zgrep and zcat.
<tenten8401>
clever: ahh, you're saying I don't have to add clangStdenv if I just replaced stdEnv with clangStdenv?
<Myrl-saki>
Let me try those. zgrep might be faster.
schjetne has quit [Ping timeout: 240 seconds]
jperras has joined #nixos
<Myrl-saki>
phry: Same performance.
nyanloutre_2 has quit [Ping timeout: 260 seconds]
tzemanovic has joined #nixos
<clever>
tenten8401: yep
<tenten8401>
would using shellHook with a simple "make && exit" be an appropriate use of nix-shell for building? or do you think it'd be better to just have it drop to bash instead
<tenten8401>
and then it'll automatically build my custom application every time I nixos-rebuild?
<tenten8401>
Couldn't this also be used for desktop environment specific customizations too? Say I wanted to run a command to set a Qt5 theme or something
<clever>
tenten8401: the above will build it every time you nixos-rebuild, and put it into $PATH via /run/current-system/sw/bin/
matthewbauer has joined #nixos
<clever>
tenten8401: there are other options if you want it to run something on login
<c74d>
If anyone here uses ZFS with linuxPackages_copperhead_*, how well does it work?
<c74d>
(Is NeQuissimus on IRC?)
<tenten8401>
yeah, it was mainly just an example
<tenten8401>
this seems pretty damn cool
<tenten8401>
I really should read up on this a little bit more