Rusty1 has quit [Remote host closed the connection]
<jackdk>
Does anyone here have virt-manager running qemu? I have boot.kernelModules = [ "kvm-intel" ]; I have qemu in environment.systemPackages, virtualisation.libvirts.enable = true and am still getting "Could not detect a default hypervisor. Make sure the appropriate qemu/kvm virtualization packages are installed to manage virtualization on this host." from virt-manager. What am I missing? I can't find docs anywhere
<{^_^}>
[nixpkgs] @cdepillabout pushed 2 commits to release-20.03: https://git.io/JvPDI
gustavderdrache has left #nixos [#nixos]
<jackdk>
I didn't have virt-manager connected to the qemu user session. once I did that it seemed to be happy. it's downloading and installing .. stuff now
WinchellsM has joined #nixos
<WinchellsM>
Is there a way to determine the hash (and even, if possible, all of the dependency hashes) of a nix-build without actually building it?
<WinchellsM>
by "hash" I mean the name of the folder in /nix/store
dieraca has joined #nixos
<ottidmes>
WinchellsM: nix-store --query --outputs $(nix-instantiate '<nixpkgs>' -A hello)
<ottidmes>
WinchellsM: AFAIK only fixed-output derivations, as the name implies, depend on the output for the hash, the others are determined by the inputs, hence they can be determined beforehand
pbb has joined #nixos
bvdw has quit [Read error: Connection reset by peer]
pbb has quit [Client Quit]
bvdw has joined #nixos
<{^_^}>
[nixpkgs] @obadz opened pull request #82765 → opensmtpd: mark as insecure due to CVE-2020-8794 / #80978 → https://git.io/JvPS6
pbb has joined #nixos
<infinisil>
ottidmes: The store path is determined from the inputs for non-fixed-output derivations
<infinisil>
So no need to build it before it is known
<WinchellsM>
infinisl: That works thanks. Do you know how to spit out all of the input store paths as well?
<WinchellsM>
So in the case of `hello`, not just its store path but the paths of everything it depends on?
h0m1 has quit [Quit: WeeChat 2.7.1]
h0m1 has joined #nixos
<infinisil>
WinchellsM: No easy way for that, what do you need it for?
<ottidmes>
infinisil: Wait what? The only thing I am building is the .drv, not the actual out path
<WinchellsM>
infinisil: --tree works
<WinchellsM>
with nix-store
<WinchellsM>
it shows all of the dependencies
<ottidmes>
infinisil: also "the others are determined by the inputs" == "The store path is determined from the inputs" <-- is what I said as well
<infinisil>
Oh I thought you meant within nix itself
<infinisil>
ottidmes: Oh sorry, I misread
lor|d has joined #nixos
lord| has quit [Read error: Connection reset by peer]
mexisme_ has quit [Ping timeout: 246 seconds]
<evils>
is there an easy way to remove all generations, except the one i'm currently running, and the one i booted from?
<ottidmes>
got the weirdest bug (or hard to follow logic) with svn, nix-store --pure -p subversion fails, but without --pure works and env -i PATH=/nix/store/...-subversion/bin ... works
is_null has joined #nixos
<ottidmes>
evils: This might remove more than you want (nothing that is required to run your system though), but I tend to use: sudo nix-collect-garbage --delete-old, for that
<evils>
ottidmes: i think that'll delete the generation i booted from, so if my latest isn't functional i'll be locked out after a reboot?
<ottidmes>
evils: It will keep your current and the one you booted from
<ottidmes>
evils: /run/booted-system is a root in the GC
lor|d is now known as lorD|
lorD| is now known as lord|
<evils>
ah, then that should do exactly what i want xD
<evils>
assuming it doesn't remove that entry in grub...
<ottidmes>
evils: it won't
<evils>
well, bye bye 44GB
<ottidmes>
lol, that is pretty much my whole NixOS
<evils>
nix-env --list-generations only lists one now
<evils>
i think that means once i reboot generation 189 will be garbage collectable, meaning it's probably no longer linked in grub
<ottidmes>
evils: grub always lags behind, only when you nixos-rebuild switch/boot does it clean away old entries
<ottidmes>
and yes, only when you reboot will the old gen you previously booted with become collectable, that is why I always do a reboot when I have a succesful new build and want max free space
<evils>
ah and ofc you can't nixos-rebuild unless you got a fairly ok boot condition, so something bootable should always be in grub?
<evils>
so don't collect-garbage -d in the middle of a debug and everything is fine :P
<evils>
ottidmes++
<{^_^}>
ottidmes's karma got increased to 17
organixpear has joined #nixos
<Cadey>
is there a way to convert a debian package to a nix derivation?
<hpfr[m]>
it doesn't really affect my workflow, i was just curious. a notice by the search box about the change for a little while might be easier than dealing with questions if you're getting a lot
<ashkitten>
how can i include binaries from ${openssh}/libexec in the path?
eacameron has quit [Quit: Connection closed for inactivity]
LysergicDreams has quit [Ping timeout: 256 seconds]
LysergicDreams has joined #nixos
CMCDragonkai1 has joined #nixos
kleisli has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
blaggacao has quit [Read error: Connection reset by peer]
aw has joined #nixos
blaggacao has joined #nixos
spacefrogg has joined #nixos
mjrosenb has joined #nixos
kleisli has quit [Ping timeout: 250 seconds]
abathur has quit [Ping timeout: 265 seconds]
erasmas has joined #nixos
orivej has joined #nixos
erasmas has quit [Ping timeout: 246 seconds]
mexisme_ has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
fusion809 has joined #nixos
<fusion809>
OK. I rebuild my NixOS system without an issue when appimage-run was disabled in /etc/nixos/configuration.nix. But as soon as I added it back it failed to build. Ah, pity genesis isn't here, but oh well, anyone else have an idea of how to get appimage-run to build properly again, so I do not get the error, "error: attribute 'appimage-exec' missing, at /nix/store/i3a8qpsc117i3sbj0mafnsq8dv730zfp-nixos-20.09pre217261.a2e06fc3423
<fusion809>
/nixos/pkgs/tools/package-management/appimage-run/default.nix:8:24" when I rebuild NixOS with appimage-run enabled in my /etc/nixos/configuration.nix file?
<{^_^}>
#29624 (by purefn, 2 years ago, open): HAProxy and Lua integration not working quite right
bhipple has quit [Remote host closed the connection]
<bqv[m]>
Yeah that works fine for me
rardiol has quit [Ping timeout: 246 seconds]
<kalbasit>
I'm trying to extract the full path of NixOS modules that ends with 'enable' set to true. Using mapAttrsRecursiveCond is not working. filterAttrsRecursive does not behave the same (it sends name instead of path) so I can't/don't know how to use it https://www.irccloud.com/pastebin/GtPrXJPt/
<{^_^}>
[nixpkgs] @alyssais pushed commit from @r-ryantm to master « redis: 5.0.7 -> 5.0.8 »: https://git.io/JvPFb
helozjisky has joined #nixos
mexisme_ has joined #nixos
<rooke>
Is it possible to define multiple upstream sources for a nix package incase one is down?
mvnetbiz_9 has joined #nixos
mvnetbiz_ has quit [Ping timeout: 258 seconds]
mvnetbiz_9 is now known as mvnetbiz_
CMCDragonkai1 has quit [Ping timeout: 250 seconds]
<rooke>
Like calling fetchurl with a list of urls rather than a single url
mexisme_ has quit [Ping timeout: 246 seconds]
mexisme_ has joined #nixos
<rooke>
Ah, theres something in place with the `hashed-mirrors` but it seems to expect a very specific form of url
chagra_ has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
chagra has quit [Ping timeout: 246 seconds]
WinchellsM has quit [Ping timeout: 256 seconds]
mexisme_ has quit [Ping timeout: 250 seconds]
fuzzy-id has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
lovesegfault has joined #nixos
phreedom_ has quit [Remote host closed the connection]
phreedom has joined #nixos
butterthebuddha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has quit [Ping timeout: 256 seconds]
drakonis has quit [Quit: WeeChat 2.7.1]
palo has quit [Quit: WeeChat 2.7.1]
palo has joined #nixos
xensky has quit [Read error: Connection reset by peer]
xensky has joined #nixos
cartwright has quit [Remote host closed the connection]
abathur has joined #nixos
zupo has joined #nixos
cartwright has joined #nixos
mexisme_ has joined #nixos
<kini>
I have Intel integrated graphics and an Nvidia graphics card, with my monitor connected to the Intel port. This seems to result in the `i915` driver being used for integrated graphics and `nouveau` loaded for the Nvidia card, though I have no monitor connected to it.
<kini>
But now somehow hardware acceleration seems to be disabled on my onboard graphics, e.g. I can't run `glxgears`. Any ideas why this might be happening?
<kini>
Now I'd like to use the Nvidia proprietary drivers for the card, so I can use OpenCL which nouveau doesn't support. So I added "nvidia" to `services.xserver.videoDrivers`. Now `nouveau` isn't loaded and `nvidia` is.
fusion809 has quit [Quit: Leaving]
fusion809 has joined #nixos
abathur has quit [Ping timeout: 250 seconds]
<simpson>
kini: nVidia's userspace libGL is vendor-specific; it can't load Mesa's DRI drivers. Meanwhile, Mesa's libGL could load both i915 and nouveau at once.
<fusion809>
Folks, I frequently run nix-collect-garbage -d, I have nix.autoOptimiseStore = true; and boot.loader.grub.configurationLimit = 2, yet I frequently have times when nixos-rebuild switch --upgrade runs out of space, despite having a 80 GB root petition. Any ideas how I can get around this issue, as I'm trying to update to latest on nixos-unstable atm and it keeps failing due to no free space issues. I've tried to cut as much fat
<fusion809>
from my /home folder as possible by moving it onto my data petition, but there's a limit on how much I can do that before programs start failing to work
<kini>
simpson: Hmm, I see, thanks. Since I only need the Nvidia drivers for a specific application, I wonder if there's a way to force Mesa's libGL for systemwide use and then use Nvidia's libGL just for that specific application...
<kini>
*since I only need the Nvidia GPU for a specific application
<simpson>
kini: Not sure. nVidia doesn't really make that use-case easy.
<simpson>
It used to be that you'd have to reboot. Then it used to be that you'd have to restart X. I don't know what's required these days to switch between GPU driver stacks.
erasmas has joined #nixos
<kini>
I see. Well, I guess I'll live with having to switch nixos configurations and reboot (or restart X) every time I need to run the application :) sounds like it's not worth the trouble to dig deeper than that
opthomasprime has joined #nixos
<simpson>
It's an intractable decades-old standoff. I hope that eventually nouveau is able to completely displace nvidia for your and others' needs.
opthomasprime has left #nixos [#nixos]
<lovesegfault>
kini: depending on the nvidia card you have there are some kernel patches that can help with a number of issues
<lovesegfault>
if it's part of the Pascal family, namely
alexherbo2 has joined #nixos
<evils>
fusion809: odd, anything in /nix/var/nix/gcroots/auto/ ?
erasmas has quit [Ping timeout: 256 seconds]
<kini>
simpson: I hope so too, it's always nice to use an open source option if available :)
<fusion809>
Yep, there is. 10 items.
<kini>
lovesegfault: it is, I believe - `lspci` says "GP106 [GeForce GTX 1060 6GB]"
<evils>
these are probably the result of running nix-build somewhere and not deleting the `result` link, unless there's such a thing around that you want to keep using, you can just remove those items, could be using a lot of space, could be very little...
<lovesegfault>
kini: ah, yes, let me link you the patches one moment
<fusion809>
du -sh seems to indicate those items are taking up no space.
<kini>
nixos is made of links to links to links to links :)
<evils>
kini: so much fun when you want a shell script to execute a script that's sitting next to it :P
<fusion809>
So merely doing sudo rm /nix/var/nix/gcroots/auto/* is what I should do remove them? If they're links I'd imagine that wouldn't have any impact on the space on my disk, as I'd need to delete the originals.
<evils>
fusion809: those links cause the garbage collector to not delete some stuff
<evils>
rm .../auto/*, then run nix-collect-garbage, see how much is freed...
<fusion809>
Ah, fair enough, thanks.
<kini>
lovesegfault: thanks! what problems do these patches solve exactly?
<lovesegfault>
kini: some issues with runtime power management and pcie wonkyness
<lovesegfault>
may or may not help you, but it's worth trying
palo1 has joined #nixos
<lovesegfault>
if you follow the patch links there's more in-depth explanations
<fusion809>
No I've got 13 GB space free, thanks. That'll probably be sufficient for the update.
jakobrs has joined #nixos
<jakobrs>
When do I want to use recurseIntoAttrs? I find it's not documented in any of the manuals.
<kini>
lovesegfault: ah, I see. I read the descriptions and I think they may not be relevant to me, since I'm on a desktop and not a laptop, and if I'm not mistaken I have secure boot disabled
palo has quit [Ping timeout: 264 seconds]
palo1 is now known as palo
<lovesegfault>
kini: colemickens is on a desktop too (GTX-1080 IIRC) and they reported some QoL improvements from the patches IIRC
<lovesegfault>
kini: if things work well enough without them, then you're golden
<lovesegfault>
just linking in case you run into issue later :)
<{^_^}>
[nixpkgs] @alyssais pushed commit from @romildo to master « matcha: 2020-03-11 -> 2020-03-15 »: https://git.io/JvPAQ
<yuken>
So, what happens if you have an antique firearm (prior to 1899 + antique cartridge), but this cartridge suddenly starts being produced again.
<yuken>
Is it no longer an antique?
<danderson>
that is a joyful time in which you get to consult a lawyer, imo
<danderson>
because the penalty for being wrong is quite severe :)
cole-h has quit [Ping timeout: 246 seconds]
kenran has joined #nixos
<colemickens>
I didn't test without the patches. I was a bit confused where they came from tbh, why they aren't mainlined, etc.
<yuken>
danderson, ... wait a minute, I asked this in the wrong channel. Oops.
<yuken>
I tabbed over to this one accidentally, sorry for off-topic lol
<fusion809>
Good lord, this is a big update. I run nixos-rebuild switch --upgrade every day, to keep my system up to date, yet this update has already added an extra ~11.7 GB to my disk during the build.
<fusion809>
Make that 12.1 GB
<fusion809>
I might end up running out of space again.
<LinuxHackerman>
fusion809: a mass rebuild means all the dependencies of your system will be refetched. You may want to optimise your store and run a GC
<fusion809>
I'm pretty sure you haven't read my previous messages, I said I have nix.autoOptimiseStore = true; in my /etc/nixos/configuration.nix file. I also regularly run nix-collect-garbage -d and did just before the rebuild.
<fusion809>
I'm not offended, I realize I'm not the centre of the universe :P
<fusion809>
Yep, ran out of space again.
<fusion809>
evils: I wouldn't space you have a magical idea of what to do? Otherwise the only option I see is perhaps removing a few of the bigger packages from my configuration.nix file, rebuilding, then GC'in and rebuilding again with those packages re-added and hoping I have enough space then.
<fusion809>
s/space/suppose/g^
kleisli has joined #nixos
jakobrs has quit [Quit: WeeChat 2.7.1]
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<LinuxHackerman>
fusion809: get more space ;)
<evils>
fusion809: i'm no expert here, only found out about the gcroots today xD, maybe remove some big packages from configuration.nix and install them via nix-env (or home-manager if that's your thing), could be it's using more space during the building... so collect garbage after building, then nix-env -i?
<evils>
also, maybe something besides nix is using more than you think, what does `du -hs /nix/store` say?
<fusion809>
Yeah, I'll give it a go. Only problem with that approach is that it means to update my system and my packages I have to run two separate commands, but it's better than running out of space.
<lovesegfault>
as well as /nix/var/nix/gcroots/per-user/yourusernamehere
<fusion809>
I'll be damned, I just deleted stuff from /nix/var/nix/gcroots/auto and GCed, but now there's six new links in there
<fusion809>
Running `du -sh /nix/store` atm, it's taking a while, guessing that means it's big
<fusion809>
Could also be because I'm re-running a rebuild at the same time, so the size of the directory will be changing.
justanotheruser has quit [Ping timeout: 246 seconds]
<MichaelRaskin>
infinisil: yeah, I figured that out.
ftzm has joined #nixos
<fusion809>
If I'm doubling up on messages, forgive me as when I click enter on messages I do not see them pop up, could be because CPU load is currently at 100% on my PC due to a rebuild.
<fusion809>
Nope, it seems like messages I thought I sent weren't.
<fusion809>
/home is 8 GB, but that's largely because I've got Flatpak installed and a few packages installed through it. My Nix knowledge isn't sufficient to really package much stuff on my own, and one package I want isn't in nixpkgs.
<fusion809>
There's the message I couldn't seem to send
zupo has quit [Ping timeout: 264 seconds]
chagra_ has quit [Ping timeout: 250 seconds]
FRidh has joined #nixos
chagra_ has joined #nixos
lovesegfault has quit [Quit: WeeChat 2.7.1]
zupo has joined #nixos
vika_nezrimaya has quit [Ping timeout: 256 seconds]
<NobbZ[m]>
fusion809: Home only 8GiB? `/home` is where the data lives on my desktop systems :D Though to be honest, I have not yet found out when exactly nix does the auto optimize, therefore I'd suggest doing it right now manually.
linarcx has joined #nixos
<fusion809>
I frequently do do it manually, actually. After every GC I do it.
sgrunert has joined #nixos
<fusion809>
Everytime it says it's freed up no space.
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<NobbZ[m]>
Hmmm… Okay, have you instpected the GC roots if there are symlinks to long forgotten `result` folders in your projects?
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has quit [Read error: Connection reset by peer]
<evils>
fusion809: has du -hs /nix/store finished yet?
<NobbZ[m]>
If there are such symlinks, then paths referenced by those will never get collected, as they are considered part of the current profile
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<fusion809>
I decided to stop it during the rebuild due to the fact its result would likely be thrown out by the rebuild itself. I just re-ran it and it is at 49 G.
<fusion809>
Disk usage is at 71 G/80 G (although df also reports only 5.4G free)
<NobbZ[m]>
evils that command will lie just in your face... As it will count all the hardlinks multiple times...
<NobbZ[m]>
The discrepancy between free and usage comes probably from the space that's reserved for root processes
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<fusion809>
One good side to having an Arch chroot is that if Nix packages are taking up too much space, or taking too long to rebuild, I can use my Arch chroot to run those programs usually.
justanotheruser has joined #nixos
shafox has joined #nixos
<NobbZ[m]>
I don't have arch anymore. Though I can continue using stuff during system rebuilds...
zupo_ has joined #nixos
<{^_^}>
[nixpkgs] @vcunat pushed to release-20.03 « Revert "nixos/zerotierone: switch from manually generating..." »: https://git.io/JvPhI
FRidh2 has joined #nixos
FRidh has quit [Ping timeout: 256 seconds]
LinuxHackerman has left #nixos ["User left"]
FRidh2 has quit [Client Quit]
FRidh2 has joined #nixos
<danderson>
hmkay. Does wayland... exist on NixOS?
zupo has quit [Ping timeout: 246 seconds]
<danderson>
I'm really feeling the need for multiple displays with different dpi settings
<sphalerite>
yes, I'm using sway right here :)
<danderson>
hmm, what's a sway...
<danderson>
ah, tiling WM.
<NobbZ[m]>
evils okay, it seems as if df does indeed account for hardlinks, df and the site of my zfs pool containing the store are consistent.
<danderson>
Hmm. Well, that could work. I was thinking more gnome, to ease into things... But unclear if that's supported
zupo_ has quit [Ping timeout: 264 seconds]
<danderson>
well, maybe it's time to embrace the tiles again...
maddo has joined #nixos
zupo has joined #nixos
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
<sphalerite>
danderson: you could also try gnome on wayland, I think it works at least to some extent. I haven't used it myself though.
<sphalerite>
danderson: or you could use sway as a non-tiling WM :D
Jackneill has joined #nixos
justanotheruser has quit [Ping timeout: 272 seconds]
<danderson>
sphalerite: how does gnome on not-X work? I don't see any config knobs for that.
<danderson>
Mostly the reason I stopped using smaller WMs is I got tired of assembling my own desktop environment out of a WM and a bunch of sticky tape
<danderson>
but maybe the sticky tape is better now :)
<lovesegfault>
danderson: you mean how well it works or how does it's innards work?
<danderson>
which "it" are you talking about?
<lovesegfault>
gnome on not-X
<sphalerite>
danderson: I think if GNOME is enabled you can select GNOME (Wayland) or similar in the display manager when logging in
<danderson>
oh. I just have no idea how to make it ask for that
<lovesegfault>
sphalerite: that's correct
<danderson>
hmm. When I tried gnome a couple days ago I did have 2 gnome options at the login prompt. But both just crashed :)
<sphalerite>
oh nice
<lovesegfault>
the default is actually Wayland, you have to pick "Gnome on Xorg" next to the password field in GD<
<danderson>
I'm running unstable though, so I'm expecting bad things to happen :)
<danderson>
(need unstable for GPU drivers :( )
<lovesegfault>
danderson: I run nixos-unstable-small and gnome works great :/
<danderson>
okay, well maybe I was just doing it wrong then
<danderson>
oh, for one, I use lightdm as the login manager. I bet it can't start wayland sessions for some reason.
abathur has quit [Ping timeout: 246 seconds]
bahamas has joined #nixos
<lovesegfault>
danderson: bingo, that's definitely it
<lovesegfault>
IIRC gnome _really_ does not like anything bug GDM
<lovesegfault>
like _really_
<danderson>
heh
FRidh2 has quit [Ping timeout: 246 seconds]
<danderson>
fair enough. I switched to Cinnamon a long time ago because it's Gnome before they went mad with the new GUI paradigms
<danderson>
so I haven't kept up
FRidh2 has joined #nixos
<lovesegfault>
I'm on sway and I quite like it :)
* lovesegfault
is a huge fan of wayland
<danderson>
I definitely want to try out sway at some point. But right now I need to get this laptop good enough for doing work on
<lovesegfault>
Mixed-DPI multimonitors is *chef hands*
<danderson>
so the minimum change is probably Cinnamon -> Gnome for now
<lovesegfault>
danderson: what laptop?
<danderson>
and then I can mess with sway next weekend :)
<danderson>
lovesegfault: Thinkpad T495
<evils>
lovesegfault: gnome with or without xwayland?
* lovesegfault
has a Thinkpad P1
<evils>
s/gnome/sway/ xD
<danderson>
works pretty well. Only big catch is needs very recent drivers to fire up, because of the new Ryzen/Vega APU
<danderson>
and also if you try to use powertop, intel betrays you and breaks everything
<lovesegfault>
evils: with xWayland, but apart from the slack electron app all my programs are wayland-native at this point
<danderson>
but aside from that, s'fine :)
<lovesegfault>
danderson: do you use TLP? I have some important fixes
* lovesegfault
goes find them
<danderson>
yeah, TLP is on. It's doing some decent powersave stuff.
<danderson>
okay, here goes nothing, gdm+gnome3 on wayland...
m0rphism has joined #nixos
<danderson>
wow, just worked. Even correctly restarted out of lightdm+mate and into gnome3 without a reboot. Impressive.
<Ashy>
danderson: you should get gnome on Wayland in the session list on the login screen by default with gdm and gnome installed I think
<danderson>
still not a fan of the star trek GUI from the future look, but it definitely works
<Ashy>
ah nice
<danderson>
bed time now, but this is probably a "good enough" desktop to get me off the old broken laptop and onto nixos. A few more tweaks tomorrow and I think I'm good. Thanks!
hmpffff_ has joined #nixos
<s1341>
hey. how do i deal with this error: error: packages '/nix/store/is28hjhhx5hr57hyq769spv990qsw43d-home-manager-path/android-ndk-r10e/GNUmakefile' and '/nix/store/7521vmfnfh3cqb9d71al2f88qliir2ij-android_ndk_r10e/android-ndk-r10e/GNUmakefile' have the same priority 5; use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' to change the priority of one of the conflicting packages (0 being the highest priority)
<s1341>
builder for '/nix/store/m9249vn6c8qd2n7z0fbfhmkx8pa9jfbg-user-environment.drv' failed with exit code 1
hmpffff has quit [Ping timeout: 246 seconds]
<s1341>
this is for a custom derivation...
bahamas has quit [Ping timeout: 256 seconds]
<s1341>
nm. figured it out.
veske has joined #nixos
veske2 has joined #nixos
fusion809 has quit [Remote host closed the connection]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gagbo_ has joined #nixos
<s1341>
does anyone know if it is possible to install pyenv in nixos?
knupfer has joined #nixos
chloekek has joined #nixos
bahamas has joined #nixos
<NobbZ[m]>
Yes, I think it is possible, but why? Just use a `nix-shell`
Ariakenom has joined #nixos
mexisme_ has joined #nixos
<lovesegfault>
s1341: did you ignore my advice and added it to your use packages anyway? :P
<s1341>
lovesegfault: no. I had the issue on a different package.
<lovesegfault>
O.o
<s1341>
NobbZ[m]: can i install pip in a nix-shell?
<NobbZ[m]>
I don't see any reasons why it should not be possible.
<lovesegfault>
s1341: you would use something like this instead nix-shell -p 'python3.withPackages (ps : with ps; [ numpy ])'
<s1341>
lovesegfault: ok. i'll look into that.
<NobbZ[m]>
s1341 perhaps it's also time to switch to poetry 😉
<s1341>
NobbZ[m]: will check it out.
<s1341>
lovesegfault: i have a gradle script which executes remake, and it isn't finding it.
<s1341>
(when i'm in the nix-shell)
<lovesegfault>
s1341: the paths are probably garbled
<lovesegfault>
like it might be looking in /bin/remake which doesn't exist
<lovesegfault>
you have to patch it to just call remake (which will be in the PATH inside nix-shell) or do /nix/store/blablablabla-remake/bin/remake
<lovesegfault>
the first one is better, the second one is disgusto-barfo
shabius has quit [Read error: Connection reset by peer]
zarel has quit [Ping timeout: 250 seconds]
shabius has joined #nixos
__monty__ has joined #nixos
noj has quit [Ping timeout: 272 seconds]
kraem has quit [Ping timeout: 246 seconds]
edwtjo has quit [Ping timeout: 260 seconds]
noj has joined #nixos
veske2 has quit [Quit: This computer has gone to sleep]
veske has quit [Quit: This computer has gone to sleep]
vika_nezrimaya has quit [Ping timeout: 246 seconds]
mexisme_ has joined #nixos
<s1341>
how can i run autoPatchelfHook on all executables in my directory from shell.nix?
<s1341>
@ lovesegfault
v88m has quit [Ping timeout: 246 seconds]
zupo_ has joined #nixos
nschoe has joined #nixos
kraem has joined #nixos
<hyper_ch>
how can I force nixos-rebuild to fetch all the .nix files that I included in the configuration.nix and are hosted on github to fetch newest version? it seems there's a version cached with a typo. I fixed it and upped it to github, yet the script still uses old cache version
relaxmax has joined #nixos
<NobbZ[m]>
hyper_ch: Totally depends on how exactly you manage your local copy… Have you tried `git pull`?
edwtjo has joined #nixos
<hyper_ch>
NobbZ[m]: the configuration.nix points to github
<NobbZ[m]>
Or are you talking about third party files you pull in via `fetchFromGit`(`Hub`)?
<NobbZ[m]>
Or are you talking about `niv` managed external resources? There are plenty of ways to manage that stuff and how the update works exactly depends on which method you use.
<NobbZ[m]>
Reliable is probably wrong… More reproducable.
johnw has joined #nixos
<tilpner>
Reliable is correct too. What if you want to add your user to a group, which should require no internet connection, but does because your sources are remote and non-fixed-output?
thc202 has joined #nixos
waleee-cl has joined #nixos
steevveen has joined #nixos
Diogo has joined #nixos
leomar has joined #nixos
abathur has joined #nixos
steevveen has quit [Remote host closed the connection]
abathur has quit [Ping timeout: 246 seconds]
zupo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
erasmas has joined #nixos
gxt has quit [Quit: WeeChat 2.7.1]
gxt has joined #nixos
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #nixos
erasmas has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
<s1341>
how can i run a script just before getting the shell with mkShell
AWizzArd has joined #nixos
AWizzArd has quit [Changing host]
gxt has quit [Quit: WeeChat 2.7.1]
kleisli has quit [Remote host closed the connection]
<immae>
s1341: shellHook
kleisli has joined #nixos
Makaveli7 has joined #nixos
kraem has quit [Ping timeout: 256 seconds]
cosimone has joined #nixos
<NobbZ[m]>
immae: Thanks! That one really might help me setting up my environment… Is there also an equivalent which runs on shell exit?
gentauro has quit [Read error: Connection reset by peer]
<immae>
NobbZ[m]: you can do a `trap function EXIT` inside the shellHook ;)
gentauro has joined #nixos
<NobbZ[m]>
Sounds reasonable, though in an after thought, my idea seems to be not the best, as I might have more than one shell in the same project, and killing related docker containers because I leave one of them might cause more issues than it helps :D I think I'll just stick to manually managing their life cycles.
kleisli has quit [Remote host closed the connection]
kleisli has joined #nixos
<immae>
Alright :)
<immae>
(indeed the exit script should be strictly limited in side effect to what you did in the shell)
david_syer has joined #nixos
<xfix>
i wonder if it's possible to enable internet access for nix derivation without having an output hash
<xfix>
sure, this kills reproducibility pretty much, but it cannot be worse than Docker I think
srxl has joined #nixos
<david_syer>
Anyone know about the GCE notes here: https://nixos.wiki/wiki/Install_NixOS_on_GCE? They don't seem to work any more. And the images in the Google store are all old.
<srxl>
Hi, I seem to have run into some Nix store corruption. Was running a nixos-rebuild when my system suddenly froze, and i had to powercycle it. Rerunning the nixos-rebuild gives me a No such file or directory error, pointing at a path in the nix store. Any ideas on how to fix this?
o1lo01ol1o has quit [Remote host closed the connection]
<david_syer>
That might help. What does "maintainers" mean in the path of that script?
<david_syer>
Is there documentation for this anywhere?
<david_syer>
Why is there a mouldy Wiki page?
<xfix>
maintainer is likely non-important outside of nixpkgs
<xfix>
you can remove it
<{^_^}>
[nixpkgs] @timokau opened pull request #82773 → python3.pkgs.rpy2: fix tests with pandas 1.x, 3.2.5 -> 3.2.6 → https://git.io/JvXU0
<xfix>
the linked script comes from nixpkgs and is designed for nixpkgs usage, which is why it provides meta information
<srxl>
Thanks for the pointers, nix-store --verify --repair did the trick
mexisme_ has quit [Ping timeout: 246 seconds]
v88m has joined #nixos
<david_syer>
I'm running the script now to see what happens.
<hexagoxel>
why does nix-shell set env-variables like TMP to different values? Is this (which variables, how to control it) documented somewhere? This is _not_ in a pure nix-shell.
<xfix>
> Also, TMPDIR, TEMPDIR, TMP, TEMP are set to point to the temporary directory. This is to prevent the builder from accidentally writing temporary files anywhere else. Doing so might cause interference by other processes.
<{^_^}>
error: syntax error, unexpected ',', expecting ')', at (string):289:5
<xfix>
Nix tries to set those values to environment variable TMPDIR, if it doesn't exist then environment variable XDG_RUNTIME_DIR or if that doesn't exist either constant value "/tmp"
kraem has joined #nixos
iyzsong has joined #nixos
<hexagoxel>
xfix: ah, great, thanks! I am still confused because _somehow_ it gets set to /run/user/1000 when the documented default is /tmp, but if I define TMPDIR when calling nix-shell it works as expected.
swistak35_ has quit [Ping timeout: 260 seconds]
<hexagoxel>
ah, maybe it falls back on XDG_RUNTIME_DIR?
<hexagoxel>
That would be clever, but sadly undocumented :(
<{^_^}>
[nixpkgs] @alyssais merged pull request #82765 → [19.09] opensmtpd: mark as insecure due to CVE-2020-8794 / #80978 → https://git.io/JvPS6
<{^_^}>
[nixpkgs] @alyssais pushed commit from @obadz to release-19.09 « opensmtpd: mark as insecure due to CVE-2020-8794 / #80978 »: https://git.io/JvXT4
<s1341>
what is the right way to add to my PATH envvar in home.nix?
<NobbZ[m]>
s1341: Depending on your exact use case, `home-manager` provides some options to manipulate environment variables.
<david_syer>
Thanks @tilpner. I think. Not sure yet how to fix this. GCE adds users itself, but NixOS appears to be shutting down ssh access, so I can't get in.
ericsagnes has joined #nixos
rardiol has joined #nixos
gila has joined #nixos
gila has quit [Ping timeout: 246 seconds]
<Cadey>
there used to be a more detailed nixops manual on the website, where did it go?
vika_nezrimaya has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
spacefrogg has left #nixos ["Killed buffer"]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<sphalerite>
Cadey: the old URL https://nixos.org/nixops/manual/ still works and has the same content AFAICT, just that it redirects to a less pretty URL and has no pretty styling…
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<Cadey>
it doesn't have AWS instructions anymore
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<niksnut>
I think that's because the AWS support is a plugin now
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gila has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
karantan has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<karantan>
I have setup nixos and I'm running a WordPress blog on it. I have HAProxy -> httpd (apache) and I'll also add varnish. Atm I have just a basic HAProxy configuration but I'll want to add more rules to secure the WP blog (e.g. to prevent brute forcing, and other hacking)
<karantan>
I don't want to just start blindly adding HAProxy rules. I want to first have some monitoring in place so that if I see e.g. some ddos or other strange activities, I can modify the HAProxy config
<karantan>
so my question: which monitoring for this do you suggest?
<karantan>
I'm looking at: DataDog, newrelic, prometheus and netdata
kreyren has joined #nixos
<kreyren>
Are there any tarballs of nixos alike gentoo stage 3 ?
fendor has joined #nixos
vika_nezrimaya has quit [Ping timeout: 264 seconds]
<niksnut>
oh, you mean current as in right now :-)
<gchristensen>
yeah
cartwright has quit [Ping timeout: 240 seconds]
kreyren has quit [Ping timeout: 240 seconds]
andreas303 has quit [Ping timeout: 240 seconds]
KeiraT has quit [Ping timeout: 240 seconds]
<niksnut>
it doesn't require a channel bump
oida has quit [Ping timeout: 240 seconds]
<niksnut>
the redirects are applied even if the release already exists
<niksnut>
hm...
<niksnut>
no it doesn't
<niksnut>
unless you pass FORCE=1
ElDelfin has joined #nixos
erasmas has quit [Ping timeout: 250 seconds]
phreedom has joined #nixos
xelxebar has joined #nixos
klntsky has joined #nixos
oida has joined #nixos
jojojojojo has joined #nixos
<ElDelfin>
I'm having issues with getting a compositor to work right. It's on an Athlon x64 4400+ chip, and if I use a OpenGL one, I always get these triangles flashing around on the screen. Suggestions?
andreas303 has joined #nixos
KeiraT has joined #nixos
cartwright has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
vika_nezrimaya has left #nixos ["ERC (IRC client for Emacs 26.3)"]
<drag0nius>
how do i nest withPackages that are already nested?
<drag0nius>
like with pkgs; [vim bash python38] then put with python38Packages inside another with
FRidh has quit [Ping timeout: 250 seconds]
FRidh2 has joined #nixos
knupfer has quit [Ping timeout: 246 seconds]
srxl has quit [Remote host closed the connection]
<kreyren>
is nix even usable now
<xfix>
what do you mean by "usable"?
<gchristensen>
kreyren: did it install? :)
Rusty1 has joined #nixos
<ElDelfin>
i'm a nix n00b, but i've installed on bare metal. works fine, except openGL compositors don't work right
<NobbZ[m]>
kreyren: When I did run that command on Arch Linux half a year ago, I got a lot of output, texts guiding me through the installation process, what do you see?
<kreyren>
gchristensen, i have /nix so i assume it did
<kreyren>
and it indicated sucess (don't have the output anymore)
<kreyren>
or what i understand was successful
<xfix>
have you tried restarting your user session?
<kreyren>
xfix, elaborate on restarting? Invoked `reset` in terminal after
<gchristensen>
kreyren: do you have evidence that it is not usable?
<NobbZ[m]>
As far as I remember, it also asked mee to put some lines into my shells rc files, have you done so?
anderslundstedt has quit [Remote host closed the connection]
<NobbZ[m]>
If you have done that, then using nix' tools should "just work"
<kreyren>
gchristensen, i do since currently it's a brick that can't do anything on my system :p `nix-env` nor `nix-shell` does not work
<ottidmes>
is nix eval '(...)' the same as nix-instantiate --eval --read-write-mode '...'? And it does not need extra trust, like allow-unsafe-native-code-during-evaluation, does, right?
<kreyren>
NobbZ[m], checking
<xfix>
`reset` doesn't do terminal reinitialization
<kreyren>
murdered terminal and openned new -> same issue
<gchristensen>
kreyren: maybe you can provide us that information, and other information, like typical output and information about what you're trying, what is happening, what isn't happening, etc. because so far we've had to guess that it wasn't working :)
<NobbZ[m]>
Also, as others have said, you might need to start a fresh shell session that those changes take effect.
<kreyren>
nix-shell is now recognized, but outputs: `error: getting status of '/home/kreyren/default.nix': No such file or directory`
<kreyren>
checking..
blaggacao has joined #nixos
<NobbZ[m]>
Have you followed that advice?
<xfix>
this is how nix-shell should behave, this is correct
leotaku has joined #nixos
o1lo01ol1o has joined #nixos
<etu>
kreyren: try: nix-shell -p hello
<etu>
kreyren: It should give you a shell with gnu hello available
<kreyren>
etu, it's installing stuff
<kreyren>
got me nix-shell
<kreyren>
thanks
<kreyren>
how do i install something now
<xfix>
nix-env
<gchristensen>
nix-env -iA hello
<gchristensen>
rather: nix-env -iA nixpkgs.hello
<kreyren>
thanks ^^
<gchristensen>
yep!
<kreyren>
anyone tested this on frankenstained system yet? any known issues?
gustavderdrache has joined #nixos
<gchristensen>
what is that?
<kreyren>
custom FSH, kernel with bunch of patches and weird toolchain
<etu>
nix is kinda self-contained
<kreyren>
basically LFS on <insert_drug>
<gchristensen>
sure
<tilpner>
Yes, someone was recently using Nix on an LFS system
<gchristensen>
though you'll probably become a bit addicted and rebuild your frankenstein system with Nix :P
<kreyren>
gchristensen, depends on the level of optimization it can provide :p
cizra has joined #nixos
<kreyren>
i like to optimize the system to 0.001% system resource gain
<cizra>
OMG, I'd forgotten how amazing NixOS is! After spending AGES on Arch, I set up NixOS pretty much exactly as I liked it. Eventually migrated away for whatever reason. Again Arch, then Ubuntu, and now again NixOS. Installation was a breeze (it didn't care that it has to live in a btrfs subvolume alongside with Windows and whatnot). I reused my old configuration which I store in Git. Everything was a breeze,
<cizra>
and I'm back to my old favorite settings. Plus the packages I had to customize (Thinkpad-specific driver for fingerprint login, The Dark Mod, ctrl-as-caps in xfreerdp) got merged to regular nixpkgs, so I didn't even have to redo my old package overlays and stuff.
mexisme_ has joined #nixos
oxalica has joined #nixos
<gchristensen>
kreyren: are you a HFT person? :)
<etu>
cizra: Very cool! Welcome back! :)
butterthebuddha has joined #nixos
<kreyren>
gchristensen, what's HFT person
<gchristensen>
High Frequency Trading
<MichaelRaskin>
High-freq trading
<kreyren>
figured as much :p but how is that relevant to a person assuming it being a concept for financial market
<MichaelRaskin>
The field where 0.001% performance pays off, because nothing constructive does
<kreyren>
nah just psychopath with obsession for perfection
<tilpner>
You'll lose some of the advantages of Nix for that, e.g. being able to use cached builds of packages
<MichaelRaskin>
I guess «frankensystem built via Nix» would cover my setup
<etu>
kreyren: Then you'd be happy to read about some of the madness that people on nixos does :)
linarcx has quit [Quit: WeeChat 2.7.1]
<gchristensen>
you should know that Nix makes a huge trade-off, but perhaps in a way you don't care: its model naturally uses more disk space than other package managers
<MichaelRaskin>
But I do use stock packages from Nixpkgs
<etu>
kreyren: such as, I'm using tmpfs as / to not have unknown state laying around across reboots :D
<MichaelRaskin>
«Pay 1 GiB per 1 month to avoid 1 unit of sanity damage»
<kreyren>
etu, alike? currently i am on custom fork of bedrock linux where i have all packages manager available in the same terminal with ability to create more sandboxes
<etu>
kreyren: And this is not super uncommon in the nix-community
<{^_^}>
[nixpkgs] @obadz pushed 8 commits to release-19.09: https://git.io/JvXLX
<kreyren>
Can i run nix on pinetime?
<etu>
kreyren: Many nix users tend to put all the configs in git and to make sure to configure everything with nix so the entire system is possible to rebuild :)
<MichaelRaskin>
You can comfortably run NixOS without such software
<kreyren>
MichaelRaskin, I meant how much i can change it without legal conflicts ?
<MichaelRaskin>
Nix is LGPL
<kreyren>
perfect :3
bvdw has quit [Read error: Connection reset by peer]
bvdw has joined #nixos
<MichaelRaskin>
Nixpkgs has this weird licensing that the patches that can be considered derivative works of open-source code share the same license, and not the license of the expression
<gchristensen>
MichaelRaskin: I didn't think that was a choice?
<MichaelRaskin>
Not a choice, but a thing to be aware of
<gchristensen>
ah, right :)
<s1341>
what's the simplest way to build neovim from my fork on github?
<evanjs>
Made some progress on my frankenstein 19.09 based stuff with a 16.09 toolchain yesterday. One sticking point was that I couldn't manage to get an arm GNU toolchain
<evanjs>
all I could find was arm-none-eabi (gcc-arm-embedded-5) but I need a GNU toolchain
<evanjs>
As pkgsCross didn't exist back then, can anybody help me figure out how I can get a stdenv with a gnu toolchain from 16.09 for arm?
<evanjs>
I ended up needing to set crossSystem and a lot of other weird stuff I haven't dealt with before
<evanjs>
Essentially, I need to compile something with GLIBC 2.24/GCC 5.4.0 for armv7l, and figured using stuff from 16.09 (which uses GLIBC 2.24) might be the easiest
szicari has joined #nixos
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
knupfer has quit [Client Quit]
knupfer has joined #nixos
kleisli has quit [Ping timeout: 264 seconds]
arianvp_ is now known as arianvp
<clever>
evanjs: you might want to look at my vc4 PR
<NobbZ[m]>
To the right of mine I have an old laptop which already had a working nixOS installation (done via ethernet), though due to doing something bad I lost my grub and try to reinstall now. Though sadly neither the built-in nor my external WiFi are recognized. `nixos-install` fails because it can't build something without internet, though I'd like to just rebuild GRUB such that it can find the installation on my partition
<evanjs>
clever: ohhh that's where that `gcc = if stdenv.targetPlatform.isVc4 then gcc6 else gcc8;` came from.
<evanjs>
on a related note... ever seen something like "crossConfig: unbound variable" before?
<evanjs>
Bouncing between old and modern nixpkgs and trying to do this stuff. Maybe I need to stick with one :D
orivej has joined #nixos
<evanjs>
one of the biggest problems using old glibc from new nixpkgs IIRC was the patches
<clever>
evanjs: havent seen that one
<evanjs>
yeah figured as much, presumably from trying to do cross on 16_09, where crossConfig litters the codebase
<evanjs>
don't see _any_ references on master
<evanjs>
I just want the equivalent of pkgsCross.armv7l-hf-multiplatform.stdenv on 16.09/ w/glibc 2.24 haha
phreedom has quit [Ping timeout: 240 seconds]
<FRidh2>
cross in 16.09 quite different from how it is now
<FRidh2>
as in, it did not exist
<evanjs>
FRidh2: exactly my issue atm :D
<evanjs>
Like I'm seeing things like gcc-arm-embedded, but yeah, still radically different from e.g. pkgsCross.armv7l-hf-multiplatform.gcc
<evanjs>
FRidh2: so what do you think might be less impossible? Cross on 16.09 or old glibc on 19.09+?
hmpffff has joined #nixos
dingenskirchen has quit [Read error: Connection reset by peer]
dingenskirchen has joined #nixos
<evanjs>
gcc-arm-embedded got me close, I think, it was just none rather than gnueabi
<evanjs>
*checks description* wait what "Pre-built GNU toolchain ..."
<evanjs>
but it didn't work with my GNU stuffs... or maybe it was something else. hrm
abathur has joined #nixos
hmpffff_ has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @roberth opened pull request #82782 → Backport to 20.03 pr 81292: fix service runner quotes → https://git.io/JvXOm
anderslundstedt has joined #nixos
abathur has quit [Ping timeout: 250 seconds]
phreedom has joined #nixos
jakobrs has joined #nixos
<jakobrs>
Why does boot.loader.grub.device need to be set to 'nodev' on UEFI systems?
<gchristensen>
you have to tell grub to opt-out of writing the MBR
<gchristensen>
if you use systemd-boot, you don't need to do that, of course
<hyper_ch>
gchristensen: you use systemd-boot with zfs?
<jakobrs>
Is MBR bios-specific? Why don't you want to write to it on uefi?
<gchristensen>
jakobrs: MBR is indeed bios-only, uefi doesn't look at the MBR at all
<hyper_ch>
gchristensen: did you find out how you could a full disk to zfs, put that uefi start file in the auto-creates sd9 partition and not needing a seperate /boot partition on nixos?
<gchristensen>
no, I have a vfat partition for /boot, just like the rest of uefi users :P
<gchristensen>
hyper_ch: but why do you so badly want avoid a sda1 for grub?
<hyper_ch>
I just prefer assigning a full disk to zfs
<gchristensen>
there is no need to do that
<hyper_ch>
keyword: "prefer"
<s1341>
etu: how do i find the revision of nixpkgs?
<{^_^}>
[nixpkgs] @davidak opened pull request #82784 → nixos/phpfpm: add example to socket → https://git.io/JvX3O
<gchristensen>
there is advice to not split a disk and have 2 active partitions on the one disk, and if you give ZFS the whole disk, the only special thing zfs does is set a certain scheduler to make its writes faster -- something you can do yourself
<etu>
s1341: I usually pick things to track an older channel if I need something that is removed or so :)
<gchristensen>
but the advice to give the whole disk to ZFS doesn't apply when it is an inactive partition like an ESP partition
<hyper_ch>
gchristensen: I still like it better
<gchristensen>
okay
hmpffff_ has joined #nixos
<gchristensen>
I personally prefer being able to use recent ZFS features instead of being pinned to whatever arbitrary features existed and were implemented when Grub first started supporting ZFS
<hyper_ch>
well, on debian it's ok to run older zfs versions ;)
zupo has joined #nixos
<clever>
gchristensen: also of note, if you give zfs the whole disk, it will set a magic flag on the vdev, which causes zfs to mess with the IO scheduler upon import
<clever>
gchristensen: if you give it a partition, it wont mess with the IO scheduler, so the 2nd partition gets a more fair share of things
<gchristensen>
clever: I think that is what I said, no?
<clever>
ah, yeah, i see that now
<gchristensen>
and you can still set hte scheduler
<gchristensen>
yeah :) cool
<clever>
yeah
hmpffff has quit [Ping timeout: 246 seconds]
<gchristensen>
something I should probably do... :)
<clever>
my system is weirdly IO bound, so ive not seen much benefit from changing schedulers
abathur has joined #nixos
<clever>
[root@nas:~]# time ls -U /nix/store/ | wc -l
<clever>
real 0m3.061s
<clever>
88965
<clever>
hmmm, its usually slower then that
<gchristensen>
I guess the way to set this is with a kernel cmdline, I don't see an abstracted option for it
<{^_^}>
[nixpkgs] @roberth merged pull request #82782 → Backport to 20.03 pr 81292: fix service runner quotes → https://git.io/JvXOm
<{^_^}>
[nixpkgs] @roberth pushed 2 commits to release-20.03: https://git.io/JvX3N
mjrosenb has joined #nixos
<jakobrs>
oooh
<hyper_ch>
you're probably too young or too old to remember that ;)
nakkle has joined #nixos
<jakobrs>
I mean I don't watch the Simpsons but I think I recognise that scene
<hyper_ch>
I grew up with the simpsons :)
<hyper_ch>
I got older - Bart stayed the same
<nakkle>
I'm trying to create a VM with virt-manager with uefi firmware, but it says that libvirt didn't detect any OVMF firmware on the host. virtualisation.libvirtd.qemuOvmf is enabled. Any ideas what's the problem here?
<jakobrs>
Hmm, it's not fixed after a reboot. Should I be worried? Or is this normal behaviour if you unset efiInstallAsRemovable
<jakobrs>
*reinstall
mexisme_ has joined #nixos
<jakobrs>
rEFInd does find it
Makaveli7 has joined #nixos
<jakobrs>
Ah, I forgot to set canTouchEfiVariables
<s1341>
error: attribute 'stf' missing, at /nix/store/5kwkhzc22r3z56hyhyhjy0fklmaqirxr-nixpkgs-for-nodejs8/pkgs/development/node-packages/default-v8.nix:24:9
veske has quit [Quit: This computer has gone to sleep]
veske3 has quit [Quit: This computer has gone to sleep]
<s1341>
sorry, thats the wrong revision, but I get the same on the commit i pasted
<s1341>
etu: do i need to do something special with the node-packages-v8.json
<s1341>
?
<Taneb>
Anyone have any idea why if I do "nix-instantiate -A haskellPackages.Agda" in master of nixpkgs I get Agda-2.6.0, when 2.6.0.1 is what's listed in pkgs/development/haskell-models/hackage-packages.nix?
<edrex>
hi all. seeking to transition Arch -> Nix on main laptop via dual boot. Storage is LVM on LUKS, and I want to have NixOS in the same volume group. Any pointers to docs that might help?
<gchristensen>
set up the partitions however you like, and install NixOS :)
<infinisil>
What was the trick again to figuring out what's causing "dumping very large path (> 256 MiB); this may run out of memory"?
<edrex>
gchristensen :)
<s1341>
anyone know how i can get rethinkdb to install?
kenran has quit [Ping timeout: 256 seconds]
edrex has left #nixos ["User left"]
palo has quit [Ping timeout: 246 seconds]
ghasshee has quit [Ping timeout: 256 seconds]
<xfix>
s1341: you won't get it to install, it's marked broken
palo has joined #nixos
<jakobrs>
s1341: I got it to start compiling by adding six to propagatedBuildInputs
<jakobrs>
I'll tell you if this fixes it
<infinisil>
Oh this seems to work: -vv 2>&1 | rg dumping -A 1
<s1341>
jakobrs: ok
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
wildtrees has joined #nixos
ghasshee has joined #nixos
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<jakobrs>
s1341: broken = true; # Broken with openssl 1.1
<jakobrs>
I think it's actually broken
malSet has joined #nixos
jakobrs has quit [Quit: leaving]
<xfix>
that being said, i'm currently looking into fixing rethinkdb
<s1341>
yeah. looks like that.
malSet has quit [Read error: Connection reset by peer]
<xfix>
there is a new version, it may work
<xfix>
will test
<s1341>
xfix what kinda eta?
<xfix>
never :)
<s1341>
xfix :*(
<evanjs>
One of the bigger pain points for 16.09 is the lack of overrideAttrs. CMake wasn't getting the stdenv from libwebsockets (as FRidh2 said, really no cross back then..) so I had to manually inherit stdenv in the nativeBuildInputs and bah
<s1341>
jakobrs can I try with an earlier version of openssl?
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<s1341>
(is that feasible?)
chloekek has quit [Quit: WeeChat 2.7]
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<xfix>
yes, well, kinda
<xfix>
i think there are more issues than just this
<xfix>
you could probably use openssl_1_0_2
malSet has joined #nixos
malSet has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @Ma27 pushed commit from mehlon to release-20.03 « tor-browser-bundle-bin: 9.0.5 -> 9.0.6 »: https://git.io/JvXcU
ghasshee has joined #nixos
lordcirth__ has joined #nixos
jb55 has joined #nixos
radvendii has joined #nixos
erictapen has quit [Ping timeout: 264 seconds]
<radvendii>
Hey guys, I'm trying to install NixOS on my Raspberry Pi, and I'm following the instructions online, and when I do the first rebuild it's taking *forever* (I left it on overnight and it wasn't done after 8 hours)
<radvendii>
at that point i figured i might be doing something wrong
<lordcirth__>
radvendii, is the raspi really hot?
<lordcirth__>
thermal throttling can kill performance on Pi's
hmpffff has joined #nixos
mexisme_ has quit [Ping timeout: 272 seconds]
<radvendii>
uh. I didn't check while I was rebuilding
lordcirth_ has quit [Ping timeout: 246 seconds]
<radvendii>
right now it's warm but not hot
<radvendii>
i can run the rebuild again and see
<radvendii>
if that's the issue, what should i do? put it in the fridge?
<OmnipotentEntity>
May I get a review on an old pull request of mine? #82082
<lordcirth__>
You can get cases with built-in cooling, or if you have a spare small heatsink, stick that on
<xfix>
mojjo: what do you need that for, out of curiosity?
<xfix>
i have the following hack in my configuration.nix to allow editing /etc/hosts with root scripts: https://pastebin.run/2st6wPVkfp
<s1341>
xfix any luck?
<xfix>
it's not a great hack, but it works
<mojjo>
(hi lassulus!) ok, this I guess prevents the read-only file system
codygman has joined #nixos
<s1341>
xfix with the rethinkdb?
<{^_^}>
[nixpkgs] @etu opened pull request #82794 → PHP: Make the default package more saneSlim down default php → https://git.io/JvXcw
Ariakenom has quit [Quit: WeeChat 2.7]
<lassulus>
yes, /etc is not RO only the files in /etc/static are (because they are in /nix/store)
c0c0 has quit [Ping timeout: 250 seconds]
<mojjo>
or is it maybe possible to assign host names to virtual machines created with nixops?
<radvendii>
I put a small fan underneath my pi (suspended by the chords it's plugged into), and that seems to be speeding things up. thanks.
<NobbZ[m]>
mojjo shouldn't they be inherited from the attributes name?
<mojjo>
mhh.. looks like not. In my case that would not work as I have to create two host names that point to one IP. The nginx server running there has configured two virtual hosts, and I'm trying to test them locally.
<{^_^}>
[nixpkgs] @sjfloat opened pull request #82795 → qmidiarp: init at 0.6.5 → https://git.io/JvXCI
<lordcirth__>
radvendii, there was just a discussion in #nixos-aarch64 about that
<radvendii>
ah! there's a separate channel. thanks
gila has joined #nixos
gila has quit [Ping timeout: 246 seconds]
leomar has quit [Read error: Connection reset by peer]
leomar has joined #nixos
erictapen has quit [Ping timeout: 250 seconds]
<bqv[m]>
if there's a `mkDerivation rec { ...; src = ...; installPhase = ''...${src}...''; ...; }` and you overrideAttrs that derivation elsewhere to have a new `src`, should installPhase see the initial or overridden value?
<bqv[m]>
because as i'm sure you can guess, i'm seeing the initial value
<{^_^}>
[nixpkgs] @cillianderoiste pushed 4 commits to master: https://git.io/JvX8W
<bennofs[m]>
lovesegfault: what's the issue? 😀
bvdw has quit [Read error: Connection reset by peer]
o1lo01ol1o has quit [Remote host closed the connection]
bvdw has joined #nixos
<lovesegfault>
bennofs[m]: if you use NixOps or the like (I use morph) your `/etc/nixos/configuration.nix` will be empty since it's kept elsewhere and you don't use nixos-rebuild anyway; in this scenario I find that nix-index refuses to work at all
<lovesegfault>
error: getting status of '/run/current-system/nix': No such file or directory
<tilpner>
lovesegfault: Why would it want to check your configuration in the first place? Did you strace it?
<tilpner>
Unless you do something weird, like defining <nixpkgs> in terms of your configuration.nix...
ris has quit [*.net *.split]
<bennofs[m]>
Oh, well nix-index just calls nix-env with '<nixpkgs>' as path. So make sure that your NIX_PATH is set to something useful
* lovesegfault
checks
ris has joined #nixos
<lovesegfault>
tilpner: my configuration.nix is just this: `assert builtins.trace "This is a dummy config, use morph!" false; { }`
<Desetude>
In my configuration.nix I have `home-manager.users.me = import ./home`, where ./home contains a function taking in `pkgs, lib, ...`. This ends up working how I was originally intending it to with home-manager.users.me being set to { home.packages = ...; programs.nvim = ...; etc; }, however upon re-reading my config, I am unsure why the lambda is being evaluated rather than home-manager.users.me just
<Desetude>
being set to the lambda itself
<lovesegfault>
so when something touches it I see it :P
o1lo01ol1o has joined #nixos
<Desetude>
(My confusion has nothing to do with home-manager but rather why the lambda is being evaluated)
<tilpner>
lovesegfault: And your NIX_PATH value is?
<{^_^}>
[nixpkgs] @Izorkin opened pull request #82801 → nixos/fail2ban: disable work fail2ban without firewall → https://git.io/JvX81
<{^_^}>
[nixpkgs] @roberth opened pull request #82802 → lib/modules: Test the ability for config to depend on options for compatibility → https://git.io/JvX8S
Havvy has quit [Read error: Connection reset by peer]
dieraca has quit [Ping timeout: 250 seconds]
Havvy has joined #nixos
reactormonk has joined #nixos
reallymemorable has quit [Quit: reallymemorable]
mojjo has quit [Remote host closed the connection]
* cole-h
wonders why aerc, a terminal mail client, pulls in emacs...
Ariakenom has joined #nixos
<tilpner>
cole-h: # (optional) to byte compile emacs code, also needed for tests
<tilpner>
from notmuch/default.nix
<tilpner>
Also ruby, doxygen and perl
<cole-h>
Why does it require notmuch? I can run it perfectly fine without it...
<evanjs>
Any first things to check when I see /...-stdenv-linux is not allowed to refer to the following paths /nix/store/08a1ii9zz438985fkcfpv8bxb9fxa652-linux-headers-4.4.10 ?
<ivegotasthma>
or can both of them be somehow integrated into one tool
zeta_0 has joined #nixos
knupfer has quit [Remote host closed the connection]
Ariakenom has quit [Ping timeout: 256 seconds]
<tilpner>
I still use nix-shell regularly for one-off tools, lorri can't do that
Ariakenom has joined #nixos
<cole-h>
^
<cole-h>
lorri is great for projects, but nix-shell is better for oneshots
<tilpner>
Also #!/usr/bin/env nix-shell
<zeta_0>
hello everyone, i just started contributing to darcs and xmonad, and i am trying to setup darcs and xmonad each in a nix-shell to develop them, but i am having some problems setting them up. do you think you could help me out for a couple of minutes? https://github.com/xmonad/xmonad-testinghttp://darcs.net/Development/GettingStarted
<makefu>
tilpner: the problem i have with nix-shell as shebang is that it is just so slow on my machine
cizra has joined #nixos
maddo has quit [Remote host closed the connection]
<tilpner>
makefu: It is slow, but the self-containedness makes up for it, at least for scripts that you run less than once a day
<bqv[m]>
,locate adb
<{^_^}>
Found in packages: axis2, oh-my-zsh, metasploit, bash-completion, python27Packages.pwntools, python27Packages.adb-homeassistant, python37Packages.adb-homeassistant
<evanjs>
gchristensen: oh trust me I know :D I just need a stupid build of an app for legacy software :P once I get it work (if I do) I'll see if I can actually fix things... maybe :P
LysergicDreams has quit [Ping timeout: 250 seconds]
<evanjs>
I just don't want to set up a cross env myself again x_x
<evanjs>
cole-h: yeah I've been on the other side enough times :D answers marked as solved with the author stating "Okay got it bye" without any explanations :P
LysergicDreams has joined #nixos
<cole-h>
It's even happened in here a few times... >->
mexisme_ has quit [Ping timeout: 256 seconds]
endformationage has joined #nixos
ashkitten has joined #nixos
<{^_^}>
[nixpkgs] @veprbl pushed 251 commits to staging-20.03: https://git.io/JvXRY
ashkitte1 has joined #nixos
<drakonis>
woah nelly
LysergicDreams has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @veprbl pushed 16 commits to staging-19.09: https://git.io/JvXRO
ashkitten has quit [Ping timeout: 246 seconds]
<cole-h>
Is it possible to pretty-fy the `toJSON` output from Nix?
<NobbZ[m]>
Depends on what you consider pretty, but `jq` usually does a good job
o1lo01ol1o has joined #nixos
<cole-h>
Pretty = structured instead of a single like of JSON barf :P
<cole-h>
But that still requires calling out to jq. I was hoping there'd be a lib function or something
symphorien has quit [Quit: WeeChat 2.7.1]
LysergicDreams has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @nlewo opened pull request #82808 → nixos/alertmanager: start after the network-online target → https://git.io/JvXR4
o1lo01ol1o has joined #nixos
dieraca has joined #nixos
<evanjs>
cole-h: I mean you _can_ just run commands from within nix :P
<cole-h>
You're not wrong :^)
LysergicDreams has quit [Ping timeout: 250 seconds]
Rusty1 has quit [Remote host closed the connection]
<ElDelfin>
I'm having issues with getting a compositor to work right. It's on an Athlon x64 4400+ chip, and if I use a OpenGL one, I always get these triangles flashing around on the screen. Suggestions?
ftzm has quit [Ping timeout: 264 seconds]
reallymemorable has quit [Quit: reallymemorable]
relaxmax has joined #nixos
cmacrae has left #nixos ["ERC (IRC client for Emacs 26.3)"]
<Desetude>
Hi all. I have a working configuration which very roughly like: https://gist.github.com/Desetude/cdd0c54220c935c5aa2663775f1d7a62. However I'm confused how `home-manager.users.me = import ./home.nix` works as surely that is setting home-manager.users.me to a lambda rather than what the lambda evaluates to?
<Desetude>
(repost from a few hours ago)
gustavderdrache has quit [Quit: Leaving.]
<jackdk>
perhaps home-manager calls those functions?
<Desetude>
I have changed /etc/nixos to be owned by root:nix, and set the permissions of all the files to 664 and added my user to the 'nix' group so that I can edit the configs without using sudo. Is this a bad idea and is there a better way to do it?
<GiGa>
Hi folks. I've got an old Sound Blaster SB0490 USB sound card. Does anyone know how I can make PulseAudio see all of its connections individually, rather than just "mic in"?
<bqv[m]>
out of curiosity what's the benefit to it being raw bash over just sed, since sed's in scope anyway?
<clever>
bqv[m]: not sure why it was done that way
<MichaelRaskin>
I would expect escaping and process overhead considerations
<{^_^}>
#30336 (by alesguzik, 2 years ago, open): Flatpak and snap support
<drakonis>
hm, it seems snaps dont work very well
<drakonis>
flatpaks run extremely well though
<gchristensen>
do you have a specific snap you want to use?
<gchristensen>
when I went to the Snap developer summit last year, there was a bit of chatter about using Nix to build snaps
<Ashy>
GrimSleepless: oh i also had to move to nixos-unstable (from 19.09) otherwise i was seeing nix errors about hardware.nvidia.prime... not being defined
<drakonis>
oh? that's interesting.
<drakonis>
which party was engaging on that?
<{^_^}>
[nixpkgs] @Mic92 opened pull request #82816 → kubeval: don't build against schema by default → https://git.io/JvXz1
<bqv[m]>
gchristensen: the ubports installer, actually
gila has quit [Ping timeout: 256 seconds]
<bqv[m]>
there is an appimage, but it's not working for me, so i thought i'd try the snap
<bqv[m]>
(not working at runtime i mean, it does work and start, but something is failing and i don't know if it's to do with packaging)
<Ashy>
this is my absolute favourite thing about nixos btw, the complete lack of fear when installing and removing giant package sets like kde and gnome
<pikajude>
hi, i'm getting `error: experimental Nix feature 'ca-references' is disabled` when trying to build stuff on my remote system
<pikajude>
what does it mean
<Ashy>
on say ubuntu i would never trust apt to be able to successfully remove a package set like that
<Ashy>
although reliability may have improved in the past few years
<mlatus_>
What will happen if I 'rm -rf /etc' in postBootCommand? Will /etc be recreated? I have already enabled the immutable user
aw has joined #nixos
<GrimSleepless>
Ashy: I have been running NixOs for the last month... love it ... you need to nix-collect-garbage once in a while and nix-store --optimise as well
spacefrogg has joined #nixos
<pikajude>
oh, it's a bug in nix
<Ashy>
GrimSleepless: yeah i have both of those auto enabled in my config somewhere
<GodZalo>
Hi, I'm building an image for a raspberry pi 3, but during building I'm getting this error, command: `nix build -I system.nix -f ./system.nix config.system.build.sdImage -o sdImage` error in question:`builder for '/nix/store/b48939b0nn45v44nz8slc7xxkkimbrpq-fc-cache.drv' failed with exit code 126; last 1 log lines:
<GodZalo>
/nix/store/3dm2q0vvm1ii93g874g68v1nyn0sghpp-stdenv-linux/setup: line 1282: /nix/store/2hrwiwdv098vpg55v639m74y5qwi9y78-fontconfig-2.10.2-aarch64-unknown-linux-gnu-bin/bin/fc-cache: cannot execute binary file: Exec format error`