<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]
<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)
<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 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 ?
<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
<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]
<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
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 :/
<{^_^}>
→ 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?
<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]>
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 ?)
<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.
<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 :)
<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 :)
<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 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
<{^_^}>
[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
<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
<{^_^}>
→ 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
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?
<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
<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
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
<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
<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
{^_^} 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.
<{^_^}>
[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]>
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;
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
<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?
<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)
<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
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
<{^_^}>
→ 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;};`
<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>
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]
<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
<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]
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>
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?
<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
<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.
<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
<{^_^}>
→ 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)
<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.
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]