anderslundstedt has quit [Ping timeout: 265 seconds]
anderslundstedt has joined #nixos
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/JvUq0
wildtrees has quit [Quit: Leaving]
nDuff has quit [Ping timeout: 272 seconds]
chenhq2005 has quit [Ping timeout: 258 seconds]
<emily>
gchristensen: https://logs.nix.ci/?key=nixos/nixpkgs.77710&attempt_id=c2e39efb-5277-4574-b3be-3a36d78f394e "warning: ignoring the user-specified setting 'restrict-eval', because it is a restricted setting and you are not a trusted user" seems a little concerning, hopefully that doesn't mean sandboxing is broken?
<lovesegfault>
worldofpeace: Are you around?
<lovesegfault>
I see that the issue with lollypop is still happening (I went to bump it's version just now)
<lovesegfault>
Could you provide some guidance on how to fix this?
<lovesegfault>
IIRC you and jtojnar had an idea
picantest has joined #nixos
shibboleth has quit [Quit: shibboleth]
werner291 has quit [Remote host closed the connection]
ebzzry has joined #nixos
fusion809_ has quit [Remote host closed the connection]
<ebzzry>
What is the main difference between nixos-unstable and nixpkgs-unstable?
<drakonis1>
nixos gates commit advancement with tests and nixpkgs doesnt, so things may break
<drakonis1>
things maybe build on nixpkgs and it might advance but it might break in silent ways
<drakonis1>
s/maybe/may
Neo-- has quit [Ping timeout: 265 seconds]
chenhq2005 has joined #nixos
<EsperLily>
nixpkgs has a set of must-not-break packages as well, but it doesn't run the nixos tests
<EsperLily>
and I assume the set of packages it cares about may be smaller than nixos
<samueldr>
I think the nixos one is bigger only through dependencies in those tests
<samueldr>
like a full minimal system closure transitively is a must-not-break
chenhq2005 has quit [Client Quit]
chenhq2005 has joined #nixos
shiver has quit [Quit: leaving]
shiver has joined #nixos
<Ankhers>
I am trying to build a rust project. cargo build is complaining about being unable to find libclang. Is there some way to add it to my environment to be found automatically? Or do I need to use whatever nixpkgs uses to build rust libraries?
<Ankhers>
I tried adding llvmPackages.libclang to my home.nix file, but that didn't seem to work.
selfsymmetric-mu has joined #nixos
<selfsymmetric-mu>
Okay, so globally available things are in /run/current-system. How do I know where to find things in my current nix-shell environment?
<selfsymmetric-mu>
Oh okay, `nix-locate` helps me out.
orivej has joined #nixos
<evanjs>
wew did we get rid of cc reviewers?
abathur has joined #nixos
<EsperLily>
maintainers are asked for review by a bot now
<evanjs>
Also happy to hear ideas anybody has on testing #77714. Haven't done much nixpkgs python testing before, I think the biggest thing I'm worried about here is reverse dependences
<EsperLily>
you can still ping people if you think the bot isn't going to detect the package properly
<evanjs>
Right right. That's way better anyway
h0m1 has quit [Ping timeout: 246 seconds]
selfsymmetric-mu has quit [Remote host closed the connection]
<evanjs>
no but I typically wouldn't be worried about revdeps, but pillow 6.2.1 -> 7.0.0 dropped python 2 support so I wasn't sure if there's a standard way to make sure all revdeps in the tree still work okay
* jared-w
is irrationally excited by finally doing the stupid thing
* jared-w
also now knows *way* too much about Ruby packaging
<evanjs>
which can then help you construct a nix-shell that might work for your project
<jared-w>
Oh I already did the nix-shell
<jared-w>
it involved a fetchgit with leaveDotGit = true despite the fact that it's essentially unsupported and not desired. Then I needed bundlerEnv set up _juuuust_ right, and then buildRubyGem with a preBuild of git reset to get git to actually "work", and then I had to move a created *.gem file with a postInstall hook
<jared-w>
and finally override the ruby in vagrant and add in a shell hook to automatically install the plugin if it's not already installed
<jared-w>
I might be able to slim it down more, and I hope I can, but ughhh this was a pain in the arse to get working
<jared-w>
i'ight, time for victory tacos
<samueldr>
tomberek: is arm.cachix.org still being updated?
<samueldr>
(I'm updating the wiki page and clearing outdated information)
rogue_koder_ has joined #nixos
<selfsymmetric-mu>
samueldr: But I'm IN my nix-shell. Why don't I have it? It's provided by the `buildInputs`.
<gchristensen>
samueldr: I really wish we could get a periodic eval of armv6-or-7 in to hydra :( blocker being having hardware that isn't a nightmare to run.
<selfsymmetric-mu>
I have a python package that also provides an `.el` file for Emacs integration so I'm trying to figure out how to get Emacs to find it from the shell environment on startup so that it can load it.
<samueldr>
selfsymmetric-mu: the store path may differ from the one nix-locate has indexed, first point, it could also be a multiple output derivation
<samueldr>
gchristensen: same
<selfsymmetric-mu>
I guess I should also something different: how do I find a file named "foo" provided by the nix-shell?
<gchristensen>
if hardware shows up at my door, we'll do it same-day
<selfsymmetric-mu>
It's not a binary, I can't just do `which foo`.
<selfsymmetric-mu>
Thanks! In this case `find -L $buildInputs "foo"` to follow symbolic links.
<selfsymmetric-mu>
samueldr++
<{^_^}>
samueldr's karma got increased to 149
<Ankhers>
I am trying to use `cargo build' to build my rust library. I am getting an error stating it is unable to find libclang. Is there a way I can add it to my environment without needing to use a derivation?
<abathur>
anyone have knowledge or opinions about if/how a shell library/module should be packaged?
selfsymmetric-mu has quit [Remote host closed the connection]
<abathur>
to be more specific, a bash event (& promise!) implementation I've been using since July that I think I've found it productive enough to package. But I'm not certain it's a thing since I can't find many examples of packaged shell function libraries
<abathur>
I've had it packaged locally for a while, anyways; but it'll be my first package and it's an "odd" one, so I've got a few questions :)
<abathur>
well, first contributed, if I do
<gchristensen>
abathur: how does it work? :)
<abathur>
qualify? :)
<abathur>
amazingly?
<gchristensen>
mechanically
<abathur>
event on "my cool event" callback ANY ARGUMENTS I AM AWESOME ENOUGH TO WANT
<abathur>
event emit "my cool event"
<abathur>
?
<gchristensen>
within the same bash process?
<abathur>
it does use eval, if that's what you mean
<abathur>
yeah
<gchristensen>
nice
<abathur>
it's a nice abstraction
<abathur>
I used it to build a little shell orchestrator thing that publishes events before and after commands
<abathur>
and then a little module on top of that to update my prompt and shell history and so on
mexisme has quit [Ping timeout: 258 seconds]
nixnewbie has quit []
nixnewbie has joined #nixos
<abathur>
anyways, more to the point(s); nothing wrong with packaging something that is just a library of shell functions? :)
<gchristensen>
well it is a bit weird, but I don't think so
<abathur>
and also, further, in nixpkgs/pkgs/development/libraries/bashup-events/?
<abathur>
it feels weird to call it a library, but weirder to call it a tool
<gchristensen>
not sure, that isn't my wheelhouse
<gchristensen>
but sure, send a PR for it there and see if someone says otherwise :P
<abathur>
no worries
<abathur>
I take the fact that you don't know of some prohibition as a good sign, at least
<abathur>
it really just needs to be on the path
<abathur>
but putting it in bin/ feels weird
<gchristensen>
yeah, I mean, it is a clever project, not trivial to make from scratch, and isn't brand new "oh look I just built a thing must package it" knee-jerk
<abathur>
but most of the examples I can find in nixpackages that seem similar *are* in bin/
<Ankhers>
Is home manager supposed to automatically let my environment know about the .so files in ~/.nix-profile/lib, or am I supposed to add something to my rc file?
<gchristensen>
if you need it in PATH it should write to /bin probably
vld has joined #nixos
mexisme has joined #nixos
<abathur>
well, I guess it's not *critical* that it be in path, atm I substitute it in the module I've built on top like: `substituteInPlace shellswain.bash --replace "../bashup_events/bashup.events" "${pkgs.bashup-events}/bashup.events"`
<gchristensen>
right
<gchristensen>
I wish nixpkgs had a "linker" for bash scripts
<abathur>
but it's more usable that way; a little uncertain due to the lack of solid examples
<gchristensen>
a way to parse a bash scripts and replace executions off the $PATH with absolute paths
<keithy[m]>
curious to know if anyone has worked on combining nix with ipfs?
<gchristensen>
instead of doing at the top of a script: PATH=@dep1@/bin:@dep2@/bin...
dansho has quit [Remote host closed the connection]
<gchristensen>
keithy[m]: yes: https://github.com/NixIPFS however last time we looked, the write volume of our build server was too high
dansho has joined #nixos
vld has quit [Ping timeout: 265 seconds]
<abathur>
hmm, yeah
<keithy[m]>
so, if flakes help to break things down into smaller subsystems, it could become viable in the future
<gchristensen>
I would only expect our build farm to become more busy and write-heavy
ajs124 has quit [Remote host closed the connection]
das_j has quit [Remote host closed the connection]
Scriptkiddi has quit [Remote host closed the connection]
<keithy[m]>
the monolithic centralised build server, doesnt fit with a distributed file system
<gchristensen>
so I think the real trick is to find a way to make IPFS writes more performant
<abathur>
FWIW, I've felt like there's probably a better (sigh...) "story" for writing shell scripts for both Nix and non-nix targets, but I'm not quite to the point where I know how)
das_j has joined #nixos
<gchristensen>
it is a centralised trust root which we probably won't get away from any time soon
ajs124 has joined #nixos
Scriptkiddi has joined #nixos
<keithy[m]>
its never going to be as performant as a local disk
<abathur>
these particular shell projects for example; writing shell inside Nix, at least due to sublime text's lack of bash syntax highlighting within the scripts, is less than ideal
<evanjs>
bdju: Looks like the last comment mentioned something about missing icons. Hrm...
<gchristensen>
abathur: it would surprise me that it redirected the same, since /grafana and /prometheus don't know about each other
<abathur>
gchristensen: sorry, I lied; safari does this wird thing where it ignores me sometimes
<keithy[m]>
the second link worked for me, any particulear dashboard I should select?
<abathur>
gchristensen: it did work fine; I just had to do it twice :D
<gchristensen>
keithy[m]: the second link should take you directly to 2 graphs
<abathur>
(well, I say that; it loaded; it does still have a message on the page saying "Error executing query: parse error at char 36: unexpected character: '|'"
<gchristensen>
and if it doesn't do that, check how much of the URL was preserved when transfering it to your browsner
<keithy[m]>
yes that worked well
<abathur>
derp
<gchristensen>
anyway, this is what we require from IPFS
<hpfr[m]>
nixos-install thinks /mnt/etc/nixos/configuration.nix doesn’t exist when it’s a symlink
lovesegfault has quit [Quit: WeeChat 2.7]
<evanjs>
hpfr[m]: symlinks should work fine. Does the symlink point to a valid location?
<hpfr[m]>
It points to a file in my home directory, and I’m working from a live USB. cat didn’t work either so it’s not nixos-install I just don’t understand something here
spacefrogg has quit [Quit: Gone.]
aw has quit [Quit: Quitting.]
aw has joined #nixos
<gchristensen>
I think the symlink might be resolved after a chroot to /mnt
<evanjs>
ahhh that sounds about right. I remember running into things like that before
<hpfr[m]>
Nixos-enter not chroot right?
<evanjs>
Part of the reason I switched to just /etc/nixos haha
spacefrogg has joined #nixos
captn3m0 has quit [Ping timeout: 240 seconds]
<hpfr[m]>
Oh that makes sense cuz it points based on a different root
<hpfr[m]>
The problem is when I tried nixos-enter and then nixos-rebuild, it doesn’t work because I got rid of a library libtasn that prevents me from connecting to the internet, and the chroot uses the binaries in the broken store
<hpfr[m]>
Will chroot work for this where nixos-enter doesn’t?
<hpfr[m]>
Well with chroot I get failed to run /run/current-system/sw/bin/bash no such file or directory
<bdju>
I'm running an old version of the Deluge daemon on another machine from memory, if it restarts it'll be the new one, and on NixOS my client is the old version so it wouldn't be able to connect to the new daemon. I already made that mistake on another machine where I had a deluge daemon, and I've had to use it from deluge-console for months.
<bdju>
It's a real pain in my neck that Deluge isn't being updated. I know I sound entitled but I am actually pretty upset about this.
<bdju>
I'll just leave it at that. If that update got merged it would make my month, maybe my year.
<gchristensen>
bdju: it would help if the tests didn't fail
takeda has joined #nixos
<evanjs>
Nah I'm looking at it right now but tbh it almost seems like a normal thing for gtk apps to be missing icons, so idk if this is unique to this PR or not
<evanjs>
I'll make a comment on the PR, as it works fine if hicolor-icons are in systemPackages
<bdju>
I have very little programming or even source control experience or else I might try to help myself
<bdju>
alright, thanks
<gchristensen>
then maybe bump the PR, maybe dtz would like to finish it (or perhaps evanjs will! :))
<bdju>
wasn't sure if it was rude to just comment on that sorta thing, guess I could do that
nixnewbie has quit []
nixnewbie has joined #nixos
<gchristensen>
a lot of if it is rude or polite depends on how you write the comment :)
<hpfr[m]>
bdju: Based on your comment this probably isn’t an option but you could take a look at transmission
<bdju>
Yeah, the trouble is I've got Debian and Arch machines running the actual daemon and my client is just out of date because I use NixOS on my PC. So we're talking hundreds of torrents I'd have to move over.
<evanjs>
I can't stand commenting if I don't have much to add unless I _really_ have to lol
<bdju>
Also, I like Deluge when it's working.
<evanjs>
I haven't had any issues with deluge on one of my NixOS machines, but then it's a pretty vanilla setup
<dtz>
agreed, and I always appreciate a ping -- in a world of notifications that don't matter, being told "hey fixing this in particular would be great!" is pretty much gold ^_^
<gchristensen>
<3 dtz
<{^_^}>
dtz's karma got increased to 2
<dtz>
I can't comment on the PR in question because I'm not sure which this is, only that i was summoned by gchristensen haha
<evanjs>
Yah that one. Trying not to ping the GTK/NixOS gods just yet haha
<hpfr[m]>
I went into man nixos-install, and there isn’t an option to specify a config path but you can specify a closure, which you can make with nix-build -I nixos-config=/file, but when I do that I get “expression does not evaluate to a derivation”
<hpfr[m]>
But I know I’m giving a valid config :(
mexisme has quit [Ping timeout: 268 seconds]
[Leary] has joined #nixos
Lears has quit [Read error: No route to host]
<infinisil>
hpfr[m]: You mean `nixos-rebuild build -I nixos-config=/file`?
<hpfr[m]>
No, nix-build to get a closure for use with nixos-install
<hpfr[m]>
Infinisil
hyper_ch2 has joined #nixos
<infinisil>
Yeah the command I gave does that
abathur has quit [Ping timeout: 240 seconds]
<infinisil>
The nix-build command you mentioned uses `default.nix` in the local directory
abathur has joined #nixos
<infinisil>
You can however do `nix-build '<nixpkgs/nixos>' -I nixos-config=/file -A system` to get pretty much the same as the nixos-rebuild build command
<infinisil>
Both of them should produce a path usable with `nixos-install --system`
<hpfr[m]>
I didn’t give the command I used in full, I copied it from man nixos-install but it also had '<nixos>' -A system —no-out-link
<infinisil>
Oh yeah that command is wrong
<infinisil>
It's supposed to be '<nixpkgs/nixos>'
<evanjs>
wait is it?
<evanjs>
Oh yeah lol
ilikeheaps has quit [Ping timeout: 260 seconds]
<hpfr[m]>
Awesome
<hpfr[m]>
Classic haha
<infinisil>
I guess nobody bothered to fix it yet, it's not the first time I see somebody mentioning this
ilikeheaps has joined #nixos
<evanjs>
that command is basically nixos-rebuild without a bunch of steps
<hpfr[m]>
So would nixos-rebuild build -I nixos-config=path be enough
<infinisil>
Should be yeah
<infinisil>
I'd use the nix-build command though, it's more direct
<gchristensen>
as long as you are careful to run the proper nix-env command after, should be fine
<hpfr[m]>
Wdym gchristensen
<hyper_ch2>
hmmmm, on (almost) latest git I have problem with bleeding kernel: installation/update/upgrade works fine, but when I reboot, Grub claims it can't find the kernel
<hyper_ch2>
however checking /boot/kernels after booting into an older generation shows, that the kernel is there
abathur has quit [Ping timeout: 260 seconds]
<hyper_ch2>
I don't really have a clue why grub can't find it
<infinisil>
Yeah I think so, something about the legacy nixos symlink
hyper_ch2 has quit [Remote host closed the connection]
<infinisil>
(if you look into /nix/var/nix/profiles/per-user/root/channels/nixos you'll see a `nixpkgs -> .` symlink, probably got something to do with that)
<hpfr[m]>
Infinisil++
<infinisil>
And how nixos was originally separate from nixpkgs
<hpfr[m]>
infinisil++
<{^_^}>
infinisil's karma got increased to 186
<infinisil>
:D
<hpfr[m]>
I’m now having problems with the home-manager module, file 'home-manager/nixos' was not found in the Nix search path
chenhq2005_ has joined #nixos
<infinisil>
{^_^}: You've been dropping more karma recently, you better watch out or I'll patch you
<evanjs>
infinisil: okay that answers my question. Figured it was related to how there used to be a nixos repo and etc
<{^_^}>
Sorry!
<hpfr[m]>
infinisil: how do you feel about patching the bot to not post opened pull requests here haha
<evanjs>
hpfr[m]: how are you importing home-manager? a channel via nix-channel? nur? etc.
<hpfr[m]>
A channel, but I’m using a live USB right now. I added the channel to the USB but nixos-install still fails
<infinisil>
hpfr[m]: Ah that's out of my abilities, you'll have to ask gchristensen for this, but I like the opened PRs a lot actually
<evanjs>
infinisil: and ohhh okay. definitely confused every time I see that . symlink
chenhq2005 has quit [Ping timeout: 240 seconds]
<hpfr[m]>
infinisil: they seem to be quite good at interrupting IME
<gchristensen>
I find them very valuable
<hpfr[m]>
Why
<infinisil>
If people are talking the bot is overshadowed by far
<infinisil>
hpfr[m]: They show what's going on. I find a lot of interesting PR's that way
<gchristensen>
I think the "opened" messages inspire a lot of peolpe to review PRs
<hpfr[m]>
Not always, especially when discussion takes place in scattered pieces over hours
<gchristensen>
yeah, sometimes it isn't perfect
<infinisil>
The merged messages are more distracting than opened prs
<gchristensen>
agreed
<hpfr[m]>
Could it post in its own channel? I understand the utility but it doesn’t seem like subjecting all of #nixos to it is the right way to go about it
<gchristensen>
you could ignore it
pbb has quit [Remote host closed the connection]
abathur has joined #nixos
<hpfr[m]>
Doesn’t that just gray the messages
<gchristensen>
that is up to your client
<hpfr[m]>
Yeah I guess
<hpfr[m]>
Doesn’t seem like the right default to me but that works
hyper_ch2 has quit [Remote host closed the connection]
takeda has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 has joined #nixos
Supersonic112 is now known as Supersonic
hyper_ch2 has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
tertl3 has quit [Quit: Connection closed for inactivity]
hyper_ch2 has quit [Remote host closed the connection]
hyper_ch2 has joined #nixos
<CMCDragonkai>
How come `nix-env -iA nss.tools` installs the same thing as `nix-env -iA nss` even though using `nss.tools` inside `config.nix` actually gets the tools package.
<CMCDragonkai>
or `nix-env -iA nssTools` doesn't actually install the tools package, but if used inside config.nix it does work
hyper_ch2 has quit [Remote host closed the connection]
<CMCDragonkai>
nix-env seems to behave weirdly with multii output derivations
hyper_ch2 has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
dalto5 has joined #nixos
iqubic has left #nixos ["ERC (IRC client for Emacs 28.0.50)"]
<dalto5>
Is there an easy way to set the SDDM background image? I tried playing with services.xserver.displayManager.sddm.extraConfig but couldn't figure anything out. Seems like it is set in the theme
Rusty1 has quit [Quit: Konversation terminated!]
cap_sensitive has quit [Quit: WeeChat 2.7]
drakonis1 has quit [Quit: WeeChat 2.6]
cap_sens1 has quit [Quit: WeeChat 2.7]
chagra has joined #nixos
kvda has quit [Ping timeout: 265 seconds]
kvda has joined #nixos
mla has quit [Ping timeout: 246 seconds]
dalto5 has quit [Remote host closed the connection]
<jared-w>
gchristensen: Reading this reminded me of our convo this morning about your dynamic module woes
<jared-w>
although I wouldn't be surprised if that's where the original inspiration came from :p
endformationage has quit [Ping timeout: 265 seconds]
<gchristensen>
ah
<jared-w>
when I started doing my nixos configs, I resolved to keep my zsh, nvim, etc., configs as separate as possible. They're slowly merging into getting more and more inlined into my nix files... I suppose that's the natural order of things
<jared-w>
I also kept everything as one file for the longest time to prevent my configs from getting too wildly overly complicated. But now... :p
<vika_nezrimaya>
loaOf was deprecated. My use-case for it was having users in a separate file and then including them as objects like this: `users.users = with (import users.nix); [ vika alice (bob // { extraGroups = ["dialout"]; }) ];`. Without loaOf the syntax for this could be more clunky... or not?
<vika_nezrimaya>
what would be the best way to adapt it?
chagra has quit [Ping timeout: 265 seconds]
<tilpner>
vika_nezrimaya: users.users = with import users.nix; { inherit vika alice; bob = bob // { ... }; };
<vika_nezrimaya>
so there's no way to not repeat bob now :c
<vika_nezrimaya>
that's kinda sad
<tilpner>
Well, you can, it's just not worth
<tilpner>
If you were using the list form, you were probably setting users.users.*.name?
xO1 has joined #nixos
<tilpner>
You can use that to generate an attrset from your current list without having to repeat the names
<tilpner>
But unless you have a lot of users, or unreasonably long user names, that will not be shorter or easier to read
<cap_sensitive>
Hi. I'm trying to install NixOS on a rpi4. The official experimental image boots, but even after a nixos-rebuild switch, the pi always reboots to default initial setting.
<cap_sensitive>
I have disabled both grubhub and uboot
thc202 has joined #nixos
<cap_sensitive>
only enabling boot.loader.raspberryPi and set its version to 4
<colemickens>
There are bugs in the SD Card image configuration.
<colemickens>
I have something that works, but it's a combination of special sauce in my configuration.nix as well as a change in my nixpkgs branch.
<colemickens>
:/ I haven't cleaned it up yet.
<raboof>
I see a problem on nixos-unstable that wasn't there before and I'd like to bisect when it was introduced. I remember there was a URL listing previous nixos-unstable git hashes - what was that again? Or is there an easier way?
<{^_^}>
[nixpkgs] @FRidh pushed commit from @dtzWill to staging « ethtool: 5.3 -> 5.4 »: https://git.io/JvUnv
<{^_^}>
[nixpkgs] @FRidh merged pull request #74253 → stdenv: make symlinks that refer to the same output relative → https://git.io/JeP9m
<{^_^}>
[nixpkgs] @FRidh pushed commit from @andir to staging « stdenv: make symlinks that refer to the same output relative »: https://git.io/JvUnf
<cap_sensitive>
colemickens: It works! I had a very stupid mistake---the /boot was not mounted
<cap_sensitive>
colemickens: Too used to rpi3 where we only have 1 partition
<colemickens>
cap_sensitive: I couldn't remember if it was just that or there was some sort of path prefix for copying that also had to be updated in tandem?
<cap_sensitive>
colemickens: I'm using the latest image, and it seems to work out-of-box, provided that /boot is properly mounted
<cap_sensitive>
I don't use a GUI. My pi is configured to monitor some GPIO stuff and thermistor.
<colemickens>
cap_sensitive
<colemickens>
(gr, sorry, adjusting to a new matrix client)
captn3m0 has joined #nixos
<colemickens>
Yeah, I had just been doing some testing, maybe the overlay is only needed for HDMI. I will remove that.
<cap_sensitive>
colemickens: but i think if you are using and GUI, that's needed (after all, it does come from wiki)
m0rphism has joined #nixos
<colemickens>
cap_sensitive: the other thing is -- the RPI4 module you're using imports installation-device.nix which will forcibly keep SSHD disabled at boot.
<cap_sensitive>
I don't use that line, but I have TTY with HDMI
<colemickens>
okay, good to know, thank you!
<colemickens>
that's actually the only reason I created my rpi4-new.nix module was to drop the installation-device bits. It also force includes the nixos user, docs, etc.
<cap_sensitive>
I see
<cap_sensitive>
colemickens: But I do have the deviceTree part, just not the hardware.opengl part
* colemickens
nods. ok
<colemickens>
I'm curious if people are interested in squashfs-y read-only image scenarios for the RPi4, or if people are mostly wanting to be able to remote into then and rebuild-switch. Since we already have that infra in nixos modules too.
drakonis1 has joined #nixos
<cap_sensitive>
colemickens: To be more clear, no overlay in hardware.deviceTree, just the base = pkgs.device-tree_rpi
chagra has quit [Ping timeout: 260 seconds]
<cap_sensitive>
I'm still very new to nixos, and I just remote and nixos-rebuild switch
logzet has joined #nixos
<cap_sensitive>
What's the advantage of sqashfs-y thing?
<colemickens>
cap_sensitive: so it seems like the overlay enables an oss driver for hardware acceleration. but it seems you're implying that the device tree is still needed for the hdmi enablement?
<colemickens>
cap_sensitive: since it seems you and I have both added it and it wasn't part of the nixpkgs rpi4 module...
<cap_sensitive>
colemickens: Lemme just try. I have ssh enabled
chagra has joined #nixos
<colemickens>
cap_sensitive: idk, the squashfs image is used in traditional installer modules to build an SD card image that has a squashfs read-only image on it that gets inflated into memory during boot where the user can then run the install. But it can be used to create a netboot payload, or a small compressed image for a smaller card (maybe?)
<colemickens>
I am big into the idea of read-only images and what not, but I don't really have a use for it.
sigmundv has joined #nixos
<cap_sensitive>
Feels like latest macOS's read-only system partition and everything that entails?
<colemickens>
Sorta kinda. I don't know that I've seen anyone layer a read-only parition underneath another mutable partition, but it ought to be possible.
<colemickens>
Or however they implement it in macOS.
<{^_^}>
[nixpkgs] @basvandijk merged pull request #77669 → hydra: only set buildMachinesFiles when nix.buildMachines is defined → https://git.io/JvJSf
<cap_sensitive>
colemickens: Actually, the overlay is not needed. I still have HDMI output
<wedens[m]>
evanjs: generally, it's handled by XDG
alexherbo2 has joined #nixos
<wedens[m]>
and sometimes BROWSER env var
<evanjs>
wedens[m]: right right. Can’t remember if something set it before in my config. Lemme check again... I just know I’ve looked several times and it’s still not what I want so I figured I couldn’t find it earlier haha
<infinisil>
Happy Wednesday to you too dtz, I suppose!
<evanjs>
*infinisil is reluctant to do so*
<{^_^}>
[nixpkgs] @dhess opened pull request #77768 → Replace short URL from #63103 with full URL. → https://git.io/JvUB9
<evanjs>
Is there a way to get nix repl to play nice with channels specified only via URLs in my nixos-config? i.e. tarballs that are _not_ managed with nix-channel?
<evanjs>
It's like it needs to download or something _every_ time I open the repl
<infinisil>
fetchTarball should cache it for 1 hour by default
<infinisil>
But there's some --option you can use to increase that
<evanjs>
infinisil: alright. so it comes back to max lifetime or whatever the option is
<infinisil>
tar-ttl or so
Guest92090 has joined #nixos
<evanjs>
tarball-ttl looks like
<evanjs>
I wonder, is there a way to `nix-channel --update` in my case, where nix-channel doesn't manage the channels?
<evanjs>
Without rebuilding, that is
<infinisil>
Not sure what you mean
fendor_ has joined #nixos
kiwi_1 has joined #nixos
<evanjs>
So all of my channels are in my NIX_PATH, none are managed by nix-channel, save nixos. When I nixos-rebuild after an hour (or whatever tarball-ttl is set to) it will fetch again, right?
<evanjs>
I wonder if I can fetch without rebuilding or opening the repl and trying to evaluate something, etc. If that makes any more sense lol
<infinisil>
Hm what happens when you just set `--option tarball-ttl 0` for the nix repl
<infinisil>
Probably doesn't work eh
<infinisil>
You could maybe use `HOME=/var/empty nix repl --option tarball-ttl 0` to have separate caches :P
<dtz>
wasn't meant to be an obligation :D. But thank you! :)
virus_dave has joined #nixos
<evanjs>
infinisil: it seems to work with ttl 0 haha. Not sure if it will in another 59 minutes, though :P
virus_dave has quit [Client Quit]
<evanjs>
and `HOME=/var/empty nix repl --option tarball-ttl 0` no worky with root nor my user :P
virus_dave has joined #nixos
mexisme has joined #nixos
mDuff has joined #nixos
* dtz
uses a 'nix' patched to treat `--tarball-ttl` as okay for untrusted users to set and forwards to nix-daemon .... see https://github.com/NixOS/nix/pull/3037 and ping me if you want something that applies on nix master, i have that somewhere less easy to find
<{^_^}>
nix#3037 (by dtzWill, 22 weeks ago, closed): nix-daemon: allow more safe settings by "untrusted" users.
<{^_^}>
[nixpkgs] @NeQuissimus pushed 5 commits to release-19.09: https://git.io/JvU0O
<x123_>
Does XyGrib actually run for anyone? from nixos-19.09, nixos.xygrib...I get qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in "" so I think something with the derivation is busted
gustavderdrache has joined #nixos
growpotkin has joined #nixos
Guanin has joined #nixos
<infinisil>
x123_: Common error when qt isn't installed, see https://github.com/NixOS/nixpkgs/pull/54525 which has something that I think should allow you to fix this in the derivation
<{^_^}>
[nix] @yorickvP opened pull request #3321 → Fix #2984: attempt to copy if unlinking source directory fails → https://git.io/JvU0H
horner has quit [Remote host closed the connection]
<Ankhers>
How can I get stdbool.h and other standard headers into my environment?
<Ankhers>
Preferably using home manager if possible.
<evanjs>
, libraries Ankhers
<{^_^}>
Invalid command syntax
<evanjs>
yay i knew it haha
<evanjs>
what's the syntax for that?
<infinisil>
Without a space
<LnL>
no space
<evanjs>
,libraries Ankhers
<{^_^}>
Ankhers: Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<simpson>
Ankhers: You probably don't want them in your home environment, though!
<evanjs>
ah gotcha thank you
<Ankhers>
Thanks. I will give that a try.
<evanjs>
Ankhers: on another note, see https://github.com/bennofs/nix-index if you need help finding packages that contain specific libraries, such as stdbool.h
<evanjs>
e.g. `nix-locate -1w stdbool.h | sort -iu`
<Ankhers>
evanjs: Thanks. I will look into that.
<Ankhers>
I was recently pointed to a "better" nix shell. I think it automatically reloaded whenever the shell.nix file changed. Does anyone know what I am talking about? I can't seem to find it at the moment.
<simpson>
direnv, probably. There's a daemon, lorri, which can be put on top of that.
<{^_^}>
Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended) https://github.com/bennofs/nix-index
<simpson>
evanjs: Are you surprised that the unofficial community wiki has bad and misleading advice on it?
<infinisil>
evanjs: Oh damn it totally does
<evanjs>
simpson: didn't realize it was unofficial. huh. often times it has decent info
rogue_koder has joined #nixos
captn3m0 has quit [Ping timeout: 265 seconds]
joepie91 has quit [Remote host closed the connection]
f0x has quit [Remote host closed the connection]
<simpson>
evanjs: If anything is useful, feel free to port it to the official docs and send a PR for review by the maintainers.
<gchristensen>
and of course, improvements to the (unnofficial) wiki are also appreciated
<Ankhers>
I made a shell.nix with a simple stdenv.mkDerivation that had an empty buildInputs. When I ran my build command, it was still unable to find stdbool.h until I added clang to my buildInputs. Is that supposed to be the case?
ng0_ has joined #nixos
<clever>
Ankhers: you want clangStdenv.mkDerivation
euandreh has joined #nixos
<clever>
Ankhers: if you want to use clang to compile things
<{^_^}>
[nixpkgs] @x123 opened pull request #77772 → use wrapQtAppsHook in xygrib → https://git.io/JvUEK
<evanjs>
weird. I was able to do that without clang
<x123_>
infinisil: thanks for the heads up on that one, with wrapQtAppsHook I fixed the derivation locally and also contributed that PR 77772, seems to work now.
<immae>
Hello there, I have issues running (graphical) programs installed via nix-env. I am on another system (Archlinux), and whenever I try to run a program I get many "Fontconfig error". Errors seem to suggest that my /etc/fonts/fonts.conf file targets incompatible version, do you know if there is a way to write a reasonable alternate fonts.conf via nix that I could use instead of that default one?
<immae>
wedens[m]: yes, I "think" my issues is not very old, but I cannot garantee that I ever tried to run a graphical application installed via nixpkgs (in my case though, the issue seems to be an incompatible version of the fonts.conf file between my native host and the nix one)
<{^_^}>
[nixpkgs] @Mic92 pushed commit from @x123 to release-19.09 « use wrapQtAppsHook in xygrib »: https://git.io/JvUu6
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<x123_>
Am I missing something, or does it seem like linuxPackages_5_3 is gone now?
<dminuoso_>
So Im in an interesting spot. We are trying to install nixos on a switch - I just get an "ok" after the appropriate boot entry was selected, then it's properly stuck.
elenapan has quit [Remote host closed the connection]
Theuni2 has joined #nixos
<dminuoso_>
Output is from a serial console, the boot entry was amended with an approprite console=ttyS0,115200
<gchristensen>
you sure that is the right boot entry?
jethroksy has joined #nixos
<clever>
dminuoso_: ive had similar problems with linux on the rpi, with custom firmware, early-con helps a lot
<clever>
dminuoso_: this, plus configuring the earlycon in .config, so the kernel knows where to send it
<clever>
dminuoso_: i think with the right kernel config, earlyprintk causes the kernel to just blindly write bytes to a magic address, extremely early in the boot process, before drivers are even online
Twey has joined #nixos
<dminuoso_>
clever: Hold on, what is .config
jethroksy has left #nixos [#nixos]
<clever>
dminuoso_: the kernel config file, when you build the kernel
<dminuoso_>
Ah
<Twey>
I'm trying to use `qemu-bridge-helper`, but I don't know how to make that work on NixOS. Is there a way I can get something in the Nix store to be installed setuid? Obviously I can't just patch it in to the install phase, since the builder doesn't run as root…
<clever>
Twey: `-net user` is the simplest network to setup, if you just want basic tcp/udp stuff
Chiliparrot has joined #nixos
<Twey>
clever: I can't use that for reasons :( I need a proper bridge setup
<clever>
Twey: i do also have an example with bridging i can link, one min
<dminuoso_>
clever: Ah bummer, Ill have to wait until tomorrow then.
<dminuoso_>
We just had this thought "Why not run all our core network switches on nixos"
<Twey>
Which I can do fine manually with sudo, but I'm trying to script it, and I'd like to not have to invoke `sudo` in my script — which is what qemu-bridge-helper is for
<clever>
dminuoso_: which switch is this? heh, a networking switch or a nintendo switch?
<clever>
Twey: and this tells qemu to use tap0, and to not have any up/down scripts
<clever>
Twey: so qemu-bridge-helper is out of the picture, and nixos manages the interface for you
mexisme has joined #nixos
<dminuoso_>
clever: So while most networking switches have specialized OSes, some of them are based on Linux - and others let you run Linux directly (as the control plane has an Intel Celeron with fairly standard hardware)
<Dandellion>
philipp: did you manage to get gnunet to do something?
<philipp[m]2>
Yes, also had a talk with abbradar to improve the config generation.
<Twey>
clever: The reason for qemu-bridge-helper existing is that I need to create my TAP interfaces dynamically as a user
<clever>
dminuoso_: i also run nixos on my "router", but its just a server-grade motherboard with ecc ram and 2 gigabit NIC's
sigmundv has joined #nixos
<Dandellion>
philipp: ah I'm trying to set it up myself now, any logs or issue?
<clever>
Twey: and you cant pre-create a tap device with configuration.nix?
<philipp[m]2>
for example moving away from extraConfig and generating proper toml configs with sane default values. Right now the paths are completely messed up rn.
<Twey>
clever: I can precreate one, yes, but I need n, where n is determined at runtime :) Since each qemu VM needs a separate one
kiwi_1 has quit [Ping timeout: 260 seconds]
<clever>
Twey: ahh, yeah, thats where things get tricky
<infinisil>
philipp[m]2: Oh very relevant: rfcs#42
<{^_^}>
[nixpkgs] @bjornfor pushed commit from @r-ryantm to master « fpart: 1.1.0 -> 1.2.0 »: https://git.io/JvUzi
<Twey>
clever: What does ‘setuid-ish’ mean?
<dminuoso_>
clever: Oh and apparently my message didn't go through. Our switches are no different, except they have ASICs for hardware offloading.
<clever>
Twey: nixos generates a setuid wrapper, renames it to dumpcap in this case, and that wrapper then runs the real dumpcap, after gaining root
<dminuoso_>
(Because switching 5Tbit/s with nano second latency on general purpose CPUs is unfeasible)
mexisme has quit [Ping timeout: 245 seconds]
<clever>
dminuoso_: sounds a lot like the banana pi series of boards
<dminuoso_>
What do you mean?
<Twey>
clever: Aha. And the wrapper goes into the store?
<clever>
dminuoso_: basically, the switch IC out of most "dumb" switches, is capable of doing managed-switch tasks, but the cpu to drive the entire UI is missing
<clever>
dminuoso_: this is just a "dumb" switch ic, with the management interface wired to an allwinner a20 chip, along with 1 of the ethernet ports
<dminuoso_>
clever: Ah indeed. It's pretty much like that in big and expensive.
<clever>
dminuoso_: the critical problem with the banana pi, is that the "dumb" switch defaults to bridging every port, so your LAN and WAN are linked on bootup
<clever>
dminuoso_: only after linux boots, can linux tell it, "stop that, your supposed to be a firewall!!"
<dminuoso_>
clever: Yeah in our case its a bit more specialized, as these switches are 100G switches with 5Tbit/s backplane switching capacity. :)
<dminuoso_>
But other than that, it shouldn't be any different from your router
<clever>
dminuoso_: there is a spot on the bottom of the pcb for an eeprom, that stores the switch defaults, but the eeprom is missing, and the datasheets are nowhere to be found
<philipp[m]2>
infinisil: Yes, I wanted to implement just that. toml should be easy to do, when we already have yaml, right?
<dminuoso_>
Huh. Dont mind my last two messages, weechat was being weird.
Lears has joined #nixos
<dminuoso_>
clever: In fact all todays switches are like that, and most of them even run Linux - but you are usually jailed inside some magic frontend, so you cant access the linux at all.
<clever>
dminuoso_: the banana pi also looks like somebody couldnt decide where to stop with features
[Leary] has quit [Read error: No route to host]
<clever>
dminuoso_: it has hdmi, usb host, usb device, a bloody microphone right on the pcb, wifi, sata, lipo battery charging
reverbtank has quit [Quit: WeeChat 1.9.1]
<clever>
and even an IR port
reverbtank has joined #nixos
<infinisil>
philipp[m]2: yaml is a superset of json, which is why it's so easy
<clever>
dminuoso_: id say start by figuring out what uart you are using for the boot menu
<infinisil>
philipp[m]2: toml isn't, it will have to be implemented
<clever>
dminuoso_: and then try to enable early-printk for it in linux
<dminuoso_>
clever: Oh you know what, I just realized I can just look at how the debian servers boot...
<dminuoso_>
The linux kernel is the same, initrd stuff should in principle be comparable..
ThatDocsLady_ has joined #nixos
pikajude has joined #nixos
<clever>
dminuoso_: ah yeah, cat /proc/cmdline
<clever>
dminuoso_: and try to just `echo anything > /dev/ttyS0` and see if it comes out
ThatDocsLady has quit [Remote host closed the connection]
<clever>
dminuoso_: it could simply be ttyS1 thats going to the plug
<infinisil>
adisbladis: At least formats that have a conversion tool from json. I can't seem to find one for INI, but I guess we can use the Nix version still, or write a tool ourselves
erasmas has joined #nixos
rizary_ has quit []
<infinisil>
Though, currently that config format PR is made for nixpkgs/lib, where pkgs isn't available
rizary_ has joined #nixos
hoek has quit []
<dminuoso_>
clever: I think I have to address this in an hour from now. The cellular reception is so bad, I get connection losses from my console server every minute or so..
<dminuoso_>
This would be quite an interesting idea though. We could design a specialized nixos module for describing switches.
<dminuoso_>
And then we could operate our core network using nixops
hoek has joined #nixos
chessai has quit []
<abbradar[m]>
infinisil: philipp pinged me about TOML, I actually have a working `toTOML` ready - see github
chessai has joined #nixos
<philipp[m]2>
Because of course he has.
takeda has joined #nixos
<infinisil>
abbradar[m]: Nice!
<abbradar[m]>
I'm suuuure it has some edge cases not covered, I use `toJSON` for strings and stuff
<infinisil>
Yeah, I recently read through the toml spec, and there's a bunch of stuff in it
<abbradar[m]>
I tried to cover as much as possible, like nested objects, arrays of objects and stuff
nlofaro has quit []
nlofaro has joined #nixos
<Twey>
What are the valid options for `networking.interfaces.${interfaceName}`?
<Twey>
The manual mentions ipv4.addresses but that's all I can see
<clever>
Twey: `man configuration.nix`
<dminuoso_>
clever: Well its ttyS0 for sure. Is there a way to determine which IO port is used?
alexherbo20 has joined #nixos
<Twey>
Ooh, there's more stuff in there
<clever>
dminuoso_: if its standard x86 hardware, then the wiki i linked before should be correct
<Twey>
clever: Specifically I'd like to set `forward_delay` and `stp_state` on my bridge device
alex`` has quit [Ping timeout: 240 seconds]
alexherbo2 has quit [Ping timeout: 258 seconds]
alexherbo20 is now known as alexherbo2
<Twey>
clever: E.G. `ip link add bridge0 type bridge forward_delay 0 stp_state 0`
<Twey>
Ohh, there's `networking.bridges` for that — never mind :)
<clever>
Twey: though it only has 2 options
FRidh has quit [Quit: Konversation terminated!]
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<dtz>
haha wasn't trying but DARN so close to all 7's on the PR number
<clever>
:D
<{^_^}>
[nixpkgs] @KoviRobi opened pull request #77777 → Rosie init at unstable 2020-01-11 → https://git.io/JvU21
<multun>
:oooo
<infinisil>
And there it is!
<multun>
the number of the nix
<dtz>
hahaha
ajmcmiddlin has quit []
ajmcmiddlin has joined #nixos
gnidorah has joined #nixos
<gnidorah>
hi. how to regularly check all packages I maintain whether they build sucessfully?
<clever>
gnidorah: if your in the maintainer list, hydra.nixos.org should email you when they fail to build
<infinisil>
clever: This was turned off a long time ago
<clever>
ack!
sdier has quit []
sdier has joined #nixos
judson_ has joined #nixos
judson__ has quit [Remote host closed the connection]
<o1lo01ol1o>
we have a hydra server putting it's derivations in a private s3 bucket using it's aws credential profile, hurrah. However, now it no longer can locate logs for failed builds, is there a config option I can use to point it at the `s3://uri/log/?profile=foo`?
<fresheyeball>
if you want to see the actual build and code
<thomashoneyman>
has anyone here used yarn2nix (the moretea version) and patched a dependency?
<thomashoneyman>
a package in my package.json depends on another package which is failing, so i want to update the package i depend on's dependency list
<x123_>
Hmm, does anyone know how long it takes for a PR after being merged to master and commented with the backport thing to release-19.09 to actually show up in the channel? I'm just curious about https://github.com/NixOS/nixpkgs/pull/77772 as based on the mails or activity here it seemed like it was pushed to 19.09, but I assume there is some lagtime or bundling up that needs to happen on a semi-regular basis?
<fresheyeball>
but on gitlab its still stuck on "waiting for locks"
the_pumpkin_man[ has joined #nixos
<the_pumpkin_man[>
Hey, does anyone here use enso-os-greeter as lightdm greeter and noticed it doesn't work ? It's really strange, it has worked today but is now broken
englishm has quit [Ping timeout: 252 seconds]
kapil_ has quit [Ping timeout: 252 seconds]
TallerGhostWalt_ has quit [Ping timeout: 252 seconds]
jlpeters has quit [Ping timeout: 252 seconds]
jackdk has quit [Ping timeout: 250 seconds]
jbetz has quit [Ping timeout: 250 seconds]
vdemeester has quit [Ping timeout: 246 seconds]
waleee-cl has quit [Ping timeout: 260 seconds]
pkral has quit [Ping timeout: 260 seconds]
philipcristiano has quit [Ping timeout: 260 seconds]
hoek has quit [Ping timeout: 245 seconds]
peel has quit [Ping timeout: 252 seconds]
alunduil has quit [Ping timeout: 252 seconds]
valwal has quit [Ping timeout: 252 seconds]
ProofTechnique has quit [Ping timeout: 252 seconds]
steveeJ has quit [Ping timeout: 252 seconds]
kalbasit has quit [Ping timeout: 272 seconds]
jmeredith has quit [Ping timeout: 272 seconds]
tazjin has quit [Ping timeout: 272 seconds]
jared-w has quit [Ping timeout: 246 seconds]
fnords has quit [Ping timeout: 246 seconds]
midchildan has quit [Ping timeout: 248 seconds]
mpickering has quit [Ping timeout: 248 seconds]
sorear has quit [Read error: Connection reset by peer]
cqc_ has quit [Ping timeout: 250 seconds]
bgupta has quit [Ping timeout: 250 seconds]
etrepum has quit [Ping timeout: 250 seconds]
taktoa[c] has quit [Read error: Connection reset by peer]
carter has quit [Ping timeout: 264 seconds]
lally has quit [Ping timeout: 264 seconds]
c00w has quit [Ping timeout: 264 seconds]
savanni has quit [Read error: Connection reset by peer]
nlofaro has quit [Ping timeout: 245 seconds]
NemesisD has quit [Ping timeout: 245 seconds]
aristid has quit [Ping timeout: 252 seconds]
CustosLimen has quit [Ping timeout: 252 seconds]
feepo has quit [Ping timeout: 252 seconds]
mitsuhiko has quit [Ping timeout: 252 seconds]
techtangents has quit [Ping timeout: 260 seconds]
darkf has quit [Ping timeout: 246 seconds]
r0bby has quit [Read error: Connection reset by peer]
nkaretnikov has quit [Read error: Connection reset by peer]
Synthetica has quit [Read error: Connection reset by peer]
sevanspowell has quit [Ping timeout: 258 seconds]
pointfree has quit [Ping timeout: 248 seconds]
heatm1s3r has quit [Ping timeout: 252 seconds]
scott has quit [Ping timeout: 252 seconds]
evck has quit [Ping timeout: 252 seconds]
bitonic has quit [Ping timeout: 252 seconds]
thomashoneyman has quit [Ping timeout: 245 seconds]
teehemkay has quit [Ping timeout: 245 seconds]
victorbjelkholm_ has quit [Ping timeout: 246 seconds]
chrisaw has quit [Ping timeout: 264 seconds]
manveru has quit [Ping timeout: 264 seconds]
alanz has quit [Ping timeout: 260 seconds]
fnords has joined #nixos
nimblepoultry has quit [Ping timeout: 252 seconds]
hamishmack has quit [Ping timeout: 246 seconds]
joshmeredith has quit [Ping timeout: 246 seconds]
davidtwco has quit [Ping timeout: 246 seconds]
metalrain has quit [Ping timeout: 246 seconds]
teozkr has quit [Ping timeout: 246 seconds]
typetetris has quit [Ping timeout: 248 seconds]
scoates has quit [Ping timeout: 248 seconds]
emily has quit [Ping timeout: 248 seconds]
sevanspowell has joined #nixos
adamse has quit [Ping timeout: 245 seconds]
o1lo01ol1o has quit [Ping timeout: 240 seconds]
gnidorah has quit [Ping timeout: 272 seconds]
tertl3 has quit [Ping timeout: 272 seconds]
rizary_ has quit [Ping timeout: 272 seconds]
psyanticy has quit [Ping timeout: 272 seconds]
srhb has quit [Ping timeout: 250 seconds]
blackriversoftwa has quit [Ping timeout: 246 seconds]
ctp has quit [Ping timeout: 246 seconds]
marcinkuzminski has quit [Ping timeout: 264 seconds]
rodarmor has quit [Ping timeout: 252 seconds]
kitemikaze has quit [Ping timeout: 260 seconds]
lirzhv has quit [Ping timeout: 260 seconds]
psyanticy has joined #nixos
tazjin has joined #nixos
jbetz has joined #nixos
jlpeters has joined #nixos
peel has joined #nixos
midchildan has joined #nixos
cqc_ has joined #nixos
kalbasit has joined #nixos
jackdk has joined #nixos
bgupta has joined #nixos
feepo has joined #nixos
TallerGhostWalt_ has joined #nixos
ProofTechnique has joined #nixos
alunduil has joined #nixos
techtangents has joined #nixos
otti0815 has quit [Ping timeout: 240 seconds]
pkral has joined #nixos
mpickering has joined #nixos
kitemikaze has joined #nixos
adamse has joined #nixos
nlofaro has joined #nixos
NemesisD has joined #nixos
lally has joined #nixos
savanni has joined #nixos
ctp has joined #nixos
steveeJ has joined #nixos
dashkal has quit [Ping timeout: 240 seconds]
dukedave has quit [Read error: Connection reset by peer]
savanni has quit [Read error: Connection reset by peer]
psyanticy has quit [Read error: Connection reset by peer]
blackriversoftwa has quit [Read error: Connection reset by peer]
heatm1s3r has quit [Ping timeout: 245 seconds]
fnords has quit [Read error: Connection reset by peer]
sorear has quit [Ping timeout: 268 seconds]
fnords has joined #nixos
srhb has quit [Ping timeout: 245 seconds]
jackdk has quit [Ping timeout: 260 seconds]
ctp has quit [Ping timeout: 268 seconds]
dukedave has quit [Ping timeout: 260 seconds]
aristid has quit [Ping timeout: 260 seconds]
manveru has quit [Ping timeout: 272 seconds]
UndefinedIsNotAF has joined #nixos
boturl4r[m] has joined #nixos
scheming_around6 has joined #nixos
scheming_around6 is now known as butterthebuddha
<butterthebuddha>
How do I install a specific version of python with nix?
<butterthebuddha>
Such as python 3.6.5
<simpson>
If you don't need control over patchlevels, just minor versions, then there are names like `python36`.
fnords has quit [Max SendQ exceeded]
<simpson>
> python36Packages.flask.meta
<{^_^}>
{ available = <CODE>; description = "A microframework based on Werkzeug, Jinja 2, and good intentions"; homepage = "http://flask.pocoo.org/"; isBuildPythonPackage = <CODE>; license = <CODE>; name = <C...
<OmnipotentEntity>
butterthebuddha, I think a better question might be what are you attempting to accomplish? Are you trying to pick a specific version of python and packages for use with a specific program?
<OmnipotentEntity>
Or do you want a systemwide install of an older python for some reason?
<butterthebuddha>
omnipotententity I'm trying to use a specific version of python for a specific project
chenhq2005 has joined #nixos
<OmnipotentEntity>
And you have a nix shell script setup?
<OmnipotentEntity>
And you know about withPackages?
<butterthebuddha>
I'm setting up direnv, which I think accomplishes that for me?
<butterthebuddha>
not much
<butterthebuddha>
still getting to grips with The Nix Way
<OmnipotentEntity>
ok, to use direnv you need a nix.shell file and .envrc that tells direnv to start.
<OmnipotentEntity>
sorry, shell.nix
<hpfr[m]>
Does anyone have a better way of handling the nerd fonts package? It pulls the same 2GB from github every time, which is a huge time sink
<OmnipotentEntity>
let me throw an example into pastebin
work_ has quit [Quit: Connection closed for inactivity]
<butterthebuddha>
simpson Well the remote system my code is eventually going to has python 3.6.5 installed
<DigitalKiwi>
but you'd also avoid any security problems introduced since then!
<simpson>
butterthebuddha: Oh. You should tell them to patch up; it's been nearly 2yrs!
joshmeredith has quit [Ping timeout: 258 seconds]
<OmnipotentEntity>
oh, if you're worried about language compatibility then you're honestly probably fine on 3.6.10, and probably fine even on 3.7
<simpson>
omnipotententity: No, Python's minor version numbering is *precisely* for stdlib compatibility. Code written for 3.6 is not necessarily expected to run on 3.7 without changes. This is in stark contrast to the patchlevel.
<DigitalKiwi>
maybe they're sending pickles
<OmnipotentEntity>
I said probably, not certainly ;P
<{^_^}>
[nixpkgs] @yorickvP opened pull request #77784 → Sort the maintainer-list → https://git.io/JvUwP
captn3m0 has quit [Ping timeout: 272 seconds]
captn3m0- has joined #nixos
jmeredith has joined #nixos
victorbjelkholm_ has joined #nixos
Dandellion has quit [Quit: irc_error]
jonten has joined #nixos
hextionsw has joined #nixos
<hextionsw>
hello
<hextionsw>
doss it
hextionsw has left #nixos [#nixos]
butterthebuddha has quit [Remote host closed the connection]
mDuff has quit [Ping timeout: 272 seconds]
hextionsw has joined #nixos
<hextionsw>
hello
jonten has quit [Ping timeout: 258 seconds]
<OmnipotentEntity>
hello again
<hextionsw>
doss it 10.199.8.166
hextionsw has left #nixos [#nixos]
ThatDocsLady_ has quit [Ping timeout: 260 seconds]
<OmnipotentEntity>
you want us to ddos a local IP?
<OmnipotentEntity>
fuck off please
<gchristensen>
omnipotententity: please watch the language and remain curteous, even to such strange people :)
<OmnipotentEntity>
right, sorry
<gchristensen>
thanks
cinimod`` has joined #nixos
<OmnipotentEntity>
Potentially stupid question/problem. I have an application compiled against CUDA 10.1 (also tested against 10.2 using a custom derivation) and I'm running driver version 440.44, yet I'm getting "CUDA driver version is insufficient for CUDA runtime version" what am I doing wrong?
<nahamu>
what cuda version does `nvidia-smi` report?
<OmnipotentEntity>
10.2
UndefinedIsNotAF has quit [Read error: Connection reset by peer]
butterthebuddha has joined #nixos
<butterthebuddha>
Why do clang and gcc come with "wrappers"/
<butterthebuddha>
"wrappers"?*
ctp has joined #nixos
<clever>
butterthebuddha: to add things to -I and -L, even if the build system overwrites CFLAGS
<OmnipotentEntity>
If you need a specific version of gcc or clang, it's better to use that specific environment (vs the std one)
kapil_ has quit [Quit: Connection closed for inactivity]
srhb has joined #nixos
jackdk has joined #nixos
alanz has joined #nixos
<witchof0x20>
How would I do a nixos-rebuild using a custom nixpkgs directory? I thought it was `-I NIXPKGS=/path/to/nixpkgs` but it seems i'm remembering incorrectly
<infinisil>
witchof0x20: lowercase the nixpkgs
<witchof0x20>
infinisil: ahh case sensitivity strikes again. Thanks!
xelxebar has quit [Remote host closed the connection]
<Valodim[m]>
I mean I could let it build, but I'd really rather not have to?
<Valodim[m]>
oh actually, it seemed to work now without any [ CC ] lines in the output
<Valodim[m]>
maybe I'm just confused :)
<DigitalKiwi>
that makes 2 of us
andymandias has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @witchof0x20 opened pull request #77786 → [WIP] pcsc-safenet: init at 9.0.43-0 → https://git.io/JvUrH
andymandias has joined #nixos
virus_dave has quit [Quit: virus_dave]
virus_dave has joined #nixos
justanotheruser has joined #nixos
wpcarro has quit [Ping timeout: 260 seconds]
<witchof0x20>
Hmm. I have a proprietary library that depends on openssl 0.9. It seems to work when i have in the environment LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./lib where lib is a folder containing the symlink libcrypto.so.0.9.8 to ${openssl}/lib/libcrypto.so.1.1
<witchof0x20>
What would be the best way to package this library? Should I have it depend on an overrided version of openssl (previous version) or try to change the dependency
<dhess>
Dumb question time: let's assume I have an Emacs package that wants to call out to an executable, say, brittany, but brittany doesn't come with a nice nixpkgs Emacs package, like structured-haskell-mode does. How can I get brittany in Emacs's exec-path declaratively?
gnidorah has quit [Quit: Connection closed for inactivity]
lambda-11235 has joined #nixos
<dhess>
I tried wrapping it all in a buildEnv using paths=[...] but Emacs doesn't see the non-Emacs paths that're in there.
<dhess>
I don't see anything in the Emacs section of the Nixpkgs manual that covers this situation.
risson has quit [Ping timeout: 245 seconds]
sk8forether has quit [Quit: Connection closed for inactivity]
<hpfr[m]>
nixos-install says “Failed to set LoaderSystemToken EFI variable: No space left on device”, but /mnt/boot is only 4% used. Running nixos-install again gives the same error. I’m installing over an old installation, do I have to delete what’s already on /boot?
<LouisDK>
I want to install a package from a custom version of nixpkgs but it fails: https://pastebin.com/t6Ctmhi2 - any idea why?
jgeerds__ has joined #nixos
<rengglian>
did not solve the problem
fusion809 has joined #nixos
Theuni2 has joined #nixos
<rengglian>
there is also this message /nix/store/y386dalhqyd4cc7ix4nyamfcifjxg7cs-cmake-3.15.1/share/cmake-3.15/Modules/FindZLIB.cmake:115 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
<hr[m]>
Hi all. I've submitted a new 'init' pr to nixpkgs, you can see it just above, for the new tool cassowary. Relevant links, https://github.com/NixOS/nixpkgs/pull/77790 and https://github.com/rogerwelin/cassowary I currently don't have access to test the build on my NixOS machine. Could one of you try building the PR on NixOS? Thanks
<infinisil>
hr[m]: Not being able to build will be a problem for contributing, what's the problem?
felixfoertsch has joined #nixos
<reverbtank>
quit
reverbtank has quit [Quit: WeeChat 1.9.1]
ee194350 has quit [Ping timeout: 260 seconds]
erasmas has quit [Quit: leaving]
ee194350 has joined #nixos
erasmas has joined #nixos
domogled has quit [Quit: domogled]
<hr[m]>
@infinisil I’m away from my NixOS desktop for a few days. It builds fine on MacOS and should also build fine on NixOS. I can test builds most of the time on NixOS, just can’t today as I’m not at a NixOS machine.
<infinisil>
Ah so it's just nixos you can't test it on
joepie91 has joined #nixos
<erasmas>
I am running into infinite recursion in a hydra build, but when I use nix-build on the same release file it works fine
<erasmas>
the only thing I can think of is I have some nested libraries with lots of their own callPackage definitions. is there some safer way to scope those or have packages call each other?
<hr[m]>
infinisil: yeah
f0x has joined #nixos
fragamus has joined #nixos
<{^_^}>
[nixpkgs] @Infinisil closed pull request #30284 → fish: always set up the basic Nix env during shell initialization → https://git.io/vdVQb
cap_sensitive has joined #nixos
teozkr has joined #nixos
ixxie has joined #nixos
<cap_sensitive>
Hi. I'm running nixos on rpi4, with linuxPackages_rpi4 and rpi foundation's bootloader. How to enable the "dtoverlay=xxxx"? I've tried to put that ine in boot.loader.raspberryPi.firmwareConfig, but no /boot/overlays is getting created
fragamus has quit [Ping timeout: 268 seconds]
fragamus has joined #nixos
savanni has joined #nixos
fragamus has quit [Client Quit]
o1lo01ol1o has quit [Remote host closed the connection]
wildtrees has quit [Ping timeout: 265 seconds]
rengglian has quit [Remote host closed the connection]
lsix has quit [Quit: WeeChat 2.6]
o1lo01ol1o has joined #nixos
virus_dave has quit [Quit: virus_dave]
vidbina_ has quit [Ping timeout: 265 seconds]
Neo-- has quit [Ping timeout: 265 seconds]
phreedom has quit [Remote host closed the connection]
<dhess>
infinisil: now that hie 1.0 is out, there's no need to use all-hies.bios.selection anymore in your all-hies derivation, correct?
<dhess>
i.e., all HIEs are now hie-bios?
<infinisil>
Yeah
<infinisil>
I should remove that now
<dhess>
cool. Thanks for that by the way, it's awesome.
<hpfr[m]>
Im updating nixos channel and download of 13MB nixexprs file from releases.nixos.org is chugging along at 20KB/s meaning a 10 minute download time. Is something wrong?
virus_dave has joined #nixos
<gchristensen>
hpfr[m]: releases.nixos.org is AWS CloudFront, and behind that AWS S3, which is typically not having problems
wiml has joined #nixos
<erasmas>
has anyone here had recursion issues with packages that define their own callPackage function? is there a better way for some file foo/default.nix to load modules foo/a and foo/b ?
jonten has quit [Ping timeout: 272 seconds]
domogled has joined #nixos
Neo-- has joined #nixos
<infinisil>
,dnw erasmas
<{^_^}>
erasmas: Provide as much info as possible on problems. What specifically doesn't work? What command did you run? What's the error? This makes debugging easier and helps getting faster responses
<erasmas>
the specific problem is kind of a nightmare. I run nix-build on a release file and it works fine, I have hydra run the release file and it recurses until it runs out of memory or fails
alex`` has quit [Ping timeout: 258 seconds]
<erasmas>
no good error messages, no specifics. strace shows it's stuck on the splice packages code in nixpkgs
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo25 is now known as alexherbo2
<erasmas>
but since it's almost impossible to create something reproducible I'm going to start by cleaning up what I have
<erasmas>
and I'd like to know best practices for modules that need to load sub packages
<mDuff>
erasmas: ...huh. I do override callPackage successfully in a proprietary codebase, but well, it's proprietary, so I can't share any examples of how I do it successfully here.
<infinisil>
callPackage should really not be the problem, unless it's really weird code
<infinisil>
erasmas: You sure the hydra machine just doesn't have enough memory?
<erasmas>
yeah, if I bump up memory it eventually fails and says `error: stack overflow (possible infinite recursion)`
<erasmas>
which strace confirms since it keeps loading the same splicePackages code over and over
alex`` has joined #nixos
<erasmas>
does hydra do anything special with how it loads the main nixpkgs set? if some other hydra input (like a git checkout) runs import on the nixpkgs source would that cause an issue?
tomberek[m] has joined #nixos
<erasmas>
does anyone have an example of nix library code that exists outside nixpkgs? a derivation containing helper functions that could be used as a hydra input
__monty__ has quit [Quit: leaving]
johrmungand has joined #nixos
<mDuff>
erasmas: IIUC, hydra runs in pure evaluation mode, and doesn't allow generated code at all.
<erasmas>
what does generated code mean in this context? I think any expression can import <derivation> right?
<johrmungand>
Hey guys, (heads up: noob question) I am aware of the fact that /bin/sh is in fact bash, but when running scripts that has the standard bash shebang it obviously errors out, I was wondering is there a way to prevent that (I have hundreds of already written scripts) I don't really fancy running ``` bash script.sh``` everytime I run a script (also I'm pretty sure this doesn't work with autocorrect, but I need to double check)
<infinisil>
johrmungand: You can rewrite your scripts to use #!/usr/bin/env bash
<johrmungand>
I know I can rename them in batch but it really defeats the point of having cross compatible scripts
<johrmungand>
Edit* not rename
<erasmas>
also, /bin/sh is not guaranteed to be bash. depends on your distro and version. could be sh, dash, etc
<samueldr>
that's the point, /bin/bash is not a universal compatible shebang
<johrmungand>
infinisil: is there any other solution other than editing them? erasmas I meant in nixos
oharvey has quit [Disconnected by services]
<samueldr>
POSIX only describes /bin/sh and /usr/bin/env as being available IIRC
<samueldr>
in BSD-land /bin/bash often doesn't exist
<infinisil>
johrmungand: There is no reasonable alternative solution
<infinisil>
Is there a problem with editing them?
rajivr___ has joined #nixos
<johrmungand>
So other than editing each individual script (which I don't want to do) is there any way to make /bin/bash actually work? Like a link or something? (I'm just guessing with no prior research)
<drakonis>
in BSD-land you get bash in /usr/local/bin/bash
<drakonis>
but its best to use /usr/bin/env for that
lassulus has quit [Ping timeout: 265 seconds]
<johrmungand>
infinisil: the scripts are for a school thing and they don't run nix (and it would frankly be a drag to keep editing before sending and when receiving modifications)
<infinisil>
johrmungand: There won't be a problem with #!/usr/bin/env bash
<johrmungand>
The scripts have very small bash specific features (I forgot the term)
mDuff has quit [Ping timeout: 258 seconds]
<johrmungand>
infinisil: thank you, I'll look into it
lovesegfault has joined #nixos
<samueldr>
johrmungand: you could make the symlink to bash in /bin, the root filesystem is not read-only
sigmundv__ has joined #nixos
wildtrees has joined #nixos
<notgne2>
there's probably a way to do it from Nix too, no? I mean binsh is a configurable option
<samueldr>
but it's preferrable to use #!/usr/bin/env bash as it's the only true portable invocation
<infinisil>
johrmungand: samueldr: Very much not recommended though.. ^^
<samueldr>
yes
<notgne2>
unless its just using activationScripts
<johrmungand>
I'll stick to "#!/usr/bin/env bash" then infinisil
jackdk_ has joined #nixos
o1lo01ol1o has quit [Remote host closed the connection]