<colemickens>
pushqrdx: no, nix-env -iA will use channels by default.
<pushqrdx>
then how is it getting stuff from your overlay?
<colemickens>
pushqrdx: `nix-channel --list` or `sudo nix-channel --list` to list your channels
<colemickens>
pushqrdx: when you do `nixos-rebuild ...`, your configuration.nix is evaluated, along with the overlay you add to nixpkgs, so it "works". It can see the overlay packages when building your system.
<colemickens>
pushqrdx: nix-env ... doesn't use any of that. By default it just installs from a channel without any overlays.
<pushqrdx>
colemickens both return only 1 channel the nix unstable, ok so the last sentence i understand. how does nix-env able to grap stuff from your overlay though
<pushqrdx>
kinda confusing
<pushqrdx>
i can totally install packages from the nixpkgs-wayland using nix-env and i haven't added any channels
<pushqrdx>
any extra channels*
<colemickens>
pushqrdx: either (1) you're not actually getting them from the overlay (many are already in nixpkgs), or (2) you configured the overlay already by adding it in `~/.config/nixpkgs/overlays{/,.nix}`
orivej has quit [Ping timeout: 258 seconds]
<colemickens>
(it is kinda confusing by the way. This entire conversation is one of my biggest frustrations with Nix, but hopefully should be reduced in the future)
<pushqrdx>
colemickens it could be the first one then so if i understand correctly i should be able to add an overlay locally to a shell.nix using `with (import <nixpkgs> { overlays = [(/etc/nixos/wayland.nix)];});`
<pushqrdx>
note i have the wayland overlay at the location
freezeboy has quit [Remote host closed the connection]
<colemickens>
`s/overlays/config.overlays/` nad `s|/etc/|import /etc/` but I think you've got the gist
<colemickens>
(btw, it's also helpful to remember that `nix-env -iA` and `sudo nixos-rebuild` see different channels since they're per-user, so if you're ever confused why something isn't updating or installing the version you expect....)
<tokudan>
colemickens, yep, that works. it was too obvious for me to try it. thanks!
<goodnight_noom[m>
hey everyone, sorry for the newbie question, I hope this is the right place to ask. I have installed installed neovim both via `environment.systemPackages` and via an overlay (that compiles it from its `master` branch). How do I specify which one will be accessible by my user? Now, by default, it seems to be the one installed in `configuration.nix`
<colemickens>
crap sorry pushqrdx it was just `overlays`, not `config.overlays`, my bad
supersandro2000 has quit [Disconnected by services]
supersandro2000 has joined #nixos
mbrgm_ has joined #nixos
<pushqrdx>
colemickens nothing to be sorry for so glad for your help. sadly after changing config.overlays to just overlays i am getting `infinite recursion encountered, at undefined position` idk why :D
mbrgm has quit [Ping timeout: 264 seconds]
mbrgm_ is now known as mbrgm
<colemickens>
pushqrdx: yeah, go ahead and paste the wayland.nix file
<colemickens>
I suspect it doesnt have quite what we want
* colemickens
really needs to fix CI for this, it works sporadically which is good enough but the badge is always red :(
<pushqrdx>
colemickens here you go http://ix.io/2D32, it's just the one from nixpkgs-wayland Readme
<infinisil>
energizer: Nope, I'm not a jupyter user
sigmundv has quit [Ping timeout: 260 seconds]
<colemickens>
pushqrdx: so that readme is really only describing how to use it for configuration.nix. That approach... uh, basically won't work for nix-env or nix-shell.
* colemickens
sighs. I'm going to start writing "NIX_PATH considered harmful" as a flakes propaganda piece.
<pushqrdx>
huh
<colemickens>
pushqrdx: the readme usage shows to import taht wayland.nix file... that uses nixos's module import system. We won't be able to use that in nix-shell shell.nix.
<pushqrdx>
so how would i use an overlay in a shell.nix then, because overlays are very important part of building stuff in nix and i find it a bit too confusing tbh
<pushqrdx>
might be that i am a dummy too so idk
lunik16 has joined #nixos
<pushqrdx>
or perhaps the docs are a bit lacking so i haven't got the full idea
<colemickens>
pushqrdx: you're really not being a dummy. this is... more complicated than it ought to be. I feel like I have this conversation once a week, despite trying to document this extensively.
<{^_^}>
[nixpkgs] @lukegb opened pull request #102846 → pythonPackages.python-emv: init at 1.0.9 → https://git.io/JTA6y
<pushqrdx>
colemickens that worked again thanks so much for your help
<colemickens>
pushqrdx: no problem! cheers
o1lo01ol1o has joined #nixos
<energizer>
ok the kernel is called `ipython_poetry`
<colemickens>
pushqrdx: hopefully it's somewhat clear, but that pins you to the exact wayfire version at that git rev btw
Rusty1 has joined #nixos
<energizer>
but it doesn't have the packages
<pushqrdx>
colemickens yeah that was clear by the rev hash, i quickly wondered though, the project i am trying to build also depends on another project `wf-config` which i have locally built. question is can i use another shell.nix as package resource
<pushqrdx>
like make a local dependency
o1lo01ol1o has quit [Ping timeout: 244 seconds]
<colemickens>
pushqrdx: uh, I'm not sure to be honest
<colemickens>
pushqrdx: I'd just make wf-config a standalone package (as if it were in nixpkgs) and then from the "top" shell.nix, you could use `(pkgs.callPackage ./wf-config.nix)` as if it were a normal package.
<pushqrdx>
where wf-config.nix is just like shell.nix just a builder right?
<pushqrdx>
colemickens i was all overboard making a local overlay that is akin to the nxpkgs-wayland which has my local packages, that i then can import
<colemickens>
no, where wf-config looks like a regular package derivation
<colemickens>
and the update script is very very similar to the one from nixpkgs-wayland
<pushqrdx>
colemickens so it's like your local repo, are you able to use it without git though?
<pushqrdx>
should be locally importable i think
<colemickens>
(I'm not sure I understand the question.)
<colemickens>
If you mean you have the source pointed at a local dir, yeah, that's mostly fine (won't work for pure builds, but I don't think that'll matter for you right now)
gentauro has quit [Read error: Connection reset by peer]
gentauro has joined #nixos
<pushqrdx>
colemickens can a local overlay be added to my user channels, cause i kinda confused myself with that thought
<colemickens>
pushqrdx: channels are just bundles of nix expressions for pre-cached binaries that you follow
<colemickens>
so overlays don't ever "touch" the channel
<colemickens>
pushqrdx: so you have to think about it in terms of "what nixpkgs do I have, have any overlays been applied"
<colemickens>
anywhere you can use "my" overlay, you could just point at a local one, yeah, if that's what you meant
<pushqrdx>
colemickens and in order to import from an overlay i have to be explicit about it
<colemickens>
pushqrdx: not necessarily, that's why this is so complicated
<colemickens>
pushqrdx: for nixos-rebuild, yes, you basically have to have it explicitly listed somewhere accessible from configuration.nix
<colemickens>
pushqrdx: `nix-env` on the other hand loads config from ~/.config/nixpkgs, so overlays configured via *that* mechanism are AUTO applied to the channel before nix-env commands.
<colemickens>
seriously someone needs to flowchart this
<pushqrdx>
colemickens but nix-shell doesn't use that
<pushqrdx>
so there's 3 ways to think about overlays so far
<colemickens>
pushqrdx: ... correct...
Fare has joined #nixos
<colemickens>
this page is a bit unorganized (with all love to authors) but it does cover some of this info: https://nixos.wiki/wiki/Overlays
<colemickens>
I could maybe be persuaded to add the two extra cases we covered to the README, just to be exhaustive.
<pushqrdx>
colemickens well kinda makes sense perhaps because nix-shell operates somewhat like configuration.nix and in both cases you don't want implicit overlays to apply
<pushqrdx>
however in nix-env you need to have a mechanism for implicit user overlays
<colemickens>
pushqrdx: yeah. IMO nix-env is a misfeature. most folks around here (citation needed) avoid it.
<colemickens>
I think you can make a more declarative manifest and then "nix-env" that manifest, but I think many folks stick to configuration.nix+shell.nix and just avoid nix-env all together except maybe really rare one-off needs.
<pushqrdx>
even to me as a new comer i kinda used nix-env very sparingly but i would be frustrated if it weren't there (just for the local quick package install part)
D_ has quit [Quit: 💨]
<colemickens>
`nix-env -q` for me gives only one package, and I am actually going to remove it now
D_ has joined #nixos
earldouglas has left #nixos [#nixos]
<pushqrdx>
colemickens yeah i have 6 packages there but all disposable stuff
<colemickens>
pushqrdx: totally fair. The "future" has a nice syntax for running one off commands, so that use-case is definitely warranted/considered.
<pushqrdx>
is there a readme you're addding info to, cause i have been collecting (in my head) some pain points that i'm facing as a new comer
<pushqrdx>
and i will take some time to write them down
Fare has quit [Ping timeout: 264 seconds]
marcusr has quit [Read error: Connection reset by peer]
pushqrdx33 has joined #nixos
oida has quit [Remote host closed the connection]
pushqrdx has quit [Remote host closed the connection]
<pushqrdx33>
hmm
<energizer>
infinisil: looks like that didn't quite work. nix eval '(import ./shell.nix ).drvPath' -> "/nix/store/8s0frwaai5k6xw352d2nd0xs30ly8z2i-jupyterlab-shell.drv" and nix-store -qR /nix/store/8s0frwaai5k6xw352d2nd0xs30ly8z2i-jupyterlab-shell.drv doesn't include `toolz` which is one of the dependency packages
<pushqrdx33>
colemickens is there a readme you're writing this stuff to, cause i have been accumulating a list of pain points that i faced as a new comer and will take some time to write them down
marcusr has joined #nixos
<pushqrdx33>
wonder if you have one perhaps we can make a canonical nix "Post Installation" guide or something
<colemickens>
pushqrdx33: so, I tried to document a bunch of the usages in the nixpkgs-wayland, and then I have another big README/project that shows off ... the future of Nix and how it avoids all of these problems.
<colemickens>
I'm sort of reluctant to keep investing energy in explaining the mess, but I wind up doing it here in IRC too often.
<colemickens>
pushqrdx33: translating the last hour of conversation into a few examples in the NixOS manual would be.... heroic work.
<pushqrdx33>
colemickens yeah it's just that the manual tbh is all over the place
<pushqrdx33>
it lack that first chapter
<pushqrdx33>
the one missing chapter where it lays the mental model out
<colemickens>
pushqrdx33: what do you mean by that though, like I don't necessarily know which part you mean that was missing, or that clicked and helped you.
<colemickens>
pushqrdx33: was it just the "there's 3 different ways to actually apply it depending on what you're doing" or was it the reframing about how to think about channels and "overlaying" the overlay on top?
<pushqrdx33>
colemickens both
<pushqrdx33>
what i felt after the nixos installation guide is that i was literally thrown into the ocean, i then came here in irc and luckily many people have been kind to help, so at first the differences between nix-shell, nix-env, their relation with direnv, overlays, channels
<colemickens>
wait, lmao are overlays in either manual at all?
<mrkirby153>
Is this the place for support with nix, or specifically for nixos? I'm running nix on Arch and when I type "man" i get "can't set the locale; make sure $LC_* and $LANG are correct"
<pushqrdx33>
there's a very short overlay into guide on the website i think, not sure if there's in the manual
<colemickens>
oh I forgot nixpkgs is a separate manual -_-
<colemickens>
The manual is very... precise.
<pushqrdx33>
but when you just installed nix or nixos you wasn't even introduced to what is a goddamn overlay or what is a channel, and how does it correlate and behave with each tool
<colemickens>
if I ctrl-f around in _all three_ manuals, I think the info is all there, but there's no "Channels" section, for example, the info is burried under "Upgrading NixOS".
<pushqrdx33>
that's the missing chapter i am talking about something with the title, "Tour of Nix/OS" or "Nix/OS Post Installation Tourist Guide" something like that, where glimpses over all the stuff and the gotchas, clears out some confusion around the system
oida has joined #nixos
<pushqrdx33>
one very confusing bit too is when you actually search for nix and nixos on google and you are bombarded with what i feel like completely missing the point guides and tutorials on how nix is great because (functional, and pure, etc
<pushqrdx33>
like just show me how can i harvest that awesomeness directly
<colemickens>
pushqrdx33: hm, I feel like a lot of the more recent Nix content I've seen has been very hands-on, so that's a bit surprising to hear.
<colemickens>
pushqrdx33: but IDK what google pops up for terms, so who knows.
<pushqrdx33>
would be glad if you point me to some of that content because so far i found too few of them
<pushqrdx33>
lots of the talks on youtube, For instance, are hours of just "nix is awesome because it's pure, functional, immutable".. not because you can create all the mind blowing stuff with nix-shell, and the practicality of using nixos and the ease of rolling back after breaking something, the containment of builds
<colemickens>
those are some of the ones I've liked particularly
<pushqrdx33>
yeah christine is one of the good ones i was talking about
<pushqrdx33>
very nice and to the point
<colemickens>
tbh it feels like Nix is hitting some sort of stride, the amount of content I've seen has been growing, more can't hurt.
<colemickens>
Not trying to be cheeky, but we're always happy to have more contributors. I think many of us are busy with things and/or often maintaining nixpkgs or other nix projects.
<pushqrdx33>
colemickens totally understandable i was just discussing some of the pain points i faced, i will be writing down those and perhaps building that missing chapter that at least to me is very important to get the hang of things
<tpw_rules>
"you should always get the same output byte-for-byte every time you build the same package at the same version" erm, i thought nix did not actually guarantee this? like i thought gcc did not do deterministic builds
<pushqrdx33>
i discovered nix through Andrew Kelley the creator of zig lang, he was able to switch between llvm versions in a second, and i was there on macOS knees deep in dependencies that i can't manage env vars already
ris has quit [Ping timeout: 246 seconds]
<colemickens>
pushqrdx33: the thing is, I think your pain points are really valid, I don't want the feedback to get lost. So to be more explicit, I do hope you edit the nixos.wiki/Overlays page, or open some issues for hte UX issues you have with the manuals so they are at least tracked.
<colemickens>
tpw_rules: your understanding is correct. The store paths will be the same, but store paths (today) are not content addressed and the actual bytes can differ.
Zer000 has joined #nixos
<pushqrdx33>
colemickens i will be writing all of this and submitting edits, i really need to do that before i get "used" to nix
<tpw_rules>
another question i had earlier. is there any way to automatically install udev rules and systemd units and etc on non-nixos nix?
<colemickens>
pushqrdx33: yes, very true, it is hard to remember what it's like to not know all the hairy details, that's why its good to hear the details from you. The fact that "Channels" isn't an explicit section that's easy to find, seems like something targeted that can be addressed somewhat-easily.
<colemickens>
(just as an example)
Fare has joined #nixos
dbmikus_ has quit [Ping timeout: 240 seconds]
<pushqrdx33>
so from the top of my head, 1- nix-env, nix-shell, and their relation to direnv (because the internet seems to fuse the two) 2- I would really love if the nixpkgs had a bunch of starter-<language> dummy packages that you can easily find and use as bases for building 3- Channels and the difference between system channel and user channels, 4-
<pushqrdx33>
Switching to the unstable channel because by default you're not there, 5- Overlays and how they work differently in nix-env, nix-shell, configuration.nix
inkbottle has joined #nixos
zebrag has quit [Ping timeout: 256 seconds]
<pushqrdx33>
the nix-starter-foo idea is very neat i think, so i don't have to hunt for a similar base derivation, i just look for nix-starter-cpp or nix-starter-javascript
<tpw_rules>
if i can add my 2 cents: it would be nice to add some information on debugging derivations you've created. i'm making some complicated ones and it's difficult especially with overlays to understand exactly what i need to do
<pushqrdx33>
tpw_rules added that to my list, as well as Local overlays
<pushqrdx33>
if anyone has more pain points as a new comer please write them out here as i am writing a note where i will be answering all these questions
psy3497 has joined #nixos
dbmikus_ has joined #nixos
<tpw_rules>
to elaborate: nix is building some derivation as part of some command and there is some error from an executed command (not in the nix language itself). how do i get a shell right before the error occurs, or at the start of the derivation? what commands did nix run up to the point of the error? i never figured out how to get a shell for items not part of nixpkgs and figuring out the commands requires lots of knowledge about how the
<tpw_rules>
standard builder works.
<Zer000>
tpw_rules, So what are you trying to do?
<tpw_rules>
i'm not actively trying to do anything but those are questions i keep asking and i think would be good additions to the manual
<Zer000>
like it might be easier to run nixos inside of a container than it is to try and get what you want to work
<Zer000>
as a workaround
<tpw_rules>
i don't understand? will that make debugging easier?
<{^_^}>
[nixpkgs] @NeQuissimus opened pull request #102850 → oh-my-zsh: Update script, test → https://git.io/JTAXQ
<Zer000>
well you asked if there's any way to install systemd rules and etc files on a non-nixos host, so a container would in theory act like a native nixos host
<tpw_rules>
oh i was confused about what you were answering
<Zer000>
out of curiosity why are you stuck with a non-nixos host?
<tpw_rules>
currently i'm trying to package this proprietary camera driver. it has a udev rule to ensure that attached cameras get the right permissions and a systemd unit to start the management daemon. currently i just have to link them manually
<tpw_rules>
well i personally am because i'm not confident enough to wipe the machine and install nixos on it. but other people might want the package too
<tpw_rules>
if the answer is that only nixos can do that then that's the answer. but i haven't confirmed that yet
raghavsood has quit [Quit: Ping timeout (120 seconds)]
<mrkirby153>
I asked this earlier, didn't get a response. When I run "man" I get "/home/<me>/.nix-profile/bin/man: can't set the locale; make sure $LC_* and $LANG are correct". I'm using nix on arch
<la-jesystani>
howdy, im trying to pass a package set to a function, and part of that function has a let block with config = { whatever }; pkgs = import arg { inherit config; };, and then i use pkgs in the building of my program.im getting an error on the inherit line that i cant coerce a set to a string and im not 100% sure why, any ideas?
<la-jesystani>
the arg im using is super from an overlay with `self: super: { whatever }`
<jophish>
Hi all
mi23523523 has joined #nixos
<nicolas[m]>
Mild annoyance with `nixos-rebuild`: you cannot pass `-vL` like you would with `nix build`, you have to split the flag into `-v -L`
<{^_^}>
nix#1361 (by alexeymuranov, 3 years ago, closed): Language feature proposal: exclusive 'with'
<jophish>
specifically the "Edit 1" section
<jophish>
nicolas[m]: yeah, it's a pain that the commands have this layer of indirection I don't really trust
<jophish>
home-manager switch is even worse
mi23523523 has quit [Read error: Connection reset by peer]
<jophish>
I wonder how easy it would be to switch my raspberry pi from aarch64 to armv7
<jophish>
I'd like to run it as armv7l for a few days to help in a buildfarm, and then switch things back
<jophish>
nixos-rebuild boot --argstr system armv7l-linux; perhaps that'll just work
<la-jesystani>
im not using any with's so im not really sure
<la-jesystani>
im trying to have an attribute set with a single package in it, that needs passed a pkgset that it can apply a config to, and then have my overlay provide tha pkgset and get back the package
<jophish>
oh, is it because "arg" is a set
<jophish>
can you trace its type
<la-jesystani>
im not sure how to do that, but its the second argument to my overlay.nix
<jophish>
where ... is some expression which will be evalutated
supersandro2000 has quit [Ping timeout: 260 seconds]
<pumpy>
i'm having an xorg/i3/rdp keyboard passthrough trouble. nixos 20.09/i3 window mgr on host and vmguest, i3 configured on both systems to hide statusbar until meta key pressed. xfreerdp rdp from host to xrdp on vmguest. focus to xfreerdp. press meta key and it goes to host AND vmguest instead of just vmguest, making both show their statusbar. not
<la-jesystani>
i have `pkgs = import bspkgs { inherit config; };` in a nix file, where bspkgs is a set that is passed from an overlay that imports this file. im getting the error that that set cant be coerced into a string but i have no idea why its needing to be a string?
CyberManifest has quit [Ping timeout: 264 seconds]
<jophish>
la-jesystani: can you share the expression?
<jophish>
la-jesystani: it looks like you're trying to do: import some-set
<jophish>
but imnport takes a path
<la-jesystani>
if i already have a pkgset but i want to do the equivilent of `import <nixpkgs> { inherit config; };` (assuming config is in scope) how would I do that?
<energizer>
siraben: it could be a line graph, doesnt need animation
<siraben>
energizer: can i get the data from repology.org?
dbmikus_ has quit [Ping timeout: 260 seconds]
<energizer>
siraben: maintainer posted the database dumps on his website iirc
mmohammadi9812 has quit [Ping timeout: 258 seconds]
<la-jesystani>
jophish: am i right in thinking that importing from that path wont strip anything from the set? im getting errors that the system isnt set (flakes disallows using builtins.currentSystem) but as far as i can trace its part of pkgs from the get go
<jophish>
how's things clever. Haven't been around for a while
<clever>
jophish: good, been working on some fun pi stuff lately
<jophish>
la-jesystani: never used flakes, not sure I can help further sorry
<jophish>
I'm working on my pi at the moment as a matter of fact
<jophish>
trying to switch to armv7l from aarch64
<jophish>
it's building, and I hope it's as simle as just changing nixpkgs.system
<clever>
jophish: if you only change nixpkgs.system, then it will need an aarch64 build machine setup in /etc/nix/builders, to deal with the building, and the switching of the bootloader may fail
<clever>
jophish: ive ran into the exact same problems upgrading an x86 laptop from 32bit->64bit
<jophish>
clever: you mean an armv7l machine?
<jophish>
which I have :)
<jophish>
oh yeah, I didn't think about the bootloader
<jophish>
I assumed that uboot would be able to launch any arch kernel
<clever>
it needs an aarch64 machine, to generate the aarch64 builds
<clever>
and more, that an aarch64 perl is used to update the uboot config
<jophish>
I'm switching to armv7l
<clever>
oh wait
<clever>
your going backwards, that should be fine
<clever>
since the aarch64 kernel can run armv7 binaries
<jophish>
ah good
<clever>
as long as you dont GC the aarch64 build, you can also boot that again, to go forwards again
<jophish>
exactly the plan :)
<jophish>
I just want to switch for a couple of day
<jophish>
s
<clever>
but once aarch64 is deleted, getting back to 64 is tricky
eoli3n has joined #nixos
<clever>
only other thing to worry about, is things in nix-env
<clever>
they may be on the old arch
<jophish>
oh yeah
<jophish>
didn't think of that
<jophish>
I think it's pretty minimal in there
<jophish>
most things on this machine are in system.environment
palo1 has joined #nixos
Izorkin has joined #nixos
bgamari_ has quit [Ping timeout: 268 seconds]
palo1 is now known as palo
<psy3497>
A question: I am using "docker-nixpkgs" project to build a docker image with nix and other derivations, and I would like to have a derivation that contains the closure of build-time dependencies of a certain derivation
thelounge812 has quit [Ping timeout: 258 seconds]
<psy3497>
If I just use the derivation itself I only get run-time dependencies. I tried to pass the "shellFor" derivation but it seems to fail when building
<psy3497>
Anyone have any idea how to go about this?
<clever>
jophish: rpi-open-firmware already had drivers to bring the dram and arm cores online, and the arm then begins executing from physical address 0, on all 4 cores at once
<clever>
jophish: rpi-open-firmware also includes a ~40kb arm bootloader, that sits at that address, and deals with loading linux into ram and launching it
Morfio has joined #nixos
mmohammadi9812 has joined #nixos
heyitsra_ has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @omasanori opened pull request #102870 → nixos/networking: make /etc/netgroups by default → https://git.io/JTxfC
<knotteye>
I heard this was the place to for NixOS support.
<knotteye>
I was wondering if anyone could help me with some issues writing a systemd service
cole-h has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @vbgl merged pull request #102814 → ocamlPackages.gsl: fix building on darwin → https://git.io/JTAGh
<{^_^}>
[nixpkgs] @vbgl pushed commit from @SuperSandro2000 to master « ocamlPackages.gsl: fix building on darwin »: https://git.io/JTxJq
thelounge812 has joined #nixos
<benny>
I personally can't help but generally on irc you don't ask to ask, you just ask and hopefully someone that is able will read it and respond
mallox has joined #nixos
cptrbn has quit [Read error: Connection reset by peer]
<lewo`>
worldofpeace: thx!
<knotteye>
Oh, alright.
<knotteye>
Well, does anyone know how to fix packages not being in $PATH in systemd services? I've tried adding the packages I need available in the systemd.services.<name>.path variable, but the executables that are symlinks don't work.
<clever>
knotteye: what do the symlinks point to?
<knotteye>
It points to a javascript file in ../lib/restofthepath.js
<clever>
knotteye: can you put all of the relevant nix files into a gist?
sangoma has quit [Read error: Connection reset by peer]
sangoma has joined #nixos
cr4y1_ has joined #nixos
fx8[m] has joined #nixos
fx8[m] has left #nixos [#nixos]
Jamaikos has joined #nixos
<Jamaikos>
hey, I am trying to figure out this recursion for some time ---- any idea why this import is not working please? https://paste.centos.org/view/6c063895
cptrbn has joined #nixos
<Jamaikos>
all help would be appreciated, I have tears in my eyes
zupo has joined #nixos
cr4y1_ has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixos-homepage] @garbas merged pull request #637 → site-styles: Fix asciinema breaking width by removing aspect ratio code → https://git.io/JTNiV
<{^_^}>
[nixos-homepage] @garbas pushed 2 commits to master: https://git.io/JTxLc
<{^_^}>
[nixos-homepage] @garbas pushed 0 commits to fix-597: https://git.io/JTxLC
cr4y1 has joined #nixos
medvid has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @jtojnar pushed to master « gtk2: fix eval with old Nix »: https://git.io/JTxLa
cr4y1 has quit [Remote host closed the connection]
medvid has joined #nixos
sangoma has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @jtojnar pushed 142 commits to staging-next: https://git.io/JTxLM
<clever>
Jamaikos: what does it output, if you insert a `builtins.trace "path is ${DbSyncSources}"` between lines 6 and 7?
<clever>
Jamaikos: oh wiat, i see your problem
<clever>
Jamaikos: line 4, testnet, depends on config
<clever>
Jamaikos: line 5, DbSyncSources depends on testnet
<clever>
Jamaikos: imports must never depend on config
<Jamaikos>
oooooh, hmrmr, any idea how to get around that?
<Jamaikos>
I want to get a niv sources based on the hostname
<Jamaikos>
as I know, that is my testing env
<clever>
Jamaikos: create 2 files, host1.nix and host2.nix
<clever>
Jamaikos: host1.nix does networking.hostName = "host1"; and uses one version from niv
hopheynananey has joined #nixos
<clever>
Jamaikos: host2.nix does networking.hostName = "host2"; and uses another version from niv
<clever>
both host1.nix and host2.nix do `imports = [ ./common.nix ];`
<Jamaikos>
:( I have this defined as a role I import into hostnames files in my config management
<Jamaikos>
and looking for a way to figure it out on hostname, so when a collegue adds a host, he doesn't need to think about specific cases
<Jamaikos>
I'm not sure if I'm explaining that correctly
notskallwar is now known as Skallwar
<danderson>
hm. So, with flakes, is there a way to declaratively manage nix channels? (as returned by nix-channel)
<clever>
Jamaikos: instead of setting the hostname and having it magically do something, you should instead have a hostname.nix file, which does the right thing (including setting the hostname)
<danderson>
I need it for a couple shell.nix things that aren't converted to flakes yet
<clever>
danderson: shell.nix can just import the flake
<Jamaikos>
clever: so, what I have now is I have a hostname file, that includes a role and a role is doing a lot of things, like a role is "database" and it setups postgres, db a lot of things - I would like to manage two sources, one for the testnet and on for mainnet env, so ALL of my hosts withni the testnet domain are using these sources
<Jamaikos>
clever: _but_ there are tons of sources, not just one, so it is not practical having it on the hostname bases, if you know what I mean
<{^_^}>
[nixpkgs] @peterhoeg pushed commit from @r-ryantm to master « pulseaudio-ctl: 1.67 -> 1.68 »: https://git.io/JTxYs
wfranzini has quit [Remote host closed the connection]
wfranzini has joined #nixos
sangoma has quit [Ping timeout: 272 seconds]
<Jamaikos>
clever: but I can create two modules, one importing one sorce, the other different and use the serivce based on config.domain?
<clever>
Jamaikos: the value of the imports array cant depend on the config set
<Jamaikos>
yes, but I mean I will create a service "testnet" and service "maininet" and enable one or other based on the config set?
<jophish>
What's the best way to make AWS credentials available to the nix daemon?
<jophish>
(for fetching from an s3 based store)
<jophish>
(on non-nixos)
<clever>
jophish: i just put them in ~/.aws/
<clever>
root's home
<jophish>
good idea, will have to check if that works on github actions
<Jamaikos>
clever: I will try that, thank you - I want to say, I really appreciated your help, every time I come here there is someone to help, I know it takes time and is not easy, but this community is so awesome in this, just wanted to really say thank you, I appreciate it a lot!
thc202 has joined #nixos
<clever>
yep :)
magnetophon has left #nixos [#nixos]
Jamaikos has quit [Remote host closed the connection]
<jophish>
hmm, didn't seem to work
fendor has joined #nixos
<jophish>
I just guessed at: sudo aws configure set aws_secret_access_key blah
FRidh has joined #nixos
<clever>
jophish: is nix-daemon actually being used?
<clever>
jophish: if /nix/store is writable by the current user, it wont use the daemon, and will look in the current users home
<clever>
jophish: is it nix doing the s3 access, or a builder?
sangoma has joined #nixos
sigmundv has joined #nixos
<jophish>
should be nix I think. I set substituters = https://cache.nixos.org/ s3://nix-cache?region=ap-southeast-1&scheme=https&endpoint=binarycache.home.monoid.al
<jophish>
(and a trusted key of course)
<clever>
yeah, that would be nix
<{^_^}>
[nixpkgs] @FRidh pushed 183 commits to python-unstable: https://git.io/JTxOK
<clever>
double-check that nix-daemon is actually running
<jophish>
will do
<jophish>
what's the neatest way to check if a build is taking place using the daemon?
<jophish>
I can check if the systemd service is running I guess
<clever>
check `ps -eH x`
<clever>
and look to see what the parent of the builder is
<typetetris>
Seems like `texlive.combined` isn't reproducible ... I still have the issue its build but the other ci server than complain about a hash mismatch if the previously build derivation is downloaded.
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JTxGR
<typetetris>
How could I further debug this?
wfranzini has quit [Quit: wfranzini]
sangoma has quit [Quit: WeeChat 2.9]
la-jesystani has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixos-hardware] @Mic92 merged pull request #206 → lenovo/thinkpad/t14: created symlink to t14s/ → https://git.io/JTNij
<{^_^}>
[nixos-hardware] @Mic92 pushed 3 commits to master: https://git.io/JTxGV
m0rphism has joined #nixos
wnklmnn has joined #nixos
<jophish>
ahhh, why doesn't the output of nix-instantiate fit into nix-store query!
<jophish>
it usually does
<jophish>
but one of the outputs is a !doc
lsix has quit [Quit: WeeChat 2.9]
lsix has joined #nixos
captn3m0 has joined #nixos
captn3m0- has quit [Ping timeout: 260 seconds]
alp has quit [Ping timeout: 272 seconds]
alp has joined #nixos
<marek>
doronbehar: I would really appreciate it, that next time, you do not merge a pull request when there is no clear consensus from the package maintainer
<FRidh>
typetetris: first step would be to use diffoscope to check what files are different and how
<FRidh>
probably also check reproducible-build.org / debian for what they mention regarding texlive
thibm has joined #nixos
magnetophon has joined #nixos
<typetetris>
reproducible-build.org isn't in my dns
cfricke has quit [Quit: WeeChat 2.9]
meck has joined #nixos
<thibm>
build*s*
<jophish>
If I have a path with a signature, and it already exists in another store
<jophish>
how can I add my signature to the version in that store
<jophish>
sadly nix copy doesn't do it
<typetetris>
FRidh: At the moment I have only one build result. It is just, that other nixos hosts trying to download that, complain afterwards about a sha256 mismatch.
chrisaw has quit [Quit: Connection closed for inactivity]
<jophish>
nix copy-sigs doesn't seem to do it
Guest43140 has joined #nixos
<thibm>
I'm working an a small simple multi-machine setup (like nixops, but much simpler, in essence calling myself <nixpkgs/nixos/lib/eval-config.nix>).
<thibm>
I would like to "inject" some function in lib. The function should be defined in the lib argument of NixOS modules.
<thibm>
I'd like to avoid things like "import ./lib.nix" in the files but rather extending the lib attrset used when evaluating the module. Does anyone have an idea on how to do that?
<typetetris>
jophish: I don't understand. I thought the process serving the store, like nix-serve, does the signing ad hoc and doesn't "relay" other signatures.
<thibm>
I looked at several advanced NixOS config in the wild, discours, nixpkgs, etc and tested a few solutions but I did not find anything for now
<jophish>
typetetris: sorry to clarify: I have a path in my local store with a signature. and I 'nix copy --to store2 ...'. The path when it appears in store2 may or may not have that signature
<jophish>
and that depends on whether it was already in store2
<jophish>
(if it was, then it doesn't have that signature)
<typetetris>
jophish: Yes. But why is it a problem, if it doesn't have a signature in store2?
<jophish>
because I might want to import it from store2, and I want to know that's secure
<jophish>
i.e. signed by that key I had in my local store
<typetetris>
jophish: Okay. So you want the "clients" of store2 to download the path and get the signature from your original store, instead the signature the process serving the store2 would create ad hoc? So clients don't necessarily need to trust store2?
<jophish>
exactly
<typetetris>
jophish: Sorry, I don't know whether that's possible. I only used `nix-serve` most of the time and that (at least in my experience) never offered signatures despite the ones it creates itself with the configured secret key. For `nix copy` via ssh I always used the account to access the "target" store to be a trusted user.
<{^_^}>
nix#4221 (by expipiplus1, 11 seconds ago, open): nix copy sometimes doesn't copy signatures (when a path already exists in destination store)
<{^_^}>
[nixpkgs] @doronbehar merged pull request #87864 → todoman: Make it not reference glibLocale which is ~210Mb in closure size → https://git.io/JfRJ2
<psy3497>
I am getting this error when building a Haskell project. I don't expect people to know the answer without all the details, but can someone at least give me a direction as to why such an error might even happen?
<psy3497>
/nix/store/x4hjqhnzfbzh4f333xh1sq31zak3dab1-binutils-2.31.1/bin/ld: cannot open output file /nix/store/0y289abs6ikv1iza6vvfff2c4xplq9nz-ncurses-6.2/lib/libncursesw.so.6.2: Permission denied
<psy3497>
Why would there be a permission problem?
<psy3497>
If it helps, this is a derivation that builds fine on my computer, but when I try to build it inside a docker container I get the aforementioned error
<thibm>
Did you try to build another derivation in the container? Does it work?
fendor has quit [Ping timeout: 240 seconds]
<FRidh>
typetetris: `nix-build -A ... --check
liff has quit [Ping timeout: 260 seconds]
liff has joined #nixos
BJTH has joined #nixos
fendor__ has quit [Read error: Connection reset by peer]
bjth39 has quit [Remote host closed the connection]
<FRidh>
next step is then diffoscope
<BJTH>
Hello, I am a bit stuck. I am trying to install plantuml to use with emacs, and in my emacs config I have to point to the .jar location. I can find this .jar in the /nix/store/...-plantuml/lib/plantuml.jar but my concern with this is that the hash can change. A few days ago someone on here recommended me homemanger but this leads to somewhat the
<BJTH>
same problem.
<typetetris>
FRidh: `diff -r` already shows a lot. ls-R with different orders, ls output in files with timestamps not replaced by epoch, etc ...
<psy3497>
thibm: yes other derivations worked fine. There seems to be a particular problem about this one. But I built it successfully on my host computer
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
zupo has joined #nixos
<psy3497>
Seems like the `--check` option mentioned by FRidh is not mentioned in the documentation... That's a real shame as it is quite useful
<psy3497>
On my computer it works fine, in the container it fails. Not exactly what I would call a reproducible build. Could this be related to the sandbox builds option?
<clever>
psy3497: if the sandbox is fully off, then you can do nasty things like that, and nothing will stop you
magnetophon has quit [Ping timeout: 265 seconds]
ml| has quit [Ping timeout: 258 seconds]
magnetophon has joined #nixos
<clever>
you need nix-daemon running as root, to let it enforce the rules
<psy3497>
Perhaps the sandbox is off on my local host but is on inside the container?
<clever>
yeah
<psy3497>
This is the ncurses-6-2 derivation from nixpkgs
<thibm>
It does come with a shell (I'm using it with continuous integration)
<psy3497>
How do you execute the container?
<psy3497>
thibm what is the execute command?
<Unode>
Finding it easy to "find /nix/store -name ..." but only works for packages I have on disk.
<psy3497>
thibm /usr/bin/env bash? /bin/bash?
<typetetris>
There was some attribute, so a derivation will never be substituted, but always build by the host self. Please help me, what was that?
<clever>
,locate
<{^_^}>
Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended) https://github.com/bennofs/nix-index
<clever>
Unode: ^
<psy3497>
Unode: I see I will try that trick
<thibm>
psy3497: well, maybe there is no shell (I'm not sure how the CI launch the commands, maybe without shell). Installing bash did not work?
<Unode>
clever: are you aware of any online version of nix-index? I tried it locally a few times and it took quite a while to rebuild the index which got outdated relatively fast.
<clever>
Unode: you dont need to rebuilt the index much, once you know the attribute, you can run `nix-build '<nixpkgs>' -A foo`, to find the latest path
<psy3497>
thibm did not work, but maybe bash was not available in the path
<psy3497>
OK I am logging off for today, leaving it to build for the night
thelounge812 has joined #nixos
<thibm>
psy3497: yes. It may be here because it's a dependency of most packages (although it should be a build time dependency)
<psy3497>
thibm but maybe one needs to install it with nix-env in one's dockerfile that starts from nixos/nix image perhaps?
<psy3497>
Good night!
<thibm>
psy3497: if you want it to get in $PATH, yes. Bye :)
<{^_^}>
[nixpkgs] @OPNA2608 opened pull request #102922 → hdr-plus: init at unstable-2020-10-29 → https://git.io/JTx0A
Sanchayan has joined #nixos
berberman has quit [Ping timeout: 264 seconds]
ManiacOfMadness has joined #nixos
berberman has joined #nixos
<thibm>
I'm wondering why IPv6 works out of the box on Ubuntu but not on NixOS on Hetzner cloud (BTW, to get a NixOS machine you just copy one line of cloud-init which use nixos-infect, it works like a charm)
<thibm>
An ubuntu system does not seem to have hardcoded network in /etc/network
<thibm>
And nothing in /etc/systemd/network
<thibm>
Do I need to enable extra (non default) services to get IPv6 configuration automatically from router's announces?
<damjan>
thibm: ubuntu uses netplan, which afaik generates systemd-networkd config files somewhere in /run/
<JaakkoLuttinen[m>
In package derivations, how can I access files in nixpkgs in some scripts (e.g., `preCheck`) or how can I copy files before those scripts to the build directory so that they'd be available easily?
<JaakkoLuttinen[m>
I added a file to nixpkgs that I need to read in `preCheck` script..
lordcirth has joined #nixos
Chiliparrot has quit [Remote host closed the connection]
<thibm>
JaakkoLuttinen[m: "added a file to nixpkgs": you mean in a nixpkgs tree?
<thibm>
JaakkoLuttinen[m: OK. Do you refer to this file anywhere in nixpkgs? Like if the file is a package, you should add a line to pkgs/top-level/all-packages.nix
<dminuoso>
Mmm. Ah it appears nixops 2.0 has it, but no channel seems to come with nixops 2.0
<dminuoso>
strange
<thibm>
JaakkoLuttinen[m: the, using the new package in any derivation is as simple as pkgs.the_new_package
thelounge812 has quit [Ping timeout: 258 seconds]
<thibm>
JaakkoLuttinen[m: the same principle applies for anything: you should refer to the file somewhere in the existing nixpkgs files (packages, modules, etc) to be able to evaluate it from pkgs
dne has left #nixos ["WeeChat 2.9"]
<JaakkoLuttinen[m>
thibm: It's just some helper file that I need to read in `preCheck`. It contains some random strings that are needed in the check phase. I can create a simple derivation for it so it gets added to store, but I just thought if I could avoid that
<{^_^}>
[nixpkgs] @peterhoeg pushed to master « nixos/systemd-resolved: fix incorrect user »: https://git.io/JTxMo
Ariakenom has joined #nixos
<nicolas[m]>
[cinimod](https://matrix.to/#/@freenode_cinimod:matrix.org) mkShell is a wrapper around mkDerivation. I don't remember what you would need to do to have the same behavior
<{^_^}>
[nixpkgs] @peterhoeg opened pull request #102934 → pam_mount: add support for LUKS2 → https://git.io/JTxDJ
<thibm>
(mkShell is defined in all-packages.nix with callPackage, so it's overridable. It takes { lib, stdenv } as argument so you can override the used stdenv as this^
<{^_^}>
[nixpkgs] @NeQuissimus pushed 3 commits to release-20.03: https://git.io/JTxyG
knotteye[m] has joined #nixos
<{^_^}>
[nixpkgs] @NeQuissimus pushed 4 commits to release-20.09: https://git.io/JTxyc
<cinimod>
thibm: I still get the compiler complaining e.g. 'std::abort' has not been declared using std::abort;
gustavderdrache has joined #nixos
awwayaya24hours[ has joined #nixos
alp has quit [Ping timeout: 260 seconds]
<siraben>
How can I upgrade my Nix to 2.4? Is that when the new commands are preferred over the old ones?
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]
troydm has joined #nixos
<thibm>
cinimod: this is a different problem, right? Hard to help without furhter information
PlumpMath has joined #nixos
<{^_^}>
[nixpkgs] @FRidh pushed to staging-next « python2.pkgs.pip: fix regression in 20.2 »: https://git.io/JTxHE
vidbina has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @FRidh pushed to staging « python2.pkgs.pip: fix regression in 20.2 »: https://git.io/JTxHg
<bitmapper>
i'm currently dreading another install attempt rn
<bitmapper>
the bcm4331 will never let me have any peace
<numkem>
clever: it's more for a local build for someone on darwin
<numkem>
clever: on linux it works just fine with the dockerTools but darwin fails saying it's not supported. So I was thinking of using a runCommand with the socket to start a docker container with nix inside and run the build
<clever>
numkem: the problem is that you need a linux builder to build the derivations
<clever>
numkem: so you want to run nix-build inside docker, to produce the docker image
<numkem>
exactly
<clever>
and nix itself doesnt need access to the unix socket then
<clever>
as far as nix is concerned, your on a normal linux machine
<numkem>
clever: so I shouldn't rely on runCommand and just run the docker command outside of it
Chiliparrot has joined #nixos
vidbina has joined #nixos
<clever>
numkem: you want to run nix-build inside of docker, and that nix-build should use the buildDockerImage in nixpkgs
<numkem>
yes
<numkem>
but only on darwin
<clever>
correct
growpotkin has joined #nixos
<numkem>
my guess was to use runCommand and pass it the socket but it's not possible
mmohammadi9812 has quit [Ping timeout: 258 seconds]
<grfn>
are there any unit testing libraries for Nix expressions?
<numkem>
clever: while you are here, are you aware of a problem with Hydra using an s3 bucket as it's store? it used to work just fine on 20.03 but after upgrading to 20.09 it's currently broken with an `AWS error ''`
jonringer has joined #nixos
<clever>
numkem: i would expect it to still work
<{^_^}>
[nixpkgs] @mweinelt opened pull request #102941 → [20.03] tmux: apply patch for CVE-2020-27347 → https://git.io/JTxAp
<numkem>
clever: I'm using a minio s3 store with a different port and it just says it can't reach my host even tho nothing changed on that side
<{^_^}>
[nixpkgs] @roberth opened pull request #102946 → tzdata: revert to fat format → https://git.io/JTxj7
<jmercouris>
jonringer: I see, thank you
<jonringer>
however, you will most likely need to do `nix edit -f default.nix gobjectIntrospection`
<bsima>
I can't figure this out. I keep getting 'unrecognized option --printf' in .xsession-errors like seen here: https://github.com/NixOS/nixpkgs/issues/55272, and I don't have busybox specified in any of my system configuration
<{^_^}>
nix#4094 (by martinetd, 5 weeks ago, open): preallocateContents option: automatically set on btrfs
Sanchayan has quit [Quit: leaving]
o1lo01ol1o has quit [Remote host closed the connection]
<bsima>
yeah i can't figure out how its getting in here
<bsima>
busybox i mean
<bsima>
it seems to be preventing X from starting properly, after running startx i get a non-functional screen
alp has joined #nixos
<mDuff>
Does `nix show-derivation -r` give you any hints?
<mDuff>
(pointed at the top-level derivation for the configuration you're switching into, or if you know which code is actually invoking stat, for the build that generates it)?
<{^_^}>
[nixpkgs] @roberth pushed 3 commits to staging-20.09: https://git.io/JTpeN
camsbury has quit [Remote host closed the connection]
<bsima>
mDuff: yep, looks like its coming from bootstrap tools
<bsima>
so, why is boostrap tools in my nixos config?
oida has quit [Remote host closed the connection]
oida has joined #nixos
<mDuff>
in theory, a recursive show-derivation should answer that, if you look for references into bootstrapTools.
thelounge812 has joined #nixos
zakame has quit [Ping timeout: 256 seconds]
domogled has joined #nixos
zakame has joined #nixos
endformationage has joined #nixos
zangi has joined #nixos
<bsima>
i see. I followed the tree of deps and eventually found xdg-desktop-portal at the root
<zangi>
why does running `patchShebangs` from inside nix-shell asking me for a confirmation to delete a file (rm -i)?
<zangi>
doesn't happen on nix-build
cole-h has joined #nixos
<bsima>
i think this busybox/xorg this is a problem with my home-manager config, since I can login as root with a plasma gui session just fine, but my user gui session craps out
mallox has quit [Quit: WeeChat 2.9]
pushqrdx_ has joined #nixos
werner292 has joined #nixos
pushqrdx_ has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
<hyper_ch>
qtwebkit still broken
rajivr has quit [Quit: Connection closed for inactivity]
justan0theruser has joined #nixos
addcninb- has quit [Ping timeout: 240 seconds]
Ariakenom has quit [Remote host closed the connection]
Ariakenom has joined #nixos
justanotheruser has quit [Ping timeout: 244 seconds]
Dotz0cat has quit [Ping timeout: 240 seconds]
<fling>
Where is nixos linux git repo?
<fling>
Or is there only the repo with kenel patches?
pushqrdx has quit [Read error: Connection reset by peer]
<fling>
is it the only repo where the patches are maintained?
<fling>
no linux git repo used?
<hexa->
yes
<fling>
ok
o1lo01ol1o has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
pushqrdx has quit [Read error: Connection reset by peer]
Darkmatter66 has joined #nixos
pushqrdx has joined #nixos
oblomov has quit [Remote host closed the connection]
addcninblue has joined #nixos
<{^_^}>
[nixpkgs] @Mazurel opened pull request #102947 → vimPlugins: Added vim-racket and vim-lsp-cxx-highlight → https://git.io/JTpUC
pushqrdx7 has joined #nixos
mallox has joined #nixos
mallox has quit [Client Quit]
<pushqrdx7>
can someone try Polari IRC client and tell me if it works
<pushqrdx7>
cause it doesn't work overhere can't add any channels, and in the terminal it's throwing an error `The name org.freedesktop.Telepathy.AccountManager was not provided by any .service files`
blyons has joined #nixos
mallox has joined #nixos
<pushqrdx7>
i looked around and some suggested `service.accounts-daemon.enable = true;` but that didn't have any effect
<JaakkoLuttinen[m>
I wonder if it's possible to use `xclip` in package derivation `checkPhase` or is clipboard non-working in nix package build environment?
<damjan>
eyJhb: aye. to be frank, I don't know of a programming language where lists are not ordered
<eyJhb>
damjan: You never know! Don't trust anything.
<hexa->
html has them! *duck*
<{^_^}>
[nixpkgs] @samuelgrf opened pull request #102950 → treewide: add final newline to multiple files → https://git.io/JTpkT
dbmikus_ has joined #nixos
<eyJhb>
But then again, many languages also have "ordered" dicts... Which is sad
magnetophon has joined #nixos
magnetophon has left #nixos [#nixos]
<damjan>
hexa-: lol
magnetophon has joined #nixos
<JaakkoLuttinen[m>
Is it possible to add packages to `PATH` in Python package derivation? I guess it's not really possible because the Python package isn't executable so it cannot be wrapped, right? So, should I patch all the subprocess calls in Python code so that the executable paths are absolute paths to store and not expected to be found in the environment PATH?
<AmandaC>
How do I update a package in a package group, eg, pythonPackaged, lispPackages?
<JaakkoLuttinen[m>
Or how are executables made available for Python packages?
<AmandaC>
( From an overlay )
pushqrdx has quit [Read error: Connection reset by peer]
pushqrdx has joined #nixos
<FRidh>
JaakkoLuttinen[m: grep for makeWrapperArgs
<FRidh>
for executables
<FRidh>
for library code...patch it
pushqrdx54 has joined #nixos
<mDuff>
zangi, in nix-shell you have an interactive interpreter, so it honors aliases and is subject to your dotfiles; nix-build is running a noninteractive interpreter, which doesn't (unless they're explicitly turned on).
<pushqrdx54>
so i sat `services.telepathy.enable = true` and now the telepathy error is gone however Polari says `could not connect to Freenode`
<pushqrdx54>
there's something missing i guess
<pushqrdx54>
it doesn't show any more errors though so i don't why it doesn't want to connect
thelounge812 has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixos-homepage] @github-actions[bot] pushed commit from GitHub Actions to master « Update flake.lock and blogs.xml [ci skip] »: https://git.io/JTpko
rnea has joined #nixos
sangoma has joined #nixos
pushqrdx54 has quit [Remote host closed the connection]
<eyJhb>
Non working example - https://termbin.com/s1iq but ... Is this OK to have? Like a name that I am given as a argument, that I use in a attribute name = ...., ?
<pushqrdx>
if someone uses Polari as irc client i'd appreciate some help getting it work, at first it was throwing some error about telepathy but i enabled telepathy and installed all relevant packages, while the error gone away Polari now says that it cannot connect to servers
<AmandaC>
is wl-clipboard packaged in nixpkgs proper, or is that only in an overlay? If it's packaged proper, I'll make a PR to nixpkgs with that change
<ivan>
does the nginx configuration in nixos use the first virtualhost (in alphanumeric order) and use that as the default host? that is what I am seeing
jabster28 has joined #nixos
<cransom>
iirc there's an option for default = <boolean>
blyons has quit [Remote host closed the connection]
<eyJhb>
Is it possible to have a module, which default value is the value of another option in the same submodule?
sangoma has quit [Ping timeout: 260 seconds]
<tpw_rules>
i'm having trouble starting the nixos graphical installer on my system with an nvidia gpu as the main graphics. the default just brings up corrupted junk, so i tried nomodeset and it couldn't start the display manager. "Screen(s) found, but none have a usable configuration" seems to be the relevant error from journalctl
<bitmapper>
sphalerite: wondering if i could get some tips about dealing with the bcm4331
<halfbit>
need to basically package each of those then update the project to look for them
nschoe has quit [Ping timeout: 240 seconds]
<tpw_rules>
you don't really need to package them as a separate thing
bn_work has joined #nixos
<tpw_rules>
you can just have a fetchurl for each file, then patch the cmake file to point to the fetched file
<tpw_rules>
although iirc fetchcontent cannot do file:// for whatever silly reason. i had to do this for a project recently but the derivation isn't immediately accessible
<halfbit>
well I've already packaged up most of the stuff so maybe not hard at all
<halfbit>
I do need to patch the cmakes though
dsx has joined #nixos
<halfbit>
right on, appreciate the idea though, might use that next time around
<halfbit>
was about half way through packaging everything and was wondering if this was really the way
<srhb>
malorie: That sounds likely. Which channel do you expect to be on, and what does nixos-version say? :)
Latr_work has quit [Quit: Connection closed for inactivity]
jabster28 has quit [Ping timeout: 256 seconds]
<malorie>
srhb: I think I've just got it to work. I've added the unstable channel, and added it to my configuration.nix with a let/in, then I did an override on the unstable.dwm and it finally used my custom config file
urkk has joined #nixos
<malorie>
not sure if that's the "correct" way to do it, though...
<jboy>
I'm trying to `nixos-rebuild boot` and it always fails at the end when calling `bootctl` because of an input/output error ("Failed to probe partition scheme of /dev/block/..."). Any ideas what might be causing this?
<jboy>
I haven't changed any of my boot.loader settings (systemd-boot.enable = true).
<tpw_rules>
does the disk it mentions exist?
camsbury has joined #nixos
zakame has joined #nixos
quidnunc has joined #nixos
zupo has joined #nixos
alp has joined #nixos
<jboy>
yes
rprije has joined #nixos
<quidnunc>
I'm trying to run "sudo nix-channel --update" after installing nix on OSX Big Sur but I'm getting "SSL peer certificate or SSH remote key was not okay". What am I doing wrong?
<cole-h>
jboy: What kind of disk is it?
<jboy>
cole-h: an ssd
<cole-h>
e.g. is it a luks-encrypted /boot?
<jboy>
cole-h: yes, /boot is encrypted but /boot/efi is a separate partition
heyitsr__ has quit [Remote host closed the connection]
<cole-h>
Maybe it's time to strace it and see what's what
pushqrdx has joined #nixos
CyberManifest has joined #nixos
lordcirth__ has quit [Ping timeout: 260 seconds]
<expelledboy>
suuup, I was wondering if anyone could help me figure out why this shell.nix https://nixos.wiki/wiki/Talk:FAQ/Pinning_Nixpkgs doesnt work when I call `nix-shell --arg production=true`. It just seems to hang
<pushqrdx>
anyone using Polari on nixos :D, asking again because i wasted the last 2 hours debugging why it doesn't work, sadly i am giving up and using irssi :D
cosimone has joined #nixos
<cole-h>
`--arg production true`
<cole-h>
--arg <argname> <value>
<jboy>
cole-h: that's outside my wheelhouse I'm afraid. I'll need to read the man page first...
<expelledboy>
cole-h: sorry that was an earlier attempt, it hangs on `--arg production true`
jabster28 has joined #nixos
<expelledboy>
is there a way to see the call stack?
<cole-h>
Do you have a `nixpkgs.lock`?
<expelledboy>
yup
<dminuoso>
Do you get any output?
<expelledboy>
nothing
<dminuoso>
strace it
<cole-h>
"Obviously this doens't work, but its close... not sure what I missed" <-- at the bottom of that page
<expelledboy>
although I should add a check for the lock file
<cole-h>
You could add `-v`s until you see what it's doing
<expelledboy>
oh hectic its pulling down the nixpkgs repo, perhaps I misunderstood what `nix-prefetch-git` did thanks
heyitsrama has quit [Remote host closed the connection]
<expelledboy>
I also thought that nix was lazy evaluated.. so when `production` is not set why is it trying to load the file?
saschagrunert has quit [Remote host closed the connection]
<cole-h>
"pkgs = if production then pinnedNixpkgs else nixpkgs;"
malorie has quit [Remote host closed the connection]
<cole-h>
if production is not set, it defaults to false (`production ? false`))
<cole-h>
oh wait
<expelledboy>
ya..
<dminuoso>
expelledboy: Your nixpkgsUpdate script references it
werner292 has joined #nixos
<dminuoso>
expelledboy: Concretely, you splice the `url`, and `url` comes from `pinned`, which pulls everything in after
pushqrdx has quit [Quit: leaving]
heyitsrama has joined #nixos
<dminuoso>
(and rev)
<dminuoso>
nix evaluates it lazily, but not through the file system
<cole-h>
The url comes from `pinned`, but that `pinnedNixpkgs` shouldn't be evaluated (and thus not pulled), right?
<expelledboy>
ah okay hmm, so I want to set defaults then
<cole-h>
Since it's only used if production = true
werner291 has quit [Ping timeout: 272 seconds]
werner292 is now known as werner291
werner291 has quit [Remote host closed the connection]
<dminuoso>
oh
<dminuoso>
expelledboy: what exact command are you invoking?
<expelledboy>
either `nix-shell` or `nix-shell --arg production true`
<expelledboy>
basically I will be using `nix-shell` with `use nix` in direnv most the time, but incase something breaks in the future I want to use what I pinned to
<{^_^}>
[nixpkgs] @raboof opened pull request #102961 → dbus: docs: make id's reproducible → https://git.io/JTpZw
la-jesystani has joined #nixos
<expelledboy>
Okay so I just hardcode the `url` and `ref` and we good, thanks
alp has quit [Ping timeout: 272 seconds]
<jboy>
cole-h: strangely setting SYSTEMD_RELAX_XBOOTLDR_CHECKS=1 seems to help with the i/o error issue.
pushqrdx has joined #nixos
<jboy>
now the only question is how to get nixos-rebuild to pass it to bootctl...
<jboy>
cole-h: fixed it by running the new bootctl from the nix store to update the efi bootloader with the RELAX environment variable. whew.
<expelledboy>
oh its a gui based irc :P I am looking for one with vim binding in the terminal
<jboy>
thanks for putting me on that track
mallox has quit [Quit: WeeChat 2.9]
<pushqrdx>
expelledboy running a client called tiny RN very nice/minimal and has "Edit in editor" feature where you can basically write a message in vim
<expelledboy>
does anyone know how to get the rev for the currently installed nixpkgs? but be something like `nix-env --eval nixpkgs.version`or something right?
<pushqrdx>
imo so far it's the cleanest among the terminal based ones, irssi is nice too but felt a bit visually bloated
<expelledboy>
pushqrdx: $ tinytiny couldn't find a config file at "/Users/anthony/Library/Preferences/tiny/config.yml", and created a config file with defaults.You may want to edit "/Users/anthony/Library/Preferences/tiny/config.yml" before re-running tiny.
<expelledboy>
How do you configure the config path?
Darkmatter66_ has joined #nixos
<eyJhb>
Any reason I cannot delete a file I just copied in a build derivation? - https://termbin.com/uftr
<pushqrdx>
expelledboy looks like it uses $XDG_CONFIG_HOME, $HOME
orivej has joined #nixos
<pushqrdx>
expelledboy so i guess you don't need the symlink if you just move that config under .config/tiny
zupo has joined #nixos
lsix has quit [Ping timeout: 246 seconds]
ransom has joined #nixos
<expelledboy>
hmm maybe the version of tiny in nixpkgs is old
<pushqrdx>
expelledboy last released version on github is 0.6.0 and in nix it's 0.5.1, the one before the latest
magnetophon has joined #nixos
<pushqrdx>
i guess building it from source should be as easy as copy pasting the default.nix that is used for the current nix package and running `nix-env -i -f`
<pushqrdx>
after editing the hash/version ofc
vidbina has quit [Ping timeout: 272 seconds]
seku has quit [Quit: Connection closed]
<expelledboy>
na that area of code is the same in 0.5.1, trying to see if I can figure out if home-manager as a symlink utils
<pushqrdx>
also writing longer IRC messages in vim is a game change xD
<expelledboy>
:P
<expelledboy>
I think userPackages is either for the multiuser setup, or home-manage specific... certainly everything set in `environment.systemPackages` is global to my system
<expelledboy>
so just have the basics installed to fix mac bash zsh telnet python etc
<pushqrdx>
what about programs.* entries will it be visible system wide or user specific, i feel like it's synonymous to either user packages or system packages it's just not clear
<expelledboy>
ya no idea
shibboleth has joined #nixos
<expelledboy>
I am actually trying to write a introspection function for programs config settings, got pretty close https://pastebin.com/sU2q9JFs
<pushqrdx>
expelledboy xD i really like it so far, it's minimal and quite to the point, note if you can't scroll make sure to hold shift and you'll be able to scroll chat with mouse wheel
<pushqrdx>
otherwise it scroll to previous sent messages
<explledboy>
its uses the standard ctrl-u ctrl-d ;)
<explledboy>
I like it
<pushqrdx>
yeah i use both :D
meatcar has quit [Quit: bye bye.]
<pushqrdx>
scroll and ctrl+D/U idk why
meatcar has joined #nixos
<neothefox>
I'm trying to build a custom kernel but I keep getting Error: modDirVersion 5.10.0-rc2 specified in the Nix expression is wrong, it should be: 5.9.3, even though I've overriding it
expelledboy has quit [Remote host closed the connection]
<{^_^}>
[nix-idea] @JojOatXGME opened pull request #18 → Use --stacktrace option for Gradle → https://git.io/JTp4h
Fare has joined #nixos
charukiewicz has joined #nixos
<charukiewicz>
Is there a good way to clean ~/.cache/nix (particularly ~/.cache/nix/gitv2)? It gets left behind when I nix-college-garbage and often contains 10GB+ of data
jbox has quit [Ping timeout: 272 seconds]
philr has joined #nixos
CyberManifest has joined #nixos
camsbury has quit [Ping timeout: 264 seconds]
seku has joined #nixos
CyberManifest has quit [Remote host closed the connection]
CyberManifest has joined #nixos
justanotheruser has joined #nixos
addcninblue has quit [Ping timeout: 260 seconds]
dbmikus__ has joined #nixos
dbmikus_ has quit [Read error: Connection reset by peer]
<rojiro>
is the nixos build process fully reproducible? i know reproducibility is a big goal of NixOS, but wasn't sure if the OS builds themselves were reproducible.
rnea has joined #nixos
mariom97 has joined #nixos
<colemickens>
rojiro: not bit for bit, but the same as any other Nix package.
eoli3n has quit [Ping timeout: 264 seconds]
<colemickens>
rojiro: if you were to clone my repo and build my system, you'd get this exact same store path:
<rojiro>
what is the significance of a store path? Sorry for being very new to nix
CyberManifest has quit [Quit: Leaving...]
Fare has quit [Ping timeout: 264 seconds]
<colemickens>
rojiro: every Nix build product is a store path
<danderson>
rojiro: NixOS is more reproducible than many OSes, although not 100%. See https://r13y.com/
<rojiro>
so essentially i can get your same enviornement + dependencies, etc. with that path?
<colemickens>
rojiro: yes
<rojiro>
danderson: thank you
<rojiro>
colemickens: awesome.
<colemickens>
rojiro: np and welcome!
<rojiro>
danderson: given that this site exists it sounds like there are people that are eager to get to full reprodicibility?
<danderson>
yup
<jbal[m]>
so it's mostly Python blocking full reproducability?
BlessJah_ has joined #nixos
<Akira[m]>
on the bottom you have the linux beast... :)
<colemickens>
(that page is just tracking the packages in the installer iso, if I recall correctly)
BlessJah has quit [Ping timeout: 272 seconds]
<jbal[m]>
I mean. Reproducibility is a big deal in the industry, especially in open source (you can prove that if a vendor gives you a binary blob and it's source code, that the source code actually produces the blob) and in security (a compromised compiler, for example, cannot inject anything into it's output without breaking reproducibility)
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
<DigitalKiwi>
unless you're compiler has always been compromised
jbox has joined #nixos
<jbal[m]>
True.
<DigitalKiwi>
or the compromise happens at a version change because it could optimise it differently so even if it wasn't compromised the machine code could change
<simpson>
And the nature of the compromise extends through increasingly foreign self-compilations.
<DigitalKiwi>
the cpu all have backdoors anyway though so :shrug: lol :(
<quidnunc>
I'm trying to run "sudo nix-channel --update" after installing nix on OSX Big Sur but I'm getting "SSL peer certificate or SSH remote key was not okay". My cert file environment variable seems to be set correctly. What am I doing wrong?
<jbal[m]>
Is your clock set correctly?
<quidnunc>
jbal[m]: Maybe not. How do I know?
<quidnunc>
jbal[m]: I mean it looks fine
<jbal[m]>
Make sure the time matches the time on a known-good device (eg. a cell phone)
<jbal[m]>
And that you have the correct time zone set.
<quidnunc>
jbal[m]: Looks fine though it's in another timezone, that shouldn't matter
<quidnunc>
(?)
<jbal[m]>
It might. Though if Google et all work on the computer it's not a time issue
magnetophon has quit [Remote host closed the connection]
magnetophon has joined #nixos
vidbina has joined #nixos
<jbal[m]>
I'm just throwing that out there, because it always comes up whenever I take a computer out of storage. Time has to be close enough to correct, or anything that relies on SSL/TLS breaks.
<quidnunc>
jbal[m]: Yeah other SSL works fine
<quidnunc>
The error comes is mentioned multiple times in bug reports but it seems to be a different problem each time
Fare has joined #nixos
domogled has quit [Remote host closed the connection]
domogled has joined #nixos
<quidnunc>
Ah, I was running sudo so I guess it couldn't find the environment variable for the cert file
<jbal[m]>
but really, depends what kind of container
magnetophon has quit [Ping timeout: 240 seconds]
<rojiro>
gchristensen: Thanks for sharing that breakdown. Ultimately, I think, what reproducible builds does is create an environment of openeness. Many projects are currently built by a relatively small number of people expanding the scope of people that are able to vouch for a given build is valuable.
<gchristensen>
rojiro: yeah, to make my position totally clear: I run r13y.com
<jbal[m]>
I think it's mostly helpful for developers looking to make sure their own builds are sane