<selfsymmetric-mu>
Now where I would normally say `pkgs`, I can say `pkgs.unstable` or `pkgs.stable1903`.
___laika has quit [Ping timeout: 268 seconds]
<vaibhavsagar>
selfsymmetric-mu: what if I want `pkgs` itself to be a specific revision?
kvda has joined #nixos
<selfsymmetric-mu>
vaibhavsagar: Not sure. I was hesitant to override something to fundamental. I respect what you're going for though. I'd rather have no channels declared on the command line at all.
<vaibhavsagar>
selfsymmetric-mu: this is for a short blog post about deploying a new system using `nix-copy-closure` and `switch-to-configuration`
<vaibhavsagar>
we used to do this all the time at my last job but I think we set `NIX_PATH` and I don't want to do that for this
<oborot_>
I have a default.nix file, I guess you call them derivation files (?). Anyways, it's encapsulating my ruby dev environment. I had the latest ruby specified in there, but I downgraded. It seemed to work, but bundler seems to still think it's using the original ruby version, not the new version that a specified.
<oborot_>
I tried running the nix-garbage-collector, but that didn't seem to make a different.
<oborot_>
Is there some way that I can clear everything that might be sticking around from the original ruby version in my derivation file?
<oborot_>
Specifically bundler is complaining that I'm using the old version or ruby, it doesn't seem to recognize that I downgraded.
Thra11 has quit [Ping timeout: 258 seconds]
felixfoertsch23 has joined #nixos
felixfoertsch has quit [Ping timeout: 264 seconds]
<ksundar>
cool cool. I've seen home-manager as an extension of this to home directories, but it looks experimental
<ryantm>
ksundar: home-manager? I've been using it for probably a year now. It's been fine for me.
felixfoertsch23 has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
<ksundar>
ah, ok. I might use it in the future then. I'm literally just setting up NixOS for the first time. The goal is to get something that works like a minimal server that I can run computationally expensive jobs on
Wizek has quit [Quit: Connection closed for inactivity]
<ksundar>
thanks! I'll probabaly have a question soon about setting up a recurring script, but I'll try to bang my head on the keyboard for a bit first
<{^_^}>
[nixpkgs] @worldofpeace pushed 4 commits to master: https://git.io/fjFAs
felixfoertsch has quit [Quit: ZNC 1.7.3 - https://znc.in]
felixfoertsch has joined #nixos
ksundar has quit [Quit: Leaving]
casaca has quit [Ping timeout: 258 seconds]
phreedom has quit [Ping timeout: 260 seconds]
phreedom has joined #nixos
___laika has quit [Ping timeout: 246 seconds]
bakakuna has joined #nixos
dansho has quit [Ping timeout: 245 seconds]
dansho has joined #nixos
Chiliparrot has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cinimod has joined #nixos
<cinimod>
clever: from yesterday - I don't have overlays or a config.nix
<cinimod>
Also if I try building with gfortran7 then the derivation starts to rebuild ghc - so I could be into several hours before the whole thing finally fails :(
cinimod` has joined #nixos
cinimod has quit [Ping timeout: 268 seconds]
orivej has joined #nixos
<hpfr[m]>
Ok, I have a package in boot.extramodulepackages now. I put the name of the package in boot.kernelmodules, but lsmod | grep packagename returns nothing. What am I doing wrong?
bakakuna has quit [Read error: Connection reset by peer]
<ajs124>
Izorkin: that commit doesn't delete nixos/tests/ejabberd.nix, does it? So it leaves us with nixos/tests/xmpp/ejabberd.nix *and* nixos/tests/ejabberd.nix?
<Nyanloutre[m]>
Hello, there seems to be a problem with the staging-next branch on hydra. Lots of failed builds because the e2fsprogs failed. But when I replicate the build on my computer it's working.
<Nyanloutre[m]>
* Hello, there seems to be a problem with the staging-next branch on hydra. Lots of failed builds because the e2fsprogs build failed. But when I replicate the build on my computer it's working.
<nakkle>
Hey guys! Any tips on how to use a channel I set up with hydra? The channel URL I get is, e.g., https://my-hydra-server/project/project_name/channel/latest, and when I add it with `nix-channel --add`, it works. But how do I use it in a nixos config? builtins.fetchTarball on this URL just says "This does not look like a tar archive".
<nakkle>
__monty__: I already figured out that you can just add "nixexprs.tar.bz2" to the URL hydra outputs, and you can do fetchTarball on that URL. but thanks for your help :)
rsoeldner has quit [Ping timeout: 248 seconds]
<__monty__>
nakkle: If you want to use it via the url then you don't have to add it ass a channel.
<srhb>
qubasa: The package can be configured to enable certain plugins. Their names are interpolated into the description of the package, which is a bit unclear especially in the case of the versions with no configured plugins.
<srhb>
Ashy: Aside from the prevevalence of overlays, I don't imagine much has changed.
<srhb>
Ashy: (Which in my experience means that the nixpkgs manual covers it all, really)
<Ashy>
ok cool
<aiowej>
Hi! My disk is encrypted with LUKS. I bought a Microsoft Ergonomic Keyboard 4000 (version numbers are better when multiplied by 1000...). It does not work for opening the disk, in the LUKS prompt. After some research, I've found that I need to append a value to boot.initrd.kernelModules. What I am failing to find, is the exact value to put in there? Is there some knowledge to find in these lines of code?
o1lo01ol1o has quit [Remote host closed the connection]
rsoeldner has joined #nixos
<srhb>
aiowej: What made you think you need to append some value there? (I'm curious since that knowledge seems to usually imply that you also know at least conceptually what it is you need there)
<srhb>
Is it a USB keyboard?
<hyper_ch2>
github is not loading for me
<srhb>
hyper_ch2: Looks fine here.
<hyper_ch2>
ok, now it loaded
<qubasa>
I am trying to overrideAttr of firefox. It does switch to the configuration nix without problems but it does not do any changes. Has someone an idea?
<hyper_ch2>
aiowej: just add all the modules and then start removing them or add one after the other and test
<srhb>
qubasa: Please elaborate on the changes you made, how you made them, what you did to switch and what changes you expected :)
<qubasa>
This is the configuration file. What I wanted is to add these files into the derivation
<srhb>
qubasa: And then you did a nixos-rebuild switch?
<qubasa>
Yep
<qubasa>
But it does not generate the files and it does not recompile firefox either
<aiowej>
srhb: From reading documentation and searching the web, and asking a friend more experienced with Linux. I found that the LUKS login screen appears during initrd (init ram-disk) phase. Yes, it's a USB keyboard.
<aiowej>
hyper_ch2: Yeah, maybe that's the best solution... Will publish a blog post so that the next guy doesn't have to do that
<srhb>
qubasa: It wouldn't rbuild firefox since you're just altering the wrapped version. How did youj conclude the files are not there?
<risson>
Hi! I'm getting kernel panics when hibernating or sleeping. The error showed in journalctl is `kernel: PM: Image not found (code -22)`
<risson>
Anyone had these issues before?
<tilpner>
qubasa: Guess: The overriden buildCommand of firefox deviates from the standard phases, so postFixup is ignored
<{^_^}>
[nixpkgs] @jtojnar opened pull request #67075 → paprefs: clean up dependencies → https://git.io/fjbtA
<srhb>
aiowej: I mean, I would expect it to work with just the usbhid module, which should be there by default
<qubasa>
tilpner: Hmm that could be
<srhb>
aiowej: Hence my wonder :)
<tilpner>
qubasa: Try appending to buildCommand
<qubasa>
srhb: I made a readlink /run/current-system/sw/bin/firefox then got into the directory and looked if the files are there
<srhb>
qubasa: OK, that sounds right to me. tilpner is probably correct then :)
<niso>
thoughtpolice: you can always restrict that locally by using git-hooks
<thoughtpolice>
exarkun: also skimming all-packages.nix is useful for finding those things too JFYI, which is how i found `interactive = true`. Provided you at least know the name of the attribute you want. Lots of packages have various versions like that which only get specified in all-packages.nix
<thoughtpolice>
niso: That's true but I'd rather have the server stop me, rather than my own git config. :) It's not terrible in this case. It would just be nice to block 'obvious' accidents like that in one place for everyone, is all.
evanjs has quit [Remote host closed the connection]
evanjs has joined #nixos
<slabity>
Where does `boot.initrd.availableKernelModules` initially get generated from?
<slabity>
It looks like it adds 'usb_storage' module by default. Is that correct? If so, is there a reason we don't include 'uas' module as well?
<srhb>
jollyjester: Sure, that works..
<srhb>
slabity: Do you mean the list generated by nixos-generate-config?
<slabity>
srhb: Yes
<slabity>
I'm assuming some modules are added by default for booting from various devices. I'm curious why the `uas` driver isn't included in that list.
jollyjester has quit [Quit: leaving]
jgt has quit [Ping timeout: 250 seconds]
<srhb>
slabity: I believe the trick is something like loading a metric ton of modules, then traversing the available modules' pseudo file systems to correlate with active hardware, then selecting some subgroup of that.
<slabity>
Ah, so that would mean 'usb_storage' module only gets added because the install disk is mounted from a USB.
<srhb>
I don't think it needs to be mounted to show up in /sys with the driver active
<srhb>
Just present
<slabity>
That explains why it still happened with botting in copytoram mode
Zer0xp has quit [Ping timeout: 245 seconds]
Okinan has quit [Ping timeout: 250 seconds]
<slabity>
Would it be useful to include a list of reasonable defaults for commonly used block drivers? It would make it easier to boot in the event of a hardware change
<srhb>
I think nixos-generate-config.pl can be safely extended to include it if we're not doing that already.
<jtojnar>
Izorkin: what is the purpose? smaller closure?
<Izorkin>
jtojnar: smaller closure and need to build virt-viewer without xen
Palpares has joined #nixos
Thra11 has joined #nixos
vyorkin has quit [Read error: Connection reset by peer]
<buckley310>
has anyone managed to exclude gnome-terminal from a gnome installation? environment.gnome3.excludePackages does not seem to work with gnome-terminal
fendor has quit [Ping timeout: 245 seconds]
zmlww has quit [Quit: Bye!]
<jtojnar>
buckley310: it is installed by services.gnome3.gnome-terminal-server.enable option
<{^_^}>
[nixpkgs] @danieldk opened pull request #67105 → freeoffice: init at 966 → https://git.io/fjblU
fionnan has quit [Remote host closed the connection]
<Izorkin>
jtojnar: view build log virt-viewer, not used xen. Need remove from build config?
is_null has quit [Ping timeout: 246 seconds]
zmlww has joined #nixos
<jtojnar>
Izorkin: we might be able to make it leaner by splitting the python into a separate output like e.g. volume-key does
drakonis has joined #nixos
<sondr3_>
when using Cachix as a NixOS module, is there a way for it to not try to build everything the first time you run nixos-rebuild on a new machine?
<sondr3_>
I have to comment out the relevant Cachix lines, let it evaluate and then uncomment then and it copies properly from the binary caches
freeman[w]_ has joined #nixos
<jtojnar>
Izorkin: does it build without it?
___laika has joined #nixos
<jtojnar>
it is not in the runtime closure but it might still be needed for something during build
<srhb>
sondr3_: Because you're missing the binary cache? If you're a trusted user, you can add it in for the first build
<Izorkin>
jtojnar: In the master branch xen error build. Virt-manager normal build without xen
<sondr3_>
srhb: I have included them in my dotfiles, it mostly looks like it doesn't install and configure cachix before getting to the part where it tries to install the packages
erasmas has quit [Ping timeout: 246 seconds]
<sondr3_>
this is only an issue the first time I setup my machines, just wondering if there is a solution
<srhb>
qubasa: Pretty sure you can still do that. Hang on..
<disasm>
Mic92 reviewed https://github.com/NixOS/nixpkgs/pull/66576 and said it should be fine since it's not applied by default. I'd kinda like to get it merged if there's no other issues with it, but need an approving review.
<{^_^}>
#66576 (by disassembler, 1 week ago, open): kernelPatches: mac nvme t2 support
<disasm>
if it helps, we've been running with this patch on a mac mini for about 5 days and no problems.
<iqubic>
How do people usually go about getting Emacs packages to work with a Nix-Shell.
<iqubic>
My issue is that many Emacs packages built to facilitate programming, like company's auto completion, or flycheck's underlining of errors only work if Emacs can find the libraries that I'm using.
<Izorkin>
jtojnar: checked on the home server - virt-viewer worked. Checked with libvirt + xen support. There is no way to check connect to the xen server
<{^_^}>
[nixpkgs] @worldofpeace pushed commit from @nyanloutre to staging-next « networkmanager: hardcode parts of the source URL (#67100) »: https://git.io/fjbBH
<{^_^}>
[nixpkgs] @globin pushed 11 commits to openssl-1.1: https://git.io/fjbBb
___laika has quit [Ping timeout: 248 seconds]
hmpffff has quit [Quit: Bye…]
zmlww_ is now known as zmlww
petar has quit [Remote host closed the connection]
mexisme has joined #nixos
petar has joined #nixos
<iqubic>
So anyone know what to do about getting Emacs and Nix work well?
<DigitalKiwi>
direnv?
MarcWeber has joined #nixos
is_null has quit [Ping timeout: 268 seconds]
<iqubic>
How would that help me?
<gchristensen>
what is it you're having problems with?
<alexarice[m]>
iqubic: if you are talking about working with nix-shells then there is https://github.com/travisbhartwell/nix-emacs though I haven't personally tried the sandboxing stuff
o1lo01ol1o has joined #nixos
<Yaniel>
what is the correct way to point an application at the gl drivers nowadays?
<iqubic>
Emacs, actually flycheck to be specific, is giving me errors and saying that a whole host of functions in my Haskell file don't actually exist, when I know for a fact that these function exist in libraries I have pulled in from my nix-shell.
<DigitalKiwi>
the result is that programs started from within emacs, such as inferior shells, linters, compilers, and test runners, will be looked up in the correct $PATH, and will be started with the correct environment variables set.
<iqubic>
flycheck is an emacs package that underlines errors with a red line.
<Yaniel>
getting an error saying nvidia driver can't find libnvidia-glvkspirv.so.430.40
<iqubic>
How hard is it to set up, and do you have experience with it?
<DigitalKiwi>
easy, yes
<DigitalKiwi>
lorri is a nice companion
<iqubic>
Also, I know I could just launch my emacs instances from inside my nix-shell, but I don't want to do that, because I run EXWM, and having a second emacs instance running seems pointless.
zmlww has quit [Quit: Bye!]
<iqubic>
DigitalKiwi: I have no experience running lorri.
<DigitalKiwi>
i didn't until i started using it either ;)
<iqubic>
I have no idea how to set-up any of this.
<iqubic>
How could I setup direnv to work with both emacs and nix?
<DigitalKiwi>
https://github.com/target/lorri this has instructions for setting up direnv that may be useful even if you don't use lorri
<iqubic>
I love the built with Nix Bagde.
<iqubic>
You can find the lorri tutorial in the ./example directory. After following this tutorial, you will have a working setup of lorri, direnv, and working basic editor integration into Emacs.
<iqubic>
And there it is, on a silver platter.
<iqubic>
That's literally everything I could ever want, all in one convenient place.
o1lo01ol1o has quit [Remote host closed the connection]
<matthuszagh>
hello. I'm getting this error when trying to use matplotlib to plot: `qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""'. This looks like it's related to the new way of using qt with `wrapQtAppsHook'. However, I haven't been able to get this to work with matplotlib. Any idea how I can solve this?
<{^_^}>
[nixpkgs] @LouisDK1 closed pull request #66975 → translations for libreoffice-still and libreoffice-fresh, mythtv 29.1 -> 30.0 → https://git.io/fjFH4
<alexarice[m]>
matthuszagh: that's almost certainly caused by the lack of `wrapQtAppsHook` given that error message
LouisDK has joined #nixos
<alexarice[m]>
you could try overriding the package and adding wrapQtAppsHook to the nativeBuildInputs
<iqubic>
Is it just me, or does the version of Firefox from unstable use a ton more ram that the version from 19.03 stable?
wfranzini has quit [Remote host closed the connection]
selfsymmetric-pa has quit [Remote host closed the connection]
is_null has joined #nixos
<alexarice[m]>
or I think if the correct Qt libraries are in your path then you won't get the problem though unfortunately I do not know what libraries you need
<matthuszagh>
alexarice[m]: i've tried and unfortunately I'm still getting the error message
<matthuszagh>
using `wrapQtAppsHook` in nativeBuildInputs
<LouisDK>
I wanted to undo some changes in my work but ended up getting my pull req closed due to force-pushing: https://github.com/NixOS/nixpkgs/pull/66975 - Can someone reopen it or should I just submit a new pull req?
<{^_^}>
#66975 (by LouisDK1, 1 day ago, closed): translations for libreoffice-still and libreoffice-fresh, mythtv 29.1 -> 30.0
MrCCoffee has joined #nixos
xkapastel has joined #nixos
<alexarice[m]>
matthuszagh: https://nixos.wiki/wiki/Qt I think matplotlib is using qt 4 so you could try giving the qt4 instructions a go
<{^_^}>
[nixpkgs] @LouisDK1 opened pull request #67128 → All available translations added for libreoffice-fresh and libreoffice-still → https://git.io/fjbRa
LouisDK has quit [Remote host closed the connection]
<iqubic>
DigitalKiwi: I figured out the issue. I accidentally deleted my /nix/store directory.
<m1crOman>
I was wondering if I could get some tips on improving my workflow in nixpkgs. So right now I want to try updating the glusterfs package to 6.0. I know how to make a simple nix script to overrideAttrs but looking at the glusterfs service config I can't set the pkg to be used, so I need to update from the nixpkgs repo. Is it standard procedure to have a fork of nixpkgs with my own changes and set the nix-channel (?) on my machines to source
<m1crOman>
from there?
jgt1 has quit [Ping timeout: 272 seconds]
<m1crOman>
Oh I cut the "Hello" off my message sorry :P kind of rude
cjpbirkbeck has quit [Quit: Quitting now.]
<worldofpeace>
Can someone check if they can execute audacity on nixos-unstable or 19.03? I'm having issues, not sure if it's environmentally specific
<DigitalKiwi>
iqubic: that's impressive
<alienpirate5>
how does one manage to do that?
<worldofpeace>
thinking the same here.
<iqubic>
Actually, I made that up.
<symphorien>
worldofpeace: audacity runs fine here (19.03)
jgt1 has joined #nixos
<symphorien>
19.03.172927.30a82bba734 (Koi)
<iqubic>
worldofpeace: audacity runs fine here (nixos-unstable)
zeta_0 has quit [Quit: taking break]
<worldofpeace>
Thanks symphorien iqubic
<alienpirate5>
m1crOman: you would want to make an overlay
iqubic has quit [Remote host closed the connection]
jgt1 is now known as jgt
iqubic has joined #nixos
rsoeldner_ has quit [Remote host closed the connection]
rsoeldner_ has joined #nixos
<{^_^}>
[nixpkgs] @jtojnar opened pull request #67132 → libv4l: disable building qt → https://git.io/fjb0J
<m1crOman>
alienpirate5, that is _exactly_ what I need :D thanks
jgt has quit [Ping timeout: 252 seconds]
<m1crOman>
In the long run if I was to update the glusterfs package and PR back to nix I will do it the hard way as doc'd in the quick start guide for nixpkgs essentially
<{^_^}>
[nixpkgs] @zimbatm pushed commit from @dshkyra to master « terraform-providers: bump versions (#66587) »: https://git.io/fjb0n
paileyb has joined #nixos
ryantrinkle has quit [Ping timeout: 245 seconds]
<paileyb>
Nix on macOS question. Has anyone had issues with ssh passphrases stored in keychain? I can get them to work outside nix with system ssh. But ssh from openssh-7.9p1 doesn't seem to have this integration (also doesn't support UseKeychain in ssh-config). Thanks!
<alienpirate5>
m1crOman: howoldis.herokuapp.com
<m1crOman>
That is amazing :D
<m1crOman>
ok so I think I'll just wait a day and it should be updated then
rsoeldner_ has quit [Ping timeout: 272 seconds]
<EsperLily>
paileyb: The UseKeychain directive is unique to Apple's fork of openssh and only available with the system SSH
<EsperLily>
Homebrew actually copied Apple's patch for their openssh package, but Nix can't do it because Apple's patch is written against OpenSSL 0.9.8 and Nix's OpenSSL is too new
<EsperLily>
if you don't have UseKeychain in your .ssh/config that's why keychain doesn't work at all. Older macOS versions defaulted that on, but newer ones turned it off to match default behavior of other systems
<EsperLily>
if you do put UseKeychain there, you need to add `IgnoreUnknown UseKeychain` as well or else other SSH packages (like Nix's) will fail to parse the config
<EsperLily>
BTW for mosh, since it just uses the ssh binary and nothing else, I overrode it locally to change its openssh dependency to a tiny wrapper that's just a symlink of /usr/bin/ssh. That way I can still use the keychain for mosh connections
o1lo01ol1o has quit [Remote host closed the connection]
<hpfr[m]>
Can I just list patch files in boot.kernelpatches or do I have to make packages wrapping them? If so, where can I find examples
<hpfr[m]>
The example given makes it seems like you need a package wrapper but I can’t find an example :(
paileyb has joined #nixos
judson_ has quit [Remote host closed the connection]
judson_ has joined #nixos
<paileyb>
looks like I may have disconnected before this sent: Thanks EsperLily! It's a bit unfortunate, because I can't really use ssh from within an nix env. It also looks like homebrew openssl is 8.0p1 (newer than nix?). So perhaps the patch would work? Would there be interest in this? I'd be willing to maintain. It's a bit of a dealbreaker for using nix
<infinisil>
hpfr[m]: And the option description <https://nixos.org/nixos/options.html#kernelpatches> mentions pkgs.kernelPatches.ubuntu_fan_4_4 as an example. While that attribute doesn't exist, there's other kernel patches there, which you can check out with `nix eval nixpkgs.kernelPatches.<TAB>`
Rusty1 has joined #nixos
selfsymmetric-mu has quit [Remote host closed the connection]
<NemesisD>
are there any tools i can use to determine why a particular derivation is in my closure? i'm baking a docker image and its dragging in a really huge derivation i'm not expecting