gchristensen changed the topic of #nixos to: NixOS 18.03 and Nix 2.0 are released! || Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat
<Dezgeg> RootDirectory probably means chroot()
telent has quit [Ping timeout: 268 seconds]
dan_b has quit [Ping timeout: 268 seconds]
dan_b has joined #nixos
telent has joined #nixos
jackdk has joined #nixos
dan_b has quit [Ping timeout: 264 seconds]
telent has quit [Ping timeout: 264 seconds]
Neo-- has quit [Ping timeout: 255 seconds]
<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
TrentP has quit [Quit: ZNC - http://znc.in]
TrentP has joined #nixos
<Dezgeg> I mean 'Operation not permitted' is quite expected if RootDirectory is used in user units given that chroot() needs root permissions
<srid> sorry, meant to write that to zybell_
aarvar has quit [Ping timeout: 248 seconds]
<zybell_> your naming:-)
jrolfs_ has quit [Ping timeout: 248 seconds]
sir_guy_carleton has quit [Remote host closed the connection]
jrolfs_ has joined #nixos
jperras has joined #nixos
Fare has quit [Ping timeout: 264 seconds]
daveo has joined #nixos
jrolfs_ has quit [Ping timeout: 256 seconds]
jrolfs_ has joined #nixos
pjan has quit [Remote host closed the connection]
kreisys has quit [Read error: Connection reset by peer]
jrolfs_ has quit [Client Quit]
jrolfs has joined #nixos
mightybyte has joined #nixos
Judson1 has quit [Ping timeout: 264 seconds]
<srid> grr, it is systemd that is using files from an older derivation. grrrrr
<zybell_> it runs as root
<zybell_> what did you expect
<mightybyte> Where does nix.conf go if you install nix on a linux machine as a non-root user?
<zybell_> parallel to a running linux?
<Myrl-saki> clever: The higher performance of an actual CPU is 100% offset by the fact that there's not enough memory to work with.
<mightybyte> Yeah
<zybell_> How do you do `mkdir /nix`?
<Myrl-saki> clever: At some point, I just do single core builds on my RasPi and just trust on my laptop and desktop.
<zybell_> as non-root?
<mightybyte> zybell_: To be honest I'm not quite sure. Maybe the script did sudo?
<mightybyte> All I know is now I have a /nix directory. The install script didn't fail obviously. But I don't have a /etc/nix/nix.conf.
<zybell_> Did you type a password in?
<mightybyte> No
<zybell_> And it was the script, and not a package from your dist/script *in* a pkg?
* zybell_ loks at it
nh has quit [Ping timeout: 265 seconds]
<zybell_> line 2 says sudo. I would look in /nix/store/6mxs5ryd53rw8pbysk4xma4vvh923awv-user-environment.drv/.
<Dezgeg> you just create /etc/nix/nix.conf if it doesn't exist
<mightybyte> Dezgeg: Ahh. I think it's been automatically created every other time I installed nix, so I wasn't sure if something went wrong.
<mightybyte> I'll try that.
freeman42x]NixOS has quit [Ping timeout: 240 seconds]
<Dezgeg> nixos does but the curl | sh script doesn't
drakonis has joined #nixos
keith_analog has joined #nixos
<keith_analog> Hi All, I'm wondering if anyone could recommend a simple solution for automounting usb drives on a nixos machine without a gui. Thanks
justanotheruser has quit [Ping timeout: 264 seconds]
jackdk has quit [Ping timeout: 265 seconds]
justanotheruser has joined #nixos
olto has quit [Ping timeout: 260 seconds]
jrolfs has quit [Ping timeout: 248 seconds]
<justanotheruser> where can I find docs for creating an environment as I please? For example, with a database and service running
<justanotheruser> dont see anything in the nix manual
olto has joined #nixos
pie_ has quit [Ping timeout: 265 seconds]
daveo has quit [Ping timeout: 248 seconds]
ryantrinkle has quit [Quit: Leaving.]
ryantrinkle has joined #nixos
mizu_no_oto has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
markus1199 has joined #nixos
Supersonic112 is now known as Supersonic
jackdk has joined #nixos
mbrgm has quit [Ping timeout: 240 seconds]
<iqubic> Is there a simple way to get printing working on NixOS?
zearen has quit [Ping timeout: 240 seconds]
<Xal> services.printing.enable = true;
<Xal>
<Xal> then, you'll have to track down your printer's driver if it doesn't work out of the box
<iqubic> My printer works with Linux, but it is a Brother printer, so they only supply drivers in .deb or .dnf files.
markus1189 has quit [Ping timeout: 268 seconds]
mbrgm has joined #nixos
<iqubic> Thank you.
<Xal> generally, services.printing.drivers = [ gutenprint ]; works for most printers
<Xal> if it still doesn't, I can help you track down the right driver
<iqubic> Even Brother Printers?
sir_guy_carleton has joined #nixos
<sir_guy_carleton> hello
<Xal> if worse comes to worst, someone can help you package up the deb into a nix expression
<sir_guy_carleton> i'm trying to install nixos in virtualbox, but it wouldn't install grub2 into my boot parition
<sir_guy_carleton> i had it as ext2, but it doesn
<sir_guy_carleton> 't support blocklist
<sir_guy_carleton> so i unmounted the drive, reformatted it in ext4, and remounted it, but it still gives me the same error.
<Xal> could you pastebin your configuration.nix?
<sir_guy_carleton> i need an account for it, right?
<Xal> no
markus1199 has quit [Ping timeout: 248 seconds]
markus1189 has joined #nixos
<iqubic> Pastebin is free. However I recommend dpaste.com, as it has no ads.
<Xal> there are just about a million paste services out there
ryantm has quit [Ping timeout: 240 seconds]
astiles has joined #nixos
<iqubic> Yeah, there really are.
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
ryantm has joined #nixos
zybell_ has quit [Ping timeout: 264 seconds]
silver has quit [Read error: Connection reset by peer]
astiles has quit [Ping timeout: 276 seconds]
griff_ has joined #nixos
<elvishjerricco> mightybyte: Yea it used sudo, but a lot of ubuntu systems give the `ubuntu` user password-less sudo.
nuncanada has quit [Quit: Leaving]
ryantm has quit [Ping timeout: 248 seconds]
acarrico has quit [Ping timeout: 260 seconds]
<sir_guy_carleton> okay it's dpaste.com/0NDZQ1J
<sir_guy_carleton> note that i mostly just sutch to the defaults
<{^_^}> [nix] @dtzWill opened pull request #2102 → globals.hh: don't use '==' to compare string literals → https://git.io/vpsNC
keith_analog has quit [Quit: Konversation terminated!]
zybell_ has joined #nixos
acarrico has joined #nixos
nuncanada has joined #nixos
nuncanada has quit [Client Quit]
iqubic has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
acarrico has quit [Ping timeout: 264 seconds]
iqubic has joined #nixos
acarrico has joined #nixos
<gchristensen> sorry y'all, I don't have IRC access when I'm at a customer's office
<gchristensen> infinisil: who do you think would make a good +o?
<iqubic> What was the link for getting printing set-up on NixOS.
astiles has joined #nixos
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
aw has quit [Remote host closed the connection]
spacefrogg_ has quit [Remote host closed the connection]
aw has joined #nixos
spacefrogg has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg closed pull request #39375 → qtox: 1.13.0 -> 1.15.0 → https://git.io/vpsJY
<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]
<adisbladis[m]> dcol: `nix.nixPath`
ryantrinkle has quit [Ping timeout: 264 seconds]
rauno has joined #nixos
scott has quit [Disconnected by services]
scott1 has joined #nixos
scott has joined #nixos
<{^_^}> [nixpkgs] @acowley opened pull request #39395 → colord: fix ColorManager.conf installation path → https://git.io/vpshm
jperras has quit [Ping timeout: 260 seconds]
Fare has joined #nixos
boomshroom has joined #nixos
<boomshroom> Hello!
<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)
rauno has quit [Ping timeout: 248 seconds]
<Lisanna> keith_analog security.pam.loginLimits
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/e932b5be269 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<keith_analog> Lisanna: got it, thanks!
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
<simpson> boomshroom: Works here.
<adisbladis[m]> boomshroom: Do you have any python installed globally?
<boomshroom> nix-shell -p python35.pkgs.pyusb didn't work either.
<boomshroom> adisbladis[m]: No.
<adisbladis[m]> boomshroom: nix-shell -p '(python3.withPackages (ps: [ ps.pyusb ]))'
kisik21 has quit [Ping timeout: 255 seconds]
<boomshroom> That got it to run. Now to try and get my computer to actually see the thing.
<boomshroom> But first I need to get it BACK into recovery mode.
Rusty1_ has quit [Quit: Konversation terminated!]
alex`` has joined #nixos
<mightybyte> I'm trying to set up a cache as described in https://nixos.org/nix/manual/#ssec-binary-cache-substituter but I'm getting a "does not have a valid signature for path" error.
<mightybyte> How do I set up a signature?
<boomshroom> While I'm here, do any of you know of any good open source clones of The Sims or good ways to run The Sims 3 on Linux?
<gchristensen> steam-run maybe
<gchristensen> oh nvm
<iqubic> Try Wine?!?! Not sure if that will work.
<teto1> iqubic: adisbladis[m] does LO crash when you try to paste sthg too ? xD
<teto1> arf no it didn't crash, just froze during a few seconds
<adisbladis[m]> No works fine :)
<teto1> dunno if it's deliberate but either the commiter is a hardcore java fan or he is blind
rauno has joined #nixos
rauno has quit [Remote host closed the connection]
rauno has joined #nixos
rauno has quit [Remote host closed the connection]
oida has quit [Remote host closed the connection]
oida has joined #nixos
amir has quit [Ping timeout: 246 seconds]
rauno has joined #nixos
amir has joined #nixos
rauno has quit [Remote host closed the connection]
ma27 has joined #nixos
rauno has joined #nixos
rauno has quit [Remote host closed the connection]
jperras has joined #nixos
rauno has joined #nixos
<coorey[m]> can anyone recommend a nix packaged iso burner?
marusich has quit [Quit: Leaving]
jperras has quit [Ping timeout: 264 seconds]
rauno has quit [Remote host closed the connection]
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
justanotheruser has quit [Ping timeout: 260 seconds]
M59NAAH1D1 is now known as indefini
breadjpg has joined #nixos
astiles has quit [Ping timeout: 276 seconds]
justanotheruser has joined #nixos
lo_mlatu_ has joined #nixos
jgt2 has joined #nixos
<Lisanna> iqubic depends on your printer
<Lisanna> there's some printer drivers packaged but it's not extensive
rauno has joined #nixos
jperras has joined #nixos
<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
wangoe has joined #nixos
<Lisanna> robstr https://nixos.org/nixos/options.html#systemd.services.%3Cname%3E
rauno has joined #nixos
rauno has quit [Remote host closed the connection]
<Lisanna> you're probably looking for systemd.services.<name>.script
rauno has joined #nixos
<robstr> Lisanna: right, thank you
<robstr> Lisanna: How did you figure out `<name>` ?
<Lisanna> robstr experience
<robstr> Lisanna: :P great +1
<Lisanna> I've used nixos for a long time, and written a few modules, it's a common convention that I'm used to
<robstr> I see
<Lisanna> it's used all over the place, e.g., containers.<name>
<Lisanna> lib.types.attrsOf (lib.types.submodule (...))
<robstr> maybe I can ask another questions wich will safe me a lot of time, I receive `' is not a list of strings.` - I want to put a `touch ..` there
<Lisanna> robstr hastebin the code?
lo_mlatu_ has quit [Ping timeout: 256 seconds]
<Lisanna> robstr the problem is with requires
<Lisanna> and after
rauno has quit [Remote host closed the connection]
<Lisanna> those are supposed to be lists of strings
<Lisanna> e.g., requires = [ "postgresql.service" ];
rauno has joined #nixos
iqubic` has joined #nixos
<Lisanna> so that you can e.g. specify multiple "require"d services
<robstr> Lisanna: hm make sense, thank you really much for your time
<Lisanna> robstr sure ^^
<Lisanna> robstr I'm going to be heading off soon though, if you have any last minute questions ask them now :p
aarvar has quit [Ping timeout: 240 seconds]
iqubic has quit [Ping timeout: 265 seconds]
MP2E has quit [Remote host closed the connection]
<robstr> Lisanna: I'm happy now, you should enjoy sleep :)
<Lisanna> robstr alright, goodnight ^^
griff_ has joined #nixos
rauno has quit [Remote host closed the connection]
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/e932b5be269 (from 7 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
<{^_^}> [nixpkgs] @7c6f434c merged pull request #39391 → ecl: Use boehmgc → https://git.io/vpsXC
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/vpGOa
<{^_^}> → 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
shabius has joined #nixos
bennofs has joined #nixos
shabius_ has quit [Ping timeout: 276 seconds]
hotfuzz_ has joined #nixos
hotfuzz has quit [Ping timeout: 265 seconds]
griff_ has quit [Ping timeout: 255 seconds]
nh has quit [Quit: Bizzle]
<adisbladis[m]> X still
vaninwagen has joined #nixos
<{^_^}> [nixpkgs] @peterhoeg merged pull request #39373 → sc-controller: 0.4.1 -> 0.4.2 → https://git.io/vp3Nb
<{^_^}> → 69746047 by R. RyanTM: sc-controller: 0.4.1 -> 0.4.2
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/vpGsb
<{^_^}> → 445ba176 by @peterhoeg: Merge pull request #39373 from r-ryantm/auto-update/sc-controller
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/vpGsx
<{^_^}> → ffd428b5 by R. RyanTM: sabnzbd: 2.3.2 -> 2.3.3
<{^_^}> → 8ede6823 by @peterhoeg: Merge pull request #39374 from r-ryantm/auto-update/sabnzbd
<{^_^}> [nixpkgs] @peterhoeg merged pull request #39374 → sabnzbd: 2.3.2 -> 2.3.3 → https://git.io/vp3j1
<{^_^}> [nixpkgs] @peterhoeg merged pull request #39376 → qlcplus: 4.11.1 -> 4.11.2 → https://git.io/vpsLg
<{^_^}> [nixpkgs] @peterhoeg pushed 2 commits to master: https://git.io/vpGGe
<{^_^}> → 3fcb890f by @peterhoeg: Merge pull request #39376 from r-ryantm/auto-update/qlcplus
<{^_^}> → dc61a487 by R. RyanTM: qlcplus: 4.11.1 -> 4.11.2
lonokhov has joined #nixos
<{^_^}> [nixpkgs] @fgaz opened pull request #39396 → powerline-go: 1.8.2 -> 1.10.0 → https://git.io/vpGGz
hyper_ch2 has joined #nixos
<{^_^}> [nixpkgs] @adisbladis merged pull request #39396 → powerline-go: 1.8.2 -> 1.10.0 → https://git.io/vpGGz
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to master: https://git.io/vpGZJ
<{^_^}> → 56df1aca by @fgaz: powerline-go: 1.8.2 -> 1.10.0
<{^_^}> → 25188280 by @adisbladis: Merge pull request #39396 from fgaz/powerline-go
Tucky has joined #nixos
astiles has quit [Remote host closed the connection]
mbrock has joined #nixos
astiles has joined #nixos
<{^_^}> [nixpkgs] @jtojnar closed pull request #39395 → colord: fix ColorManager.conf installation path → https://git.io/vpshm
jackdk has quit [Ping timeout: 240 seconds]
<mbrock> I've added my custom binary cache URL and public key to /etc/nix/nix.conf on a multiuser Nix installation but it seems to be ignored still
<mbrock> when I use -v on nix-env I see it querying cache.nixos.org but not my own server
astiles has quit [Ping timeout: 265 seconds]
astiles has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #39381 → glpk: Add gmp support → https://git.io/vpsCF
<{^_^}> [nixpkgs] @dotlambda pushed 2 commits to master: https://git.io/vpGZy
<{^_^}> → 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 :)
<hyper_ch2> sphalerite: hmmm, split personality? :)
<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?
<sphalerite> hyper_ch2: a little bit
iyzsong has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @peti merged pull request #39382 → R: update to 3.5.0 (and update package set) → https://git.io/vps4B
<{^_^}> [nixpkgs] @peti pushed 3 commits to master: https://git.io/vpGc4
<{^_^}> → 6799fcb4 by @peti: R: 3.4.4 -> 3.5.0
<{^_^}> → 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
civodul has joined #nixos
<robstr> sphalerite: yea this is working :) ty
<{^_^}> [nixpkgs] @worldofpeace opened pull request #39397 → latte-dock: 0.7.4 -> 0.7.5 → https://git.io/vpGCE
<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
<hyper_ch2> robstr: I have something similar like spharelite recommends: https://github.com/sjau/nixos/blob/master/configuration.nix#L7
butchery has joined #nixos
<adisbladis> teto1: cat /proc/5053/environ | tr '\0' '\n' | grep PATH
butchery has quit [Client Quit]
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
<teto1> adisbladis: I think it's a oneshot- service that gets launched only when you up/down an interface
<teto1> so I am not sure how to catch the info in the short timeframe
<tilpner> teto1 - nix-instantiate --eval -E '(import <nixpkgs/nixos> {}).config.systemd.services.network-manager.path
butchery has joined #nixos
<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'
<hyper_ch2> robstr: and my secrets looks like https://paste.simplylinux.ch/view/raw/b38abc35
<adisbladis> teto1: nixos-option systemd.services."nm-dispatcher".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
<hyper_ch2> tilpner: isoImage.contents doesn't ring a bell
astiles has joined #nixos
<sphalerite> butchery: I have a suspicion — does replacing pygobject3 with (pygobject3 // {pythonModule = python3;}) make it work?
<adisbladis> makefu: Hey! I'm from that machine :)
asuryawanshi has joined #nixos
<Wizek> hello
<Wizek> is there a way to downgrade nix?
<Wizek> 2.0 is causing me some issues
<butchery> sphalerite: no change, unfortunately
<Wizek> (non-nixos)
<makefu> in that case, tor is just (ab)used as a poor-mans vpn to find boxes behind nat
<Wizek> This is the issue I am having: https://github.com/NixOS/nix/issues/2021
<sphalerite> butchery: oh right, I misread the error message anyway, yeah it's got nothign to do with what I thought. I don't know, sorry.
breadjpg has quit [Remote host closed the connection]
jgt2 has joined #nixos
astiles has quit [Ping timeout: 255 seconds]
iqubic` has quit [Ping timeout: 255 seconds]
astiles has joined #nixos
pie_ has quit [Ping timeout: 248 seconds]
jgt2 has quit [Read error: Connection reset by peer]
coot has joined #nixos
chimay has quit [Quit: WeeChat 2.1]
jensens has joined #nixos
genesis has joined #nixos
ZoomZoomZoom has joined #nixos
jgt2 has joined #nixos
ragge has joined #nixos
sir_guy_carleton has quit [Quit: leaving]
<{^_^}> [nixpkgs] @Mic92 merged pull request #39336 → osquery: 2.5.2 -> 3.2.2 → https://git.io/vpOEm
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/vpG8h
<{^_^}> → e109784f by @Ma27: .version: remove final newline
<{^_^}> → 3cd2707e by @Ma27: osquery: 2.5.2 -> 3.2.2
<{^_^}> → 62529a69 by @Mic92: Merge pull request #39336 from Ma27/fix-osquery
<{^_^}> [nixpkgs] @pSub merged pull request #39378 → parallel: 20180322 -> 20180422 → https://git.io/vpsOk
<{^_^}> [nixpkgs] @pSub pushed 2 commits to staging: https://git.io/vpG4f
<{^_^}> → 14eeba83 by R. RyanTM: parallel: 20180322 -> 20180422
<{^_^}> → e815efb8 by @pSub: Merge pull request #39378 from r-ryantm/auto-update/parallel
jperras has joined #nixos
humanoyd has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
jperras has quit [Ping timeout: 276 seconds]
kai_w has quit [Quit: kai_w]
asuryawanshi has joined #nixos
ZoomZoomZoom has quit [Quit: Leaving]
kai_w has joined #nixos
grafoo has joined #nixos
reinzelmann has quit [Ping timeout: 255 seconds]
<grafoo> hej! i'm new to nix and also played a little bit with guix. what makes me wondering if there's something like `guix pack` in nix.
<grafoo> can anyone comment on that?
<goibhniu> hi grafoo, what does it do?
iyzsong has quit [Read error: Connection reset by peer]
<LnL> not that I know of, but I think something like this is almost the same nix-store -qR <path> | tar -T - -czf foo.tar.gz
astiles has quit [Read error: Connection timed out]
<srhb> grafoo: If it's just a stepping stone towards actually copying the closure somewhere else, you might also be interested in `nix copy` :)
bfrog has quit [Ping timeout: 255 seconds]
johann__ has joined #nixos
bfrog has joined #nixos
astiles has joined #nixos
reinzelmann has joined #nixos
ma27 has joined #nixos
<manveru> does nix-bundle now support arbitrary derivations or just stuff in nixpkgs?
<manveru> ah cool
astiles has quit [Ping timeout: 256 seconds]
astiles has joined #nixos
<{^_^}> [nixpkgs] @timokau opened pull request #39398 → maxima-ecl: Disable failing tests → https://git.io/vpGzm
<adisbladis> bkchr[m]: Ping?
* unacceptable request filtered
telent has joined #nixos
dan_b has joined #nixos
kisik21 has joined #nixos
astiles_ has joined #nixos
pie_ has joined #nixos
ZoomZoomZoom has joined #nixos
<{^_^}> [nixpkgs] @vaibhavsagar opened pull request #39399 → teseq: init at 1.1.1 → https://git.io/vpGgR
astiles has quit [Ping timeout: 255 seconds]
astiles_ has quit [Ping timeout: 265 seconds]
astiles has joined #nixos
ckauhaus has joined #nixos
<{^_^}> [nixpkgs] @xeji opened pull request #39400 → nixos/tests/keymap: improve keymap tests → https://git.io/vpGgA
<adisbladis> Ohh <3
nh has joined #nixos
<srhb> adisbladis: Indeed. :) Merging in a sec.
<adisbladis> I'm testing it out now. So far pretty good :)
<srhb> Yep, looks good to me too.
astiles has quit [Ping timeout: 276 seconds]
lopsided98 has quit [Ping timeout: 276 seconds]
fendor has joined #nixos
lopsided98 has joined #nixos
<grafoo> goibhniu srhb makefu: thx so much. i'll give all of your proposals a try :)
astiles has joined #nixos
mahalel_1 has joined #nixos
<adisbladis> srhb: Running at a load average of 18 (on a dual-core with 4 threads machine) without any issues :)
<adisbladis> Added a lot of cpu-bound load and io
<srhb> adisbladis: Gorgeous. Just trying the release-18.03 cherry and then I'll click the button.
<ma27> does anybody want to have a look at this PR? https://github.com/NixOS/nixpkgs/pull/37871
<adisbladis> <3
jtojnar has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c merged pull request #39398 → maxima-ecl: Disable failing tests → https://git.io/vpGzm
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/vpGat
<{^_^}> → 023543ca by @7c6f434c: Merge pull request #39398 from timokau/maxima-ecl-testfailures
<{^_^}> → b707c918 by Timo Kaufmann: maxima-ecl: Disable failing tests
<{^_^}> [nixpkgs] @srhb merged pull request #39400 → nixos/tests/keymap: improve keymap tests → https://git.io/vpGgA
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/vpGas
<{^_^}> → 84a6e189 by @xeji: nixos/tests/keymap: improve keymap tests
<{^_^}> → 65abd2e6 by @srhb: Merge pull request #39400 from xeji/improve-keymap-tests
<{^_^}> [nixpkgs] @srhb pushed commit from @xeji to release-18.03 « nixos/tests/keymap: improve keymap tests »: https://git.io/vpGac
<srhb> Fingers crossed. That is the single largest potential improvement to the hydra release set these days. :)
<adisbladis> \o/
<{^_^}> [nixpkgs] @Mic92 opened pull request #39401 → telegraf: 1.5.3 -> 1.6.1 → https://git.io/vpGaB
<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]
Ariakenom has quit [Ping timeout: 264 seconds]
mkoenig has joined #nixos
blankhart has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #39401 → telegraf: 1.5.3 -> 1.6.1 → https://git.io/vpGaB
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpGrj
<{^_^}> → 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.
freeman42x]NixOS has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c merged pull request #39370 → singular: Fix ntl dependency → https://git.io/vp3HA
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/vpG6v
<{^_^}> → 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.
<{^_^}> [nixpkgs] @pSub merged pull request #39399 → teseq: init at 1.1.1 → https://git.io/vpGgR
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/vpGXy
<{^_^}> → 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
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/d5d2e66a895 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/d5d2e66a895 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
jtojnar has quit [Read error: Connection reset by peer]
jtojnar__ has joined #nixos
jtojnar__ is now known as jtojnar
astiles has quit [Ping timeout: 255 seconds]
<jtojnar> butchery: IIRC, atk propagated it previously
maingo has quit [Quit: Connection closed for inactivity]
astiles has joined #nixos
<{^_^}> [nixpkgs] @jtojnar pushed 5 commits to master: https://git.io/vpGMM
<{^_^}> → 39a64b28 by @jtojnar: orca: 3.28.0 → 3.28.1
<{^_^}> → 6c15df2c by @jtojnar: gnome3.epiphany: 3.28.1 → 3.28.1.1
<{^_^}> → fe5fcee1 by @jtojnar: gnome3.sushi: 3.24.0 → 3.28.3
raynold has quit [Quit: Connection closed for inactivity]
astiles has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @jtojnar merged pull request #39402 → Various GNOME updates → https://git.io/vpG1B
flyx has joined #nixos
FRidh has joined #nixos
magnetophon has quit [Ping timeout: 268 seconds]
ma27 has quit [Ping timeout: 256 seconds]
astiles has joined #nixos
<{^_^}> [nixpkgs] @timokau opened pull request #39403 → maxima-ecl: Disable more failing tests → https://git.io/vpGym
carter has quit []
carter has joined #nixos
<zybell_> srhb:I think joko sees nix as a extended JSON, and when he tries to parse json with import the failure is at the "wrong" place.
<{^_^}> [nix] @shlevy pushed commit from @dtzWill to master « globals.hh: don't use '==' to compare string literals »: https://git.io/vpGyM
<{^_^}> [nix] @shlevy merged pull request #2102 → globals.hh: don't use '==' to compare string literals → https://git.io/vpsNC
<srhb> Possibly!
<joko> zybell_: that's right... The assertion is not happening, I get an evaluation error
pie_ has quit [Ping timeout: 260 seconds]
<srhb> joko: A workaround would be to use `or` where you see the evaluation errors. I don't really like that though.
* srhb prefers the evaluation error
<joko> srhb: I guess you're right, I was just hoping to make a more informative error. I will leave it as an evaluation one
sphalerite has quit [Quit: WeeChat 2.0]
orivej has joined #nixos
knupfer has joined #nixos
<adisbladis> joko: You can always do something like:
<adisbladis> someValue = if (lib.hasAttr "someValue" json) then json.someValue else throw "Missing key \"someValue\""
feepo has quit []
feepo has joined #nixos
<{^_^}> [nixpkgs] @jtojnar closed pull request #26718 → Package sublime-dev build. → https://git.io/vQvm0
alex`` has quit [Ping timeout: 240 seconds]
astiles has quit [Read error: Connection timed out]
knupfer has quit [Remote host closed the connection]
sphalerite has joined #nixos
<sphalerite> UGH. Stupid tmux bug.
alex`` has joined #nixos
pie_ has joined #nixos
p_l has quit []
<joko> adisbladis: Thanks for the tip, I will try it
p_l has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed 5 commits to master: https://git.io/vpG7U
<{^_^}> → 93f1969b by @NeQuissimus: linux: 4.9.95 -> 4.9.96
<{^_^}> → 047d17b2 by @NeQuissimus: linux: 4.4.128 -> 4.4.129
<{^_^}> → d9f9b588 by @NeQuissimus: linux: 4.14.35 -> 4.14.36
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « linux: 4.4.128 -> 4.4.129 »: https://git.io/vpG7L
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « linux: 4.9.95 -> 4.9.96 »: https://git.io/vpG73
<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
astiles has joined #nixos
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « linux: 4.14.35 -> 4.14.36 »: https://git.io/vpG7c
<adisbladis> sphalerite: Synergy maybe?
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « linux: Remove 4.15.x »: https://git.io/vpG7E
pie_ has quit [Ping timeout: 248 seconds]
<sphalerite> adisbladis: no, that would be if I wanted to control software running on the other computer
<dtz> That'd get the input, but not sure best way to plumb the screen
<sphalerite> some sort of VNC thing could do it in principle I think but I don't know how to get a "virtual monitor" attached to the X screen
<sphalerite> just running a separate server won't do because I want it to use my laptop's integrated monitor as well
isaac_ has quit []
<adisbladis> Hmm I remember having some nice-ish solution for this before..
<dtz> Yeah that's my thought too...
isaac_ has joined #nixos
<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
katona has joined #nixos
<srid> `«derivation /nix/store/gkxx7ggz1iqmzxj8bhg4cc6q3i5k4zhw-motif.drv»`
<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
cbarrett has joined #nixos
dgpratt has joined #nixos
<adisbladis> It's just a tad bit more polished
vandenoever has quit [Ping timeout: 255 seconds]
astiles has joined #nixos
johann__ has joined #nixos
pie_ has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [Changing host]
vandenoever has joined #nixos
<{^_^}> [nixpkgs] @dwe11er opened pull request #39404 → wine: add vulkanSupport option → https://git.io/vpGdr
ambro718 has joined #nixos
<sphalerite> yay the stuff works!
<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
<{^_^}> [nixpkgs] @Mic92 merged pull request #39369 → gpgme: 1.10.0 -> 1.11.1 → https://git.io/vp3D3
<{^_^}> [nixpkgs] @Mic92 pushed 5 commits to staging-18.03: https://git.io/vpGFV
<{^_^}> → d6cfc781 by @shlevy: libgpg-error: 1.27 -> 1.28
<{^_^}> → a0bd25dd by @abbradar: libgpg-error: fix on ARM
<{^_^}> → 2f680ffb by @primeos: gpgme: 1.10.0 -> 1.11.1
<adisbladis> fyuuri: virtualisation.virtualbox.host.enable
<fyuuri> thank you!
<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?
dbmikus_ has joined #nixos
jperras has quit [Ping timeout: 260 seconds]
hunger has left #nixos ["User left"]
lopsided98 has quit [Ping timeout: 255 seconds]
<grafoo> adisbladis[m]: i'm not on nixos
<grafoo> sphalerite: ok thx. for clarification.
<sphalerite> Well, the forwarding thing works, except x11vnc keeps crashing :/
dbmikus has quit [Ping timeout: 256 seconds]
<sphalerite> saying caught XIO error:
<sphalerite> I imagine there's supposed to be some further information, but it's not printing any
<{^_^}> [nixpkgs] @Mic92 merged pull request #38806 → dragonfly-reverb: init at 0.9.1 → https://git.io/vxAs0
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpGbN
<{^_^}> → b959c6ed by @Mic92: Merge pull request #38806 from magnetophon/dragonfly-reverb
<{^_^}> → 5f6373d5 by @magnetophon: dragonfly-reverb: init at 0.9.1
<clever> hyper_ch2: the gpu inside the virtualbox guest will change its resolution to match the window on the host
<clever> hyper_ch2: so you never have scrollbars on your VM
<hyper_ch2> that can also be done with qemu
alexteves has joined #nixos
<hyper_ch2> my windows vm resizes nicely
<clever> though its not as obvious how its done
<sphalerite> hyper_ch2: does it really? for me it just stretches
astiles has quit [Ping timeout: 255 seconds]
astiles has joined #nixos
rauno has quit [Ping timeout: 265 seconds]
coot has quit [Quit: coot]
<hyper_ch2> sphalerite: it odes
<hyper_ch2> where are configs stored created with virtmanager?
alexteves_ has quit [Ping timeout: 255 seconds]
<sphalerite> hyper_ch2: ~/.config/libvirt
coot has joined #nixos
<hyper_ch2> sphalerite: the config I use https://paste.simplylinux.ch/view/raw/8523ccff
<hyper_ch2> and then in virt-viewer I have from the top menu that auto-adjust something
<hyper_ch2> and in configuration.nix I have this https://github.com/sjau/nixos/blob/master/configuration.nix#L452
<sphalerite> I'm guessing it's just part of how libvirt does it then
<sphalerite> I just run my VM by invoking qemu manually
<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
astiles has joined #nixos
<symphorien> nick_l: https://nixos.org/nixos/options.html#kernelpac you can use an older kernel, maybe ?
<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
<symphorien> sphalerite: true
civodul has joined #nixos
rodarmor has quit []
rodarmor has joined #nixos
Fare has quit [Ping timeout: 256 seconds]
jperras has joined #nixos
<{^_^}> [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
<{^_^}> [nixpkgs] @Mic92 merged pull request #39338 → coursera-dl: init at 0.10.0 → https://git.io/vpOaN
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpGjU
<{^_^}> → c9b3a245 by @alexfmpe: coursera-dl: init at 0.10.0
<symphorien> so you can juste use fetchurl
<{^_^}> → 04a15a6e by @Mic92: Merge pull request #39338 from alexfmpe/coursera-dl
<lostman> symphorien: great. thanks a lot!
astiles has joined #nixos
<iqubic> so is it possible to get nixos-rebuild to work without nix running out of memory?
<sphalerite> iqubic: using nixUnstable might help.
nuncanada has joined #nixos
ambro718 has quit [Quit: Konversation terminated!]
<sphalerite> iqubic: other than that, maybe quitting your browser could. Or adding swap >_>
<iqubic> I have swap already.
<sphalerite> how much memory (including swap) do you have?
<iqubic> How do I check that?
<sphalerite> free -h
leat has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @ckauhaus opened pull request #39406 → libjpeg: 1.5.2 -> 1.5.3 → https://git.io/vpGjD
odi_ has joined #nixos
<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
rauno has joined #nixos
<sphalerite> as root, truncate -s 8G /swap && mkswap /swap && swapon /swap
<sphalerite> but maybe nixUnstable will also do the trick by just using less memory.
<iqubic> Is there a way to check if I have swap already?
fendor has joined #nixos
<iqubic> how do I use nixUnstable? Just tell nix to fetch coq from nixUnstable?
<Rusty1_> swapon -s
odi has quit [Ping timeout: 240 seconds]
<iqubic> I tried that an still ran out of memory.
<sphalerite> no, set nix.package = pkgs.nixUnstable
<sphalerite> then rebuild (without coq), then try adding coq and rebuilding again
<iqubic> Rusty1_: -s is an invalid option for swapon.
<sphalerite> actually there's a simpler way to try it using nixUnstable, just run (as root) nix-shell -p nixUnstable
<symphorien> sphalerite: it won't change the daemon
<sphalerite> and then do nix build nixpkgs.coq in that shell
<sphalerite> symphorien: but if you do it as root it doesn't use the daemon :)
<symphorien> oh
odi__ has joined #nixos
<iqubic> So how do I check if I have swap?
Mateon1 has quit [Ping timeout: 264 seconds]
<sphalerite> if you didn't get any shown in free's output, you don't have any active swap
<iqubic> Oh. How can I make some swap
<sphalerite> I mentioned that earlier
<iqubic> I'm using zfs fi that matters.
<sphalerite> as root, truncate -s 8G /swap && mkswap /swap && swapon /swap
<sphalerite> oh, that does matter
<sphalerite> swap on zfs is a bad idea
<sphalerite> :/
<iqubic> Yeah, zfs is more complex.
<iqubic> Why is swap on zfs bad?
<sphalerite> I don't know the technical details, you can ask #zfsonlinux if you want to find out the details
<adisbladis[m]> iqubic: Swap on CoW is bad.
odi_ has quit [Ping timeout: 255 seconds]
<sphalerite> have you tried using nixUnstable as root to just get coq in your store?
nuncanada has quit [Ping timeout: 276 seconds]
<iqubic> No.
xy2_ has quit [Ping timeout: 255 seconds]
<sphalerite> sudo nix-shell -p nixUnstable --run 'nix build nixpkgs.coq'
kaychaks has quit []
<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
<sphalerite> aww
drakonis has joined #nixos
astiles has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @nlewo merged pull request #39363 → go-jira: init at 1.0.17 → https://git.io/vp32T
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/vpZJq
<{^_^}> → 49f02db5 by @carlosdagos: go-jira: init at 1.0.17
<{^_^}> → e0956295 by @nlewo: Merge pull request #39363 from carlosdagos/go-jira-1.0.17
<iqubic> Well, that worked.
<sphalerite> yay!
jelewaus[m] has joined #nixos
Smithx10_ has quit []
Smithx10_ has joined #nixos
astiles has joined #nixos
chisui has joined #nixos
<srhb> Mixing Nix versions is fun!
odi has joined #nixos
<sphalerite> srhb: soooo pretty
<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
<{^_^}> [nixpkgs] @matthewbauer merged pull request #38805 → zn_poly: init at 0.9 → https://git.io/vxAtF
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpZTO
<{^_^}> → 28c023e2 by Timo Kaufmann: zn_poly: init at 0.9
<{^_^}> → 7ebb6212 by @matthewbauer: Merge pull request #38805 from timokau/zn_poly-init
<joko> betaboon: oh, you do not have declarative containers, you just run "sudo nixos-container create foo"?
<betaboon> joko: yes nixops uses nixos-containers create etc
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
<shapr> I still can't use a keyboard when walking.
chisui has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<adisbladis> Dezgeg: The Motorola Photon Q had a _great_ keyboard
<hodapp> my blackberry classic had a great keyboard
<hodapp> too bad it was a blackberry
astiles has quit [Ping timeout: 276 seconds]
jperras has quit [Ping timeout: 276 seconds]
freeman42x]NixOS has joined #nixos
astiles has joined #nixos
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?
silver has joined #nixos
<slabity[m]> Actually, looking at the repo it looks like it should be using 10.0.1: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/oraclejdk/jdk10-linux.nix
mgttlinger has quit []
<robstr> slabity[m]: i think you need to use the unstable channel
mgttlinger has joined #nixos
<robstr> but I'm not 100% sure about this
hyper_ch2 has quit [Quit: Page closed]
<slabity[m]> robstr: I am on the unstable channel. But `nix-channel --update` doesn't seem to be doing anything
astiles has quit [Ping timeout: 255 seconds]
<adisbladis> Unstable is not moving for a short while, so it's possible that 10.0.1 is not yet in unstable.
<adisbladis> !stuck
spietz has joined #nixos
jperras has joined #nixos
__Sander__ has quit [Quit: Konversation terminated!]
<adisbladis> slabity[m]: You should be able to use:
<adisbladis> nix-shell -I 'nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable-small.tar.gz' -p oraclejdk10
<slabity[m]> adisbladis: That's annoying. `oraclejdk8` doesn't work, `oraclejdk9` was removed, and `oraclejdk10` doesn't work.
<sphalerite> or shorter, nix-shell -I nixpkgs=channel:nixos-unstable-small -p oraclejdk10
<sphalerite> :)
<slabity[m]> Why is `nixos-unstable` not updating?
magnetop` has joined #nixos
<cransom> it may be unstabley-broken right now?
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39377 → pari: Make pthread optional, remove unstable → https://git.io/vpsmy
<adisbladis> slabity[m]: Some tests have been acting up https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpZYz
<{^_^}> → 75b0866d by Timo Kaufmann: pari: Make pthread optional, remove unstable
<{^_^}> → d57e6466 by @matthewbauer: Merge pull request #39377 from timokau/pari-pthread
<slabity[m]> Oh wow, I didn't know I could change the channel/nixpkgs for a single command. That's useful
eacameron has quit []
astiles has joined #nixos
srdqty has quit [Ping timeout: 255 seconds]
eacameron has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed to master « knot-dns: remove .out/lib/*.la »: https://git.io/vpZY9
<sphalerite> oh, or the proper nix 2.0 version: nix run -f channel:nixos-unstable-small oraclejdk10
magnetophon has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @adisbladis pushed 2 commits to release-17.09: https://git.io/vpZY5
<{^_^}> → 9c0c12f7 by @ckauhaus: libjpeg: 1.5.2 -> 1.5.3
<{^_^}> → 159b63aa by @adisbladis: Merge pull request #39406 from ckauhaus/38996-libjpeg-turbo-cve
<{^_^}> [nixpkgs] @adisbladis merged pull request #39406 → libjpeg: 1.5.2 -> 1.5.3 → https://git.io/vpGjD
<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
<{^_^}> [nixpkgs] @fpletz pushed 2 commits to master: https://git.io/vpZOO
<{^_^}> → 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
<sphalerite> that is the plan :)
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/a172b1ca21c (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
johann__ has quit [Quit: Leaving.]
xcmw has joined #nixos
<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
<Mic92> this should be added to wiki!
<sphalerite> grafoo: as for running nix itself, you can either compile from source and install to ~/.local or something, or use this portable nix thing by Matthew Bauer https://groups.google.com/d/msgid/nix-devel/CAFnZKr0qV_SQ_c2rQ%3D_%2BMNtBC405V-e_KEpuSpf0GrVJPj_RZQ%40mail.gmail.com
<LnL> grafoo: ^ so nix run --store ~/foo ... hello will work but ~/foo/.../bin/hello won't
astiles has joined #nixos
nuncanada has joined #nixos
astiles has quit [Remote host closed the connection]
hicksbosom has joined #nixos
astiles has joined #nixos
Ariakenom has quit [Ping timeout: 248 seconds]
<hicksbosom> Hi, I recently installed nixos. iptables -L shows me that the INPUT chain is set to ACCEPT. How can I setup iptables with my own rules?
<hicksbosom> and load them each time nixos starts
<hicksbosom> Many thanks :)
<sphalerite> hicksbosom: using the firewall options https://nixos.org/nixos/options.html#firewall.
<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?
<{^_^}> [nixpkgs] @7c6f434c merged pull request #39403 → maxima-ecl: Disable more failing tests → https://git.io/vpGym
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/vpZCY
<{^_^}> → 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> Thank you very much!!!! :)
<NinjaTrappeur> hicksbosom, I am unsure what do you mean by draft, do you mean the source code of the function? https://github.com/NixOS/nixpkgs/blob/d66b87682b84ebf7339d4a53498de89cbf991e62/nixos/modules/services/networking/firewall.nix
hakujin has joined #nixos
Fare has joined #nixos
<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
<Lisanna> it's a program
<{^_^}> [nixpkgs] @nlewo pushed 3 commits to master: https://git.io/vpZle
<{^_^}> → 4959111f by @nocent: bonzomatic: init at 2018-03-29
<{^_^}> → 0ada4b37 by @nocent: Added version info, set compatible platforms
<{^_^}> → 18c6c495 by @nlewo: Merge pull request #39171 from nocent/add/bonzomatic
<Lisanna> have you altered your firewall configuration in your /etc/nixos/configuration.nix at all?
<{^_^}> [nixpkgs] @nlewo merged pull request #39171 → bonzomatic: init at 2018-03-29 → https://git.io/vptD7
<hicksbosom> Yes, after I have opened the file I have seen that it is a script file.
<hicksbosom> Lisanna: No.
<hicksbosom> But I have a very long iptables rules file from my Archlinux installation.
<hicksbosom> I like to use this file
<NinjaTrappeur> hicksbosom, basically, you configure all your nixos module from within your configuration.nix
<hicksbosom> And I don't know how I could say NixOS to use them.
<Lisanna> hicksbosom you can put them in networking.firewall.extraCommands
<hicksbosom> But maybe the system is completely immune to some attacks and I only need a part of my firewall scripts.
alex`` has quit [Ping timeout: 256 seconds]
<Lisanna> https://nixos.org/nixos/options.html#networking.firewall.extracommands
<hicksbosom> Lisanna: And where I put the networking.firewall.extraCommands?
<Lisanna> hicksbosom /etc/nixos/configuration.nix
<hicksbosom> In the configuration.nix file? That would be very, very, very long, argh :-/
<hicksbosom> Not practical.
<hicksbosom> Any other suggestions? :)#
<NinjaTrappeur> you can import your configuration string from another file
<{^_^}> [nixpkgs] @pSub merged pull request #39368 → sqldeveloper: add desktop item → https://git.io/vp3oE
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/vpZla
<{^_^}> → b73c44ec by @flokli: sqldeveloper: add desktop item
<{^_^}> → d3a5a921 by @pSub: Merge pull request #39368 from flokli/sqldeveloper-desktopitem
<hicksbosom> Importing? Oh, that sounds cool. How I do this?
<NinjaTrappeur> hicksbosom, the whole nix syntax is documented here: https://nixos.org/nix/manual/
<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
<NinjaTrappeur> try ctrl-f "import", you should have some matches
<Lisanna> Eh, I would use readFile, not import
<NinjaTrappeur> You're right
<Lisanna> hicksbosom networking.firewall.extraCommands = builtins.readFile ./my_firewall_rules;
<Lisanna> with my_firewall_rules being a file of iptables commands
<Lisanna> put in /etc/nixos
<{^_^}> [nixpkgs] @timokau opened pull request #39408 → cddlib: 0.94h -> 0.94i, add cdd_both_reps binary → https://git.io/vpZl5
<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.
<NinjaTrappeur> exactly
xcmw has joined #nixos
hakujin has joined #nixos
<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
jtojnar has joined #nixos
<bgamari> angerman, ^
<hicksbosom> Nix pills? Is it dope?
<symphorien> !pills
Ariakenom has joined #nixos
maingo has joined #nixos
<hicksbosom> The pills are cool. Thank you :)
<hicksbosom> Not pills? Why?
<hicksbosom> Dear gals and guys, I have a last question for my first NixOS system day please
<hicksbosom> Is the system immune against attacks in that way that I can revert back to the last know good state of the NixOS installation?
<hicksbosom> Is this all I need to know to keep my system clean of garbage?
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
grafoo has quit [Quit: WeeChat 1.4]
grafoo has joined #nixos
<symphorien> You can undo what nixos-rebuild switch did as long as you don't garbage collect old generations
<{^_^}> [nixpkgs] @jtojnar pushed to master « gnome3.gjs: 1.52.1 → 1.52.2 »: https://git.io/vpZ4D
magnetop` has quit [Ping timeout: 264 seconds]
xy2_ has quit [Ping timeout: 268 seconds]
Fare has quit [Ping timeout: 248 seconds]
ckauhaus has quit [Quit: Leaving.]
ZoomZoomZoom has quit [Quit: Leaving]
<hicksbosom> symphorien: okay
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/a172b1ca21c (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
Lisanna has joined #nixos
lonokhov has quit [Ping timeout: 248 seconds]
<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
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/02af7567e92 (from 87 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
kisik21 has quit [Quit: Leaving.]
astiles has joined #nixos
hihello has joined #nixos
humanoyd has joined #nixos
<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
spear2 has joined #nixos
Neo-- has quit [Ping timeout: 276 seconds]
Guest48772 has quit [Client Quit]
toby1851 has joined #nixos
<symphorien> You might be interested in https://github.com/musnix/musnix (I am not using it though)
logzet has joined #nixos
<hicksbosom> musnix could be a starting point, thank you. I've heard of it
<goibhniu> hicksbosom: https://nixos.wiki/wiki/Using_JACK_with_PulseAudio has some useful tips too
<LnL> hihello: you can find the list of options in the configuration.nix manpage or https://nixos.org/nixos/options.html#
ryanartecona has joined #nixos
simukis has quit [Ping timeout: 264 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #39410 → openfortivpn: 1.6.0 -> 1.7.0 → https://git.io/vpZEK
astiles has joined #nixos
boxscape has joined #nixos
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?
<angerman> nix-build expr.nix -A attr -> Nix build -f expr.nix atte
<boxscape> hm, okay
asuryawanshi has joined #nixos
<angerman> boxscape: I would hope he nix2 announcement has something to say about it.
<angerman> boxscape: and —help of course
<boxscape> ah, that would make sense, yes
<bgamari> angerman, is your nixpkgs fork up-to-date?
<bgamari> I can't see to find the commit that nix-hs-hello-windows points to
<bfrog> really wish I could use zsh in nix-shell
<bfrog> I mean I have shellHook running it now, but its slightly annoying
<Sonarpulse> bgamari: yeah that makes sense
<boxscape> bfrog: I've had this tab open because I wanted to read it but forgot, maybe it's helpful https://github.com/chisui/zsh-nix-shell
<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
<{^_^}> [nixpkgs] @r-ryantm opened pull request #39411 → osrm-backend: 5.16.4 -> 5.17.2 → https://git.io/vpZzA
<angerman> bgamari: I think it was unstable channel.
astiles has quit [Remote host closed the connection]
<hicksbosom> cannot auto-call a function that has an argument without a default value ('config')
hakujin has quit [Quit: WeeChat 2.1]
<angerman> bgamari: just look at the last few commits that are authored by me to get an idea ;-)
astiles has joined #nixos
<angerman> Ohh wait... hmm...
<adisbladis[m]> Direnv+nix is also a pretty good combo https://github.com/direnv/direnv
<adisbladis[m]> bfrog: ^
<angerman> bgamari: can check in ~30min
<adisbladis[m]> I use it with fish, but also works with zsh/bash
<angerman> Sonarpulse: did you see the hackage.nix / stackage.nix / Haskell.nix repos?
<Sonarpulse> angerman: yeah!
<{^_^}> [nixpkgs] @r-ryantm opened pull request #39412 → pcmanfm: 1.2.5 -> 1.3.0 → https://git.io/vpZgq
<Sonarpulse> angerman: I think we could permenantly move stuff out of nixpkgs with that
<Sonarpulse> sadly IFD isn't readyu
<Sonarpulse> but now that 2.0 is out
<Sonarpulse> Nix 2.0
<Sonarpulse> we can rely in builtins.fetch* in nixpkgs
<Sonarpulse> so avoid IFD
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
<Lisanna> hicksbosom "echo $NIX_PATH"
jrolfs has joined #nixos
<bgamari> Sonarpulse, ahh
<bgamari> angerman, you are up early/late, eh?
<Sonarpulse> angerman: did you talk to peti by any chance?
<bgamari> Sonarpulse, I'm having a bit of trouble finding angerman's thing
<Sonarpulse> bgamari: I'll fish it out
<angerman> bgamari: currently in Germany
<bgamari> ahh
<angerman> Sonarpulse: peti did take a look already. See issue #1 on github.com/angerman/Cabal2Nix
<angerman> bgamari: I might have angerman/nixpkgs
<angerman> bgamari: but I’ll check once I’m home.
<angerman> Phone is on 1%
<bgamari> cool
humanoyd has joined #nixos
<Sonarpulse> angerman: ah that was a heartening read, things are looking good
<Sonarpulse> (!)
<{^_^}> [nixpkgs] @dtzWill opened pull request #39413 → mendeley: 1.17.3 -> 1.18, touchup update script → https://git.io/vpZ2R
<bgamari> ahh
<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: I call it like
<Myrl-saki> nix-build -E '(import <nixpkgs> { system="armv7l-linux"; }).nix' --cores 24 --max-jobs 8
<clever> Myrl-saki: your trying to do a native arm->arm build, so it expects the cpu to be able to run arm binaries
boomshroom has joined #nixos
<Myrl-saki> clever: Right, assume that I have binfmt.
<boomshroom> Good morning!
<clever> nix-daemon hasnt been patched&configured to use binfmt-misc
<clever> that is part of what my qemu.nix module does
<Myrl-saki> clever: Ohhh
<Myrl-saki> clever: I'm using Nix-only right now, how should I proceed?
<Myrl-saki> clever: I got access to an Epyc build farm.
<clever> Myrl-saki: line 46 configures nix to blindly think it can run arm binaries
<clever> Myrl-saki: and line 44 uses the patched version that has such an option
<clever> which comes from the overlay on 36
<Myrl-saki> Right.
<Myrl-saki> clever: It's a bit harder to do it on Nix-only, I believe?
<clever> if its single-user nix, just get that overlay into scope and nix-env -iA nixpkgs.nix
<clever> or rather, nix-env -iA nixpkgs.patchedNix
<Myrl-saki> clever: Okay.
<clever> and then edit /etc/nix/nix.conf to say it can run armv7l-linux
jrolfs_ has joined #nixos
hicksbosom has quit [Ping timeout: 260 seconds]
<Myrl-saki> clever: That's all?
<Myrl-saki> clever: Also, I don't have root access.
jrolfs has quit [Ping timeout: 248 seconds]
<Myrl-saki> clever: I did the nix-user-chroot... route.
<Myrl-saki> heh. puns.
<clever> Myrl-saki: ah, for single-user nix, you can just set NIX_CONF_DIR
<clever> that changes where it looks for nix.conf
<Myrl-saki> clever: Okay.
<Myrl-saki> I'll reprot back after nix is built.
<Myrl-saki> report*
<Myrl-saki> clever: This machine has 24C/48T, it has more than 100% more cores than my RPi, Desktop, and Laptop, combined.
<Myrl-saki> clever: I hope I can build lots of things here. :D
<clever> :D
nuncanada has quit [Ping timeout: 256 seconds]
<Myrl-saki> clever: And ofc, no RAM purrblems.
<{^_^}> [nixpkgs] @dtzWill merged pull request #39413 → mendeley: 1.17.3 -> 1.18, touchup update script → https://git.io/vpZ2R
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/vpZwv
<{^_^}> → 86694030 by @dtzWill: mendeley: 1.17.13 -> 1.18, touchup update script
<{^_^}> → e630e9da by @dtzWill: Merge pull request #39413 from dtzWill/update/mendeley-1.18
<Myrl-saki> clever: ...I just realized how stupid I am.
<clever> ?
Rusty1_ has joined #nixos
<Myrl-saki> clever: `Debian -installed-> Nix -installed-> proot and qemu -to proot into-> Raspbian -installed-> Nix
<Myrl-saki> I could have just avoided the proot alltogether.
<Myrl-saki> I even asked access for a new VPS.
<Myrl-saki> nix-build -E '(import <nixpkgs> { overlays = [ (import ./nixos-configs/overlays/qemu-user.nix)]; }).patchedNix ' --cores 24 --max-jobs 8
<Myrl-saki> clever: Am I doing this correctly?
<clever> that looks right
drakonis has quit [Read error: Connection reset by peer]
hyper_ch has quit [Read error: Connection reset by peer]
drakonis has joined #nixos
<{^_^}> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/159b63aac0d (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
<Myrl-saki> clever: How to inhibit the nix tests?
hyper_ch has joined #nixos
<Myrl-saki> Err
<Myrl-saki> Hmm
<clever> doCheck = false;
<Myrl-saki> clever: But then I'd have to recompile everything, right?
<Myrl-saki> I mean testing Nix itself
<clever> you can .overrideAttrs it
<clever> nix-build -E '(import <nixpkgs> { overlays = [ (import ./nixos-configs/overlays/qemu-user.nix)]; }).patchedNix.overrideAttrs (drv: { doCheck = false; }) ' --cores 24 --max-jobs 8
<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
<Myrl-saki> What is the installCheck phase?
ambro718 has joined #nixos
<{^_^}> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/159b63aac0d (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
<Myrl-saki> clever: My nix command won't work unless I run `./nix-user-chroot/nix-user-chroot ~/.nix ~/bash-nix-user-chroot
<Myrl-saki> clever: How should I tell connecting clients about that?
<clever> Myrl-saki: ssh based clients?
<clever> run your own sshd inside there maybe?
<clever> on a diff port
<Myrl-saki> clever: Yeah, that also works.
<Myrl-saki> clever: Thanks.
<{^_^}> [nixpkgs] @dtzWill opened pull request #39414 → ngx_brotli: -> 0.1.1 → https://git.io/vpZo4
<angerman> bgamari: did you find it?
<angerman> Sonarpulse: take a look at https://github.com/angerman/cardano-sl/blob/cross/default-lts-9.1.nix of you want to see how I use my hackage+stackage+haskell Setup.
<{^_^}> [nixpkgs] @vbgl opened pull request #39415 → coqPackages.mathcomp: 1.6.4 -> 1.7.1 → https://git.io/vpZo9
<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),...
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/d3881bfcb38 (from 81 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
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
<robstr> clever: no it does not
<clever> is your config on github?
<robstr> clever: let me create a gist
olto has quit [Quit: ZNC - http://znc.in]
<szicari> Greetings. Is there a public API for querying nix package manager contents?
srl295 has joined #nixos
<maurer> szicari: Does either nox or https://nixos.org/nixos/packages.html not do what you're looking for?
<maurer> If so, you'll need to be more specific
olto has joined #nixos
<szicari> maurer: Thank you for the response. I’m looking to add the Nix package manager to libraries.io: https://github.com/librariesio/libraries.io/blob/master/docs/add-a-package-manager.md
drakonis has joined #nixos
<maurer> szicari: Consider operating over https://nixos.org/nixpkgs/packages.json.gz
lonokhov has quit [Ping timeout: 255 seconds]
<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 :)
<{^_^}> [nixpkgs] @LnL7 pushed 183 commits to staging: https://git.io/vpZ6h
<{^_^}> → 1ed47cf2 by @mnacamura: mathematica: enable installation of localized editions
<{^_^}> → e70d293b by @pngwjpgh: nixos/acme: Allow for time window between cert issue and activation
<{^_^}> → 4d7bea7e by @edef1c: ipxe: fix ISO build
<angerman> Sonarpulse: lol.
<Sonarpulse> but I trust it's in good hands for the moment :)
<angerman> Sonarpulse: ... O_o
<clever> robstr: oh, it might be that the default role changed and createdb doesnt know that
<Sonarpulse> I'll let you know when do give it a spin
<{^_^}> [nix] @disassembler opened pull request #2104 → build: add nsswitch.conf chroot → https://git.io/vpZiL
<Sonarpulse> which hopefully will be like by the end of the week
<bgamari> Sonarpulse, I have opened https://github.com/NixOS/nixpkgs/issues/39417 to track the haskell issue
<clever> robstr: on nixos 17.09 and older, the superUser is "root", but on 18.03 and newer, its "postgres"
<clever> robstr: so the createdb has to be ran as postgres if your on a 18.03
<clever> robstr: and your script runs it as root, which now lacks access
<robstr> clever: I see, and this get's picket by the aws ami ? and not on my local vm deployment ?
<Sonarpulse> has anyone used `git send-email`
<Sonarpulse> it's broken on nixos it seems
<Sonarpulse> some missing perl thing
<clever> robstr: you may be running a different nixos version locally
<Sonarpulse> alternatively, anyone know a better way for me to send emails?
<Sonarpulse> for patches
<bgamari> Sonarpulse, I've not used it on nixos
<Sonarpulse> yay contributing to jank old things
<bgamari> Sonarpulse, use git format-patch directly
alex`` has joined #nixos
<bgamari> perhaps?
<Sonarpulse> bgamari: I did that
<Sonarpulse> I use thunderbird for work
<Sonarpulse> if I get it to open it
<Sonarpulse> its not a draft and I have to format it
<Sonarpulse> *forward it
<Sonarpulse> which probably screws up the headers
<robstr> clever: yea im on 17.09.3238.e984f9e48e1 (Hummingbird) ... and on aws its 17.09.3238.e984f9e48e1 too
<clever> robstr: then it should be using root still
<Sonarpulse> bgamari: ah perl5/ is in share/ instead of lib/
<robstr> clever: ok thank you, i will check this again :)
<Sonarpulse> I have no idea what it should be
\\\\\\\\\\\ has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #39418 → latte-dock: 0.7.4 -> 0.7.5 → https://git.io/vpZPI
<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
<Myrl-saki> clever: Oh. Okay.
<{^_^}> [nixpkgs] @r-ryantm opened pull request #39419 → libre: 0.5.7 -> 0.5.8 → https://git.io/vpZP2
<Myrl-saki> clever: I finally nix-env'd Nix. What now?
<clever> also set NIX_CONF_DIR to point to a directory with a nix.conf
<{^_^}> [nixpkgs] @bgamari opened pull request #39420 → A selection of cross-compiling fixes → https://git.io/vpZPd
<clever> and set the new extra-platforms field i mentioned earlier, to claim you can run armv7l
<{^_^}> [nixpkgs] @matthewbauer pushed to revert-37640-retroarch-mame « Revert "libretro.mame: 2017-06-04 -> 2017-03-02" »: https://git.io/vpZPF
<{^_^}> [nixpkgs] @r-ryantm opened pull request #39421 → librem: 0.5.2 -> 0.5.3 → https://git.io/vpZPx
<Myrl-saki> clever: Okay
<{^_^}> [nixpkgs] @matthewbauer opened pull request #39422 → Revert "libretro.mame: 2017-06-04 -> 2017-03-02" → https://git.io/vpZXv
ryantrinkle has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39422 → Revert "libretro.mame: 2017-06-04 -> 2017-03-02" → https://git.io/vpZXv
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpZXJ
<{^_^}> → ab7aaf1b by @matthewbauer: Revert "libretro.mame: 2017-06-04 -> 2017-03-02"
<{^_^}> → 16e78fb7 by @matthewbauer: Merge pull request #39422 from NixOS/revert-37640-retroarch-mame
<{^_^}> [nixpkgs] @matthewbauer pushed 0 commits to revert-37640-retroarch-mame: https://git.io/vpZXT
lonokhov has joined #nixos
<bgamari> huh
<bgamari> does nox-review typically fail with large builds?
<bgamari> I'm seeing `Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS `
<mbrgm> is there something you could think about for auto-generating incrementing SOA serial numbers for DNS using nixo(p)s?
<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
<{^_^}> [nixpkgs] @benley merged pull request #39418 → latte-dock: 0.7.4 -> 0.7.5 → https://git.io/vpZPI
<{^_^}> [nixpkgs] @benley pushed commit from @r-ryantm to master « latte-dock: 0.7.4 -> 0.7.5 (#39418) »: https://git.io/vpZX0
<{^_^}> [nixpkgs] @Mic92 pushed commit from @lheckemann to release-18.03 « xdot: disable for python 2.x »: https://git.io/vpZXu
<mbrgm> clever I have slave servers at hetzner and they won't update their own zone unless the serial was incremented
lonokhov has quit [Ping timeout: 265 seconds]
rauno has joined #nixos
<clever> mbrgm: when you do any change, set the serial# to the current date&time
<clever> which will always be newer then the last date&time
<{^_^}> [nixpkgs] @bgamari opened pull request #39425 → Allow git to be cross-compiled → https://git.io/vpZXM
<clever> only other option is to have a script that updates the dns, and reads the previous records at runtime
<clever> to generate the new records
xcmw has joined #nixos
<clever> mbrgm: i think services like route53 automate all that
<mbrgm> clever: yeah, unfortunately that's the only other solution I could imagine
<mbrgm> like have a stateful counter somewhere in a file, then update the zone's serial when starting the service
<angerman> Sonarpulse: we might also want to split profiling and non-profiling libraries as well as haddocks into separate derivations?
fendor has joined #nixos
<angerman> Sonarpulse: how about a ghc that doesn't depend on hscolour? and one say ghc-hscolour, that does? Isn't hscolour optional?
coot has quit [Quit: coot]
<{^_^}> [nixpkgs] @Mic92 merged pull request #39419 → libre: 0.5.7 -> 0.5.8 → https://git.io/vpZP2
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpZXh
<{^_^}> → daea65c8 by R. RyanTM: libre: 0.5.7 -> 0.5.8
<{^_^}> → 0198d620 by @Mic92: Merge pull request #39419 from r-ryantm/auto-update/libre
astiles has quit [Remote host closed the connection]
<mbrgm> clever: seems like aws.amazon.com is using a unix timestamp
astiles has joined #nixos
<serentty[m]> I'm having trouble getting IBus to work.
<serentty[m]> It doesn't show any input methods, even though I have them installed.
lonokhov has joined #nixos
<mbrgm> clever: I think that's what I'll do as well... year 2038 is yet far enough away ^^
<{^_^}> [nixpkgs] @Mic92 merged pull request #39412 → pcmanfm: 1.2.5 -> 1.3.0 → https://git.io/vpZgq
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vpZ13
<{^_^}> → 3c546c2d by R. RyanTM: pcmanfm: 1.2.5 -> 1.3.0
<{^_^}> → 78d9bffc by @Mic92: Merge pull request #39412 from r-ryantm/auto-update/pcmanfm
astiles has quit [Read error: Connection reset by peer]
coot has joined #nixos
lonokhov has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @woffs opened pull request #39426 → googleearth: remove → https://git.io/vpZ1x
<{^_^}> [nixpkgs] @r-ryantm opened pull request #39428 → libfm-extra: 1.2.5 -> 1.3.0 → https://git.io/vpZMm
<angerman> some day, I'm going to murder cabal...
<clever> :D
<clever> make sure default-extensions stay dead :P
boxscape has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
hotfuzz has joined #nixos
<Myrl-saki> clever: Stupid question.
<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.
<Myrl-saki> clever: crw------- 1 nobody nogroup 10, 232 Feb 22 02:37 /dev/kvm
<avn> looks pretty bad
<clever> Myrl-saki: thats a bit weird of a mode, it allows nobody to access it, and things often use nobody to strip all privs
<avn> root:root should be
uptime has joined #nixos
<Myrl-saki> clever: For now, I just asked for qemu+binfmt from the sysadmin.
<Myrl-saki> clever: The qemu+binfmt can be installed from apt, right?
<clever> yeah
thblt has joined #nixos
<zybell_> mbrgm sorry date +%y%j ofc
nuncanada has joined #nixos
boxscape has joined #nixos
<boxscape> Can I give packages from haskellPackages cabal flags somehow?
<boxscape> thanks
<Sonarpulse> bgamari: hahaha
<Sonarpulse> I just needed git work
<Sonarpulse> gitperllib=$out/lib/perl5/site_perl
<Sonarpulse> can you make that gitperllib=$out/share/perl5/site_perl
<Sonarpulse> that is what it needs to be on mine at least
<Sonarpulse> for send-email
<Sonarpulse> I'd comment on PR but it doesn't touch that line atm
<Myrl-saki> building '/nix/store/dm2d6f0fjya9nwclz1w49z2pigcq6yp4-user-environment.drv'...
<Myrl-saki> error: unsupported builtin function 'buildenv'
<clever> Myrl-saki: pkgs.buildenv
<clever> enless that is some internal error deep within nix
<Myrl-saki> I went from 2.0.1 to 2.1pre6148
<Myrl-saki> replacing old 'nix-2.1pre6148_a4aac7f'
<Myrl-saki> installing 'nix-2.0.1'
<{^_^}> [nixpkgs] @r-ryantm opened pull request #39429 → libwebp: 0.6.1 -> 1.0.0 → https://git.io/vpZyZ
<Myrl-saki> Tried to revert
<clever> you need to use the absolute path to the old nix to revert
<dtz> that's strange, quick grep of "lib.*site_perl" shows many hits, basically none for share/
<Myrl-saki> building '/nix/store/1x8132sjn5g2smc3zwgbw9hpdy4gnqds-user-environment.drv'...
<dtz> and yeah that's an incompat introduced
<Myrl-saki> error: unsupported builtin function 'buildenv'
<dtz> means your daemon and client aren't the same
<Sonarpulse> dtz: oh interesting
<Myrl-saki> dtz: OHH
<clever> the daemon also has to be running the new version i guess
<Myrl-saki> dtz: I forgot I even had a deamon running..
<Sonarpulse> dtz: yeah i hope we can just make daemon and client always the same
<Sonarpulse> i dunno
<clever> Myrl-saki: and since you have a daemon, NIX_CONF_DIR has to be set in the context of the daemon
<clever> bbl
<Myrl-saki> clever: Thanks once again.
<clever> yep
<manveru> oh my... TIL about NIX_AUTO_RUN
<Myrl-saki> manveru: What does it do?
<manveru> it installs programs if they aren't in PATH yet
<Myrl-saki> manveru: Oh cool.
<Myrl-saki> manveru: Under a transparent nix-shell?
<manveru> well, i think it's related to command-not-found
<Myrl-saki> error: null pointer cast to ref
<Myrl-saki> error: unexpected EOF reading a line
<Myrl-saki> So....
<Myrl-saki> I have an even bigger problem.
<Myrl-saki> What's the format of nix.conf for lists?
<srhb> Myrl-saki: I'm not sure there's a generic format, but eg. substituters take http://foo http://bar ...
ryanartecona has quit [Quit: ryanartecona]
<Myrl-saki> Ah. Thanks.
<manveru> jup, space separated
<{^_^}> [nixpkgs] @r-ryantm opened pull request #39430 → kexectools: 2.0.16 -> 2.0.17 → https://git.io/vpZy5
MP2E has joined #nixos
lonokhov has joined #nixos
civodul has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #38822 → Introducing NetBSD userland → https://git.io/vxA54
<{^_^}> [nixpkgs] @matthewbauer pushed 3 commits to master: https://git.io/vpZS4
<{^_^}> → 0dc26d0e by @matthewbauer: cvs: support ssh access
<{^_^}> → 31ef995e by @matthewbauer: bsd: init netbsd & openbsd userland
<{^_^}> → ab92a474 by @matthewbauer: Merge pull request #38822 from matthewbauer/netbsd
<bgamari> Sonarpulse, not sure I follow
<Sonarpulse> bgamari: so my send-email thing didn't work
<Sonarpulse> because the wrapper script expects the perl stuff in a different directory
<bgamari> Sonarpulse, would you like me to add that like to makeFlags?
<bgamari> or am I misunderstanding?
<Sonarpulse> bgamari: there is already a lib/perl5 variable
<Sonarpulse> actually a few
<Sonarpulse> that should probably be dedup'd
<Sonarpulse> bgamari: if you want
<bgamari> ahh, I see
<Sonarpulse> you can clean up the first
<Sonarpulse> and I'll do the git one
<Sonarpulse> cause all this stuff is only a little related
<Myrl-saki> What does installCheck check for?
<angerman> Sonarpulse: a `cabal-jailbreak` alternative: https://gist.github.com/angerman/209fcac0b84a3243b0b312beb2e70ea8
<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
<{^_^}> [nixpkgs] @jtojnar pushed 3 commits to master: https://git.io/vpZ9h
<{^_^}> → d48e9ff9 by @jtojnar: liblouis: mark as broken
<{^_^}> → ddc48afc by @jtojnar: python3.pkgs.pyatspi: 2.18.0 → 2.26.0
<{^_^}> → 5979e886 by @jtojnar: orca: fix typelib lookup
sanscoeur has quit [Ping timeout: 264 seconds]
xcmw has quit [Ping timeout: 240 seconds]
<Sonarpulse> it's a valid question from bjornfor
<Sonarpulse> then I can do my perl thing
<{^_^}> [nixpkgs] @woffs opened pull request #39432 → tuxpaint: init at 0.9.22 → https://git.io/vpZHn
nocent has joined #nixos
Meptl has joined #nixos
kreisys has joined #nixos
rauno has quit [Ping timeout: 256 seconds]
fenedor has joined #nixos
<bgamari> Sonarpulse, done
<Sonarpulse> bgamari: thanks!
dbmikus_ has quit [Ping timeout: 255 seconds]
<fenedor> good morning, someone else experienced troubles when using protobuf and maven on nixos?
xcmw has joined #nixos
<{^_^}> [nixpkgs] @Ericson2314 pushed 5 commits to master: https://git.io/vpZHX
<{^_^}> → 432df5b1 by @bgamari: git: Fix USE_LIBPCRE2 configuration
<{^_^}> → ae0a14d2 by @bgamari: git: Refactor makeFlags using lib.optionals
<{^_^}> → 2d397f1b by @bgamari: git: Allow perl support to be disabled
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #39425 → Allow git to be cross-compiled → https://git.io/vpZXM
<{^_^}> [nixpkgs] @r-ryantm opened pull request #39434 → jdupes: 1.9 -> 1.10 → https://git.io/vpZHd
<Sonarpulse> gchristensen: https://github.com/NixOS/nixpkgs/pull/37401 trying to do a vote on isAarch32
fendor has quit [Ping timeout: 255 seconds]
<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> manveru: echo 'echo $PATH' | ./nix-user-chroot/nix-user-chroot ~/.nix ~/bash-nix-user-chroot
<Myrl-saki> /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
<Myrl-saki> Hmm, wait.
ryanartecona has joined #nixos
<Sonarpulse> elvishjerricco: nice!
ryanartecona has quit [Client Quit]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #39435 → grib-api: 1.26.0 -> 1.26.1 → https://git.io/vpZ7V
<Sonarpulse> were you able to utilize upstream musl stuff?
<elvishjerricco> Sonarpulse: Didn't try. Don't think it'll be relevant, really.
<Sonarpulse> ok
<Sonarpulse> do you use less musl
<Sonarpulse> if you can make an different source for musl
<Sonarpulse> for your musl
<Sonarpulse> that is far more maintainable
ryanartecona has joined #nixos
<Sonarpulse> bgamari: I made isHurd to clean up some of that old stuff
<Sonarpulse> as isGNU != platforms.gnu
ryanartecona has quit [Client Quit]
<Sonarpulse> so yeah I think it is glibc
<Myrl-saki> manveru: myrl@c:~$ export BASH_ENV=<(echo "Hi!"); cat $BASH_ENV
<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]
ryanartecona has joined #nixos
ryanartecona has quit [Client Quit]
<Myrl-saki> manveru: http://ix.io/18Ei
astiles has joined #nixos
<manveru> Myrl-saki: uh... you don't need --rcfile anymore
ryanartecona has joined #nixos
ryanartecona has quit [Client Quit]
ryanartecona has joined #nixos
<Myrl-saki> Well
<Myrl-saki> This is sad.
ryanartecona has quit [Client Quit]
<Myrl-saki> What I want to do still doesn't work. :(
<Myrl-saki> NIX_SSHOPTS="-i ~/.ssh/packet_rsa ./nix-user-chroot/nix-user-chroot ~/.nix ~/bash-nix-user-chroot" nix-copy-closure --to myrl@c.zv.io '/nix/store/26s2p8x8fkkfcdx5v5g060v33d4kgwa8-nix-2.0'
<manveru> hmm
<Myrl-saki> FWIW
<Myrl-saki> I can do
<manveru> i think i had the same issue with rsync
<Myrl-saki> myrl@myrl:~$ echo nix-store | ssh myrl@c.zv.io -i ~/.ssh/packet_rsa ./nix-user-chroot/nix-user-chroot ~/.nix ~/bash-nix-user-chroot
<Myrl-saki> error: no operation specified
<Myrl-saki> Try 'nix-store --help' for more information.
<Myrl-saki> So my wrapper script does work.
<clever> Myrl-saki: nice
astiles has quit [Ping timeout: 240 seconds]
<Myrl-saki> manveru: Also, the rc-file is required. BASH_ENV is only read on non-interactive.
<clever> Myrl-saki: i think your best bet, is to put all of that into a bash script on the remote machine, called nix-store
<clever> and stick it into PATH
<Myrl-saki> clever: lol
<Myrl-saki> clever: That should work.
<clever> and "$@" is how you forward args
jrolfs has joined #nixos
<Myrl-saki> Well... I don't have a $HOME subdir in $PATH. Dammit. :/
<Myrl-saki> What kind of shell does ssh spawn?
<srhb> Myrl-saki: The login shell.
<Myrl-saki> srhb: That means it run profile, right?
<srhb> Myrl-saki: Depends!
<Myrl-saki> srhb: GAH
<clever> Myrl-saki: bash will read either ~/.profile or ~/.bashrc, even for non-interactive shells
<clever> Myrl-saki: so you can mess with PATH all you want
<srhb> Myrl-saki: :P I mean, depends if you're just running a command or actually opening an interactive session and which shell it is
<clever> Myrl-saki: oh, also, authorized_keys magic
<clever> Myrl-saki: one min
<Myrl-saki> srhb: Ohh. :P
<srhb> Myrl-saki: Yeah, nothing horrific.
<Myrl-saki> clever: Okay, good news. Turns out the .profile does have a check for $HOME/bin, it just doesn't add it to PATH if it doesn't exist.
<clever> Myrl-saki: if you prefix an ssh pubkey with command="...."
<clever> then sshd will force the shell to always run that command
<clever> no mater what the remote user asked for
<clever> that can just be stuck into ~/.ssh/authorized_keys
<Myrl-saki> clever: Oh okay, thanks. I'll bookmark that.
<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.
mkoenig_ has joined #nixos
jperras has quit [Ping timeout: 268 seconds]
mkoenig has quit [Ping timeout: 256 seconds]
<Myrl-saki> clever: So, I did your suggestion.
<Myrl-saki> myrl@myrl:~$ NIX_SSHOPTS="-i ~/.ssh/packet_rsa" nix-copy-closure --to myrl@c.zv.io '/nix/store/26s2p8x8fkkfcdx5v5g060v33d4kgwa8-nix-2.0'
<Myrl-saki> sh: 1: nix-store: not found
<Myrl-saki> myrl@myrl:~$ echo nix-store | ssh -i .ssh/packet_rsa myrl@c.zv.io
<Myrl-saki> Try 'nix-store --help' for more information.
<Myrl-saki> In other words.
<Myrl-saki> Wtf?
<clever> Myrl-saki: and what is the contents of ~/.ssh/authorized_keys ?, and is an ssh agent active?
<clever> Myrl-saki: also, what about `ssh -i .ssh/packet_rsa myrl@c.zv.io nix-store`
<Myrl-saki> clever: I did not try the ~/.ssh/authorized_keys/ yet.
jperras has joined #nixos
<Myrl-saki> clever: Yeah, that one doesn't work.
<clever> thats the most similar to what nix does
<clever> try adding -t to ssh
<clever> i have a theory
<clever> ssh -t -i .ssh/packet_rsa myrl@c.zv.io nix-store
<Myrl-saki> clever: Still not found.
<Myrl-saki> If only strace works through ssh. :(
<clever> try adding echo to both .bashrc and .profile
<clever> and then do the ssh again
<Myrl-saki> clever: Profile doesn't get sourced..
xAFFE has left #nixos ["Error from remote client"]
<Myrl-saki> bashrc doesn't either, because my default shell is sh.
<clever> ahh
srdqty has quit [Ping timeout: 264 seconds]
<clever> your shell is wrong, i see
<clever> try the authorized_keys thing then
<Myrl-saki> Thanks, I'll give that a try.
<Myrl-saki> clever: Where do I add it?
<Myrl-saki> Wait
<Myrl-saki> Let me just pastebin it
srdqty has joined #nixos
<clever> Myrl-saki: command="/home/foo/wrappers/nix-store" ssh-rsa giant-ass-base64-blob
<clever> you just need a line like that in authorized_keys
<Myrl-saki> clever: I think my .profile's not getting sourced now.
<Myrl-saki> I set it to
<Myrl-saki> `command="/bin/bash"
<clever> i dont think it counts as a login shell when you do that
<clever> bash sources different files depending on if its login or not
<Myrl-saki> No worries. I can just force login shell
<clever> its probably /bin/bash -l
robstr has quit [Quit: WeeChat 1.9.1]
<Myrl-saki> Good, sources both now.
<Myrl-saki> Moment of truth.
astiles has joined #nixos
<Myrl-saki> giffmeabreak
<Myrl-saki> clever: It sources both... then won't proceed.
<Myrl-saki> myrl@myrl:~$ ssh -i .ssh/packet_rsa myrl@c.zv.io nix-store
<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> profile
<Myrl-saki> bashrc
<{^_^}> [nixpkgs] @rycee pushed to master « eclipse-plugin-spotbugs: 3.1.2 -> 3.1.3 »: https://git.io/vpZNV
<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
<{^_^}> [nixpkgs] @rycee pushed to release-18.03 « eclipse-plugin-spotbugs: 3.1.2 -> 3.1.3 »: https://git.io/vpZNp
ryanartecona has joined #nixos
<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...
<clever> that has a different command on it
<Myrl-saki> clever: I think I know some scripts.
<clever> phase b: how to hack your own server!
<Myrl-saki> Haha. :D
<Myrl-saki> myrl@myrl:~$ ssh -i .ssh/packet_rsa myrl@c.zv.io './bash-nix-user-chroot'
<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
Meptl has quit [Quit: Page closed]
<Myrl-saki> nix-repl> pkgs.writeScriptBin "plsrunbash" "exec bash"
<clever> :D
Arcaelyx has quit [Ping timeout: 276 seconds]
Ariakenom has quit [Read error: Connection reset by peer]
<clever> also :b it
lonokhov has quit [Quit: WeeChat 2.0]
<Myrl-saki> clever: :b?
<jack[m]> nix-instantiate killed by signal 7 # :(
<jack[m]> ... that's a first.
<clever> Myrl-saki: :b pkgs.writeScriptBin "plsrunbash" "exec bash"
<Myrl-saki> clever: There's nothing in the binary
Arcaelyx_ is now known as Arcaelyx
<Myrl-saki> Oh, I needed a newline.
<clever> it proably also needs a #!
<Myrl-saki> Oh wait, I don't need a newline. Must be a zsh bug.
<Myrl-saki> "bug" rather.
<Sonarpulse> bgamari: btw I cannot build git now
<clever> also of note, bash cheats
<Myrl-saki> clever: Oh god
<Sonarpulse> even with just your changes
<Sonarpulse> something to do with the manual install
<Sonarpulse> with or without perl
<Myrl-saki> clever: I only have nix-store available.
<clever> Myrl-saki: if you try to ./foo a +x'd file, that lacks a #!, bash will run itself on the file!
<Myrl-saki> This is almost impossible, I think.
<Myrl-saki> I also don't have --help and such.
<clever> the args are restricted
ambro718 has quit [Quit: Konversation terminated!]
<Myrl-saki> FWIW, I structured it as `/bin/bash < $SSH_ORIGINAL`
<Myrl-saki> Maybe I can use a heredoc?
<clever> maybe
<clever> oh
<clever> what about /dev/tty
<clever> then it will redirect in the current tty
<Myrl-saki> sh: 1: cannot open /dev/tty: No such device or address
<clever> or /dev/stdin
leat has quit [Ping timeout: 256 seconds]
<Myrl-saki> YES
<Myrl-saki> clever: Holy shit you're a genius
<clever> :D
asuryawanshi has quit [Ping timeout: 255 seconds]
<Myrl-saki> Now I just have to make sure I don't fuck things up even more
<Myrl-saki> Such as deleting my pubkey list.
troydm has joined #nixos
<bgamari> Sonarpulse, really?
<bgamari> oh dear
<Sonarpulse> bgamari: could have well been some other master change
<Sonarpulse> it doesn't look perl related
<{^_^}> [nixpkgs] @basvandijk opened pull request #39437 → source-and-tags: fix default.nix → https://git.io/vpZpR
<{^_^}> [nixpkgs] @shosti opened pull request #39438 → minikube: Add the kvm2 driver → https://git.io/vpZpd
jrolfs_ has quit [Ping timeout: 248 seconds]
ijsicle has quit [Quit: ZNC - http://znc.in]
jperras has quit [Quit: WeeChat 2.1]
sie has joined #nixos
jrolfs_ has joined #nixos
sie is now known as Guest16804
Guest16804 has quit [Client Quit]
<{^_^}> [nixpkgs] @Ma27 opened pull request #39439 → clementine: each output should hav a wrapped `GST_PLUGIN_SYSTEM_PATH_1_0` → https://git.io/vpZha
shabius has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c merged pull request #39421 → librem: 0.5.2 -> 0.5.3 → https://git.io/vpZPx
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/vpZhw
<{^_^}> → 78a2238c by R. RyanTM: librem: 0.5.2 -> 0.5.3
<{^_^}> → d3d41b51 by @7c6f434c: Merge pull request #39421 from r-ryantm/auto-update/librem
sud0x3 has joined #nixos
sud0x3 has quit [Client Quit]
leat has joined #nixos
nur0n0 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #39440 → electrum-ltc: 3.1.2.1 -> 3.1.3.1 → https://git.io/vpZjl
thblt has quit [Ping timeout: 240 seconds]
alex`` has quit [Ping timeout: 240 seconds]
<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
lord| has joined #nixos
<Myrl-saki> clever: but copy-closure is still rip
<samueldr> hi, still not used to hydra's UI, am I right in assuming that in https://hydra.nixos.org/job/nixos/release-18.03/tested#tabs-constituents , the leftmost column is the latest channel update being tested, and that it's only waiting on chromium?
<LnL> why am I rebuilding git?
<srhb> samueldr: Yes.
<srhb> samueldr: (And for the evaluation to be complete, if you're thinking about channel bumps)
<samueldr> is there a location to see the progress of that evaluation?
<samueldr> thanks!
<samueldr> oh, so in this particular case, it *is* only waiting on chromium?
<srhb> samueldr: You get there by clicking on the build number at the top of the column, then Part of: evaluation XXXX, then queued jobs
<srhb> samueldr: Yes.
<srhb> samueldr: Just wanted to point out the extra gotcha :)
<samueldr> yes! thanks, one day, it'll be second nature
sanscoeu_ has quit [Remote host closed the connection]
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
hiratara has quit [Ping timeout: 255 seconds]
Mateon3 has joined #nixos
sanscoeur has joined #nixos
Mateon1 has quit [Ping timeout: 260 seconds]
Mateon3 is now known as Mateon1
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
rauno has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer pushed to master « netbsd: small fixups »: https://git.io/vpner
hiratara has joined #nixos
jtojnar has quit [Quit: jtojnar]
astiles has quit [Read error: Connection reset by peer]
jtojnar_ has joined #nixos
<Myrl-saki> clever: Ping
<clever> pong
<Myrl-saki> clever: How can I do the binfmt without nix-daemon?
<Myrl-saki> clever: I alwqays get this error. error: null pointer cast to ref
<Myrl-saki> error: unexpected EOF reading a line
<Myrl-saki> If using nix-daemon.
astiles has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #39441 → mesa, libglvnd, xorg: disable tls w/musl → https://git.io/vpneb
<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'
<freeman42x]NixOS> what does `nix-shell -A env` do? (I get what nix-shell does but not the -A env bit) following instructions here: https://github.com/srid/miso-viso#development
<clever> Myrl-saki: did you set NIX_CONF_DIR to point to a dir with nix.conf?
jrolfs_ has quit [Ping timeout: 260 seconds]
<Myrl-saki> Yeah
<clever> Myrl-saki: and what is in that nix.conf?
jrolfs_ has joined #nixos
sanscoeur has quit [Remote host closed the connection]
<Myrl-saki> clever: I feel stupid.
<iitalics> where can i find out how configuration.nix works? or should i just dig through the nix source code
astiles has quit [Remote host closed the connection]
<Myrl-saki> clever: All these times, I had armv7l, not armv7l-linux
<{^_^}> [nixpkgs] @dtzWill opened pull request #39443 → libnfsidmap: add missing include, fix w/musl → https://git.io/vpnvE
<clever> iitalics: and line 7 of the same file
astiles has joined #nixos
<iitalics> clever: thanks
ma27 has quit [Ping timeout: 255 seconds]
fendoer has joined #nixos
astiles has quit [Remote host closed the connection]
astiles has joined #nixos
<neonfuz> what do you guys set fonts.fonts to? just curious
<Myrl-saki> clever: What does installCheck do with Nix? It fails on Linux user namespaces.
<neonfuz> or like, is there any discussion of this / recommendations anyone has?
<clever> Myrl-saki: its just a check phase that runs after the install phase
astiles has quit [Remote host closed the connection]
<clever> by default, it runs `make installcheck`
astiles has joined #nixos
fenedor has quit [Ping timeout: 264 seconds]
sanscoeur has joined #nixos
<Myrl-saki> clever: Does nix-copy-closure require a daemon?
<clever> nope
<clever> the nix-store process it launches can write directly to the store
astiles has quit [Remote host closed the connection]
<Myrl-saki> myrl@myrl:~$ NIX_SSHOPTS="-i ~/.ssh/packet_nix_rsa" nix-copy-closure --to myrl@c.zv.io '/nix/store/26s2p8x8fkkfcdx5v5g060v33d4kgwa8-nix-2.0' -v
<Myrl-saki> error: unexpected end-of-file
<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
<{^_^}> [nixpkgs] @r-ryantm opened pull request #39444 → eccodes: 2.7.0 -> 2.7.3 → https://git.io/vpnf4
<Unode> clever: the symlink is created with: nix-build
<clever> as long as ~/roots/hello exists
astiles has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #39445 → tcp_wrappers: minor fixes, patch to fix includes, fix w/musl → https://git.io/vpnfR
<clever> if you move the symlink, that magic is broken
<clever> renaming also breaks it
ZaraChimera has left #nixos ["Herding cats."]
<Unode> example: nix-build 'channel' -A package -o package/version
<clever> that should never disapear
<Myrl-saki> clever: Is NIX_SSHOPTS also valid for other commands that use SSH?
<Unode> The one I noticed today was datamash/1.1.1
<clever> Myrl-saki: you can also use ~/.ssh/config to set options per-hostname
xcmw has joined #nixos
<Unode> clever: I figured as much...
<clever> Myrl-saki: you can even change the ip it connects to, so the hostname becomes just an alias
<clever> Unode: the only way i can see things breaking, is if the FS containing package/version isnt mounted when you run a GC
<clever> then the symlinks will temporarily not exist, and "oh, you dont need this anymore"
<{^_^}> [nixpkgs] @dtzWill merged pull request #39442 → glibc: use local copy of patch to fix w/musl → https://git.io/vpneh
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/vpnfX
<{^_^}> → 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?
fiatjaf has joined #nixos
<clever> which ignores those symlinks
astiles has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @dtzWill merged pull request #39441 → mesa, libglvnd, xorg: disable tls w/musl → https://git.io/vpneb
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/vpnfF
<{^_^}> → 64c2e058 by @dtzWill: mesa, libglvnd, xorg: disable tls w/musl
<{^_^}> → 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
<{^_^}> [nixpkgs] @dtzWill closed pull request #39443 → libnfsidmap: add missing include, fix w/musl → https://git.io/vpnvE
<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
<Dezgeg> system crashes?
sie is now known as Guest14731
<clever> Myrl-saki: nice
<Myrl-saki> clever: myrl@c:~$ NIX_REMOTE= nix build '(import <nixpkgs> { overlays = [ (import ./nixos-configs/overlays/qemu-user.nix)]; system="armv7l-linux"; }).gcc' --cores 48 --max-jobs 8
<clever> lol
<Myrl-saki> The last 2 jobs look so satisfying
<Myrl-saki> s/jobs/options/
<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
<{^_^}> [nixpkgs] @dtzWill opened pull request #39448 → nfs-utils, tcp_wrappers, libnfsidmap: cleanup, fix w/musl → https://git.io/vpnUW
<freeman42x]NixOS> dmj`, no, this is just a nick
hiratara has quit [Quit: ZNC - http://znc.in]
mizu_no_oto has joined #nixos
<dmj`> freeman42x]NixOS: are you on master?
<freeman42x]NixOS> dmj`, I am on master of: https://github.com/srid/miso-viso#development
jgt3 has joined #nixos
<{^_^}> [nixpkgs] @timokau opened pull request #39449 → pythonPackages.entrypoints: Fix buildInputs → https://git.io/vpnUE
<freeman42x]NixOS> commit 5711c3b7eb42ee3ec3038dd0d59e81e03672b93e
ryanarte_ has quit [Quit: ryanarte_]
<dmj`> freeman42x]NixOS: he’s not pinning nixpkgs it seems, https://github.com/srid/miso-viso/blob/master/default.nix
<dmj`> freeman42x]NixOS: I’d pin nixpkgs with the same version miso has in miso/default.nix
hiratara has joined #nixos
* srid waves
ma27 has joined #nixos
* dmj` waves back
<{^_^}> [nixpkgs] @r-ryantm opened pull request #39450 → baresip: 0.5.8 -> 0.5.9 → https://git.io/vpnU6
<srid> That repo has 5 stars? there is basically no code on it
<freeman42x]NixOS> dmj`, I don't really know how to pin them, are they pinned here? https://github.com/FPtje/miso-isomorphic-example
jgt2 has quit [Ping timeout: 265 seconds]
spietz has quit [Ping timeout: 264 seconds]
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
<freeman42x]NixOS> srid, to pin them though I would need a working combination of them thoough wouldn't I? :)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #39451 → appstream-glib: 0.7.7 -> 0.7.8 → https://git.io/vpnUF
<iitalics> where is 'mkIf' documented?
<srid> dmj`: Is reflex-platform a supported way to get miso up and running? Just curious.
<clever> iitalics: its not really documented, but ctrl+f this file for mkif: https://github.com/NixOS/nixpkgs/blob/master/lib/modules.nix#L463-L468
<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.
<dmj`> freeman42x]NixOS: copy these lines to srid’s example, https://github.com/dmjio/miso/blob/master/default.nix#L1-L6
<{^_^}> [nixpkgs] @Mic92 pushed to master « dino: 2018-03-10 -> 2018-04-19 »: https://git.io/vpnT2
fendoer has quit [Quit: Leaving]
<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
<{^_^}> [nixpkgs] @Mic92 pushed to master « dino: fix checksum »: https://git.io/vpnT7
astiles has quit [Ping timeout: 248 seconds]
ryantrinkle has joined #nixos
<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?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #39454 → armadillo: 8.400.0 -> 8.500.0 → https://git.io/vpnkF
<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
dbmikus_ has joined #nixos
athan has quit [Ping timeout: 240 seconds]
justanotheruser has quit [Quit: WeeChat 1.9.1]
xcmw has joined #nixos
<freeman42x]NixOS> dmj`, it doesn't have to be the isomorphic example, any example that would work with GHCJSi would do
justanotheruser has joined #nixos
<jtojnar> kuri0: where are you getting the gnome aarch64 errors?
<dmj`> freeman42x]NixOS: clone miso, cd into sample-app, nix-shell -A env
dbmikus_ has quit [Ping timeout: 248 seconds]
<dmj`> freeman42x]NixOS: the readme will guide through this as well
<freeman42x]NixOS> dmj`, I recall trying that but didn't know how to get it running, I was geting document undefined, will try again
commander has quit [Remote host closed the connection]
<dmj`> freeman42x]NixOS: or just call nix-build inside of sample-app
<{^_^}> [nixpkgs] @7c6f434c merged pull request #39450 → baresip: 0.5.8 -> 0.5.9 → https://git.io/vpnU6
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to master: https://git.io/vpnIC
<{^_^}> → cdca2710 by @7c6f434c: Merge pull request #39450 from r-ryantm/auto-update/baresip
<{^_^}> → 85161629 by R. RyanTM: baresip: 0.5.8 -> 0.5.9
<freeman42x]NixOS> when running nix-shell -A env unser sample-app: error: attribute 'env' in selection path 'env' not found
ryanartecona has joined #nixos
iitalics has quit [Quit: WeeChat 2.1]
<{^_^}> [nixpkgs] @Ekleog opened pull request #39455 → matterbridge module: add configPath option as a workaround, waiting for nix encryption → https://git.io/vpnIV
<freeman42x]NixOS> dmj`, after a successful build: https://i.imgur.com/DiGDI4s.png
<{^_^}> [nixpkgs] @endgame opened pull request #39456 → haskellPackages.base-compat-batteries: fix bad dependency → https://git.io/vpnI6
<dmj`> freeman42x]NixOS: can you ls the contents of result/bin
<dmj`> freeman42x]NixOS: how did you build?
ma27 has quit [Ping timeout: 256 seconds]
<freeman42x]NixOS> dmj`, it also has a app.jsexe in it
<freeman42x]NixOS> dmj`, I built via nix-build
<dmj`> freeman42x]NixOS: shouldn’t happen in app.jsexe/index.html
<{^_^}> [nixpkgs] @matthewbauer merged pull request #39451 → appstream-glib: 0.7.7 -> 0.7.8 → https://git.io/vpnUF
jrolfs_ has quit [Ping timeout: 255 seconds]
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/vpnIy
<{^_^}> → b5bfd8a1 by R. RyanTM: appstream-glib: 0.7.7 -> 0.7.8
<{^_^}> → a8fc9514 by @matthewbauer: Merge pull request #39451 from r-ryantm/auto-update/appstream-glib
<dmj`> app can be ignored
<dmj`> but app.jsexe should work
mkoenig has joined #nixos
astiles has joined #nixos
<zybell_> Myrl-saki: btw sh uses ENV where bash uses BASH_ENV (and interactive too)
jrolfs_ has joined #nixos
<freeman42x]NixOS> dmj`, am I supposed to open index.html in a browser or how does it work? bash: ./index.html: Permission denied
<dmj`> freeman42x]NixOS: yes
blankhart has quit [Ping timeout: 255 seconds]
<dmj`> freeman42x]NixOS: you can’t modify it since its immutable in /nix/store
mkoenig_ has quit [Ping timeout: 256 seconds]
<freeman42x]NixOS> dmj`, yes, it is working, showing a simple page with 2 +-buttons and a number
<dmj`> freeman42x]NixOS: great.
<freeman42x]NixOS> yeah, but it still can't do: https://github.com/srid/miso-viso#development
<freeman42x]NixOS> for fast development which is what I was looking into
<srid> nowadays I use ghcid for even fast dev cycle (no need to fiddle with ghci).
orivej_ has quit [Ping timeout: 248 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #39449 → pythonPackages.entrypoints: Fix buildInputs → https://git.io/vpnUE
<dmj`> freeman42x]NixOS: why not?
<{^_^}> [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?
<freeman42x]NixOS> but if it is pinned then how can it not be working? I don't get it
vandenoever has quit [Ping timeout: 268 seconds]
<freeman42x]NixOS> I am talking about using nix-shell -A env
epta has quit [Ping timeout: 256 seconds]
jrolfs_ has joined #nixos
ericnoan has quit [Ping timeout: 256 seconds]
Guest14731 has quit [Ping timeout: 264 seconds]
sie has joined #nixos
sie is now known as Guest34963
<{^_^}> [nixpkgs] @jtojnar pushed to staging « gdk_pixbuf: 2.36.7 → 2.36.12 »: https://git.io/vpnqp
<dmj`> freeman42x]NixOS: so am I, it is working
boxscape has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<freeman42x]NixOS> well, I don't know what to do. It should be working but it is not
<dmj`> freeman42x]NixOS: call ‘nix-shell -A env’ and paste your output
<freeman42x]NixOS> dmj`,
<dmj`> freeman42x]NixOS: what does `git rev-parse --verify HEAD` tell you
<freeman42x]NixOS> 70b097f7295fc566524022766af4f622202abcd5
<{^_^}> [nixpkgs] @Mic92 pushed to master « alacritty: 2018-03-04 -> 2018-04-1 »: https://git.io/vpnmB
ericnoan has joined #nixos
ericnoan has quit [Changing host]
ericnoan has joined #nixos
<dmj`> freeman42x]NixOS: does env exist anywhere for you?
ryantrinkle has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @dtzWill merged pull request #39453 → git: Set PERL_PATH when building manual → https://git.io/vpnkR
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/vpnmE
<{^_^}> → b26ae506 by @bgamari: git: Set PERL_PATH when building manual
<dmj`> freeman42x]NixOS: call nix-instantiate -E '(import <nixpkgs> {}).haskell.packages.ghcjs.aeson.env’
<{^_^}> → de40a77d by @dtzWill: Merge pull request #39453 from bgamari/fix-git
blankhart has joined #nixos
<dmj`> freeman42x]NixOS: well, that’s the wrong version of nixpkgs, but maybe you’re overrides are killing env
<dmj`> your*
<freeman42x]NixOS> dmj`, that put me into some shell, I don't know what env is
<dmj`> freeman42x]NixOS: do you have any custom overrides?
<freeman42x]NixOS> dmj`, I don't know what that means or how to check it
<dmj`> cat ~/.config/nixpkgs/config.nix or cat ~/.nixpkgs/config.nix