<pie_>
dotdotok: is there an issue or pr for it yet or something
<freecoupo>
no
<dotdotok>
don't believe so, its a bit obscure, i was hoping someone here may have built it themselves, dont have much experience working with cmake (or really anything that required more work than `make install`)
<dotdotok>
(i tried but with little success)
<gchristensen>
A/msg chanserv op #nixos
freecoupo was banned on #nixos by gchristensen [*!*@185.200.34.249]
freecoupo was kicked from #nixos by gchristensen [freecoupo]
<dotdotok>
ah ha, well, thats interesting, the site where it was hosted is actually down atm.. thats not very good, thankfully i downloaded the source yesterday
<dotdotok>
i suppose ill try and build it more in the morning, tired tired
Serus has joined #nixos
justan0theruser has quit [Ping timeout: 250 seconds]
ahmed_elgabri has quit [Ping timeout: 258 seconds]
Dr8128 has quit [Ping timeout: 265 seconds]
figgyc has quit [Quit: No Ping reply in 180 seconds.]
lsix has quit [Ping timeout: 260 seconds]
figgyc has joined #nixos
<aleph->
Hmm, what would be the proper way to generate a wireguard interface and import it into a nixOS container?
rawtaz has quit [Quit: bailing]
rawtaz has joined #nixos
rawtaz has joined #nixos
rawtaz has quit [Changing host]
<aleph->
Ah see there's an issue around a open system pr
<aleph->
systemd*
alexherbo2 has quit [Ping timeout: 240 seconds]
nixperson has quit [Quit: Connection closed]
dotdotok has quit [Ping timeout: 265 seconds]
alexherbo2 has joined #nixos
wallacer has joined #nixos
<aleph->
Hmm, maybe I need net cap admin...
h0m1 has quit [Ping timeout: 260 seconds]
h0m1 has joined #nixos
zeta_0 has joined #nixos
<DigitalKiwi>
gchristensen: what's the matter don't you like saving money
rajivr has joined #nixos
Serus has quit [Ping timeout: 268 seconds]
Tv` has joined #nixos
<colemickens>
nix: error: unexpected end-of-file
<colemickens>
sometimes, I uh I dunnoi
<aleph->
Hmm, nixOS containers are containers ya? Meaning they should be using the kernel of the host machine?
<veleiro>
how do i show just what the output path will be from nixos-rebuild?
<veleiro>
i want to copy the system closure for a new build on my laptop to a faster machine, and build it there
<veleiro>
without downloading it again
<aaronjanse>
Correct aleph- (afaik)
<aleph->
Huh
<aleph->
Because I have 5.8~ on the host but 5.4~ in the fresh container.
Serus has joined #nixos
<aaronjanse>
Huh
<Tv`>
Hi. I'm making a tarball for use in a container, and need /etc/passwd etc created in the tarball already, not at first boot. tar tvf result/tarball/nixos-system-x86_64-linux.tar.xz |grep ' etc/' shows the etc/ dir is empty in the tarball. any ideas?
<aleph->
Iirc /etc is effectively null on first usr
<aleph->
There's no need for it
<aleph->
use*
<Tv`>
should i be looking at actually triggering all activationScripts, or somehow kludging just the update-users-groups.pl thing
<Tv`>
aleph-: the container infrastructure demands /etc/passwd etc to be in place
<aleph->
Thinking.
<aleph->
Could just `touch` it yah?
<Tv`>
mighty ugly but possible
<aleph->
End goal is you want a nixOS container right?
<Tv`>
yeah. specifically, nixos in crostini (ChromeOS)
<Tv`>
it works, but i'm trying to automate the steps
<aleph->
Hmm. Thinking some more.
<Tv`>
(right now needs an `lxc exec` workaround before the crostini infrastructure starts working)
<aleph->
So this is very outdated, but might give you some ideas if you haven't seen it yet
<Tv`>
so the good news is *it works*, i have wayland, x11 etc all going
<Tv`>
but i still have to clean up some kludges ;)
vidbina has joined #nixos
<aleph->
Ah got it.
<aleph->
Hmm, could I see your source?
<Tv`>
i haven't pushed anything yet, just editing local files
<Tv`>
but it's basically nothing more than `nix-build -E '(import <nixpkgs/nixos/release.nix> {}).containerTarball.x86_64-linux'`, a few workarounds, and systemd units for the googly tools to run inside the container
<aleph->
Hmm, got it
theDon has quit [Ping timeout: 240 seconds]
<aleph->
Hmm can you use nixOS modules when creating this container?
<Tv`>
workarounds are 1) security.nesting=true in lxc 2) lxc launch instead of vmc container (because missing /etc/passwd etc) 3) there's a 5 second sleep to avoid a race
alexherbo2 has quit [Ping timeout: 240 seconds]
<aleph->
Could use the environment.etc.<file> module
theDon has joined #nixos
<Tv`>
aleph-: i think that'd result in a symlink though, which would probably break other things
<aleph->
Hmmm. Quite possibly yeah.
gustavderdrache has quit [Quit: Leaving.]
<Tv`>
i don't understand what `system.build.tarball = ...` actually does
<Tv`>
like, it's assigning an option i think, but i haven't been able to locate the definition
<Tv`>
or use
<aleph->
A good question and one I'll leave to my seniors, I don't recall every using it
<Tv`>
but it seems like make-system-tarball.nix would let me control the contents of the tarball more explicitly, if i can figure out the plumbing to that
<simpson>
Having the sinking feeling that it might be just me and the folks in #sandstorm.
nly has joined #nixos
novafacing has quit [Quit: novafacing]
novafacing has joined #nixos
nly has left #nixos [#nixos]
<elvishjerricco>
fresheyeball: I *think* you can do `sudo mount -o remount,rw,bind /nix/store` to make it writable, then root can modify anything.
mzan has joined #nixos
lambdaman has joined #nixos
<lambdaman>
Trying to get good ol' simple local mail (mailutils) working on my system and it's driving me batty. I have mailutils installed and thought I might need postfix too. Whatever I do seems not to let me use mail to send to myself. No error, but not mail either.
nixer has joined #nixos
<nixer>
Hi, I want to install latest version of VSCode in my user environment, so I understand I need to create an overlay, how do I extract the current vscode configuration to put in the ovrlay ?
<nixer>
or is there a nice guide for how to use latest version of some package
<LinuxHackerman>
nixer: the "wheel" group has sudo access by default, so the typical way is to do users.users.nixer.extraGroups = ["wheel"];
nschoe has quit [Client Quit]
<LinuxHackerman>
I'm not sure why i3 wouldn't show up on the list in that case. Maybe try restarting display-manager (will kill any graphical sessions!) using sudo systemctl restart display-manager
alexherbo2 has joined #nixos
<nixer>
i tried reboot, didn't help
<nixer>
anyhow, I want to make an overlay which updates vscode to latest version, any tips on how to do that ?
<LinuxHackerman>
huh ok
<nixer>
now sure what to write in my injection script
<LinuxHackerman>
and you did apply the new config using nixos-rebuild switch?
<nixer>
yep, I think the i3 wiki page has tips on how to make it work, i'll look into it later
<nixer>
now i'm trying to get newer versions of packages I want in the stable tree
avaq has joined #nixos
sofus[m] has joined #nixos
jimmiehansson has joined #nixos
<nixer>
any ideas on how to upgrade vscode via a patch overlay ?
<etu>
yep, seems to be broken for me, it used to work :/
<sofus[m]>
damn
jonringer has quit [Ping timeout: 258 seconds]
<sofus[m]>
But thanks for the help anyways. Really appreciate it :)
jarkad has quit [Quit: jarkad]
<{^_^}>
[nixpkgs] @vcunat pushed 616 commits to staging-next: https://git.io/JO3xF
rawtaz has left #nixos [#nixos]
<etu>
sofus[m]: The problem I seem to have is that my wlr portal doesn't start properly
attila_lendvai has joined #nixos
attila_lendvai has joined #nixos
attila_lendvai has quit [Changing host]
<attila_lendvai>
what is the policy regarding LLVM? i wish there was an LLVM unstable package that contains the bleeding edge, and is updated every once in a while and built on hydra so that i can grab a rather recent LLVM binary...
alexherbo2 has quit [Ping timeout: 240 seconds]
saschagrunert has quit [Ping timeout: 240 seconds]
<gianarb>
I have added the nixos-unstable channel to nix and that's why `<nixos-unstable/nixos/modules/services/desktops/pipewire/pipewire.nix>` works fine I suppose
<gianarb>
I am not sure how I can reference nixous-unstable in configuration.nix
<asymmetric>
has anyone successfully configured more than one wireguard vpn using the wireguard module?
Dotz0cat has joined #nixos
<asymmetric>
whenever i add more than one subnet to wireguard.interfaces.wg0.ips, one of them takes over, meaning taking over the src ip on all other wireguard subnets
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]
<qyliss>
it's usually better to avoid assigning a uid for a system user if you can, because they're fairly scare
<qyliss>
*scarce
<asymmetric>
when doing a nixos-rebuild to a remote host, i'm getting this error:
<asymmetric>
error: cannot add path '/nix/store/49pvy648ncl0dcgrnw355h4rb90szl3d-initrd-linux-5.4.105' because it lacks a valid signature
<asymmetric>
nixos-rebuild --use-remote-sudo
<asymmetric>
i assume the remote host is refusing store paths built by my non-root user
<aleph->
So figured I'd ping here again, gchristensen maybe you know. NixOS/systemd-nspawn containers. Those should be relying on the kernel of the host right? Because I've got a host with a 5.8~ kernel now and when I generate a container and upload via nixops it seems to want to use a 5.4~ kernel.
<gchristensen>
you need to be connecting to the remote host as a user which is trusted by nix, usually that means root
<aleph->
Half wondering if this is due to my pinned version of nixpkgs for nixops...
<gchristensen>
aleph-: right
<gchristensen>
I suspect the container won't use the kernel you're sending
philr has joined #nixos
<asymmetric>
gchristensen: is it sufficient to add my user to the remote's trusted-users in nix.conf
<gchristensen>
it has to be the user you're logged in as on the remote side
<gchristensen>
and that should be enough
<aleph->
Huh... but it's a container? A glorified chroot, by default it should just use the kernel of the root. And having looked through the nixos-container module def nothing pops out to say otherwise. :/
<aleph->
kernel of the host.*
<gchristensen>
aleph-: right, for whatever reason you depend on a kernel in your closure, but it won't be used
<supersandro2000>
qyliss: why do you revert an update and after that mark it as broken?
<qyliss>
the update changed it from failing to build to broken at runtime
<qyliss>
(when used with the NixOS module)
<aleph->
Could I set a kernel to be used for a container... setting boot.kernelPackage(s) in the container config doesn't work. Maybe if I override the module definition...
<supersandro2000>
containers do not have kernels
<supersandro2000>
they use cgroups and sit in the host kernel
<qyliss>
supersandro2000: aleph-'s previous messages demonstrates that they know that
<aleph->
Aye.
<gchristensen>
aleph-: is there an issue here beyond it being annoying that you depend on a kernel?
<supersandro2000>
didn't read that
<qyliss>
then maybe don't assume ignorance before you've read five lines up
jrm has quit [Read error: Connection reset by peer]
<aleph->
gchristensen: Yeah the root issue is I'm trying to get wireguard working in a container. Which given I'm stuck on 5.4~ in the container means I'm missing the kernel driver. Might just override the module def for containers and include the wg driver that way.
jrm2 has joined #nixos
<supersandro2000>
at the beginning of the day I just scroll down to the end and ignore everything above
alexherbo2 has joined #nixos
<gchristensen>
hrm, I'm not sure nixos containers can load kernel modules
<supersandro2000>
well I look for mentions but nothing else
jrm2 is now known as jrm
<aleph->
gchristensen: Well it'll be a fun day finding out! :)
<gchristensen>
hehe
<aleph->
The end goal being I want to do a mesh vpn set up internally using a module for https://github.com/jwhited/wgsd that I have a module written for.
* V
assumes supersandro2000's IRC client is 4 lines tall
<das_j>
aleph-: Don't the modules get propagated when loading them on the host?
ddellacosta has joined #nixos
<edef>
aleph-: the container won't be able to modprobe/insmod wireguard anyway
<aleph->
All true things.
lsix has joined #nixos
<edef>
i'm not sure if the mechanism for loading interface drivers is pure userspace, or if it goes through the kernel's modprobe helper path
<aleph->
I believe the latter iirc
<edef>
or if containers can even trigger the latter
<aleph->
So should be fun finding out
<edef>
right, in which case it presumably does that in the root netns
<supersandro2000>
V: I am just lazy
<aleph->
Worst comes to worst maybe I can just write a func to generate my wg devices in the root and just import them into each container.
<qyliss>
supersandro2000: in cases like this, your laziness is rude to other people
<supersandro2000>
at least docker can do that if you give the container enough permission
<supersandro2000>
I assume you can do the same for nspawn container
<edef>
aleph-: that will affect how they work, fwiw
<aleph->
Oh?
<edef>
aleph-: they retain the UDP socket from the netns they were created in
<edef>
ie underlay traffic will be from the host netns
<edef>
but just loading the module on the host should work fine
<mewra>
aleph-: you can create wg interfaces inside namespaces just fine, you only need to make sure the host kernel has already loaded the module
<supersandro2000>
you can give the docker container the SYS_MODULE cap to achieve that
<aleph->
mewra: Yeah that's what I thought. Probably need to fiddle some more as my container gives off an error device not found/unknown when I try a `ip link add dev wg0 type wireguard`
<mewra>
even after you run modprobe wireguard on the host?
<supersandro2000>
gchristensen: which is just a systemd-nspawn container which also uses cgroups so it should be similar
<aleph->
mewra: Eyarp
<edef>
giving a container SYS_MODULE is effectively giving it root
<edef>
i would not do that in most circumstances.
<asymmetric>
gchristensen: do the usernames have to match between the two hosts?
ddellacosta has quit [Ping timeout: 252 seconds]
<asymmetric>
my local username and the one i ssh with are different
<gchristensen>
asymmetric: no, the sending side has nothing to do with it
respawn_ has quit [Quit: Leaving]
<mewra>
aleph-: That's odd. Can you create wg interfaces on the host?
<asymmetric>
gchristensen: so i'd need to also add my local user (the one that bulids) to trusted-users ?
<gchristensen>
asymmetric: if your remote user on wireguard-gateway is foo and your local user on localhost is bar, bar needs to be trusted by localhost, and foo needs to be trusted by wireguard-gateway
<aleph->
Okay yeah weird, needed a reboot. For some reason my host wasn't loading the wg driver.
<aleph->
And there for I can use wg in my nixOS containers fine woot
_d0t has joined #nixos
<_d0t>
ohai! Is there an operator in nix that returns the first argument if it isn't null, otherwise returns the second one?
<_d0t>
I have a lot of code that looks like `if x == null then y else x` :(
domogled has quit [Quit: domogled]
<dutchie>
x ? y
<dutchie>
> null ? 42
<{^_^}>
error: syntax error, unexpected INT, expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):494:8
<dutchie>
um
vidbina has quit [Ping timeout: 240 seconds]
zupo has joined #nixos
gustavderdrache has joined #nixos
<_d0t>
yeah
<LambdaDu1k>
How do you figure out which `darwin.apple_sdk.frameworks` a program needs when packaging it for macos?
<_d0t>
that one is for attrsets
Qwerky has joined #nixos
<asymmetric>
lib.mapNullable?
<asymmetric>
> lib.mapNullable (x: x) null
<{^_^}>
null
<asymmetric>
> lib.mapNullable (x: x) "foo"
<{^_^}>
"foo"
<lukegb>
LambdaDu1k: it depends, if it's a C program you'll get told that it's missing headers named <SomethingKit/Awesome.h>, and in that case you need, well, SomethingKit
<simpson>
asymmetric++
<{^_^}>
asymmetric's karma got increased to 7
meh` has quit [Ping timeout: 252 seconds]
tru_tru has quit [Ping timeout: 260 seconds]
Qwerky has quit [Ping timeout: 240 seconds]
rj has quit [Ping timeout: 240 seconds]
ddellacosta has quit [Remote host closed the connection]
ddellaco_ has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rj has joined #nixos
<LambdaDu1k>
lukegb: Thanks! If it doesn't complain during the compilation, it is fine?
<_d0t>
asymmetric: I don't think this looks better. I'll probably define my own function somewhere.
<asymmetric>
agreed :)
<LambdaDu1k>
Now I have problems with /nix/store/prgrm/MyProgram.app/bin/appname is looking for a library in /nix/store/prgrm/lib instead of /nix/store/prgrm/MyProgram.app/lib where it actually is. Do you have any idea what would cause this/how to solve it? It is a QT-app that uses macdeployqt.
vidbina has joined #nixos
ddellaco_ has quit [Remote host closed the connection]
<catern>
hmmm trying to upgrade to 20.09 on my little digital ocean VPS with 1GB of RAM and I'm getting "error: unable to fork: Cannot allocate memory"
<human28>
does anyone here use zvol as swap or do you have a swap partition
<gchristensen>
swap partition
<gchristensen>
using zfs for swap is a bit shady
<gchristensen>
but can be done
<human28>
yeah i read about that
<human28>
swap part seems the most stable out of all the options
<gchristensen>
yeah
<gchristensen>
I have in a pinch created a swap file in my /boot partition
<human28>
why tho lol
<gchristensen>
because I needed swap and had no partition to put it on
<human28>
fair enough
growpotkin has joined #nixos
<human28>
where do i mount the root partition during the initrd
<human28>
i have a more weird setup in mind that requires commands in the initrd
lambdaman has joined #nixos
<SumnerEvans[m]>
,locate linux-vdso.so.1
<{^_^}>
Couldn't find in any packages
human28 has quit [Quit: Connection closed]
gustavderdrache has quit [Quit: Leaving.]
human28 has joined #nixos
gustavderdrache has joined #nixos
lambdaman has quit [Ping timeout: 240 seconds]
ddellaco_ is now known as ddellacosta_
<pie_>
human28: i use zvol as swap and i have issues but i dont know if its zvol as swap's fault
saschagrunert has quit [Remote host closed the connection]
jboy- is now known as jboy
rj has quit [Ping timeout: 240 seconds]
<BlackBeans>
is there an equivalent of `build-essential` on NixOS ?
<hexa->
no
<hexa->
packages have their dependencies explicitly set
max[m]3 has joined #nixos
<BlackBeans>
well, turns out `rustup` doens't
human28 has quit [Quit: Connection closed]
<BlackBeans>
it doesn't mark `gcc` as a dependency, even though it relies on the `cc` linker
oxalica1 has joined #nixos
erasmas has joined #nixos
<lukegb>
there's stdenv
rj has joined #nixos
<catern>
hexa-: thanks for the confirmation, I just upped the RAM to 2GB and it works fine. yeah I should really be doing the builds from a larger machine and distributing them over, do you have a suggestion on the easiest way to do that?
<lukegb>
so that's arguably similar to build-essential, but there's also things like stdenvNoCC, which doesn't include gcc, etc.
<hexa->
catern: morph, krops, deploy-rs etc.
<hexa->
there is a world of tooling around that approach
<hexa->
,deploy
<hexa->
ugh … what was it
<hexa->
idk
attila_lendvai_ has joined #nixos
attila_lendvai has quit [Ping timeout: 240 seconds]
<ambroisie>
What is the best way to deal with this?
<eacameron>
I have a cachix GitHub action that needs to clone a private repo via Nix (builtins.fetchGit). Does anyone have a trick for this?
tutitau[m] has quit [Quit: Idle for 30+ days]
<gchristensen>
eacameron: it'd be solved just like any other `git clone` of a private repo: builtins.fetchGit runs that clone out of the sandbox
<ambroisie>
I would assume to add a `postInstall` hook to copy the assets to `$out/share`, and then link those before running the service
<eacameron>
gchristensen: GitHub actions usually use a checkout action to do this. But I'd like Nix to do it. I'll look into other ways. Maybe a personal access token
<supersandro2000>
ambroisie: fetch them and symlink them preBuild/postInstall
<ambroisie>
supersandro2000: won't a symlink potentially refer to stale files?
<ambroisie>
Do sources get removed when GC is run?
waleee-cl has joined #nixos
rj has quit [Ping timeout: 240 seconds]
<supersandro2000>
ambroisie: they shouldn't be removed when you have a symlink into them
<clever>
ambroisie: any symlinks in $out create extra runtime dependencies for your build product
<clever>
so the thing your linking cant be deleted until your product is first deleted
<supersandro2000>
a symlink also points to some store paths so they shouldn't be out of date
ram19890 has joined #nixos
<ambroisie>
Alright good, I wasn't sure
<ambroisie>
And to make sure they're in the working directory of the service, I'll symlink them back from the package to the configured working directory then
<ambroisie>
Alright thanks, I might come back later to learn about nixos' tests
rj has joined #nixos
slack1256 has joined #nixos
<afontain_>
hmm, I installed GNOME with the configuration.nix option. I'm trying to get file-roller to be useful
vidbina has joined #nixos
<afontain_>
I've got unzip, zip, minizip, libzip installed, but it can't seem to display the content of an archive
<afontain_>
no output on the terminal
lambdaman has joined #nixos
Qwerky has joined #nixos
<afontain_>
anyone got this GNOME program that handles archives working?
<f0x>
hmm I wanted to run an NFS share over wireguard, but even though nfs4 doesn't require rpcbind it will always get started on both server and client (and always listens on 0.0.0.0?)
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/JOG08
veehaitch has joined #nixos
hiro98 has joined #nixos
eeva has joined #nixos
duckonomy_ has joined #nixos
raghavgururajan has joined #nixos
<scoates>
is `--darwin-use-unencrypted-nix-store-volume` no longer needed on macOS for the nix installer? https://nixos.org/download.html doesn't seem to mention it, so I guess it's just part of the main script?
<__monty__>
Any tips on debugging infinite recursion?
<__monty__>
Maybe a way to better see what is causing the recursion? An extra step through the loop as it were?
rj has quit [Ping timeout: 240 seconds]
rj has joined #nixos
cyrinux has joined #nixos
<pie_>
__monty__: well with regards to extra steps, what comes to mind off the top of my head is traceValSeqN, but i dont know if that actually helps any
<pie_>
i suppose if the issue is a data structure it should help you see where its unfolding too much if you can hit the right spot
<pie_>
not sure about that either though
<pie_>
other than that...bisect? :I
<pie_>
we really should get a debugging tips thread going or something
<pie_>
__monty__: well that also tells you something about where the infrec is happening, i think? xD
<pie_>
i guess it doesnt really help if it's not in control of the recursion
<pie_>
you could try implementing your own accumulator if you know where the infrec is and can pass the accumulator? and then short-circuit it yoursekf?
<pie_>
probably easier said than done
<afontain_>
supersandro2000: I've got this error to finish my PR for Unvanquished (that FPS game): /nix/store/dypppr5bnf7ilq9jq97xb74rs8h2bcxh-Unvanquished.desktop/share/applications/Unvanquished.desktop: error: file contains key "PrefersNonDefaultGPU" in group "Desktop Entry", but keys extending the format should start with "X-"
<afontain_>
any idea where the checker is located?
<sshow>
any tips on getting past the `switch-to-configuration use: command not found` issue when I have to previous generations to roll back to?
<MarcWeber>
I don't get why I cannot even write on the md0 array (mkfs.ext3 fails with io errors or suc).
leotaku has quit [Ping timeout: 265 seconds]
fuiltilt has joined #nixos
zupo has joined #nixos
Izorkin has joined #nixos
veehaitch has joined #nixos
alexherbo2 has joined #nixos
<exarkun>
Huh. The revision of the deploy_nixos Terraform module I pinned seemed to instantiate derivations a few days ago and today it seems not to. :/
<futile>
fun, `nix run nixpkgs/release-20.09#htop` works too
penguin has joined #nixos
WilliButz has quit [Remote host closed the connection]
<veleiro>
yep
penguin is now known as Guest64407
<futile>
do you know where I can see all the flake registries, i..e, shortcuts like `nixpkgs` instead of `github:nixos/nixpkgs` and what they resolve to?
<{^_^}>
[hydra] @grahamc merged pull request #596 → Update prompt for Local path input to indicate a URL is also valid. → https://github.com/NixOS/hydra/pull/596
<futile>
ah, just `nix registry list`
WilliButz has joined #nixos
<{^_^}>
[nixpkgs] @oxalica opened pull request #119456 → dotnetCorePackages.sdk_5_0: 5.0.200 -> 5.0.202 and fix build failure of `osu-lazer` and `ryujinx` → https://github.com/NixOS/nixpkgs/pull/119456
Qwerky has quit [Remote host closed the connection]
<thibm>
I thought we have a lib function/builtins to get the hash (hash part of a store path) from a string (or a derivation, or an attribute, maybe?) but I can't find it. Do we?
<clever>
sshow: what does `head -n1 /nix/store/9la7w2d567cvi71pgiy4ydzhg1lrbhss-nixos-system-prodigy-21.05pre282432.311ceed827f/bin/switch-to-configuration` report?
ahmed_elgabri has quit [Ping timeout: 260 seconds]
aleph- has quit [Quit: WeeChat info:version]
aleph- has joined #nixos
ericsagnes has joined #nixos
<Mav85>
=) I have a binary lib to package. It has a couple of .so in it. At runtime, it tries to dynamically load libusb and fails to find it. I've aded autoPatchElf hook and it runs through, but it leaves the RPATH of the main .so empty. So I've added runtimeDependencies = [ libusb ]; expecting it to always add libusb to RPATH. But it doesnt: it still
<Mav85>
leaves libusb out of RPATH. Why?
cole-h has quit [Ping timeout: 246 seconds]
<afontain_>
do you have a paste of the output?
<afontain_>
huh, wait
<afontain_>
runtimeDependencies?
zupo_ has joined #nixos
<Mav85>
yes. They should be added by autoPatchelfHook unconditionally if I read correctly
wiki_me has quit [Quit: Connection closed]
<Mav85>
automatically fixing dependencies for ELF files
<Mav85>
searching for dependencies of /nix/store/rk6xhdc2l5ag05ippn3j0cwb80qxdjkc-andor-sdk-2.104.30000.0/lib/libUSBI2C.so.2.104.30000.0
<Mav53>
ty lukegb, I'll do next time. Anyway, to the hook: there is something weird in auto-patchelf.sh. It seems to only apply $runtimeDependencies if isExecutable returns true. My best guess is it returns false for a library. But (1) Why, if the whole point is to add unconditionally and (2) how to work around it?
rj has quit [Ping timeout: 240 seconds]
<throwaway740928[>
I've installed nixos 20.09 and am reading through the manual. Unfortunately, while the manual explains sets and lists and importing, etc. it doesn't explain my default configuration.nix
<lukegb>
Mav53: I'm not really sure that the rpath will do what you want if it's truly loaded dynamically - is it dlopen'ed?
<throwaway740928[>
That is, my config imports = [ <some/path> ];
cole-h has joined #nixos
<throwaway740928[>
and the docs don't explain what <> is
<Mav53>
I think it's dloaded. libusb is not showing in ldd, but strace says it is searching for and failing.
<Mav53>
*dlopen'ed I mean
<lukegb>
throwaway740928[: ah, that's a Nix ism which pretty much means "use NIX_PATH"
<Mav53>
lukegb what's the point of havin an rpath in an so then? The thing is, the library itself is then used from python....
<afontain_>
to my knowledge, rpath is mostly a hint for the dynamic loader, and dload doesn't use that
tejing has joined #nixos
<lukegb>
yeah, the so's rpath will be used for resolving dynamic libraries at load time, but not at runtime (iirc)
<Mav53>
20.09 Manual says: You can also specify a runtimeDependencies variable which lists dependencies to be unconditionally added to rpath of all executables. This is useful for programs that use dlopen(3) to load libraries at runtime. "
<afontain_>
I'm interested in the answer though, last time I ended up using etc/ld-nix.so.preload
<lukegb>
Right, _all executables_
<lukegb>
You'd have to add it to your Python's rpath
<lukegb>
You can _probably_ do something with propagatedBuildInputs and setup hooks to get it to work, but, urgh
ddellacosta has quit [Read error: Connection reset by peer]
<Mav53>
Hmm. Any chance I can propagate an addition to LD_LIBRARY_PATH?
ericsagnes has joined #nixos
<Mav53>
coz making a new derivation of python itself seems a bit.... expensive... If I understand correctly. (PS I've chosen a great first package, didn't I? ;) )
erasmas has quit [Quit: leaving]
Izorkin has joined #nixos
<throwaway740928[>
lukegb: NIX_PATH looks like a nix set, not a traditional PATH
<lukegb>
throwaway740928[: hmm, it should look like "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels"
<throwaway740928[>
so if <some/path> does it look in the path with the "some" key?
<lukegb>
right, yeah
<lukegb>
or, failing that, if there's a nameless element I think it looks in that for the full path
<lukegb>
although I don't really use <this/syntax> personally for anything
ahmed_elgabri has quit [Ping timeout: 258 seconds]
<qyliss>
why is the presence of the iptables command such a big deal to you?
<qyliss>
anyway, if you disable the firewall it should be gone
<qyliss>
did you try that?
<throwaway740928[>
qyliss: some executable is checking network.firewall... at startup. You are saying that it is not part of the iptables packages, so it is some other package. But it starts up iptables? What package assumes iptables?
ddellacosta has quit [Remote host closed the connection]
ddellacosta has joined #nixos
JJ has joined #nixos
ddellacosta has quit [Remote host closed the connection]
ddellacosta has joined #nixos
Qwerky has quit [Ping timeout: 246 seconds]
<JJ>
Hi
<qyliss>
,ask JJ
<{^_^}>
JJ: Just ask your question. It's the best way to know if anybody can help. Or look at other ways of getting in touch with the Nix community here: https://nixos.wiki/wiki/Get_In_Touch
<throwaway740928[>
qyliss: but how do I see its current value?
<throwaway740928[>
oh. nm
<throwaway740928[>
Struggling to read matrix traffic
aaabbbbbbbbbb has quit [Ping timeout: 240 seconds]
<infinisil>
,ask = Just ask your question. It's the best way to know if anybody can help
<{^_^}>
ask redefined, was defined as Just ask your question. It's the best way to know if anybody can help. Or look at other ways of getting in touch with the Nix community here: https://nixos.wiki/wiki/Get_In_Touch
<throwaway740928[>
is there more docs on how to do more sophisticated configuration for iptables or nftables?
<hexa->
unlikely
<hexa->
at least not within nixos
<lukegb>
Yeah, a good way of finding out about the available options is search.nixos.org/options
<hexa->
networking.nftables.ruleset requires you to learn about nftables
<throwaway740928[>
networking.nftables.rulesetFile defaults to "nftables-rules"
<throwaway740928[>
what path would that be in?
tokudan has quit [Remote host closed the connection]
<lukegb>
it's just a path to your ruleset; it could be e.g. `./nft-rules` if you put your ruleset in a file called nft-rules next to your nixos configuration.nix
<conkker>
Is the nixos.wiki site using mediawiki? If not, what wiki software is it using?
tokudan has joined #nixos
<qyliss>
I believe it's mediawiki
<throwaway740928[>
lukegb: so the default value would be relative to the directory for configuration.nix?
<lukegb>
throwaway740928[: the default value is a bit of a lie; if you look in the linked .nix file you can see that it's a file that's populated with the content from 'ruleset'
<samueldr>
oh, since it's not rec, Cadey, you'd need `linuxPackagesFor self.Xelinux` I guess
<samueldr>
(and it is perfectly fine for it to not be rec)
<Cadey>
i made it rec
<samueldr>
(it probably shouldn't be rec)
<JJ>
Could someone please help me with some basic math
supersandro2000 is now known as Guest45104
Guest45104 has quit [Killed (card.freenode.net (Nickname regained by services))]
supersandro2000 has joined #nixos
mbrgm_ has joined #nixos
<Cadey>
JJ: how basic?
griff__ has joined #nixos
<JJ>
I'll send it now
<samueldr>
10 GOTO MATHS;
mbrgm has quit [Ping timeout: 258 seconds]
mbrgm_ is now known as mbrgm
<JJ>
No one is responding there now
<JJ>
Part B: Factorising x^2 + bx + c, with a ≠ 1
<JJ>
The method that will be developed in part B to factorise a general quadratic expression ax^2 + bx + c is similar to the method used in part A
<JJ>
Given the quadratic expression: 2x^2 - x - 6
<JJ>
1. write down the values of a and c
<JJ>
2. calculate a x c
<JJ>
3. Write down all the possible pairs of integers that has a product equal to the value of a x c
<JJ>
4. Write down the value of b in the expression. Add each pair of integers that you have listed in question 3. Which of the pairs have a sum equal to b?
<JJ>
Part B: Factorising x^2 + bx + c, with a ≠ 1
<JJ>
The method that will be developed in part B to factorise a general quadratic expression ax^2 + bx + c is similar to the method used in part A
<JJ>
Given the quadratic expression: 2x^2 - x - 6
<JJ>
1. write down the values of a and c
<JJ>
2. calculate a x c
<JJ>
3. Write down all the possible pairs of integers that has a product equal to the value of a x c
<JJ>
4. Write down the value of b in the expression. Add each pair of integers that you have listed in question 3. Which of the pairs have a sum equal to b?
JJ has quit [Killed (Sigyn (Spam is off topic on freenode.))]
<jess>
hmm
<samueldr>
yeah
<samueldr>
I can summon you with my thoughts!
<samueldr>
I was writing up about how this was off-topic for #nixos, too
<jess>
easier to op up and message sigyn than it is to unkline, especially from mobile
<samueldr>
haha :)
<Cadey>
(thank you for helping with this btw, it's really appreciated, you're helping me do very cursed things with kernel space rust for my own amusement)
<samueldr>
jess: your services are appreciated here
<jess>
more than welcome
<samueldr>
Cadey: can you share the default.nix with the derivation too?
<samueldr>
(if you elide parts, make it obvious with e.g. /* [...] */)
* colemickens
sees keywords he likes
<samueldr>
I have a gut feeling about the issue, but cannot form words
<samueldr>
this is what linuxPackagesFor will do for you!
<Cadey>
lol
* Cadey
fixes
dotdotok has joined #nixos
<samueldr>
that was one of the two things I had in mind from my gut feeling: it probably was not a derivation (the value exported from default.nix), and indeed, it was an attrset
<samueldr>
so it was looking for `name` on that
<samueldr>
why was it looking for name? parsing the version of the kernel package to enable/disable packages accordingly
<samueldr>
linuxPackagesFor (in all-packages.nix) is not that involved, if you want a better idea about what it does
<samueldr>
I'd link to it, but GitHub is not cooperating with all-packages.nix
<Cadey>
ah it assumes you're holding it right?
gustavderdrache has quit [Ping timeout: 258 seconds]