<omnipotententity>
Is there a library function for removing a specific item from a list?
<omnipotententity>
> remove 1 [0 1 2 3]
<{^_^}>
[ 0 2 3 ]
<omnipotententity>
awesome
erasmas has quit [Quit: leaving]
<gchristensen>
> remove 2 [ 0 3 1 2 ]
<{^_^}>
[ 0 3 1 ]
<gchristensen>
> remove 2 [ 2 2 2 2 ]
<{^_^}>
[ ]
rail has joined #nixos
<xacktm>
can one speed up a nixos upgrade? doing a 20.03 to 20.09 and it's been over 24+ hours so far, the laggy parts seems to be when "copying <...> from https://cache.nixos.org" happens
<colemickens>
xacktm: the "upgrade" should mostly just be normal download+extract of NARs and then the actual activation step (which could take longer but shouldn't take anywhere near that long).
<colemickens>
xacktm: if I had to guess, you have a very slow connection to cache.nixos.org and thus it's just taking ages to get the NARs downloaded.
alp has quit [Ping timeout: 272 seconds]
<gchristensen>
xacktm: where in the world are you
<xacktm>
western part of US
<gchristensen>
would you say you have good internet?
<xacktm>
https://dpaste.com/GLM3FCBV5 not the best formatting but it's all there, wish that site gave a results link heh
<xacktm>
oh kk :)
<colemickens>
oof BW to server 0.19mbps
<xacktm>
how though?
iH8c0ff33 has joined #nixos
<xacktm>
I can watch 1080p on youtube fine
jonatanb has quit [Remote host closed the connection]
<gchristensen>
xacktm: what does fast.com tell you?
iH8c0ff33 has quit [Ping timeout: 240 seconds]
<ajs124>
maybe your isp does some very... creative peering?
<xacktm>
it peaked around ~ 8 Mbps and settled around 4.2-ish Mbps
<xacktm>
far cry from teh 40 Mbps I should have :<
<xacktm>
ISP is Cox if that helps
* colemickens
has flashbacks and not the good kind
<xacktm>
oh wait...
Rusty1 has joined #nixos
<ajs124>
hm. do you have any accounts with any vpn providers? with stuff like this, sometimes it can be faster to go through a vpn, because your link to the vpn is "fast" and the vpn exit has a useful uplink. that's what I used to do when I was with deutsche telekom.
<xacktm>
no, no vpn, but I ran fast.com on my non-nixos distro and ethernet cable and I got 50+ Mbits per second, while this nixos laptop on wifi is the slower speed
omnipotententity has quit [Ping timeout: 260 seconds]
<xacktm>
also 50+ on my tablet, so I'm guessing something wrong with the nixos wifi drivers now...
as3ii[m] has joined #nixos
shibboleth has joined #nixos
fendor_ has joined #nixos
Acou_Bass has quit [Ping timeout: 265 seconds]
<colemickens>
(4Mbps is still ~20 times faster than .19mbps)
fendor has quit [Ping timeout: 260 seconds]
red[evilred] has joined #nixos
<red[evilred]>
that's strange behaviour for sure
shibboleth has quit [Remote host closed the connection]
Serus has quit [Ping timeout: 260 seconds]
shibboleth has joined #nixos
<xacktm>
good point, that's way underperforming
Acou_Bass has joined #nixos
<red[evilred]>
half tempted to ask you to do a traceroute to say cache.nixos.org and say youtube
<red[evilred]>
not that it will make you feel any better, but my speed is 40Mbps to fastly
<red[evilred]>
on your other machine that is faster - what does the fastly debug look like?
<xacktm>
aha, the upgrade just finished at least, gonna reboot :>
wpcarro has joined #nixos
bbarker has quit [Remote host closed the connection]
bbarker has joined #nixos
thc202 has quit [Quit: thc202]
bbarker has quit [Ping timeout: 240 seconds]
<NieDzejkob>
how do I nixos-rebuild --rollback, but ten generations at once?
cosimone has joined #nixos
<infinisil>
NieDzejkob: To see all available generations: sudo nix-env -p /nix/var/nix/profiles/system --list-generations
iqubic has left #nixos ["ERC (IRC client for Emacs 28.0.50)"]
<infinisil>
NieDzejkob: To switch to a specific number: sudo nix-env -p /nix/var/nix/profiles/system --switch-generation <number>
<infinisil>
Then run `/nix/var/nix/profiles/system/bin/switch-to-configuration switch`
<red[evilred]>
xacktm (IRC): let us know when you're back
<NieDzejkob>
and I can just do that as a normal profile operation? there's no additional actions nixos-rebuild performs in this case?
<NieDzejkob>
ah
<NieDzejkob>
will that set the default in GRUB too?
<infinisil>
I believe so yeah
<red[evilred]>
gchristensen (IRC): his source AS is different on each of his machines. If he doesn't have a VPN on either of those machines - I'm guessing AV with web proxy or something?
<red[evilred]>
(but the "worse" is teh wrong way around for what I would expect so ...)
growpotk- has joined #nixos
m0rphism has quit [Ping timeout: 264 seconds]
<xacktm>
red[evilred]: back, sorry had to fix some config
growpotk- has quit [Ping timeout: 256 seconds]
bqv has quit [Ping timeout: 260 seconds]
nuncanada has joined #nixos
<red[evilred]>
so..
<red[evilred]>
Your source AS is different per your two machines
<red[evilred]>
does your other machine have AV / filtering software on?
<red[evilred]>
(which sometimes is implemented as a VPN)
<mcgibbon>
Has anyone seen an issue where you hang near the end of boot with just an underscore visible (but not blinking) after installing 20.09?
<mcgibbon>
I'm running happily on an XPS13 laptop, but just bought an ASUS PN50 -- install appears to work fine, but then it won't boot after the install is complete and I reboot (although Ubuntu installs fine and then works. Grr)
cosimone has joined #nixos
ericsagn1 has quit [Ping timeout: 272 seconds]
jb55 has quit [Remote host closed the connection]
jb55 has joined #nixos
<simpson>
I'd play with nomodeset, first by booting with your installation media in nomodeset and then changing configuration.nix and rebuilding if that seems to work.
<simpson>
Also, while booted into your installation environment, check dmesg and look to see if anything besides GPU drivers could be the underlying problem; many drivers are capable of preventing Xorg from starting.
<mcgibbon>
I think it's related to booting the graphical display, yeah. I have two generations now, one from before i changed my configuration.nix to emable gdm and gnome3 and one after, and I can boot into the retro non-graphical terminal from the first generation just fine
<jbox>
can I set zsh as the system default shell? All of my users use zsh except one, so I'd like to configure zsh as the system default for users then only specify `shell = pkgs.bash` for my one user that still prefers bash
iH8c0ff33 has quit [Ping timeout: 240 seconds]
SanchayanMaity has joined #nixos
orivej has joined #nixos
ericsagn1 has joined #nixos
<{^_^}>
[darwin-stubs] @thefloweringash opened pull request #3 → Add stubs for libsandbox → https://git.io/Jk0hm
sangoma has joined #nixos
<aasg>
jbox (IRC): I think `users.defaultUserShell` does that
<jbox>
aasg: oh man, I was afraid I missed something simple like that. Thank you!
<rkMn>
Wanted to know, so i was looking for installing MacOS. And i stumbled upon NixOS. now i never Tested Darling on NixOS, Question would be : does it support SwiftMacOS-X Execution? natively or not, thats fixable
<risson>
Hey! Anyone knows how I can get the `vendorSha256` for `buildGoModule`?
<simonpe^^>
ah ok, thank you
<Ke>
traditionally I just build with bogus sha and fix it based on the error message
<risson>
Yeah, but nix build gives something like `sha256-uei4Wt0B9Bm/V5ykZ2KP9rwMjmpxy4dFEkeieVmKZpk=`, which I can't just opy and paste
<la-jesystani>
you're telling me thats not the way you're supposed to do it?
<Ke>
this method is very portable across wide range of products starting from filesystems
<Ke>
risson: that's interesting, I have always gotten pasteable error messages
coco has joined #nixos
<risson>
Yeah, the new nix command doesn't do that anymroe
<risson>
which is why I asked what the correct way to do this is
<{^_^}>
[nixpkgs] @hardselius opened pull request #104251 → nodePackages.gqlint: init at 1.8.0 → https://git.io/JkEOQ
<raboof>
in the scenario that 'nix build foo' fails because 'bar' fails, but I didn't want 'bar' to be built anyway, I'd like to find out why 'foo' apparently depends on 'bar'. However 'nix why-depends foo.drv bar.drv' first tries to build 'foo'... any way out of this catch-22?
<risson>
Can you just turn bar into a dummy derivation that does nothing?
<{^_^}>
[nixpkgs] @Mic92 closed pull request #103002 → Various fixes for apple frameworks → https://git.io/JThLa
arinov has quit [Ping timeout: 240 seconds]
<sephii>
I’m trying to build a Python package that depends on its own binary being in the path to run the tests. Running the tests in the `checkPhase` results in an error because the binary can’t be found.
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eoli3n_ has joined #nixos
<{^_^}>
[rfcs] @Mic92 merged pull request #32 → [RFC 0032] Phase running changes for better nix-shell use → https://git.io/fAZAo
<{^_^}>
[rfcs] @Mic92 pushed commit from @dezgeg to master « [RFC 0032] Phase running changes for better nix-shell use (#32) »: https://git.io/JkEjl
eoli3n_ has quit [Remote host closed the connection]
<aveltras>
is there a way to have a directory needed by template haskell included during the build of a haskell package ? the build works with bare cabal but the directory needed for compilation is not included when trying nix-build and thus fails ?
<mikeOslo>
symphorien[m]: what do you mean? I have my own repo with my own service outside of nixpkgs
<{^_^}>
[nixpkgs] @steveeJ opened pull request #104281 → fetchCargoTarball: support vendoring extra manifests → https://git.io/JkEj6
eoli3n_ has joined #nixos
<aveltras>
my bad, i misconfigured a gitignore file
<blackriversoftwa>
I have a very recent dell laptop running nixos-unstable and a WB19TB dock. I've been getting a lot of peripheral lockups and after using fwupd to update the dock firmware, now I also get disconnects of the dock's audio and ethernet. dmesg shows:
<blackriversoftwa>
[ +1.084094] usb 5-2.3.2.4: reset full-speed USB device number 15 using xhci_hcd
<simpson>
Check your dock's physical connectors for damage, maybe? That looks like the connection to the USB hub is constantly cutting out, causing the device to de- and re-register.
codezero has joined #nixos
<lordcirth>
Yeah, that looks like a hardware problem
justan0theruser has quit [Ping timeout: 272 seconds]
domogled has joined #nixos
leo60228 has joined #nixos
cosimone has quit [Quit: cosimone]
<evanjs>
Reading through the Arch wiki page made it click for me
<evanjs>
Choose GNOME Flashback (Metacity) from the menu in a display manager of choice.
<leo60228>
i have a router running nixos
<evanjs>
Enabling that seems to allow my system to rebuild
<leo60228>
dhcpcd works for both ipv4 and ipv6
<leo60228>
but
<leo60228>
despite successfully getting a lease, it still waits 20 seconds before timing out?
<{^_^}>
[nixpkgs] @06kellyjac opened pull request #104293 → conftest: return to less ldflags → https://git.io/JkuCM
arinov has quit [Ping timeout: 256 seconds]
rager has quit [Ping timeout: 256 seconds]
Ariakenom has quit [Quit: Leaving]
<leo60228>
i fixed it by adding an `ia_na 1` in addition to my `ia_pd`
rager has joined #nixos
bob_twinkles has quit [Read error: Connection reset by peer]
domogled has quit [Ping timeout: 264 seconds]
<{^_^}>
[nixpkgs] @gnidorah opened pull request #104294 → openxray: replace fix with proper patch → https://git.io/JkuWN
spudly1 has quit [Ping timeout: 240 seconds]
erasmas has joined #nixos
veleiro has joined #nixos
bob_twinkles has joined #nixos
spudly1 has joined #nixos
<Boomerang>
nix-build will either a derivation or a set of derivations, but not a set of sets of derivations. Is there anyway to get it to do that? As far as I can tell `hydra` will build derivations however deep they are.
<Boomerang>
*build
kalbasit has joined #nixos
justan0theruser has joined #nixos
dsx has joined #nixos
CptCaptain has joined #nixos
alp has joined #nixos
vandenoever has quit [Read error: Connection reset by peer]
<{^_^}>
[nix] @Ericson2314 opened pull request #4269 → Make drv hash modulo memo table thread-safe → https://git.io/Jku84
jonringer has joined #nixos
vandenoever has joined #nixos
wnklmnn has joined #nixos
kalbasit has quit [Ping timeout: 240 seconds]
bbarker has quit [Remote host closed the connection]
<leo60228>
is there a way to quickly check if a nixos configuration is valid? like `cargo check` in rust
<thibm>
leo60228: what do you mean "valid"?
bbarker has quit [Remote host closed the connection]
bbarker has joined #nixos
as3ii has joined #nixos
<nh2[m]>
leo60228: perhaps `nixos-rebuild build`, `dry-build` or `dry-activate`?
<leo60228>
thibm: i'm not sure what the correct term is, but i mean any error that will abort the build before "these derivations will be built"
arinov has quit [Ping timeout: 240 seconds]
symphorien[m] has left #nixos ["User left"]
bbarker has quit [Ping timeout: 260 seconds]
boxscape has quit [Ping timeout: 272 seconds]
<leo60228>
i *think* a generalized version of this would be a way to make sure that an expression evaluates successfully, but not caring about the result in any way
<thibm>
leo60228: OK, then you just need to evaluate it. Quick and dirty way: `nixos-option`
<{^_^}>
[nixpkgs] @FRidh pushed commit from @lovesegfault to master « pythonPackages.psycopg2: document pypy incompatibility »: https://git.io/Jkuuy
<acowley>
I have a build that, I think, is trying to write generated files to the source directory to sit alongside the static source files. Anyone have any tips for dealing with this?
<acowley>
To clarify, this fails with a PermissionError
<thibm>
leo60228: proper way: nix-instantiate '<nixpkgs/nixos>' -A system
<leo60228>
that creates a .drv, does that have a performance impact?
arinov has joined #nixos
<thibm>
leo60228: (if you use the common NixOS configuration scheme)
<leo60228>
or is the .drv creation basically free once the evaluation is done
<{^_^}>
[nixpkgs] @veprbl pushed commit from @DianaOlympos to release-20.09 « elixir_1_6: remove (#103971) »: https://git.io/Jkuup
<nh2[m]>
thibm: that's great. Is that written down somewhere? IMO this is useful enough to know to even go into `man nixos-rebuild`
<thibm>
leo60228: I think the extra steps to go from evalution to writing the .drv file are nothing
<thibm>
nh2[m]: not in my knowledge. You find out by reading nixos-rebuild source and <nixpkgs/nixos> source (i.e. nixos/default.nix in a nixpkgs tree, and you follow the file tree…)
<thibm>
leo60228: and the .drv can be garbage collected
<leo60228>
okay now a completely unrelated question
<leo60228>
i have dhcpcd set up on my router to use prefix delegation to give a /64 ipv6 block to my LAN interface, and dnsmasq set up to give a chunk of that block to clients using dhcpv6
<leo60228>
from my understanding, this is basically a standard consumer ipv6 configuration, with the only difference being that slaac is slightly more common than full dhcpv6
<acowley>
Is it easy to override how the source files in the store are copied/linked to the build directory? If it's a symlink, perhaps I could get away with doing a deep copy.
<thibm>
acowley: `chmod -R +w` somewhere in the build instructions?
<thibm>
(for your PermissionError question)
cosimone has joined #nixos
<leo60228>
however, this means that ports open on LAN devices are accessible on the open internet
<acowley>
thibm: Yeah, I thought I recalled that store directories with source where symlinked into the build directory. So I was guessing that was what was stopping the write.
<leo60228>
(i've confirmed this by sshing into a remote server)
<leo60228>
is there a way to change this behavior?
<vuko>
block routing of packets comming from uplink that are not related to previous tracking
<leo60228>
is there a way to do that easily?
<leo60228>
and if you're referring to networking.firewall, i'm using that
<nh2[m]>
acowley: usually source files are copied into the build directory. Usually they are writable (e.g. when obtained from fetchurl and similar), so that applying patches works out of the box. But in some cases, e.g. when you `cp -r` them from other build outputs, they are copied with their read-only file perms. Then you need to `chmod (-R) u+w` them.
<leo60228>
is there a way to declaratively set what nixpkgs i want to use globally (pkgs in nixos modules, <nixpkgs>, and for nixos itself)? nixpkgs.pkgs doesn't fit because of the last one
tldr32- has joined #nixos
eoli3n_ has quit [Remote host closed the connection]
eoli3n_ has joined #nixos
mallox has quit [Quit: WeeChat 2.9]
<leo60228>
oh i want flakes i think
tldr32 has quit [Ping timeout: 240 seconds]
<lovesegfault>
leo60228: You can do it by avoiding nixos-rebuild and the like and sidestepping channels altogether
<{^_^}>
[nixpkgs] @FRidh pushed commit from @mweinelt to staging-20.03 « openldap: apply security patches »: https://git.io/JkuiB
<omnipotententity>
I'm trying to override the version of tensorflow to fix an issue I'm running into with memory leaks. This is my attempt: https://gist.github.com/OmnipotentEntity/4355de9582334c7115bc901440e1b58a but it's failing after compile saying that setup.py does not exist. Unfortunately, actually compiling tensorflow takes several hours, so it's very difficult to iterate on in any reasonable timescale. Does anyone see anything obviously
<omnipotententity>
wrong with this?
<neonfuz2>
okay so I figured out my issue: I was overriding packages in nixos stable with unstable packages in an overlay, and nix didn't like that
<neonfuz2>
so it was making nixos-rebuild silently fail...
<neonfuz2>
<omnipotententity "shouldn't that be allowable?"> replying to me? I guess the specific way I did it is not good. But I switched back and it's working
<{^_^}>
[nix] @edolstra pushed to master « AttrCursor::getStringWithContext(): Force re-evaluation if the cached context is not valid »: https://git.io/JkuXg
<pistache>
hmm, it seems NixOS doesn't like recursive option types at all
<{^_^}>
[nixpkgs] @veprbl closed pull request #30419 → MacOS support for gn and v8_6_x → https://git.io/vd1BA
proofofkeags has joined #nixos
meh` has quit [Ping timeout: 256 seconds]
Boomerang has joined #nixos
<pistache>
I'm trying to write a function that filters cyclic references from nested attrsets (to prepare them for JSON export)
<pistache>
the nested attrsets are values obtained through the NixOS module system (the cyclic references being added by the apply function of an option)
<pistache>
when I use this with NixOS recursive option types, Nix quickly eats all my machine's memory, then it's taken care of by the kernel's OOM killer
jorts is now known as nckx
<la-jesystani>
is there a quick way to tell the store path of something, like `which` but for the nix store?
bbarker has quit [Remote host closed the connection]
bbarker has joined #nixos
knupfer1 has joined #nixos
knupfer1 is now known as knupfer
tdeo has joined #nixos
diamondburned has joined #nixos
<colemickens>
Is there a way to know if a store path is a "installable" or not? I am testing a NAR serializer and I'm having to ignore a number of paths in /nix/store because they fail `nix dump-path`.
<colemickens>
(I
<colemickens>
I'm using `nix dump-path` to verify the bytes match my serializer, and it does for hundreds of paths I've tested, but I was surprised at how many things I had to ignore -source, .tar.gz, .drv, etc. Is there an exhaustive list or way to know?
vandenoever has quit [Quit: Konversation terminated!]
<{^_^}>
[nixpkgs] @adisbladis pushed commit from @utdemir to release-20.09 « dockerTools.streamLayeredImage: Store the customisation layer as a tarball »: https://git.io/JkuA3
bbarker has quit [Remote host closed the connection]
bbarker has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
<pumpy>
anyone using rdp into a nixos machine? curious why alacritty is showing text 75% the size i expect? i added the right value for .Xresources Xft.dpi
lightbulbjim has joined #nixos
<pumpy>
how can i see if .Xresources is being used?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<genevino>
pistache: alacritty doesn't use xrdb, but you can edit the config file (alacritty.yml) and save it, and all running alacritty instances will apply the new settings on the fly.
<pumpy>
the bug was that i3 wasn't automatically loading .Xresources obviously so i had to add a startup command for that
<genevino>
actually, the only thing i do is setting GDK_DPI_SCALE= in .xinitrc, and if the font in my terminal is too small, i either ctrl-+ or increase the font size in the config file.
pieguy128 has joined #nixos
<genevino>
of course that doesn't affect alacritty since it isn't gtk, but i never saw a problem with that.
andi- has quit [Ping timeout: 272 seconds]
zupo has quit [Ping timeout: 260 seconds]
jbox has joined #nixos
magma has joined #nixos
shibboleth has quit [Quit: shibboleth]
andi- has joined #nixos
<pumpy>
i wanna experiment with different cursor sizes. why can't i run xsetroot -xcf ...pkgpath.../share/icons/Adwaita/cursors/left_ptr 32? it ran fine but cursor didn't change
<pumpy>
oh that changes when cursor is over blank x space, but not when it's over a program like alacritty or whatever
<pumpy>
how i can do pls?
magma has quit [Client Quit]
<genevino>
ooooof
<genevino>
cursor sizes. yea. you can set gtk-cursor-theme-size=<int> in .config/gtk-3.0/settings.ini
<genevino>
i think the default is 24, i use 48 on a hiDPI display
<genevino>
and i'd probably use lxappearance to set the cursor theme :)
<genevino>
at least the standard "Adwaita" theme is resizeable, so that should work for you.
iH8c0ff33 has quit [Ping timeout: 264 seconds]
sigmundv has quit [Read error: Connection reset by peer]
<genevino>
pumpy: ^
turlando has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @jonringer pushed commit from @r-ryantm to master « python37Packages.aiokafka: 0.6.0 -> 0.7.0 »: https://git.io/JkuhA
<genevino>
pumpy: not sure to be honest. could as well be named "gnome3.adwaita-icon-theme" and i'm not sure if that contains the cursors, too (i believe so, as there is no separate package for them).