<matthewcroughan>
I haven't managed to get past this issue. No matter what I do, it seems that the old function's requireFile is chosen over my own override.
<matthewcroughan>
that is an ungodly amount of ram.. is it ecc?
<jonringer>
thanks :)
ddellaco_ has quit [Remote host closed the connection]
<matthewcroughan>
I built a 3900x system here with 64GB of ECC.
<jonringer>
no ecc, thanks intel for making it not feasible to find any at a reasonable price
<matthewcroughan>
yeah and mine were unregistered.. so it was even more expensive
<matthewcroughan>
worth it for the nix power
<evils>
*cough* #85039 *cough*
<matthewcroughan>
Achk, this seems like a bug..
<infinisil>
,ping
<matthewcroughan>
If I overrideAttrs on the src of something that used `requireFile`, it just won't allow me to override it without calling the old requireFile function.
<infinisil>
gchristensen: 02:57:33 <-- | {^_^} (~graham@NixOS/user/gchristensen) has quit (Remote host closed the connection)
<matthewcroughan>
In this case https://dpaste.com/EZJZ9C7HL, I'm overriding src of ndi. But it refuses to use builtins.fetchurl, instead it's using the old function!
<gchristensen>
hrm
<jonringer>
also, fun fact, htop now gives me a warning about uptime
<gchristensen>
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: IoError(Other)'
<gchristensen>
jonringer: like "don't be a showoff"?
<jonringer>
I get `107 days(!), 4 hours`
<jonringer>
I had to give up a shiny penny for it
{^_^} has joined #nixos
<jonringer>
:)
<matthewcroughan>
Same. But I love Nix so much.
<matthewcroughan>
Worth every penny.
<gchristensen>
let me know if you find a spare dime, I could use some upgrades over here
<jonringer>
Just bought a house, all expendible cash is now gone ;(
ddellacosta has joined #nixos
<gchristensen>
ah ha! yes, that is the same position I'm in.
<infinisil>
#85039
<matthewcroughan>
jonringer: lucky you. I'm about 3 years away from that ;_;
<matthewcroughan>
I've posted twice now. So apologies for that.
proofofkeags has joined #nixos
<mvnetbiz_>
if referring to oldAttrs.version was the problem, couldn't you use prev.ndi.version?
ddellaco_ has joined #nixos
<matthewcroughan>
prev is an attrset of the entirety of nixpkgs, and so yeah I could, but why can't I use oldAttrs?
<matthewcroughan>
I'm quite interested in the technical reason for it, it seems really bad that I can't do this, as all examples of overrideAttrs more-or-less do things by using oldAttrs.
<matthewcroughan>
In fact, if I used prev.ndi.version, I would expect this to be the exact same thing as oldAttrs.version, what do you think the difference is
<mvnetbiz_>
How can I add the extra stuff that adds python site-packages to additional .py files in a derivation? I am missing what part of the buildPythonApplication builder does that. It works for the main executable, but there are other scripts that also need it.
<matthewcroughan>
So I think I'm answering you correctly. Just for this one package, yes.
<{^_^}>
[nixpkgs] @maralorn pushed to haskell-updates « hackage2nix: Unmark all builds broken »: https://git.io/J35pK
<matthewcroughan>
mvnetbiz_: the way you've suggested I do it produces the same error, it tries to run the old src function rather than the new one that I have overriden, which uses fetchurl instead.
<matthewcroughan>
Bug or feature? :D
<mvnetbiz_>
how do you make nix flakes build unfree
<matthewcroughan>
in my flake, `src = builtins.fetchurl`, but it is not executing fetchurl at all, it is instead executing the requireFile function from the prev.ndi
<{^_^}>
#34086 (by twhitehead, 3 years ago, closed): overrideAttrs and overlays don't play well together (overrides get invoked twice)
<{^_^}>
#34332 (by twhitehead, 3 years ago, merged): top-level: Duplicate overlaying unless stdenvOverrides comes last
<matthewcroughan>
So my overlay/override actually should work, but it instead evaluated both the old and the new package. The old package (prev/super) errors out on evaluation, which causes my overlay not to work, since it's evaluating both :D
<mvnetbiz_>
yeah i put in some builtins.trace, and it is evaluating your new src.
pixelfog has quit [Ping timeout: 260 seconds]
<matthewcroughan>
But sadly, it also evaluates the old one, which means that it errors out
<matthewcroughan>
it runs both functions, when it should only run one.
<matthewcroughan>
From imranh on Discord: "override basically overrides the arguments to callPackage rather than the arguments to mkDerivation, so it ends up changing the requireFile argument at the top of the derivation"
<mvnetbiz_>
but the hacky version builds for now at least
haijuno has quit [Ping timeout: 250 seconds]
<mvnetbiz_>
yeah, I get what .override does. I thought that would be more straightforward than overrideAttrs, since then it wouldnt involve evaluating the original at all
<mvnetbiz_>
Maybe it should be considered a requireFile bug
ddellaco_ has quit [Remote host closed the connection]
melg8 has quit [Quit: Connection closed]
<matthewcroughan>
mvnetbiz_: I see.. So is the issue the fact that the old one must be evaluated?
ddellaco_ has joined #nixos
<matthewcroughan>
and it needs to be evaluated because requireFile is forcing the evaluation, somehow, for some reason?
<mvnetbiz_>
Something like that. I can't say because I have no clue how overrideAttrs works.
<mvnetbiz_>
I think it's because to override the old attrs, it actually has to evaluate at least the top level attrs of the original expression, and requireFile probably immediately throws an exception instead of deferring it
<mvnetbiz_>
im not sure, why actually. requireFile actually makes a derivation with abuilder that prints the message and then exits unsuccesfully, so idk why that would ever run if you do .overrideAttrs
theDon has joined #nixos
<QueenUhohsheherv>
Fresh NixOS install. First command `wpa_supplicant -B -i wlo1 -c <(wpa_passphrase 'valid' 'valid')` fails with `Failed to open config file '/dev/fd/63', error: No such file or directory`
<mvnetbiz_>
your user doesn't have wifi privilges, and if you run with sudo, it runs wpa_supplicant as root, but the <() file substitution happens in your user's bash instead of root so it doesn't connect somehow
<QueenUhohsheherv>
What's the root user password?
ahmedelgabri has quit [Ping timeout: 260 seconds]
<mvnetbiz_>
I think you should just use sudo -i
<mvnetbiz_>
and then use your own password, if you put yourself in the wheel group, otherwise you have to know the root password. the nixos installer asks you to set this before rebooting
<zeta_0>
hello there, using these instructions, https://gist.github.com/chrisanthropic/2e6d3645f20da8fd4c1f122113f89c06 , I was able to get nixos to build on my raspberry-pi-4 with any errors thrown, after doing that, I then installed x11, plasma5, and lightdm, again, it built without any errors, but when I rebooted nixos on the pi, it throws the error: `failed to start x11 server` ? , I ran: `systemctl status display-manage
<zeta_0>
r.service`, and the output shows that the display-manager.service failed as well? Why is that, and, do any of you have some tips on how to troubleshoot this issue?
<matthewcroughan>
mvnetbiz_: Ah okay.
<matthewcroughan>
So it's the way that requireFile is being invoked?
<matthewcroughan>
I mean, rather than something fundamentally wrong with overrideAttrs?
<simpson>
zeta_0: Check your Xorg and display manager logs; there's both systemd logs and also often something in /var/log.
<zeta_0>
simpson: ok, I'll take a look at the logs, also, why is it that raspberry-pi-4s always seem to have trouble working with desktop environments, like: gnome, plasma, and xmonad? I always get stuck on this step, I can't really move forward until I get the desktop gui environment working.
griff_ has joined #nixos
<simpson>
zeta_0: Ten words or less: Free Software GPU driver quality varies with hardware popularity.
ddellaco_ has joined #nixos
<zeta_0>
simpson: ok, looking at lightdm's log file, this is the 1st error thrown: `DEBUG: Process 835 exited with return value 1`
<zeta_0>
then xserver and display server return that they stopped, I'm not sure how to troubleshoot this?
ahmedelgabri has joined #nixos
ddellaco_ has quit [Ping timeout: 246 seconds]
<zeta_0>
(EE) open /dev/dri/card0: No such file or directory, (EE) No devices detected. , (EE) no screens found(EE).
<zeta_0>
simpson: does this have to do with xserver or lightdm?
ahmedelgabri has quit [Ping timeout: 245 seconds]
<clever>
zeta_0: the dri node only exists if you load the fkms or kms overlay
<clever>
if both overlays are missing, then only /dev/fb0 will work
ddellacosta has joined #nixos
<zeta_0>
clever: ok, well, is there any documentation that has instructions on how to configure that stuff? I looked up nixos kms and fkms on the internet, but I can't seem to find relevant information that relates to my issue.
<clever>
zeta_0: if your using u-boot, then i dont think kms can be loaded easily
<clever>
and u-boot is the default for nixos
<zeta_0>
clever: I've read articles about other people getting their pi-4s working with nixos, so I'm not sure what I'm missing, maybe I should try an alternative desktop environment, or try to find some nixos service that fixes this issue, at this point I have no idea, I'm not sure if I should just give up on this issue.
griff_ has quit [Read error: Connection reset by peer]
<zeta_0>
clever:`modprobe vc4` returned nothing, and `lsmod` returned a bunch of stuff, so not sure what I need to look for in the output, and, is there a nixos service to configure X to use /dev/fb0 ?
<clever>
not sure what the cfg for that is, but google should help there some
Supersonic112 has joined #nixos
Supersonic has quit [Ping timeout: 245 seconds]
Supersonic112 is now known as Supersonic
ddellacosta has quit [Ping timeout: 268 seconds]
pixelfog has joined #nixos
<zeta_0>
maybe I need a video driver? like: `xserver.videoDrivers = [ "fbdev" ];`
<clever>
that sounds likely
<zeta_0>
I forgot to mention, I have my pi-4 connected to a dynex-tv, does it matter if I run my pi-4 on a television, or does it need to be a computer monitor? raspberry pi os works on my dynex tv, so I don't think that it matters for my issue?
ddellaco_ has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 252 seconds]
<zeta_0>
simpson: thanks, I'll take a look, also, what gpu do pi-4s use? I'm trying to figure out which video driver to enable in nixos.
ahmedelgabri has joined #nixos
<zeta_0>
would you guys recommend me installing debian on my pi-4 and then installing nix in debian, or should I continue troubleshooting to fix this nixos-pi-4 issue?
<simpson>
FIIK, but a search engine suggests that clever was correct and `vc4` is the kernel module to try.
<zeta_0>
simpson: ok, I'm looking in nixos options to find the vc4 linux kernel package.
ahmedelgabri has quit [Ping timeout: 260 seconds]
<zeta_0>
I ran lspci to find out my pis gpu, now it's stuck there, ctrl+c, ctrl+d and q aren't working.
<zeta_0>
nevermind, it brought me out once the process finished, whew.
<zeta_0>
simpson: I have my linux kernel set to: `pkgs.linuxPackages_rpi4`, won't changing to vc4 break my pi-4 ?
<clever>
zeta_0: lspci will never see the gpu
<clever>
its not a pci device
<zeta_0>
clever: correct, I'm going to have to find another way to see what gpu my pi is using.
<simpson>
Pretty sure that the Pi only has the one Broadcom SoC. There might be multiple different drivers; Gentoo's wiki tells me that there's both a free and an unfree driver.
jgt_ has joined #nixos
<clever>
zeta_0: the gpu is always the same for a given model, every rpi4 has the exact same gpu
<{^_^}>
[nixpkgs] @Izorkin opened pull request #122301 → nixos/tests/unit-php: require one of users.users.name.{isSystemUser,isNormalUser} → https://github.com/NixOS/nixpkgs/pull/122301
<simpson>
Glad it helped. Wondering about the behavior of yesteryear; older distros tend to unconditionally enable those two drivers. Bet there's an issue already with discussion somewhere.
<clever>
simpson: i think the default videoDrivers includes ones that cant compile on arm
<clever>
being a list, its hard to remove options, so mkForce tends to remove too much
<simpson>
That would make sense.
<zeta_0>
I'm happy that I finally got a nixos machine running on my raspberry-pi-4, I'm excited to do coding projects on it.
griff_ has quit [Ping timeout: 260 seconds]
<zeta_0>
I wasn't to wait a few more months until there was better support for nixos on pi-4, but I got impatient and wanted to tinker with my pi.
<zeta_0>
typo, wasn't sure if I should wait ... , getting tired.
pixelfog has joined #nixos
<zeta_0>
quick question, can a custom keyboard layout be setup in a desktop-environment? so far I've only been able to get my custom keyboard layout working with xmonad, without any desktop-environment or display-manager/login enabled.
<zeta_0>
home.nix has an option to shut-off the default keyboard layout.
<zeta_0>
well I guess I need to tinker some more!
<zeta_0>
I'm surprised that the mouse and touchpad work by default, I haven't enabled those services yet.
<juhe>
Hello! What's the best way avoiding packages to be removed from /nix/store by nix-collect-garbage, but have them not available in environment by default? Idea is to execute specific nix-shell script in order to get stuff into environment, but avoiding downloading packages every time nix-collect-garbage is run. Would having nix-shell script in /nix/store with proper dependencies (runtime? how to define them explicitly?) solve this problem?
<amirouche>
what pkg-config variable does nix tweak in the core to enable the functional package approach?
cr4y1 has joined #nixos
<pennae>
amirouche: each package that is listed as a dependency of a thing appends itself to PKG_CONFIG_PATH in build scripts (if that's what you mean)
<amirouche>
hmm, that is what I was thinking too. So, that "trick" covers the "functional package management" of all software that use pkg-config.
<pennae>
it makes pkg-config things visible even though they're strewn all over the place at least. there's more to packaging than just that
<amirouche>
yes sure.
jb55 has quit [Remote host closed the connection]
jb55 has joined #nixos
<amirouche>
does nix support something like gentoo's USE flags? I know guix has decided against it.
<amirouche>
USE flags are parameters set by the user, that will enable across software some configure flags, fictional example: USE="wayland" will request that all software is built with wayland support.
<pennae>
not as such, but there are override mechanisms and many packages take arguments that can be overriden in the spirit of use flags
<amirouche>
so, users need to extend the existing package, to enable customization. That makes sense.
<amirouche>
I am prolly just window shopping: I would like to document essential aspects of functional package management, and maybe (much?) later create my own.
<amirouche>
I understand nix and nixos cover more than just installing software.
<pennae>
depends? eg you could say that system configuration is also just a package.
<amirouche>
(re unison, it is not a package manager, but maybe it will interest people in the channel)
<b00n>
Hi there, I'm using: "boot.kernelPackages = pkgs.linuxPackages_latest_hardened;" for several months now. I had kernel 5.11.x installed, made "nixos-rebuild switch" today an got: "uname -a = 5.10.14-hardened1 #1-NixOS SMP Sun Feb 7 14:37:17 UTC 2021 x86_64 GNU/Linux" even after a "nixos-rebuild boot". I'm on NixOS-unstable so the kernel should be
<Kritnich>
When packaging Python applications, is there a preferred source to be used? For example, if I could pull both from Github or Pypi, is one preferred over the other or does it not matter?
<phalrax>
Hi, is there some kind of freeze now for the upcoming 21.05 release? seeing that nixos-unstable has last been updated 2 days ago, but it's been green for a while
<lukegb>
Nah, that's business-as-usual
orivej has joined #nixos
<lukegb>
It's probably stuck waiting on some stuck builds in the evals
<shla>
b00n, maybe the package build is broken? i'm using linuxPackages_latest on 20.09 stable channel and i'm currently getting 5.11.16 #1-NixOS SMP Wed Apr 21 11:13:29 UTC 2021
<b00n>
shla: thanks for that useful comparison with your stable environment.
<lukegb>
Kritnich: there's a preference towards running tests as part of the build - a lot of the time pypi uploads don't include them, so then we end up using github instead
<lukegb>
if the pypi upload does include the tests, or there are just... no tests at all, then either is probably fine
<shla>
"Channel nixos-20.09-small advanced to <...>" - is there a web page where I could track this?
<atemu12[m]>
Is there a way to run additional commands inside the drv of a runCommand like writeShellScriptBin? I want to add bash completions to the drv's outPath
respawn_ has quit [Quit: Leaving]
<atemu12[m]>
I guess you could wrap it in another runCommand that copies the contents and then lets me run whatever else but I was thinking that a cleaner, pre-made solution might exist in Nixpkgs
<gchristensen>
conkker: I like to use naersk, which uses the Cargo.lock file and doesn't require a cargoSha256
<conkker>
gchristensen: I'm using naersk right now, but it failed me once after updating Cargo.lock. I had to clear my cachix cache for it to work again because it was caching some dependencies improperly
<gchristensen>
it isn't clear to me how that is possible :x
respawn_ has joined #nixos
<conkker>
it's strange to me too, the project compiled but it was completely misbehaving
<gchristensen>
maybe you could open a bug with naersk?
<DavHau[m]>
Trying to fix a python package for ZHF which has been broken by a mass update. Is it legitimate to just downgrade that package back to the last version which worked? The package has no dependants.
<chrisaw>
Probably just being dumb here but can anyone tell me why this isn't working as an override? "linuxPackages_lqx_5_10 = super.linuxPackages_lqx.overrideAttrs (oldAttr: rec {"
MatrixBot21 has quit [Quit: Bridge terminating on SIGTERM]
<chrisaw>
I'm getting "attribute 'overrideAttrs' missing - so I'm thinking the stuff before "overrideAttrs" isn't quite what I need.
malte1 has joined #nixos
<thibm>
chrisaw: linuxPackages_lqx is a attribute set of packages, not a package (and does not have an overrideAttrs attribute)
<thibm>
what do you try to do?
malte1 has left #nixos [#nixos]
<chrisaw>
thibm: Ahh I see - basically I'm trying to pin to the latest version of kernel 5.10 instead of the newer 5.11.x
<thibm>
chrisaw: the kernel is at linuxPackages_lqx.kernel
<chrisaw>
Reason being - when my laptop suspends with a 5.11.x kernel - the display never wakes up. Never managed to fix it but I can avoid the issue by running 5.10.x instead. I'd just rather run a kernel with the lqx patchset.
<thibm>
chrisaw: however, be aware than for complex packages like the kernel just changing the version+source may not work. You can try, but you may want to look in an old revision of nixpkgs to find package definition that matches your need
ahmed_elgabri has quit [Ping timeout: 260 seconds]
<MysteriousSilver>
Hi! I switched to a different DE and why does fonts look weird? I've had the same issue in GNOME, but enabling subpixel rendering fixed it (in GNOME). I tried changing the values of fonts.fontconfig.subpixel.lcdfilter, but it doesn't seem to help.
<MysteriousSilver>
(in Emacs)
haijuno has joined #nixos
haijuno has quit [Client Quit]
<chrisaw>
ar: That looks like EXACTLY what I need but it doesn't look like it wants to play nicely for me! :P
MysteriousSilver has quit [Remote host closed the connection]
<chrisaw>
https://pastebin.ubuntu.com/p/hkg6yD968P/ is what I now have based on your suggestion ar but I get: "attempt to call something which is not a function but a set"
<MysteriousSilver>
Ok, some tweaks to Xresources fixes it. Thanks
MysteriousSilver has quit [Remote host closed the connection]
<chrisaw>
Just overriding a common value in a common config that I share between hosts. Can remove it though and try without.
zie has joined #nixos
<chrisaw>
Looks like you solved it ar! It's actually downloading sources now without the mkForce part so will just remove the common definition and define kernel per host. Not a big deal. :)
<Gooberpatrol66>
Is it possible to run systemd services from nix packages on a foreign distro?
<Mic92>
Izorkin: I think we already have plugins that require setuid/setcap wrappers.
<Mic92>
Izorkin: you can follow a similar approach that was done for slabinfo.plugin
<dutchie>
what's the difference between ${placeholder "out"} and $(out) in build script snippets?
cole-h has quit [Ping timeout: 240 seconds]
<Izorkin>
Mic92: I tried. Doesn't find file sh: /nix/store/irswqjqfw3giri5671vch730zh1s67pj-netdata-1.30.1/libexec/netdata/plugins.d/cgroup-network-helper.sh: No such file or directory or sh: / nix / store / 5jf2f2bbyins4pped-5jf2f2bbyins4pped- / libexec / netdata / plugins.d / cgroup-name.sh: no such file or directory
<qyliss>
Gooberpatrol66: yes, but it's not that straightforward
<MichaelRaskin>
Well, when I speak of that stuff it is more about foreign non-systemd distro
<qyliss>
oh, okay
lsix has quit [Quit: WeeChat 3.1]
<MichaelRaskin>
It is a bit simpler if you want to build a systemd service from NixOS to be installed into a systemd distribution, as long as dependency data is not out of sync with the target distribution, of course…
jgt_ has quit [Ping timeout: 246 seconds]
alexherbo2 has joined #nixos
gustavderdrache has joined #nixos
<MichaelRaskin>
Gooberpatrol66: you might start with building a full NixOS instance then symlinking just that one thing you care about
<Gooberpatrol66>
MichaelRaskin: how do I build a full NixOS on top of another distro?
<Mic92>
Izorkin: so cgroup-network itself is a shell script?
<MichaelRaskin>
nix-build /path/to/nixpkgs/nixos -I nixos-config=/path/to/configuration.nix -A system
<MichaelRaskin>
Note that nixos-infect is for replacing the system with NixOS, but you can just build NixOS and let it lie passively inside store and just grab random bits out of it
<Izorkin>
Mic92: plugin cgroup-network uses scripts cgroup-name.sh and cgroup-network-helper.sh to detect network interfaces for virtual machines
<qyliss>
Gooberpatrol66: there's a nixos function in nixpkgs you can use also
<qyliss>
> nixos { configuration = { ... }: {}; }
<Mic92>
Izorkin: and when used with the setuid wrapper it no longer find the scripts cgroup-name.sh/cgroup-network-helper.sh ?
<{^_^}>
attempt to call something which is not a function but a set, at (string):494:1
<hrnz>
how well does nixos-infect clean up garbage of the previous operating system?
<qyliss>
or... something like that
<Izorkin>
Mic92: yes
<aleph->
Okay stupid question, attempting to vendor dns.nix (https://github.com/kirelagin/dns.nix/) and just import the module directly without flakes. However importing the libs default.nix which exports a attr set seems to fail and instead exports a function. Wondering if there's something obvious I'm missing? https://paste.rs/x04
<evils>
is there a way to automatically generate trivial packages?
<redkahuna>
hexa-: I am newbie in nix, so the idea is just to try do build my project as first step to touch to Nix packaging, I am not sure I have the knowledge to do what you ask me to do
<busti>
When creating a nix-shell environment, is it possible to build an additional library from source that isn't in nixpkgs? I.e. can I just add a module containing `stdenv.mkDerivation` to `buildInputs`?
<fuzzypixelz>
clever: virtually all derivations fail with something like `error: derivation '/nix/store/43ajsq8cww3j865qs1kpz94k000pzrib-dbus-1.12.20.drv' does not have wanted outputs 'dev,lib'`
<AmandaC>
Does anybody have any suggestions / examples to point out for how to manage making sure something's disabled in /proc/acpi/wakeup? Arch wiki suggests tmpfiles.d but it also points out that that'll cause random toggles. My laptop refuses to sleep because the USB controller returns EBUSY when my BT mouse is connected.
<AmandaC>
I'm pinned at the latest LTS kernel, because of igpu issues, if that matters
Synthetica has quit [Quit: Connection closed for inactivity]
supersandro2000 is now known as Guest74611
supersandro2000 has joined #nixos
Guest74611 has quit [Ping timeout: 252 seconds]
proofofkeags has joined #nixos
JerryXiao has quit [Remote host closed the connection]
<dotlambda>
Res Qt: Has anyone an idea which dependency is missing if I get `module "org.kde.appletdecoration" is not installed`?
haijuno has joined #nixos
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #122399 → compiler-rt: Revert passing `COMPILER_RT_OS_DIR` and not symlinking libs → https://github.com/NixOS/nixpkgs/pull/122399
<samueldr>
dotlambda: maybe plasma 5.21 is required