<{^_^}>
[nixpkgs] @BBBSnowball opened pull request #120125 → nixos/nextcloud: Rename option disableImagemagick to enableImagemagick → https://github.com/NixOS/nixpkgs/pull/120125
<davidak[m]>
can you try to reproduce my kernel issue on unstable? i have easy steps to reproduce. i see amdgpu errors, so it would be interesting to see what happens with nvidia there https://github.com/NixOS/nixpkgs/issues/119843
<{^_^}>
#119843 (by davidak, 2 days ago, open): unable to resume from suspend
<samueldr>
read linked PRs, sorry I don't have much details :)
<reptarmigan>
I'm poking around with rocket lake Iris Xe video support (figured it out, sorta had to force the i915 driver to probe, but my usual favorite plasma/kde is awefully flaky for some reason)
<reptarmigan>
oddly enough a fresh user's kde session seems better, but menus have funky artifacting, I can't even switch over to firefox right now (in x11 kde atm)
<cole-h>
rmcgibbo[m]: ping
Mateon1 has joined #nixos
<reptarmigan>
might be time to switch to sway for a bit, so far it comes up, but I don't have any config and my i3 kung-fu has faded with time.
exondation has quit [Read error: Connection reset by peer]
<reptarmigan>
I'll just go shamelessly steal someone's hard work from the internet and try to figure it out from there, I never did quite get settled in to vim shortcuts on a dvorak keyboard, I use micro for editing everything, except I find it gets weird on tty, so many cool things to get good at, so little time.
<supersandro2000>
cole-h: I only have a couple hundred at the time... thats not that much
<cole-h>
hahaha, sorry :D
<supersandro2000>
cole-h: python39 will be the new python3 shortly/already/in a short while
<supersandro2000>
so it should work
<cole-h>
OK, good thing I decided to disable all the failing tests due to changes (I assume) :)
<evils>
supersandro2000: i'm testing build time of #119986 now; i'll also bump the unstable package to the latest; was there anything else blocking merging?
<supersandro2000>
evils: me taking a look at this tomorrow
<evils>
huh, firefox just froze after starting nix-build (had it happen before with nixpkgs-review)
<gchristensen>
you could nice down nix-daemon
ahmed_elgabri has joined #nixos
<evils>
last time it happened, firefox didn't thaw
<evils>
also, i then wouldn't have a comparative metric to the usual 15-20 minutes it takes to build kicad
<evils>
i've had some audiostutters when doing nix-build in the past, but locking up firefox until it's restarted is new (and i assume restarting it while the build is still running would lock it up again)
<radvendii>
supersandro2000: why lib.optionals over lib.optional?
<samueldr>
lib.optional returns an empty list if false
<samueldr>
both are made for lists
<supersandro2000>
🤔
<radvendii>
supersandro2000: oh! i didn't realize that. thanks
<supersandro2000>
good damnit no
<radvendii>
oh
<radvendii>
oh
<radvendii>
i didn't read the rest of the messages lol
<samueldr>
did I miss anything? I jumped in with not a lot of backlog read
<supersandro2000>
tbh we should just throw one away
<adisbladis>
Why tho?
<adisbladis>
The case of adding a single optional dependency is a very common one
<samueldr>
I kind of agree, easy to make mistakes with `lib.optional`, but not sure we _should_
<samueldr>
e.g. lib.optional (...) [ something something ]
<samueldr>
looks almost like lib.optionals (...) [ something something ]
<radvendii>
oh, and it's not like that would cause an immediate error either
<samueldr>
all depends on what the evaluation does
<radvendii>
it would just result in [ [ something something ] ]
<radvendii>
yeah
<radvendii>
right
<radvendii>
okay, i'm sold. lib.optional is a mistake
<samueldr>
it's not a footgun, it's maybe a foot toy slingshot
<samueldr>
but I still use lib.optional in places
<radvendii>
in any case, supersandro2000 I made those changes. also to the MAR1D version bump from earlier. Is it important to squash all the commits? or will only the merge commit show up in nixpkgs anyways
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/JO6b7
<fresheyeball>
radvendii: I think it will still build it
<fresheyeball>
I am looking to save on build time
<radvendii>
fresheyeball: oh i see. correct, it will still build it just remove it afterward
<radvendii>
fresheyeball: is there something you can pass the build system to tell it to only build some of the executables? if so, you can pass it through nix. if not, i'm not sure how nix would get it to happen
lawr3nce_ has quit [Remote host closed the connection]
<nix>
When experimenting with switching to flakes, I broke my home-manager. So now I want to install it declaratively inside of my flake.nix.. But I can't uninstall the home-manager because of the error: `error: file 'home-manager/home-manager/home-manager.nix' was not found in the Nix search path (add it using $NIX_PATH or -I)`. Can anyone help with this?
<DavHau[m]>
Is there any way to tell my nix, not to execute builds via the nix daemon, and instead build like on a single user installation. The problem is with remote building. If it uses the daemon, then it requires the root user to have passwordless access to the remote builder. I'd like it to use my users ssh-agent instead.
<gchristensen>
DavHau[m]: you can only do that as root, can you create an SSH key that is ForceCommand'd to only run nix-store --serve on the remote builder?
jonringer has joined #nixos
<Nicky>
Hi all! I am using nix package manger on Ubuntu. I install obsidian with nix-env. When I want to upgrade packages I get the following information: upgrading 'obsidian-0.11.13' to 'obsidian-47.04a'
<Nicky>
This means the package manager is upgrading nixpkgs.obsidian to nixpkgs.dwarf-fortress-packages.themes.obsidian for some reason. Looking at the versioning. Any tips how to get to the root cause?
<Nicky>
Hi all! I am using nix package manger on Ubuntu. I installed obsidian with nix-env (nixpkgs.obsidian). When I want to upgrade packages I get the following information: upgrading 'obsidian-0.11.13' to 'obsidian-47.04a'
<Nicky>
This means the package manager is upgrading nixpkgs.obsidian to nixpkgs.dwarf-fortress-packages.themes.obsidian for some reason. Looking at the versioning. Any tips how to get to the root cause?
<gchristensen>
that is very bizarre, Nicky
<gchristensen>
I am guessing it is making a name-based match ... what if you did nix-env -iA nixpkgs.obsidian ? this should install a newer updated version
cfinch has quit [Read error: Connection reset by peer]
<DavHau[m]>
<gchristensen "DavHau: you can only do that as "> Yes I could do that. But it complicated configuration unnecessarily. I would like it to ignore the daemon and just act like on a single user installation. I guess it must be possible somehow
<gchristensen>
the only way to do that is run nix-build as root
<Nicky>
nix-env -iA nixpkgs.obsidian = is doing it correct. I reinstalls nix-env -iA nixpkgs.obsidian
<Nicky>
When I do a nix-env -u '*' I get: upgrading 'obsidian-0.11.13' to 'obsidian-47.04a'
<DavHau[m]>
<LinuxHackerman "DavHau: using `ssh://build-host?"> Thanks, but that doesn't seem to work. Still getting a permission denied (publickey) error
pniedzwiedzinski has left #nixos ["User left"]
Felix[m]7 has joined #nixos
<radvendii>
how do i figure out which package a binary is in? my understanding is it somehow uses nix-index, but the help text for nix-index doesn't mention anything like that
<LinuxHackerman>
DavHau: ooh right, missed that bit. If you have your ssh-agent running with a fixed socket path, you should be able to set systemd.services.nix-daemon.environment.SSH_AUTH_SOCK to it to make remote builds use your ssh-agent.
<atemu12[m]>
How can you apply a patch to a subdir in mkDerivation?
<qyliss>
radvendii: I usually do nix-locate /bin/hello
<qyliss>
(nix-locate comes with nix-index)
<LinuxHackerman>
radvendii: if it's for an installed package, usually `readlink -f $(which hello)` is helpful. Otherwise what qyliss says :)
MichaelRaskin has joined #nixos
<radvendii>
yeah, this was for an uninstalled package
<radvendii>
thanks
<radvendii>
nix-locate is what i was missing
<AmandaC>
Will `Number of evaluations to keep` affect just the hydra machine's local nix store, or also the binary cache it's configured to send to?
<AmandaC>
LinuxHackerman: I was just assuming it was keeping them from being GC'd from the store as well
futile has joined #nixos
<LinuxHackerman>
ah, yeah, possible. Though it doesn't seem super likely to me that hydra would keep roots around for anything that's not currently needed for building
<futile>
hi, anyone know how to adjust a systemd ".device" file in my system configuration?
<futile>
more specifically, I want to change the TimeoutStart parameter for dev-vboxguest.device
<LinuxHackerman>
ok, no, it actually does keep roots around :) not sure exactly waht though.
<AmandaC>
LinuxHackerman: well, any non-changed derivations in between would be faster if not GC'd
<futile>
but there is no `systemd.devices` option
<DavHau[m]>
<LinuxHackerman "DavHau: ooh right, missed that b"> Thanks, tried that, but still same issue. But also I noticed it wouldn't make any sense at all. During the nix build it reconnects to the builder again and again. That means, after 1 hour the build will get stuck, because I have to type in my ssh key pw again.
<Kinnison>
Speaking of bootstrapping, does anyone know what state we're at for riscv-linux in nixos?
<Kinnison>
The info i could find wasn't great
<noj>
Hey, I usually use GNOME as my desktop env, but tried KDE. Now the Wayland GNOME session won't start. The X11 version will start though. Any suggestions on where to look?
<sterni>
Kinnison: um not sure, you could try and see if nix-build -A pkgsCross.risv64.nix fails at some point
<sterni>
and ideally fix it if it breaks :)
<pennae>
are some of the github checks perhaps a bit more eager than is useful? seems the editor config check failed on us for whitespace that was there already and was left untouched
<Kinnison>
sterni: Hmm, maybe when my current nixperiment is finished :D
<Kinnison>
is it a general thing `pkgsCross.$arch.$pkg` ?
<sterni>
I have no idea if native stdenv works on riscv though, but you can probably just rely on native cross compilation
<sterni>
Kinnison: yes!
<Kinnison>
neat
<sterni>
it is not very discoverable unfortunately, but you can nix repl '<nixpkgs>' and hit tab after pkgsCross. to get an impression of what is theoretically supported
<sterni>
a lot is broken of course or only specific stuff works
<Kinnison>
heh
<sterni>
broken as in not yet fully working of course :)
<pennae>
coming from gentoo and arch the nix model of cross-compilation is *so good*
<Kinnison>
nix-repl> pkgsCross.riscv64.nix
<Kinnison>
error: Package ‘boost-1.69.0’ in /nix/store/32lhz06mnw9pbsxymkqdpsslcdkdh017-nixpkgs-21.05pre282452.e8893cc489d/nixpkgs/pkgs/development/libraries/boost/generic.nix:131 is not supported on ‘riscv64-linux’, refusing to evaluate.
<Kinnison>
awww
<sterni>
:'(
<sterni>
Kinnison: may be though that it's not boost in general just the derivation
<sterni>
but could be quite some work
<sterni>
who knows
<cole-h>
there is a chance that it's just a too-restrictive meta.platforms bound
<Kinnison>
sterni: looking at boost, there's lots of versions in nix.
sangoma has joined #nixos
<Kinnison>
s/nix.$/nixpkgs./
<cole-h>
you could try overriding it to lib.platforms.all and see what happens
_0x0ff has joined #nixos
<ajs124>
it has "badPlatforms = […] optionals (versionOlder version "1.73") lib.platforms.riscv"
<sterni>
Kinnison: nix uses pkgs.boost
<ajs124>
so someone seems to have put this there on purpose
<cole-h>
still, maybe it's a problem that has been since addressed :)
<sterni>
does nix compile with a newer boost I wonder
<qyliss>
but there was also signs in there that previously, we'd had working cross-compilation to NetBSD
<qyliss>
so I went back through the git history to try to find a point where it worked
<qyliss>
I couldn't find one, but with old Nixpkgs only a few tweaks were required to make it work
<qyliss>
Then I brought them forward, fixed NetBSD cross-compilation, and since then I'm just trying to get all of pkgs.netbsd to actually build for NetBSD, and I'm also trying to get Nix to cross-compile for it (currently blocked on perl)
<cole-h>
awesome
<qyliss>
I think Nix has a lot of unrealised potential as a portable package manager
<{^_^}>
#119916 (by Ericson2314, 2 days ago, open): netbsd: Generalize builder to any-bsd setup hook
<qyliss>
was just opening it up for another look
<qyliss>
fixing all the NetBSD stuff is really fun because most of the time it's just hard enough to be interesting without making me get stuck too much
<qyliss>
and fixing each package has a very quick turnaround
<qyliss>
so every time I get bored or frustrated with other work I just bang out a couple of NetBSD fixes and then I feel good again
<cole-h>
hehe
<MichaelRaskin>
Definitely one of the more constructive addictive activities!
<qyliss>
gchristensen: thanks for linking that, I didn't know about it
<gchristensen>
:)
<qyliss>
Ericson2314: looks good, great work
<SumnerEvans[m]>
ma27 ekleog Ralith (IRC) (and any other matrix maintainers) would you be open to a PR that converts the nixos/matrix-synapse module to use the YAML generator instead of manually creating the config YAML as it is doing now?
<Ericson2314>
qyliss: very much agreed it is (now that the regressions are fixed) the right amount of difficulty!
<SumnerEvans[m]>
ma27: yes, I would keep all of the existing options, and the `extraConfig`, but add `settings` (which would be a nix attrset that would be merged in)
<ma27[m]>
sounds like a good idea then IMHO :)
<pennae>
please to the same for the logConfig while you're at it :D
<SumnerEvans[m]>
OK. I'll work on it. pennae not sure if I'll do that as part of the first round, but I'll keep it in mind :)
cfinch has quit [Ping timeout: 240 seconds]
f4r59 has joined #nixos
cfinch has joined #nixos
<pennae>
okay, here's a thing that might classify as stupid: is anyone using nix modules to configure their network (ie switches, access points etc)?
<scoates>
is there a single-command installer for nix on macOS? things improved through Catalina but seem to be broken again (asking me to run different commands that eventually fail due to my combination of Big Sur and no T2 I guess).
<simpson>
pennae: Some folks run NixOS or similar nixpkgs-based userlands on their Linux-capable routers, but that's probably not what you're talking about.
<pennae>
srhb: switch config is rather hard to roll back with a reboort of the machine that configured the switch occasionally
ahmed_elgabri has quit [Ping timeout: 276 seconds]
<srhb>
pennae: Oh, I see. Our plan was mostly just to use modules to generate the final configs, whatever they may be.
<pennae>
simpson: yeah, was thinking more about (what we're doing:) having a networking. like hierarchy in the nixos config that describes the topology, generates config files, etc
<srhb>
We rarely use rollbacks, and generally just git revert and rebuild.
<pennae>
we bricked a tp-link switch by generating config files with too long lines, that was fun to get back up
<srhb>
I imagine we'll have fun with that too.
cfinch has quit [Read error: Connection reset by peer]
sangoma has quit [Ping timeout: 260 seconds]
<pennae>
is real nice though to have a single config we can push to our management machine with nixops and just have it set up the entire network as necessary. (even if the network is small enough to not need that)
<srhb>
But nixos modules compose nicely and are great to reason about. It's my favourite tool for generating configs for, well, basically everything.
<pennae>
yeah, that exactly
<simpson>
I guess it depends on your needs and tolerances. I'm currently decentralizing my homelab because it's too brittle to have all of the code live on just one machine.
<Cadey>
what is the aarch64 nixos story on AWS?
<Cadey>
and/or is there one?
<simpson>
#nixos-aarch64 would know more, but AIUI folks have been recently trying to figure that out. Something something Graviton.
<pennae>
there was some package deep in the dependency stack of anything network that failed to build without networkmanager ... kind of tempted to go chase that
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
afr has joined #nixos
stree has joined #nixos
afr has quit [Remote host closed the connection]
afr has joined #nixos
fresheyeball has joined #nixos
<fresheyeball>
is there a way to build just one executable from a haskell package?
<SumnerEvans[m]>
What is the best way to do an optional element of an attrset? I've seen mkIf used before, but that sometimes doesn't work (and I don't exactly understand the situations where it does/doesn't work).
beertoagunfight has quit [Read error: Connection reset by peer]
<thibm>
SumnerEvans[m]: it depends what you're trying to achieve
<thibm>
"an optional element of an attrset" does not really mean anything by itself
<cole-h>
> lib.optionalAttrs true { a = 1; }
<{^_^}>
{ a = 1; }
<cole-h>
> lib.optionalAttrs false { b = 2; }
<{^_^}>
{ }
<SumnerEvans[m]>
Basically, I have a config attribute (call it Y) that is of type `nullOr str`, and I want to do something like: `x = { attribute = mkIf (cfg.Y != null) cfg.Y; attribute2 = cfg.Z; };`
<pennae>
well, turning it into an attrset first of course.
wnklmnn has joined #nixos
<SumnerEvans[m]>
I guess that would work. Seems a bit ugly since there are quite a few of these in a row, but I can go with that.
judson_ has joined #nixos
<pennae>
if they're all nullOr you could // filterAttrs (_: v: v != null) { ... }
ManiacOfMadness has joined #nixos
<SumnerEvans[m]>
Oh, that sounds good!
<remexre>
is there a way to add a new output to a derivation (well, make a new derivation with an additional output) that refers to the outputs of the previous ones?
<fresheyeball>
well I found `buildTarget` and set that
<fresheyeball>
with overrideCabal, and it does only build that target
<fresheyeball>
but the drv still fails because it's try to copy out the other targets into /bin
<redmp>
hi! i've noticed that dbus-daemon processes and fuser-overlay processes leak when i use podman on nixos-20.09
<redmp>
since this is probably a bug in podman, not nixos, is it safe to just override the podman package in my configuration.nix with a newer version from unstable?
bitmapper has quit [Quit: Connection closed for inactivity]
<redmp>
oh, lol. i've already tried doing this and failed.. i have an overlay in my configuration.nix which sets podman to an overridden version 3.1.0 and also overrides its src with a fetchFromGithub
redisusr has joined #nixos
<redmp>
https://termbin.com/k9xj -- could somebody take a look and let me know if there's something obviously wrong?
redisusr has quit [Changing host]
redisusr has joined #nixos
<Synthetica>
redmp: If I read the source correctly you should be able to set virtualisation.podman.package
<Synthetica>
(don't use podman tho)
<aleph->
Hmm, is there something wrong with this overlay snippet? Overriding python3Packages to include the rokuecp lib. https://paste.rs/ZeH However when I try to override the home-assistant package and include it as an extraPackage (https://paste.rs/R3w) my build errors out with: `error: undefined variable 'rokuecp'`
lsix has quit [Ping timeout: 260 seconds]
<redmp>
Synthetica: i don't have a virtualisation.podman.package in my configuration.nix
<Synthetica>
Can't you add it?
<redmp>
Synthetica: sorry, i meant it's not an option in `man configuration.nix`
<redmp>
Synthetica: why'd you say "don't use podman"? i have to use it for a class I TA.. i'd prefer not to have docker because of the priv escalation issues
<Synthetica>
redmp: Sorry, I meant that _I_ don't use podman
<Synthetica>
Not that it shouldn't be used in general
<redmp>
Synthetica: lol, no worries. :) i don't particularly care for the model of containerization popularized by docker, fwiw
cfinch has joined #nixos
<redmp>
I guess it's time for me to actually run a fork of nixpkgs on my system instead of trying to just modify it with overlays
pen has joined #nixos
hiro98 has joined #nixos
ahmed_elgabri has quit [Ping timeout: 276 seconds]
<redmp>
> Oh, the internal flag just hides it from the manual
lsix has joined #nixos
<{^_^}>
error: syntax error, unexpected ',', expecting ')', at (string):494:3
<redmp>
i totally munderstood what you meant by ^ Synthetica
<redmp>
Synthetica: ok, yeah, i set virtualisation.podman.package to an overridden package (the one from the overlay pasted above) and it didn't work; maybe the overlay is wrong; i'll keep experimenting
<SumnerEvans[m]>
ma27: I realized there's a problem. The `extraConfig` option for Synapse expects YAML, but the `toYAML` generator is just an alias for `toJSON`. I would like to deprecate, but I'm not sure if that's the best idea. Also, there are quite a few additional config settings that are deprecated, what should I do about those?
<gchristensen>
SumnerEvans[m]: JSON is valid YAML
<SumnerEvans[m]>
gchristensen: I know, but you can't mix the two in a single file at the root level.
<gchristensen>
oh I see
<pennae>
but you can include the extraConfig as a separate file
<redmp>
Is there anything special about overriding a uildGoModule?
<SumnerEvans[m]>
pennae: beat me to saying that by 2 seconds haha
<gchristensen>
have a build step that takes the json + extraconfig and merges them together
<SumnerEvans[m]>
That would require parsing the YAML into JSON, though, right?
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ahmed_elgabri has joined #nixos
<gchristensen>
I'm sure you're smart and capable enough at solving this, I don't need to stick my nose where it doesn't belong :D
<gchristensen>
roberth: does sbtix work for more than scala? or am I just totally mislead by the sbt bit?
<roberth>
it does arbitrary things during the build, as is traditional in maven-land, so I wouldn't be surprised. I don't think it's supposed to though?
<redmp_>
hrm.. so even after overriding podman to version 3.1.0 it still leaks dbus processes with every command lol
sangoma has quit [Read error: Connection reset by peer]
mitsuhiko has quit [Ping timeout: 240 seconds]
<pennae>
leaking dbus? that sounds familiar
jared-w has quit [Ping timeout: 240 seconds]
sorear has quit [Read error: Connection reset by peer]
Quick_Wango has joined #nixos
cfinch has quit [Read error: Connection reset by peer]
<redmp_>
pennae: i don't follow
<pennae>
libreoffice is currently leaking dbus processes if DBUS_SESSION_BUS_ADDRESS isn't set, because the wrapper script will spawn one then and not kill it again
<redmp_>
ah..
<pennae>
can't immediately find anything like that in podman though
<ma27[m]>
Sumner Evans: if there's no other way round (e.g. by including other files in the config), it may be an option to remove the option with `mkRemovedOptionModule`. Regarding deprecated settings: are there alternatives? If the options don't exist on latest synapse anymore, it should be fine to remove these.
<pennae>
redmp_: ah, that does make things easier somewhat
<SumnerEvans[m]>
There are a few for which there are alternatives. There are some that are entirely removed. I'll split those out into separate commits so it's clear to see what I've done.
philipcristiano has joined #nixos
<redmp_>
pennae: well perhaps, if it had worked!
jefferai has joined #nixos
aveltras has joined #nixos
s1341_ has joined #nixos
Synthetica has joined #nixos
<redmp_>
i'll look at the other differences between nixos-20.09 and nixos-unstable and see if i can figure it out
dgonyeo has joined #nixos
lally has joined #nixos
sorear has joined #nixos
vdemeester has joined #nixos
joshmeredith has joined #nixos
ryjm has joined #nixos
ShalokShalom has joined #nixos
Lord_of_Life_ has joined #nixos
alanz has joined #nixos
mitsuhiko has joined #nixos
aristid has joined #nixos
ctp has joined #nixos
JadoJodo has joined #nixos
johari has joined #nixos
nz__ has joined #nixos
teozkr_ has joined #nixos
davetapley has joined #nixos
jared-w has joined #nixos
wpcarro_ has joined #nixos
Quick_Wango has joined #nixos
bn_work_ has joined #nixos
etrepum has joined #nixos
SrPx has joined #nixos
r0bby has joined #nixos
erasmas has quit [Quit: leaving]
bradparker has joined #nixos
pushqrdx_ has quit [Remote host closed the connection]
bn_work_ has quit [Client Quit]
<evils>
anyone know who i can ask for help related to a package finding python packages installed via pip? (#119702)
<redmp_>
evils: i don't know if this works for your use case, but your life will be easier to use things like: nix-shell -p 'python.withPackages (p: [p.requests])'
<evils>
redmp_: it's a plugin manager installing its own plugins (which are pip packages); i'd have to package every plugin to do something likethat, if i understood your suggestion right
pushqrdx has quit [Ping timeout: 252 seconds]
<redmp_>
evils: could you run the plugin manager in a context where the packages are already installed, like the above command? then, hopefully it would see that they're installed and not install them?
<evils>
redmp_: the plugins aren't packaged in nix
<redmp_>
evils: are they in pip? i think the command i pasted above is referencing pip packages which have like a "stub" added to nix.. there's probably a way to add stubs for any packages which aren't already in nix, if that's necessary
<evils>
redmp: they are in pip, replacing 'requests' with 'spectra-lexer' in your command doesn't work; i wouldn't think nixpkgs would ad-hoc generate a package, it's not reproducible
<coloneljohnby[m]>
hello; got a question about running nixpkgs on a debian wsl install. I've instead fzf and neovim with nix, but it seem like neither will follow the locale settings in $LANG, $LANGUAGE and $LC_ALL
<coloneljohnby[m]>
i have tried setting those variables to both en_CA.UTF-8 and en_US.UTF-8, but neither work; only LC_ALL=C works. feels like those programs don't recognize what I have set with debian's native tools
ahmed_elgabri has quit [Ping timeout: 260 seconds]
* colemickens
has this feeling maybe someone else is working on a flakes-only hydra-like
<gchristensen>
are you working on that? :)
<colemickens>
got some notes and some ideas bouncing around
<colemickens>
I'm trying to figure out currently how it gets buildstep duration timing.
<colemickens>
Does it take the graph of the buildsteps and run them one-by-one in order? while skimming around I didn't see anything that looked like it was doing that sort of scheduling, but I'm also not sure how one would get such timing info from nix-build, etc.
cfinch has quit [Read error: Connection reset by peer]
<shofius>
so for the past few days or so i've been playing with single-user nix installed on my pinephone, which is running postmarketos (based on alpine linux) and it's mostly worked fine. i'm using home manager to write some settings files and stuff and it works. but i wanted to write a module for home manager so i can more easily customize some of the settings, so i wrote a module and i put it on the NUR, and it works fine, but only if my NUR
<shofius>
repo is cloned on the phone. for some reason i get a weird permission error if i try to have home-manager download the NUR repo (like how it's supposed to work). https://gist.github.com/kf5grd/381da2eb3755edad7ab4e41e2399c277 here's a gist with the errors i'm getting, and with my home.nix file... does anyone know why this might be happening or what i can do to troubleshoot it?
cole-h has quit [Quit: Goodbye]
nek0 has joined #nixos
<shofius>
i asked in #home-manager and someone was able to help me boil it down to a specific command: `nix eval '(import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") { })'` -- this fails the same way on the pinephone but succeeds on my laptop running NixOS
cole-h has joined #nixos
<shofius>
also, can confirm on the pinephone that /nix is owned by my normal user (not root) and nix just generally works for that user
<matthewcroughan>
Mic92: Heyo, just letting you know that your nixos-shell was used successfully today by someone to test the `nixos-enter` tool.
<matthewcroughan>
Well done, what an unbelievably useful tool.
<matthewcroughan>
I only suggested that it could be done, and it worked perfectly. There's not many other easy ways to test your nixos/modules/installer/tools/tools.nix changes.
<matthewcroughan>
they're LegendOfMiracles in the unofficial NixOS Discord
<matthewcroughan>
Unless there's a way I could contribute, which isn't out yet.
<matthewcroughan>
Trustix, etc.
<matthewcroughan>
samueldr: I will, I'm just asking in case it has already been tried and people have failed.
<samueldr>
though to be fair, it probably would be better to use SBCs than old phones
mrSpec` has quit [Changing host]
mrSpec` has joined #nixos
mrSpec` is now known as mrSpec
<samueldr>
since they are more made for general purpose computing
<samueldr>
I don't know on the hardware you're going to use
<samueldr>
but on some, e.g. all of qualcomm, hardware-backed virtualization is disabled
<matthewcroughan>
samueldr: Well that's the benefit, I was hoping this wouldn't matter.
<matthewcroughan>
I was hoping I could take any phone, get u-boot working, boot nixos, and boom.
<matthewcroughan>
or just get postmarketos and nix running on it, then use it as a remote builder.
<samueldr>
android-based phones gets booted "already initialized" by the phone's own initial boot firmware, U-Boot here wouldn't bring much
<samueldr>
like, I don't want to dissuade you from trying
<samueldr>
but as for running an "actual" build farm I'm 99% sure it's not worth it
<samueldr>
also, there's the issue of batteries
<samueldr>
those spicy pillows being cooked will not be good
<samueldr>
and in all the phones I've looked at, the design is such that the battery is required for them to boot
<matthewcroughan>
Fair enough, I just want to find a use for piles of old armv7 chips :P
ahmed_elgabri has joined #nixos
<pennae>
coffee coaster? :>
<samueldr>
oh, try it, prove me wrong, I don't dislike being proven wrong, when it's actually right, but whew that's an uphill battle you're going towards
<cransom>
forever doomed to haunt your closet/drawers like the scsi and parallel cables that just may one day be of use for something somehow.
ahmedelgabri has quit [Ping timeout: 248 seconds]
<matthewcroughan>
cransom: :(
<matthewcroughan>
depression inducing
<matthewcroughan>
grains of sand, forced to compute
<shofius>
matthewcroughan: dashcams or security cams
<codygman__>
if I do `:l overlay.nix` with the file contents of that comment I get `error: value is a function while a set was expected`, so I need to know how to make the overlay into a set?
<codygman__>
I just tried `let overlay1 = ./foo.nix; in import <nixpkgs> { overlays = [overlay1 ]; }` but that gives `error: attempt to call something which is not a function but a path`
<shofius>
can you wrap the whole file in { and }?
<shofius>
i honestly don't know if that'll work and i'm probably not qualified to help you troubleshoot this lol
cfinch has joined #nixos
zupo has joined #nixos
<pie_>
wentasah_: well kernelshark works suddenly so 0_o *shrug*
<codygman__>
lol shofius, nah that didn't work either
<ryantm>
Is there a trick for testing/debugging the installPhase of mkDerivation in a nix-shell?
<ryantm>
For example, if I do `nix-shell -A somenixpkgspackage` I can test all the other phases, but then installPhase wants to write to the nix store, which my shell doesn't have permission to do.
<sterni>
I mean if you run the shell as root you can write to store :p
<gustavderdrache>
could you export out="$(mktemp -d)" in your shell?
<aleph->
So yeah figured I'd ask again. Anyone have a small example for merging a deriv into the set of pythonPackages via overlays? My overlays file is https://paste.rs/ZeH
wnklmnn has quit [Quit: Leaving]
<{^_^}>
[nixpkgs] @mweinelt opened pull request #120276 → python3Packages.pycocotools: init at 2.0.2; python3Packages.seqeval: init at 1.2.2 → https://github.com/NixOS/nixpkgs/pull/120276
Synthetica has quit [Quit: Connection closed for inactivity]
syntaxoid[m] has joined #nixos
<rmcgibbo[m]>
cole-h: you pinged me on this channel yesterday (offline, irl life got in the way), and i'm a dummy and i can't seem to figure out the context or what it was about. are you still around?
<{^_^}>
[nixpkgs] @mweinelt pushed to staging-next « python3Packages.keyring: fix typo in disabledTestPaths keyword »: https://git.io/JOXyM
<cole-h>
rmcgibbo[m]: There was no context :P Was just wondering if you could queue up https://github.com/NixOS/nixpkgs/pull/120009 on your aarch64 builder again to make sure I did indeed fix all the aarch issues
<{^_^}>
#120009 (by cole-h, 1 day ago, open): python3.pkgs.scancode-toolkit: init at 21.3.31
<syntaxoid[m]>
can you describe rust package cross-compilation for target x86_64-pc-windows-gnu with C dependencies?
<syntaxoid[m]>
(as a nix derivation)
lsix has quit [Ping timeout: 260 seconds]
ahmed_elgabri has joined #nixos
abstractednoah has joined #nixos
ahmedelgabri has quit [Ping timeout: 260 seconds]
ahmed_elgabri has quit [Remote host closed the connection]
cfinch has quit [Remote host closed the connection]
<cole-h>
or I could rely on pkgsCross to tell me I'm good
<cole-h>
:P
cfinch has joined #nixos
<sebastien14>
Hi nixos, I'm trying to get the PYTHONPATH env variable working properly setup when using dockerTools to ship my Nix package as a container. Does anyone has experience with that?
haritz has joined #nixos
haritz has quit [Changing host]
haritz has joined #nixos
gustavderdrache has joined #nixos
<rmcgibbo[m]>
cole-h: done. current queue depth=3, so it should go through reasonably rapidly. i believe it will update the prior r-rmcgibbo comment.