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
<{^_^}> [nixpkgs] @ajs124 opened pull request #38663 → texstudio: 2.12.6 -> 2.12.8 → https://git.io/vxdI9
thc202 has quit [Ping timeout: 268 seconds]
katona has quit [Quit: Connection closed for inactivity]
macros has joined #nixos
telent has quit [Ping timeout: 255 seconds]
dan_b has quit [Ping timeout: 265 seconds]
cufisz has joined #nixos
cufisz_ has quit [Ping timeout: 260 seconds]
boomshroom has quit [Ping timeout: 256 seconds]
boomshroom has joined #nixos
kmicklas has quit [Ping timeout: 268 seconds]
<boomshroom> It was taking too long and thrashing too much.
<zybell_> boomshroom: Maybe you want to get https://elephly.net/posts/2017-01-09-bootstrapping-haskell-part-1.html working. The idea is to compile ghc with another compiler.
Lisanna has joined #nixos
ottidmes has quit [Ping timeout: 256 seconds]
<fearlessKim[m]> The example here is not literal since you have to change the number of quotes from 3 to 2 https://github.com/NixOS/nixpkgs/blob/62658a37e37f5a2f735a3f0e32c20e5c900ded55/nixos/modules/system/activation/activation-script.nix#L38
<Lisanna> Does Nix seamlessly convert nix~case~hack files back to what they're supposed to be when copying to a linux nix store?
<Lisanna> answer: no <_<
<Lisanna> is this a bug?
<puffnfresh> Lisanna: I've had this problem, super annoying, yes I think it's a bug
<puffnfresh> think I did a repair path or something on it, got fixed
<Lisanna> Oh no wait, nevermind! Was logged in to the wrong machine x_x
<{^_^}> [nixpkgs] @bcdarwin opened pull request #38664 → MINC ecosystem → https://git.io/vxdty
<{^_^}> [nixpkgs] @bcdarwin closed pull request #29782 → several MINC additions/updates in separate commits: libminc, minc-tools, minc-widgets, N3, inormalize, EBTKS, mni_autore… → https://git.io/vdIYI
<Lisanna> It looks like it does in fact convert it seamlessly
<puffnfresh> Lisanna: ah I must have hit it some other way
<Lisanna> thank god
<Lisanna> since there's currently no way to override use-case-hack and I'm on darwin with a case-sensitive filesystem >_>
sigmundv__ has quit [Ping timeout: 256 seconds]
daveo has joined #nixos
<daveo> Hi all. I have an Nvidia GeForce 1050 TI and I'm trying to get it to work with NixOS
<Lisanna> daveo there are unfree nvidia drivers available for nixos
<Lisanna> I think that services.xserver.videoDrivers = [ "nvidia" ]; will work
<daveo> did not work
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
<daveo> I got a blank screen
<day|flip> nixpkgs.config.allowUnfree = true;
<day|flip> ?
<daveo> I think that will work
<daveo> I didn't have driSupport32Bit
sanscoeur has quit [Ping timeout: 260 seconds]
<daveo> I'll let you know if it works. Thanks Lisanna and day|flip
daveo has quit [Quit: Page closed]
johnw has quit [Ping timeout: 264 seconds]
<fearlessKim[m]> I am trying to use system.activationScripts but the doc is not super useful, I tried different things but it ends up with an error when it tries to merge the values: while evaluating 'check' at /home/teto/nixpkgs/lib/types.nix:230:15 see http://nixpaste.lbr.uno/vRLFca0K?nix
odites has joined #nixos
justanotheruser has quit [Read error: Connection reset by peer]
<gchristensen> fearlessKim[m]: I think just this: http://nixpaste.lbr.uno/n30J6BG1?nix
justanotheruser has joined #nixos
mbrgm has quit [Ping timeout: 265 seconds]
mbrgm has joined #nixos
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
<fearlessKim[m]> gchristensen: thanks let me reboot, I was using nix master and it seems to trigger unrelated errors " opening file '/nix/store/l1xhjbyjkyhyrmd860p01xjcbhd8x12j-pcre2-10.23.drv': Unknown error 4094"
<clever> fearlessKim[m]: also, environment.etc can be used to make a symlink to do all of that
<gchristensen> O.o
Supersonic112 is now known as Supersonic
<fearlessKim[m]> clever: Network manager needs to write into /etc/iproute2/rt_table for source routing so the symlink won't work
<clever> ah, there are some mode things in environment.etc you can use
<fearlessKim[m]> or rather than networkmanager, I like my (networkmanager) scripts to create routing table names in /etc/iproute2/rt_table
<clever> symlinks cant be chmod'd, so nixos will copy the file for you and chmod
jrolfs_ has quit [Ping timeout: 260 seconds]
odites has quit [Quit: Konversation terminated!]
<zybell_> you can symlink and the patch, patch will create a real file (with the right options)see man patch.
<zybell_> you can symlink and *then* patch, patch will create a real file (with the right options)see man patch.
<fearlessKim[m]> hum dunno if installing nix from master generated it but after seleting the bootloader entry I get a black screen even with old configurations :(
<fearlessKim[m]> (typing from anotehr computer)
jrolfs_ has joined #nixos
<zybell_> immediately or does it boot first?
<fearlessKim[m]> I select the boot entry, then immediately afterwards black screen and nothing popping up (usually takes 2/3 sec to get to login screen)
<fearlessKim[m]> time to get a usb key
ericsagnes has joined #nixos
<gchristensen> sometimes it takes my computer a minute or so on a black screeen to boot
pxc has joined #nixos
<zybell_> Dont know if nixos has a debug switch in initrd?
<day|flip> my only problem I'm having when it come to config is deviceSection = '' add Xorg config options '' and driver and boot into tty and and get EE in journal log
<zybell_> Could be a good idea to press e on the boot entry.
<fearlessKim[m]> it might be that I symlink /dev/root to the wrong disk, will try to boot with verbose mode
<zybell_> clever is that merged?
<fearlessKim[m]> in a testing activationScript intended for a VM but picked up by the host. Not sure though
<clever> fearlessKim[m]: why do you need a /dev/root symlink?
<clever> zybell_: that is just the latest version of the script
<zybell_> I noted no debug, but debugtrace. Should make it less black;-)
justanotheruser has quit [Quit: WeeChat 1.9.1]
<fearlessKim[m]> clever: because I start VMs without initrd so nixos never creates /dev/root until I do it myself
justanotheruser has joined #nixos
<fearlessKim[m]> well with debug boot.shell_on_fail it's still black, gotta try debugtrace :)
jrolfs_ has quit [Ping timeout: 265 seconds]
jrolfs_ has joined #nixos
<fearlessKim[m]> strange, I edit the boot command to have nosplash debug -- boot.shell_on_fail boot.debugtrace but still pitch black
<clever> fearlessKim[m]: do you even need a /dev/root ?
iqubic has joined #nixos
<clever> fearlessKim[m]: try adding debug as well
iqubic has left #nixos [#nixos]
jrolfs has joined #nixos
iqubic has joined #nixos
<fearlessKim[m]> clever: nix uses /dev/root for some things so nixops deploy will fail without one
<clever> fearlessKim[m]: id say thats a bug and it should just be using the right device
<clever> fearlessKim[m]: where do you see it using /dev/root?
jrolfs_ has quit [Ping timeout: 240 seconds]
<fearlessKim[m]> I use the systemd bootloader I think, is it normal it doesn't have any vmlinuz in the command ?
jrolfs has quit [Ping timeout: 240 seconds]
<fearlessKim[m]> it defines systemConfig= initrd= init=.. but there is no path to a kernel
<adisbladis[m]> fearlessKim: Nothing like `linux /efi/nixos/36qqaqb5yl9v3iqnjg3gax44dxvdd93a-linux-4.14.22-bzImage.efi` ??
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @jbboehr opened pull request #38665 → nixos/cockroachdb: create service → https://git.io/vxdOo
<fearlessKim[m]> nope lol, and I haven't touched anything related to boots
Lisanna has quit [Remote host closed the connection]
<zybell_> the problem is that debugtrace is written 'debugtrace' in stage1,but 'boot.debugtrace' in stage2.
<zybell_> at least in the version Clever linked to.
<fearlessKim[m]> it gives me an occasion to update the corporate windows I haven't booted in the last 6 months
<{^_^}> [nixpkgs] @baroncharlus opened pull request #38667 → Add stubby resolver daemon service module → https://git.io/vxd33
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
palo has quit [Client Quit]
<cufisz> Hey all, I've added "python27Packages.pyqt4" to my environment.systemPackages but can't import it in the python shell. Any ideas?
<adisbladis[m]> cufisz: Hey! Python packages should generally not be included in `environment.systemPackages`. Why did you put it there? What do you want to accomplish?
<cufisz> Woah. Why not?
blankhart has quit [Ping timeout: 255 seconds]
<cufisz> (I was trying to get qpaeq working to control sound)
infinisil has quit [Ping timeout: 240 seconds]
zipper has quit [Ping timeout: 256 seconds]
<day|flip> ya why not. same question came up when this guy/girl did this. https://i.imgflip.com/1k34u0.jpg
<adisbladis[m]> cufisz: It's documented here https://nixos.org/nixpkgs/manual/#using-python
Unode has quit [Ping timeout: 256 seconds]
puckipedia has quit [Ping timeout: 256 seconds]
<adisbladis[m]> cufisz: If you want a python interpreter where you can import pyqt4 you would probably want to use `nix-shell` like `nix-shell -p 'python2.withPackages (ps: [ ps.pyqt4 ])'`
<cufisz> ok, thanks for the pointer, will read up on it!
raving has quit [Ping timeout: 240 seconds]
<zybell_> Because they (python is) are linked against -ldl. that must be handled specially or results in bugs. in system is harder to get right.
infinisil has joined #nixos
<fearlessKim[m]> and now udiskie I wanted to use to mount the key doesn't want to mount the key. Oh go linux I love you
<fearlessKim[m]> even though it works manually
<adisbladis[m]> fearlessKim: Me and auto-mounting never became good friends..
<adisbladis[m]> Too much scary magic going on
<zybell_> module not in initrd?
zipper has joined #nixos
<zybell_> udisk doesn't touch anything thats in /etc/fstab.
<fearlessKim[m]> adisbladis: It's not automounting, I use the systray icon so that I can click to mount it
<adisbladis[m]> fearlessKim: Ahh. Less scary :)
puckipedia has joined #nixos
<fearlessKim[m]> zybell_: syslog says "unhandled device" but I won't fix it today :D
jrolfs has joined #nixos
winsome has joined #nixos
<winsome> I'm looking to modify a package and I'm wondering how that's done.
<winsome> And I see that it has this note:
<winsome> > optional packages-- override the variables ending in 'Support' to enable or disable modules
<winsome> how do I do that? what's the vocabulary word I'm looking for? I'm willing to read documentation, but I'm not sure where to start
pxc has quit [Ping timeout: 265 seconds]
Unode has joined #nixos
raving has joined #nixos
<clever> winsome: pkgs.polybar.override { githubSupport = true; }
<winsome> and that goes in environment.systemPackages?
<clever> you can either put (polybar.override { githubSupport = true; }) into systemPackages
<clever> or do nixpkgs.packageOverrides = pkgs: { polybar = pkgs.polybar.override { githubSupport = true; }; };, which will change what pkgs.polybar refers to elsewhere
johnw has joined #nixos
sehqlr has quit [Ping timeout: 268 seconds]
<winsome> clever: thanks! that worked wonderfully
johnw has quit [Ping timeout: 260 seconds]
<winsome> And now I see 6.1.1. Customising Packages in the manual, which should make for some nice further reading
<winsome> thanks again!
pxc has joined #nixos
sehqlr has joined #nixos
boomshroom has quit [Quit: WeeChat 2.0]
johnw has joined #nixos
<clever> winsome: yep
iqubic has quit [Remote host closed the connection]
tertle||eltret has quit [Quit: Connection closed for inactivity]
ivanivan has joined #nixos
pie__ has quit [Ping timeout: 276 seconds]
<ivanivan> How can I install a gnome shell extension? Specifically nohotcorner:
<ivanivan> I tried simply adding nohotcorner to my environment.system-packages
srdqty has quit [Ping timeout: 265 seconds]
srdqty has joined #nixos
<ivanivan> ah, I think I found it: gnomeExtensions.nohotcorner
jperras has quit [Ping timeout: 240 seconds]
<ivanivan> yes, it works!
ivanivan has quit [Quit: WeeChat 2.0]
frostspanner has joined #nixos
<fearlessKim[m]> I am trying to fixup my boot problem via rebuilding the config. So I am on a live nixos from usb key, and did a chroot on my SSD partition where nixos is installed. When I try to do nix operations it complains about not being booted with systemd, no /proc/stat and operation not permitted, what's the path you would recommand ? follow the install process and rebuild afterwards ?
<{^_^}> [nixpkgs] @matthewbauer opened pull request #38668 → Revert "zfs, spl: 0.7.6 -> 0.7.7" → https://git.io/vxdcz
srdqty has quit [Ping timeout: 256 seconds]
<fearlessKim[m]> oh the manual mentions nixos-enter, never seen that one
day|flip has quit [Remote host closed the connection]
srdqty has joined #nixos
<clever> fearlessKim[m]: nixos-install --chroot got turned into nixos-enter
<clever> fearlessKim[m]: also, you only want to use `nixos-rebuild boot` when doing that, and /boot has to be mounted
<fearlessKim[m]> clever: I ran it and it found my partition correctly . what trick did it use ?
<clever> nixos-enter requires that you mount your root to /mnt and your boot to /mnt/boot
<clever> and if your store is in its own fs, that has to also be mounted
<clever> then nixos-rebuild boot should work
<fearlessKim[m]> ok thanks
<fearlessKim[m]> I have to mount the /boot folder before doing nixos-enter ? I have an error otherwise ? (wrong fs type)
winsome has quit [Remote host closed the connection]
<clever> fearlessKim[m]: yeah, and it has to be mounted to /mnt/boot/
<clever> the same as when you where installing nixos
jperras has joined #nixos
ericsagnes has quit [Ping timeout: 260 seconds]
ericsagnes has joined #nixos
schoppenhauer has quit [Ping timeout: 264 seconds]
schoppenhauer has joined #nixos
<{^_^}> [nixpkgs] @aij opened pull request #38669 → xmrig-proxy: init at 2.5.2 → https://git.io/vxdCJ
jperras has quit [Ping timeout: 264 seconds]
<Myrl-saki> clever: I was sleeping and woke up to a segfault. Fun fun.
<clever> heh
<rotaerk> hmm is there some way to see the arguments to ghc that are being used when nix-building
<Myrl-saki> clever: How did you get most things in your hydra witohut even gcc?
jrolfs has quit [Ping timeout: 265 seconds]
jrolfs has joined #nixos
<clever> Myrl-saki: it has to build gcc, twice, before it can build anything else
MercurialAlchemi has joined #nixos
mounty has quit [Ping timeout: 264 seconds]
<Myrl-saki> Log of step 2 of build 45405 of job arm:nixpkgs-arm-unstable:acpi.armv7l-linux
<Myrl-saki> /nix/store/8lb9bq4bd5fkww3izpmkgiraxf5csl2p-gcc-5.4.0.drv.
<Myrl-saki> clever: Wrong package name on the hydra?
<clever> .2.126 is a raspberry pi
<Myrl-saki> clever: I mean the `:acpi.armv7l-linux` part.
<Myrl-saki> clever: Yet the drv is gcc.
<clever> acpi depends on gcc
<clever> so it has to build gcc first
<Myrl-saki> clever: Oh.
mounty has joined #nixos
<clever> http://hydra.earthtools.ca/build/45405 so if you go up to the job
<clever> and then build steps
<clever> you linked the logs for step 2
<clever> it had to go thru 28 steps to build acpi
<Myrl-saki> clever: How would I clone your gcc-5.4.0, if I want it, for example?
<clever> and gcc took 6 hours on a real rpi
<clever> just run nix-store -r on that storepath
<clever> after configuring the binary cache correctly
<clever> my public key and URL are in here
<clever> line 109 wont work for you, that one can be deleted
<Myrl-saki> clever: For Nix, place that in substituters?
<clever> nix.conf
<clever> trusted-public-keys = c2d.localnet-1:YTVKcy9ZO3tqPNxRqeYEYxSpUH5C8ykZ9ImUKuugf4c= hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs= amd-1:8E8Dz+Vc/6+8SePHMrJxe92IUYHBdv5pbI7YLnJH6Ek= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
<clever> it will look like that
<Myrl-saki> clever: Oh, right, do I have to have nixpkgs.arm already installed before I can use this?
<clever> you can run that on the x86 nix
<clever> it will just end with you having an arm copy of gcc in your x86 store
<Myrl-saki> clever: Rather, nixpkgs.nix*
<clever> then you can use something like nix 2.0's copy command to put it into an sdcard
<Myrl-saki> clever: Isn't the compilation on x86 slower?
<clever> nix-store -r /nix/store/lwbjjkkbpdjwxzmjmxbwgrsjjb8vm30k-gcc-5.4.0
<clever> this wont recompile, it will just download it from the cache
<Myrl-saki> clever: Oh.
<clever> and you can run that on an x86 machine
mounty has quit [Ping timeout: 240 seconds]
<Myrl-saki> clever: Will it work with a tarball install of Nix?
<clever> then `nix copy --to local?root=/mnt /nix/store/lwbjjkkbpdjwxzmjmxbwgrsjjb8vm30k-gcc-5.4.0` to copy it there
<clever> as long as nix has network support, it should work
<{^_^}> [nixpkgs] @davidak opened pull request #38670 → [WIP] dit: init at 0.4 → https://git.io/vxdWz
Tobba_ has joined #nixos
mounty has joined #nixos
<Myrl-saki> clever: No nix-2?
<clever> bit more tricky then
<clever> but i think you can use nix2 inside a non-root nix-shell to do the same thing
<Myrl-saki> clever: I mean, in your hydra.
Tobba has quit [Ping timeout: 255 seconds]
<clever> ah, i havent been updated it much lately
<clever> and the arm slaves are currently offline
<Myrl-saki> Oh okay.
<clever> i should plug a few in, ive got 4 pi's just piled up, lol
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/e357eb049c6 (from 13 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<Myrl-saki> clever: Oohhh nice. I wonder how long it'd take to make a complete build of nixpkgs.
jperras has joined #nixos
<clever> one or 2 are v6 only
<Myrl-saki> clever: Ah. :P
<clever> 2 can run v7
<clever> and i think only 1 is aarch64
<clever> phase 1: grab a random pi from the PIle!
<clever> no clue what is on the sd card!
<copumpkin> if I have a string containing "./foo/bar/baz" and I want to conver it to a path relative to the nix file evaluating it, what's the way to do that?
<clever> open up the dhcp journal and plug it in!
<clever> copumpkin: cah you just not quote the string?
<copumpkin> `./. + str` will unfortunately include the leading dot, which isn't ideal
<copumpkin> clever: loading it from a file
<clever> copumpkin: builtins.toPath maybe?
<copumpkin> that complains that "./foo/bar/baz" isn't an absolute path
<clever> ah
<copumpkin> I feel like I've figured this out before but I can't remember how
<clever> string manip then, assert that it begins with ./ and then drop the . ?
<copumpkin> yeah, was hoping to avoid that but I might just give in
<clever> Apr 10 04:39:37 router dhcpd4[8370]: DHCPOFFER on 192.168.2.142 to b8:27:eb:80:d9:b6 via enp4s2f1
<clever> Myrl-saki: that looks good
<clever> ssh: connect to host 192.168.2.142 port 22: Connection refused
jperras has quit [Ping timeout: 240 seconds]
<clever> now to brute force my password!
<Myrl-saki> clever: Oh nice, you're actually plugging them in. :D
<clever> (facepalm)
<clever> after 10 failed passwords on pi@, root@ lets me in instantly
<Myrl-saki> clever: lol
<clever> ooooo
<clever> this isnt rasbian
<clever> this is not-os!
<clever> how is this even booting?
<clever> squashfs for /nix/.ro-store, overlay'd with a tmpfs
<clever> all it has is a fat /boot and a swap partition
<clever> i dont remember how i configured this, but its designed to be a build slave, lol
Rusty1 has quit [Quit: Konversation terminated!]
frostspanner has quit [Ping timeout: 260 seconds]
<Myrl-saki> clever: No perstistent rw?
<clever> Myrl-saki: correct, and lets take things to a PM to not spam the room up
mahalel_ has quit [Ping timeout: 256 seconds]
<fearlessKim[m]> clever: I mounted /boot but `nixos-rebuild boot` gives me "cloning builder process: operation not permitted" .. error: unable to start process
<clever> fearlessKim[m]: was nixos-enter ran from a nixos livecd?
<fearlessKim[m]> yes (usb key)
<fearlessKim[m]> 18.03
<clever> and nixos-enter was ran as root?
<fearlessKim[m]> yes, not sure the liveCD has any other user
<clever> not sure then
jrolfs_ has joined #nixos
<clever> you can also use nixos-install to repair it, that will just automate the whole nixos-rebuild-in-chroot
jrolfs has quit [Ping timeout: 268 seconds]
<zybell_> copumpkin:/proc/self/cwd/./foo/bar/baz is the absolute alias of a relative path. Note its an alias,changes its meaning with cd.
<fearlessKim[m]> nixos-install now fails with getting status of "random pkg intl-tool.: unknown error 4094
<fearlessKim[m]> clever ^ (and I exited the nixos-enter)
<copumpkin> zybell_: unfortunately not cross-platform :)
<copumpkin> but yeah
<copumpkin> thanks
<fearlessKim[m]> I'll reboot in a clean environment hopefully
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/1034aa8e9cb (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
iyzsong has joined #nixos
<fearlessKim[m]> hum are we sure the 18.03 iso works ? nixos install generates `system.stateVersion- "17.09"` ? and fails afterwards
Guanin has quit [Ping timeout: 260 seconds]
mjrussell13 has joined #nixos
<copumpkin> is there some handy function for separating the name from the hash in a nix store path?
<fearlessKim[m]> and systemctl start display-manager doesn't start anything lol
<copumpkin> if I get handed /nix/store/longasshash-meaningful-name-4.1 I want the "meaningful-name-4.1" bit
<fearlessKim[m]> copumpkin: there is sthg like parseDrv...
<copumpkin> parseDrvName!
kerrhau has quit [Ping timeout: 276 seconds]
<copumpkin> nix-repl> builtins.parseDrvName "/nix/store/longasshash-ahha"
<copumpkin> { name = "/nix/store/longasshash-ahha"; version = ""; }
<copumpkin> ಠ_ಠ
<fearlessKim[m]> ok I will burn a 17.09 USB key but someone should check the 18.03 isos.
<copumpkin> oh I see, I need to call baseName first
<copumpkin> hm, still not
Guanin has joined #nixos
<fearlessKim[m]> journalclt => "screens found but none have a usable configuration"
<zybell_> copumpkin:try reverse basename and reverse afterward.
<copumpkin> hah, doesn't the version logic look for numbers though?
<copumpkin> I'll just split it the old-fashioned way, hrrmpf :P
<zybell_> dot,rc,alpha?
ma27 has joined #nixos
iyzsong has quit [Ping timeout: 268 seconds]
jrolfs_ has quit [Ping timeout: 268 seconds]
<copumpkin> lol, there's the nastiest hack in place today
<copumpkin> lib.toDerivation exists
<copumpkin> so what I was asking for is as "simple" as (toDerivation /nix/store/longasshash-interesting-name-4.1).name
<copumpkin> implemented as `name = builtins.unsafeDiscardStringContext (builtins.substring 33 (-1) (baseNameOf path'));`
<copumpkin> which will break if someone changes their store path but oh well
jrolfs_ has joined #nixos
reinzelmann has joined #nixos
hamishmack has quit [Ping timeout: 240 seconds]
mjrussell13 has quit [Quit: Page closed]
ma27 has quit [Ping timeout: 276 seconds]
<fearlessKim[m]> where can I find ISOs for 17.09 ? could be nice to add a link for old releases on the release page
xy2_ has joined #nixos
<kuri0> Does NixOS generate AppArmor profiles for programs automaticly ? There is this issue https://github.com/NixOS/nixpkgs/issues/11610
<kuri0> Also I tried making my own for GIMP by only giving it access to the dependencies but it gives library not found errors which means that it requires stuff which aren't in the dependencies list
<kuri0> I'm using Nix on Ubuntu but restricting only to /nix works so it isn't using anything in /usr but its using some stuff in /nix which isn't in the dependency list
hamishmack has joined #nixos
hamishmack has quit [Client Quit]
hamishmack has joined #nixos
jrolfs_ has quit [Ping timeout: 264 seconds]
Ariakenom has joined #nixos
kosmikus has quit [Read error: Connection reset by peer]
kosmikus has joined #nixos
<{^_^}> [nixpkgs] @Mic92 opened pull request #38672 → linuxPackages.zfs{Stable,Unstable}: Enospec fix → https://git.io/vxdBV
jrolfs_ has joined #nixos
<{^_^}> [nixpkgs] @Mic92 closed pull request #38668 → Revert "zfs, spl: 0.7.6 -> 0.7.7" → https://git.io/vxdcz
hamishmack has quit [Quit: hamishmack]
xy2_ has quit [Ping timeout: 265 seconds]
<kuri0> hi
<vaibhavsagar> fearlessKim[m]: have you seen howoldis.herokuapp.com? https://d3g5gsiof5omrk.cloudfront.net/nixos/17.09/nixos-17.09.3222.21693048d72 has a link to the 17.09 ISO
sehqlr has quit [Ping timeout: 260 seconds]
jensens has joined #nixos
<fearlessKim[m]> vaibhavsagar: thanks I knew about howoldis but didn't know about the iso targets great ! I found a link from distrowatch but I really think 17.09 ought to be accessible from nixos.org too
<vaibhavsagar> yeah, I think it used to be
asuryawanshi has quit [Remote host closed the connection]
Ariakenom has quit [Quit: Leaving]
asuryawanshi has joined #nixos
hamishmack has joined #nixos
aarvar has joined #nixos
hamishmack has quit [Client Quit]
asuryawanshi has quit [Remote host closed the connection]
hotfuzz_ has joined #nixos
asuryawanshi has joined #nixos
jperras has joined #nixos
hotfuzz has quit [Ping timeout: 240 seconds]
MichaelRaskin has quit [Quit: MichaelRaskin]
xAFFE has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #38577 → openzwave & pythonPackages.python_openzwave: init at 20180404 and 0.4.4 → https://git.io/vxQsA
<{^_^}> [nixpkgs] @dotlambda pushed 5 commits to master: https://git.io/vxd0p
<{^_^}> → e0fc3b5f by @etu: openzwave: Init at 2018-04-04
<{^_^}> → f1f3ece8 by @etu: python36Packages.python_openzwave: init at 0.4.4
<{^_^}> → 51d1aad9 by @dotlambda: home-assistant: treat "-" and "_" equally in parse-requirements.py
jperras has quit [Ping timeout: 268 seconds]
sehqlr has joined #nixos
Asmadeus has quit [Ping timeout: 268 seconds]
Asmadeus has joined #nixos
zybell_ has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
zybell_ has joined #nixos
troydm has quit [Ping timeout: 260 seconds]
michas_ has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #38672 → linuxPackages.zfs{Stable,Unstable}: Enospec fix → https://git.io/vxdBV
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxdua
<{^_^}> → ad229677 by @Mic92: linuxPackages.{zfs,spl}{Stable,Unstable}: 0.7.7 -> 0.7.8; 2018-04-04 -> 2018-04-10
<{^_^}> → c4f555a5 by @Mic92: Merge pull request #38672 from Mic92/zfs-enospc-fix
troydm has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed to release-18.03 « linuxPackages.{zfs,spl}{Stable,Unstable}: 0.7.7 -> 0.7.8; 2018-04-04 -> 2018-04-10 »: https://git.io/vxduo
klntsky has quit [Ping timeout: 268 seconds]
aarvar has quit [Quit: Leaving.]
wangoe has joined #nixos
<fearlessKim[m]> nooooo , I get the same error 4094 with the 17.09 iso
<fearlessKim[m]> I guess I just need to erase the partition :'(
<{^_^}> [nixpkgs] @dotlambda pushed 87 commits to staging: https://git.io/vxdub
<{^_^}> → dce2c258 by @ryantrinkle: dockerTools: optionally preserve directory symlinks
<{^_^}> → ded1281f by @ryantrinkle: Merge branch 'master' into docker-dirlinks
michas_ has quit [Ping timeout: 260 seconds]
<{^_^}> → cbe48055 by @xrvdg: hl1110 : init at 3.0.1-1
aarvar has joined #nixos
zzamboni has joined #nixos
mmercier has joined #nixos
hamishmack has joined #nixos
hamishmack has quit [Client Quit]
orivej_ has joined #nixos
orivej has quit [Ping timeout: 260 seconds]
hyper_ch2 has joined #nixos
winem_ has joined #nixos
zzamboni has quit [Quit: Leaving.]
jperras has joined #nixos
klntsky has joined #nixos
boxofrox has quit [Ping timeout: 260 seconds]
zzamboni has joined #nixos
boxofrox has joined #nixos
telent_[m] has quit [*.net *.split]
posco has quit [*.net *.split]
gudea[m] has quit [*.net *.split]
leons has quit [*.net *.split]
happyente[m] has quit [*.net *.split]
superusercode has quit [*.net *.split]
demyan[m] has quit [*.net *.split]
telent[m] has quit [*.net *.split]
jperras has quit [Ping timeout: 260 seconds]
troydm has quit [Ping timeout: 240 seconds]
Taneb has joined #nixos
zzamboni has quit [Ping timeout: 260 seconds]
zzamboni has joined #nixos
zzamboni has quit [Ping timeout: 268 seconds]
vaninwagen has joined #nixos
coot has joined #nixos
zzamboni has joined #nixos
goibhniu has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #38651 → musl: enable musl-gcc, ld.musl-clang, musl-clang → https://git.io/vx5Ly
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxd2R
<{^_^}> → 654ce4ba by @Mic92: musl: enable musl-gcc, ld.musl-clang, musl-clang
<{^_^}> → daa17416 by @Mic92: Merge pull request #38651 from Mic92/musl-gcc
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/023feb5fe60 (from 42 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
johnw has quit [Ping timeout: 260 seconds]
zzamboni has quit [Ping timeout: 256 seconds]
zzamboni has joined #nixos
manu245 has joined #nixos
zzamboni has quit [Remote host closed the connection]
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
pxc has quit [Ping timeout: 260 seconds]
sehqlr has quit [Ping timeout: 256 seconds]
<manu245> Good morning. Can someone help me to check with me my first nixos installation on a MacBook (Linux-only, mounted devs, folders, config)? After I had errors with nixos-install I have changed configuration.nix to install to EFI and uncommented the grub option. The installation seems to be successfull. Does this will survive my first reboot? How can I test it before rebooting? Many thanks in advance.
klntsky has quit [Ping timeout: 268 seconds]
pxc has joined #nixos
zzamboni has joined #nixos
stphrolland has joined #nixos
<tilpner> manu245 - It should, though I have no experience with a macbook. You could backup your configuration.nix to a USB drive if you worry you might lose it (e.g. if you did encryption wrong)
<tilpner> And while you can test a NixOS configuration easily in a VM, it doesn't help you with testing EFI boot :/
<{^_^}> [nixpkgs] @Mic92 merged pull request #38643 → nixos/prosody: add dataDir option → https://git.io/vx7QN
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxdVf
<{^_^}> → 615fefb3 by @brainrape: nixos/prosody: add dataDir option
<{^_^}> → d8647f96 by @Mic92: Merge pull request #38643 from brainrape/prosody-add-dataDir
lonokhov has joined #nixos
thc202 has joined #nixos
jackdk has quit [Ping timeout: 264 seconds]
mmercier has quit [Quit: mmercier]
<manu245> tilpner: It is an installation on the hardwar, no VM, no LVM
<tilpner> I was referring to nixos-rebuild build-vm, which can quickly assemble a VM you can run to test your new system before switching to it or rebooting
<manu245> I had uncommented the grub stuff in configuration.nix and enabled efi. Because I had formatted my sda1 as EFI with the label BOOT.
<manu245> But I still need efi boot?
<tilpner> But that doesn't necessarily help you with bootloader difficulties
<manu245> Because I need to install Arch afterwards on another partition... huih :)
pxc has quit [Ping timeout: 276 seconds]
<manu245> nixos-rebuild build-vm: It's new to me. I maybe can check it in the nixos live CD then, I guess.
<tilpner> FWIW, I use boot.loader.systemd-boot instead of grub. It worked well so far
<manu245> tilpner: systemd is not found in the default configuration.nix.
<tilpner> I don't know what you mean by that. If you're getting an error, please paste it to gist.github.com or similar
<manu245> I have boot.loader.grub.enable; boot...grub.version; boot...grub.efiSupport; boot...efiSysMountPoint; and boot.loader.grub.device = "nodev" for efi only.
<manu245> When I understand you correctly I do not need them.
<manu245> But boot.loader.systemd-boot instead. Only this?
knupfer has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxdVX
<{^_^}> → e6f8b6b8 by @Mic92: Merge pull request #38637 from vbgl/js_of_ocaml-lwt
<{^_^}> → a09c39f8 by @vbgl: ocamlPackages.js_of_ocaml-lwt: init at 3.1.0
<{^_^}> [nixpkgs] @Mic92 merged pull request #38637 → ocamlPackages.js_of_ocaml-lwt: init at 3.1.0 → https://git.io/vx7Rc
<tilpner> You would comment out the grub options, then add boot.loader.systemd-boot.enable = true;
<tilpner> According to the Arch wiki, systemd-boot works well with Apples bootloader thing
<tilpner> But grub would probably work too, so...
<manu245> and commend out the efi thing, too?
ThatDocsLady has joined #nixos
<manu245> But before I need to create an ef02 BIOS boot partition instead an ef00 EFI boot partition, right?
<tilpner> systemd-boot is "the efi thing" too, so you need to be more precise :/
orivej has joined #nixos
orivej_ has quit [Ping timeout: 256 seconds]
<tilpner> No, you shouldn't need to change your partitioning
<manu245> tilpner: For a normal Linux installation on a non-Apple hardware I still use grub. Cloned harddrives from my MAcBook boot very well on my normal PC too. But which has no EFI support.
<tilpner> I don't really understand why you still want to change things. The first thing I said is that it should work, and that was referring to your initial GRUB+EFI setup
<fearlessKim[m]> I think there is an error in the manual, mkfs.fat doesn't accept an `-L` parameter so one can't label the boot partition
<tilpner> Just try booting that. I've never used a macbook, I don't know if it'll work, but further discussion won't help that :/
<manu245> fearlessKim: you can label a vfat partition with another flag, sure.
ylwghst has joined #nixos
<tilpner> You only lose a few minutes if it doesn't work, so...
<fearlessKim[m]> manu245 even e2label chokes on it "bad magic number ... contains vfat"
<manu245> tilpner: Do you have only boot.loader.systemd-boot and commented out all other "boot.loader..." entries?
<manu245> fearlessKim: "bad magic number" seems to be an error on the harddrive itself. But I do not have things like that.
<manu245> tilpner: To summarize the steps:
<tilpner> manu245 - My boot sections starts like this: tx0.co/l
<manu245> 1., Saving the configuration.nix file on my USB stick.
<fearlessKim[m]> it was ext4, I made it EFI but still fails
<tilpner> (oops, 404, I'll look into it)
<fearlessKim[m]> manu245: might be the "-n" flag of mkfs.ext4 ("volume-name")
<manu245> tx0.co/l What is this? I never have seen a string like this
<fearlessKim[m]> manu245: seems like it was the -n flag
<manu245> fearlessKim: Is this a question? I still do not have problems with formatting my harddrives.
<tilpner> (Works now, broken pipe -> timeout)
<fearlessKim[m]> nope just confirming the manual is wrong
<fearlessKim[m]> thanks for the tip
<manu245> fearlessKim: Aah! I understand now. :)
<tilpner> manu245 - Put tx0.co/l into your browser. You were asking what my boot.loader section looked like
<achambe> I'm having some trouble running a nixos container on 18.03. getting: Failed to add new veth interfaces (ve-gitlab:host0): Operation not supporte
<manu245> tilpner: My question was unprecise. I have asked if you only have this single boot.loader line in your configuration.nix and if you have uncommented out all other boot.loader.SOMEWHAT lines?
jperras has joined #nixos
<tilpner> manu245 - That's why I pasted it. Technically my answer to your question should be "no", but that wouldn't have helped you at all
<fearlessKim[m]> 2nd error : the manual recommands 1mount /dev/disk/by-label/nixos /mnt` but with LVM volumes it doesn't seem to work (it's my first trial with LVM), I had to add the -a flag
civodul has joined #nixos
<manu245> fearlessKim: I've observed other minor manual errors. If my reboot will not be successfull I can post those small ambigous entries here if you like to update the NixOS installation manual.
<ij> Should neovim have +python?
<fearlessKim[m]> also /mnt/boot doesn't exist
troydm has joined #nixos
<fearlessKim[m]> ij: neovim use external providers, there is no compilation flag anymore
<ij> fearlessKim[m], What does that mean roughly?
<LnL> git is broken on master: Can't locate Git.pm in @INC (you may need to install the Git module)
<fearlessKim[m]> ij: it means python support for neovim consists in installing a python module, you don't need to recompile neovim
<fearlessKim[m]> and it should be the default
<fearlessKim[m]> manu245: I am listing what I notice in https://github.com/NixOS/nixpkgs/issues/38674
jperras has quit [Ping timeout: 256 seconds]
<fearlessKim[m]> but I have already too many PRs in the work plus building the doc is slow and not fun
<fearlessKim[m]> ij: to check actual support, you can run `:checkhealth` from neovim
<{^_^}> [nixpkgs] @jbgi opened pull request #38675 → terraform_0_11: 0.11.5 -> 0.11.6 → https://git.io/vxdrP
<ij> fearlessKim[m], Ah, yeah — it says python providers are installed, so it's all cool. The plugin might be faulty. Thank you for the tips.
<manu245> fearlessKim: I can post my installation manual findings also on GitHub if it helps.
<fearlessKim[m]> ij: what plugin ? maybe try :UpdateRemotePlugins
humanoyd has joined #nixos
slyfox_ has joined #nixos
<ij> fearlessKim[m], Sorry, no — https://github.com/nixprime/cpsm
<ij> mispaste :)
<fearlessKim[m]> manu245: no pb if you want to append to the issue. Don't you have commit rights though :D ?
slyfox has quit [Ping timeout: 265 seconds]
Guest17535 has joined #nixos
Myrl-saki has quit [Quit: WeeChat 2.0]
<fearlessKim[m]> ij: did you manage to get ruby plugins working ? I couldn't xD
<manu245> fearlessKim: what is "pb"?
<fearlessKim[m]> "problem" sorry
hiroshi has quit [Ping timeout: 260 seconds]
<manu245> fearlessKim: I thought everyone can commit findings. Okay. I'll come back to the chat then
<ij> fearlessKim[m], This specific one seems to be working!
<fearlessKim[m]> ij: dunno that one what's the error ?
<ij> fearlessKim[m], I was replying to the remark about "getting ruby plugins working".
<manu245> tilpner/fearlessKim: The configuration line 'boot.loader.efiSysMountPoint = "/boot/efi"' should be changed to 'boot... = "/boot"'. Because nixos-install creates the EFI folder in the subfolder /boot/efi -> which results in /boot/efi/EFI. This seems not to be correct. What do you think?
<ij> fearlessKim[m], cpsm fails with: ERROR: cpsm built with version of Python not supported by Vim
klntsky has joined #nixos
<fearlessKim[m]> manu245: dunno I am completely parlyzed when it comes to EFI, actually I am trying to use grub (because I read that LVM requires grub ?)
<sphalerite> https://github.com/NixOS/nixpkgs/pull/37908 Could I have a merge? This package had no maintainer, but I'm adding myself
<manu245> fearlessKim: Okay. Then I will purge it. Otherwise this HDD will also not boot on my non-EFI system. Do you have only a BIOS boot partiotion ef02 then?
<sphalerite> fearlessKim[m]: grub is only required if the kernel lives in an LVM volume
<fearlessKim[m]> ij: both seem to support new versions of python but cspm build process seems a bit complex, maybe you should open an issue there to get some hindsight
<sphalerite> fearlessKim[m]: on EFI you have to have the non-LVM ESP anyway, so you don't need to use grub
zzamboni has quit [Quit: Leaving.]
<fearlessKim[m]> sphalerite: ESP ?
zzamboni has joined #nixos
<sphalerite> EFI System Partition
<manu245> ESP? too
<manu245> My reboot with EFI only was not successfull.
<manu245> I need to restart the nixos installation procedure with the live CD (not USB), argh
sigmundv__ has joined #nixos
hamishmack has joined #nixos
<manu245> Is the partition scheam which you suggest correct? You could add a section for installing nixos with gdisk
<fearlessKim[m]> apparently nixos-generate-config doesn't setup the root filesystem with LLVM
<fearlessKim[m]> this might not be hell but today feels like a glimpse of it :)
__Sander__ has joined #nixos
<manu245> I have a question to DUAL Linux Boot with NixOS.
ma27 has joined #nixos
<manu245> Will NixOS break my grub menu when I install it at last?
<manu245> Or should I install NixOS first and then another linux and install the grub loader from the second Linux too?
<manu245> What is your experience?
<achambe> fearlessKim[m]: I have used it with LVM/crypsetup/btrfs
<achambe> seemed to work for me
ylwghst has quit [Remote host closed the connection]
ma27 has quit [Client Quit]
ma27 has joined #nixos
<symphorien> manu245: you should let nixos install grub and use osprober to add entries for other linuxes.
<sphalerite> manu245: grub is a bit of a pain as far as collaboration between multiple linux distros is concerned
<symphorien> There is an option for this
<symphorien> And it works fine for me (but I have a legacy bios setup)
<sphalerite> manu245: you could do what symphorien says or possibly make it source the config file from the other distro to get menu entries from both. Not sure about the latter option though
humanoyd has quit [Ping timeout: 246 seconds]
mmercier has joined #nixos
hiroshi has joined #nixos
<{^_^}> [nixpkgs] @dotlambda opened pull request #38677 → restic-rest-server: init at 0.9.7 → https://git.io/vxdio
<manu245> symphorien: I have a new HDD and need to reformat it for dual Boot Linux'
<manu245> What would you suggest in detail? ef002 (Bios boot) ~ 10M + swap + ext4 only? Should I prepare it also for EFI boot too? (My systems will run on a Mac Book and the clone on my PC which normally works.
<manu245> ef02
orivej has quit [Ping timeout: 245 seconds]
<manu245> sphalerite: How do I source the config file? You mean grub.cfg which lays in /boot/?
orivej has joined #nixos
<sphalerite> manu245: yeah, and make sure that the other distro puts it in a different path
<sphalerite> manu245: I did that at one point by bind-mounting a subdirectory to /boot in debian iirc
<sphalerite> manu245: just using os-prober is probably easier though.
<symphorien> My setup is just: don't care about non nixos and set https://nixos.org/nixos/options.html#osprober to true
<manu245> symphorien: I'll go this way. thx
Neo-- has joined #nixos
<fearlessKim[m]> the osprober setting should be added by nixos-generate-config
<manu245> fearlessKim: ...and boot.loader.systemd-boot too.
<sphalerite> no, systemd-boot is a completely different bootloader
<sphalerite> it's a lot more collaborative than grub, so if you don't need to use grub I'd recommend using systemd-boot both on nixos and your other distro
hamishmack has quit [Quit: hamishmack]
humanoyd has joined #nixos
hamishmack has joined #nixos
knupfer has quit [Ping timeout: 240 seconds]
<fearlessKim[m]> sphalerite: when using LVM, should my root filesystem in hardware.nix be /dev/<volumeGroup>/<logicalVolume> ? mount refuses to mount these partitions. Also can one give labels to LVM volumes ?
<manu245> I'll go for grub then.
<sphalerite> fearlessKim[m]: yes it should. How is it refusing?
<sphalerite> fearlessKim[m]: and the LV name is already like a label, no?
<sphalerite> fearlessKim[m]: you can give the filesystem inside a label too, but why not just use the LV label
ottidmes has joined #nixos
<fearlessKim[m]> sphalerite: lvdisplay shows me /dev/tetoVG/system but when I try `mount /dev/tetoVG/system /mnt`, it says `special /dev/tetoVG/system does not exist`
<fearlessKim[m]> sry I probably should read the doc instead of asking, but my mental energy got depleted with the cascading problems xD
<sphalerite> fearlessKim[m]: does /dev/tetoVG/system exist? :)
<symphorien> fearlessKim[m]: I have found lsblk to be much more reliable in such situations
<fearlessKim[m]> no
<fearlessKim[m]> symphorien: oh cool, forgot about that one (there are so many utilities)
<fearlessKim[m]> sphalerite: so I should mount the LVM PV so see the LV in /dev ?
<manu245> Installation manual: Why the boot partition for UEFI boot need to be partition number 3 and later the partition order needs to be fixed? I do not understand why this is suggested in the manual.
<fearlessKim[m]> manu245: right, I don't think order is relevant
<sphalerite> fearlessKim[m]: no, you shouldn't need to mount it. You may need to activate the volume group though
<sphalerite> fearlessKim[m]: vgchange -a y tetoVG
MP2E has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to release-18.03: https://git.io/vxdMp
<{^_^}> → 4dea3cf2 by @ryantm: nextcloud-news-updater: 10.0.0 -> 10.0.1
<{^_^}> → fc403a8d by @eonpatapon: nextcloud: 13.0.0 -> 13.0.1
vaninwagen has quit [Ping timeout: 256 seconds]
<fearlessKim[m]> sphalerite: love you ! it worked
<sphalerite> manu245: it doesn't need to be, it's just a suggestion
<sphalerite> fearlessKim[m]: yay!
vaninwagen has joined #nixos
<fearlessKim[m]> can't find on google why `mount /dev/tetoVG/system /mnt` returns ` wrong fs type, bad superblock on /dev/mapper/tetoVG-system, missing codepage or helper program or other error ` ?
johnw has joined #nixos
<ottidmes> I just seriously started using ZFS on one of my systems, and now I read this: https://news.ycombinator.com/item?id=16797644 which happens to be the version you get running 18.03, I guess I have to try and downgrade my ZFS to 0.7.6 for the time being
ciil has quit [Quit: leaving]
<sphalerite> fearlessKim[m]: did you put a filesystem on it?
<fearlessKim[m]> hum fsck generates an error, might be that the physical volume was not properly formatted
tmaekawa has joined #nixos
<srhb> ottidmes: Ouch
<zybell_> fearlessKim: because tetoVG-system didnt exist until vgchange I expect it not formatted.
<sphalerite> ottidmes: "It is incredibly difficult to reproduce on systems running coreutils 8.23 or later. So far, reports have only come from people using coreutils 8.22 or older" we have 8.29 so it should probably be fine
tmaekawa has quit [Client Quit]
<sphalerite> fearlessKim[m]: it's like a new partition, it doesn't actually have a filesystme on it
<sphalerite> fearlessKim[m]: you need to use mkfs to actually put something on it
ciil has joined #nixos
johnw has quit [Ping timeout: 256 seconds]
<fearlessKim[m]> sphalerite: I see, I thought it didnn't need since the underlying PV was ext4 but I guess it makes sense if you want ot abstract away from PV xD
<sphalerite> fearlessKim[m]: no, the PV is LVM. If you had an ext4 filesystem on there it's gone now.
<fearlessKim[m]> ohh so my previous install was on the wrong partition, I have to do it again. the LVM part of the manual is confusing, either put everything or remove it
<fearlessKim[m]> sphalerite: thanks I think I got it, hopefully it should work this time
<sphalerite> fearlessKim[m]: why do you actualyl want to use LVM?
<ottidmes> sphalerite: I will just stick with 0.7.7 then and upgrade as soon as 0.7.8 is out
<sphalerite> because zfs is awesomer ;)
<srhb> ottidmes: Know of any pitfalls with 0.7.6? I'm going to make a downgrade PR.
<sphalerite> ottidmes: sounds like a plan
<sphalerite> or that srhb :D
<srhb> Yeah, that's really not something I feel good about leaving in stable... :P
TweyII has joined #nixos
TweyII has quit [Client Quit]
TweyII has joined #nixos
<fearlessKim[m]> sphalerite: I wanted to encrypt stuff and potentially resize partitions. I disocvered that ext4 can apparently dynamically resize so I guess it leaves me with cyphering
<sphalerite> fearlessKim[m]: LVM doesn't do encryption
<sphalerite> fearlessKim[m]: that's LUKS, which you can use without LVM
<ottidmes> srhb: I haven't seen any, but I am not really informed about it, I just happened to stumble upon this
<sphalerite> fearlessKim[m]: (or more generally cryptsetup. It has a few options other than LUKS iirc but LUKS is the most common)
<lassulus> how do i install pillow inside a virtualenv? pip complains it can't find zlib
nschoe has joined #nixos
<fearlessKim[m]> sphalerite: I didn't research much the topic as you noticed, I just had to reinstall my system because of unexpected problems, saw everyone here speaking of LVM & cyphering (zfs too but I read about it and it doesn't seem interesting on a workstation, I don't really need raid) and thought the ability to resize could let me experiment with cyphering at a later date. But I haven't read anything about LUKS or cryptsetup
<fearlessKim[m]> yet
<srhb> ottidmes: Well, thanks for bringing it to attention :)
<sphalerite> lassulus: use nix-shell
<lassulus> sphalerite: well I'm inside a shell already
<sphalerite> lassulus: I don't think virtualenv works much at all in general on nix
<sphalerite> fearlessKim[m]: I use zfs on my laptop, not for ZRAID but for compression and CoW snapshots
<sphalerite> or was it RAID-Z
<fearlessKim[m]> nixos-generate-config correctly find the root filesystem this time. Previous error was on me then
<sphalerite> regardless, it's got other cool stuff
<fearlessKim[m]> sphalerite: why do you need compression ? isn't it slow ?
<sphalerite> fearlessKim[m]: no
<sphalerite> deduplication is resource-intensive and not recommended for typical use cases. But compression is fast and I've got 1.29× space savings overall thanks to it
zzamboni has quit [Quit: Leaving.]
<sphalerite> oh and data integrity is nice too :p
klntsky has quit [Ping timeout: 268 seconds]
<fearlessKim[m]> sphalerite: 1.29 in pourcentage gives ? isn't data integrity part of every filesystem ? like they can detect errors, but do you mean zfs can recover from it better
zzamboni has joined #nixos
<sphalerite> fearlessKim[m]: no, there's no guarantee in most filesystems that you won't get random flipped bits in the contents of files
<sphalerite> zfs can detect these errors and depending on your configuration recover from them
<ottidmes> srhb: sphalerite: Apparently 0.7.8 is already out, so it probably makes more sense to go to that version rather than downgrade
<sphalerite> but detecting and not recovering is still better than not detecting and just proceeding as normal :p
<srhb> ottidmes: And it's in master. So we just need a quick backport.
<sphalerite> fearlessKim[m]: it means I get to store 1.29× more data than if I weren't using compression
<sphalerite> fearlessKim[m]: so 29% extra
troydm has quit [Ping timeout: 240 seconds]
<srhb> ottidmes: It was also already backported, so apparently we're just waiting for Hydra. Phew :)
<srhb> Bloody keymap tests holding it up...
Guanin_ has joined #nixos
zzamboni has quit [Client Quit]
troydm has joined #nixos
<ottidmes> srhb: Pfew, that's great to hear :)
<srhb> ottidmes: You can cherry 023feb5fe6070ee862e5496fbe6ae209b01d58f7 if you want
<fearlessKim[m]> hell yeah successful reboot
Guanin_ has quit [Client Quit]
<fearlessKim[m]> come on vim is still not among the defaults , we have one of the most geekie distrib out there bundled with nano
<fearlessKim[m]> #masochist #nixos
<srhb> fearlessKim[m]: You know how game producers put in simple challenges to start with in order to nudge players into learning the mechanics?
<srhb> :-)
<fearlessKim[m]> srhb: I wish nixos did the same :p
<octe> fearlessKim[m], you mean emacs?
<makefu> instead of giving you the dark souls difficulty you mean?
<fearlessKim[m]> octe: neither emacs or vim is installed in the stock config, just nano
telent_[m] has joined #nixos
happyente[m] has joined #nixos
leons has joined #nixos
telent[m] has joined #nixos
gudea[m] has joined #nixos
<octe> yeah.. but why isn't emacs among the defaults ;-)
posco has joined #nixos
pie__ has joined #nixos
troydm has quit [Ping timeout: 260 seconds]
zzamboni has joined #nixos
mounty has quit [Ping timeout: 240 seconds]
demyan[m] has joined #nixos
superusercode has joined #nixos
<fearlessKim[m]> nano is the reward after the dark soul installer, I am kinda disappointed
<fearlessKim[m]> at least nixos made me a more patient person, I used to throw stuff around when having difficulties
<fearlessKim[m]> after today, I ve nothing left to throw :)
zzamboni has quit [Ping timeout: 265 seconds]
__Sander__ has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @Mic92 merged pull request #38675 → terraform_0_11: 0.11.5 -> 0.11.6 → https://git.io/vxdrP
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxd9b
<{^_^}> → d6e83710 by @jbgi: terraform_0_11: 0.11.5 -> 0.11.6
zzamboni has joined #nixos
<{^_^}> → 5e71dfc6 by @Mic92: Merge pull request #38675 from jbgi/patch-2
ericsagnes has quit [Ping timeout: 256 seconds]
simukis has joined #nixos
<MarcWeber> fearlessKim[m]: some use neovim.
<fearlessKim[m]> MarcWeber: with reason :)
<fearlessKim[m]> at least over vim
<{^_^}> [nixpkgs] @mkaito opened pull request #38678 → gopass: Install shell completion scripts → https://git.io/vxdHs
zzamboni has quit [Ping timeout: 240 seconds]
vidbina has joined #nixos
<MarcWeber> fearlessKim[m]: https://github.com/MarcWeber/editor-cells simple attempt to have cross editor plugins :) Only Vim backend implemented yet.
<MarcWeber> Just to see where it would lead to.
<sphalerite> fearlessKim[m]: some use emacs ;)
stphrolland has quit [Quit: leaving]
<goibhniu> octe: fearlessKim[m], TBF you can install any editor you like in the live environment
<sphalerite> that too.
<fearlessKim[m]> sphalerite still on your honeymoon with emacs I see :)
zzamboni has joined #nixos
crooksey has joined #nixos
<sphalerite> yes :p I'm pretty convinced, I feel like I'm taking a step back every time I do nvim <file> rather than emacs <file> out of habit
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to release-18.03: https://git.io/vxdHo
<{^_^}> → a864266f by @zimbatm: terraform_0_11: 0.11.4 -> 0.11.5
<{^_^}> → ad46d18f by @peterhoeg: terraform: 0.11.3 -> 0.11.4
<{^_^}> → dcc85ff6 by @jbgi: terraform_0_11: 0.11.5 -> 0.11.6
<sphalerite> of course I couldn't live without evil mode
<sphalerite> s/live/use emacs/
<fearlessKim[m]> goibhniu: nix(os) tends to assume you have infinite bandwidth and always on connectivity, even if you have all the dependencies locally, nix will still block contacting somewhere else. Installing vim was my first move but without internet you are stuck with nano.
<zybell_> alias emacs=nvim
<goibhniu> fearlessKim[m]: you need a network connection to install NixOS anyway
alexteves_ has joined #nixos
kiloreux has joined #nixos
<sphalerite> zybell_: I know that's a possibility but it feels wrong :p
<sphalerite> (also you got them the wrong way round)
<sphalerite> fearlessKim[m]: yeah that is a pain.
<fearlessKim[m]> justinmk (leader of nvim) says he enjoys emacs and actually tries to incorporate some parts into neovim
<sphalerite> fearlessKim[m]: but you can always set binary-caches to '' or to 'file:///mnt/my-binary-cache-usb-disk/'
__Sander__ has joined #nixos
zzamboni has quit [Ping timeout: 260 seconds]
<zybell_> I thought your *habit* was emacs. Because nvim isnt around as long(as emacs)
<fearlessKim[m]> sphalerite: many things are possible except sane defaults it seems (trolling spree :) )
nschoe has quit [Read error: Connection reset by peer]
<sphalerite> zybell_: ah right, fair enough. No, I'm moving from nvim to emacs. It seems a lot better thought out in many ways. Most of all, the language is a lot saner
<sphalerite> fearlessKim[m]: tell me more about this sane default option you imagine :)
zzamboni has joined #nixos
the_real_plumps has joined #nixos
jperras has joined #nixos
mmercier has quit [Quit: mmercier]
<{^_^}> [nixpkgs] @Mic92 merged pull request #38678 → gopass: Install shell completion scripts → https://git.io/vxdHs
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxdQn
<{^_^}> → cda51a8a by @mkaito: gopass: Install shell completion scripts
<{^_^}> → 86fc3306 by @Mic92: Merge pull request #38678 from mkaito/gopass-completion
<fearlessKim[m]> sphalerite: easy peasy nix.saneDefaults = true;
rosa has joined #nixos
<sphalerite> fearlessKim[m]: yeah but what does it do
ilyaigpetrov has joined #nixos
<zybell_> I can help with sane defaults: Assume you are offline,if not you have only enough bw to run email,IRC,...,signature files. If you git clone use shallow. Cache files locally. Prefer already downloaded versions if not too old.t clone
jperras has quit [Ping timeout: 264 seconds]
<sphalerite> fearlessKim[m]: FWIW anything that's on the installer image will be reused for the destination system as well
troydm has joined #nixos
fendor has joined #nixos
hamishmack has quit [Quit: hamishmack]
<sphalerite> zybell_: there's not really much to do in the way of assuming you're offline. If you're offline you won't be able to add anything beyond what's included in the installer. I don't know what you mean by "if not you have only enough bw … files."
palo has joined #nixos
palo has quit [Changing host]
palo has joined #nixos
<sphalerite> zybell_: git clone for what?
<sphalerite> zybell_: cache which files locally?
hamishmack has joined #nixos
orivej_ has joined #nixos
mounty has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
<fearlessKim[m]> sphalerite: I would say my biggest hurdle would be this https://github.com/NixOS/nix/issues/1985 . Like everyone, I have many complaints about the UI which tries hard to be maximally inconsistant
<sphalerite> fearlessKim[m]: that's a bit of an exaggeration. It is inconsistent, but that's not a consequence of *trying* to be.
<sphalerite> but yes, giving up on trying to access a binary cache would be good.
<fearlessKim[m]> of course, I respect the work done and I myself contributed quite a few PRs because I hope that with time it will improve. Lots of efforts went into nix 2.0 for sure but not in the parts I was worried so I am looking for the next release
<sphalerite> yeah
<woffs> I wonder how to override gcc for qt. qt510 = qt510.override { stdenv = overrideCC stdenv gcc6; }; seems not to be enough.
<woffs> fighting __divmoddi4
<fearlessKim[m]> I guess sometimes, I feel like what annoys me doesn't annoy the core team. Some kind of roadmap for the UI could be reassuring. I was thinking of writing some "rants from a nixos lover". Like why nix-build/nix-shell/nix-env doesn't get the toplevel expression in different manners (with nix-env even using a ninja folder ~/.def-nixexpr). 2/ why no documentation explains that it can `configurePhase` or `eval
<fearlessKim[m]> $configurePhase` (and can't we get rid of it) 3/ when are we getting some nixups/home-manager integration
coot has quit [Quit: coot]
<fearlessKim[m]> also the freaking nix-channels that doesn't show all channels lol
<{^_^}> [nixpkgs] @adisbladis pushed to master « nodejs-9_x: 9.10.1 -> 9.11.1 »: https://git.io/vxd5C
<{^_^}> [nixpkgs] @adisbladis pushed 9 commits to release-18.03: https://git.io/vxd5g
<{^_^}> → 5a16d26b by @adisbladis: nodejs-6_x: 6.13.0 -> 6.13.1
<{^_^}> → 29f1290d by @adisbladis: nodejs-6_x: 6.13.1 -> 6.14.1
<{^_^}> → c00bfc1c by @adisbladis: nodejs-8_x: 8.9.4 -> 8.10.0
zybell_ has quit [Read error: Connection reset by peer]
<sphalerite> fearlessKim[m]: the nix-build/nix-shell/nix-env problems are what the new nix command aims to address
<fearlessKim[m]> that's good to hear . I am stiff full of hope but I admit the first time I ran nix => "see man nix for help", and typed "man nix" and nothing came up, it felt very nix-like :)
troydm has quit [Ping timeout: 265 seconds]
humanoyd has quit [Quit: WeeChat 2.1]
rosa has quit [Quit: rosa]
dbe has quit [Quit: Lost terminal]
orivej_ has quit [Ping timeout: 265 seconds]
mounty has quit [Quit: Konversation terminated!]
blankhart has joined #nixos
nschoe has joined #nixos
<ottidmes> fearlessKim[m]: Regarding 3, I read that there are plans to merge nixups and home-manager, but the main developer of home-manager is time constrained at the moment, so its unlikely to happen soon: "2018-04-07 01:04:51 rycee infinisil: And as it looks right now I'm unlikely to have enough free time until Oct-Nov :-(" in response to what the status was about merging nixups and home-manager
zybell_ has joined #nixos
vidbina has quit [Ping timeout: 240 seconds]
mounty has joined #nixos
<{^_^}> [nixpkgs] @dotlambda merged pull request #38677 → restic-rest-server: init at 0.9.7 → https://git.io/vxdio
<{^_^}> [nixpkgs] @dotlambda pushed to master « restic-rest-server: init at 0.9.7 »: https://git.io/vxdFi
<fearlessKim[m]> ottidmes: I think I read the same message 1 year ago on the nixups PR. I am not sure the technical details are worked out yet. this will be a huge effort. I tend to contribute on home-manager only for modules that don't exist within nixpkgs for this reason
Myrl-saki has joined #nixos
mmlb has joined #nixos
rosa has joined #nixos
MercurialAlchemi has quit [Ping timeout: 264 seconds]
xy2_ has joined #nixos
<{^_^}> [nixpkgs] @S-NA opened pull request #38679 → pidgin-discord: init at 0.9.2018.04.10.git.9a97886 → https://git.io/vxdFp
<{^_^}> [nixpkgs] @dotlambda pushed to master « python3.pkgs.netdisco: 1.3.1 -> 1.4.0 »: https://git.io/vxdbU
<ottidmes> fearlessKim[m]: I also remember people saying it might be out of scope for NixOS, but I hope that once those technical details are ironed out, that it does get included, because it definitely is part of the OS and its a question asked too often to ignore (how to manage home files in NixOS)
xcmw has joined #nixos
<zybell_> sphalerite: Around 4 kbyte/sec allow you to run IRC, download md5sums, check emails, look at pastes, commit in git ... but MBYTE binaries are often out of reach, because Webservers tend to timeout. Cloning a full git(nixpkgs) over such a (often metered)connection is not needed and needlessly time consuming, but may work if there are many small objects. Source code from git can be cached for derivations.
Myrl-saki has quit [Quit: WeeChat 1.6]
xy2_ has quit [Client Quit]
<fearlessKim[m]> like "let's see which techno wins". Problem is that home-manager grows faster because it's an independant project but it also duplicates code so at some point you need integration and saying "let's adopt the winner" is not a good strategy
<sphalerite> zybell_: nix doesn't do any git clones.
rosa has quit [Client Quit]
<sphalerite> oh wait yes it does nvm me
<ottidmes> fearlessKim[m]: I agree, and not only duplicated code, but also a lot of duplicated effort I imagine
<zybell_> nvm?
<ottidmes> zybell_: nevermind
<fearlessKim[m]> zybell_: nvm=nevermind
<ottidmes> zybell_: Oh, wait. Yes, it does. Nevermind me
<zybell_> ty;-)
ericsagnes has joined #nixos
nschoe has quit [Quit: Program. Terminated.]
<fearlessKim[m]> ottidmes: also it has some flaws like (neo)vim wrapper break the $MYVIMFILES logic so some typical vim scripts stop working
<ottidmes> fearlessKim[m]: The potential problems it creates, and decisions like, this is more mature in nixpkgs compared to HM, or vice versa, those kind of choices keeps me away from using the projects. I just use wrote a files modules that handles the few home files I like managed by NixOS
<fearlessKim[m]> right, there is the Qt inconsistency too depending if you haven't generated home-manager's env with the same nixpkgs as the channel
uptime is now known as downtime
pkill9 has joined #nixos
fendor has quit [Ping timeout: 240 seconds]
nschoe has joined #nixos
leotaku has quit [Ping timeout: 255 seconds]
johnw has joined #nixos
iyzsong has joined #nixos
arjen-jonathan has joined #nixos
<arjen-jonathan> Hi all; I'm having trouble with coqide (installed as part of coq package)
pkill9 has quit [Quit: WeeChat 2.0.1]
<arjen-jonathan> Particularly I don't get syntax highlighting because GtkSourceView says: could not find the RelaxNG schema file
raynold has quit [Quit: Connection closed for inactivity]
<arjen-jonathan> The files should be part of gnome2.gtksourceview afaik
johnw has quit [Ping timeout: 260 seconds]
reinzelmann has quit [Quit: Leaving]
<sphalerite> Anyone with push access to nixpkgs? https://github.com/NixOS/nixpkgs/pull/37908
leotaku has joined #nixos
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nixos
zzamboni has quit [Client Quit]
zzamboni has joined #nixos
ryanartecona has joined #nixos
<arjen-jonathan> Hmm, apparently it has something to do with XDG_DATA_DIRS
Myrl-saki has joined #nixos
<MarcWeber> Does cabal2nix get correct dependencies ? http://dpaste.com/1F99NM8 -> with master from 2 days ago.
nschoe has quit [Quit: Program. Terminated.]
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
bjorngi has joined #nixos
<rizary> anyone come up with alternatives on using spacemacs rather than what described here? https://github.com/hansroland/reflex-dom-inbits/blob/master/tutorial.md
<rizary> sorry
<rizary> that one
<rizary> >.<
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @dotlambda merged pull request #37462 → bitmath: init at 1.3.1.2 → https://git.io/vxnYk
<{^_^}> [nixpkgs] @dotlambda pushed 4 commits to staging: https://git.io/vxdhs
<{^_^}> → 8c6d8388 by @Twey: pythonPackages.progressbar231: init at 2.3.1
<{^_^}> → 10863b0a by @Twey: pythonPackages.progressbar33: init at 2.4
<{^_^}> → 0b919d47 by @Twey: pythonPackages.bitmath: init at 1.3.1.2
binarin has joined #nixos
cufisz has quit [Ping timeout: 260 seconds]
xcmw has joined #nixos
<ottidmes> arjen-jonathan: Not sure if it helps, but did you try: environment.pathsToLink = [ "/share" ];
<arjen-jonathan> ottidmes: I'm not on nixos; this is a shell.nix package derivation
<arjen-jonathan> That doesn't work there, does it?
xAFFE has left #nixos ["Error from remote client"]
jtojnar has joined #nixos
xAFFE has joined #nixos
<ottidmes> arjen-jonathan: Ah, that changes things. And no, that does not work outside NixOS. I am very unexperienced with Nix outside NixOS, moved to NixOS soon after trying that. What does your XDG_DATA_DIRS look like? Maybe I can give you the missing paths?
hyper_ch2 has quit [Ping timeout: 260 seconds]
katona has joined #nixos
jtojnar_ has joined #nixos
Myrl-saki has quit [Read error: Connection reset by peer]
reinzelmann has joined #nixos
jtojnar has quit [Ping timeout: 264 seconds]
jtojnar_ is now known as jtojnar
<{^_^}> [nixpkgs] @edolstra pushed to master « vmTools: Add crc32c_generic to the initrd »: https://git.io/vxdj4
<{^_^}> [nixpkgs] @edolstra pushed 2 commits to release-18.03: https://git.io/vxdjw
<{^_^}> → a3460acd by @edolstra: Fix typo
<{^_^}> → cb4067b4 by @edolstra: vmTools: Add crc32c_generic to the initrd
blankhart has quit [Ping timeout: 264 seconds]
rosa has joined #nixos
Rusty1_ has joined #nixos
jperras has joined #nixos
rosa has quit [Client Quit]
jperras has quit [Ping timeout: 260 seconds]
<arjen-jonathan> ottidmes: if I set it to /nix/store/gr46pa94vn6wngyngpwnw26502879p3i-gtksourceview-2.10.5/share/
<arjen-jonathan> then atleast i have syntax hl.
tmplt_ has joined #nixos
<arjen-jonathan> But the UI looks terribly ugly ;-) i.e. it isn't applying any GTK theme
<{^_^}> [nixpkgs] @jtojnar opened pull request #38680 → librsvg: 2.42.2 → 2.42.3 → https://git.io/vxFea
binarin has quit [Remote host closed the connection]
binarin has joined #nixos
sondr3 has joined #nixos
<sondr3> hello, I'm having some issues with fonts when I updated to NixOS 18.03, I'm using Firefox and am using the DejaVu family as my default font but for some reason on for example Github in issue texts it uses Tex Gyre instead of DejaVu, which looks really bad because Tex Gyre has no lowercase i for example
<sondr3> I've tried changing my default fonts to the Noto family, removed DejaVu from my fonts installed and rebuilt a few times but the packages still stick around in my /nix/store/
<sondr3> Is there a way to do anything about this?
<{^_^}> [nix] @edolstra pushed to master « Fix perl-bindings »: https://git.io/vxFed
<{^_^}> [nixpkgs] @dotlambda opened pull request #38681 → home-assistant: 0.65.5 -> 0.66.1 → https://git.io/vxFeA
__Sander__ has quit [Ping timeout: 260 seconds]
hph^ has joined #nixos
reinzelmann has quit [Quit: Leaving]
<ottidmes> arjen-jonathan: The theming is a matter of having the right gtk config and again having them be made accessible from one of the paths on XDG_DATA_DIRS
<arjen-jonathan> Yeah, so as a non-nixos user I'd like it to use my user's GTK theme; which seems to happen when I don't set XDG_DATA_DIRS
<arjen-jonathan> (But I don't get syntax hl)
<sondr3> brb
<ottidmes> arjen-jonathan: So you probably are missing the default OS dir in your XDG_DATA_DIRS, /usr/share (or whatever)
<arjen-jonathan> I tried adding that, with no avail
sondr3_ has joined #nixos
<ottidmes> arjen-jonathan: As a workaround, what I could think of, is to just symlink what is in /nix/store/gr46pa94vn6wngyngpwnw26502879p3i-gtksourceview-2.10.5/share/ in your system's share
<arjen-jonathan> Nah, that isn't an option for a shell.nix project file
<arjen-jonathan> That I'm setting up to share ;-)
<arjen-jonathan> But thanks
sondr3 has quit [Ping timeout: 260 seconds]
jrolfs_ has quit [Ping timeout: 240 seconds]
sondr3_ has quit [Quit: Page closed]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/62658a37e37 (from 16 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
xcmw has quit [Ping timeout: 265 seconds]
jrolfs_ has joined #nixos
jrolfs_ has quit [Ping timeout: 240 seconds]
zzamboni has quit [Quit: Leaving.]
zzamboni has joined #nixos
humanoyd has joined #nixos
aarvar has quit [Ping timeout: 264 seconds]
kolb has joined #nixos
<kolb> Hi
<kolb> I am using nixops to deploy hetzner server and it appears creating the admin account fails (hetzner.WebRobotError), any way I can get details about why exactly? I don’t have 2-factor auth so either I mistyped credentials or something else... I don’t think its the former
<kolb> oh nvm
<kolb> there is a separate API credential set obviously *facepalm*
Guest17535 has quit [Ping timeout: 240 seconds]
jrolfs_ has joined #nixos
knupfer has joined #nixos
spear2 has quit [Ping timeout: 260 seconds]
robstr has joined #nixos
<kolb> Uhm: raise WebRobotError("The user {0} is a dedicated web service user "
jrolfs_ has quit [Ping timeout: 264 seconds]
<kolb> So it actually does want my regular uer/password?
tmplt_ has quit [Ping timeout: 264 seconds]
iyzsong has quit [Ping timeout: 264 seconds]
jperras has joined #nixos
<zybell_> *dedicated*
<kolb> ?
jrolfs_ has joined #nixos
<sphalerite> on the one hand, yay scrolling works right in libreoffice now! On the other hand, it uses 100% of one core :(
chessai has joined #nixos
<sphalerite> kolb: you either need to give it the root account credentials, or set up sub-accounts for it and set deployment.hetzner.createSubAccount to false, as described in the manual at https://nixos.org/nixops/manual/#idm140737318354032
<kolb> kolb: yeah I tried the former, it doesn’t work / I am doing something wrong
<zybell_> dedicated means setup for this one task:running the webservice,independent from any other user including you.
<kolb> While I don’t really understand that, I tried it with my "root" credentials before and after and it doesn’t work either
kmicklas has joined #nixos
tmplt_ has joined #nixos
<kolb> I just get hetzner.WebRobotError
jrolfs_ has quit [Ping timeout: 264 seconds]
zzamboni has quit [Quit: Leaving.]
<{^_^}> [nixpkgs] @Mic92 opened pull request #38682 → linuxPackages.perf: use prefix instead of DESTDIR → https://git.io/vxFIS
jensens has quit [Ping timeout: 264 seconds]
zzamboni has joined #nixos
wangoe has quit [Quit: WeeChat 1.9.1]
schaary has quit [Quit: ~]
schaary has joined #nixos
<thblt> Hi! Is there a way to get information about the running nix-shell from inside that shell? I'm trying to make it clear from zsh prompt that I'm in a nix-shell, and that's easy with $IN_NIX_SHELL, but is there a way I can get this shell's definition?
jrolfs_ has joined #nixos
<thblt> Eg created from ~/some/path/default.nix, created with -p package package2, etc
<thblt> thanks!
johnw has joined #nixos
logzet has joined #nixos
<sphalerite> thblt: $name can be helpful for derivations with meaningful names, less so for -p (it just ends up as "shell")
<thblt> sphalerite: thank you, I didn't notice this variable!
<sphalerite> thblt: for -p maybe taking apart $buildInputs could be useful, but it's a bit more fiddly.
blankhart has joined #nixos
vidbina has joined #nixos
<sphalerite> thblt: for input in $buildInputs ; do echo "${input#*-}" ; done will give you the names of the inputs I guess
zzamboni has quit [Quit: Leaving.]
<thblt> sphalerite: it works for some, but not all. $name will have to do, I don't feel like extractng meaningful info from a bundle of paths. Thanks!
<sphalerite> thblt: you could also do "${name%%-[0-9]*}" to strip the version off I think
mudphone has quit [Quit: ~]
mudphone has joined #nixos
zzamboni has joined #nixos
xcmw has joined #nixos
pcarrier has quit [Quit: ~]
pcarrier has joined #nixos
silver has joined #nixos
erasmas has joined #nixos
scode has quit [Quit: ~]
detran` has joined #nixos
scode has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38684 → automake: 1.16 -> 1.16.1 → https://git.io/vxFm3
r0bby has quit [Quit: ~]
r0bby has joined #nixos
zzamboni has quit [Remote host closed the connection]
dmj` has quit [Quit: ~]
<kolb> gosh why am I failing this... deployment.hetzner.createSubAccount=false; and it still is failing trying to create the subaccount
shapr has quit [Ping timeout: 276 seconds]
nz has quit [Quit: ~]
dmj` has joined #nixos
nz has joined #nixos
<{^_^}> [nixpkgs] @fadenb opened pull request #38685 → grepcidr: Init at 2.0 → https://git.io/vxFmi
<kolb> side question: what is “error: 'NoneType' object has no attribute 'get'” about? I tried { arg ? null }: ... thinking that’s how you do optional parameters and got that instead
<zybell_> sphalerite:Versions have at least a dot in,then there are niceties like rc alpha beta
ertesx-w has joined #nixos
ilovezfs_ has quit [Quit: ~]
<{^_^}> [nixpkgs] @r-ryantm closed pull request #38684 → automake: 1.16 -> 1.16.1 → https://git.io/vxFm3
<zybell_> kolb:That rings suspicious like a common *Python*Error
vidbina has quit [Ping timeout: 265 seconds]
ilovezfs_ has joined #nixos
feepo has quit [Quit: ~]
<sphalerite> zybell_: for nix derivation names, " The package name is everything up to but not including the first dash followed by a digit, and the version is everything following that dash."
feepo has joined #nixos
<sphalerite> zybell_: ref nix manual.
szicari has joined #nixos
tazjin has quit [Quit: ~]
<zybell_> Ok,I was regex,not shell glob.
tazjin has joined #nixos
<ertesx-w> more and more of my GTK applications no longer display icons… what's going on?
philipcristiano has quit [Quit: ~]
xplat|work_ has quit [Quit: ~]
xplat|work_ has joined #nixos
philipcristiano has joined #nixos
ertes-w has quit [Ping timeout: 256 seconds]
ertesx-w is now known as ertes-w
gaqzi has quit [Quit: ~]
<kolb> If I do { arg }: { ...}: { foo.arg = arg ? null; } instead I get "The option value `foo.arg' in `...' is not a null or string."
gaqzi has joined #nixos
p_l has quit [Quit: ~]
phreedom has quit [Ping timeout: 268 seconds]
p_l has joined #nixos
<kolb> (I swear if I pass anything its a string)
philips has quit [Quit: ~]
philips has joined #nixos
<zybell_> But is foo.arg declared as such?
gleber_ has quit [Quit: ~]
phreedom has joined #nixos
gleber_ has joined #nixos
<kolb> its deployment.hetzner.robotUser in reality
nand0p has quit [Quit: ~]
nand0p has joined #nixos
martingale has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @S-NA closed pull request #38679 → pidgin-discord: init at 0.9.2018.04.10.git.9a97886 → https://git.io/vxdFp
eddyb has quit [Quit: ~]
eddyb has joined #nixos
<zybell_> Could it want a User object? Or a set {name=...;passwd=...}?
edofic has quit [Quit: ~]
christiaanb has quit [Quit: ~]
edofic has joined #nixos
christiaanb has joined #nixos
cbarrett has quit [Quit: ~]
dgpratt has quit [Quit: ~]
dgpratt has joined #nixos
cbarrett has joined #nixos
<kolb> zybell_: not according to the docs...
luto has quit [Quit: ~]
luto has joined #nixos
<kolb> but I should paddle back and figure out why deployment with createSubAccount = true doesn’t work in the first place... *doingsomethingwrong*
dredozubov has quit [Quit: ZNC - http://znc.in]
<{^_^}> [nixpkgs] @S-NA opened pull request #38686 → pidgin-discord: init at 2018-04-10 → https://git.io/vxFOa
<{^_^}> [nixpkgs] @fadenb opened pull request #38687 → python: phonenumbers: 8.9.0 -> 8.9.3 → https://git.io/vxFOr
<{^_^}> [nixpkgs] @dotlambda closed pull request #38687 → python: phonenumbers: 8.9.0 -> 8.9.3 → https://git.io/vxFOr
kaychaks has quit [Quit: ~]
kaychaks has joined #nixos
mjvoge02 has quit [Quit: ~]
elvishjerricco has quit [Quit: ~]
mjvoge02 has joined #nixos
elvishjerricco has joined #nixos
terrorjack has quit [Quit: ~]
vdemeester` has quit [Quit: ~]
vdemeester` has joined #nixos
terrorjack has joined #nixos
Smithx10_ has quit [Quit: ~]
Smithx10_ has joined #nixos
johs has quit [Quit: ~]
johs has joined #nixos
Fuuzetsu has quit [Ping timeout: 276 seconds]
indika_ has quit [Quit: ~]
indika_ has joined #nixos
jrolfs_ has quit [Ping timeout: 240 seconds]
mgttlinger has quit [Quit: ~]
mgttlinger has joined #nixos
wavewave has quit [Quit: ~]
wavewave has joined #nixos
Wizek has quit [Quit: ~]
eacameron has quit [Quit: ~]
fingerzam has quit [Quit: ~]
fingerzam has joined #nixos
eacameron has joined #nixos
Wizek has joined #nixos
katona has quit [Quit: Connection closed for inactivity]
pingveno has quit [Quit: ~]
pingveno has joined #nixos
macros has quit [Ping timeout: 260 seconds]
jrolfs_ has joined #nixos
themistocle_ has quit [Quit: ~]
themistocle_ has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #38682 → linuxPackages.perf: use prefix instead of DESTDIR → https://git.io/vxFIS
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxFsF
<{^_^}> → 0e2b222c by @Mic92: linuxPackages.perf: use prefix instead of DESTDIR
<{^_^}> → 1d129ed6 by @Mic92: Merge pull request #38682 from Mic92/perf
<{^_^}> [nixpkgs] @Mic92 pushed to release-18.03 « linuxPackages.perf: use prefix instead of DESTDIR »: https://git.io/vxFGL
dredozubov has joined #nixos
fendor has joined #nixos
jrolfs_ has quit [Ping timeout: 246 seconds]
<shlevy> b
jrolfs_ has joined #nixos
nuncanada has joined #nixos
jrolfs_ has quit [Ping timeout: 240 seconds]
ryanartecona has quit [Quit: ryanartecona]
nkaretnikov has joined #nixos
<seequ__> How big should I make the UEFI boot partition?
<nkaretnikov> where's hasktags, a program for generating tags for haskell? can't find it in the repo
mmercier has joined #nixos
jrolfs_ has joined #nixos
<gchristensen> seequ__: mine is 500m, has about 250 system generations, and is about full.
<seequ__> Don't think I've ever had that many.
<binarin> nkaretnikov: It's inside haskellPackages, like this: nix-env -iA nixos.haskellPackages.hasktags
<seequ__> gchristensen: so 1GB is more than a safe bet?
<nkaretnikov> binarin: but why doesn't nox find it?
<gchristensen> seequ__: yep
<gchristensen> I disapponted though, that mine is about full -- I still have generation #1!
waleee has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nkaretnikov> binarin: also this command doesn't work for me on macos
<nkaretnikov> binarin: attribute 'nixos' in selection path 'nixos.haskellPackages.hasktags' not found
<binarin> You probably don't need 'nixos.' part then
nuncanada has quit [Quit: Leaving]
<nkaretnikov> binarin: it's supposed to be nixpkgs
<sphalerite> gchristensen: wow
<nkaretnikov> binarin: thanks!
<binarin> nkaretnikov: Have you seen this btw https://nixos.org/nixpkgs/manual/#how-to-install-haskell-packages ?
<nkaretnikov> binarin: i've read the manual several years ago :)
<sphalerite> nkaretnikov binarin: for consistent behaviour across nixos and other OSes, it's best to use `nix-env -f '<nixpkgs>'`
<nkaretnikov> s/'ve//
<ottidmes> gchristensen: my /nix/store needs to be garbage collected often, so I wonder how you get to be at 250 generations while still having generation #1 around? My desktop is currently at generation 1232 :P
<sphalerite> e.g. nix-env -f '<nixpkgs>' -iA haskellPackages.hasktags
nkaretnikov has left #nixos [#nixos]
boxofrox has quit [Quit: WeeChat 2.1]
fendor has quit [Ping timeout: 256 seconds]
<gchristensen> ottidmes: I GC all the time, just not the system generations
<sphalerite> gchristensen: still, that spans, what, 17.03 to 18.03? I'm guessing your system closure isn't that big?
<gchristensen> firefox, chrome, gpg, ripgrep, git, slack, terminator, i3 is about it
<sphalerite> mine is 3GB
<gchristensen> how do I find out, again?
<sphalerite> du -chd0 $(nix-store -qR /run/current-system/) | tail
dan_b has joined #nixos
telent has joined #nixos
<gchristensen> 5.4G ...!
<ottidmes> mine is 12G wut
<sphalerite> I'm guessing we all have different distributions of stuff between user and system profiles :p
<{^_^}> [nixpkgs] @waern opened pull request #38689 → nixos/acme: Service should not fail when no renewal is necessary → https://git.io/vxFWy
<ottidmes> I have everything in system profiles and nothing in user
<sphalerite> right
<gchristensen> same
<sphalerite> my user profile is 3.5GB
jrolfs_ has quit [Ping timeout: 256 seconds]
<sphalerite> (significant shrinkage from how big it was the past year or so since I removed IDEA today)
<gchristensen> I'm a super aggressive user of nix-shell. I'll go months of using a tool on a daily basis before putting it in my system profile.
<sphalerite> same
<ottidmes> gchristensen: And I only use nix-shell when some question about it is asked :P
jrolfs_ has joined #nixos
<gchristensen> :o
<sphalerite> but once it's in the user (or system) profile I often forget it's there even when I stop using it
<sphalerite> http://ix.io/17tQ I do not use all this stuff (nix-env -q as user)
<ottidmes> sphalerite: nix-env is my temp installer, I clean it out when I do a full garbage collect since I only use it when I want to test something out quick
<sphalerite> that's what nix-shell is for :(
<gchristensen> I don't use nix-env, and don't know how to use it when people ask question about it :P
asuryawanshi has quit [Ping timeout: 240 seconds]
Mateon2 has joined #nixos
<rizary> in this https://nixos.org/nixos/nix-pills/functions-and-imports.html tutorial, author mention on using statement `with`, but i can't find it. I want to know the meaning of `functionName (p: with p; [ package ])` where is the right place to search the basic function like this?
jrolfs_ has quit [Ping timeout: 264 seconds]
<gchristensen> my commitment tof nix-shell runs deep, sphalerite / ottidmes: nix-shell -p notmuch --run "while true; do notmuch new; sleep 60; done", and nix-shell -p borgbackup --run "while true; do borg create -s 'remote:/backups::{hostname}-{utcnow}' /etc /home; sleep 600; done"
<ottidmes> gchristensen: I just remember nix-env -iA en nix-env -e, that covers my need
jrolfs_ has joined #nixos
{^_^} has quit [Remote host closed the connection]
<rizary> gchristensen: nice, thanks
<ottidmes> gchristensen: my only use of nix-shell in any of my scripts at this point is to list all system packages: ls-nixos = "nix-shell --packages jq --run ${escapeShellArg "nix-instantiate --json --eval --strict --expr 'map (p: p.name) (let config = (import <nixpkgs/nixos> {}).config; in config.environment.systemPackages ++ config.users.users.'$(id -u -n)'.packages)' | jq --raw-output 'unique |
{^_^} has joined #nixos
{^_^} has quit [Changing host]
{^_^} has joined #nixos
<ottidmes> sort_by(ascii_downcase) | .[]'"}";
<gchristensen> a shame, really :)
<ottidmes> gchristensen: I do see its use, but most of your use cases I have just implemented by creating them in my configuration
<gchristensen> aye :)
<ottidmes> nix-shell is very useful though it you want to make those kind of scripts more portable
lukec has quit [Ping timeout: 256 seconds]
jrolfs_ has quit [Ping timeout: 240 seconds]
xAFFE has left #nixos ["Error from remote client"]
<rizary> is there any guideline how to structure the .nix file? along with nix style guide? I've seen a lot of ppl use just let in the beginning while other using {}
<rizary> like { nixFunc ? import ./nixpkgs }
<sphalerit> rizary: it depends on your use case
<sphalerit> The function style is overridable
<sphalerit> You can't touch let expressions from the outside
coot has joined #nixos
<cransom> i suppose i use nix-shell super heavily since i use direnv and `use nix`.
astrofog has joined #nixos
<sphalerite> gchristensen: that sort of script is something I'd probably make a script for in nix
<gchristensen> yeah, it is just my laziness
<srk> oh, nice declare -x IN_NIX_SHELL="impure"
<srk> I can add shell information to PS1
vaninwagen has quit [Ping timeout: 240 seconds]
arjen-jonathan has quit [Ping timeout: 260 seconds]
coot has quit [Read error: No route to host]
binarin has quit [Ping timeout: 276 seconds]
coot has joined #nixos
crooksey has quit [Ping timeout: 260 seconds]
asuryawanshi has joined #nixos
ryanartecona has joined #nixos
dan_b has quit [Ping timeout: 240 seconds]
telent has quit [Ping timeout: 264 seconds]
jperras has quit [Quit: WeeChat 2.1]
jperras has joined #nixos
jrolfs_ has joined #nixos
jtojnar_ has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
jtojnar has quit [Ping timeout: 256 seconds]
jtojnar_ is now known as jtojnar
<ToxicFrog> IN_NIX_SHELL is handy, but it would be nicer if it could give you more information about the shell invokation
<ToxicFrog> My prompt tries to infer it from $buildInputs and $PATH but it doesn't always work right, especially for nested nix-shells.
tmplt_ has quit [Ping timeout: 246 seconds]
tmplt_ has joined #nixos
fiatjaf has quit [Quit: ~]
asuryawanshi has quit [Ping timeout: 263 seconds]
jtojnar has quit [Quit: jtojnar]
tmplt_ has quit [Ping timeout: 260 seconds]
pie__ has quit [Read error: Connection reset by peer]
pie_ has joined #nixos
alex`` has joined #nixos
<acowley> Suppose you build something in a buildFHSUserEnv, is it possible to refer to paths in that chroot from another nix expression? E.g. foo = buildFHSUserEnv {...}; ${foo}/usr/include
<acowley> I can dig out the paths I want by scrounging around in shell scripts in the store, but I'd rather not.
blankhart has quit [Ping timeout: 256 seconds]
raynold has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #38659 → iaca: init at 3.0, 2.1 → https://git.io/vx5iO
<{^_^}> [nixpkgs] @Mic92 pushed commit from @kazcw to master « iaca: init at 3.0, 2.1 (#38659) »: https://git.io/vxF1e
ambro718 has joined #nixos
Ariakenom has joined #nixos
asuryawanshi has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
asuryawanshi has joined #nixos
jrolfs has joined #nixos
<das-g[m]> How do I install GNOME shell extensions on NixOS?
<das-g[m]> I've added chrome-gnome-shell & gnome3.gnome-shell-extensions to environment.systemPackages in /etc/nixos/configuration.nix, rebuilt and rebooted and installed the "GNOME Shell integration" Firefox extension.
<das-g[m]> Still https://extensions.gnome.org/ says "native host connector is not detected" ...
goibhniu has quit [Ping timeout: 264 seconds]
jrolfs_ has quit [Ping timeout: 240 seconds]
sehqlr has joined #nixos
<das-g[m]> I can enable some selected extensions with gnome-tweak-tool, but none of those is for showing tray icons, which GNOME 3.26 (shipped with NixOS 18.03) doesn't display by itself anymore.
<acowley> I've enabled emoji-selector, gtile, and night-light-slider.
<acowley> They're packaged and somewhere on my github
<acowley> It amounted to nix packaging, adding to systemPackages, and then enabling in Tweaks.
<das-g[m]> So the browser-based installation isn't available on NixOS?
<acowley> I did get that working, but stopped using it. It required a quite recent version of the firefox extension.
<das-g[m]> (If so, why is chrome-gnome-shell even packaged?)
<acowley> And I had this in configuration.nix: nixpkgs.config.firefox.enableGnomeExtensions = true;
<acowley> services.gnome3.chrome-gnome-shell.enable = true;
<{^_^}> [nixpkgs] @Mic92 merged pull request #35044 → gitAndTools.hubUnstable: init at 2.3.0-pre10 → https://git.io/vACcR
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/vxFMC
<{^_^}> → d92d1db7 by @layus: gitAndTools.hubUnstable: init at 2.3.0-pre10
<{^_^}> → be81bed4 by @Mic92: Merge pull request #35044 from layus/update-hub
vidbina has joined #nixos
<das-g[m]> ah, that might be what I'm missing
xcmw has joined #nixos
<acowley> I figured the nix packaging would be more easily reproducible
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38690 → tribler: 7.0.1 -> 7.0.2 → https://git.io/vxFMR
xcmw has quit [Client Quit]
<{^_^}> [nixpkgs] @gebner pushed to master « elan: init at 0.1.0 »: https://git.io/vxFM6
xcmw has joined #nixos
<das-g[m]> I looked for related options on https://nixos.org/nixos/options.html, but didn't find any.
<das-g[m]> Any idea why https://nixos.org/nixos/options.html#nixpkgs.config.firefox.enablegnomeextensions doesn't match anything?
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38691 → wayland: 1.14.0 -> 1.15.0 → https://git.io/vxFMF
martingale has joined #nixos
xcmw has quit [Ping timeout: 260 seconds]
<acowley> It's an option in the firefox wrapper
<{^_^}> [nixpkgs] @Mic92 pushed to staging « Revert "dbus-glib: 0.108 -> 0.110" »: https://git.io/vxFDG
sehqlr has quit [Read error: Connection reset by peer]
martingale has quit [Ping timeout: 260 seconds]
<acowley> I think the main avenue to discover this (other than IRC or looking at other people's configurations) is via chrome-gnome-shell.meta.longDescription
<{^_^}> [nixpkgs] @Mic92 pushed to master « linuxPackages.perf: remove unused TIPDIR macro »: https://git.io/vxFDH
ngerstle[m] has joined #nixos
<TweyII> Is there a way to tell whether a certain angle-bracket path exists in NIX_PATH?
<das-g[m]> Ah, right. https://nixos.org/nixos/packages.html#chrome-gnome shows that. :-) (With spurious XML tags.)
<das-g[m]> And thanks, that worked!
sanscoeur has joined #nixos
arjen-jonathan has joined #nixos
jrolfs_ has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38692 → weston: 3.0.0 -> 4.0.0 → https://git.io/vxFy4
jrolfs has quit [Ping timeout: 260 seconds]
sigmundv__ has quit [Ping timeout: 255 seconds]
jrolfs has joined #nixos
vidbina has quit [Ping timeout: 240 seconds]
jrolfs_ has quit [Read error: Connection reset by peer]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38693 → syncplay: 1.5.2 -> 1.5.3 → https://git.io/vxFyQ
vidbina has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38694 → sysstat: 11.7.2 -> 11.7.3 → https://git.io/vxFST
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/cb4067b4125 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
lohfu has quit [Quit: WeeChat 1.9]
shymega has quit [Quit: Peace out.]
pxc has joined #nixos
humanoyd has quit [Quit: WeeChat 2.1]
TweyII has quit [Ping timeout: 255 seconds]
martingale has joined #nixos
<Ralith> cstrahan is working on the bad gcc flags issue again :D :D :D
vidbina_ has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38695 → strace: 4.21 -> 4.22 → https://git.io/vxF97
winem_ has quit [Ping timeout: 264 seconds]
vidbina has quit [Ping timeout: 240 seconds]
civodul has joined #nixos
arjen-jonathan has quit [Ping timeout: 263 seconds]
pxc has quit [Ping timeout: 260 seconds]
jperras has quit [Quit: WeeChat 2.1]
vidbina has joined #nixos
<{^_^}> [nixpkgs] @FRidh pushed 22 commits to staging: https://git.io/vxFQc
<{^_^}> → 615fefb3 by @brainrape: nixos/prosody: add dataDir option
<{^_^}> → a09c39f8 by @vbgl: ocamlPackages.js_of_ocaml-lwt: init at 3.1.0
<{^_^}> → 654ce4ba by @Mic92: musl: enable musl-gcc, ld.musl-clang, musl-clang
vidbina_ has quit [Ping timeout: 240 seconds]
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/1c52531bbe9 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<{^_^}> [nixpkgs] @pbogdan opened pull request #38696 → rust: drop obsolete patch (now included in upstream sources) → https://git.io/vxFQ0
knupfer1 has joined #nixos
knupfer has quit [Ping timeout: 265 seconds]
knupfer1 is now known as knupfer
<elvishjerricco> How do you upgrade nix on macos?
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/e6f8b6b897f (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
xcmw has joined #nixos
<sphalerite> elvishjerricco: nix upgrade-nix I think
<elvishjerricco> sphalerite: I'm trying to go from 1.11 to 2.0 :P
<sphalerite> nix-env -f '<nixpkgs>' -iA nix
<sphalerite> I think
vidbina has quit [Ping timeout: 268 seconds]
<sphalerite> or nix-shell -p nix --run 'nix upgrade-nix'
<sphalerite> :D
<sphalerite> assuming your nixpkgs is up to date
<elvishjerricco> haha alright
Tobba_ has quit [Read error: Connection reset by peer]
<elvishjerricco> I guess nix is probably installed in the root profile?
<elvishjerricco> in the multi-user macos installation
freeman42x]NixOS has quit [Quit: Leaving]
ixxie has joined #nixos
alex`` has quit [Quit: WeeChat 2.1]
nuncanada has joined #nixos
<sphalerite> yeah I guess so
<sphalerite> well the default profile
<sphalerite> but that's the one managed by root so yeah
ixxie has quit [Ping timeout: 256 seconds]
coot has quit [Quit: coot]
jrolfs has quit [Ping timeout: 260 seconds]
civodul has quit [Ping timeout: 256 seconds]
ndrei has joined #nixos
freeman42x]NixOS has joined #nixos
krey has joined #nixos
sigmundv__ has joined #nixos
cstrahan has joined #nixos
chisui has joined #nixos
mmercier has quit [Ping timeout: 240 seconds]
ryanartecona has quit [Quit: ryanartecona]
chessai has quit [Remote host closed the connection]
MichaelRaskin has joined #nixos
vidbina has joined #nixos
<{^_^}> [nixpkgs] @thoughtpolice pushed to master « wal-g: 0.1.2 -> 0.1.8pre240_966f3c5f4 »: https://git.io/vxFbx
jperras has joined #nixos
alex`` has joined #nixos
humanoyd has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38697 → scantailor-advanced: 1.0.12 -> 1.0.14 → https://git.io/vxFAE
<{^_^}> [nixpkgs] @dotlambda pushed commit from @ajs124 to master « texstudio: 2.12.6 -> 2.12.8 (#38663) »: https://git.io/vxFAr
<{^_^}> [nixpkgs] @dotlambda merged pull request #38663 → texstudio: 2.12.6 -> 2.12.8 → https://git.io/vxdI9
ixxie has joined #nixos
endformationage has joined #nixos
<{^_^}> [nixpkgs] @thoughtpolice opened pull request #38698 → [WIP] Overhaul PostgreSQL packaging, native extensions, and NixOS support → https://git.io/vxFxk
kiloreux_ has joined #nixos
kiloreux has quit [Read error: Connection reset by peer]
civodul has joined #nixos
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vidbina has quit [Ping timeout: 265 seconds]
<monotux> my load is around 6400 atm
<monotux> and that is not a typo
<monotux> [root@beatrice:~]# w
<monotux> 20:36:22 up 1 day, 3:43, 0 users, load average: 6433.88, 6432.27, 6411.99
<monotux> USER TTY LOGIN@ IDLE JCPU PCPU WHAT
Myrl-saki has joined #nixos
<joko> Hello, I was wondering if anyone is using Hydra like Jenkins (not building packages and testing VMs) and how so
<joko> I have migrated to nixops and was wondering how I could automate the system update process
m3lt has joined #nixos
rauno has joined #nixos
<ixxie> joko: well one option is https://docs.travis-ci.com/user/languages/nix/
<ixxie> joko: I think some people use Hydra in conjunction with Travis ( gchristensen maybe? )
<joko> ixxie: are there hooks in hydra when a build is finished and successful? That could be a starting point
Guest17535 has joined #nixos
rauno has quit [Ping timeout: 260 seconds]
cript0nauta has joined #nixos
<ixxie> joko: unfortunately thats about all I know; I never worked with Hydra or CI in general myself
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38699 → synapse: 0.2.99.3 -> 0.2.99.4 → https://git.io/vxFj1
humanoyd has quit [Quit: WeeChat 2.1]
klntsky has joined #nixos
<{^_^}> [nixpkgs] @aborsu closed pull request #38550 → nextcloud: 13.0.0 -> 13.0.1 → https://git.io/vxHpK
ryanartecona has joined #nixos
rauno has joined #nixos
<cript0nauta> Hi! I would like some help packaging this simple flask application: https://github.com/Faerbit/todo-backend-flask
<cript0nauta> I used pypi2nix and then requirements.nix -A interpreter to run it, but I'm not sure how to make a binary that serves it
symphorien has quit [Quit: WeeChat 1.9.1]
<seequ__> Hmm nix-build is printing a huge mess.
<sphalerite> seequ__: you can pass -Q if you don't want to see the build logs, or use the new nix build UI
knupfer has quit [Ping timeout: 245 seconds]
<seequ__> Right, I do want them, it's just.. printing newlines instead of updating the rows
juliend_ has joined #nixos
<seequ__> thus looking really broken
symphorien has joined #nixos
<sphalerite> seequ__: oh, that's probably the result of mixing 1.x and 2.x
<sphalerite> seequ__: you may be running a 2.x client with a 1.x daemon
mkoenig_ has joined #nixos
<seequ__> ..oh there's 2.x?
<seequ__> I'm on unstable
mkoenig has quit [Ping timeout: 276 seconds]
frankqux has joined #nixos
<cript0nauta> https://pastebin.com/W0Qn8yFU this is what I have, it should serve the app with gunicorn but I'm not sure why it doesn't recognize the python module
hotfuzz has joined #nixos
jrolfs has joined #nixos
ixxie has quit [Ping timeout: 256 seconds]
troydm has joined #nixos
endformationage has quit [Ping timeout: 240 seconds]
<krey> how can I get the "result" of /etc/nixos/configuration.nix?
hotfuzz_ has quit [Ping timeout: 245 seconds]
<krey> in the nix repl, say
endformationage has joined #nixos
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f28bf68bc4f (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<sphalerite> krey: import <nixpkgs/nixos/lib/eval-config.nix>
<sphalerite> krey: oh wait no
mmercier has joined #nixos
<sphalerite> krey: import <nixpkgs/nixos> {}
blankhart has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
<krey> sphalerite: that's neat, but doesn't seem to work?
<krey> sphalerite: where are my overlays?
<sphalerite> krey: what are you trying to achieve?
<krey> sphalerite: I realised that most of the time, I don't want <nixpkgs>, I want whatever nixpkgs became after my overlays are done with it
<sphalerite> then you probably just want to put your overlays in your NIX_PATH
<LnL> don't think the nixos package set is exposed in a nice way
<krey> sphalerite: they're in there
<sphalerite> or create a symlink ~/.config/nixpkgs/overlays to wherever you keep your overlays
<krey> sphalerite: nix-shell is pretty good at finding my overlays
<krey> sphalerite: maybe this is an issue wit nix repl?
<sphalerite> krey: no, import <nixpkgs> {} should have your overlays like any other nix tools
<krey> sphalerite: that it doesn't
<krey> sphalerite: does it do that for you?
troydm has quit [Ping timeout: 255 seconds]
<sphalerite> krey: yes
<krey> sphalerite: I don't have much anything in my.config/nixpkgs
<krey> sphalerite: could that be the difference?
<sphalerite> krey: if it works for nix-shell it shsould work for nix repl too
chisui has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<sphalerite> krey: what exactly are you doing to encounter the issue? Like all the things you're typing
<zybell_> cript0nauta: could it be that $out/src isnt in sys.path. I dont see anything putting it there.
<zybell_> *sys.path?
detran` has quit [Remote host closed the connection]
Guest17535 has quit [Ping timeout: 260 seconds]
detran` has joined #nixos
<krey> sphalerite: oh man
<krey> sphalerite: I renamed my overlay and was typing the wrong package
<krey> sphalerite: sorry
<sphalerite> krey: :)
endformationage has quit [Ping timeout: 255 seconds]
MP2E has joined #nixos
vaninwagen has joined #nixos
alex`` has quit [Quit: WeeChat 2.1]
endformationage has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer merged pull request #37737 → safeeyes: init at 2.0.2 → https://git.io/vxBhJ
<{^_^}> [nixpkgs] @matthewbauer pushed 9 commits to master: https://git.io/vxbUt
<{^_^}> → e00f9b31 by @srghma: safeeyes: init at 2.0.2
<{^_^}> → 3bbe655c by @srghma: maintainers: add myself
<{^_^}> → 2f4a2201 by @srghma: safeeyes: add module
kiloreux_ has quit [Remote host closed the connection]
waleee has quit [Quit: WeeChat 2.1]
kiloreux_ has joined #nixos
detran` has quit [Ping timeout: 276 seconds]
<{^_^}> [nix] @LnL7 opened pull request #2067 → launchd: enable keepalive for the nix-daemon service → https://git.io/vxbUl
<krey> sphalerite: offtopic, but where's your nick from?
<krey> if I may ask
<sphalerite> krey: it's a rock :p
<sphalerite> that's literally all there is to it
<{^_^}> [nix] @copumpkin merged pull request #2067 → launchd: enable keepalive for the nix-daemon service → https://git.io/vxbUl
frankqux has quit [Remote host closed the connection]
<{^_^}> [nix] @copumpkin pushed 2 commits to 2.0-maintenance: https://git.io/vxbUR
<{^_^}> → 3cc790bd by @LnL7: launchd: enable keepalive for the nix-daemon service
<{^_^}> → d8141dee by @copumpkin: Merge pull request #2067 from LnL7/darwin-daemon-keepalive
<krey> sphalerite: was wondering if there's any connection to http://dwarffortresswiki.org/index.php/DF2014:Sphalerite
juliend_ has quit [Quit: Leaving]
<sphalerite> yes, but it's coincidental. My name comes from the rock that exists in real life, and the same for the rock in DF :p
endformationage has quit [Quit: WeeChat 1.9.1]
<krey> sphalerite: correlation vs. causation
<sphalerite> well there is still a causal relationship :p
<sphalerite> (also we have #nixos-chat for off-topic, but a bit of off-topic in here is fine as long as nobody's trying to ahve an on-topic conversation)
guest_ has joined #nixos
<cript0nauta> zybell_: I improved it a bit by adding a setup.py to the repo, then I simplified the nix file to this: https://gist.github.com/sh4r3m4n/8295ece0960dba8004e058a7b73a23ee
rauno has quit [Ping timeout: 263 seconds]
<cript0nauta> the problem is that the gunicorn wrapper doesn't detect my todo module, even if I add the source directory to PATH env var
orivej has joined #nixos
<guest_> hello. i'm trying to compile openbios (bios for VM) for other architectures (ppc for example). it seems that i need to do a cross-compilation. https://nixos.org/nixpkgs/manual/#chap-cross doesn't seem to help.
<guest_> nix files: https://pastebin.com/0AdvFhMr . 'nix-build -A openbios' works. 'nix-build "<nixpkgs>" --arg crossSystem '(import <nixpkgs/lib>).systems.examples.whatever' -A openbios' gives:
<guest_> error: attribute ‘openbios’ in selection path ‘openbios’ not found
<guest_> system: "x86_64-linux", multi-user?: no, version: nix-env (Nix) 1.11.15
<sphalerite> guest_: where is your expression for openbios coming from?
<krey> can some explain how nix paths work? if I have a channel I name foobar and I do import <foobar>, how does it find it?
<guest_> sphalerite: i wrote it myself. feel free to let me improve it
detran` has joined #nixos
taktoa has quit [Remote host closed the connection]
<sphalerite> guest_: nix-build '<nixpkgs>' -A stuff will try to build the expression "(import <nixpkgs> {}).stuff"
Myrl-saki has quit [Ping timeout: 260 seconds]
<sphalerite> guest_: but what you actually want to build is your default.nix
<sphalerite> guest_: I'm guessing your default.nix has import <nixpkgs> {} in it somewhere
<CrazedProgrammer> uhm, the first result of https://nixos.org/nixos/packages.html has the name 30eca1c57b9358eff984ab93dbfd213d6b08706b.tar.gz, is this intentional?
<guest_> sphalerite: indeed. line 2 of the paste.
<krey> sphalerite: ah, thank you, I missed that part of my nix path
<sphalerite> guest_: you need to either modify it to pass an alternative package set in through --arg, or just pass crossSystem where you're importing it
<sphalerite> guest_: whoops didn't see your paste :)
shabius has quit [Ping timeout: 240 seconds]
troydm has joined #nixos
<guest_> sphalerite: another solution may be to create openbios-ppc which imports openbios.nix with a crosscompiler as cc. of course, i don't know how to do
<{^_^}> [nixpkgs] @pSub merged pull request #38699 → synapse: 0.2.99.3 -> 0.2.99.4 → https://git.io/vxFj1
<{^_^}> [nixpkgs] @pSub pushed 2 commits to master: https://git.io/vxbTH
<{^_^}> → 16e37dbc by R. RyanTM: synapse: 0.2.99.3 -> 0.2.99.4
<{^_^}> → ac5ed2e0 by @pSub: Merge pull request #38699 from r-ryantm/auto-update/synapse
<sphalerite> guest_: so the simplest solution is to change `with import <nixpkgs> {};` to `with import <nixpkgs> {crossSystem = (import <nixpkgs/lib>).systems.examples.whatever;};`
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38700 → smtube: 18.1.0 -> 18.3.0 → https://git.io/vxbT5
<sphalerite> if you don't need to vary the system
<guest_> sphalerite: i don't need. i can create openbios-ppc/openbios-sparc/openbios-whatever if required
coot has joined #nixos
ilyaigpetrov has quit [Quit: Connection closed for inactivity]
detran` has quit [Ping timeout: 256 seconds]
ndrei has quit [Remote host closed the connection]
<sphalerite> guest_: your expressions look good, just one small suggestion ­— you could use an attribute set lookup rather than the chain of if-then-elses
ambro718 has quit [Quit: Konversation terminated!]
<sphalerite> oh wait not quite
<sphalerite> nvm :p
phdoerfler has joined #nixos
<symphorien> has https://nixos.org/nixos/options.html been updated to 18.03 ?
<sphalerite> symphorien: huh, looks to me like it hasn't
<guest_> sphalerite: i'm still fighting with the import. i get "error: value is a path while a set was expected, at default.nix:1:40" ie on the crossSystem line: with import <nixpkgs> { crossSystem = (import <nixpkgs>/lib).system.examples.raspberryPi; }; {
<symphorien> guest_: I see nix-env (Nix) 1.11.15. This suggest you are using nixos 17.09, then please use a more recent nixpkgs. Cross compilation was improved a lot since then.
<symphorien> guest_: I guess this is <nixpkgs/lib> and not <nixpkgs>/lib
<guest_> symphorien: i updated the channel 2 days ago: it's now "nixpkgs-18.09pre134800.e42ae4e586c"
robstr has quit [Quit: WeeChat 1.9.1]
<symphorien> ah nevermind then
<sphalerite> guest_: you may want to update your nix though, although that's a tangential issue which shouldn't be causing this problem
<guest_> thx, it works. now, I "just" need to define a new system for powerpc
blankhart has quit [Remote host closed the connection]
<sphalerite> :)
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38701 → samtools: 1.7 -> 1.8 → https://git.io/vxbIf
<symphorien> sphalerite: ah apparently this is a know issue: https://github.com/NixOS/nixos-homepage/issues/207
mahalel_ has joined #nixos
<zybell_> cript0nauta: There is a difference between PATH and sys.path. sys.path is set with .pth files.
<zybell_> Or by patching the script.
detran` has joined #nixos
<phry> heyo :) I'm building a derivation right now and something is failing in the installPhase. How do I get a manual shell where everything up until the installPhase is already executed? I'm building using `nix-shell -E 'with import ~/tmp/nixpkgs { }; callPackage ./default.nix {}'` right now.
<phry> I tried calling the configurationPhase and buildPhase by hand but it just said "doing nothing"
kiloreux_ has quit [Remote host closed the connection]
Tobba has joined #nixos
<krey> if I have a derivation, how can I get its name? if I do .name it gives me name-version
detran` has quit [Ping timeout: 245 seconds]
<{^_^}> [nixpkgs] @svanderburg merged pull request #38121 → nodePackages: add create-{react,react-native}-app; regenerate package set → https://git.io/vxrFu
<{^_^}> [nixpkgs] @svanderburg pushed 2 commits to master: https://git.io/vxbLn
<{^_^}> → 2d165b03 by @Ma27: nodePackages: add create-{react,react-native}-app; regenerate package set
<{^_^}> → f666e2f4 by @svanderburg: Merge pull request #38121 from Ma27/package-create-react-native-app
<{^_^}> [nixpkgs] @xeji opened pull request #38702 → [WIP] Mark packages as broken for 18.03 (generic+x86_64) → https://git.io/vxbLi
kolb has left #nixos [#nixos]
<LnL> krey: the most generic way is builtins.parseDrvName
<LnL> but some packages have a pname attribute
shabius has joined #nixos
<mpickering> I am getting thousands of lines of these errors when building a package, anyone seen anything familiar (on darwin) https://www.irccloud.com/pastebin/8ditS3DA/
<krey> LnL: thank you
<mpickering> some lines before that with the command https://www.irccloud.com/pastebin/jb4XQnOM/
detran` has joined #nixos
<LnL> hmm, I seem to remember grass was fixed for ZHF
<cript0nauta> zybell_: maybe i should write two nix packages, one for the python package itself and other depending on it and on gunicorn that has the runner script, but I think that is too complex
<mpickering> LnL: I fixed the build at least and it seems to somewhat work
phreedom has quit [Remote host closed the connection]
<mpickering> but I am looking closer now and it seems some header files are not included - I suspect due to these errors
dan_b has joined #nixos
telent has joined #nixos
<mpickering> in fact it seems there are no header files in the include dir
<mpickering> apart from folders "defs" dgl iostream and vect
<krey> is it possible to get a list of packages in the nix repl?
phreedom has joined #nixos
<krey> list of installed packages
<krey> i.e. nix-env -q --installed
detran` has quit [Ping timeout: 240 seconds]
<tilpner> Yes, start by importing ~/.nix-profile/manifest.nix
<tilpner> E.g. map (d: d.meta.name) (import ~/.nix-profile/manifest.nix)
<krey> tilpner: I don't have a lot of packages installed, so i can't tell: is this of packages I installed, or a list of the packages and all their dependencies?
detran` has joined #nixos
<{^_^}> [nixops] @Chakerbh opened pull request #921 → Ignore evaluation errors in destroy and delete operations, fixes 917 → https://git.io/vxbtQ
<tilpner> That should only list the packages you installed manually with nix-env
acarrico has quit [Ping timeout: 260 seconds]
<krey> tilpner: got it, thanks
sigmundv__ has quit [Ping timeout: 240 seconds]
asuryawanshi has quit [Ping timeout: 260 seconds]
detran` has quit [Ping timeout: 260 seconds]
civodul has joined #nixos
<zybell_> cript0nauta: No,you must provide a .pth file and symlink it somewhere sane. If its a lib,patching a script is out. Somwhere sane means a dir already in sys.path or brought into it with a 2nd .pth. Example:sth in .nix-profile
detran` has joined #nixos
<zybell_> The example is for 2nd .pth. .nix-profile isnt in sys.path by default.
mahalel_ has left #nixos [#nixos]
<zybell_> But maybe .nix-profile/lib/python-sth is?
<zybell_> sth=*
detran` has quit [Ping timeout: 264 seconds]
detran` has joined #nixos
<nh2[m]> in nix 2.0, how do I get back the old behaviour that it prints to stdout all that it's doing, instead of only updating the last CLI line?
<thoughtpolice> nh2[m]: I think for now you have to use nix-build if you want the old style output
detran` has quit [Remote host closed the connection]
detran` has joined #nixos
<manveru> nh2[m]: replace `build` with `log`
<zybell_> nh2 stty ocrnl may help
<nh2[m]> hmm, not great but thanks thoughtpolice !
<nh2[m]> manveru: would that also work for `nix run` somehow?
periklis has joined #nixos
<manveru> not easily
<nh2[m]> zybell_: that one is almost good but it inserts weird indents
alexteves_ has quit [Ping timeout: 264 seconds]
detran` has quit [Ping timeout: 265 seconds]
<zybell_> I know couldn't find a solution, therefore *may* help.
<zybell_> depends what you want to do
detran` has joined #nixos
cript0nauta has left #nixos [#nixos]
cript0nauta has joined #nixos
vaninwagen has quit [Ping timeout: 264 seconds]
<{^_^}> [nix] @LnL7 opened pull request #2068 → bump version to 2.1 → https://git.io/vxbOW
cruxeternus has quit [Quit: leaving]
<cript0nauta> zybell_: you lost me with the pth/sth you said could you explain a bit more?
cruxeternus has joined #nixos
periklis has quit [Remote host closed the connection]
<{^_^}> [nix] @LnL7 closed pull request #1779 → installer: don't touch /etc/profile → https://git.io/vNURW
ThatDocsLady has quit [Ping timeout: 256 seconds]
Ariakenom has quit [Read error: Connection reset by peer]
<wilornel> Hi #nixos! In nixos 17, I was able to use buildEnv in ~/.config/nixpkgs/config.nix to declare a set of packages for different users. Is there something like that in nixos 18? I
<tilpner> Did you get an error doing the exact same thing in 18.03?
<tilpner> (Though it's a little weird to use user-local configuration files to configure environments for other users)
<krey> is it possible to set my list of channels in configuration.nix?
<tilpner> Not easily
<krey> tilpner: why though? seems like a weird design decision
<krey> tilpner: single source of truth, except for channels
<tilpner> I agree. I switched away from nix-channel, I now can specify nixpkgs sources from my NixOS config
<krey> tilpner: those you need to set up imperatively
<wilornel> tilpner: I get `error: attribute 'myPackages' in selection path 'nixos.myPackages' not found
<wilornel> `
<wilornel> I forget, do I need to specify that ~/.config/nixpgs/config.nix is a file nixos needs to be aware of?
<krey> tilpner: can you show me how you do it?
<wilornel> ah, I forgot that I much preferred using nix-shell!
<wilornel> but still, I'd like to declare some packages for a non-per-project basis
<tilpner> krey - It's a fairly non-standard setup. I can help you get there, but you'd need to understand how all of it works if you run into trouble
katona has joined #nixos
<krey> tilpner: I'm pretty close to writing my own nix-channel
<tilpner> krey - Let's do this in a PM
<symphorien> wilornel: https://nixos.org/nixos/options.html#users.user+packages
<tilpner> wilornel - Are you using the old nix-* tools?
roconnor has joined #nixos
<wilornel> tilpner: interesting. I'd put that in /etc/nixos/configuration.nix? I am using things I was using in nixos17
<wilornel> Ah, the command I was running was
<tilpner> wilornel - symphorien sent you that link
<tilpner> (But I don't think it's what you want)
<symphorien> Yes that's an option for configuration.nix
<wilornel> ` nix-env -iA nixos.myPackages` and `~/.config/nixpgs/config.nix` was using `pkgs.buildEnv {}`
<wilornel> thank you symphorien
nikivi has joined #nixos
slyfox_ is now known as slyfox
orivej has quit [Ping timeout: 256 seconds]
szicari has quit [Quit: szicari]
simukis has quit [Ping timeout: 260 seconds]
robogoat has joined #nixos
<typetetris> when I try to run a windows program via wine, I get some error like `libGL error: unable to load driver: i965_dri.so`. What do I need to make that work?
<sphalerite> typetetris: enable 32-bit opengl drivers
<typetetris> ah ok
nkaretnikov has joined #nixos
coot has quit [Quit: coot]
guest_ has quit [Ping timeout: 260 seconds]
<nkaretnikov> there was a wiki page/blogpost showing how to add a dependency on a local haskell package while developing another one. could have been a post by ocharles or something on the wiki
<nkaretnikov> i think that's the page i've been lookin for: http://wiki.ocharles.org.uk/Nix
robogoat has quit [Quit: leaving]
<rizary> sphalerit: so when we really need function style or let ? Is there any specific use case or how to determine the best way?
robogoat has joined #nixos
pkill9 has joined #nixos
joko has quit [Quit: leaving]
hiratara has quit [Ping timeout: 260 seconds]
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38703 → offlineimap: 7.1.5 -> 7.2.0 → https://git.io/vxbCe
ryanartecona has quit [Quit: ryanartecona]
hiratara has joined #nixos
detran` has quit [Ping timeout: 255 seconds]
phdoerfler has quit [Quit: Leaving.]
phdoerfler has joined #nixos
hamishmack has quit [Quit: hamishmack]
kerrhau has joined #nixos
kerrhau has quit [Changing host]
kerrhau has joined #nixos
detran` has joined #nixos
<ottidmes> rizary: Why choose when you can have both? You are talking about how to use your file with nix-shell/nix-build, right? If so I would always use the function style, then you can include it in your nixpkgs overlay with callPackage as well, and you can just provide a wrapper file with a let that imports the function-style file, so you can have both
detran` has quit [Ping timeout: 240 seconds]
lukec has joined #nixos
ma27 has quit [Ping timeout: 245 seconds]
jrolfs has quit [Ping timeout: 240 seconds]
<ottidmes> rizary: I tend to use `nix-shell --expr 'with import <nixpkgs> {}; callPackage ./. {}'` and `nix-build --expr 'with import <nixpkgs> {}; callPackage ./. {}'` with my files, so I generally never use the let style for those files. The only use case I would use them for is to provide specific values for the function-style files or when I want to make it as easy as possible for other to use when sharing it outside
<ottidmes> nixpkgs
phdoerfler has quit [Quit: Leaving.]
<rizary> Hmmm I see
justanotheruser has quit [Ping timeout: 264 seconds]
day|flip has joined #nixos
<rizary> Yeah sometime I got confused to choose between the two for my Haskell project. Let say I have derivation.nix, build.nix, shell.nix and release.nix
<krey> so, I get the impression that people develop inside a nix-shell
<krey> right?
<ottidmes> rizary: I would at least make one of the files a package description that you would be able to use with callPackage, which generally is called default.nix, I guess that is your derivation.nix?
<rizary> Yes it is.
<ottidmes> krey: That is the most flexible way of doing development, and a lot of people choose to do so, yeah
chessai has joined #nixos
<krey> ottidmes: I've been thinking of trying it out
<krey> ottidmes: my issue is that nix-shell usually drops me into bash
<krey> ottidmes: and I like my customized zsh setup
<rizary> So if I'm not mistaken, something that will be call with callPackage should be function style?
<krey> ottidmes: how do people work around this?
mmercier has quit [Quit: mmercier]
<ottidmes> rizary: yes, the name implies it already, its a function you call to produce a package
<day|flip> im trying to override the url to this package. But im getting a build error. Any help will Be nice.
mmercier has joined #nixos
<ottidmes> krey: See the manpage of nix-shell, it has NIX_BUILD_SHELL, which defaults to bash
<{^_^}> [nixpkgs] @roconnor-blockstream opened pull request #38704 → trezord: 1.2.1 -> 2.0.12 → https://git.io/vxb8T
<judson> krey you can -i zsh (iirc)
phdoerfler has joined #nixos
<judson> I use direnv though, which works great for this use case.
<ottidmes> judson: What is direnv? I have seen it mentioned twice today
<krey> judson: unrecognised flag -i
<ottidmes> krey: judson: About -i "The chained script interpreter to be invoked by nix-shell. Only applicable in #!-scripts (described below)."
<judson> Oh right, I always forget that.
<judson> -r should work though.
<judson> direnv is a tool to manage environment variables on a per-directory basis. You have a little bash script in the directory, and whatever variables it exports get set when you enter the dir. When you leave, they're put back.
<ottidmes> krey: judson: Apparantly its still an open issue: https://github.com/NixOS/nix/issues/498 so yeah, --run zsh works, but there are some issues with it as you can read
<judson> There's a "stdlib" of helpful setups, including "use nix"
<judson> And what I discovered recently is that you can `use nix -p {whatever}`, so you don't even need a shell.nix
<krey> ottidmes: interesting, thanks
<{^_^}> [nixpkgs] @Mic92 merged pull request #38669 → xmrig-proxy: init at 2.5.2 → https://git.io/vxdCJ
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/vxb8D
<{^_^}> → e30f55f6 by @aij: xmrig-proxy: init at 2.5.2
<{^_^}> → 7decb080 by @Mic92: Merge pull request #38669 from aij/xmrig-proxy-master
<{^_^}> → 340270cb by @aij: Comment on kDonateLevel
<ottidmes> judson: seems interesting
<ottidmes> judson: But it nix-shell covers other use cases as well of course, since it allows you to just checkout some random project and it will work as long as you have nix available
<judson> Oh, yes. nix-shell is a kind of amazing tool.
<judson> But for the particular use case of "set up the development environment for...", direnv + nix-shell are chocolate and peanut butter.
<judson> Just ask zimbatm :)
<ottidmes> krey: But the key thing why nix-shell doesn't work well with other shells is that the building environment expects bash, but if you just use --packages it should not matter which shell you use (that I know)
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « docker-edge: 18.03 -> 18.04 »: https://git.io/vxb40
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « docker-edge: 18.03 -> 18.04 »: https://git.io/vxb4z
agile has joined #nixos
hiratara has quit [Quit: ZNC - http://znc.in]
<krey> judson: direnv is pretty cool
hiratara has joined #nixos
<{^_^}> [nixpkgs] @tokudan opened pull request #38705 → murmur: fix /tmp usage → https://git.io/vxb4j
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « htop: 2.1.0 -> 2.2.0 »: https://git.io/vxbBL
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « htop: 2.1.0 -> 2.2.0 »: https://git.io/vxbBq
aarvar has joined #nixos
<krey> in my systemPackages, I have python.withPackages [...]
<krey> is it possible to refer to this package in a .nix script?
jrolfs has joined #nixos
<clever> krey: its simpler to put that into its own .nix file, then load it into systemPackages with callPackage
hamishmack has joined #nixos
<krey> clever: ah, ok. I'm doing something similar with overlays
shabius has quit [Quit: Leaving]
xcmw has joined #nixos
<day|flip> anyone have any idea how I can make this work? https://hastebin.com/ahifohuxul.scala
mmercier has quit [Quit: mmercier]
civodul has quit [Read error: Connection reset by peer]
<sphalerite> day|flip: I think you want overrideAttrs, not override
<{^_^}> [nixpkgs] @NeQuissimus pushed to master « minikube: 0.25.2 -> 0.26.0 »: https://git.io/vxbRa
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.03 « minikube: 0.25.2 -> 0.26.0 »: https://git.io/vxbRw
ma27 has joined #nixos
pxc has joined #nixos
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
mizu_no_oto has joined #nixos
propumpkin has joined #nixos
sanscoeur has quit [Ping timeout: 240 seconds]
contrapumpkin has quit [Ping timeout: 264 seconds]
<day|flip> im still not understanding what missing here. but ok. https://hastebin.com/uhukicimoc.pl
<sphalerite> day|flip: ooh it looks like this is ebcause it doesn't use mkDerivation
<sphalerite> day|flip: it's just based on fetchzip
<sphalerite> not sure what to actually do about that though.
mizu_no_oto has quit [Ping timeout: 240 seconds]
mbrgm has quit [Ping timeout: 240 seconds]
mbrgm has joined #nixos
<pbogdan> pkgs.fantasque-sans-mono.overrideDerivation (attrs: { url = "https://github.com/belluzj/fantasque-sans/releases/download/v1.7.2/FantasqueSansMono-NoLoopK.zip"; outputHash = "1fwvbqfrgb539xybwdawvwa8cg4f215kw905rgl9a6p0iwa1nxqk"; }) maybe?
bsima has quit [Ping timeout: 240 seconds]
alasi has joined #nixos
ma27 has quit [Ping timeout: 245 seconds]
<zybell_> cript0nauta: Sorry for delay. sth is something (I tried sth=* to explain) .pth are python path files. On start python check all dirs that are on sys.path (not PATH,that has nothing to do with it) for files that end in .pth. python extends sys.path from the content and looks for .pth files in the new dirs. You should construct .pth file(s) that extend sys.path to include your module.
bsima has joined #nixos
mizu_no_oto has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38707 → ncmpc: 0.29 -> 0.30 → https://git.io/vxbE8
<day|flip> still keep getting attribute 'overrideAttrs' missing, at /etc/nixos/fsm.nix:5:6
<sphalerite> pbogdan: fantasque-sans-mono doesn't have overrideAttrs because it's a fetchzip
<sphalerite> pbogdan: which it seems doesn't use mkDerivation..?
<day|flip> will now im getting: attribute 'fetchzip' missing, at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:163:28
<clever> day|flip: pkgs.fetchzip i'm guessing
<day|flip> will that work. but now. that outputHash is not working mmm
jrolfs_ has joined #nixos
<day|flip> fetchurl requires a hash for fixed-output derivation: https://github.com/belluzj/fantasque-sans/releases/download/v1.7.2/FantasqueSansMono-NoLoopK.zip
pkill9 has quit [Quit: WeeChat 2.0.1]
Sonarpulse has quit [Quit: Leaving]
<day|flip> do I have to make a custom hash?
logzet has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @unode opened pull request #38708 → mailutils couldn't find sendmail for local mail delivery → https://git.io/vxbuk
<ottidmes> day|flip: It should give you an error with the right and wrong hash, but you might need to tweak the existing wrong hash by just changing one character so it does not conflict with anything existing in your store
<ottidmes> day|flip: But maybe that's not the case for fetchzip, never used it myself
<day|flip> so I don't have to used a zip base. i could used tar.gz?
sigmundv__ has joined #nixos
<ottidmes> day|flip: I checked nixpkgs, apparently you indeed can use other extensions as well
dan_b has quit [Ping timeout: 260 seconds]
telent has quit [Ping timeout: 276 seconds]
m3lt has quit [Ping timeout: 240 seconds]
katona has quit [Quit: Connection closed for inactivity]
pxc has quit [Ping timeout: 256 seconds]
jperras has quit [Ping timeout: 260 seconds]
jperras has joined #nixos
<day|flip> omg it works
<{^_^}> [nixpkgs] @jtojnar closed pull request #36487 → cairo: 1.14.10 -> 1.14.12 → https://git.io/vANKS
pxc has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38709 → libcouchbase: 2.8.5 -> 2.8.6 → https://git.io/vxbux
xpm9q has joined #nixos
<ottidmes> day|flip: are you still on 17.09, since I when I just checked, that particular package was already on 1.7.2 for me
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38710 → liquibase: 3.5.5 -> 3.6.0 → https://git.io/vxbzt
xpm9q has left #nixos [#nixos]
erasmas has quit [Quit: leaving]
<day|flip> no im on 18.03
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38711 → libqrencode: 3.4.4 -> 4.0.0 → https://git.io/vxbzZ
<ottidmes> day|flip: ah, I see, you want a different variant, not different version?
<day|flip> ya
mizu_no_oto has quit [Quit: Computer has gone to sleep.]
Jackneill has quit [Read error: Connection reset by peer]
Jackneill has joined #nixos
phdoerfler has quit [Quit: Leaving.]
jackdk has joined #nixos
fresheyeball has quit [Ping timeout: 256 seconds]
<{^_^}> [nixpkgs] @Ericson2314 merged pull request #28029 → hardening: fix #18995 → https://git.io/v76Pj
<{^_^}> [nixpkgs] @Ericson2314 pushed 15 commits to master: https://git.io/vxbgq
<{^_^}> → 9fe17b21 by @cstrahan: hardening: fix #18995
<{^_^}> → 9783a677 by @cstrahan: hardening: use lib.toList
<{^_^}> → 0937df46 by @cstrahan: hardening: fix bug/typo
phdoerfler has joined #nixos
justanotheruser has joined #nixos
seanparsons has quit [Read error: Connection reset by peer]
fresheyeball has joined #nixos
<{^_^}> [nixpkgs] @matthewbauer opened pull request #38712 → Unix-tools: Cleanup and more tweaks → https://git.io/vxbgp
Mateon2 has quit [Ping timeout: 240 seconds]
Mateon1 has joined #nixos
<{^_^}> [nixpkgs] @r-ryantm opened pull request #38713 → librime: 1.3.0 -> 1.3.1 → https://git.io/vxb2f
day|flip has quit [Remote host closed the connection]