<abathur>
anyone run into mach-nix resolving a requirement for a private package added to overridesPre just fine on one system/env and not in another? It finds it fine on local macOS, but in gitlab CI (docker, nixos/nix image) it is coming up empty
<{^_^}>
[nix] @Ericson2314 opened pull request #4587 → Throw error for derivation goal with bogus wanted output → https://github.com/NixOS/nix/pull/4587
novafacing has joined #nixos
<novafacing>
Hey folks, I have a question
<novafacing>
I know that I *should* run sagemath tests.
<novafacing>
I do NOT want to run sagemath tests, and I cannot for the life of me figure out how to override them because of the (anti-user) way the package is written
<tomberek>
sage burned through quite a bit of electricity during some PR reviews. I wonder if there should be more cases where the package is split out apart from testing
<novafacing>
tomberek: Yeah I can imagine, it takes >2hrs to run tests on my laptop
<novafacing>
Unfortunately the "test split from the package" is a great idea....but making the package then *depend* on that test that's split out is bad IMO
<novafacing>
Having an option to disable tests would be fantastic
<abathur>
ah, I see, all-packages calls default.nix, which doesn't have the sage-tests arg, so the override won't work
<abathur>
overrideAttrs might actually, yeah
<novafacing>
Yeah overrideattrs seems to work
<novafacing>
New error but at least one I can work with
<novafacing>
Thanks a bunch abathur
jonringer has quit [Remote host closed the connection]
<mjlbach>
How do linux users who use both guix and nix have their paths set up? The default daemon script referenced in /etc/zshrc always seems to prepend the nix path in the guix environment, shadowing the guix packages
MidAutumnHotaru has quit [Ping timeout: 260 seconds]
ky0ko has quit [Remote host closed the connection]
lordcirth has quit [Remote host closed the connection]
kw has quit [Ping timeout: 240 seconds]
<s1341_>
good morning.
<s1341_>
what is the procedure for moving /nix/store to a different partition on nixos?
redmp has joined #nixos
palo1 has joined #nixos
pjt_tmp2 has joined #nixos
<clever>
s1341_: ideally, you would `nixos-rebuild build` with the new config for what is mounted to /nix, then switch to a livecd, and move the full contents over
<clever>
on the next boot, it will try to respect the configuration.nix from when you `nixos-rebuild build`, and it will find where you moved it
palo has quit [Ping timeout: 246 seconds]
palo1 is now known as palo
<s1341_>
clever: what do I put in configuration.nix to make it use the nix store from a different partition?
<tomberek>
i'm thinking a nixos-install --root /new/store/path could do it?
<clever>
s1341_: the same fileSystems."/nix" stuff you would use to mount anything else
<s1341_>
tomberek: without damaging my existing configuration?
<tomberek>
hrm..... don't know.. i'd test that first
<tomberek>
s1341_: looks like it builds the config... then sets the profiles up in the new mount point, copies over a channel, then does Grub/bootloader, then password. You may want to skip the bootloader and password
<s1341_>
@tomberek where is the source of nixos-install?
bitmapper has quit [Quit: Connection closed for inactivity]
<s1341_>
now I have an issue with home-manager... i've had this issue for a while... when I try to home-manager switch, I get the following error: https://www.irccloud.com/pastebin/pFTKZ3e8/
<Alexey12>
Is it possible to see in jupyterlab user-site packages? I have in environmentPackages `python38.withPackages (ps: with ps; [ ps.pip ps.virtualenv ps.setuptools ps.cython ps.ipykernel ps.jupyterlab ])`, activated virtual env and run jupyter-lab; now in notebook I can run `!pip install numpy` successfully (now package is installed in venv), but can't
<Alexey12>
import numpy ("No module named 'numpy'"). I've tried install jupyterlab via pip, but it fails on start with `ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory`.
veegee has joined #nixos
m0rphism1 has joined #nixos
supersandro20006 is now known as supersandro2000
jmeredith has quit [Quit: Connection closed for inactivity]
veegee has quit [Quit: veegee]
orivej has joined #nixos
<Graypup_>
How can I fetchTarball as a derivation?
<m31446>
I'm experimenting with nix/nixos for creating reproducible build environments for picky projects (e.g. buildroot). Is there a good solution to projects using harcoded LSB paths like /usr/bin/file, /bin/true, /usr/bin/install etc.?
<Reventlov>
trying to package something that depends on ghostscript (camelot, a python package) that I added to the propagated build dependencies, and it seems the dependencies are not working for the python package (which seems weird)
whald has quit [Remote host closed the connection]
o1lo01ol1o has joined #nixos
Thra11 has joined #nixos
o1lo01ol1o has joined #nixos
<Thra11>
supersandro2000: You changed my PR (#108354) to a draft without giving any explanation. What was the reason for that? As far as I'm aware, it's fully working and ready to review/merge.
n-osborne has quit [Remote host closed the connection]
<tad-lispy[m]>
Can someone help me to setup screencasting on Wayland? I think using OBS Studio is the most promising direction, but any other way I'll be happy as long as I can get single display and microphone recorded.
<sterni>
note that this fetches the latest nixpkgs-wayland version from master on basically every rebuild, so it's not truly reproducible / declarative
<tad-lispy[m]>
Thanks sterni
<tad-lispy[m]>
Let me try.
<sterni>
with flakes you can probably do this in a nicer way, but you'd need to convert your system config to flake and I wouldn't recommend using an experimental features directly when getting started (also I don't use flakes so I wouldn't know)
<sterni>
tad-lispy[m]: I hope obs-studio picks up on the plugin when you just install it globally
supersandro2000 has quit [Read error: Connection reset by peer]
<tad-lispy[m]>
Yay! Got it!
supersandro2000 has joined #nixos
<tad-lispy[m]>
`$ QT_QPA_PLATFORM=wayland obs`
<sterni>
tad-lispy[m]: ohh
<worldofpeace>
tad-lispy: you're trying to use the obs portal right?
<sterni>
tad-lispy[m]: also make sure to remove obs-studio from configuration.nix again so the two versions don't interfere with each other
<tad-lispy[m]>
worldofpeace: yes.
<worldofpeace>
tad-lispy: it needs to be in xdg.portal.extraPortals
<tad-lispy[m]>
Can you be more specific. I'm a noob.
<worldofpeace>
um sure, tad-lispy what environment are u in? Like a DE, a WM?
<worldofpeace>
just good to know before I give an exact answer
<tad-lispy[m]>
Gnome on Wayland.
<tad-lispy[m]>
And I'm using home manager.
<worldofpeace>
okay okay, so you can just add that obs package like this `xdg.portal.extraPortals = [ whatever-that-packages-attribute-is ];`
<worldofpeace>
tad-lispy: is it installed with home-manager?
zakame has joined #nixos
<tad-lispy[m]>
By "it" you mean obs?
<tad-lispy[m]>
Yes.
domogled has quit [Quit: domogled]
<worldofpeace>
tad-lispy: hmm, I don't think I have any reason why the config I mentioned shouldn't work in that case either. So yeah I think that should mostly solve the issue you're asking
<tad-lispy[m]>
But I didn't understand you about this xdg.extraPortals.
<tad-lispy[m]>
Where do I put it?
<worldofpeace>
your system configuration
<worldofpeace>
that isn't configuration from home-manager
<worldofpeace>
so configuration.nix
<tad-lispy[m]>
Aha.
<tad-lispy[m]>
Ok. And then OBS should just peak it up?
<tad-lispy[m]>
I still need this plugin, right?
<Dandellion>
I've been digging through documentation trying to find a function that takes `[ { ... } { ... }]` and outputs those attrs merged `{ ... }` but haven't had any luck, any pointers?
<worldofpeace>
tad-lispy: the implementation details are a bit complicated, but yes, I don't see any reason why that shouldn't work
<sterni>
Dandellion: you could do builtins.foldl' (acc: x: acc // x) {}
<sterni>
not sure if there's a dedicated function for it, there might
<sterni>
tad-lispy[m]: you can set the value of the QT environment variable using environment.sessionVariables in your configuration.nix btw
<tad-lispy[m]>
sterni: thanks for all your help. Now I'd like to wrap it up, because now it only works if I pass `-I nixpkgs=...` to `home-manager switch`. Next time I switch and forget about it it will be gone.
awmv has joined #nixos
<sterni>
tad-lispy[m]: what does nix-channel --list say?
<sterni>
tad-lispy[m]: okay, then just do nix-channel --remove nixos (as your user and everything except home-manager should use the stable channel again)
tboston has joined #nixos
<sterni>
oh wait, the home-manager bit won't work, I think
<tad-lispy[m]>
Aha?
<tad-lispy[m]>
Why not?
<sterni>
for home-manager you have two channels: home-manager it self, i. e. all the modules and setting you can use and <nixpkgs> where it takes the packages from
<sterni>
you should definitely upgrade your home-manager channel like I said
<sterni>
tad-lispy[m]: that sets QT_QPA_PLATFORM=wayland on login among other things globally
<paniash>
Emantor: but seriously, I use artix currently and prefer it to arch tbh
<tad-lispy[m]>
Maybe I can just put it in my `home.nix`?
cole-h has joined #nixos
jmeredith has joined #nixos
<sterni>
paniash: it is unlikely for nixos since our service modules rely on systemd heavily, so it would require major refactoring adding another init system and fixing all issues along the way
<sterni>
paniash: it would be possible theoretically
<sterni>
tad-lispy[m]: let me check
<paniash>
sterni: I see. I already saw a post regarding this but just wanted to confirm if it is still the case. thanks though
<sterni>
paniash: essentially we'd need to have an abstraction over any type of init system, but that would mean that we wouldn't be able to use _a lot_ of useful systemd features other init systems don't have
philr has quit [Ping timeout: 260 seconds]
<paniash>
sterni: i see...
<paniash>
thanks
paniash has quit [Quit: WeeChat 3.0]
ixaxaar[m] has quit [Quit: Idle for 30+ days]
<tad-lispy[m]>
Yes, definitely! I need to restart my DE after switching, right?
m31446 has quit [Quit: Connection closed]
<sterni>
tad-lispy[m]: I think you need to log out and in again because sessionVariables are set by PAM
<Uma>
Gamer question ahead: has anyone had any luck running league of legends? I've tried the latest image fron lutris, but I get a mysterious segmentation error from openssl
<|beowulf|>
are the special variables available in nix expressions (like $out) documented anywhere?
<figgyc>
does anyone have any luck running ModemManager on startup? systemctl seems to think it's "enabled" already but I have to start it manually and idk why, it works fine when I do that
<|beowulf|>
hm, I don't think I want to build the complete system from that working copy, just one package and I need to do that from configuration.nix
<tomberek>
[beowulf]: look at the bare minimum things: `nix-build -E 'derivation {name="a";builder="/bin/sh";args=["-c" "export"];system="x86_64-linux";}'`
attila_lendvai has joined #nixos
<hplar>
on unstable, I have issues building ldc locally today; nix-shell -p ldc (compiler for D dlang) pulls a binary which is fine; doing a local nix clone and pointing to it (-I nixpkgs=) build *fails* ... as of today, nothing obvious to me has changed no new version, (is way have worked as need to modify dub locally to build with ldc (rather than dmd)); ideas (or verification) welcome
<|beowulf|>
tomberek: what does that do?
<tomberek>
mkDerivation adds a ton more, that stuff is all documented in the Nix manual
<rmcgibbo[m]>
Is anyone familar with using stuff from `pkgs.linuxPackages` -- I'm getting a failure at runtime because, I think, my current kernel is 5.10.17, but when I use `pkgs.linuxPackages_5_10.bcc`, it's for 5.10.18, and so the kernel headers aren't found.
<|beowulf|>
ah, about variables?
<tomberek>
that runs a very simple builder that just outputs the environment, so you can see what is set
<orion>
I am receiving an error from nix-build: error: build of '/nix/store/n5vglpl7ri56yc06fdbcq5ldzwfp7y41-shell.drv' failed <-- How do I properly troubleshoot this?
<orion>
I already tried adding the -v flag. No additional output related to that error was received.
mallox has quit [Quit: WeeChat 3.0.1]
<Ke>
if you are up to it, I would just strace nix-daemon as root, though that will give you a lot of output
<Ke>
not saying it's the best way, but it should theoretically show you the reason
Fuzen has joined #nixos
buggymcbugfix has quit [Quit: Connection closed for inactivity]
<hplar>
more generally "nix-shell -p ldc" works; "git clone git://github.com/NixOS/nixpkgs" and then "nix-shell -p ldc -I nixpkgs=/nixpkgs-dev/nixpkgs" does not after today's update (i pull and build with it almost daily)
hiro98 has quit [Quit: hiro98]
hiro98 has joined #nixos
malook has joined #nixos
<ronthecookie>
im trying to use a shared library from a kernel module in my shell.nix but for whatever reason it cant find it. https://termbin.com/0ukk
<ronthecookie>
./monitorsim/monitorsim: error while loading shared libraries: libevdi.so.0: cannot open shared object file: No such file or directory
<ronthecookie>
it resides at /nix/store/3gj1rns91s01k19l82b23cdwaq8fgvyz-evdi-v1.7.2/lib/libevdi.so, is it possible that it cant find it because of the lack of a .0 on the end of that path?
hiro98 has quit [Quit: hiro98]
kenran has joined #nixos
cyphase has joined #nixos
sangoma has quit [Ping timeout: 245 seconds]
<noonien>
does nvidia-x11-455.38-5.10.18 not build for the latest 20.09?
BaughnLogBot has quit [Ping timeout: 240 seconds]
BaughnLogBot has joined #nixos
<unclechu>
hey. i’m trying to use stdenv.mkDerivation but i’m a bit confusing by documentation that showing examples with arguments which are marked as deprecated in the nixpkgs and doesn’t give enough explanation for my question.
<unclechu>
what argument do i use to in order to provide dependencies required only during the build (make, gcc, etc) and what argument is for dependencies that are required during runtime of the derivation?
<ronthecookie>
unclechu: my shell.nix might help a bit but i dont really know either :P
<rnhmjoj-M>
unclechu: nativeBuildInputs and buildInputs, in the order you asked
<unclechu>
rnhmjoj-M: thanks but these two are marked as ‘n.b. legacy name’ in `pkgs/stdenv/generic/make-derivation.nix`
kenran has quit [Remote host closed the connection]
kenran has joined #nixos
knupfer1 has joined #nixos
xAr86 has joined #nixos
<noonien>
i'm trying to help debug an issue with nvidia-x11 not building. how can i print values from my config? `boot.kernelModules` for example
knupfer1 has quit [Client Quit]
<rnhmjoj-M>
unclechu: ah, you're right: i had no idea. in practice they are not deprecated, though
xAr86 has quit [Client Quit]
<ronthecookie>
noonien: maybe `nix eval`? idk, should read man page for that
bokononi3t has joined #nixos
xAr86 has joined #nixos
sangoma has joined #nixos
<xAr86>
Hey :)
<x0rx>
mmmm hey hey :)
supersandro2000 has quit [Ping timeout: 245 seconds]
<unclechu>
rnhmjoj-M: so could it be that they are marked as ‘legacy names’ in sense that ‘we better come up with more sensible names in the future’?
<xAr86>
I've setup FDE nixos and run into a problem - after unlocking my encrpyted zfs I get permission denied when its automatically mounted on boot -
<unclechu>
so they are not actually deprecated yet but are planned to be deprecated
<unclechu>
whilst there are no replacements for them at the moment
bokononi1t has quit [Ping timeout: 264 seconds]
<xAr86>
I followed mostly the wiki and adjusted when I run into an error, do you have an idea? if needed I could post config-parts and a pictore from boot
supersandro2000 has joined #nixos
aveltras has quit [Quit: Connection closed for inactivity]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #nixos
<rnhmjoj-M>
unclechu: it seems the whole cross-compilation support and documentation has been contributed by ericson2314 (github username)
<rnhmjoj-M>
unclechu: the nixpkgs manuals says the name buildInputs is kept for historical continuity but would be depsHostTarget for correctness. i think this is what the "legacy name" means
vidbina has joined #nixos
ATuin has joined #nixos
Jackneill has quit [Read error: Connection reset by peer]
ahmed_elgabri has joined #nixos
<tami6[m]>
Did anyone here managed to set tmux using home-manager, how do I setup tpm?
<sterni>
rmcgibbo[m]: nixos-20.09 is the 20.09 channel exactly
<sterni>
rmcgibbo[m]: the release-20.09 branch becomes nixos-20.09 as soon as there are no hydra build failures and all builds have promoted to the binary cache
<sterni>
I guess that's why the jobset is called release
<romildo>
How to run nixpkgs-review locally and get suggestions, like the ones seen on nixpkgs repository pull requests? Is it possible? Is any command line option needed for that?
<mep1911>
in sync mode, i can bring up the xfce desktop (but not gnome, shows a white error screen), and glxgears doesn't work at all —
<mep1911>
in offload mode, glxgears works, using the amd graphics, but with offloading to nvidia i get an error "Major opcode of failed request: 152 (GLX)
<mep1911>
[...]" —
<mep1911>
on some other distros i've tried, nvidia works. —
<mep1911>
not supported yet or am i missing something to configure?
<rmcgibbo[m]>
veleiro: I think. It depends what you need to change in the wrapper though, right? e.g. if it's python and you're trying to make sure python packages get loaded correctly, wrapPython might be easier.
zebrag has quit [Read error: Connection reset by peer]
ece has quit [Read error: Connection reset by peer]
ece8 has joined #nixos
zebrag has joined #nixos
ece8 has quit [Read error: Connection reset by peer]
tami5[m] is now known as ta[m]
zebrag has quit [Client Quit]
ece has joined #nixos
<romildo>
sterni, and how to trigger nixpkgs-hammering from nixpkgs-review?