<zybell_>
srid:the path you gave is for a *file*. To use a file as dir is *never* permitted.
<srid>
Dezgeg: .jsexe is a directory :)
<srid>
so i've got something working, but my systemd unit (user) files is not being reloaded. it always uses the old unit files. something strange going
<Myrl-saki>
"The maximum number of builds that Nix will execute in parallel on the machine. Typically this should be equal to the number of CPU cores. For instance, the machine itchy in the example will execute up to 8 builds in parallel"
<Myrl-saki>
What's the equivalent of setting cores instead max-jobs?
<Myrl-saki>
This is for remote building
Arcaelyx_ has joined #nixos
Arcaelyx has quit [Ping timeout: 276 seconds]
<samueldr>
sir_guy_carleton: for `boot.loader.grub.device` you'd at least need to point to the whole drive, but I'm not sure it would be related to your error
<samueldr>
I personally do not split /boot when installing on legacy boot / mbr
acarrico has quit [Ping timeout: 255 seconds]
jb55 has quit [Quit: WeeChat 2.0]
Fare has joined #nixos
orivej has quit [Ping timeout: 276 seconds]
marusich has joined #nixos
ryantm has joined #nixos
dcol has joined #nixos
<dcol>
hey, I'm trying to point my $NIX_PATH to my local repo but it isn't going very well. When I export the path (which is in my home directory) the path doesn't get updated for some reason.. anyone have an idea what I'm doing wrong? Can I specify the path in the configuration.nix somehow?
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
griff_ has quit [Quit: griff_]
Fare has quit [Ping timeout: 260 seconds]
schoppenhauer has quit [Ping timeout: 264 seconds]
schoppenhauer has joined #nixos
<sir_guy_carleton>
samueldr: oh you are right
astiles has quit [Ping timeout: 256 seconds]
<samueldr>
hmm, after googling blocklists and grub2, the error may have been related
drakonis has quit [Read error: Connection reset by peer]
<boomshroom>
I just got back from camping and the Switch bootrom exploit has been released! It shouldn't be long until the switch is running Linux, and then: NixOS!
<simpson>
Cool, good luck.
<boomshroom>
The problem is I can't seem to get it into recovery mode.
astiles has joined #nixos
astiles has quit [Remote host closed the connection]
kisik21 has joined #nixos
dcol has quit [Remote host closed the connection]
keith_analog has joined #nixos
srl295 has quit [Quit: Connection closed for inactivity]
<keith_analog>
Hi, can someone tell me how to set the ulimit in nixos?
<samueldr>
boomshroom everything's been released for linux
<samueldr>
except precise instructions
<samueldr>
(but vague instructions should be workable)
keith_analog has quit [Quit: Konversation terminated!]
jperras has joined #nixos
astiles has joined #nixos
aarvar has joined #nixos
jperras has quit [Ping timeout: 268 seconds]
<iqubic>
So I have no idea how to get printing set-up on my NixOS install. Can I get some help with that?
astiles has quit [Ping timeout: 276 seconds]
<teto1>
was gtk disabled in recent libreoffice ? for some reason LO has become quite ugly there, like a reminiscence of what JAVA applications/applets look like
astiles has joined #nixos
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
<boomshroom>
I managed to get my Switch into recovery mode. How do I run a python script that uses the usb library? I tried nix-shell -p python36Packages.pyusb but got `No module named 'usb'`
<iqubic>
teto1: And I thought it was just me. I also wonder this too.
iyzsong has joined #nixos
<adisbladis[m]>
teto1: It looks like crap here too. And I can't see gtk in the ldd output
<Lisanna>
mightybyte then set secret-key-files in your nix.conf
<mightybyte>
Lisanna: Great, thanks!
lo_mlatu_ has quit [Ping timeout: 248 seconds]
lo_mlatu_ has joined #nixos
rauno has quit [Remote host closed the connection]
robstr has joined #nixos
jperras has quit [Ping timeout: 255 seconds]
<mightybyte>
gs
<mightybyte>
Oops
astiles has joined #nixos
<mightybyte>
gs
<mightybyte>
dammit!
odi_ has joined #nixos
ma27 has quit [Ping timeout: 255 seconds]
<robstr>
Morning :)
reinzelmann has joined #nixos
<robstr>
All the time i struggle with finding availible options, for example when adding a service to systemd. Is there a better way to check source code ?
<Lisanna>
robstr what do you mean? you mean like nixos-option?
rauno has joined #nixos
rauno has quit [Remote host closed the connection]
<robstr>
Lisanna: yea, I want to execute a shell script, but serviceConfig.Exec* accepts only a path from what i understood. In some example i saw `start` option and I want to look it up but over the nixos.org page i cannot find it
<{^_^}>
→ 63b82757 by Timo Kaufmann: ecl: Use boehmgc
<{^_^}>
→ 473fe341 by @7c6f434c: Merge pull request #39391 from timokau/ecl-boehmgc
rauno has joined #nixos
<sir_guy_carleton>
so if i understand correctly, put programs you want available system-wide and regularly updated in configuration.nix, and anything you want specific to a user only with nix-env?
spear2 has quit [Ping timeout: 248 seconds]
<makefu>
sir_guy_carleton user-specific stuff can go into `users.users.<username>.packages` . this of course requires permissions to edit configuration.nix
shabius_ has joined #nixos
pie_ has joined #nixos
Ariakenom has joined #nixos
hihello has quit [Quit: Page closed]
shabius has quit [Ping timeout: 255 seconds]
wangoe has quit [Ping timeout: 260 seconds]
nh has joined #nixos
<nh>
does the default plasma5 session run on wayland or X?
<sir_guy_carleton>
X i think
<nh>
just realised i have no idea which its running on
<{^_^}>
→ 5e548e94 by Timo Kaufmann: glpk: Add gmp support
<{^_^}>
→ a0a1e5e1 by @dotlambda: Merge pull request #39381 from timokau/glpk-gmp
__Sander__ has joined #nixos
ThatDocsLady has joined #nixos
astiles has quit [Ping timeout: 255 seconds]
thc202 has joined #nixos
astiles has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
FRidh has joined #nixos
<boomshroom>
Good night, guys!
boomshroom has quit [Quit: WeeChat 2.0]
wangoe has joined #nixos
hakujin has joined #nixos
adisbladis has joined #nixos
chimay has joined #nixos
adisbladis has quit [Changing host]
adisbladis has joined #nixos
<hyper_ch2>
sphalerit: my zfs backup script works fine... I also switch one kvm from qcow2 to zvol and the script also works perfectly fine using that :)
<typetetris>
In procps-ng I have different build results with `nix-build` or than using `nix-shell` und doing `unpackPhase, configurePhase, buildPhase`. Is that normal or should I open an issue about it?
hakujin has quit [Ping timeout: 240 seconds]
<robstr>
Hey, I want to create a secret file containing all secrets, for example : `deployment.keys.dbsecret.text = ".."` but how can I _include_ ? With import ? or do I need callPackage ? :-/
<sphalerite>
hyper_ch2: matrix/weechat
jperras has joined #nixos
<sphalerite>
robstr: yes you can use import for this.
<hyper_ch2>
sphalerite: :) you've worked with zvol before?
<{^_^}>
→ 94295e3c by @peti: R: update CRAN and BIOC package sets
astiles has quit [Ping timeout: 276 seconds]
<{^_^}>
→ 9f816edc by @peti: Merge pull request #39382 from peti/r-updates
<robstr>
sphalerite: Ok but do I need inherid or override ? My current secret.nix looks like : `{ deployment.keys.dbsecret.text = "a"; }` and I need to include this for nixops
<hyper_ch2>
sphalerite: I used: zfs create -V 100G -s -o sync=disabled -b 16k tankSubi/encZFS/VMs/xxx --> create a 100GB spare zvol with blocksize 16 (because of windows) and in qemu/kvm I set cache to none
<sphalerite>
robstr: oh right, if you're just specifying the full attribute path you can pass the secrets file to nixops create
<hyper_ch2>
since the zvol is a subset of an encrypted DS, it's also encrypted :)
jperras has quit [Ping timeout: 240 seconds]
iyzsong has joined #nixos
astiles has joined #nixos
<robstr>
sphalerite: when i just pass the file to nixops create (with the rest) i get back `could not connect to ‘root@deployment’, retrying in 4 seconds...`
<robstr>
sphalerite: Looks like nixops interpred it as a host -.-
Ariakenom has joined #nixos
<sphalerite>
ooh never mind that then, I thought it was the full path to to the keys thing
<sphalerite>
maybe make secrets.nix just contain dbsecret.text = …. etc then, and in the main file do deployment.keys = import ./secrets.nix
<teto1>
anyone knows how to get the PATH visible by nm-dispatcher.service ? it seems empty and I would like to confirm it so I tried to install https://github.com/GNOME/d-feet but can't see the parameter
pie_ has quit [Ping timeout: 248 seconds]
<adisbladis>
teto1: You could check /proc if the service is running
<tilpner>
(.environment.PATH is the same value for me)
<tilpner>
Oh, and I used the wrong service name
pie_ has joined #nixos
<adisbladis>
Or slighly simpler: nixos-option systemd.services."systemd-timesyncd".path
<teto1>
tilpner: but I think the path differ ? like your command shows coreutils in PATH but when nm-dispatcher runs my hooks, echo $PATH returns '/no path'
<tilpner>
teto1 - Also try systemctl cat nm-dispatcher
<adisbladis>
teto1: I think that's what you want
<tilpner>
That will have [Service] Environment="PATH=..."
jperras has joined #nixos
<hyper_ch2>
tilpner: still love your write file expression :)
<teto1>
cat nm-dispatcher fails but nixos-option systemd.services."nm-dispatcher".path works, it is empty
<teto1>
I think it owuld make sense to have coreutils/iproute in it
<tilpner>
I don't know what nm-dispatcher is. Is it a system or user service?
<teto1>
how should I go about that (I can do the PR)
<teto1>
tilpner: it's a system service that is run by network manager when it detects a new interface. It runs some scripts in /etc/NetworkManager/dispatcher.d
<tilpner>
Hmm, I don't have that service :/
<adisbladis>
Me neither..
jgt2 has quit [Ping timeout: 255 seconds]
<tilpner>
hyper_ch2 - :)
<hyper_ch2>
tilpner: it's really useful to add custom files to your custom iso
<hyper_ch2>
(there's probably more stuff you can do with it....)
astiles has quit [Ping timeout: 276 seconds]
pie_ has quit [Remote host closed the connection]
<adisbladis>
hyper_ch2: I always use my custom iso :) Super handy to have SSH with your own key by default
jperras has quit [Ping timeout: 276 seconds]
<tilpner>
hyper_ch2 - That part is possible with isoImage.contents too
pie_ has joined #nixos
<hyper_ch2>
adisbladis: you know tilpner's write file script?
<makefu>
adisbladis: i do the same thing, plus i added a tor hidden service + irc announce to always be able to connect
<adisbladis>
makefu: Ohh :) Neato
<adisbladis>
I'll steal that
<butchery>
has python.withPackages changed with nix 2.0? I had a nix-shell script that used python3.withPackages(ps: with ps; [ pygobject3 ]), after updating to 18.03/nix 2.0 it no longer works, I'm getting Namespace Gtk not available in python?
* hyper_ch2
heard only bad people use tor hidden services
<srhb>
Why is xeji not in this channel? They're doing such great work. :-)
reinzelmann has quit [Ping timeout: 255 seconds]
xy2_ has joined #nixos
<mahalel_1>
hey, new to nixos and using i3wm, i notice in some apps i get these sort of icons - https://i.imgur.com/zPqao82.png
<mahalel_1>
i'm guessing i'm missing a library of sorts
<robstr>
Hey, I added with `environment.systemPackages = [bla];` a haskell package and I want to run a binary out if this package, but when I specify _only_ the executable name (as a seystemd service) it will not find the binary. When I ssh to the machine (nixops) the command is availible. Maybe I need to specify the full path or with {pkgs...} ?
humanoyd has quit [Quit: WeeChat 2.1]
apeyroux has quit [Remote host closed the connection]
<Mic92>
srhb: I also proposed that he should get merge access
astiles has quit [Ping timeout: 255 seconds]
<srhb>
robstr: In a systemd service you should usually not refer to things on path but instead substitute in commands, like "${pkg.name}/bin/name some arguments"
<srhb>
robstr: That also makes adding it to environment.systemPackages redundant.
<srhb>
Mic92: Yeah!
<Mic92>
srhb: I will ask him
<srhb>
Mic92: Cool :)
<robstr>
srhb: thank you :)
jgt2 has quit [Ping timeout: 256 seconds]
FRidh has quit [Ping timeout: 264 seconds]
mahalel_1 has quit [Quit: Leaving.]
astiles has joined #nixos
mahalel_1 has joined #nixos
simukis has joined #nixos
shabius_ has joined #nixos
<bennofs[m]>
is the fontconfig 2.13 update planned already? arch has 2.12 and the config in etc is incompatible with 2.12 :(
shabius has quit [Ping timeout: 256 seconds]
<Mic92>
bennofs[m]: first come, first serve I guess.
astiles has quit [Ping timeout: 265 seconds]
astiles has joined #nixos
alexteves_ has joined #nixos
mahalel_1 has quit [Remote host closed the connection]
<{^_^}>
→ 9105db24 by @Mic92: telegraf: 1.5.3 -> 1.6.1
<{^_^}>
→ 8d5c8b3e by @Mic92: Merge pull request #39401 from Mic92/telegraf
jperras has joined #nixos
astiles has quit [Ping timeout: 255 seconds]
astiles has joined #nixos
wangoe has quit [Ping timeout: 264 seconds]
jperras has quit [Ping timeout: 240 seconds]
betaboon has quit [Ping timeout: 248 seconds]
Ariakenom has joined #nixos
betaboon has joined #nixos
<butchery>
fyi the problem I had with python3/pygobject3 not finding gtk in nix-shell with nix 2.0 was because GI_TYPELIB_PATH wasn't set, adding gobjectIntrospection to the build inputs fixed it, was this an intentional change to nix-shell behavior? What was setting GI_TYPELIB_PATH automatically in nix-shell previously?
astiles has quit [Ping timeout: 276 seconds]
astiles has joined #nixos
wangoe has joined #nixos
fendor has quit [Ping timeout: 240 seconds]
<adisbladis>
butchery: Did you see different behaviour using different versions of nix on the same nixpkgs?
<butchery>
ah true no, I upgraded to 18.03/Nix 2.0 in a single swoop and this script stopped working
ThatDocsLady has quit [Remote host closed the connection]
ThatDocsLady has joined #nixos
<adisbladis>
butchery: Then it's likely that gobjectIntrospection was a propagatedBuildInput of something before and it was removed.
<{^_^}>
→ ba389086 by Timo Kaufmann: singular: Fix ntl dependency
<butchery>
Ah, I see, that makes sense, thanks
<{^_^}>
→ bc6f7a9c by @7c6f434c: Merge pull request #39370 from timokau/singular-ntl
<adisbladis>
butchery: Please open a PR :)
jperras has joined #nixos
jperras has quit [Ping timeout: 264 seconds]
iyzsong has joined #nixos
<joko>
Hello, I am trying to parse some attributes from a JSON file to feed them on a NixOS expression. In order to be sure that the JSON contains the ones I want, I made some assertions, e.g. "builtins.hasAttrs setting1 settings", but nixos-rebuild switch moves forward to point out the error in the expression later on. Isn't it possible to make the assertions earlier on to give a better message?
iyzsong has quit [Client Quit]
fendor has joined #nixos
civodul has quit [Ping timeout: 248 seconds]
wangoe has quit [Ping timeout: 255 seconds]
alexteves_ has quit [Ping timeout: 265 seconds]
iyzsong has joined #nixos
jgt2 has joined #nixos
reinzelmann has joined #nixos
<srhb>
joko: I'm not sure what you're asking exactly. Is it too much laziness?
<srhb>
If so you'll just have to push in an earlier dependency, but strictifying things is always a bit scary.
<{^_^}>
→ 84719614 by @vaibhavsagar: teseq: init at 1.1.1
<{^_^}>
→ 97fb4c32 by @pSub: Merge pull request #39399 from vaibhavsagar/init-teseq
<joko>
srhb: I have settings.json on the filesystem, I convert it to an attribute set and I need to test that it contains all the necessary attributes before feeding them to NixOS configuration
<srhb>
joko: Why "before" ? If an attribute is missing you should get a very clear error if you do nothing special.
flyx has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @jtojnar opened pull request #39402 → Various GNOME updates → https://git.io/vpG1B
<sphalerite>
I have an external monitor which I can't connect to my laptop, but I do have another machine that I can connect to it. Does anyone know a way I could get the monitor connected via the network and as an extension of the screen on the laptop?
<sphalerite>
Input would only be coming from the laptop
<clever>
sphalerite: there is also Xvnc, which is an entirely seperate x server, that uses vnc rather then a gpu
<sphalerite>
that looks like what I want!
<sphalerite>
clever: that's what I just mentioned
<clever>
and the bash script vncserver deals with launching it for you
<clever>
ah
<sphalerite>
sphalerite | just running a separate server won't do because I want it to use my laptop's integrated monitor as well
alexteves_ has joined #nixos
<zybell_>
run vnc server on laptop, vnc client in look mode on other
freeman42x]NixOS has quit [Ping timeout: 264 seconds]
<dtz>
xdmx?
johann__ has quit [Quit: Leaving.]
<clever>
sphalerite: ah, for that, you have 2 options, x0vncserver will basically screenshot constantly, and serve that up
freeman42x]NixOS has joined #nixos
<clever>
and there is an old xorg module that can be loaded into the primary x
<zybell_>
sphalerite:run vnc server on laptop, vnc client in look mode on other
<sphalerite>
what dtz linkked seems like the right thing
<sphalerite>
zybell_: that doesn't cover setting the virtual monitor up
gleber_ has quit []
<zybell_>
ssh
gleber_ has joined #nixos
<sphalerite>
I know what ssh is, I don't know how to set up a virtual monitor with X
<sphalerite>
but I'm looking the source of the thing dtz sent, looks like I can get what I want with a bit of fiddling with xrandr
<zybell_>
what virtual?
<sphalerite>
zybell_: I want the external monitor to extend, not mirror, my laptop monitor
<dtz>
sphalerite: haha great, I was hoping / suspecting that'd be the case
<srid>
When you specify `"${foo}"` in the ExecStart of systemd config, does it automatically use the new version of `foo` when running switch?
<dtz>
Like even if it doesn't solve it it'd point you to config / strategies that work
<srid>
(where `foo` = `import /path/to/some.nix`)
<clever>
srid: yes
<adisbladis>
srid: Yes
<clever>
srid: you can also just specify ExecStart = foo;
<srid>
Yesterday I saw systemd continuing to use older path even when `foo` was rebuilt. Something went wrong somewhere...
<sphalerite>
dtz: it does look like exactly what I want but I don't like how much code it is, looks like I can get what I want with just a few lines of bash instead :p
<zybell_>
Oh!
<dtz>
Haha perfect.
freeman42x]NixOS has quit [Ping timeout: 255 seconds]
<dtz>
Anyone know if xdmx is viable? Seems like the "right" solution
<srid>
clever: adisbladis even if `foo = import /path/to/some.nix`? (would a change to `/path/to` trigger a new foo, and thus new systemd service exec?)
<clever>
srid: it depends on what the import returns, not the path given to it
<adisbladis>
srid: Yes it would.
<srid>
I really should understand how Nix works in detail instead of voodoo programming this
<clever>
srid: so if you move some.nix, and update the path, it would return the same value, and then systemd doesnt restart, because nothing actually changed
lonokhov has quit [Quit: WeeChat 2.0]
<adisbladis>
Oh. I'm sorry. It's beer-o-clock where I am :P Just changing paths would _not_ change the hash of anything.
<srid>
clever: Interesting, how can I tell what `some.nix` returns ?
<srid>
`nix-build some.nix` prints a path like `/nix/store/ag0wq3gr7kbbxlqkqjfq6cphzavh0792-motif`
<clever>
srid: do `import /path/to/some.nix` in nix repl
<clever>
srid: and also "${import /path/to/some.nix}"
knupfer has joined #nixos
<fyuuri>
What is the easiest way of running a Windows 10 host under nixos? I need to be able to edit Word Documents :(.
<adisbladis>
fyuuri: Virtualbox/qemu
<srid>
And when do a 'nixos-rebuld switch' with new result from some.nix, does it automatically restart the systemd *user* service to use the new exec? Yesterday I remember having to manually restart it.
<clever>
srid: ah, it doesnt auto-restart user services
<clever>
srid: only system services
<adisbladis>
Ohh we are talking about _user_ services :)
<fyuuri>
adisbladis: but virtualbox is not in the official nixpkgs right now?
ryantrinkle has joined #nixos
<adisbladis>
fyuuri: It is
<fyuuri>
oh!
<fyuuri>
Are there any complications or does Win10 just run out of the box?
magnetophon has joined #nixos
<srid>
I also see a stale user unit file left behind (nix didn't clean it up)
astiles has quit [Ping timeout: 265 seconds]
<sphalerite>
fyuuri: windows 10 ran out of the box in qemu for me, I haven't tried virtualbox
<clever>
i have win 10 in virtualbox
<fyuuri>
Nice thx!
<fyuuri>
Using qemu, is sharing files easy?
<adisbladis>
In my experience the graphics performance in virtualbox is better than qemu, but io/cpu is better in qemu.
<fyuuri>
(sry for the stupid questions, I need to get this to running fast :))
<clever>
fyuuri: virtualbox has a dedicated file sharing thing you can enable, which shows up as a drive in the vm
<adisbladis>
fyuuri: Qemu doesn't have a concept of shared directories like virtualbox has (iirc). So you'll have to set up smb for sharing. I might be wrong though.
<adisbladis>
Virtualbox has sharing nicely integrated
<clever>
adisbladis: qemu does have an option to embed an smb share into the nat, but its not as nice as vbox's sharing
<clever>
vbox with integrations also resizes the virtual gpu to match the window
<fyuuri>
Thank you for all for this info, that helps a lot :)
<clever>
so you just resize the guest window, and the "monitor" shrinks to fit
<adisbladis>
clever: Ahh I don't think that was there last I checked :) But that was many many years ago
cbarrett has quit []
lord| has quit [Ping timeout: 260 seconds]
dgpratt has quit []
<adisbladis>
Overall I recommend Virtualbox for desktop virtualisation
<sphalerite>
so basically the gist of it is use gtf to work out the parameters for your mode, xrandr --newmode <params>, xrandr --addmode VIRTUAL1 <modename>, xrandr --output VIRTUAL1 --auto --left-of eDP1 (in my case), x11vnc -viewonly
odi_ is now known as odi
iyzsong has quit [Read error: Connection reset by peer]
dbmikus has joined #nixos
<fyuuri>
How do I load the vboxdrv under nixos?
<clever>
sphalerite: something else i just remembered, is that the vnc protocol allows you to query for changes within a certain region
<clever>
sphalerite: so the client could only query the area a single monitor covers
<adisbladis>
fyuuri: You would typically enable the host service
<fyuuri>
And it seems I also need: nixpkgs.linuxPackages.virtualboxGuestAdditions ?
<clever>
fyuuri: that is only used on the guest side
<grafoo>
is there a way to run the install phase as root?
<sphalerite>
grafoo: no.
<clever>
grafoo: why does it need root?
<fyuuri>
Ok. Thank you :)
astiles has quit [Read error: Connection timed out]
<grafoo>
clever: i need to keep the permissions on a file ( -rwsr-xr-x 1 root root )
<adisbladis>
grafoo: Use security.wrappers instead
<adisbladis>
(on NixOS)
odi has quit [Ping timeout: 255 seconds]
fendor has quit [Ping timeout: 255 seconds]
astiles has joined #nixos
jperras has joined #nixos
<sphalerite>
grafoo: nix doesn't allow setuid. You can use a wrapper as adisbladis says on nixos, on other OSes you'll want to use a different method of escalating privileges.
adisbladis has quit [Remote host closed the connection]
<fyuuri>
I often get the nix daemon out of memory error when I do nixos-rebuild. Even though I have 8 G of RAM...
<sphalerite>
fyuuri: yes, nix 2.0 eats an extraordinary amount of RAM.
<hyper_ch2>
clever: resizes the virtual gpu to match the window?
<fyuuri>
OK :). Its not my fault then^^.
Rusty1_ has joined #nixos
<sphalerite>
fyuuri: there are some fixes for the issue but they're not in a release yet. Switching to nixUnstable *might* mehelp
<fyuuri>
Its not that bad atm. If I kill the browser before rebuilding it works. I will wait until its in the stable release.
<fyuuri>
thx!
hunger has joined #nixos
<fyuuri>
Now virtualbox says the Kernel driver is missing. Whats the nix way of doing /sbin/vboxconfig?
<hyper_ch2>
I think those spice things are the essential part
Neo-- has joined #nixos
odi has joined #nixos
lostman has joined #nixos
<lostman>
hi all. I'd like to install llvm 7 using nix. can I somehow make use of existing derivation without copy-pasting it? it has something like this `src = fetch "llvm" "0224xvfg6h40y5lrbnb9qaq3grmdc5rg00xq03s1wxjfbf8krx8z"`; can I override the sha somehow to make it install a different version?
astiles has quit [Ping timeout: 276 seconds]
<symphorien>
can you give more details on what you are trying to achieve ?
<sphalerite>
symphorien: nixpkgs doesn't have llvm 7, only earlier versions. I'm guessing lostman wants to change that.
<symphorien>
lostman: http://xelpaste.net/rKTCgv here is what I have to build a different version of neovim
<hyper_ch2>
sphalerite: well, with virt-viewer and virt-manager it resizes just fine
astiles has joined #nixos
<sphalerite>
guess I'll need to try that at some point :)
<sphalerite>
do we have some sort of emacs integration for nix-shell, that sets environment variables from a derivation?
<makefu>
symphorien: packageOverrides are now superseeded by overlays, https://nixos.org/nixpkgs/manual/#chap-overlays . you can just do something similar with nixpkgs.overlays = [ (self: super: oldpackage = super.oldpackage.override { } ) ] :)
* sphalerite
just realised that since all he's using the extra monitor for is a terminal, he could have just used SSH rather than fiddling about with an X virtual monitor and VNC and stuff…
<sphalerite>
oh well, it's a more powerful solution which I can use for graphical stuff if I want to :D
<hyper_ch2>
sphalerite: I'm pretty sure the scaling comes from that spice agent thingy.... if you start the vm directly from shell with appropriate options I'm sure it should also work
<sphalerite>
yeah probably
<sphalerite>
I don't use the VM much anyway tbh
<hyper_ch2>
I do because some software only runs on win :(
<sphalerite>
I set it up at one point to try building some stuff for windows. It didn't go well.
<sphalerite>
In fact, my attempt at building for windows using mingw with nixpkgs went better
<lostman>
symphorien: that looks useful!
orivej has quit [Ping timeout: 255 seconds]
<symphorien>
makefu: do you mean deprecated as in "I should not advise people to use it" ? Honnestly I have a snippet of packageOverrides in my conf so I just stick to use it instead of looking for documentation about overlays.
astiles has quit [Ping timeout: 255 seconds]
vaninwagen has quit [Ping timeout: 240 seconds]
<sphalerite>
symphorien: yeah, because it doesn't compose well and the recursion issues are a lot more confusing
<lostman>
symphorien: so if llvm derivation defines `src` I should be able to override that `src` and just make it build a different version?
<mightybyte>
I just set up a nix cache using nix-serve, and when I try to use nix-copy-closure to add stuff to the cache, I get "bash: nix-store: command not found". Anyone know what causes this?
<symphorien>
lostman: in theory yes
nick_l has joined #nixos
jensens has quit [Ping timeout: 240 seconds]
<makefu>
symphorien: your snippet is very close to the new overlays feature and the overrideAttrs part is correct, but because overlays are more cleanly defined they should be preferred to the packageOverrides method
<symphorien>
sphalerite: ok. but if I only have one overlay, I keep the exact same semantics as with packageOverrides, right ?
<lostman>
symphorien: cool, I'll give it a shot
<nick_l>
When I try to deploy the exact same configuration via NixOps with the only difference being an older nixpkgs (nixos-17.09) I don't even get ssh connectivity.
<sphalerite>
symphorien: yes except for the recursion bit
<nick_l>
The 18.03 works, but the kernel is not compatible with what I am trying to do.
<symphorien>
can you explain this ?
<nick_l>
I would really like to use 17.09. Does anyone have an idea as to how I can accomplish that with a recent version of nixops?
reinzelmann has quit [Read error: Connection timed out]
<sphalerite>
symphorien: if you want to refer to a modified package with packageOverrides you have to do something like super: let self = super // {stuff goes here}; in self
<sphalerite>
symphorien: iirc. Not sure of the exact way it's done, it's a lot more confusing than an overlay in any case :')
reinzelmann has joined #nixos
<symphorien>
ah ok
<symphorien>
not the usally useful part
<nick_l>
symphorien: I don't think I can select kernel version 3.something via that approach.
<sphalerite>
symphorien: oh and arguably most importantly, it means one less thing has the horribly overloaded term "override" in it!
asuryawanshi has quit [Ping timeout: 260 seconds]
<symphorien>
well maybe you can import an older version of nixpkgs, and then boot.kernelPackages = oldnixpkgs.linuxPackages_3_14 or so
FRidh has quit [Ping timeout: 260 seconds]
<sphalerite>
I remember being completely lost between packageOverrides, foo.override, and foo.overrideAttrs when I first encountered the task of modifying a package locally.
<nick_l>
symphorien: and the left hand side comes from a newer nixpkgs, you mean?
<sphalerite>
nick_l: the left hand side is a nixos config option.
<symphorien>
sphalerite: that's part of the reason why I thought "let's not learn another concept called overlays"
<nick_l>
sphalerite: I know, but that option also is specified in a version of nixpkgs.
<sphalerite>
symphorien: it's a good reason for people unfamiliar with all of it *not* to learn about packageOverrides and prefer overlays though.
<symphorien>
nick_l: and you don't even tell nixops about your using an outdated kernel
<{^_^}>
[nixpkgs] @timokau opened pull request #39405 → tNode three mathjax → https://git.io/vpGhT
<sphalerite>
does anyone know an alternative to x11vnc (for exposing an existing X dispaly via VNC)
<sphalerite>
?
iqubic has joined #nixos
<iqubic>
I'm running into issues with the nix-daemon running out of memory. How can I remedy this?
<sphalerite>
iqubic: it's a bug in nix 2.0. Using nixUnstable might help.
<iqubic>
I'm just trying to add coq to my system packages in configuration.nix and rebuild.
<iqubic>
How shall I fix this?
szicari has joined #nixos
astiles has quit [Ping timeout: 265 seconds]
<lostman>
symphorien: any idea where `fetch` could be defined? I'm trying to figure out how `fetch "llvm" ...` works. that is, where it fetches the sources
<iqubic>
Looks like I have 7 gigs of memory, and I'm not using any swap at all.
<sphalerite>
yeah nix 2.0's memory consumption is that ridiculous. If you're using a conventional filesystem, you could just create a swap file and use that
<sphalerite>
if that works, then rebuilding with coq in the system profile afterwards should work too
kaychaks has joined #nixos
Mateon1 has joined #nixos
mjvoge02 has quit []
elvishjerricco has quit []
mjvoge02 has joined #nixos
elvishjerricco has joined #nixos
leat has joined #nixos
<iqubic>
That does work.
<iqubic>
I don't have time to try rebuilding in the system profile though.
erasmas has joined #nixos
blankhart has joined #nixos
<sphalerite>
no at this point you should be able to just have coq in systemPackages and a rebuild should work
<sphalerite>
even with nix 2.0 still as the system nix version
<iqubic>
oh, really?
parseval has quit []
<sphalerite>
since coq is already in the store
Mateon1 has quit [Remote host closed the connection]
astiles has quit [Ping timeout: 276 seconds]
<iqubic>
Nope. Unable to fork: cannot allocate memory.
parseval has joined #nixos
<iqubic>
And that's a build stopping error.
<sphalerite>
huh, unable to fork..?
<iqubic>
I hate nix 2.0 because I can't build anything.
<sphalerite>
What's it trying to build?
<Mic92>
iqubic: if you really start to swap under memory pressure it will not behave well on linux due the memory model and deadlock, so it is only useful for hibernation.
<iqubic>
It wants to update my window manager.
<iqubic>
Can I just tell it to not update my window manger.
<symphorien>
nix-channel --rollback maybe
<sphalerite>
ok one more thing to try: sudo nix-shell -p nixUnstable --run 'nix build -f "<nixpkgs/nixos>" config.system.build.toplevel'
<iqubic>
My window manger, EXWM is a bit weird.
Mateon1 has joined #nixos
astiles has joined #nixos
rauno has quit [Remote host closed the connection]
<iqubic>
Well that failed in the exact same way.
<iqubic>
Still tried updating my window manager.
<iqubic>
Can I just roll back to nix 1.0 and use that?
<sphalerite>
blargh. One more idea: add --cores 1 --max-jobs 1 within the quotes to that last command
<sphalerite>
not on 18.03 AFAIK :(
<sphalerite>
oh actually yes you can, nix.package = pkgs.nix1
<iqubic>
Yeah, that failed.
<sphalerite>
well, 1.11.x, not 1.0. Not sure nix 1.0 is what you want :D
<betaboon>
anyone else having problems with nixos18.03 and nixos-containers ? oO
<sphalerite>
betaboon: being more specific might be helpful
iqubic has quit [Ping timeout: 276 seconds]
odi__ has quit [Ping timeout: 256 seconds]
<joko>
betaboon: I launched one with Postgres two weeks ago and it was working fine, really simple stuff though
xy2_ has joined #nixos
<betaboon>
I'm using nixops to deploy containers into a virtualbox, I'm currently evaluating migrating to nixos18.03. but I'm running into atleast two types of problems, that i am not running into on 17.03: problem 1 are of this kind: "Failed to add new veth interfaces (ve-....:host0): File exists", problem2 is of this kind: "Cannot find device "host0"".
odi has quit [Ping timeout: 264 seconds]
xcmw has joined #nixos
astiles has quit [Ping timeout: 255 seconds]
<joko>
betaboon: are you using privateNetwork, hostAddress and localAddress?
ottidmes has joined #nixos
<betaboon>
joko: I'm not completly sure how nixops sets up the containers
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astiles has joined #nixos
<ottidmes>
I haven't used nix-shell in a while, and I am a bit confused. Calling nix-shell works when I use stdenv.mkDerivation but fails with buildEnv. I thought buildEnv produces a derivation just the same, I have been using it in systemPackages for ages
xcmw has joined #nixos
reinzelmann has quit [Quit: Leaving]
mbrock has quit [Remote host closed the connection]
<adisbladis[m]>
iqubic: exwm <3
katona has quit [Quit: Connection closed for inactivity]
<sphalerite>
adisbladis[m]: iqubic left :p
<adisbladis[m]>
Ahh :P
<adisbladis[m]>
Hard to know from the other side of the matrix bridge..
adisbladis has joined #nixos
<adisbladis>
Now from a real irc client :)
<sphalerite>
I like to think the troll that lives under the matrix bridge eats various little bits of information
<sphalerite>
like the joins/leaves on the IRC side and the formatting on the matrix side.
<adisbladis>
sphalerite: For the last few days it has been.. Lots of missing messages on the matrix side
<sphalerite>
oh yeah, and whole messages when it's in a bad mood.
<adisbladis>
It's not a fantastic experience
<adisbladis>
I wish I had a phone where I had a keyboard so I could just use my irc client of choice on the go..
johs has quit []
johs has joined #nixos
<sphalerite>
a friend of mine swears by his bluetooth keyboard
<shapr>
swears *at* ?
<adisbladis>
Haha :)
<adisbladis>
sphalerite: I had a great old Palm Pilot keyboard
<adisbladis>
I think I still have it at my parents place..
<shapr>
I bought a wireless mouse, I don't use it so much after all the swearing.
<adisbladis>
But most of them are far too big to carry around in the pocket
<sphalerite>
and then you have those ones that roll up and are just a whole new level of awful to use
butchery has quit [Remote host closed the connection]
silver has joined #nixos
<robstr>
Hey, I'm playing with nixops and virtualbox & aws deployment. I recently run into an issue on aws with postgresql service, `createdb: could not connect to database template1: FATAL: role "root" does not exist` while same stuff deployed to virtualbox works out of the box ... this shouldn't be the case right ? :P
silver has quit [Max SendQ exceeded]
silver has joined #nixos
<slabity[m]>
`nix-shell -p oraclejdk10` fails, asking me to download the `jdk-10_linux-x64_bin.tar.gz` file manually from the oracle website. However, the only download available is 10.0.1, and running `nix-store --add-fixed sha256 jdk-10*tar.gz` does not seem to solve the issue.
silver has quit [Max SendQ exceeded]
<slabity[m]>
Anyone know how I can override the `oraclejdk10` derivation to allow it to work with 10.0.1?
<gchristensen>
sphalerite: who do you think would make a good +o for #nixos?
<grafoo>
LnL: when using `nix-store` for the `guix pack` functioniality, is there a way to change the original store path when loading the closure? e.g. (/home/someuser/bin, when the tarball contains /nix/store)
srdqty has joined #nixos
nick_l has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #31833 → nixos/acme: Allow for time window between cert issue and activation → https://git.io/vFHdy
<{^_^}>
[nixpkgs] @matthewbauer pushed 5 commits to master: https://git.io/vpZYj
<{^_^}>
→ e70d293b by @pngwjpgh: nixos/acme: Allow for time window between cert issue and activation
<{^_^}>
→ 1eea73ea by @matthewbauer: Merge branch 'master' into feat/acme/delay
<{^_^}>
→ e11cb1d2 by @pngwjpgh: Merge branch 'master' of github.com:NixOS/nixpkgs into feat/acme/delay
<slabity[m]>
adisbladis, sphalerite: Thanks. Those commands worked perfectly
<sphalerite>
gchristensen: maybe srhb? She's about a lot, helps lots of people and seems to be sensible :)
<bfrog>
is it easy enough to setup a ubuntu lts/centos container with nixos?
<bfrog>
like with lxc or nspawn
<bfrog>
certain things are only packaged seemingly for those, and I'd also like to be able to create packages for those distros
<bfrog>
like what do other people do for that sort of thing here
<sphalerite>
bfrog: quickest way is probably using docker (unfortunately :p ) but yeah I've used systemd-nspawn successfully as well
<LnL>
grafoo: no, relocating store paths breaks all sorts of things
<{^_^}>
→ 05206347 by @fpletz: xmr-stak: doesn't build with gcc7 if cuda is enabled
<{^_^}>
→ b6dbdaa2 by @fpletz: openarena: needs libcurl for fast assets downloads
<bfrog>
I've managed to avoid docker so far... but maybe its time
<bfrog>
it just seems like a gzipped root file systems of sorts to me, I don't get the hype
<sphalerite>
bfrog: lxc does also work, but it's more of a fuss than nspawn and doesn't really have any advantages over it AFAIK
lesce has quit []
astiles has quit [Ping timeout: 256 seconds]
<LnL>
grafoo: nix 2.0 does have a feature to run something in a mount namespace
<sphalerite>
bfrog: nspawn does work nicely as well, there's just a bit more setup involved than with docker
<bfrog>
so nspawn is probably my best bet for a low cost vm of sorts
lesce has joined #nixos
<bfrog>
I mean, what does docker really do beyond what nspawn does?
<sphalerite>
bfrog: debootstrapping your root filesystem then running systemd-nspawn rather than just docker run -ti debian
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bfrog>
maybes thats not directly nixos related, but I never understood the real benefit of it
<adisbladis>
bfrog: Yeah. Installing debian is for example easily done through debootstrap.
<{^_^}>
[nixpkgs] @fpletz pushed 15 commits to release-18.03: https://git.io/vpZOz
<{^_^}>
→ c3fc1bf8 by @lsix: postgresql93: 9.3.20 -> 9.3.21
<{^_^}>
→ 1851e5a3 by @WilliButz: grafana: 5.0.3 -> 5.0.4
<{^_^}>
→ d1cb11d7 by @lsix: postgresql94: 9.4.15 -> 9.4.16
<bfrog>
isn't there something similar for centos
<bfrog>
I don't recall the name of the script
<sphalerite>
image management. But yeah I'd absolutely recommend nspawn if you're not after a quick-n-dirty solution
<adisbladis>
bfrog: Well. One thing that docker does is reproducible deployments. It _can_ be done with lxc/nspawn too but it's much more of a hassle unless you use nix :)
<bfrog>
right
<mightybyte>
How can you tell if a package in the nix store has been signed?
<sphalerite>
mightybyte: nix verify <path>
<sphalerite>
would be nice to have a command for actually querying the signatures, I don't think that exists
astiles has joined #nixos
marsam has quit []
marsam has joined #nixos
<bfrog>
I love the unified nix command btw
<bfrog>
much needed and appreciated, hope to see it grow to replace most of the sporatic nixxyz-abc type commands... hard to remember what does what sometimes
<copumpkin>
a friend of mine is seeing "claims to be content-addressed but isn't" from Nix
<copumpkin>
trying to figure out what's causing it
<copumpkin>
I've never seen it myself
<copumpkin>
I can see the code that emits it, but none of it makes sense in this context
<sphalerite>
not so much about nix, but does anyone know how deviations from the convention are handled as far as environment variables go? From what I can tell from man environ, NAME=VALUE is a convention (and I've never seen it used otherwise), but there don't seem to be any measures that prevent an entry in environ with no =VALUE or duplicate entries… Does anyone know about this?
<sphalerite>
clever maybe
spear2 has joined #nixos
silver has quit [Quit: rakede]
silver has joined #nixos
<clever>
sphalerite: vars can be set to nothing, i have seen users often doing `set NIX_REMOTE=` when i tell them to unset, and then it has a totally different effect
<sphalerite>
clever: but I mean specifically entries in environ with no =, or duplicate entries
<clever>
i dont think dups and lacking = is valid
<sphalerite>
and entries beginning with =
<clever>
thats likely also not valid
<sphalerite>
sure, it's not valid according to the conventions. But AFAICT it's not a *requirement*
<clever>
you would need some custom c code to even set that to see what happens
<sphalerite>
hmm `env = env` works :D
<sphalerite>
(that is, as a shell command)
<{^_^}>
[nixpkgs] @dtzWill opened pull request #39407 → nixos/nix-daemon: optionally (on by default) check nix.conf can be read → https://git.io/vpZGQ
Rusty1_ has quit [Quit: Konversation terminated!]
silver has quit [Client Quit]
silver has joined #nixos
<sphalerite>
I'm guessing most software just won't even check, and just stop looking after finding the first match on getenv
<sphalerite>
time to look at my favourite libc I guess
<grafoo>
LnL: does nix rely on having the store in /nix or can i use e.g. /tmp as a root? reason being is that i'd like to package software with nix and run it on systems where i don't have root access.
astiles has quit [Read error: Connection timed out]
<sphalerite>
grafoo: since nix 2.0, you can put the store elsewhere.
<Mic92>
grafoo: if you system has usernamespaces enabled you can put nix store everywhere but still use nix without root privileges.
<Mic92>
*your
<LnL>
grafoo: you can use a different prefix, but that requires either mount namespaces with nix run or you have to build everything yourself
<Mic92>
nix run --store ~/my-nix nixpkgs.hello -c hello
<hicksbosom>
I still know how I can install software via the config file... But those firewall options are complete new to me
<hicksbosom>
mmh..
<hicksbosom>
my system is 5# old, yeah
<hicksbosom>
5'
<sphalerite>
:)
<hicksbosom>
Do you have a sample firewall config for desktops with which I could start?
<hicksbosom>
finding firewall.nix in / gives me a file in one of the jasd97ndswa89esd7qj7ejq8zrfndzwq folders. Do I need to update this file?
<sphalerite>
hicksbosom: the default should be fine, it just disallows all non-related incoming traffic
<sphalerite>
no, you put it in /etc/nixos/configuration.nix
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hicksbosom>
shalerite: Why iptables -L shows me then INPUT ACCEPT?
<sphalerite>
firewall.nix is the implementation of the options shown on that search page
<sphalerite>
hicksbosom: that's the chain policy, but the rules below it actually result in most stuff getting dropped
<sphalerite>
hicksbosom: also, iptables -L actually drops quite a bit of the information in the rules. iptables -S doesn't discard anything so I usually prefer it
<hicksbosom>
Uff... I have two INPUT ACCEPT rules when I run iptables -L
<sphalerite>
could you paste the full output of iptables -S somewhere?
<{^_^}>
→ 396b5d9c by Timo Kaufmann: maxima-ecl: Disable more failing tests
<{^_^}>
→ 1f909a8d by @7c6f434c: Merge pull request #39403 from timokau/maxima-exl-testfailures-2
ZoomZoomZoom has quit [Read error: Connection reset by peer]
ZoomZoomZoom has joined #nixos
<hicksbosom>
sphalerite: Unfortunately not. Because the fresh installation has no webbrowser I think... I did iptables-save -> changed INPUT ACCEPT to INPUT DROP and restored the rules. But after the reboot they are still the same.
<hicksbosom>
...wait please :)
<sphalerite>
all that sort of configuration is done via configuration.nix. Did you read the manual?
telent has quit [Ping timeout: 265 seconds]
<hicksbosom>
it starts with "-P INPUT ACCEPT" ... later the nixos rules are loaded.
<sphalerite>
yes, that's normal.
<sphalerite>
But the policy never gets reached.
<sphalerite>
the rules stop it from getting that far.
dan_b has quit [Ping timeout: 265 seconds]
<hicksbosom>
sphalerite: Yes, I have read the manual. A tipp: Add the part where other systems can be added BEFORE the step "reboot".
<hicksbosom>
Is there a draft version of the firewall function of nixos?
astiles has left #nixos [#nixos]
<sphalerite>
I need to go now, sorry. I'm sure someone else here can help you though :)
<hicksbosom>
NinjaTrappeur: I'm nixos novice! I've searched for the file in the root folder. And the only firewall.nix file I have found is in /nix/store/jkafsd798jaf8ash78awd7h687h6.../nixos/nixos/modules/services/networking/firewall.nix
lonokhov has joined #nixos
<hicksbosom>
and /nix/store/jkafsd798jaf8ash78awd7h687h6.../nixos/nixos/tests/firewall.nix
<Lisanna>
hicksbosom why are you looking for that file? are you trying to modify it?
<Lisanna>
hicksbosom generally hunting for stuff in /nix/store is not a useful approach, it's read-only anyways
<NinjaTrappeur>
alright. The files from your nix store (/nix/store/*) are derived from your configuration.nix file, you shouldn't alter them
<hicksbosom>
Lisanna: Because I did iptables -L after the first install and I found some INPUT ACCEPT lines...
<hicksbosom>
and sphalerite told me that the firewall rules are in the file firewall.nix.
<Lisanna>
hicksbosom the firewall rules are generated by firewall.nix
ma27 has joined #nixos
<hicksbosom>
Therefore I have searched for this file to check why I have INPUIT ACCEPT
<hicksbosom>
Strg+f "importing" in the manual gives me not the answer
<Lisanna>
hicksbosom I would also recommend converting some of them to the higher-level options that are exposed, like networking.firewall.allowedTCPPorts
<hicksbosom>
builtins.readFile path Return the contents of the file path as a string.
knupfer has quit [Remote host closed the connection]
<Lisanna>
yep
knupfer has joined #nixos
Lisanna has quit [Remote host closed the connection]
<hicksbosom>
To summarize it: To use my firewall iptables commands I put this file in the folder /etc/nixos
<hicksbosom>
and adding the line networking.firewall.extraCommands = builtins.readFile ./my_firewall_rules; into configuration.nix
<hicksbosom>
?? Is the position important?
hakujin has quit [Ping timeout: 255 seconds]
<NinjaTrappeur>
Exactly, no. I think you should read the nix language manual, at least the "Nix Expression Language" section to grasp an idea about how the nix language works, I fear you'll get really frustrated if you don't.
<NinjaTrappeur>
(note nix manual != nixos manual)
<hicksbosom>
And then I need to load the new configuration with: nixos-rebuild switch or nixos-rebuild test first.
<bgamari>
Sonarpulse, is it just me or is Haskell cross-compilation broken on master?
jtojnar has quit [Quit: jtojnar]
<bgamari>
Sonarpulse, it appears to be linking against host packages when building Setup.hs
<NinjaTrappeur>
hicksbosom, yes this should also help you. I was more thinking about https://nixos.org/nix/manual/#ch-expression-language though. I mean, the whole manual is actually really helpful to get started.
<hicksbosom>
NinjaTrappeur: Starting with the expression syntax is a good idea.
<clever>
bgamari: angerman has been working on ghc cross-compile lately
<NinjaTrappeur>
You can also look to the nix pills
<hicksbosom>
How can I install a webrowser as an ordinary user? In the past I've used chroot or another restricted user but not the main user. I have some packages which I need. But I do not like to add them to the base system. Is there a best practice which you would suggest to new users?
<kisik21>
nix-env -f '<nixpkgs>' -iA firefox
<kisik21>
hicksbosom: best way to install firefox, for example
Tucky has quit [Quit: WeeChat 2.1]
<Lisanna>
hicksbosom put it in environment.systemPackages
<Lisanna>
kisik21's suggestion is for when you're on a non-nixos system
toby1851 has quit [Read error: Connection reset by peer]
<hicksbosom>
kisik21: and user B on my system can install other packages which would not affect user A in some way? That is practical, because I do not like to fill my system with packages
<Lisanna>
hicksbosom oh, misread your thing
<Lisanna>
yeah, the stuff that users do with nix-env don't affect other users
<hicksbosom>
Lisanna: I'm on on a nixos system. nix-env -i firefox as an ordinary user should do the job. I'll try it now ...wait. I need to go to my computer
xcmw has quit [Ping timeout: 264 seconds]
<Lisanna>
and environment.systemPackages is for packages you want available to all users
rauno has joined #nixos
<hicksbosom>
perfect! I'll come back when I'm setting up my realtime audio system with NixOS...
<Lisanna>
:)
<hicksbosom>
If this will work as expected I could write a mini tutorial for this. later...
<hicksbosom>
Buzt someone needs to correct some grammar errors
<hihello>
Anyone know where some docs are on systemd timers and services for nix?
xeji has joined #nixos
xy2_ has joined #nixos
lonokhov has joined #nixos
<hicksbosom>
Wow! Firefox is running as user A and user B does not know this command. Unfortunately I cannot help others as I'm new to nix expression language.
toby has joined #nixos
toby is now known as Guest48772
spear2 has quit [Read error: Connection reset by peer]
astiles has quit [Ping timeout: 276 seconds]
<hicksbosom>
Has someone experience in NixOS realtime audio and probably a helpfull link? In Arch I have used linux-ck or linux-zen
toby1851 has quit [Quit: Konversation terminated!]
toby1851 has joined #nixos
<boxscape>
I'm trying to install the haskell package accelerate-blas, and I'm running into some problems. Is there some way to provide cabal flags to haskell packages? Also, are the packages in the unstable channel behind the versions in hackage?
toby1851 has quit [Client Quit]
<drakonis>
file packages under category attributes, yay or nay
astiles has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @srhb pushed commit from Sarah Brofeldt to release-18.03 « Revert "nixos/tests/keymap: improve keymap tests" »: https://git.io/vpZuG
astiles has joined #nixos
<angerman>
bgamari, clever: can’t say anything about HEAD right now. It used to work with the snapshot a few weeks ago. Been trying to integrate that with Cardano since then and ended up rebuilding the cabal expressions in nix :-(
hihello has quit [Ping timeout: 260 seconds]
<drakonis>
file all language specific packages under an attribute
obadz- has joined #nixos
<angerman>
Now I still need to lift Cardano into some 8.4 package set, so I can actually use the cross compilation logic I have.
aarvar has joined #nixos
<drakonis>
fine grained attributes
<angerman>
On the upside I now have nix expressions for cabal files that are parametric over is/arch/flags
obadz has quit [Ping timeout: 265 seconds]
obadz- is now known as obadz
<drakonis>
def thinking there's a market for organizing the nixpkgs tree
<bgamari>
angerman, alright, I guess some bisection will be needed
<bgamari>
I'm also seeing strange failures building autoconf 2.64 (failing to find m4)
<angerman>
Ohh the m4 dependency...
<angerman>
That rings a bell.
<angerman>
bgamari: go find the hello-nix repo on input-output-hk, and check the build-more branch.
asuryawanshi has joined #nixos
humanoyd has quit [Ping timeout: 255 seconds]
<angerman>
bgamari: on mobile, don’t have the full link handy :-(
<bgamari>
angerman, sure
<angerman>
The m4 dependency was in fact missing somewhere. And I remember at least someone else sumbled over it.
<boxscape>
what's the difference between nix-build and nix build?
<angerman>
boxscape: nix build is he new (prettier) Interface.
<boxscape>
I see
<angerman>
boxscape: also: arguments are not identical.
asuryawanshi has quit [Remote host closed the connection]
<boxscape>
ok
fendor has quit [Ping timeout: 255 seconds]
<boxscape>
is there somewhere I can read up on this new version?
<Sonarpulse>
I never had a general solution to put those overrides in
<Sonarpulse>
would need to do a bunch of stuff with cabal2nix
<Sonarpulse>
bgamari: seen angerman
<hicksbosom>
Ups. I added another channel as root and updated it. after this I am unable to install software as an ordinary user with nix-emv -i SOFTWARE. Reverting back to nixos channel the error is still present:
<Sonarpulse>
bgamari: seen angerman's thing?
<Lisanna>
what are best practices for dealing with structured data in nix? The type system in lib seems a little lackluster
<Sonarpulse>
for per-component builds
<Sonarpulse>
it might help
<Lisanna>
and the nixos type system seems heavily intertwined with nixos
<boxscape>
hm, when nix build says "1/2/4 built", what does that mean? I understand two numbers like "1/2 built", but three are confusing.
ryantrinkle has quit [Ping timeout: 264 seconds]
<bgamari>
1 is currently building, 2 have been built, 4 will be built in total
<boxscape>
ahh, okay
<phry>
does someone know if there's a (political) reason that there is no derivation for the courier mta or has just noone felt the need for it?
* phry
is currently at the point of either reading the dovecot documentation or writing a derivation for courier
* bgamari
just uses dovecot
Arcaelyx_ is now known as Arcaelyx
nur0n0 has joined #nixos
rauno has quit [Ping timeout: 260 seconds]
lopsided98 has joined #nixos
<Myrl-saki>
clever: Ping
<clever>
Myrl-saki: pong
<Myrl-saki>
clever: I want to build `armv7l-linux` stuff directly from my x86_64, any idea?
<Myrl-saki>
I get a error: a 'armv7l-linux' is required to build '/nix/store/vpl6gfsq8q6rvb5c1983vi65b67bs51q-bootstrap-tools.drv', but I am a 'x86_64-linux'
<Myrl-saki>
clever: Do builds depend on the Nix version?
<clever>
no
<Myrl-saki>
Rather, is the Nix version an input?
<Myrl-saki>
Oh okay.
maurer has joined #nixos
jrolfs_ has quit [Ping timeout: 248 seconds]
<maurer>
Anyone know a way to tell zotero about pdftotext etc.? I have them installed in my local environment, but the wiki only has a solution for the (now defunct) firefox plugin, and they don't seem to be detected
<boomshroom>
Nice. My Sims4Free VM still works! :D
<angerman>
Sonarpulse: im also Planung to get rid of Simple Setup.hs recompilations and jailbreak-cabal.
<Sonarpulse>
angerman: cool will do!
<Sonarpulse>
and yeah that sounds like a very good idea
<Sonarpulse>
as far as I'm concerned, the sooner your stuff becomes official the better :)
<angerman>
Sonarpulse: the nix expressions also expose the components.
<Sonarpulse>
yeah that might be my favorite part :)
<Sonarpulse>
then just need to use plan.json to derive versions and use it with your thing
<Sonarpulse>
(along with teaching cabal about cross for setup-depends)
<angerman>
The haskell.nix/compat/driver.nix then turn them into expressions that look almost identical to those that cabal2nix produces and he generic builder understands.
<angerman>
Sonarpulse: yea Plan2Nix is planned :-)
<Sonarpulse>
:D
<angerman>
Sonarpulse: Stack2Nix is pretty similar. And just a couple of lines :)
<Sonarpulse>
\o/
<clever>
angerman: something else that could help with incremental builds, seperate each library, executable, test, and benchmark into its own derivation
<drakonis>
plan2nix?
<Sonarpulse>
angerman: and later generic-builder can change because everything is per-component anyyways
<Sonarpulse>
elvishjerricco: you should talk to angerman about this
<Sonarpulse>
for the summer of haskell thing
<Sonarpulse>
if that is on
<drakonis>
gsoc you mean
<drakonis>
what's a plan2nix
<angerman>
clever: right. But that might need changes to the generic-builder...; I didn’t really want to go that deep yet.
<angerman>
clever: and you might just want to take the current expressions as input for those instead of trying to press them into the generic builder.
<elvishjerricco>
Sonarpulse: We already talked a bit about it :) Looking forward to it
<angerman>
clever: this is already a much larger detour than what I’m comfortable with... towards the cross compilation goal :-(
<Sonarpulse>
angerman: I mean we can hack the current stuff for setup.hs dependencies all right
<Sonarpulse>
I view this as more the working towards the per-component thing we should have done all along
<angerman>
Sonarpulse: my primary issue was that cabal files often have if os(windows),...
drakonis has quit [Remote host closed the connection]
<robstr>
Hey, I'm playing with nixops and virtualbox & aws deployment. I recently run into an issue on aws with postgresql service, `createdb: could not connect to database template1: FATAL: role "root" does not exist` while same stuff deployed to virtualbox works out of the box ... this shouldn't be the case right ? :P
<clever>
robstr: you changed the stateVersion
<clever>
robstr: if you dont care about the db, you can wipe the postgresql state and it will fix itself
<robstr>
clever: hm, is this because the aws ami is different to the one on the vm ?
<clever>
robstr: its more that postgresql works fine if the first time it booted is on the currentl nixos version
shabius_ has quit [Quit: Leaving]
<clever>
but if your upgrading postgresql to a new version, it doesnt like the old state
<clever>
so, it needs to know the version of the state, which is defined in the stateVersion
<neonfuz>
so I'd rather not recompile my entire kernel every time an update comes around because I want to change a few options
<neonfuz>
so I'd like to build a package for the 2 modules I need to change options for
<neonfuz>
is there any way I can reference / access the current kernel source in a nix package?
astiles has quit [Remote host closed the connection]
<robstr>
clever: I see, what is my best possebility, fixing to a specific version ? I mean they should be _exactly the same_
<clever>
robstr: the problem is more that you previously ran an older version on the aws machine
astiles has joined #nixos
<clever>
state cant always be updated
astiles has quit [Read error: Connection reset by peer]
astiles has joined #nixos
<clever>
robstr: does stateVersion exist anywhere in your config?
jrolfs has joined #nixos
<robstr>
clever: yea but i used nixops to deploy entire new machine maybe i did not unterstand you 100% :P
<maurer>
it's just a data file, not an API, but you should be able to answer any question you want from it
<{^_^}>
[nixpkgs] @Ma27 opened pull request #39416 → .version: don't read from `.version` and deduplicate `.version-suffix` references → https://git.io/vpZ6K
<szicari>
maurer: Thank you, I’ll take a look!
<angerman>
Sonarpulse: I also wanted more argument hygine. `cabal2nix` does a lot of library mapping in the `cabal2nix` executable. I prefer to have the mapping in nix.
<Sonarpulse>
angerman: yeah I never understood that
<Sonarpulse>
especially since that some of the mapping is still done in nix
<clever>
robstr: cant see any obvious problems with that code
<clever>
robstr: are you able to destroy and re-deploy the aws machine?
<Sonarpulse>
s/still/already/
<szicari>
maurer: Looks like this will work, at least for a first pass.
<szicari>
packages.json.gz - thanks very much!
<angerman>
Sonarpulse: well if you want to take my expressions for a test-drive and report back, I'd be glad to know :-)
<angerman>
Sonarpulse: of course any *suggestions* for improvement would be most welcome as well :-)
<Sonarpulse>
angerman: yeah at the moment I'm sort of busy but I definitely want to give it a spin
<Sonarpulse>
this is exactly the sort of thing I've wanted to see for a long time :)
<robstr>
clever: yea but this will took a few hr's :P but i logged in with `nixops ssh..` and checked the systemd - createdb fails....
<Sonarpulse>
I wish I could dive 100% of time into it right now :)
<Myrl-saki>
clever: How do I nix-env an expression? -E gives me error: attempt to call something which is not a function but a set, at undefined position
orivej has joined #nixos
<clever>
Myrl-saki: nix-env -E '{ ... }: ... '
<clever>
it expects it to take arguments, just ignore em
<mbrgm>
i.e. I'd only like to generate the zone file from my nixops configuration (multiple machines, target ips etc.), but have an auto-incrementing serial each time the zone file is changed?
<bgamari>
Sonarpulse, a small batch of fixes from my branch
<clever>
Myrl-saki: i think most systems get away from that state, by using a "serial number" of 20180424
<clever>
mbrgm: oops, wrong m name, ^^^
<clever>
and throw in time as well to allow several updates per day
<Sonarpulse>
bgamari: got a meeting now
<Sonarpulse>
will look after
<mbrgm>
clever: unfortunately this only allows YYYYMMDDnn
<bgamari>
cool
<mbrgm>
throwing in second-time would be sufficient, but this way, updates won't propagate to slave servers using axfr
<Myrl-saki>
clever: What if I don't have binfmt. Lmao
<Myrl-saki>
clever: I mean
<Myrl-saki>
Yeah, the best way is really binfmt.
<clever>
does /dev/kvm exist?
<clever>
and do you have permissions to open it
hotfuzz_ has quit [Ping timeout: 268 seconds]
<Myrl-saki>
clever: I'm fully user, I'm pretty sure the sysadmin would be fine with giving me root, but let's assume they can't.
<serentty[m]>
Never mind. I figured it out. It seems that trying to install packages yourself through nix-env isn't as good as just modifying your system configuration to indicate what you need.
<clever>
Myrl-saki: ls -l /dev/kvm
<zybell_>
mbrgm man date to the rescue date +%C%j gives only 5 digits for day res. luckily we are early in the cetury.
<angerman>
Sonarpulse: I was stuck with cabal-jailbreak with Cabal <2, and Cabal files requireing Cabal >2.
<bgamari>
Sonarpulse, yeah, I think it would be best to keep this in another PR
dhess has joined #nixos
<Sonarpulse>
bgamari: ok
jrolfs has quit [Quit: WeeChat 2.0]
<dhess>
One thing I find myself doing quite a bit in NixOS is writing a "wrapper" service around a NixOS service whose sole purpose is to add an "after =" and "requiredBy =" dependency to the original service. This might be, for example, waiting for a secret to be deployed before attempting to start the service.
<dhess>
I do this so often that I feel I must be missing something that makes this easier. Am I?
<tilpner>
dhess - Can't you just set the values on the original service?
<Sonarpulse>
angerman: neat
<Sonarpulse>
still reading
<dhess>
tilpner: In my machine config, you mean?
<tilpner>
In the same place you'd add the wrapper configs
MichaelRaskin has joined #nixos
<dhess>
OK so that saves me the step of defining a new systemd.service but other than that I don't see how it helps much. I still need to write new config just for this purpose.
<dhess>
What I was thinking is it would be nice if every service by default had hooks to add dependencies to the various systemd.service attributes
sanscoeu_ has joined #nixos
<tilpner>
There wouldn't be a difference in lines-of-code between setting systemd.services.foo.requiredBy and services.foo.extraRequiredBys
<dhess>
tilpner: what if foo.requiredBy is already set in the module definition?
<tilpner>
They would get merged
<dhess>
ohhhh
<dhess>
I didn't realize that
<dhess>
I guess that's the bit I was missing :)
<tilpner>
That's what usually happens. I didn't check this option specifically
<{^_^}>
[nixpkgs] @fdietze opened pull request #39431 → nixos manual: Fix typo in Syntax Summary → https://git.io/vpZ97
<dhess>
I didn't know that nested attributes would get merged
<Sonarpulse>
Dezgeg: you too, but I know to add a -1 if you don't vote
<Dezgeg>
since when we have this sort of voting process?
bennofs has quit [Quit: WeeChat 2.0]
ryanartecona has joined #nixos
Fare has joined #nixos
<Dezgeg>
not a bad idea, but probably should be something more formal than some github comment
xeji has quit [Quit: WeeChat 2.0]
ryanartecona has quit [Client Quit]
<Dezgeg>
also is our policy really that many-year-old APIs can just be renamed?
ryanartecona has joined #nixos
ryanartecona has quit [Client Quit]
<Dezgeg>
on the basis of "I don't like this"
<Myrl-saki>
Ugh, I need help with bash-fu.
ryanartecona has joined #nixos
ryanartecona has quit [Client Quit]
<Myrl-saki>
I need something like --init-file or --rc-file, but is guaranteed to execute.
<nur0n0>
Myrl-saki: why not just `source`?
<Meptl>
How would I install urxvt-font-size? I can see the plugin at nixpkgs/pkgs/applications/misc/rxvt_unicode-plugins. I've installed rxvt_unicode-with-plugins but I'm not seeing the font-size script in the perl libs.
ryanartecona has joined #nixos
<manveru>
Myrl-saki: system-wide?
ryanartecona has quit [Client Quit]
<Myrl-saki>
nur0n0: manveru: Basically, I want to make a bash-wrapper which sets up the environment for Nix. It works if it's interactive, as it calls the rc file. If it's non-interactive, such as reading from stdin, then --rc-file is not called.
ryanartecona has joined #nixos
<manveru>
but you can pass --login ?
ryanartecona has quit [Client Quit]
<Myrl-saki>
manveru: Yes, but I don't want to change my .profile.
<manveru>
hm
<manveru>
you can set BASH_ENV i think
<bgamari>
hmm, error: Package ‘nss-mdns-0.10’ in /home/ben/block-eng/nixpkgs/pkgs/tools/networking/nss-mdns/default.nix:24 is not supported on ‘armv7l-unknown-linux-gnueabihf’, refusing to evaluate.
<Myrl-saki>
When bash is started non-interactively, to run a shell script, for example, it looks for the variable BASH_ENV in the environment, expands its value if it appears there, and uses
<Myrl-saki>
the expanded value as the name of a file to read and execute. Bash behaves as if the following command were executed:
<Myrl-saki>
if [ -n "$BASH_ENV" ]; then . "$BASH_ENV"; fi
<bgamari>
Sonarpulse, what is platforms.gnu supposed to include?
ryanartecona has joined #nixos
<bgamari>
Sonarpulse, does this mean glibc?
<Sonarpulse>
bgamari: oh that's a shit show i dunno
<Myrl-saki>
manveru: I'm having a hard time wrapping my heard around that.
<Sonarpulse>
probably
<nur0n0>
Myrl-saki: I don't see the problem with `source` if its a single file reading a single configuration?
ryanartecona has quit [Client Quit]
<Sonarpulse>
bgamari: there is a comment saying this is weird?
<manveru>
Myrl-saki: well, you could say BASH_ENV=~/.myprofile
vaninwagen has joined #nixos
<Sonarpulse>
bgamari: i learned that the 4-component thing might have been a GNUism for GNU/linux
<Sonarpulse>
but then was depoliticized for LLVM
<Sonarpulse>
kernel-os became kernel-abi
ryanartecona has joined #nixos
<bgamari>
hmm
ryanartecona has quit [Client Quit]
<elvishjerricco>
Sonarpulse: Good news. Updating wasm-cross to a new upstream nixpkgs proved very easy!
<Myrl-saki>
cat: /dev/fd/63: No such file or directory
<Sonarpulse>
which ~ what FSF would consider GNU/*
<Sonarpulse>
something like that at least
<Myrl-saki>
manveru: Should I consider using a temporary file instead?
telent has joined #nixos
<elvishjerricco>
Sonarpulse: The main thing is that wasm-cross wants to statically link everything and uses a custom musl source.
dan_b has joined #nixos
<manveru>
Myrl-saki: yeah, <() won't persist long enough
ryanartecona has joined #nixos
<Sonarpulse>
elvishjerricco: there is a stdenv adapter for static linking
ryanartecona has quit [Client Quit]
astiles has joined #nixos
<Sonarpulse>
that might need some love but no mattter
<Sonarpulse>
and swapping musl source is easy
<Sonarpulse>
elvishjerricco: I'm steering you in this direction because it will make further rebase easier (many people want statically linked haskell binaries regardless)
<Sonarpulse>
and also should recruiting people to help easier
<Sonarpulse>
I'll be doing those GHC PRs like I mentioned
<Sonarpulse>
which should help ghc + musl on master too
ryanartecona has joined #nixos
ryanartecona has quit [Client Quit]
<elvishjerricco>
Sonarpulse: I'll take a look next time i make time for infra upgrades
<disasm>
does anyone have youcompleteme working with neovim on nixos? I straced it and it's failing with "no module named site" but it looks like it's looking in python 3.6 for a bunch of stuff even though it's being launched with python 2.7
<Sonarpulse>
elvishjerricco: sounds good :)
<Myrl-saki>
manveru: Thanks!
astiles has quit [Remote host closed the connection]
<clever>
in the example i linked, it prevents the ssh key on root, from actualy giving a root shell
<clever>
it can only ever be a build slave
<Myrl-saki>
clever: I actually thought of the same thing on the SSH configuration file, because my default shell is `sh`, and I'm too lazy to ask the sysadmin to change it.
<clever>
Myrl-saki: what about chsh?
<Myrl-saki>
clever: Don't have a pass for my account.
<clever>
-rws--x--x 1 root root 52175 Nov 3 2013 /usr/bin/chsh
<clever>
ahh
<{^_^}>
[nixpkgs] @jtojnar pushed to master « rhythmbox: fix build with GStreamer 1.14 »: https://git.io/vpZdH
<Myrl-saki>
clever: I'd ask the person, but then... too lazy. :x
<clever>
lol
<Myrl-saki>
besides, it's no fun to do the easy route.
<elvishjerricco>
Myrl-saki: A lot of OS's default .profile scripts exit at the top in some circumstances. I often have to move the nix sourcing in .profile to the top of the file
<Myrl-saki>
clever: I do have some ideas for this though.
<clever>
Myrl-saki: it will ignore whatever ssh asked it to run, so you need to force the command to be a wrapper script that runs nix-store --serve --write
<Myrl-saki>
clever: I could have a key to login to raw Debian, or I could have a key that logs in to the nix environment.
<{^_^}>
[nixpkgs] @LnL7 opened pull request #39436 → vim_configurable: replace default ftNix patch with sources from vim-nix → https://git.io/vpZAf
<clever>
Myrl-saki: yep
<clever>
Myrl-saki: and if you run `env` from .profile, you may find the original command in an env var
<Myrl-saki>
clever: `But you can use a wrapper script. The called command gets the original command line as environment variable $SSH_ORIGINAL_COMMAND, which it can evaluate.`
acarrico has joined #nixos
ryanarte_ has joined #nixos
<clever>
thats what i was just guessing! lol
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
humanoyd has quit [Quit: WeeChat 2.1]
<Myrl-saki>
clever: Uhh
<Myrl-saki>
shit
<Myrl-saki>
I should really have checked if $SSH_ORIGINAL_COMMAND exists.
<clever>
<enter>~. will cause ssh to forcibly hang-up
<Myrl-saki>
clever: Not that.
<Myrl-saki>
clever: I can't ssh to it.
<clever>
oh
ryanartecona has quit [Ping timeout: 264 seconds]
<clever>
oops
<Myrl-saki>
Lmao
<clever>
do you have a 2nd pubkey?
<Myrl-saki>
clever: I also changed it for the 2nd pubkey...
<Myrl-saki>
/tmp/tmp.rovfTMOlHe: line 2: .nix-profile/etc/profile.d/nix.sh: No such file or directory
<Myrl-saki>
Getting somewheree
<Myrl-saki>
clever: Okay, I got nix-store available.
<Myrl-saki>
clever: I'm thinking I could write a bash script and upload it using nix-store, which I can then run using bash, to get me bash.
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]
jrolfs_ has joined #nixos
<clever>
Myrl-saki: also of note, the nix api basically lets you write to any path in /nix/store that does not currently exist
<clever>
if you are a trusted user (which you are in single-user), you dont even need the output to match up with the hash of the storepath
<Myrl-saki>
Oh okay.
Arcaelyx_ has joined #nixos
<clever>
but its simpler to just do pkgs.writeScriptBin, nix-build it, and nix-copy-closure
<ZaraChimera>
ran nixos-rebuild switch --upgrade using channel nixos-18.03, and now I have issues getting into kde5 de. i just get a black screen with ephoto running. if i use mate desktop it generally works but trying to install any application with nix-env -i results in an error saying not enough memory.
szicari has quit [Quit: szicari]
<bgamari>
Sonarpulse, what is the error?
<bgamari>
Sonarpulse, I just tried building master and it seems to be fine
<Myrl-saki>
clever: `command` is way better. Didn't even have to do the nix-store wrapper hack.
<Sonarpulse>
bgamari: oh huh
vaninwagen has quit [Ping timeout: 248 seconds]
<Myrl-saki>
clever: I love speaking too soon
<Sonarpulse>
bgamari: oh i hope I didn't reload in repl or something stupid like that
<Sonarpulse>
*forget to reload
<Myrl-saki>
clever: I can do ssh -i .ssh/packet_nix_rsa myrl@c.zv.io nix-store --help
<Myrl-saki>
terminate called after throwing an instance of 'nix::SysError'
<clever>
if your using single-user nix, then you dont need any daemon at play
<Myrl-saki>
That's form the nix-daemon side.
<clever>
any nix process that has write access to the store will just do the right thing
<clever>
as long as its running the patched version
sanscoeur has quit [Remote host closed the connection]
<Myrl-saki>
Okay.
<{^_^}>
[nixpkgs] @dtzWill opened pull request #39442 → glibc: use local copy of patch to fix w/musl → https://git.io/vpneh
iqubic has joined #nixos
sanscoeur has joined #nixos
<iqubic>
Thank you all for helping me get Coq installed earlier today.
iitalics has joined #nixos
<iqubic>
I just kept runing into error after error.
<iitalics>
hi, where can i find more comprehensive documentation on configuration.nix ?
<iitalics>
the manual keeps mentioning available options but i'd really like to see a list of what is available
<Myrl-saki>
clever: I still get error: a 'armv7l-linux' is required to build '/nix/store/vpl6gfsq8q6rvb5c1983vi65b67bs51q-bootstrap-tools.drv', but I am a 'x86_64-linux'
<clever>
ALL nix tools are fully capable of operating without a daemon, if they have write access to everything in /nix/
astiles has joined #nixos
<Myrl-saki>
I think I should dig through the nix-copy-closure source
<clever>
the only thing a daemon does, is police the rules when root owns /nix
xy2_ has quit [Ping timeout: 255 seconds]
orivej_ has joined #nixos
orivej has quit [Ping timeout: 264 seconds]
<Unode>
Hi all, is there any situation, other than triggering a full garbage collection cycle, in which a package can get removed from the nix store?
<clever>
Unode: nix-store --delete /nix/store/foo
<clever>
and dont use --force
<Myrl-saki>
clever: Did the i386 qemu hack improve ./configure performance for you?
<Unode>
clever: no, I don't want to remove, I want to know if there's any case where a package might disappear from the store without explicit requesting it.
<clever>
Myrl-saki: havent tested it yet
<Myrl-saki>
clever: Ah. :P
<clever>
Unode: ah, no, only a run of --delete or nix-collect-garbage can remove it
<Unode>
clever: motivation for this question is that I have a folder with symlinks to the store of specific packages/versions. And once every blue moon a package vanishes and I notice a broken symlink.
<clever>
Unode: if you create the symlinks using nix, then nix will know they are in use, and cant ever GC them
<Unode>
I haven't been able to figure out what triggers this, but I always assumed nothing is removed from the store unless requested.
astiles has quit [Remote host closed the connection]
<clever>
the simplest example would be: nix-build '<nixpkgs>' -A hello -o ~/roots/hello
jtojnar has joined #nixos
<clever>
~/roots/hello now points to the hello derivation, and nix will refuse to delete it
<{^_^}>
→ c3ab285c by @dtzWill: glibc: use local copy of patch to fix w/musl
<{^_^}>
→ dfcae929 by @dtzWill: Merge pull request #39442 from dtzWill/fix/glibc-no-fetchpatch
jtojnar_ has quit [Ping timeout: 248 seconds]
<clever>
Myrl-saki: if you do `Host foobar` in ~/.ssh/config, then all lines following it will only apply to `ssh foobar`
<clever>
Myrl-saki: and if you do `Hostname baz` after that, then `ssh foobar` will actually connect you to baz!
<clever>
so you could have 3 different names for the same host, that trigger different configs
<Unode>
clever: I have a "no-GC" policy but not strictly enforced. Other than some user triggering a GC without my knowledge I can only assume internal reasons of which (as I understand) there should be none
c0ffee152 has joined #nixos
<clever>
Unode: what about a user that ran nix-store --delete --force?
<{^_^}>
→ 7139c65c by @dtzWill: Merge pull request #39441 from dtzWill/fix/libgl-tls-musl
<Unode>
clever: the only additional thing I have is: http://dpaste.com/3D3A5SE . Can you see any of this being harmful in terms of the possibility of triggering a GC?
astiles has joined #nixos
<clever>
Unode: nope
<{^_^}>
[nix] @bgamari opened pull request #2106 → nix: Add support for --keep-going and --keep-failed → https://git.io/vpnfp
<Unode>
clever: I can only think of one user that might be able to do that but cannot imagine a reason why he would force delete something.
<clever>
i once used force when trying to get rid of something
astiles has quit [Remote host closed the connection]
<clever>
it deleted the target of /run/current-system, lol
xcmw has quit [Ping timeout: 260 seconds]
<Unode>
anyway... thanks for the guidance. I've now set a cronjob in place that will notify when those symlinks break. Hopefully next time it happens I'll be able to know what happened.
astiles has joined #nixos
<clever>
Unode: you could also `grep delete ~/.bash_history`
<Unode>
clever: this is a non-nixos, /share/nix setup running on top of NFS. So I wonder if something else is pushing things out of the filesystem...
<{^_^}>
[nixpkgs] @dtzWill closed pull request #39445 → tcp_wrappers: minor fixes, patch to fix includes, fix w/musl → https://git.io/vpnfR
<{^_^}>
[nixpkgs] @oxij opened pull request #39447 → nixos: warn on missing `stateVersion` → https://git.io/vpnJt
<Unode>
perhaps I need to poke IT about any kind of automatic disk checking on the shares... running out of ideas
<clever>
Unode: if its on nfs, then the symlinks nix-build is creating may not be visible on another machine
<clever>
and then a regular old nix-collect-garbage wont see them, so your files go bye bye
<Unode>
clever: true, which is why I never use nix-collect-garbage
<Unode>
lots of stuff breaks if I do
alexteves has quit [Ping timeout: 255 seconds]
<Unode>
but the ocasional package vanishing is puzzling.
sigmundv__ has joined #nixos
sie has joined #nixos
<Myrl-saki>
clever: Anecdotal, my perl built finished in around 30 mins on binfmt qemu. :P
<Unode>
oh well... thanks again for the help. This is a too non-standard... Just wanted to rule out 'nix' fault. If user, system or hardware I'll need other means to track it.
<freeman42x]NixOS>
when running nix-shell -A env inside a Miso example I am gettinga broken ghcjs-0.2.0 package error. any suggestions on how to fix this?
<clever>
Unode: id recomend each machine have its own /nix/store, and then use a binary cache to share things
astiles has quit [Ping timeout: 264 seconds]
<Unode>
clever: too many machines and not enough root access :)
<Unode>
clever: can't even run from /nix or else things would be much smoother.
<clever>
ah :(
kerrhau has quit [Remote host closed the connection]
jaja is now known as kerrhau
<clever>
freeman42x]NixOS: *begins the summoning ritual* ....
<dmj`>
freeman42x]NixOS: hey
<freeman42x]NixOS>
clever, dmj` who summoned me?
<clever>
freeman42x]NixOS: i summoned dmj, the author of miso :P
<dmj`>
freeman42x]NixOS: can you try `nix-shell -A miso-ghcjs.env`
<dmj`>
freeman42x]NixOS: is this phil freeman?
<freeman42x]NixOS>
oh, cool :) hi there
<dmj`>
“A while dmj has appeared”, “dmj uses nix-shell”, “It’s super effective!"
<dmj`>
s/while/wild* lol
ryantrinkle has quit [Ping timeout: 276 seconds]
<freeman42x]NixOS>
nix-shell -A miso-ghcjs.env <CR> error: attribute 'miso-ghcjs' in selection path 'miso-ghcjs.env' not found
<srid>
reflex-platform has stable versions of packages on ghcjs. FWIW.
jrolfs_ has quit [Ping timeout: 248 seconds]
<iitalics>
sigh
<iitalics>
that should really be documented ...
astiles has joined #nixos
<srid>
freeman42x]NixOS: I add reflex-platform as a submodule, and then override whatever package versions I need (and this set can theoritically include miso). See https://github.com/srid/motif/blob/master/default.nix
<srid>
Note: the part `(import ./reflex-platform {}).project` is a Nix abstraction to use Reflex, which will need substituting for something builds a Miso app instead.
<dmj`>
srid: I’ve never used reflex-platform. Vanilla nixpkgs works perfect, miso works well on any ghcjs afaik, and is quite performant.
<srid>
It'd be nice if miso apps' default.nix can import miso's <app.nix> (or similar) directly, and miso's <app.nix> takes care of using the correct nixpkgs.
<dmj`>
srid: you can override pkgs, nix-build —arg pkgs <app.nix>
<dmj`>
srid: what would be the benefit of using reflex-platform?
<Guest57550>
Okay, so I'm trying the latest graphical ISO... I think I found a bug in libinput, possibly
<srid>
For ghcjs mainly, but if a pinned nixpkgs already gets you that, that should be sufficient. I do recommend a Nix based abstraction like 'project'[1] for though; I use it to build, develop and deploy isomorphic haskell apps.
<Guest57550>
If I suspend and resume the laptop, the trackpad goes haywire. I'd like to confirm it works in the liveusb environment... is there a /etc/nixos/configuration.nix I can edit and restart the display-manager?
<Guest57550>
confirm it works _with synaptics_, I mean
<dmj`>
srid: you’re using miso to build isomorphic apps?
<freeman42x]NixOS>
dmj`, could you tell me what changes I would need to make to this project https://github.com/FPtje/miso-isomorphic-example for it to work? I can't follow the instructions above
jrolfs_ has joined #nixos
<srid>
dmj`: No, I work on reflex these days (I was playing with Miso in between purescript and reflex).
hakujin has joined #nixos
<dmj`>
srid: should've stuck with it ;)
<dmj`>
freeman42x]NixOS: what happens when you call nix-build
<freeman42x]NixOS>
dmj`, building it via the instructions works, what does not work is: nix-shell -A env <cr> error: attribute 'env' in selection path 'env' not found
<dmj`>
freeman42x]NixOS: nix-shell -A client.env
<freeman42x]NixOS>
dmj`, error: attribute 'client' in selection path 'client.env' not found
<{^_^}>
[nixpkgs] @veprbl opened pull request #39452 → fio: 3.5 -> 3.6, enable on darwin → https://git.io/vpnkG
sanscoeur has quit [Remote host closed the connection]
<freeman42x]NixOS>
dmj`, that package did not have a shell.nix so I generated one via nix-shell -- nix . > shell.nix
<{^_^}>
[nixpkgs] @bgamari opened pull request #39453 → git: Set PERL_PATH when building manual → https://git.io/vpnkR
knupfer has quit [Ping timeout: 255 seconds]
<freeman42x]NixOS>
and then set compiler to be pkgs.haskell.packages.ghc802
<bgamari>
How does one remove things from boot.initrd.availableKernelModules?
<dmj`>
freeman42x]NixOS: I’d join our slack, FPtje can help you with the isomorphic example, but Haskell-miso.org ’s source also is a good example, and has a nixops script to deploy to digital ocean
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @timokau to master « pythonPackages.entrypoints: Fix buildInputs (#39449) »: https://git.io/vpnL6
joelpet has quit [Ping timeout: 260 seconds]
thc202 has quit [Ping timeout: 240 seconds]
<freeman42x]NixOS>
dmj`, cause we were getting all the errors about -A env
<freeman42x]NixOS>
srid, what does that mean? you can use GHCID window as GHCI repl also?
<dmj`>
freeman42x]NixOS: nix-shell -A env in sample-app works fine
<freeman42x]NixOS>
dmj`, I mentioned above > when running nix-shell -A env unser sample-app: error: attribute 'env' in selection path 'env' not found
<dmj`>
freeman42x]NixOS: I can’t reproduce your error, ensure you have a fresh copy of miso
<freeman42x]NixOS>
for me nix-shell -A end never worked, in any of the projects
astiles has quit [Remote host closed the connection]
<srid>
freeman42x]NixOS: ghcid runs ghci; and recompiles the modules as files chang.e you can give it a `-T <expr>` argument, which would run `<expr>` (in ghci) after each successful recompile. This expressions starts the backend server (for reflex, I use separate ghcid for frontend server).
raynold has joined #nixos
Fare has quit [Ping timeout: 255 seconds]
astiles has joined #nixos
orivej has joined #nixos
erasmas has quit [Quit: leaving]
ryanartecona has quit [Quit: ryanartecona]
jrolfs_ has quit [Ping timeout: 268 seconds]
jrolfs_ has joined #nixos
Sonarpulse has quit [Ping timeout: 264 seconds]
<dmj`>
freeman42x]NixOS: that doesn’t make sense to me
<dmj`>
It should
xAFFE has joined #nixos
astiles has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 240 seconds]
astiles has joined #nixos
<freeman42x]NixOS>
dmj`, I joined the miso Slack, trying to figuer out what I could have gottend wrong version of
<dmj`>
freeman42x]NixOS: if you do git status is it clean
jrolfs_ has quit [Ping timeout: 256 seconds]
<freeman42x]NixOS>
yup, it is clean
<dmj`>
freeman42x]NixOS: works for me on both darwin and nixos
<freeman42x]NixOS>
dmj`, do you have installed both GHCJS and Miso via Nixpkgs?
<dmj`>
freeman42x]NixOS: yes, miso uses a pinned version of nixpkgs
telent has quit [Ping timeout: 256 seconds]
dan_b has quit [Ping timeout: 265 seconds]
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<freeman42x]NixOS>
dmj`, which version of GHCJS are you on? for me only ghcjsHEAD built correctly
<dmj`>
freeman42x]NixOS: sample app uses ghcjs
<freeman42x]NixOS>
the others were either failing later or were broken
<dmj`>
freeman42x]NixOS: nothing is broken since the version of nixpkgs miso uses is pinned to a working version
<freeman42x]NixOS>
I see, so as you said the issue with the sample-app, etc. is that they are not pinned?