<sophiv>
Hello, I was trying trying to package this program https://github.com/pekdon/wallpaperd using this as an example . I think I did it halfway, but still can't get it to work. This is the first time I try to do this. Is this a place I can get help with that?
<{^_^}>
[mobile-nixos] @samueldr pushed 2 commits to master: https://git.io/JJCwX
joehh1_ has joined #nixos
<joehh1_>
good morning - is there a way to evaluate a nix expression to json on the command line?
<joehh1_>
I often wrap an expression in pkgs.writeText "file.json" (builtins.toJSON expr), but would like to be able to do that directly from the command line
<tinamus[m]>
Hey guys, I am looking forward to starting using Nix package manager. I started reading the manual and the nix pills, but they both feel unfriendly for noobs. Do you know of a good resource to learn from scratch?
<simpson>
Hm, I wonder to what degree "for noobs" and "from scratch" are at odds. If you're looking to learn as a newbie, then it helps to have a goal in mind and probably nixpkgs will help you get there; but also, it's possible to use Nix on its own in a from-scratch sort of manner.
<simpson>
There *is* at least one completely from-scratch resource, the Nix thesis, which explains the rationale for a Nix-shaped build system and touches on the philosophy and theory. But that's probably not going to help you on your first few projects.
ivan has quit [Quit: lp0 on fire]
dustinm has quit [Quit: Leaving]
sigmundv has quit [Read error: Connection reset by peer]
<tinamus[m]>
Alright, to give a little context I currently use arch and I want to get to get to know nix and see if it could replace Pacman. My main goal is to have a config that I can load to a new computer and have it ready to work with as little friction possible. I mostly use emacs, so as a first project I’d like to be able to have an environment for all the packages I use in emacs.
sigmundv has joined #nixos
pamplemo1sse has quit [Ping timeout: 240 seconds]
<Ashy>
tinamus[m]: there's a couple good youtube talks that walk through some of that, let me find one
<simpson>
emperorOfTrebiz1: Hm. At a glance (and sadly, I can only spare a glance, because I have to go pick up dinner) I'd ask how you feel about ports trees. nixpkgs is very akin to BSD or Gentoo ports in how updates are introduced to end-users and also in what users are asked to build locally.
<emperorOfTrebiz1>
simpson: thanks! I think ports on there own handle the issues here, though they might be an interesting platform to build on to address the threat of an untrusted repository sending malicious updates (notice signing doesn't help) and possibly lying about reproducibility (for systems that have it)
emperorOfTrebiz1 has left #nixos [#nixos]
pinkieval has quit [Ping timeout: 265 seconds]
pinkieval has joined #nixos
xkapastel has quit [Quit: Connection closed for inactivity]
<DerSaidin>
Hi! I have an older system generation which plays a particular game perfectly. When I rebuilt the game no longer works. I'd like to bisect and find the issue, but I'm not sure how to proceed.
<DerSaidin>
I'm thinking I'd either like to 1) construct a system manually (select which build of each package goes in); or 2) have some way to nixos-rebuild switch with the nixpkgs channel at some specific revision.
<DerSaidin>
I'm not sure which of those approaches would be best (or something else?), and I don't know how to do either of those.
<power-fungus>
I have a rasberry pi running nixos, which I want to give a static IP. I set the property `networking.interfaces.eth0.ipv4.addresses` in `configuration.nix`. However, the interface still gets another ip address. How would I go about debugging this issue?
<{^_^}>
[nixpkgs] @offlinehacker opened pull request #93582 → mathpix-snipping-tool: init at 02.04.0002 → https://git.io/JJCFt
hyper_ch has joined #nixos
jbgi has joined #nixos
Supersonic has quit [Ping timeout: 256 seconds]
phnom has joined #nixos
<{^_^}>
[nixos-weekly] @domenkozar merged pull request #127 → Add introduction to nix-shell blog post → https://git.io/JJCae
<{^_^}>
[nixos-weekly] @domenkozar pushed 2 commits to master: https://git.io/JJCFV
lambda-11235 has quit [Quit: Bye]
simonpe^^ has joined #nixos
domogled has quit [Remote host closed the connection]
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #nixos
domogled has joined #nixos
<{^_^}>
[nixpkgs] @offlinehacker opened pull request #93583 → okteto: init at 1.8.15 → https://git.io/JJCbf
yosafbridge has joined #nixos
pjt_014 has quit [Ping timeout: 256 seconds]
isHavvy has quit [Ping timeout: 260 seconds]
<gthm_>
How can I edit the user@UID.service (for example user@1000.service) in nixos? I want to add 'Delegate = "yes"' to its [Service] configuration. I guess I could do it by setting systemd.services."user@1000".serviceConfig, but how do I get around the hardcoded UID?
orivej has quit [Quit: No Ping reply in 180 seconds.]
whald has joined #nixos
orivej has joined #nixos
<gthm_>
nope, systemd.services."user@1000" gets a syntax error
<dutchie>
that's a systemd argument, perhaps you could try setting `systemd.services."user@"`?
<srk>
looks like jsut systemd.services."user@"
<srk>
yup
<gthm_>
oh wait, I was missing the quotes from "user@". duh
waleee-cl has joined #nixos
fmzakari_ has quit [Ping timeout: 260 seconds]
dermetfan has quit [Ping timeout: 260 seconds]
<simonpe^^>
I have a derivation with a shellHook. Now I create a shell.nix and I want to execute the shell hook of my package twice, once for arm and once for host. If i add to my inputsFrom (pkgsArm.callPackage ./bla.nix {}) and (pkgs.callPackage ./bla.nix {}) it's going to just calle the shell hooks from the "normal" non cross compiling environment
cjpbirkbeck has quit [Quit: Goodbye, take care]
MarcWeber has joined #nixos
<simonpe^^>
because in mkShell the shellHook is just a concatenation of all the shellHook's from the different inputs
<simonpe^^>
so how do I create a shell wher I execute two shellHooks from build inputs in their own respective environments?
<simonpe^^>
sorry for possibly using the wrong terminology but meh
<{^_^}>
[nixpkgs] @DavHau opened pull request #93584 → nextcloud: configurable user and group, enable nginx, improve setup service → https://git.io/JJCNf
Havvy has joined #nixos
Supersonic has joined #nixos
asymptotically has joined #nixos
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #nixos
xd1le has joined #nixos
thc202 has joined #nixos
morph000 has joined #nixos
domogled has quit [Ping timeout: 256 seconds]
jbox has quit [Quit: good night everyone]
nixuser has quit [Read error: Connection reset by peer]
domogled has joined #nixos
evanjs has quit [Read error: Connection reset by peer]
evanjs has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
hayman has quit [Read error: Connection reset by peer]
<jD91mZM2>
Between Nix rev 334e26b and a79b6dd, I (1) get strange nix-daemon OOMs (2) get "non-zero padding" errors on certain flake operations (like `nix flake list-inputs`)
<jD91mZM2>
I was like "oh no, whatever shall I do", until I remembered there are nix flake lock files and they are awesome
orivej has quit [Quit: No Ping reply in 180 seconds.]
o1lo01ol_ has quit [Remote host closed the connection]
dbmikus has quit [Ping timeout: 260 seconds]
orivej has joined #nixos
dermetfan has joined #nixos
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
xd1le has quit [Quit: Quit]
<{^_^}>
[nixpkgs] @peti pushed 2 commits to haskell-updates: https://git.io/JJCpt
mallox has quit [Quit: WeeChat 2.8]
markus1189 has quit [Ping timeout: 260 seconds]
markus1189 has joined #nixos
<phnom>
Hey, anyone have a working derivation (nix-shell?) that is able to build a kotlin/native multiplatform project? It downloads it's own dependencies (libs and gcc) so the libraries are linked wrong, several it can't find. I fixed it so ldd on the binary reports all libs correctly but when I run it gradle build says that it cant find the file (clang++).
<phnom>
The file is there and I can run it in the shell outside of cradle
<makefu>
i want to update a package i maintain which just performed a complete rewrite from cpp to rust. the binary names and configuration format also changed. should i simply bump the package or are there some documents which i should add some extra documentation to? should i keep the old package definition?
leotaku has joined #nixos
kreyren has quit [Remote host closed the connection]
<kl3>
installing the gnome3.gnome-boxes does not set virtualization.libvirtd.enable = true; by default, wouldn't it make sense to do so?
<kl3>
i also found that gnome-boxes does not pull qemu-utils as dependency, so clicking a new vm would download the entire OS image only to fail immediately afterwards because qemu-img(1) is not installed
<kl3>
enabling libvirtd pulls in the entire qemu package so that should also do the drick for missing qemu-img(1)
<kl3>
are there use cases for gnome-cases without both libvirtd and qemu-img or is this an oversight in packaging gnome-boxes?
dbmikus has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
is_null has joined #nixos
domogled has quit [Ping timeout: 246 seconds]
sshow has quit [Ping timeout: 260 seconds]
domogled has joined #nixos
sneknek[m] has joined #nixos
dbmikus has quit [Ping timeout: 240 seconds]
<kl3>
hm, working on remote vms alone with boxes could perhaps legitimise the lack of libvirtd by default
<sneknek[m]>
Is there a way to see reverse dependencies of any installed package? I am using plasma-desktop only, but something in my config is pulling gnome-desktop.
<lassulus>
makefu: nix-build nixos/release.nix -A manual.x86_64-linux
<srhb>
sneknek[m]: nix-store -q -referrers for reverse runtime deps
gthm has joined #nixos
orivej has quit [Ping timeout: 256 seconds]
<srhb>
sneknek[m]: But if it's your system it's probably not terribly helpful
<srhb>
sneknek[m]: Might be better to check the build side of things.
<srhb>
(Try anyway)
orivej has joined #nixos
<simonpe^^>
I'm using dockerTools.buildImage to create an OCI image with my application. Now I need to provide a debug image with gdbserver in it, but adding gdb brings in 1.2GB of dependencies (vs 15MB with only the application). The largest dependencies by far are gcc, which I don't need. How would I remove that?
<sneknek[m]>
<srhb "sneknek: Might be better to chec"> Are you suggesting I check derivations?
<{^_^}>
[nixpkgs] @duairc opened pull request #93589 → networkd: Add a separate routeConfig section for each gateway → https://git.io/JJWfl
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
<srhb>
sneknek[m]: Yeah, that would probably make it clearer. Though if it really is a runtime dep of something else and not just your top level system, referrers might show you easier. :)
<srhb>
sneknek[m]: There's also nix why-depends, but same caveats more or less
<srhb>
sneknek[m]: As in `nix why-depends /run/current-system /nix/store/the-thing-you're-wondering-about`
o1lo01ol1o has quit [Ping timeout: 264 seconds]
knupfer has joined #nixos
<sneknek[m]>
<srhb "sneknek: As in `nix why-depends "> Thanks for this! It is saying that nothing depends on gnome-desktop
alp has joined #nixos
<srhb>
sneknek[m]: gnome-desktop given as full path?
<srhb>
sneknek[m]: That makes it sound like your system doesn't have a runtime dependency on it at all.
<sneknek[m]>
But I exported all the derivation names in nix-store to text file, and gnome-desktop is there. Is it possible that this is a leftover dependency of some package I removed?
<srhb>
sneknek[m]: Your store will (almost always) contain lots of old stuff until you garbage collect.
<sneknek[m]>
<srhb "sneknek: gnome-desktop given as "> Yes, I tried both full path and nixos.gnome3.gnome-desktop
<srhb>
sneknek[m]: To find out if the build of your current system requires gnome-desktop you need to inspect just that tree of derivations
<srhb>
You can find its deriver with nix-store -qd /run/current-system
tmaekawa has joined #nixos
<sneknek[m]>
That makes sense. Thanks a a lot! On a side note, we need better documentation/manual for the nix command. If the flags are set, I might consider to start
<srhb>
sneknek[m]: Pretty sure they're not, the nix interface is getting a complete overhaul with flakes.
<srhb>
sneknek[m]: So it's continuously very experimental (and will even be hidden behind an experimental flag soon)
<sneknek[m]>
That's good news then! If you have used flakes, how goes the progress on that? I read the first two installments of flakes on twig blog, and so far looks very exciting
<sneknek[m]>
<sneknek[m] "That's good news then! If you ha"> *tweag
<srhb>
sneknek[m]: I'm cautiously positive. :) Fixing the bootstrap problem is really nice. The rest of the UX feels very WIP so far, but that's fine too.
tmaekawa has quit [Quit: tmaekawa]
<sneknek[m]>
<srhb "sneknek: I'm cautiously positive"> :) By fixing the bootstrap, do you mean NixOS will move closer to Guix model where they try to fix 'trusting trust' issues?
<xwvvvvwx>
I'm building a docker image using dockerTools, and I'm running into this error: "SSL certificate problem: unable to get local issuer certificate"
<srhb>
sneknek[m]: I mostly mean that it's now much easier to lock down eval without a bunch of pure imports happening in secret --
<xwvvvvwx>
I have pkgs.cacert in the contents, which is normally enough to fix this error in a pure nix-shell
<srhb>
sneknek[m]: (right now overlays and config just leak in from a ton of places, you have to jump through hoops to make eval pure)
<xwvvvvwx>
does anyone know what I need to do with dockerTools
orivej has quit [Ping timeout: 256 seconds]
orivej_ has joined #nixos
<xwvvvvwx>
The error occurs when running a git clone inside the container
<sneknek[m]>
Oh, that makes more sense. Thanks a ton for taking time to answer. :)
<{^_^}>
[nixpkgs] @lblasc opened pull request #93590 → R: Update CRAN and bioconductor packages → https://git.io/JJWJ5
<simonpe^^>
xwvvvvwx: you're missing SSL certificates, why I don't know
<simonpe^^>
either you have to tell git what certificates to use or you have to disable SSL certificate verification
Rusty1 has joined #nixos
jbgi has quit [Ping timeout: 260 seconds]
<xwvvvvwx>
figured it out, adding "SSL_CERT_FILE=${self.pkgs.cacert.out}/etc/ssl/certs/ca-bundle.crt" to `config.Env` in dockerTools.buildImage fixed the issue :)
domogled has quit [Ping timeout: 240 seconds]
domogled1 has joined #nixos
fendor has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed 1000 commits to haskell-updates: https://git.io/JJWUg
domogled1 is now known as domogled
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « haskellPackages: bump default compiler to ghc-8.8.4 »: https://git.io/JJWUP
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
gmarmstrong has joined #nixos
orivej has joined #nixos
gmarmstrong has quit [Quit: Quit]
o1lo01ol1o has joined #nixos
gv has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed 13 commits to haskell-updates: https://git.io/JJWUb
gv has joined #nixos
<{^_^}>
[nixpkgs] @Flakebi opened pull request #93591 → nixos/manual: add a section about Vulkan drivers → https://git.io/JJWUA
chrmb has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @peti pushed 3 commits to haskell-updates: https://git.io/JJWTA
drewr has quit [Ping timeout: 260 seconds]
freezeboy has joined #nixos
<freezeboy>
tpw_rules Hi I have a problem with the python environment using your patch
<tpw_rules>
freezeboy: hey! thanks for getting in touch. i'll be at work in a couple hours and can sit down at my machine and we can discuss the problem then? I saw your undefined symbol error and i'm not sure where that might have come from
<freezeboy>
yes no problem, poke me when you are available
<freezeboy>
I cannot use python.withPackage either in fact :(
alp has joined #nixos
<tpw_rules>
even not including the examples?
orivej has quit [Ping timeout: 240 seconds]
<freezeboy>
didn't try that, atm I try to remove the init.py file as I didn't have that before, but I'm not a python module expert
alp has quit [Remote host closed the connection]
alp has joined #nixos
<tpw_rules>
if it's not there you'll get an object without any methods when you try to import pyrealsense2
<tpw_rules>
or module rather
jbgi has joined #nixos
<tpw_rules>
from memory it just contains the line "from .pyrealsense2 import *"
<freezeboy>
yes
<tpw_rules>
also to me the command line examples are useful for updating the camera firmware and doing sanity checks on the connections and operation. iirc the command line ones aren't large or slow to compile but i will get numbers to see.
ixxie has joined #nixos
j0hax[m]1 has joined #nixos
<freezeboy>
then I don't really care, some examples in other projects are really huge and useless
afreak_ has joined #nixos
afreak has quit [Quit: WeeChat 2.8]
<tpw_rules>
is there a reason you set enableParallelBuilding to false by the way? i'm not sure how nixpkgs typically likes that setting but i like the speed boost. in any case, i have to get back to getting ready for work so talk to you later
<freezeboy>
oh it wasn't meant to be pushed... I need it locally because 8 jobs are too much on my machine
afreak_ has quit [Client Quit]
<freezeboy>
need to build a better local buildfarm ;)
afreak has joined #nixos
afreak has quit [Client Quit]
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
johnnyfive has quit [Ping timeout: 240 seconds]
afreak has joined #nixos
domogled has quit [Remote host closed the connection]
domogled has joined #nixos
smatting has joined #nixos
<{^_^}>
[nix] @edolstra merged pull request #3801 → Constant space `addToStoreFromDump` and deduplicate code → https://git.io/JJYQ2
<clever>
freezeboy: i'm also using this to build it without launching the shell
<freezeboy>
ah thanks ... so easy I forgot the -I flag
<alexfmpe>
my `nix-shell --pure` has `nix` and `git` on it, but not the other stuff from `nix-env -i` or `environment.systemPackages` - what determines what things are available?
<clever>
alexfmpe: what does `type git` return?
<alexfmpe>
inside the shell:
<alexfmpe>
git is /nix/store/sz7wrs0cg3d541s54if0p3660mfj639a-git-2.23.0/bin/git
<alexfmpe>
> type git
<{^_^}>
undefined variable 'type' at (string):318:1
<clever>
alexfmpe: then its directly in $PATH, what args did you run nix-shell with?
<sreybastien[m]>
dminuoso: ok i have a boot , so the problem was UEFI, and i also switch to LUKS 1 for GRUB because of incompatibility
xd1le has joined #nixos
<alexfmpe>
just `--pure`
<clever>
alexfmpe: do you have a shell.nix?
<sreybastien[m]>
now i need to search about LUKS on top of LVM / LVM on top of LUKS
<alexfmpe>
hmm yeah it might be getting stuff from there
<alexfmpe>
checking
<alexfmpe>
ah yeah there we go - that's where things are coming from
freezeboy has quit [Remote host closed the connection]
<freezeboy>
tpw_rules are you sure wheels and setuptools are required at runtime ?
domogled has joined #nixos
wallacer3 has joined #nixos
ddellacosta has quit [Ping timeout: 240 seconds]
freezeboy has quit [Remote host closed the connection]
cfricke has quit [Quit: WeeChat 2.8]
<evanjs>
Taking a look at terminal-server.nix and how it could be modified to be configurable and easily importable. The two things I'm wondering right now are:
<evanjs>
1) how might I require _a_ displayManager to be set?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zupo has joined #nixos
zupo has quit [Client Quit]
<evanjs>
2) if I _do_ add a package option (for the vnc server), how would I handle the path? Like, x11vnc already has a set of packages it needs in the path, but I don't know if it's feasible to account for that, tigervnc, etc
<evanjs>
dminuoso: sure, sorry, I meant like, is there a property I can check for that? Checking against a list of (||) conditions seems hacky
<evanjs>
and path as in the path available to the systemd service
<evanjs>
and the programs available to it
<dminuoso>
evanjs: You can use a let binding.
<evanjs>
right yeah I just wasn't sure if there was an option I could check that checks that for me or etc
<dminuoso>
let displayManager = ...; in ... assert (displayManager /= null) ...
<{^_^}>
[nix] @meditans opened pull request #3844 → Update chunkSize to the suggested value → https://git.io/JJWYb
mounty has joined #nixos
<evanjs>
can I do that on e.g. `config.services.xserver.displayManager`, though?
<evanjs>
Like, won't that still have a value? (I'm wondering about to system option)
monokrome has quit [Ping timeout: 260 seconds]
<dminuoso>
what do you mean?
thonkpod has quit [Ping timeout: 246 seconds]
<dminuoso>
"wont that still have a value"?
pikajude has quit [Ping timeout: 272 seconds]
m_hackerfoo has quit [Ping timeout: 256 seconds]
ajp has quit [Ping timeout: 256 seconds]
<evanjs>
so if config.services.xserver.displayManager needs to either have gdm, slim, lightdm, etc enabled. I need to ensure "a display manager" is enabled
HackerFoo has quit [Ping timeout: 272 seconds]
<evanjs>
so I can't just check the if the current displayManager attribute is null, correct? (re your let example)
<evanjs>
e.g. (config.services.xserver.displayManager.gdm.enable || config.services.xserver.displayManager.lightdm.enable)
pamplemousse has joined #nixos
{^_^} has quit [Remote host closed the connection]
thonkpod has joined #nixos
mounty has quit [Ping timeout: 258 seconds]
xd1le has quit [Read error: Connection reset by peer]
pikajude has joined #nixos
monokrome has joined #nixos
mounty has joined #nixos
m0rph has joined #nixos
spazzpp2[m] has joined #nixos
{^_^} has joined #nixos
HackerFoo has joined #nixos
xd1le has joined #nixos
morph000 has quit [Read error: Connection reset by peer]
m_hackerfoo has joined #nixos
<evanjs>
i.e. is there a system option I can query to determine whether the user has _any_ displayManager enabled in their current system configuration
noudle has joined #nixos
morph000 has joined #nixos
erasmas has joined #nixos
ajp has joined #nixos
<dminuoso>
why cant you?
<dminuoso>
oh
<{^_^}>
[nix] @edolstra merged pull request #3844 → Update chunkSize to the suggested value → https://git.io/JJWYb
<evanjs>
or rather, is there anything in the docs that details the differences between those and plain assert statements?
<evanjs>
dminuoso: and mmkay yeah I sorta figured. Just wasn't sure how I might support anything in terms of custom displayManagers. if that's really an issue, I mean
<evanjs>
I guess we can deal with that issue when the time comes :P
<gchristensen>
these assertions provide better error messages for nixos modules than `assert` does
<evanjs>
"Although Nix has the abort and builtins.trace functions to perform such tasks, they are not ideally suited for NixOS modules. Instead of these functions, you can declare your warnings and assertions using the NixOS module system."
<evanjs>
that's what I was looking for :D
<evanjs>
s/trace/assert/ tho lol
<evanjs>
and alright, cool. so a dumb (||) thing for the displayManagers, now, I can either exclude the vnc package option for now, or allow the user to override or extend the path. hrm.
random has quit [Ping timeout: 240 seconds]
st3r4g[m] has left #nixos ["User left"]
<evanjs>
gchristensen++
<{^_^}>
gchristensen's karma got increased to 334
drakonis has quit [Ping timeout: 260 seconds]
drakonis has joined #nixos
gthm has quit [Ping timeout: 246 seconds]
proofofkeags has joined #nixos
pamplemousse has joined #nixos
<xwvvvvwx>
Does anyone know how to make /usr/bin/env available in a docker image produced by dockerTools without using runAsRoot?
noudle has quit []
growpotkin has joined #nixos
<xwvvvvwx>
I want to build them in a github action and the kvm capability is not available there, so runAsRoot is not an option
<xwvvvvwx>
Adding this in `extraCommands` gives me a permission error when trying to create /usr... mkdir -p /usr/bin; ln -s ${self.pkgs.coreutils}/bin/env /usr/bin/env
asheshambasta has quit [Ping timeout: 272 seconds]
<clever>
xwvvvvwx: you need to edit $out, not the real /usr/bin of the host
mananamenos__ has quit [Ping timeout: 264 seconds]
<xwvvvvwx>
hmmmmm, if I add `mkdir -p $out/usr/bin; ln -s ${self.pkgs.coreutils}/bin/env $out/usr/bin/env` to `extraCommands` then I get `mkdir: cannot create directory '/nix/store/w8sspxin6pp9msyh90kp6y14l8x644cz-docker-layer-seth': File exists`
<xwvvvvwx>
Am I doing it wrong?
<{^_^}>
[nixpkgs] @costrouc opened pull request #93595 → python3Packages.pq: init at 1.8.1 → https://git.io/JJWsv
orivej has joined #nixos
<adisbladis>
xwvvvvwx: I'd just add it to the list of contents like this:
proofofkeags has quit [Remote host closed the connection]
<xwvvvvwx>
adisbladis: thanks!!!
<xwvvvvwx>
adisbladis++
<{^_^}>
adisbladis's karma got increased to 109
proofofkeags has joined #nixos
proofofkeags has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
<immae>
Hey there, I’m trying to understand the difference between nativeBuildInputs and buildInputs (I have only one computer in that scenario, no cross compiling or else). In my case, I had a `buildInputs = [ pkg-config openssl ];` in a rustPlatform.buildRustPackage derivation that failed to build (he couldn’t find pkg-config) and I had to put pkg-config to nativeBuildInputs but the requested change
<immae>
doesn’t make sense to me
<immae>
(compared to what I understand from the related nixpkgs manual page)
<{^_^}>
[nixpkgs] @matthewbauer pushed to ios-deploy-update « ios-deploy: move out of nodePackages »: https://git.io/JJWsr
dbmikus has joined #nixos
drewr has joined #nixos
dbmikus has quit [Ping timeout: 265 seconds]
Thra11 has quit [Ping timeout: 256 seconds]
foldingcookie has joined #nixos
foldingcookie has left #nixos [#nixos]
<clever>
immae: the buildInputs are meant for libraries for the target, and in some configs are omited from $PATH
<clever>
immae: nativeBuildInputs is for build-time tools like pkg-config
<immae>
Ah ok that’s why
<immae>
Understood, thanks!
<eacameron>
clever: "libraries for the target" does that mean dynamically linked libs during runtime?
<{^_^}>
[nixpkgs] @primeos pushed commit from @meutraa to master « androidStudioPackages.canary: 4.1.0.10 -> 4.2.0.4 (#93588) »: https://git.io/JJWcP
capt_zap_ has quit [Ping timeout: 240 seconds]
asheshambasta has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @duairc opened pull request #93598 → nixos/networkd: Add support for networking.defaultGateway.interface with networking.useNetworkd → https://git.io/JJWcQ
lsix has joined #nixos
proofofkeags has joined #nixos
acarrico has quit [Ping timeout: 240 seconds]
proofofkeags has quit [Read error: Connection reset by peer]
orivej has quit [Quit: No Ping reply in 180 seconds.]
proofofkeags has joined #nixos
maier has quit [Ping timeout: 264 seconds]
orivej has joined #nixos
meh` has joined #nixos
acarrico has joined #nixos
CMCDragonkai1 has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @veprbl pushed commit from @tadfisher to release-20.03 « zoom-us: Link libfaac to fix audio recording (#93374) »: https://git.io/JJWCK
pamplemousse has quit [Ping timeout: 240 seconds]
meh` has quit [Ping timeout: 265 seconds]
q3k has left #nixos ["WeeChat 2.7"]
meh` has joined #nixos
fendor has joined #nixos
NickHu has quit [Quit: Idle for 30+ days]
keithy[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : Idle for 30+ days"]
<{^_^}>
[nixpkgs] @stigtsp opened pull request #93599 → perlPackages.CryptOpenPGP: init at 1.12 → https://git.io/JJWWi
orivej has quit [Ping timeout: 258 seconds]
orivej has joined #nixos
cjpbirkbeck has joined #nixos
virus_dave has joined #nixos
<virus_dave>
folks, i have an executable file that i can see on my nixos box but cannot execute, and i frankly have no idea how to further debug it. `file` shows it as `ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked`, but `execve` returns ENOENT
<virus_dave>
The googles indicate this could be a missing library or interpreter, but all that seems to resolve correctly, per `ldd`
<virus_dave>
It also dopesn'what would one do to debug this?
<virus_dave>
doesn’t seem to be a 32bit vs 64bit thing*
<cransom>
https://nixos.wiki/wiki/FAQ#I.27ve_downloaded_a_binary.2C_but_I_can.27t_run_it.2C_what_can_I_do.3F would probably help.
<cransom>
it's likely the binary's interpreter is set to /lib/ld-linux-x86-64.so.2 and that doesn't exist in nixos.
<{^_^}>
[nixpkgs] @bjornfor pushed commit from @r-ryantm to master « gnomeExtensions.workspace-matrix: 4.0.0 -> 4.0.1 »: https://git.io/JJWWx
nuncanada has joined #nixos
<virus_dave>
It’s set to /lib64/ld-linux-x86-64.so.2, which indeed doesn’t exist. However, ldd shows this, which made me think it should still work (since what it eventually settles on DOES exist):
<clever>
virus_dave: ldd forces it to use the right ld-linux, you need to use patchelf to fix it
<{^_^}>
[nixpkgs] @teto merged pull request #75116 → netboot: docs: building netboot should specify an arch → https://git.io/JeygS
<{^_^}>
[nixpkgs] @teto pushed commit from @lordcirth to master « netboot: docs: building netboot should specify an arch (#75116) »: https://git.io/JJWlm
<fmzakari__>
I'm having weird issues with my `git mergetool`
<fmzakari__>
if I run the underlying binary /nix/store/bwki7fk43xqwwbbmbwna4wb3i5xq1cq3-git-2.27.0/libexec/git-core/git-mergetool
alexherbo2 has quit [Ping timeout: 240 seconds]
<fmzakari__>
It prints out
<fmzakari__>
```/nix/store/bwki7fk43xqwwbbmbwna4wb3i5xq1cq3-git-2.27.0/libexec/git-core/git-mergetool: line 17: git-sh-setup: No such file or directory
proofofkeags has quit [Remote host closed the connection]
proofofkeags has joined #nixos
maier has quit [Ping timeout: 260 seconds]
<asymmetric>
does anyone have any tips on how to debug press-and-hold not working on my laptop's mouse anymore?
<asymmetric>
pretty sure it's a software issue
<asymmetric>
means drag-n-drop doesn't work anymore
<asymmetric>
by laptop's mouse i mean the trackpad on a thinkpad
Kakky has joined #nixos
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
<fmzakari__>
I root caused my issue can someone explain it a bit better to me.
nixbitcoin has quit [Quit: nixbitcoin out]
<fmzakari__>
looks like direnv imports nix-shell environment which overwrites `ldd` to a /nix/store one
alp has joined #nixos
<fmzakari__>
i was trying to run a non-nix application within the same shell session and it was complaining about not finding libraries
edef_ has joined #nixos
edef_ is now known as edef
nixbitcoin has joined #nixos
ruuda has joined #nixos
proofofkeags has quit [Remote host closed the connection]
Kakky has quit [Quit: Goodbye]
<ruuda>
Hi, I have a PR that removes a few packages that could be selected as plugins for a service, in favor of a newer replacement package. (https://github.com/NixOS/nixpkgs/pull/93400) Do such things need to be mentioned in a changelog somewhere?
<{^_^}>
#93400 (by ruuda, 3 days ago, open): mopidy-local: init at 3.1.1
<{^_^}>
[nixpkgs] @timokau pushed 2 commits to release-20.03: https://git.io/JJWRm
<freezeboy>
tpw_rules I think the python problem is because you try to run the python interpreter just taking the package ?
<freezeboy>
i think the package should just contain the python lib et let python.withPackages wrap everything with a python interpreter
<tpw_rules>
freezeboy: i think that makes sense. but i just tried the command you put and it prints "The packages do not exists: python38.withPackages (ps: with ps; [ pyrealsense2])"
<freezeboy>
shouldn't have patched in the github comment ui ...
random has quit [Ping timeout: 258 seconds]
<freezeboy>
at least it should work with nix-shell
<tpw_rules>
well if you think it should work like that, that makes sense to me and i'm satisfied with the PR
zupo has joined #nixos
<freezeboy>
now ... we need someone who can merge it
edef has quit [Ping timeout: 256 seconds]
<freezeboy>
if you have a local checkout of this pr (using gh, hub, or git directly), you can run nix-shell -I nixpkgs=. python38.withPackages (ps: with ps; [ pyrealsense2]) from the root directory of the checkout
<Guest60204>
I installed neovim using environment.systemPackages but for some reason it pulled v0.3.8 not the latest v0.4, how do I specify a version when using configuration.nix in nixos?
<freezeboy>
I can't use nixpkgs-review on that PR currently with my parallelBuilding pb
<tpw_rules>
ok let me double check it hten
<freezeboy>
Guest60204 is your nixos channel up to date ?
<tpw_rules>
alright, looks like it works. i just put a comment on the PR saying that i think it's good
<freezeboy>
Guest60204 you should read something like name = "nixos-20.03.2611.bb8f0cc2279", then you can compare the last part with the commit id in status.nixos.org
<freezeboy>
then sudo nix-channel --update && sudo nixos-rebuild boot
phnom has quit [Quit: Konversation terminated!]
<tpw_rules>
freezeboy: ah ok. i have several that we're using at my job now. i've got T265 support working but the licensing is weird and I need to discuss it with the nixpkgs people probably
<freezeboy>
or switch for the last part depending on if you want to reboot or activate everything immediately
<freezeboy>
tpw_rules how weird ?
<Guest60204>
ah
<Guest60204>
thanks, i'll try that
<tpw_rules>
freezeboy: T265 support can't be activated without compiling in the proprietary firmware blob. does that make the library then not apache 2? how do we give the user the option to make the package proprietary if so?
<freezeboy>
oh I don't know any package where the library changes its licences based on some param ...
<tpw_rules>
exactly
<DigitalKiwi>
i think i've seen that
<freezeboy>
technically, the meta.licenses attribute is also in the expression, but I am not sure it is taken into account by the cache
alexherbo2 has joined #nixos
<DigitalKiwi>
license = with licenses; if edition == "" then unfree else agpl3;
<DigitalKiwi>
pkgs/servers/rainloop/default.nix
<DigitalKiwi>
from that (probably more examples too but that's the first i found)
<freezeboy>
cool
<tpw_rules>
if that's acceptable then i'll file a PR to do all that once this one is accepted
<tpw_rules>
thank you for the input
<Guest60204>
freezeboy: so wait ,does each nixos channel only have 1 version of a particular software? why doesn't neovim update beyond 0.3 for channel 19.09?
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JJWRy
<cole-h>
Guest60204: Because releases don't typically backport package updates.
<clever>
Guest60204: because 19.09 is a snapshot of what nixpkgs was like on sept of 2019
<freezeboy>
Guest60204 yes at least for applications, nixpkgs usually only contains 1 version (for libs it may vary)
<tpw_rules>
freezeboy: so i'm not sure the value of having a name for both the c++ library and python bindings for yes cuda, no cuda, and auto cuda? i assume if the user didn't want auto, they could create an override. i ask because T265 support would double the number of choices. like i personally would want pyrealsense2WithoutCudaAndWithT265 but that's silly
<freezeboy>
tpw_rules in fact I did that because it was this way for tensorflow
<freezeboy>
but obviously, it doesn't scale well
orivej has quit [Quit: No Ping reply in 180 seconds.]
<tpw_rules>
i would say it makes more sense for tensorflow because it's a popular package where choosing the CUDA support correctly is critical for performant operation. but i didn't even know librealsense supported CUDA to be honest.
<freezeboy>
I don't even know the impact, but me colleagues wanted cuda for everything
<tpw_rules>
well i most likely will not add separate names for with/without T265. we can see if there's other opinions once the PR is actually filed
alp has quit [Ping timeout: 260 seconds]
<freezeboy>
do you have a documentation showing how to use it ?
<tpw_rules>
how to use what?
<freezeboy>
the t265 firmware
<tpw_rules>
yeah i have a working derivation
<tpw_rules>
oh i forgot another quirk: T265 support also needs udev rules installed. i don't think it's possible with nix, but how would one warn the user to do it?
justan0theruser has quit [Ping timeout: 256 seconds]
<tpw_rules>
i need to double check that though, and how it applies for regular librealsense
ruuda has quit [Quit: ruuda]
<freezeboy>
you can do it, simply put them in $out/lib/udev/rules.d directory
<tpw_rules>
how does that work on non-nixos?
<freezeboy>
ah ... no I think it is only for nixos
<tpw_rules>
well maybe if it defaults to T265 off, then people will read the derivation and see comments that a) the license becomes unfree and b) the included udev rules must be installed
ManiacOfMadness has joined #nixos
<freezeboy>
or in the meta.longDescription attribute
<tpw_rules>
i can do that too. i gotta go do other stuff now but thank you for the help
<freezeboy>
thank you for the patch for the new version ;)
konobi has quit [Remote host closed the connection]
<clever>
numkem: hydraJob just strips un-needed attributes off a thing, to reduce memory usage of hydra
lsix has quit [Ping timeout: 256 seconds]
konobi has joined #nixos
<numkem>
clever: ok, would you happen to know what is config.system and where it comes from? I can build the OVA through `nix-build` but I'd rather do it through hydra and the only example I find is with nixos-demo
<clever>
config.system is the cpu to build for
knupfer has quit [Quit: knupfer]
<numkem>
it has more to it, to build the ova you need to call config.system.build.virtualBoxOVA
knupfer has joined #nixos
<clever>
hydra is basically just a way to automate nix-build against release.nix files
<clever>
ah, that config.system is a nixos option, that any attr can be shoved into
<numkem>
so that function is shoved into config
<numkem>
and config.system != system
<clever>
nix-build '<nixpkgs/nixos/release.nix>' -A ova.x86_64-linux --arg configuration ./configuration.nix
<numkem>
I did nix-build '<nixpkgs/nixos>' -A config.system.build.virtualBoxOVA -I nixos-config=configuration.nix -I nixpkgs=/home/numkem/src/nixpkgs/nixos which works
<clever>
the release.nix does some of that for you
<numkem>
how would you write this as an expression so that hydra could build it?
<MarcWeber>
https://github.com/evanw/esbuild Is thehre a simple way to package this ? I tried vog2nix got a deps.nix file but failed with dependencies of the dependencies or so.
<clever>
numkem: nix-build will basically import the given path, then run it with an attrset containing every --arg, then use -A to select an attr
<MarcWeber>
I failed understanding the goPackagePAth
<clever>
numkem: but it can do a few more complex things too...
<clever>
id say thats a bug in the release.nix, and it should be fixed
<numkem>
I might as well be the only one who uses the ova stuff for something other than nixos-demo
<clever>
numkem: until it is fixed, you must do: (import <nixpkgs/nixos> { configuration = { imports = [ <nixpkgs/nixos/modules/installer/virtualbox-demo.nix> ./configuration.nix ]; }; }).config.system.build.virtualBoxOVA
<numkem>
clever: it still won't work giving it the root of nixpkgs
<numkem>
clever: but something that does works is nix-build '<nixpkgs/nixos>' -A config.system.build.virtualBoxOVA -I nixos-config=configuration.nix -I nixpkgs=/home/numkem/src/nixpkgs/nixos
<aleph->
ehmry: Trying to get 10.6.0 built and upstreamed
<aleph->
Tons of changes
<aleph->
Just dumb crud on my end and a small change :p
<clever>
numkem: why is there a nixos at the end of that -I?
<clever>
numkem: that doesnt look like the root of nixpkgs
<clever>
2020-07-21 17:51:11 < clever> the nixos is missing
m0rph has quit [Client Quit]
<numkem>
clever: the error was in configuration.nix
orivej has quit [Ping timeout: 240 seconds]
<numkem>
clever: I'm importing it to be able to set the config.virtualbox options which aren't imported by default if I understand it correctly
<cole-h>
I have `dontUseSetuptoolsCheck = true;` in a `buildPythonPackage`, and yet I still see "Executing setuptoolsCheckPhase" in the build log... Why?
morph000 has quit [Ping timeout: 240 seconds]
<numkem>
clever: in my configuration.nix I do: imports = [ <nixpkgs/nixos/modules/virtualisation/virtualbox-image.nix> ];
<clever>
yeah, that should work
<numkem>
clever: it's very possible it's not right, I'm was trying to figure out how to do it and that worked. I understand that was my error on the import
<numkem>
clever: how is the -I done in creating the expression? I'm trying to translate my command into an expression after what you explained
<clever>
numkem: open up `nix repl -I nixpkgs=/home/numkem/src/nixpkgs/nixos` and then try to just eval `<nixpkgs/nixos/modules/virtualisation/virtualbox-image.nix>`
lsix has quit [Quit: WeeChat 2.9]
<numkem>
clever: after fixing the path in configuration.nix to the module I don't have to provide it the -I nixpkgs
<numkem>
clever: what I'm wondering is the -I nixos-config
<clever>
numkem: <nixpkgs/nixos/default.nix> will expect your configuration.nix to be at <nixos-config> by default
<clever>
you can override that with { configuration = something; }
<numkem>
clever: that explains it, so I could just do { configuration = import ./configuration.nix } ?
<clever>
it can take a raw path
<clever>
check the nixos-configs example i linked above
<numkem>
clever: sorry if I'm a little slow, this is much deeper nix code that I've worked with so far, especially with the multiple imports
<numkem>
clever: if I understand correctly, that means that you hydra builds your systems and caches it without them having to do anything
<clever>
correct
<clever>
then i can check hydra, to see if updating will even work, or if the build will fail
<numkem>
that is pretty sexy
<clever>
and its pre-built, so the switch goes faster
<numkem>
just takes time to download the closure really
<clever>
and rebuild a few configs with secrets
<numkem>
clever: that is my next problem, secret management when it comes to building a server without touching it. well in my case it's more for an appliance right now
<clever>
look at load-secrets.nix in my nixos-configs
<numkem>
clever: so you supply a secrets.nix on the hydra server manually
<clever>
nope, the reverse
<clever>
hydra never gets a secrets.nix
<clever>
so load-secrets.nix supplies dummy defaults, enough to make it build
<clever>
then when i build the same expr locally, outside of hydra, i have a secrets.nix in my local dir
<clever>
so anything using secrets gets rebuilt
<numkem>
right so it's not a "prefect" build but most of it is done
<colemickens>
Is there a function I can copy frm somewhere that filters an attrset against meta.platforms (if it is there) ?
Neo-- has quit [Ping timeout: 256 seconds]
lord| has quit [Ping timeout: 246 seconds]
lassulus has quit [Ping timeout: 256 seconds]
lord| has joined #nixos
Thra11 has quit [Quit: WeeChat 2.8]
lassulus has joined #nixos
<infinisil>
colemickens: More specifically?
<colemickens>
filterPkgs = pkgs: system: { } output is pkgs filtered against meta.platforms. There's checkPlatform and packagePlatforms in nixpkgs that look close, I think I can get this one :)
maier has joined #nixos
immae has quit [Read error: Connection reset by peer]
immae has joined #nixos
dbmikus has quit [Read error: Connection reset by peer]
maier has quit [Ping timeout: 240 seconds]
dbmikus has joined #nixos
orivej has joined #nixos
dermetfan has quit [Ping timeout: 246 seconds]
afreak has quit [Remote host closed the connection]
mvnetbiz_8 has quit [Quit: Bye!]
<infinisil>
I see
simba2 has joined #nixos
mvnetbiz_8 has joined #nixos
<{^_^}>
[nix] @Ma27 opened pull request #3847 → libutil/logging: Add `minimal` log-format which aims to be easily machine-readable → https://git.io/JJWVo