<Dezgeg>
perhaps the linux usb drivers are broken for that chipset then... maybe it has an sd card reader or something else to boot off
<CouperinGTRameau>
How does nix figure out that my .nix package is, eg, a haskell package, that should be built via cabal and so on? Doesn't it use the generic (configure; make; make install) builder if none is specified?
<gchristensen>
joehh: what of the following programs do you have: dig, ping, traceroute, curl?
<gchristensen>
oh, joehh, looks like aws is broken
<gchristensen>
aws says green but lots of aws-backed sites are broken
<gchristensen>
... like amazon
<clever>
CouperinGTRameau: you have to make the derivation with haskellPackages.mkDerivation instead of stdenv
endformationage has quit [Ping timeout: 260 seconds]
<logzet>
Dezgeg: It has a cardreader, time to find an SD?
<gchristensen>
all that looks healthy ... I really really wish you had traceroute
<clever>
joehh: it looks like you have ipv6 enabled, but not working
<clever>
joehh: and nix is prefering v6 when it shouldnt
zearen has joined #nixos
<infinisil>
gchristensen: I spent the last 30 minutes tracking down that commit because it broke my system, ugh, probably breaks a whole lot of other stuff
<clever>
joehh: does `ip addr` show a v6 address not starting with fe80?
<Dezgeg>
it could be worth a try if a card shows up in the initrd environment (with bad enough luck, the card reader is on the USB bus as well...)
<joehh>
[joe@jx250:~]$ ip addr | grep inet6
<joehh>
inet6 ::1/128 scope host
<joehh>
inet6 fe80::30fd:f02a:9c7c:8c33/64 scope link
<joehh>
inet6 fe80::3ac6:ca97:9e57:916c/64 scope link stable-privacy
<joehh>
inet6 fe80::66ea:7c4c:4b42:d7b6/64 scope link stable-privacy
<gchristensen>
infinisil: ouch :(
goibhniu has quit [Ping timeout: 260 seconds]
<clever>
joehh: i dont expect nix to prefer v6 in that case, and the test script only hung because the last step forced v6 usage
ihar has quit [Quit: WeeChat 2.0]
<clever>
joehh: what if you run the failing nix command with -vvvvvv, what does it output?
<logzet>
Dezgeg: Seems to be bad luck
<joehh>
just changing network, so may disconnect
srl295 has quit [Quit: Connection closed for inactivity]
klntsky has quit [Ping timeout: 250 seconds]
klntsky has joined #nixos
<logzet>
clever, gchristensen, Dezgeg: Thanks for the help, I am going to try again tomorrow, it's getting late here
<infinisil>
Alright, what the hell nixops
joehh has quit [Ping timeout: 260 seconds]
sk8forether has quit [Quit: Connection closed for inactivity]
<infinisil>
nixops/nixos
joehh has joined #nixos
<infinisil>
First it complains about system.stateVersion being renamed to system.nixos.stateVersion
<logzet>
I'll also ask the previous owner if he did something funny with the USB
<gchristensen>
you back, joehh? :)
<infinisil>
After renaming it complains about it defined multiple times
<clever>
infinisil: nixops defines the option itself, so you cant rename it in your own files
<gchristensen>
nixops defines the state version too
<joehh>
changed network a couple of times
<clever>
infinisil: you must remove it from your files
<infinisil>
Once in nixpkgs/nixos/modules/rename.nix
<joehh>
all works on alternate network, so I suspect local network issues
<infinisil>
Oh, so that's managed by nixops?
<gchristensen>
yea
* infinisil
checks out --export
<gchristensen>
joehh: see PM?
<infinisil>
It is :O
<infinisil>
clever: gchristensen Okay, and to get rid of the warning about it being renamed I have to update nixops?
<clever>
infinisil: yeah
<joehh>
looks like ipv6 issues
CouperinGTRameau has quit [Quit: Page closed]
<bgamari>
is there any way to determine which nixpkgs commit my current nixpkgs channel corresponds to?
sbdchd has joined #nixos
<clever>
bgamari: yes, one sec
<clever>
[root@amd-nixos:~]# nix-instantiate --eval '<nixpkgs>' -A lib.version
<clever>
"18.09pre144959.be1461fc0ab"
<bgamari>
ahh
<bgamari>
lovely
<bgamari>
clever, thanks!
<infinisil>
,nixpkgsVersion = nix-instantiate --eval '<nixpkgs/lib>' -A version
<{^_^}>
nixpkgsVersion defined
<clever>
bgamari: you can also use `nix-instantiate --find-file nixpkgs` to see where nix thinks <nixpkgs> is
<rardiol1>
How do I do a wrapProgram ' --run "cd $HOME/foo"' that evaluates $HOME at runtime instead of installtime?
fractalcat has joined #nixos
<infinisil>
clever: How about that
<clever>
infinisil: i dont mean a programming language that looks like nix, but turning nixpkgs into a dynamic library, and then turning configuration.nix into an actual executable
<infinisil>
rardiol1: Use ' quotes instead of " ones
<clever>
infinisil: so i can just edit configuration.nix, re-compile it, then run it to produce the .drv files
<infinisil>
clever: So, compilation would do something like nix-instantiate --eval, while running it would do a nix-instantiate?
<samueldr>
gchristensen: don't have a solution, but which file dialog? gtk2, gtk3, kde, qt?
<gchristensen>
Firefox 61... thats gtk rigt?
<samueldr>
probably gtk3 then
<samueldr>
and for investigation's sake, other software using gtk3 exhibit the same issue?
<infinisil>
rardiol1: see line 40 in that file
<infinisil>
rardiol1: it calls bash with -e, which means it will exit if any intermediate command fails
<samueldr>
( nix-shell -p gnome3.gedit --run gedit for a gtk3 dialog )
klntsky has quit [Ping timeout: 250 seconds]
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
stepcut has joined #nixos
<clever>
one anoying thing ive noticed, is that chrome has a good gtk file diaglog, with previews for images, but electron based apps have the identical dialog, without previews
alexteves has quit [Remote host closed the connection]
<samueldr>
google-chrome or chromium?
<clever>
chromium
klntsky has joined #nixos
<samueldr>
(important because of the libraries built into google-chrome)
<samueldr>
weird
<clever>
i think the electron side is the broken one
<samueldr>
and for completion's sake, geany has a gtk2 file dialog ( nix-shell -p geany --run geany )
<gchristensen>
samueldr: gedit does too
worldofpeace_ has quit [Quit: worldofpeace_]
<samueldr>
so it really looks like an interaction with gtk3 + your setup
<clever>
gchristensen: what desktop manager are you using?
doyougnu has quit [Ping timeout: 240 seconds]
<gchristensen>
i3
chreekat has quit [Quit: quitting]
<clever>
then my xfce directions wont help much
<rardiol1>
infinisil: thanks, hopefully this time I fixed the installation problems without waiting 1 hour for the compile
worldofpeace has joined #nixos
worldofpeace has quit [Client Quit]
<samueldr>
hmmm, gsettings (gnome3.gconf) doesn't work neither nix-env or nix-shell
<pie_>
so i have fish set as my shell and everything, but nix-shell still runs bash after its done installing stuff, can i do something about that?
<infinisil>
pie_: --command fish
<infinisil>
I also do `alias nix-shell="nix-shell --command zsh"`
<pie_>
can i do anything on the configuration.nix level?
<pie_>
well, ok its not so much a question of "can"
<samueldr>
gchristensen: use `nix-shell -p gnome3.dconf-editor --run "dconf-editor"` and navigate to --run "dconf-editor
<samueldr>
oops
<samueldr>
navigate to org.gtk.Settings.FileChooser
<gchristensen>
hmm -1,-1!
<samueldr>
that's... probably not right
<gchristensen>
(dconf-editor:20027): dconf-WARNING **: failed to commit changes to dconf: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name ca.desrt.dconf was not provided by any .service files
<gchristensen>
it can't save my changes
<clever>
gchristensen: the gconf daemon has to be running
<clever>
gchristensen: xfce has an option in its settings gui for that, dont know about i3
<iqubic>
Also, I'm not using Grub, so I doubt memtest would even work for me.
<iqubic>
I'm using systemd-boot
<clever>
iqubic: the usb image works without grub
<iqubic>
Does the Nixos version require grub?
frankpf has quit [Ping timeout: 256 seconds]
<clever>
iqubic: yes
<iqubic>
Why? Why isn't there a systemd-boot option?
<clever>
iqubic: the memtest binary doesnt boot with efi
<iqubic>
efi and memtest don't mix?
<clever>
correct
<gchristensen>
iirc the efi-compatible memtest is nonfree?
muzzy__ has quit [Ping timeout: 244 seconds]
<iqubic>
Alright, so I'll download the memtest thing, put it on a flash drive. Then what?
<clever>
iqubic: then boot from it
<adelbertc>
been getting `warning: unknown setting 'signed-binary-caches'` since upgrading to Nix 2 (on Darwin) - i assume i can just remove it from `/etc/nix/nix.conf` but i'm curious what it's been replace with, if anything
blankhart has quit [Ping timeout: 265 seconds]
<iqubic>
And what do I do from there.
<clever>
iqubic: wait a few hours
<{^_^}>
[nixpkgs] @dtzWill opened pull request #43400 → ghc: don't use LLVM w/musl on non-cross → https://git.io/fNIdl
<iqubic>
Why do I want to run memtest?
<iqubic>
What benefits do I get from it?
<clever>
iqubic: i suspect your memory is bad
<iqubic>
does memtest fix that?
<clever>
no
<clever>
that would be called memfix
<clever>
memtest just tests the mem
<iqubic>
How long does memtest take to run?
<clever>
2018-07-11 23:37:09 < clever> iqubic: wait a few hours
<iqubic>
Sorry.
<iqubic>
I'm going to try just a simple reboot first. LOL.
iqubic has quit [Remote host closed the connection]
blankhart has joined #nixos
iqubic has joined #nixos
lassulus_ has joined #nixos
<iqubic>
Yeah, well...
<iqubic>
A reboot didn't help.
realrokka has quit [Read error: Connection reset by peer]
<iqubic>
Shall I download and run memtest now?
<clever>
yes
sir_guy_carleton has joined #nixos
<iqubic>
Does it work with a dual boot system? I have a windows 10 partition on this machine that I'd like to keep around.
<clever>
yes
justanotheruser has quit [Ping timeout: 268 seconds]
<clever>
because you installed python, you are able to run the installed one, which lacks tkinter
<clever>
2018-07-11 23:53:17 < clever> iqubic: thats why you dont install python or libraries, thats why you put that expression into a shell.nix for each project
<clever>
and if you need to use python3, use nix-shell -p 'python3.withPackages (ps: [ ps.tkinter ])'
<iqubic>
Once this long long update finishes, I'll run memtest, and then I'll learn what a shell.nix does.
<clever>
iqubic: shell.nix is just the default file that nix-shell reads when given no args
<iqubic>
What does nix-shell do?
<clever>
iqubic: give you a shell with the things defined in shell.nix
<iqubic>
I see. And why do you want that?
<iqubic>
Wait, is that so you get a pure development environment?
<clever>
yeah
<dje4321_>
still fails to find _tkinter
<iqubic>
And if you needed a repl you'd run that through nix-shell?
<clever>
iqubic: yes
<iqubic>
And what if you wanted your vim plugins to be able to find the symbols defined in a library?
<clever>
iqubic: run the vim inside the shell
<iqubic>
You can do that?
<iqubic>
How many people actually do that?
<clever>
nothing is stopping you from running vim inside nix-shell
<clever>
nix-shell is just a shell
<iqubic>
Where do I go to download a memtest iso?
halfbit has quit [Quit: WeeChat 2.1]
<clever>
iqubic: check the memtest pages i linked, there is a download page
<iqubic>
do I want memtest 86?
<clever>
yes
<sir_guy_carleton>
the difference between the nix shell and the regular shell is that the nix shell has access to the extra packages, right?
<ldlework>
You appear to be setting environment variables ("PATH") in your .bashrc or .zshrc: those files are only read by interactive shells, so you should instead set environment variables in startup files like .profile, .bash_profile or .zshenv. Refer to your shell’s man page for more info. Customize ‘exec-path-from-shell-arguments’ to remove "-i" when done, or disable
<ldlework>
‘exec-path-from-shell-check-startup-files’ to disable this message.
<ldlework>
I notice in ~/.config/zsh/.zshrc there is the line:
dramforever has quit [Read error: Connection reset by peer]
tadni has left #nixos [#nixos]
polyzen has joined #nixos
<zgrep>
Hello. It seems I'm unable to get audio working on my laptop. I set sound.enable = true; and rebooted. alsamixer chooses the correct (and only) audio card, I turn all of the volume bars up, and there's no sound. Not via my laptop's speakers, nor via plugged in headphones. I tried adding myself to the audio group just in case, but that didn't help. It's not a hardware problem, because sound was working with a different linux distro
<zgrep>
before, and I can hear a static-like noise changing when I modprobe snd_hda_intel (and during boot) if I have headphones plugged in. I'm at a loss as to what I could do next.
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
<adisbladis[m]>
zgrep: What does `nixos-option hardware.pulseaudio.enable` say?
Deknos has quit [Remote host closed the connection]
<zgrep>
Err, I didn't enable pulseaudio (on purpose, I'd rather not have it if possible), but when I tried with pulseaudio earlier, I had the same problem.
Deknos has joined #nixos
johanot has joined #nixos
<zgrep>
Currently it's set to false.
<adisbladis[m]>
zgrep: Ah check. I mean it should work anyway using alsa.
<adisbladis[m]>
How are you testing this?
<zgrep>
Playing a video using mpv, I also tried $ cat /dev/urandom | aplay #.
Deknos has quit [Changing host]
Deknos has joined #nixos
<zgrep>
(Err, pulseaudio is indeed not enabled, the value of hardware.pulseaudio.enable is false, in case I didn't clarify that well enough.)
Deknos has left #nixos [#nixos]
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
crmlt has joined #nixos
andymandias has quit [Ping timeout: 240 seconds]
andymandias has joined #nixos
drakonis has quit [Remote host closed the connection]
<zgrep>
Also videos in firefox.
wucke13 has quit [Quit: WeeChat 2.0]
mkoenig has quit [Quit: Lost terminal]
<teto1>
I would like to run `eval "$buildPhase"` from a subprocess of the nix-shell. Which file(s) should I source when running a sub-shell to set $buildPhase ?
johanot has quit [Remote host closed the connection]
mkoenig has joined #nixos
crmlt has quit [Ping timeout: 240 seconds]
coot has joined #nixos
<joepie91>
adisbladis[m]: zgrep: muzzy had similar issues a few days ago
<joepie91>
I suspect that non-pulseaudio audio is just broken?
<joepie91>
(it worked for them with pulse)
mariatsji has joined #nixos
mariatsji has quit [Remote host closed the connection]
mariatsji has joined #nixos
joehh has quit [Ping timeout: 260 seconds]
robstr has joined #nixos
<zgrep>
Mmh. Trying with pulseaudio again, it seems to work with my headphones.
<zgrep>
And with my speakers.
<adisbladis[m]>
Firefox is expected iirc
<adisbladis[m]>
Didn't they drop alsa support a while back?
<zgrep>
I believe firefox audio worked for me on a different distro with only alsa installed (earlier this month).
<adisbladis[m]>
zgrep: Depends on the version
<adisbladis[m]>
It happened not too long ago
<zgrep>
That's unfortunate. :(
robstr has quit [Read error: Connection reset by peer]
robstr has joined #nixos
<joepie91>
zgrep: can you file a bug? regarding ALSA not working
<joepie91>
once is an edge case, twice sounds like a bug :P
Lisanna has quit [Quit: Lisanna]
<adisbladis[m]>
joepie91: It's pretty near impossible pulse would work but not alsa except in case of pebkac
<joepie91>
adisbladis[m]: thing is, we've had two reports in as many days
<joepie91>
of exactly that
<joepie91>
and that's just those who have hopped onto IRC to ask about it
<joepie91>
warrants at least triaging
MercurialAlchemi has quit [Remote host closed the connection]
MercurialAlchemi has joined #nixos
reinzelmann has joined #nixos
<adisbladis[m]>
Just tested locally from latest master: Pure alsa works just fine
<adisbladis[m]>
login as root/user in audio group: mpv -vo null -ao alsa somefile.flac
<zgrep>
Hm. From the latest master. I'm using 18.03, as far as I know.
Khetzal has quit [Remote host closed the connection]
<zgrep>
Interestingly enough, upgrading and switching to alsa, everything is fine now.
Khetzal has joined #nixos
Guanin has joined #nixos
jackdk has quit [Ping timeout: 244 seconds]
v0latil3 has joined #nixos
i0-dfn has quit [Remote host closed the connection]
<zgrep>
adisbladis[m]: joepie91: PEBKAC indeed: I forgot the way in which alsamixer shows that devices are muted (and that they can be muted at all, apparently).
reinzelmann has quit [Ping timeout: 240 seconds]
<v0latil3>
can anyone bother to help me with making a PHP package? I have a couple questions
thc202 has joined #nixos
__Sander__ has joined #nixos
phdoerfler has joined #nixos
palo has quit [Ping timeout: 260 seconds]
phdoerfler has quit [Read error: Connection reset by peer]
coot has quit [Quit: coot]
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
<adisbladis[m]>
zgrep: :)
Khetzal has quit [Ping timeout: 240 seconds]
<adisbladis[m]>
v0latil3: I don't know much about PHP in particular but quite a bit of nix. Shoot.
<v0latil3>
basically there is a config file with database connection, etc. that would end up in the nix store
<v0latil3>
<v0latil3> I think maybe I need to change the application itself a bit to package it the nix way
<v0latil3>
the file is called .env and has lines like "DB_CONNECTION=mysql"
<v0latil3>
adisbladis[m], i see that and tested it but would like to make a package for it in nixpkgs tree
<adisbladis[m]>
v0latil3: Ahh ok. How far along are you? Could you paste your expressions?
reinzelmann has joined #nixos
NicksNix has joined #nixos
<adisbladis[m]>
It would help a lot to understand what you want
<v0latil3>
adisbladis[m], not far at all haha literally just the fetchFromGitHub and the meta
<NicksNix>
Hey everyone! I have a weird problem trying to use tensorflow for a python package I'm building.
<v0latil3>
I can get it to work with that composer2nix but I have to edit this .env file and configure it like on a normal ubuntu or whatever and then use composer2nix and add the nix expressions from that
remmster has joined #nixos
goibhniu has joined #nixos
<v0latil3>
but instead i would like to package it "natively?" so i can have the package for it and a service for it to configure instead of hardcoding in the configuration to a specific derivation
<NicksNix>
I'm using nix (on a NixOS machine), and have a default.nix script which describes the dependencies etc. Everything works as long as I'm not using tensorflow, Keras or the likes. When I add one of these (in the python36Packages.buildPythonPackage.propagatedBuildInputs list)
<v0latil3>
adisbladis[m], I don't know if that makes sense. i'm a noob to nix :)
<NicksNix>
the machine builds tensorflow and Keras, but when I start a nix-shell, the libraries aren't available
<remmster>
Does anyone have custom theme/icons for lightdm-gtk-greeter working?
<NicksNix>
(both when using "import keras" in the code I want to run, and they're not listed through the command
<v0latil3>
adisbladis[m], not 100% sure i even understand exactly what composer2nix does. i'm looking at the .nix it created for this
<adisbladis[m]>
v0latil3: It looks like most packages simply unpackes and copies the files
<adisbladis[m]>
v0latil3: If you look at other php packages in nixpkgs
<{^_^}>
[nixpkgs] @dotlambda merged pull request #43393 → pythonPackages.cython: run tests in parallel → https://git.io/fNI1d
redj has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @volth to master « pythonPackages.cython: run tests in parallel (#43393) »: https://git.io/fNLJK
<v0latil3>
adisbladis[m], Yeah, I'm looking at LimeSurvey
<adisbladis[m]>
Ore use buildPecl
<adisbladis[m]>
NicksNix: How are you launching nix-shell?
obadz has quit [Ping timeout: 248 seconds]
<v0latil3>
adisbladis[m], I think pecl is for php extensions and composer is for libraries which is different maybe. idk.
obadz has joined #nixos
<adisbladis[m]>
v0latil3: Anyway. There are lots of examples using `stdenv.mkDerivation` and just copying the source to the output
<Lears>
remmster: not icons, but I am using the numix gtk theme with it. The displayManager section of my services.xserver config looks like this: http://nixpaste.lbr.uno/JfQrUer1?nix
<v0latil3>
adisbladis[m], Yeah probably. I think i can get it to work from the composer2nix output, i will just have to patch the app to get the .env variables from a different location instead of nix store
<remmster>
Lears: thanks - mine is pretty similar but it's not working. Let me try with the numix theme
<NicksNix>
adisbladis: I execute "nix-shell" without any arguments
Ariakenom has quit [Read error: Connection reset by peer]
<wucke13>
Hey, I've run into an interesting 'bug' while deploying nix to a non nixos machine: while creating the build users, the script correctly dislikes the fact that the uid (30001) is already in use. As this is a univesity application server, this makes sense (the uid is taken by a regular user). How do I circumvent this? Maybe just assuming that no user has the uids ranging from 30001-30000+number-of-buildusers is
<wucke13>
not a good idea?
<manveru>
hmm
<manveru>
you can probably just modify the script
<manveru>
i don't think it matters what uids they have in practice
Ariakenom has joined #nixos
<wucke13>
manveru: why are they explicitly stated if they don't matter? I think there is no need to state them explicit, as they happen to be autoassigned by the system? I'm uncomfortable about modifying the script.
<wucke13>
Basically that filters the target audience for a non nixos multiuser nix install to all Systems with <29000 users...
<manveru>
well, it's the first time i hear of this problem :)
<manveru>
and we usually only fix problems if we know about them, so now it's time to fix it
<wucke13>
Hmmh. Which script needs to be modified then? The install script itself doesn't look like it adds the user itself?
<manveru>
the install script fetches a tarball with another install script
<wucke13>
So basically one would need to modify the install script in a way it modifies the other install script which is first downloaded from an external ressource?
<WilliamHamilton>
hi, I'd like to understand what controls the read only attribute of /nix/store wrt $out
<WilliamHamilton>
why is it that I can say `mkdir $out` in a derivation, and it will be built, while I can't say `mkdir $out` when I am in a nix shell following that derivation step by step?
<nschoe>
Hi everyone, I'm trying to install `system-config-lvm` on nixOS, but I can't seem to find the package. Is there one and I'm just bad a looking, or is it not packaged?
Yaniel has quit [Ping timeout: 240 seconds]
<nschoe>
This is a GUI tool to handle lvm partitions.
<WilliamHamilton>
nschoe: what's the name of the executable you hope to use?
<Myrl-saki>
nschoe: Not necessarily, it could also just be part of the packages that are not being built.
<Myrl-saki>
But I 99.9% doubt that's the case.
<nschoe>
Myrl-saki, the above commands looks for hydra, is that it?
<Myrl-saki>
nschoe: I have no idea, but from what I understand, command-not-found(or at least the backing function) checks a file that you download from channels.
<nschoe>
Hum ok.
<nschoe>
Thanks, I'll try to ind another way.
<angerman>
hmm windows cross compilation via mingw is broken in nixpks, due to trying to build coreutils.
<Myrl-saki>
Also, I messed up my command-not-found, but it didn't work either way. :P
<nschoe>
Myrl-saki, yes I have command-not-found installed on the system as well, it did not find anything.
<nschoe>
It doesn't matter, I'll try to fond another GUI.
<{^_^}>
[cabal2nix] @peti pushed 0 commits to refs/tags/2.10.0: https://git.io/fNLYp
<nschoe>
Myrl-saki, yes I'm on this too, but I get some weird errors like "Could not load plugin for core backend "pmlibpartedbackendplugin" : "The shared library was not found.""
trcc has joined #nixos
<nschoe>
Wellll nothing's working, so I guess I'll have to do it by hand :P
trcc has quit [Remote host closed the connection]
trcc has joined #nixos
knupfer has quit [Ping timeout: 260 seconds]
logzet has joined #nixos
v0latil3 has quit [Read error: Connection reset by peer]
ericsagnes has quit [Ping timeout: 244 seconds]
ajs124 has left #nixos ["Stream closed by us: Replaced by new connection (conflict)"]
ajs124 has joined #nixos
zduch4c has joined #nixos
<zduch4c>
henlo
<zduch4c>
I'm wondering how the programs.chromium.extensions variable works... do I need to install chromium in some particular way for the extensions to be installed?
<zduch4c>
for now I'm just installing it in environment.systemPackages
<WilliamHamilton>
when is the $out folder created in a derivation?
fendor has joined #nixos
ThatDocsLady_ has quit [Ping timeout: 260 seconds]
<teto1>
WilliamHamilton: when in a nix-shell, export out to a path where you can write
<WilliamHamilton>
teto1 I see, so the $out creation process is only handled by nix, there's no way to observe it manually?
simukis has joined #nixos
nschoe has quit [Quit: Program. Terminated.]
<WilliamHamilton>
in the installPhase, I'm writing "mv * $out" in the derivation
<LnL>
the build has to create it
<WilliamHamilton>
but when building with nix-build it complains that $out is read-only
<LnL>
outputs can be a directory or a file so nix can't create it upfront
nschoe has joined #nixos
fendor has quit [Ping timeout: 240 seconds]
dmc has joined #nixos
Yaniel has quit [Ping timeout: 264 seconds]
Yaniel has joined #nixos
<WilliamHamilton>
see, if I put "mv * $out" as my installPhase, I get the error
mmercier_ has quit [Quit: mmercier_]
<WilliamHamilton>
mv: target '/nix/store/8lpvgayy7n8j96amblzg4wfjn5jhybcw-pakcs-2.0.2' is not a directory
<WilliamHamilton>
I'd like, when the build finishes, to copy the files in $out (I understand that they are built in a temporary directory
wucke13 has quit [Quit: WeeChat 2.0]
zduch4c has quit [Quit: Page closed]
phreedom has quit [Ping timeout: 250 seconds]
phreedom has joined #nixos
ajs124 has left #nixos ["Stream closed by us: Replaced by new connection (conflict)"]
ajs124 has joined #nixos
__monty__ has joined #nixos
<WilliamHamilton>
on the other hand, if I don't provide a makefile, the default is a `make install`, that the makefile doesn't have
raynold has quit [Quit: Connection closed for inactivity]
init_6 has joined #nixos
<adisbladis[m]>
WilliamHamilton: `mkdir $out`
<adisbladis[m]>
You are responsible for creating the output
<WilliamHamilton>
adisbladis: I'll correct that asap, thanks. Could I say `installPhase="mkdir $out; mv * $out` when I'm in a nix shell and then issue `eval $installPhase`?
xorkle has quit [Ping timeout: 268 seconds]
humanoyd has joined #nixos
<adisbladis[m]>
WilliamHamilton: That's fine for the derivation itself. Though you cannot create $out from your nix-shell
<adisbladis[m]>
Only the daemon can do that
<adisbladis[m]>
/nix/store is read only
<WilliamHamilton>
I see, thank you
humanoyd has quit [Quit: WeeChat 2.1]
<rardiol1>
Does someone here owns the paid version of keeperrl?
<nschoe>
Hey, any tip for optimizing disk space? My nix store takes about 50G and I'm running out of space.
<nschoe>
I have deleted old generations of my user profile, the "channel" profiles, the system profile and ran the garbage collector.
<nschoe>
I have also ran nix-store --optimize (or equivalent, smth like this).
<LnL>
how many system/user generations do you have?
fendor has joined #nixos
<nschoe>
LnL, `nix-env --list-generations` alone gives just one, with -p /nix/var/nix/profiles/system, there are 2, with -p /nix/var/nix/profiles/default there are 1
johanot has quit [Ping timeout: 256 seconds]
<goibhniu>
nschoe: could you have some gc-roots from running nix-build?
<LnL>
50G isn't that much, depending on the size of your system build
<LnL>
take a look at nix-store --gc --print-roots | grep -v memory:
<cocreature>
is there some semiautomatic tooling for figuring out nodes in the dependency graph that might be useful to remove? e.g. something like “if you manage to get rid of this dependency, we can drop those 50 other deps as well”
pie___ has joined #nixos
<cocreature>
the output of --query --graph seems to be to large to get anything useful out of it (at least with my very limited graphviz skills)
<LnL>
nix-env itself is what takes care of creating the symlink tree and updating profile links
<nschoe>
goibhniu, yes I have 30 apparently
<nschoe>
goibhniu, most of them are "/nix/var/nix/profiles/per-user/nschoe/channels-XX-link" though.
fendor has quit [Read error: Connection reset by peer]
buzzmaster[m] has joined #nixos
phaebz has joined #nixos
<goibhniu>
nschoe: I'd try removing the build result link and running the garbage collector again
johanot has joined #nixos
ma27 has joined #nixos
<gchristensen>
standard firefox on 18.03 can use u2f keys now, fyi
<{^_^}>
[nixpkgs] @rardiol opened pull request #43409 → keeperrl: init at alpha24 → https://git.io/fNL8r
<hodapp>
cocreature: hmm, looking for eliminating transitive dependencies in other words?
<hodapp>
seems like an easy thing from a graph theory standpoint but I might also not understand it well
<cocreature>
hodapp: yeah
justanotheruser has joined #nixos
<cocreature>
from a graph theory standpoint it’s something like finding nodes which when removed will break the connection to the root for other nodes
fendor has joined #nixos
phdoerfler has joined #nixos
alexteves has joined #nixos
averell has quit [Quit: .]
averell has joined #nixos
frankpf has joined #nixos
kyren has joined #nixos
Wharncliffe has quit [Ping timeout: 240 seconds]
xy2_ has quit [Ping timeout: 264 seconds]
Copenhagen_Bram has quit [Read error: Connection reset by peer]
joehh has joined #nixos
tessa has joined #nixos
trcc has quit [Remote host closed the connection]
<nschoe>
goibhniu, yep, I have removed the result that I felt confortable removing, but what about those "nschoe/channels-XX-link"? Is it safe to remove? I don't know what they are :/
fragamus has joined #nixos
<WilliamHamilton>
LnL: so, I have an executable in $out/bin, but if I call it from the shell by name I get "command not found"
frankpf has quit [Ping timeout: 256 seconds]
<goibhniu>
nschoe: have you run `nix-collect-garbage -d` as your normal user too?
<WilliamHamilton>
are all the executables in bin symlinked in the profile? Or is it because I'm running this with nix-build and I should put it in the nixpkgs tree instead?
<{^_^}>
[nixpkgs] @pSub merged pull request #43293 → hetzner-kube: init at version 0.3.1 → https://git.io/fNTLI
<nschoe>
goibhniu, yes, without the -d, though. Because I don't like erasing everything but the current. But I have removed profiles by hand, and then run `nix-collect-garbage`.
<LnL>
WilliamHamilton: you have to explicitly install things into your profile
johanot has joined #nixos
<buzzmaster[m]>
what are the common usecases for NIxOS?
<buzzmaster[m]>
__monty__: how does it compare to Anisble/Terraform?
redj_ is now known as redj
<__monty__>
buzzmaster[m]: I'd compare those more to nixops than nixos. The main difference is nixos is declarative instead of imperative. (I'm not up on current ansible et al. though, maybe they've improved.)
aarvar has quit [Ping timeout: 240 seconds]
<buzzmaster[m]>
__monty__: both declarative and imperative approaches are supported. Terraform is declarative AFAIK
<buzzmaster[m]>
how does NixOS define declarative?
<Psi-Jack>
buzzmaster[m]: Have you even tried NixOS out in a VM or anything?
<buzzmaster[m]>
Psi-Jack: not yet, mostly because it's not clear to me what problems it tries to solve
<__monty__>
buzzmaster[m]: You specify the software/services that should be on the machine in configuration.nix and a rebuild makes it so. You never have to say "stop all services, change some services, start all the new services" or anything of the sort.
<Psi-Jack>
buzzmaster[m]: Well, I recommend you do so, as that will answer many questions, and likely have you asking better questions. :)
<Lears>
The common use cases of NixOS are very simple: "home desktop and server".
<Lears>
It's just a nice OS that's easy to keep clean and hard to break.
<gchristensen>
well, laptops too
<Lears>
Right, I was lumping them in with desktop since I don't really distinguish.
<gchristensen>
buzzmaster[m]: nixos is actually declarative, not declarative-but-actually-imperative
* etu
uses nixos on laptops, desktops, vpses and raspberry pis
<gchristensen>
it doesn't guess what commands should be run to change your system to match desired state, it recreates the entire system on each run to match your spec
ThatDocsLady has joined #nixos
<ocharles_>
Any Packet.net & NixOS users here? I'm wondering how NixOps fits in
libertyprime has joined #nixos
<gchristensen>
ocharles_: yep... :)
<ocharles_>
My Packet server seems to have /etc/nixos/packet with a lot of important things, things that I think change when I change things in app.packet.net
<rardiol1>
Why not on the toaster etu?
<gchristensen>
ocharles_: those files are never regenerated
<ocharles_>
ah
<etu>
rardiol1: Because I don't have a toaster:)
ThatDocsLady has quit [Client Quit]
<ocharles_>
so I can grab em once and stick em in a nixops network and forget about them?
<gchristensen>
ocharles_: yep
<ocharles_>
nice. I'm pretty excited about this. AWS pisses me off more than it makes me happy
<gchristensen>
are your systems running the 18.03 or 17.09 version?
<buzzmaster[m]>
Psi-Jack: right, it's just I'm not a fan of going through pages of manuals to get something to work
<gchristensen>
Packet is *amazing* and their Slack is great, ocharles_
<ocharles_>
e.g., right now nixops has been sat there for about 10 minutes trying to get SSH. I give up
<ocharles_>
gchristensen: 18.03 on one of the "tiny" machines
<Psi-Jack>
buzzmaster[m]: You go through a page or two at best to get started.
<buzzmaster[m]>
gchristensen: what is "declarative" in this context?
<gchristensen>
ocharles_: nice
<ocharles_>
gchristensen: nice! I'm impressed so far
<gchristensen>
buzzmaster[m]: you should just try it :)
<Psi-Jack>
buzzmaster[m]: I just started /looking/ at nixos yesterday, and all the questions you've asked, I already have seen first hand.
<gchristensen>
buzzmaster[m]: if you're not willing to try it, then I'm not sure we can help further. you'll definitely have to do some manual reading and some source code reading to have a good experience on nixos
<clever>
Enzime: optionals doesnt wrap the arg in a list, so you can pass it a list of several optional things to include
<gchristensen>
buzzmaster[m]: we can't help you further if you're not willing to try. #nixos isn't here to support you to the ends of the earth. (this is a warning.)
<buzzmaster[m]>
I guess I'll fire up nix in a vm tonight after I get out of the office
<etu>
buzzmaster[m]: So go download virtualbox and a nixos image and try it out.
<gchristensen>
great :)
<{^_^}>
[nixpkgs] @taku0 opened pull request #43410 → Thunderbird bin 52.9.1 → https://git.io/fNLEC
<buzzmaster[m]>
I strongly dislike docker + ansible combo I have to use
<Enzime>
clever: but for someone that's hardcoding a list of values
<Enzime>
it doesn't make a difference right?
<Enzime>
lib.optional a b c
<Enzime>
or
<Enzime>
like I could do either
<Enzime>
lib.optionals [ a b c ]
<etu>
buzzmaster[m]: you can build docker images with nix :)
<clever>
Enzime: the first argument to both must be a boolean
<buzzmaster[m]>
etu: right. I can also use Packer
<Enzime>
clever: oops forgot that, but regarding the latter argument(s)?
<clever>
Enzime: there are examples where i linked, optional true "foo"
<clever>
Enzime: vs optionals true [ 2 3 ]
<Enzime>
clever: is optional true "foo" "foo" equivalent to optionals true [ "foo" "foo" ]
<clever>
Enzime: no
<clever>
Enzime: that will attempt to call "foo" on "foo", and fail
<Enzime>
clever: ah okay
<Enzime>
just realized I could've tested this in the nix repl
<clever>
> optional true "foo" "foo"
<{^_^}>
undefined variable 'optional' at (string):154:1
<clever>
> lib.optional true "foo" "foo"
<{^_^}>
attempt to call something which is not a function but a list, at (string):154:1
<clever>
the bot also can do it
<Enzime>
can I make it build all the packages?
<buzzmaster[m]>
it'd be nice if Nix could be ported to Illumos at some point
<buzzmaster[m]>
I like zones a lot better than LXC
<buzzmaster[m]>
and dtrace
<etu>
buzzmaster[m]: Probably not impossible since nix is actively used on macOS
hxrts_ has quit [Remote host closed the connection]
averell has quit [Quit: .]
<Psi-Jack>
Hmm. I will say this. So far, NixOS does peak some curiosity for me. :)
<hodapp>
pique*
averell has joined #nixos
<Psi-Jack>
Yes, pique. :)
orivej has joined #nixos
<infinisil>
Psi-Jack: Nice :D
lord| has quit [Ping timeout: 240 seconds]
<Psi-Jack>
I might just have to try it out in actual use, and see if I can put it to the uses I can forsee me using it for, primarily servers.
averell has quit [Remote host closed the connection]
averell has joined #nixos
<gchristensen>
/!\ warning: it is very hard to turn away from once you step your toe in /!\
<Psi-Jack>
Though to do that, I'll also have to figure out nix itself, because the zabbix-2.x crap is just too dang old.
zduch4c has joined #nixos
<zduch4c>
hello
chaker has joined #nixos
<zduch4c>
what's the easiest way to make an executable file (that I downloaded off the net, for example some game) work under NixOS? I heard about patchelf, how do I use it?
lord| has joined #nixos
<gchristensen>
Psi-Jack: we're happy to help you with updating a package and service, as part of learning how those systems work
<Psi-Jack>
heh.
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen>
as part of *teaching* you how they work I mean
<gchristensen>
zduch4c: first thing I'd try is steam-run, which pretends to be enough of a regular linux to run Steam games
<Psi-Jack>
Well, I learned how to do Solus packaging within just a couple days. If nixos's is anywhere near as good and easy, nix won't be much either.
<infinisil>
,locate bin steam-run
<{^_^}>
Found in packages: steam-run-native
<Enzime>
gchristensen: that's cheeky
<nbathum>
ghasshee: I'm also on 18.03. for me, `nix-env -qaP '.*dropbox.*' returns like 6 packages from the main nixos channel
blob_ has quit [Remote host closed the connection]
<zduch4c>
"nix search <package-name>" is better I heard
<nbathum>
ooh
<Enzime>
wow
<Enzime>
this is a world of colour
<nbathum>
nice
<Enzime>
I've been using `nix-env -qaP | grep dropbox` this whole time
<nbathum>
zduch4c: thanks
<infinisil>
Enzime: Could've also used `nix-env -qaP | fzf`, much nicer and faster
<joepie91>
Psi-Jack: I've personally found the packaging process itself to be very pleasant for Nix; but it does involve a bit more thinking in the sense that you can't just drop files into /bin and /lib and *certain* software does really dubious things with global system state that you need to prevent (although if there's a pre-existing package, even if it's an old one, somebody has likely already sorted those things out)
<Enzime>
infinisil: peco > fzf :)
<infinisil>
Never heard of peco, *tries it*
<Enzime>
joepie91: I mean doesn't Nix prevent that :)
<joepie91>
Psi-Jack: also, for server usage, you'll probably want to look at NixOps at some point as well
<Enzime>
the main issue is that the application won't work :P
Coyin has joined #nixos
<__monty__>
infinisil: Try rg instead ; )
<hodapp>
Psi-Jack: by the way, did you ever work your confusion out with why you kept insisting to me that CRC32 is *not* for error-checking?
<joepie91>
Enzime: well, yes, Nix tries pretty hard to disallow this kind of thing, but 1) it can't do so perfectly and 2) you're still left with a mysteriously non-working application that you need to fix :)
<infinisil>
What the hell, peco messes up my terminal
<infinisil>
__monty__: Yeah I'm using rg extensively already
<Psi-Jack>
joepie91: Eventually. Though we'll see. I run 3 AWS EC2 instances, of which runs my webserver stuff, mail server stuff, and miscellany stuff (znc, vpn, etc).
<Enzime>
infinisil: what terminal are you running?
<infinisil>
Enzime: tmux in alacritty
blob_ has joined #nixos
ericsagnes has quit [Ping timeout: 260 seconds]
<Psi-Jack>
hodapp: Pardon?
<gchristensen>
man, a major problem I have with all these fuzzy-finders is they're not typo-resiliant. if the text contains "license" and I type "licence" they don't work
<hodapp>
it may be easier to compile than to worry about patching the binary
jperras_ has joined #nixos
jperras has quit [Read error: Connection reset by peer]
<blob_>
I'll try that
Guanin has quit [Ping timeout: 244 seconds]
<hodapp>
oy. "last version where Windows 98 is supported"
<blob_>
heh
<hodapp>
but then squaretone is the port to Linux? little confused...
<adamt>
Just throwing this out there: Would anybody be interested in nix-related meetups in the Copenhagen area? Or does anybody know of Danish companies or groups of people who already use Nix/NixOS and friends?
<srhb>
adamt: I'd be interested. :-)
<Psi-Jack>
Nah. I don't do dip. :)
<cocreature>
is there some documentation on how steam is packages in nixos that would be useful for packaging similar software? (e.g. the itch.io client)
* Psi-Jack
ducks.
ericsagnes has joined #nixos
<adamt>
srhb: \o/
robogoat has quit [Ping timeout: 256 seconds]
<logzet>
cocreature: The steam nix-expression?
<hodapp>
one of these days I'll make it to a Nix/NixOS meetup.
<zduch4c>
gchristensen: thanks, steam-run works great
<etu>
adamt: A bit far but still so close. I've been thinking about the same thing in Stockholm.
<srhb>
etu: We can meet in skåne :P
<hodapp>
do one in Canada and give me an excuse to go there
<blob_>
Yikes. his source is windows only. guess I'll find something else
<cocreature>
logzet: I was hoping for some more userfriendly docs than the source code :)
<cocreature>
Taneb: thanks!
<etu>
srhb: denmark you say ;)
<srhb>
etu: :D
<hodapp>
blob_: but he has the Linux port and he built it from something...
<etu>
I've lived in Skåne for several years
<etu>
Then I moved back to Sweden
<adamt>
srhb / etu: Who's going to provide the free pizza if it's in Skåne? :P
<srhb>
*snort*
<srhb>
adamt: Good point.
<hodapp>
adamt: Papa John's, obviously.
<hodapp>
they need the business.
<etu>
srhb: Are you in Skåne? :)
<srhb>
Nah, Copenhagen as well.
<adamt>
hodapp: I get the sensation of not being in the loop with this Papa John guy.
binaryphile has joined #nixos
<binaryphile>
hello all
tessa has quit [Quit: Leaving]
<etu>
Well, the first week down there the Skånish people told me off for trying to be helpful because they heard that I'm from Stockholm... I felt so welcome ;)
<blob_>
hodapp: I know he has the code but won't release it. I emailed him before but I don't think he would give it away
robogoat has joined #nixos
<hodapp>
blob_: that's a shame
<etu>
srhb: I have nothing against denmark though:)
<hodapp>
so he doesn't have the actual source he built binaries from?
<srhb>
etu: Give it time... :P
<blob_>
yep
<etu>
srhb: Thinking of going to copenhagen on my vacation in august:)
<etu>
because it's a nice city
<adamt>
etu: I imagine you would have something against a 675 km drive each way. :P
<srhb>
etu: Hit me up for a beer if you want. :)
<etu>
adamt: Well, I'm from Stockholm. Moved to Helsingborg for a job. Started to hate the job. Had no real reason to stay down there so moved back up:)
<etu>
srhb: I'll remember that:)
cherrybl0ss0m_ has quit [Remote host closed the connection]
<adamt>
etu: You could just apply for a job here, working with NixOS, then we would be four people in Cph working with NixOS. :P
mmercier_ has quit [Ping timeout: 240 seconds]
<Enzime>
blob_: could always try running the Windows binary through WINE
<Taneb>
adamt: one of my coworkers works remote from Copenhagen and we use nix quite heavily
<etu>
adamt: It's tempting, but I don't wish to make a long distance move :)
sam__ has quit [Quit: sam__]
<srhb>
Taneb: Who might that be?
<etu>
oh well, wife is probably waiting for me now. Gotta leave work:)
<adamt>
srhb: i'm sure there's a free pizzy-subreddit somewhere as well.
<adamt>
:P
joehh has quit [Ping timeout: 260 seconds]
cherrybl0ss0m_ has joined #nixos
<nyanloutre[m]>
Hi, did somone already packaged an electron app ? I would like to package the ledger-live app but it seems a bit more complicated than just use the yarn wrapper.
<Taneb>
Anyone know why my hydra server might be trying to ssh to a build machine using ED25519 rather than RSA?
<__monty__>
All I hear is JS and worm. All I think is "duh." : >
<srhb>
Shots fired (let's not)
<gchristensen>
srhb++
<{^_^}>
srhb's karma got increased to 7
<adisbladis[m]>
joepie91: Thanks for the heads up :)
patrl has quit [Ping timeout: 265 seconds]
johanot has quit [Quit: Leaving.]
aminechikhaoui has quit [Remote host closed the connection]
aminechikhaoui has joined #nixos
<adisbladis[m]>
srhb++
<{^_^}>
srhb's karma got increased to 8
<adisbladis[m]>
Ohh .. I meant to do joepie91++
<srhb>
I'll take it.
<srhb>
:-P
<adamt>
srhb--
<adamt>
Damnit. :P
<joepie91>
lol
<hodapp>
9_9
<joepie91>
taking my karma points eh
<adisbladis[m]>
That sweet sweet karma
<infinisil>
There are only 2 people who can decrease someones karma
<infinisil>
One of them being me because it's running on my server :P
<infinisil>
And the other is a mechanism against narcissism
tzemanovic has joined #nixos
npmccallum has quit [Ping timeout: 240 seconds]
ihar has joined #nixos
alex``` has quit [Quit: WeeChat 2.1]
Guanin has joined #nixos
hyper_ch2 has quit [Quit: Page closed]
dbmikus__ has joined #nixos
patrl has joined #nixos
<adisbladis[m]>
adisbladis++
<{^_^}>
adisbladis's karma got increased to 4
<adisbladis[m]>
:)
owickstrom has joined #nixos
<infinisil>
Sneaky!
Guanin has quit [Read error: Connection reset by peer]
Guanin has joined #nixos
<adamt>
infinisil: It should probably only allow karma points from registered users.
cherrybl0ss0m_ has quit [Remote host closed the connection]
revtintin has joined #nixos
tzemanovic has quit [Ping timeout: 248 seconds]
nschoe has quit [Ping timeout: 260 seconds]
<gchristensen>
infinisil: well and also that other person I guess
<gchristensen>
infinisil++
<{^_^}>
infinisil's karma got increased to 14
<gchristensen>
oh you have actual karma now ;)
dbmikus has joined #nixos
sk8forether has joined #nixos
andymandias has quit [Ping timeout: 240 seconds]
<infinisil>
Hehe
dbmikus__ has quit [Ping timeout: 244 seconds]
<adisbladis[m]>
He's rich!
<Dezgeg>
but he just admitted he could have added it himself
sir_guy_carleton has joined #nixos
<infinisil>
Actually some initial karma might have originated from testing the implementation, hmm..
<gchristensen>
Dezgeg: these are two actual lines of source code in the ircbot gateway: if msg.body == "Did you mean infinity? Increasing infinity doesn't do anything.." {
<gchristensen>
server.send_privmsg(&msg.target, "infinisil's karma got increased to NaN").unwrap();
<hodapp>
needs more blockchain
* infinisil
grudgingly looks away
<maurer>
joepie91: Seems like the relevant thing for us there is just "don't do any node2nix or similar updates today"
<tilpner>
Or do, but not with access to your credentials
<joepie91>
even then
<maurer>
tilpner: Uh, still don't, because we don't accidentally want to package something that contains a credential fetcher
<joepie91>
no guarantee that it won't do other malicious shit
<maurer>
The node packages in nixpkgs are _probably_ clean at the moment, as long as they don't get updated
<tilpner>
maurer - Oh, of course. Not for merging into nixpkgs, just for development
andymandias has joined #nixos
JesseChaos has joined #nixos
<JesseChaos>
what is everyone's favorite fs? i'm currently using ext4 but i'm interested in moving to something else.
<Enzime>
wait
<gchristensen>
my favorite FS for "I just need a FS" is ext4, JesseChaos!
<Enzime>
Nixpkgs on blockchain?
<Enzime>
new idea?
<Enzime>
quick we need an ICO
<__monty__>
Is there an easy way to run a minimal hydra for your own environment? Maybe a simple cronjob that updates config.nix then nix-store --realize's it daily?
<gchristensen>
JesseChaos: my second favorite FS is ZFS :)
Copenhagen_Bram has joined #nixos
<cizra>
I've been bitten by btrfs a couple of times :| Last time it went horribly, unusably slow when mounted r/w. Almost hung.
<wucke13>
The thing is that ext4 has a really good fsck
<etu>
wucke13: bcachefs? Nice? Any issues so far?
<Enzime>
bcache or bcachefs?
<wucke13>
etu: two times got a corruption causing kernel panic on boot. Both times forcefully switching of during mount. Easy fixable in seconds using bcachefs fsck from a live image.
<wucke13>
So I guess it doesn't like beeing killed while rw mount. Though its fsck worked perfectly fine - it's just a bit `shy`
<wucke13>
Enzime: bcachefs
<etu>
That's not entirely unexpected from a fs that says it's unstable and not even experimental in the kennel yet
* infinisil
will be going to NixCon
<etu>
Kernel lol
<Enzime>
etu: I wonder if it could've been in the kernel if there was no btrfs in the first place to make everyone so much more risk averse
<etu>
infinisil: I might go:)
<Enzime>
toward filesystems
<hodapp>
wake up, sheeple! Linus didn't create the Linux kernel, he created the Linux kennel!
dbmikus has quit [Ping timeout: 244 seconds]
<wucke13>
Yeah. Ive used it for over two months without any further issues. Just telling from my feeling it works fine
fendor has joined #nixos
<hodapp>
__monty__: 'te' is still Latin, but accusative/ablative case of 'tu'
<hodapp>
__monty__: yes, the quote is wrong, all I'm saying is that the word itself is still Latin :P
<Enzime>
"∞ contributors"
<Dezgeg>
there are plans for getting bcachefs into mainline
<Dezgeg>
when it's ready, of course
<Enzime>
Dezgeg: on bcachefs' side or the mainline's side
<wucke13>
Both
<wucke13>
Kent sent some of its header files to the lkml getting them reviewed
<Enzime>
I just realized what lkml means
<wucke13>
So far people where complaining about unclear handling of little/big endian architectures, iirc
<wucke13>
Enzime++
<{^_^}>
Enzime's karma got increased to 1
<infinisil>
Enzime: Linux kernel mainline?
<Enzime>
I assumed mailing list
<gchristensen>
mailing list
<infinisil>
Oh that sounds better
cherrybl0ss0m_ has joined #nixos
Sonarpulse has joined #nixos
<wucke13>
infinisil: i think that is mostly referenced as `mainline` only
xy2_ has quit [Ping timeout: 268 seconds]
<sir_guy_carleton>
question about borg update - to create another backup, you just a create a new archive, and (possibly) deleting some old archives?
<__monty__>
How do I nix-store --realise a buildEnv in my config.nix?
JesseChaos has joined #nixos
<JesseChaos>
ok so I asked about filesystems because I was wondering if there was an easier way of getting raid0 performance out of drives than sw raid
<JesseChaos>
i have two sata3 ssds on my main rig but it's unfortunately still sata2 in terms of ports, so i'm really missing out on the whole ssd thing
alex``` has joined #nixos
<JesseChaos>
does zfs have some kind of fancy raid0 thing that's easier than dealing with madm?
<srhb>
JesseChaos: Eh, it's all about which tools you know. I have two SSDs with zfs in my laptop, mirrored.
<infinisil>
JesseChaos: Totally, ZFS can do raid for you
<JesseChaos>
i used to run fedora with a raid1 boot and raid0 /
<wucke13>
JesseChaos: what is your struggle with mdadm? I think mdadm is really straighforward
<srhb>
I don't think there's an appreciable difference in difficulty between the two.
<JesseChaos>
i also need the storage space lol
<JesseChaos>
esp when i finally migrate from vm to baremetal nixos
astsmtl has quit [Ping timeout: 265 seconds]
<JesseChaos>
although i just broke x so that'll be a bit yet
<wucke13>
JesseChaos: Regarding performance, a sw raid0 is definitly a good (and almost easy), mainstream way to go
<JesseChaos>
yeah, my issue with mdadm and raid was actually for the /boot raid1
<JesseChaos>
i got it set up such that i could boot from either drive (option in grub) if that partition failed, and each would mount the raid0 /
<JesseChaos>
and a script would verify the 'mirroring'
<infinisil>
I once set up 3 usb sticks which each had a decryption key on them and I could boot from any of them
<JesseChaos>
but i moved to manjaro (wannabe arch) before finding nixos after nuking my old config due to the whole centos6-7 upgrade (put it off for a while then forgot and accidentally upgraded)
<JesseChaos>
infinisil that's cool! i'd be scared of dependancy on any single usb device but 3 is a solid number
<JesseChaos>
it looks like zfs allows for mirroring but would a 2disk raidz be more like raid0 or a broken raid5 (need 3+ disks)
__monty__ has quit [Quit: leaving]
<infinisil>
It was kinda annoying though, not doing that anymore
<gchristensen>
JesseChaos: there is a raidz2 and raidz3
<JesseChaos>
oh ok. what was the biggest annoyance factor infinisil?
<infinisil>
JesseChaos: I'm not sure about these weird raid<n> levels, raidz ones are pretty easy: The number indicated how many disks can fail for it to still have all the data
<{^_^}>
[nixpkgs] @rembo10 opened pull request #43421 → nixos/lightdm-gtk-greeter: svg icon support → https://git.io/fNLHY
<infinisil>
gchristensen: Lol yeah
<infinisil>
s/indicated/indicates
<JesseChaos>
thanks for that link, checking it out now (plus the zfs wiki)
<infinisil>
JesseChaos: Check out man zpool
<infinisil>
It explains the raid levels
ckauhaus has quit [Quit: Leaving.]
fragamus has joined #nixos
iyzsong has quit [Ping timeout: 260 seconds]
phdoerfler has quit [Quit: Leaving.]
coot has quit [Quit: coot]
<JesseChaos>
ah here we go. there's striped and mirrored vdev pools, which basically match raid0 and 1 respectively
<gchristensen>
you can also put raidzNs inside striped / mirrored vdev pools
<JesseChaos>
ooooh that's neat. what benefit would that get me? the machine in question is a laptop with only 2 sata ports so i have a hard limit of 2 drives
<gchristensen>
well if you had a shelf of 48 disks it would be relevant to you :P
owickstrom has quit [Ping timeout: 240 seconds]
<gchristensen>
like you might have raidz3's each with 9 drives in it, and then put those in a stripe
<JesseChaos>
ha yeah. i used to work in datacenters and the companies with zfs were super annoying to support
<gchristensen>
haha
<JesseChaos>
i actually figured out how to convert a raid1 (hw raid) into a jbod, and then into hba, purely for zfs support when they decided to migrate to zfs
<JesseChaos>
at the time, hba was just beginning to be supported on the latest adaptecs
<JesseChaos>
fun times
<JesseChaos>
well, thanks for all the help on the raid/zfs front friends! definitely going to get that working on my vm and use that full time
<JesseChaos>
anyone have a sec to look at a config.nix and help me figure out why x broke? trying to get gnome3 + xmonad, had gnome3 but no xmonad, now i have no x lol
<gchristensen>
better to just ask
<{^_^}>
[nixops] @cleverca22 opened pull request #975 → fix deployment errors when deployment.route53.hostName contains uppercase letters → https://git.io/fNL7s
<JesseChaos>
i'm sure it's something easy but i don't have a lot of experience tweaking x; either i'm headless, or it just works. sorry if this is dumb :/
<pie___>
im getting an error i dont know how to deal with: im building https://bpaste.net/show/ba55af088ff1 with "nix-shell -v -p 'with import <nixpkgs> {}; callPackage ./profpatsch-warpspeed.nix { ghcWithPackages = pkgs.haskellPackages.ghcWithPackages;}'" and i get https://bpaste.net/show/1f3cfa1d0424
wpcarro has quit [Remote host closed the connection]
owickstrom has joined #nixos
<wucke13>
JesseChaos: What does X state why it crashes?
wpcarro has joined #nixos
<steell>
i run nix without nixos, and i want to install transmission-daemon and run it as a daemon on startup, do i need to install it (via nix-env) as root?
joepie91_to_go has quit [Ping timeout: 240 seconds]
fendor has quit [Remote host closed the connection]
<pie___>
hm...alacritty still broken? :/
fendor has joined #nixos
<iqubic>
So I want to make shell.nix file and set-up a programming environment with python, tesorflow, and numpy.
<goibhniu>
steell: you can install it as root, or as a user
<iqubic>
How do I do that?
jasom has quit [Ping timeout: 245 seconds]
<goibhniu>
steell: I'm assuming it's just a package, and not a service
<JesseChaos>
wucke13: oh it says it's already running
<iqubic>
He wants to run the daemon at start up.
<LnL>
steell: that's up to you, just configure your service manager to point at whatever profile you installed it in
<goibhniu>
that part has to be handled by the host os
<Taneb>
lsblk
<Taneb>
Whoops, wrong terminal
<wucke13>
JesseChaos: how did you start X?
<JesseChaos>
i didn't do it manually
<iqubic>
How does one create a shell.nix? What should go into it?
<wucke13>
JesseChaos: does your displaymanager come up?
<JesseChaos>
wucke13: i don't think so? i'm currently in terminal, no gui whatsoever
jasom has joined #nixos
wpcarro has quit [Ping timeout: 268 seconds]
<steell>
goibhniu, LnL: k im a bit of a noob at this, thanks!
<JesseChaos>
wucke13: behavior is the same whether i try to startx or xinit as root or user
<wucke13>
JesseChaos: please set `services.xserver.exportConfiguration` to true, rebuild, install xorg.xinit, write an .xinitrc in your home directory (`exec xmonad` is probably sufficient) and run `startx` from a tty.
<JesseChaos>
would i put exec xmonad in the config.nix or run it after the rebuild?
owickstrom has quit [Ping timeout: 264 seconds]
<wucke13>
you put `exec xmonad` in a file called `.xinitrc` located in user home directory ( like so? `echo "exec xmonad">$HOME/.xinitrc` !untested)
fendor has quit [Ping timeout: 240 seconds]
<JesseChaos>
wucke13: huh it looks like it's not installing xorg.xinit though it's in the 'package' section
wpcarro has joined #nixos
Turion has joined #nixos
<wucke13>
JesseChaos: `nix-env -iA nixos.xorg.xinit` does not work?
<iqubic>
Can anyone help me with getting a shell.nix file create and working?
<JesseChaos>
wucke13: it didn't work after the rebuild, had to do it manually. although now after a reboot x is working!
<{^_^}>
[nixpkgs] @dtzWill opened pull request #43422 → haskell-{unix-time,prettyprinter}: dontCheck on musl → https://git.io/fNLFR
<wucke13>
JesseChaos: Interesting, that was not what I excpected :D
wpcarro has quit [Remote host closed the connection]
igo95862 has joined #nixos
wpcarro has joined #nixos
libertyprime has quit [Ping timeout: 240 seconds]
<JesseChaos>
wucke13: C: however xmonad is still not working (i think, it looks exactly like gnome3, no tiling)
Ariakenom has quit [Remote host closed the connection]
<wucke13>
JesseChaos: What session did you start? Even though nixos lets you combine a windowManager and desktopManager in one session, that never worked for me.
Ariakenom has joined #nixos
<JesseChaos>
wucke13: i'm not sure what you mean with regards to session; the gui login screen appeared, and i logged in
knupfer has joined #nixos
jb55 has joined #nixos
<wucke13>
You can select multiple sessions. For example, if I had plasma as desktopManager and awesome as windowmanager, the displayManager would offer me to launch either awesome, awesome + plasma ord plasma alone.
<JesseChaos>
wucke13: oh. where do i go to select between desktop/window managers? i didn't get a choice prior to logging in. maybe my displayManager is just dumb :)
dbmikus_ has joined #nixos
<wucke13>
JesseChaos: I'm not famialar with gdm3. I would look for it in the status bar, and maybe the session selection is only shown if useraccount is already selected, but thats just guesses
Guanin has joined #nixos
dbmikus has quit [Ping timeout: 244 seconds]
<JesseChaos>
wucke13: sherlock holmesing it now
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
Guanin has quit [Remote host closed the connection]
Guanin has joined #nixos
booglewoogle has joined #nixos
<JesseChaos>
wucke13: thanks a ton for the help. i will figure out xmonad later today, and hopefully zfs vdevs and such as well!
<wucke13>
JesseChaos: Good luck!
<JesseChaos>
thanks all, great community, can't wait until i'm finally running nixos bare metal
owickstrom has joined #nixos
<JesseChaos>
wucke13: thanks! now off to a job interview lol
Ariakenom has quit [Ping timeout: 260 seconds]
JesseChaos has quit [Quit: getting a jobbo thanks everyone for the nixos help!]
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
tenten8401 has joined #nixos
coot has joined #nixos
bennofs has quit [Quit: WeeChat 2.0]
bennofs has joined #nixos
vmandela has quit [Quit: Leaving]
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
manny has quit [Remote host closed the connection]
kristoferus75 has joined #nixos
Guanin has quit [Ping timeout: 264 seconds]
<kristoferus75>
Hi im new in nixos and i have instaled nixos with xfce and lightdm -> it works
<gchristensen>
yay!
<kristoferus75>
but if i want to login as normal user in lightdm i cannot login and the xfe wouldnt start with root user no problem
<kristoferus75>
user is added in the nix confg file and is in the users wheel audio video
<kristoferus75>
group
<kristoferus75>
i test it in a virtualbox
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
<kristoferus75>
th user is also in the vboxsf group
raynold has joined #nixos
<iqubic>
Why is shell.nix hard to understand?
<manveru>
iqubic: how so?
chreekat[m] has joined #nixos
<iqubic>
I don't know how to create a python dev environment with tesorflow and numpy.
<kristoferus75>
sorry not xfe is xfce4
init_6 has quit [Ping timeout: 240 seconds]
owickstrom has quit [Ping timeout: 260 seconds]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<manveru>
iqubic: hmm, gimme a minute :)
__monty__ has joined #nixos
<iqubic>
manveru: I'll also want to have access to the tensorboard package too.
<nschoe>
Hi everyone, quick question: I'm trying to write a default.nix file, this requires some python packages for the build. What's the equivalent of `buildInputs` for python packages (installed wiht pip)?
dbmikus_ has quit [Quit: WeeChat 2.1]
crmlt has joined #nixos
erickomoto has joined #nixos
chrisaw has joined #nixos
<{^_^}>
[nix] @edolstra pushed to master « nix-prefetch-url: Download file in constant memory »: https://git.io/fNLpB
booglewoogle has quit [Quit: Leaving]
pie___ has quit [Ping timeout: 244 seconds]
<__monty__>
: O Oh goody!
jperras_ has quit [Ping timeout: 244 seconds]
<manveru>
iqubic: seems like that's only possible with python2
<bennofs>
is there some easy way to use the aarch64 sd images to install an rpi headless?
<manveru>
nschoe: that's for you too :) just hopefully with python3
<manveru>
iqubic: sorry, remove the first tensorflow from that list, seems like it's included in tensorflow-tensorboard
<nschoe>
manveru, I'm not very good at nix yet, so I'd like to confirm, but what you showered here is to depend on python packages, i.e. packages for which there are nix derivations, right? In my case I need to depend on packages that should be installed via pip
<nschoe>
The way I'm trying it is to use a `virtualenv` in the preConfigure but...
dbmikus has joined #nixos
endformationage has joined #nixos
<{^_^}>
[nixpkgs] @dtzWill opened pull request #43423 → openblas: "backport" another patch, fix crash w/Go and Octave → https://git.io/fNLjZ
<{^_^}>
#43395 (by kalbasit, open): Kubernetes 1.10.5 is unusable, auth is not working
wpcarro has quit [Remote host closed the connection]
d1rewolf has joined #nixos
wpcarro has joined #nixos
graphene has quit [Read error: Connection reset by peer]
<d1rewolf>
guys, I'm trying to learn nix (lang) and ran across a tour of nix. However, this example (https://nixcloud.io/tour/?id=8) is throwing me a bit...as I understand it, there are no multiparameter functions, but this appears to be calling mix and max with two params
graphene has joined #nixos
wpcarro has quit [Remote host closed the connection]
<d1rewolf>
I'd think min and max would need to be defined with, and then called with, a set
<d1rewolf>
can someone point out what I'm misunderstanding?
<johanot>
kalbasit: working on it
<kalbasit>
oh awesome
wpcarro has joined #nixos
Xiro` has joined #nixos
<adisbladis[m]>
d1rewolf: Functions can take one or more arguments
<kalbasit>
johanot: thank you, please let me know if you have any questions or if you want me to try something on my side
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
<cocreature>
d1rewolf: you can make a function that given one argument returns a function that expects another argument
<cocreature>
(that’s called currying)
<cocreature>
i.e. replace a×b→c with a→b→c
hxrts_ has quit [Remote host closed the connection]
<__monty__>
But nix functions are not curried by default, right?
<d1rewolf>
cocreature, right, but shouldn't that require parens? can you complete that code so it works without doing so?
<infinisil>
__monty__: They totally are
<adisbladis[m]>
d1rewolf: Short example: `add = a: b: a + b;`
<infinisil>
> add = a: b: a + b
<{^_^}>
add defined
<d1rewolf>
they explicitly say to only modify lines 2 and 3
<johanot>
kalbasit: Might have to continue tomorrow.. Currently trying to reproduce and soon have to switch contexts.. But.. Will hit you back if I need anything.
<__monty__>
infinisil: Hmm, TIL.
<kalbasit>
johanot: sounds good, thank you!
<infinisil>
> add 10
<{^_^}>
<LAMBDA>
<infinisil>
> (add 10) 20
<{^_^}>
30
<clever>
> add 1 2
<{^_^}>
3
<samueldr>
> add add 1 2 3
<{^_^}>
cannot coerce a function to a string, at (string):21:14
<samueldr>
oops
<d1rewolf>
ah.....i got it. thanks guys
<nschoe>
Hum, how come the shell inside a nix-shell doesn't seem to have terminfo?
<infinisil>
In fact, <space> can be thought of as a left-associative binary operator, applying a single argument to a function
<infinisil>
gchristensen: Currently the problem is because it doesn't require a full match, space matches workspace, etc. I'll change it to only match full files next time
<nschoe>
I enter the shell with `nix-shell --pure ./default.nix`, am I doing somethign wrong?
<__monty__>
infinisil: Applying a function to an argument you mean? : >
<__monty__>
I don't get this whole inverted view on application.
<infinisil>
f a b c d = (((f a) b) c) d
<infinisil>
And converting that to non-functional syntax
<infinisil>
f a b c d = (((f a) b) c) d = ((f(a))(b))(c)
<infinisil>
Oh an argument got lost,
graphene has quit [Remote host closed the connection]
libertyprime has quit [Ping timeout: 244 seconds]
graphene has joined #nixos
<infinisil>
#nix-lang :)
alex``` has quit [Quit: WeeChat 2.1]
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
alex``` has joined #nixos
wpcarro has quit [Remote host closed the connection]
wpcarro has joined #nixos
wpcarro has quit [Remote host closed the connection]
<__monty__>
This calls for doJailbreak on ListLike, right? It's not helping : / http://ix.io/1gZJ
phreedom has quit [Ping timeout: 250 seconds]
rardiol1 has quit [Ping timeout: 256 seconds]
wpcarro has quit [Ping timeout: 260 seconds]
manny has joined #nixos
<sphalerit>
monty: functions with a fixed number of unnamed args are always curried in nix
<sphalerit>
Because nix doesn't have tuples
<__monty__>
sphalerit: Wow, you guys are really riding my ass on that one, huh? ; p
andymandias has joined #nixos
<logzet>
clever: Woohoo, Nixos is running on my Laptop, thanks again for the help
<sphalerit>
Oh blargh
<sphalerit>
__monty__: It's just matrix being stupid so I didn't see the more recent messages before writing mine
rardiol1 has joined #nixos
nschoe has quit [Read error: Connection reset by peer]
wpcarro has joined #nixos
<__monty__>
sphalerit: You're forgiven. Maybe look into my jailbreak question to make up for it ; )
cherrybl0ss0m_ has quit [Ping timeout: 276 seconds]
owickstrom has joined #nixos
owickstrom has quit [Remote host closed the connection]
<cocreature>
__monty__: I don’t think the bounds are the problem here. the problem is that this is a conditional dependency and cabal2nix is too stupid to handle these properly
graphene has quit [Read error: Connection reset by peer]
<johanot>
kalbasit: Reproduced the problem now.. :) looking into whats wrong.
<__monty__>
cocreature: Oh. Anything I can do about it?
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
Edes has joined #nixos
<Edes>
could I get help setting up a package
<Edes>
I have never made a package and don't know where to start
<Edes>
I want to make a package for lightdm-webkit-greeter
winem_ has quit [Ping timeout: 240 seconds]
<Edes>
but i need some dependencies
<Edes>
can anyone point me to where I can learn how to make packages? I'm seeing all sort of guides and tutorials on the internet but they don't make sense
troydm has joined #nixos
Khetzal has joined #nixos
<tobiasBora>
Hello,
phaebz has quit [Ping timeout: 240 seconds]
trcc_ has joined #nixos
trcc has quit [Read error: Connection reset by peer]
patrl has quit [Ping timeout: 276 seconds]
trcc_ has quit [Read error: Connection reset by peer]
pie___ has quit [Ping timeout: 240 seconds]
trcc has joined #nixos
crmlt has quit [Ping timeout: 256 seconds]
<tobiasBora>
I'm planing to configure a new server using nixops. What I'd like to do is to make sure that a given ssh public key is added in the ssh_authorized file of a given user... But as far as I know it's not possible to specify user-related stuff in the nix configuration file, and the only option I found is to give a skeletton for the creation of a new user, but it means that first the user I'm targetting does not
<tobiasBora>
already exists, and also it has the problem that all the users will accept this public key... Any other option?
<clever>
tobiasBora: that is a list of strings containing ssh pubkeys, and it will add them when you re-deploy
<__monty__>
So no one's had any problems with haskell packages that have a `license-files:` field?
wpcarro has quit [Remote host closed the connection]
<tobiasBora>
clever: amazing, thanks! So this configuration is specifix to nixOs and has nothing to do with nix package manager right? (I'm new to nixOs, that's why I'm still confused)
<samueldr>
hmmm, can't really reply to edes, with lightdm-web-greeter 2.2.5, a year ago, there were issues making it unusable as-is on nixos (still present, just ported to nixpkgs-unstable)
<samueldr>
the issue though is with webkitgtk, which *somehow* doesn't load local html files properly
lnikkila_ has joined #nixos
<samueldr>
(it could be seen with midori too at the time, its inspector would show the same symptoms)
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<sphalerite>
telent[m]: I've mentioned it before but I have to mention it again: I really enjoy your writing. Great entertainment, beyond being nice things to know.
<kalbasit>
how to ask `nix-build` to leave the src files? the man page isn't clear on that
<{^_^}>
[nixpkgs] @xeji pushed commit from @timokau to master « jmol: 14.29.12 -> 14.29.17 (#43429) »: https://git.io/fNtcc
johanot has joined #nixos
ixxie has joined #nixos
wpcarro has quit [Read error: Connection reset by peer]
<dmj`>
clever: ping
wpcarro has joined #nixos
owickstrom has joined #nixos
<tenten8401>
Probably a dumb question, but is there anything I have to do to allow an application to authenticate with PAM? Testing out the ocserv pull request with PAM and I get a global system broadcast letting me know that ocserv failed to authenticate with PAM, despite not even reaching the part where I have to enter my password yet.
<tobiasBora>
Hello,
<tenten8401>
Broadcast message from systemd-journald@my-server
<gchristensen>
lewo``: do you make custom images for it?
<lewo``>
there is a script to create images for Nova (the Openstack service in charge of spawning VM)
<tobiasBora>
I just burnt the sd-image-aarch64-linux.img on an SD card, but when I plug it in my raspberry pi 3 model B+, and connect the uart to it, I can't see anything on the uart output. Moreover, when I look at the content of the nixos_sd partition, I just see a folder nix, a folder lost+found, and a folder nix-path-registration, but no /etc/, so I doubt that the raspberry pi really booted on it... Finally, the green
<tobiasBora>
led is blinking strangely since the very beginning: 4 slow blinks, 4 quick blinks, pause. And it starts again and again.
<gchristensen>
lewo``: can you tell me more? I'd like to As Quickly As Possible try it out
<gchristensen>
(I have access to a openstack cluster)
<samueldr>
unless the situation has changed during the 19 days since this was posted, the 3B+ needed a more up-to-date kernel
<gchristensen>
lewo``: amazing! great, thank you!
<samueldr>
and tobiasBora, the nixos_sd partition is right if you see only that
<samueldr>
at first boot it "rehydrates" the nixos system as expected
<lewo``>
gchristensen: nix-build '<nixpkgs/nixos>' -A config.system.build.novaImage --arg configuration "{ imports = [ ./nixos/maintainers/scripts/openstack/nova-image.nix ]; }" should do the job
<tobiasBora>
samueldr: hum ok thanks. Hum at first boot it's not supposed to create the /etc/ folder, including the configuration and everything?
<samueldr>
exactly, it will once it boots
<lewo``>
gchristensen: this generates an image that you can upload with glance. This image is resized at boot and run cloudinit to get the root ssh key through nova commandline metadatas
<tobiasBora>
and what does "Note that this means using linuxPackages_testing is required " means?
<samueldr>
in configuration.nix, you will need to set boot.kernelPackages to linuxPackages_testing
<samueldr>
that is, until 3.18 is released proper
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<tobiasBora>
samueldr: how different is it from unstable ?
betaboon has quit [Quit: WeeChat 2.0]
<gchristensen>
lewo``: this is WAY less work than I was expecting :D
<tobiasBora>
and does that mean that I'll need to compile everything manually?
<tobiasBora>
hum
<tobiasBora>
linuxPackages_testing is the name of the kernel right?
<samueldr>
tobiasBora: yes, that's the kernel package name, it's the "next" release
<samueldr>
it's not related to nixpkgs-unstable nor nixos-unstable
<tobiasBora>
samueldr: ok thanks... so it means that I won't have to compile anything I guess
<infinisil>
Um, isn't `--option extra-substituters 'ssh://user@ip'` supposed to work? I just get `error: writing to file: Broken pipe` :/
<samueldr>
tobiasBora: not more than the usual nixos aarch64 setup
<tobiasBora>
samueldr: ok thank you very much. I'll try this, I hope it will work. To make sure I understood everything correctly, I need to change the configuration after the first boot right?
<samueldr>
tobiasBora: well, you won't be able to do it before the first boot ;)
<samueldr>
the image is an "installer image"
<samueldr>
you "install over the installer image"
<samueldr>
(not really, but almost)
<sphalerite>
infinisil: try it 10 times
<infinisil>
I was never ever able to get this ssh store thing to work in Nix 2.0, I wonder if it even still works at all
<sphalerite>
infinisil: not sure what causes it but that error seems to be nondeterministic
<{^_^}>
[nixpkgs] @timokau opened pull request #43436 → sage: replace flask-babel version pin by patch → https://git.io/fNtlT
<tobiasBora>
samueldr: ok thank you. So what does the first boot actually do? Just a stupid copy, and expand of the sd card, or it's a bit more technical?
<gchristensen>
I don't get excited about writing code. what excites me is making things better for users
<Dezgeg>
template metaprogramming is almost like functional programming
<iqubic>
It's a shell.nix I'm trying to write.
<infinisil>
It's a bit of a gap between Nix being written in an imperative language, but a lot of the community being functional people
<sphalerite>
Nix has pretty wonderful code as far as C++ projects I've looked into go
<gchristensen>
yeah, its pretty goo
<iqubic>
So I thought tensorflow-tensorboard was a standalone package. Am I wrong in that assumtion? http://termbin.com/ift7
worldofpeace has quit [Remote host closed the connection]
<infinisil>
I'm just kinda afraid of messing things up in an imperative language. It's much harder in Haskell or so
<infinisil>
I don't want the power of being able to mutate stuff everywhere!
<gchristensen>
that is okay! the C++ isn't so complicated, and when submitting a PR it doesn't have to be perfect. Experienced C++ authors are available to review and provide meaningful suggestions on how to improve it. You're smart and capable, and yes, even capable of learning enough C++ to help:)
<gchristensen>
now, maybe you're not submitting PRs doing drastic adjustments to how memory is used during copies, but most improvements aren't that
<gchristensen>
the Nix C++ is pretty good, uses good idioms to not be a sharp stick in your eye at every turn
<infinisil>
I shall consider it
<tobiasBora>
samueldr: amazing, thank you!
* infinisil
is already thinking of writing an LSP module to get nice modular support for languages including C++
<thoughtpolice>
clangd already does that for C++, fwiw
<thoughtpolice>
The Nix code is pretty good but the main issue is discoverability since the internals aren't really documented AFAICS. So yes, some kind of exploration assistance is certainly going to help a lot.
Turion has quit [Quit: Leaving.]
<tobiasBora>
samueldr: amazing, it seems to boot :D But now I think I badly configured the uart because after "Starting kernel ...
<tobiasBora>
" I can't see anything :'(
<clever>
thoughtpolice: i tried making some "simple" changes with ExprVar and ExprApp, and it just segfaulted endlessly
<samueldr>
oh, uh, tobiasBora, there's hope, it may be the log level being too low
<clever>
thoughtpolice: it was simpler to reuse the code for parsing a string (used by -E) and take the Expr* it made
<samueldr>
tobiasBora: wait more and (it isn't console= being wrong) you will eventually get the console
<samueldr>
(if it isn't*)
<infinisil>
thoughtpolice: Yeah, I'm thinking of a nixos (or not necessarily nixos) module usable like: { clients = [ "emacs" "atom" ]; servers = [ "clangd" "hie" ]; } and you'll get those editors configured with LSP support for those servers
myshoe has quit [Quit: Lost terminal]
<infinisil>
Or maybe s/clangd/c++ s/hie/haskell
doyougnu has quit [Ping timeout: 240 seconds]
<infinisil>
And have a default server
<thoughtpolice>
[insert a joke about how simple changes break things is the default state for every c/c++ project of reasonable size on earth]
andymandias has quit [Ping timeout: 240 seconds]
<clever>
thoughtpolice: the change turned out to not work right anyways, i was trying to modify the import function to always call memoise on everything
<clever>
thoughtpolice: but it has to perform a deep equality comparison between lambdas, and that results in infinite recursion in the stdenv
<gchristensen>
infinisil: if you want to hack on a Nix thing, I could hook you up with someone to do a 1:1 pair programming session. we were all new once, and are new every day with new tools we're learning
wpcarro has quit [Remote host closed the connection]
<thoughtpolice>
Eeeeh.... Isn't like a huge problem with the memory usage we have is that nothing goes out of scope so GC doesn't do as much as we expect? Isn't memoisation just going to bloat that even further? I guess it could be a speed increase...
wpcarro has joined #nixos
<clever>
thoughtpolice: the memoise branch was able to shave 3.5gig off one of the evals ive been fighting
<gchristensen>
thoughtpolice: last I heard there was an encouraging experiment to turn evaluated thunks back in to the pre-evaluated thunk in order to save RAM, plus some other ideas for fixing the scope problem
<clever>
thoughtpolice: rather then re-computing a giant attrset and duplicating its values (50 times), it can just reuse it
<thoughtpolice>
But yeah I can understand things being surprisingly brittle. To be fair this is part of the discovery thing I mentioned since you have to understand (possibly weird) ownership models, etc. And it's not like the Nix API has ever seen enough use by enough people to be polished as a real API
<infinisil>
gchristensen: Probably not in the near future, but I'll remember that, thanks :)
<{^_^}>
[nixpkgs] @xeji pushed commit from @akru to master « parity: 1.10.8 -> 1.10.9 (#43411) »: https://git.io/fNt8l
<clever>
thoughtpolice: a secondary idea i had, but it would be a decent amount of work, is to store every single Value in a giant hash table, and after a thunk has been forced, check the hash table to see if you just duplicated the result, and optionally merge
<clever>
thoughtpolice: the tricky part is ensuring every creation of a value does that, and updating the references
<tobiasBora>
samueldr: hum... Still nothing... Here is the used configuration: append: systemConfig=/nix/store/vwdg0z22lvnb1hmfv91786iv5srwj45b-nixos-system-nixos-18.09.git.fc4ab42 init=/nix/store/vwdg0z22lvnb1hmfv91786iv5srwj45b-nixos-system-nixos-18.09.git.fc4ab42/init loglevel=7 cma=32M console=ttyS0,115200n8 console=ttyAMA0,115200n8 console=tty0
<tobiasBora>
but I have some proofs that the system booted, now the sd partition is populated :D
<samueldr>
tobiasBora: sorry, I can't say for sure, I don't have a 3B+ around to verify
<tobiasBora>
ok thank you
<samueldr>
though, yes, that's a good sign
wpcarro has quit [Ping timeout: 248 seconds]
<tobiasBora>
do you know a way to enable ssh "blindly" so that I don't need to enable uart?
<clever>
thoughtpolice: for example, if i import 2 different files, and both happen to contain { a = 5; }, how hard would it be to ensure both parse to the same Value* ?
owickstrom has quit [Quit: Leaving]
trcc has joined #nixos
trcc has quit [Remote host closed the connection]
<samueldr>
tobiasBora: can you try HDMI+usb?
<tobiasBora>
samueldr: unfortunately I have no keyboard, and no screen with me...
<samueldr>
ah, if only a keyboard you could have `systemctl start sshd` after copying your key into /root/.ssh/authorized_keys
<samueldr>
I don't think the installer has been updated to start ssh by default (without password access obv.)
<tobiasBora>
samueldr: and do you know if I can manually edit the installed to enable it by default by modifying the sd card?
<tobiasBora>
samueldr: makefu indeed I don't, and I guess that it will be tricky anyway, especially because the installed needs a special kernel... Dezgeg made a script/doc for generating this kind of image?
<benley>
anyone know what the right way is to prepend some commands prior to starting a window manager, if I want it to go into my nixos config and not ~/.xprofile?
<tobiasBora>
makefu: hum you mean that I just need to run "nix-build config.nix" to compile a new .img?
<benley>
I see services.xserver.windowManager.session, which the various windowManager modules use to describe how to start themselves, but I'm not sure if I can prepend my own stuff before it
<makefu>
tobiasBora: if it worked like this before, then yes :)
<tobiasBora>
well I've no idea how it works before, as Dezgeg is the one that build the images ^^'
<clever>
makefu: that is the script responsible for launching the login prompt and starting the session
<samueldr>
tobiasBora: in the boot partition, edit the extlinux file so that console=ttyS0,115200n8 is the last one
<clever>
benley: oops, wrong name tab-completed
<benley>
aye, I
<benley>
aye, I'm looking at that file
<clever>
benley: yeah, sessionCommands is ran shortly before it sources .xprofile, check lines 122-127
<benley>
I figure I probably don't want to overwrite the entire xsession, but sessionCommands looks promising
<benley>
actually that looks perfect.
<sphalerite>
tobiasBora: a hacky way to enable SSH temporarily would be to just put `systemctl start sshd` in /root/.bashrc, if the image has autologin… :D
<samueldr>
Dezgeg: the image works, they don't have serial
<tobiasBora>
Dezgeg: yes I'm using this one, but I'm having trouble to set uart, that do not send anything after "Starting kernel..." so I can't do anything
<tobiasBora>
sphalerite: hum good idea... no idea if it's auto login!
<samueldr>
oh sphalerite, good trick
<{^_^}>
[nixpkgs] @dtzWill opened pull request #43438 → xscope: init at 1.4.1 → https://git.io/fNtBe
<samueldr>
tobiasBora: it should be auto-login
<tenten8401>
So I figured out my issue with PAM and ocserv, turns out I needed to define a PAM service named ocserv. Going to see if I can get that into the PR.
jperras_ is now known as jperras
simukis has quit [Quit: simukis]
<tobiasBora>
clever: I'll give it a look, thanks!
<Dezgeg>
ah
<Dezgeg>
try replacing console=ttyS0 with console=ttyS1
<sphalerite>
right it's time I went to bed
coot has joined #nixos
<sphalerite>
gnight folks
<Dezgeg>
I don't know why but I think it changed in some kernel version
<clever>
Dezgeg: one of the uart's got repurposed for the bluetooth
<Dezgeg>
yes but it was ttyS0 previously
<clever>
i think devicetree stuff in config.txt can change the mappings some
<clever>
the wifi chip in the rpi can transmit arbitrary IQ signals on 2.4 or 5ghz
<tobiasBora>
Dezgeg: ok thanks, I'm trying... here is my new config: APPEND systemConfig=/nix/store/vwdg0z22lvnb1hmfv91786iv5srwj45b-nixos-system-nixos-18.09.git.fc4ab42 init=/nix/store/vwdg0z22lvnb1hmfv91786iv5srwj45b-nixos-system-nixos-18.09.git.fc4ab42/init loglevel=7 cma=32M console=ttyS1,115200n8 console=ttyAMA0,115200n8 console=tty0
lnikkila_ has quit [Quit: lnikkila_]
<clever>
tobiasBora: for each console= on the cmdline, the kernel will print dmesg to it, and the last one that appears will be /dev/console, which is used for a login prompt if systemd enables that
<clever>
i would expect the above to at least print something, due to the loglevel=7
<{^_^}>
[nixpkgs] @LnL7 opened pull request #43439 → stdenv: introduce isBootstrap for conditionals → https://git.io/fNtB4
<{^_^}>
[nixpkgs] @vbgl opened pull request #43440 → ocamlPackages.lwt_log: init at 1.0.0 → https://git.io/fNtBR
coot_ has joined #nixos
<tobiasBora>
Dezgeg: great, it works, thank you very much!! I don't understand how it's possible though, because I thought that uart was using random baud rate no?
<clever>
console=ttyS0,115200 without any other console='s, is enough to get a shell when under qemu
<tobiasBora>
I have some errors that spaws "[ 23.774993] Bluetooth: hci0: BCM: failed to write update baudrate (-110)
phaebz has joined #nixos
<clever>
tobiasBora: you are using all the serial ports as serial consoles, so the bluetooth one is being messed with
<tobiasBora>
clever: hum I see...
__monty__ has quit [Quit: leaving]
<clever>
try removing the ttyAMA0 entry
<tobiasBora>
and if I wanted, say, to give ttyAMA0 to bluetooth?
<clever>
its already tied to the bluetooth, the error is because its used by both bluetooth and console=ttyAMA0,115200n8
coot has quit [Ping timeout: 240 seconds]
<tobiasBora>
ok. And I saw that on raspbian it's possible to "exchange" them, by giving AMA0 (the good uart) to the console, and the "bad" uart (S1 if I follow?) to the bluetooth. Is it possible to do the same with nixos?
<samueldr>
tobiasBora: was it ttyS1 which made it work? (verifying as I'm updating the raspberry pi page on the wiki)
<tobiasBora>
samueldr: yes. But I don't know why I don't need to use some crazy baud rate...
<samueldr>
?
<clever>
115200 is fairly normal
doyougnu has joined #nixos
remmbster has joined #nixos
<samueldr>
do you mean that you didn't add ,115200n8 after ttyS1?
<Dezgeg>
enable_uart=1 in config.txt (which is already there) sets the clock divider accordingly, I think
<clever>
Dezgeg: there are some overclock flags in config.txt that mess with the uart clocks, but linux isnt aware of that, so the uart can run slow or fast
<Dezgeg>
yes, but enable_uart=1 overrides it I think
<remmbster>
Hi - I'm trying to do a pull request. The check failed for darwin (because of duplicate files differing only in case), so I want to change the platforms to just platforms.linux. How do I go about submitting the change?
regulus_ has quit [Ping timeout: 255 seconds]
<samueldr>
remmbster: update your branch, push it, you can also commit --amend or rebase to keep it only one commit
<samueldr>
the github PR should update accordingly
<remmbster>
Should I jst make a new commit and push that to my branch? Should the commit message be the same as the first (e.g. paper-icon-theme: 2017-11-20 -> 2018-06-24
<remmbster>
Ah ok
<samueldr>
so, yes!
<remmbster>
Is it ok if it's multiple commits?
<samueldr>
well, it is preferred to be one commit
<remmbster>
Ok
<remmbster>
I'll ammend it then
<samueldr>
great!
regulus_ has joined #nixos
<tobiasBora>
Dezgeg: oh I didn't see that enable_uart=1 was enabled. So it means that the raspberry is underclocked now?
<tobiasBora>
so can I remove this once I don't need uart anymore?
<clever>
tobiasBora: i dont think it causes any underclocking
<Dezgeg>
possibly, I have not measured it
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
<clever>
tobiasBora: the vcgencmd binary should allow reading the current clocks
seafood has joined #nixos
<tobiasBora>
samueldr: no no, I still have the 115200n8 ;)
<Dezgeg>
also at some point U-Boot couldn't work without enable_uart=1, but I think that has been fixed
<tobiasBora>
I'm just asking because if I understand correctly the S1 console uses the cpu clock, that may vary. So if enable_uart changes it, it means that the cpu clock is now locked (either underclocked or overclocked), which would make the rasp either slow, or power consuming.
<tobiasBora>
and actually the rasp is very hot ^^'
<Dezgeg>
yes, if U-Boot works nowadays without enable_uart=1 it could be removed by default
Lisanna has joined #nixos
trcc has joined #nixos
<{^_^}>
[cabal2nix] @peti pushed to tmp « README.md: add some badges »: https://git.io/fNt0B
Thra11 has quit [Ping timeout: 264 seconds]
<Lisanna>
clever + anyone else who uses Hydra: I figured out a nice way to gate an arbitrary hydra job (with any output format) on the success of other jobs, even if they don't have a direct dependency on eachother. Make a wrapper job that does depend on them (checks for the existence of ${drv}/nix-support/failed). If they all succeed, then return the actual result that you wanted to gate (can be a static file! doesn't need to have a nix-support
<Lisanna>
directory!). If it fails, return a directory in its place with $out/nix-support-failed set.
trcc has quit [Ping timeout: 240 seconds]
<Lisanna>
for example, if I have a channel, and one of the jobs produces a directory containing the raw nix expressions of the channel, and the product of that job is used by other jobsets with the "Previous Hydra Build" option, I can gate the success of that job without having to modify the derivation's contents or have decision making to touch $out/nix-support/failed inside the build of the actual channel derivation
Thra11 has joined #nixos
<Lisanna>
can gate it e.g. on a bunch of test jobs
<{^_^}>
[cabal2nix] @peti pushed 0 commits to refs/tags/2.10.0: https://git.io/fNt0F
<{^_^}>
[cabal2nix] @peti pushed 0 commits to refs/tags/2.9.3: https://git.io/fNt0A
<Lisanna>
so downstream hydra jobsets will only receive tested versions of those nix expressions
<{^_^}>
[cabal2nix] @peti pushed 0 commits to refs/tags/v2.9.3: https://git.io/fNt0p
<{^_^}>
[cabal2nix] @peti pushed 0 commits to refs/tags/v2.10.0: https://git.io/fNt0h
<logzet>
Maybe a dumb question: does one Hub entry in lsusb always correspond to one physical port?
<Ralith>
hooray, u2f finally works in firefox
worldofpeace has quit [Quit: worldofpeace]
<logzet>
Or does one USB port always have an own lsusb entry?
worldofpeace has joined #nixos
<logzet>
(The first question was flipped)
Wharncliffe has joined #nixos
<{^_^}>
[cabal2nix] @peti pushed to tmp « README.md: add some badges »: https://git.io/fNtEa
<{^_^}>
[nixpkgs] @dtzWill opened pull request #43441 → libpoly: 0.1.5 -> 0.1.7 (noop), cleanup a bit to modern style → https://git.io/fNtEo
<{^_^}>
[cabal2nix] @peti pushed to tmp « README.md: add some badges »: https://git.io/fNtEi
<{^_^}>
[cabal2nix] @peti pushed to tmp « README.md: add some badges »: https://git.io/fNtEF
<{^_^}>
[cabal2nix] @peti pushed to tmp « README.md: add some badges »: https://git.io/fNtEj
phaebz has joined #nixos
coot_ has quit [Quit: coot_]
<{^_^}>
[cabal2nix] @peti pushed to master « README.md: add some badges »: https://git.io/fNtu3
<clever>
logzet: my laptop has 3 proper usb ports, and the webcam in the display is also usb based, lsusb only claims 2 root hubs
<tobiasBora>
clever: how can I install vcgencmd ? I tried "nix-env -iA nixpkgs.raspberrypi-tools", and also nixpkgs.raspberrypifw, but none of them exist
worldofpeace has quit [Quit: worldofpeace]
<clever>
tobiasBora: if your channel is called nixos, then you need nix-env -iA nixos.raspberrypi-tools instead
wpcarro has quit [Remote host closed the connection]
<iqubic>
that's a shell.nix I'm trying to using.
seafood has joined #nixos
seafood has quit [Client Quit]
<LnL>
yeah, the name also gets a default so you need to add less boilerplate compared to mkDerivation
wpcarro has joined #nixos
<iqubic>
but will my shell.nix work?
seafood has joined #nixos
<LnL>
yes, that looks good
phaebz has quit [Ping timeout: 240 seconds]
seafood has quit [Client Quit]
seafood has joined #nixos
manny has quit [Ping timeout: 248 seconds]
<infinisil>
Nix performance question: When I do `let a = import <nixpkgs> {}; b = import <nixpkgs> {}; in <something using both a and b>`
seafood has quit [Client Quit]
<infinisil>
Is this slower than doing `let shared = import <nixpkgs> {}; a = shared; b = shared; in <something using both a and b>`?
seafood has joined #nixos
<clever>
infinisil: it will use roughly twice the ram and take roughly twice as long, assuming its using identical parts of a and b
<iqubic>
cool. How exactly will the correct python environment be created? With pip, or what?
Lisanna has quit [Quit: Lisanna]
<infinisil>
clever: Ah so that's the import caches thing
seafood has quit [Client Quit]
<LnL>
infinisil: the import will get cached, but the nixpkgsFun {} call might not
worldofpeace has joined #nixos
<tobiasBora>
clever: Dezgeg: samueldr sphalerite : Thank you very much for your help, it works great now! I just don't know why, but after the nixos-rebuild switch, the configuration was back to ttyS0, and still the uart is working even if it's not ttyS1...
<clever>
infinisil: it will cache the result of `import <nixpkgs>` but not the result of calling that with {}
seafood has joined #nixos
<infinisil>
Okay, so in short, I should do the shared variant
seafood has quit [Client Quit]
freusque has quit [Ping timeout: 240 seconds]
<clever>
infinisil: yep
<infinisil>
Nice, thanks :)
seafood has joined #nixos
seafood has quit [Client Quit]
<tobiasBora>
hum no, in fact it's not working, but it's working when you don't put any console=... I guess that's because of enable_uart?
<{^_^}>
[nixpkgs] @dtzWill opened pull request #43445 → yices: fix symlink created to match version → https://git.io/fNtrB
<tobiasBora>
is it possible that nixos tries to use the ipv6 address at some points?
seafood has quit [Client Quit]
seafood has joined #nixos
<gchristensen>
I don't _think_ so
<Ankhers>
gleber_: ping
<gchristensen>
but I don't know :$
seafood has quit [Client Quit]
seafood has joined #nixos
<tobiasBora>
because here if you look at it, you can see that all the things that try to connect though ipv6 display "Network is unreachable", which is exactly the error I have when I try to ping it
<Kim>
So I'm going through the examples on the NixOps manual for trivial-vbox, and it's grabbing NixOS 16.09 for some reason
mkaito has quit [Ping timeout: 265 seconds]
seafood has quit [Client Quit]
jackdk has joined #nixos
seafood has joined #nixos
mkaito has joined #nixos
mkaito has quit [Changing host]
mkaito has joined #nixos
seafood has quit [Client Quit]
<Kim>
It's really weird, since I would expect it to use 18.03
seafood has joined #nixos
betaboon has joined #nixos
seafood has quit [Client Quit]
ericsagnes has quit [Ping timeout: 240 seconds]
seafood has joined #nixos
<Kim>
It's also erroring when it tries to run `get-vbox-nixops-client-key.service`
<iqubic>
How does Nix create a python environment with the given libraries?
seafood has quit [Client Quit]
<tenten8401>
anyone know if there are any special rules I have to set up for a VPN server? I've got NAT enabled, VPN ports allowed through the firewall, and net.ipv4.ip_forward = true, yet I can't seem to access the internet at all when connecting to the ocserv instance running on my server.
<betaboon>
so. how unstable is nixos-unstable ? XD
seafood has joined #nixos
seafood has quit [Client Quit]
<tenten8401>
I'm like 99% sure it's not an ocserv issue because it works fine on another distros