<cole-h>
Equally as easy: `sha256sum filename.iso` and compare
<fuzzypixelz>
I didn't know you could do both, I thought I would need to do it for the file I downloaded. Could you please explain both methods x)
<Yaniel>
uhh
<Yaniel>
well the URL thing tells you what the server claims the hash is
<cole-h>
If you have both the .sha256 and .iso files, you can run `sha256sum .sha256` and it should compare the precomputed checksum with the checksum of the file you downloaded
<Yaniel>
and you can compute the actual hash of the file you downloaded, to see if you actually got the same file
<Yaniel>
(and it didn't get corrupted on the way)
<Yaniel>
as in the same file that the server claimed to send you
<Yaniel>
you don't *have* to do it but it is a good idea of course
iH8c0ff33 has quit [Ping timeout: 256 seconds]
seku has quit [Quit: Connection closed]
<{^_^}>
[nixpkgs] @AndersonTorres opened pull request #105189 → QMPlay2: init at 20.07.04 → https://git.io/Jkd2B
<rogerr>
why doesn't home manager env get into my $PATH when i rdp in but does when i ssh in? my rdp startwm.sh https://termbin.com/i1gq and .xprofile https://termbin.com/mcxp what is break pls?
<rprije>
cole-h: yes, it works fine for darcs when run directly
<rprije>
I've even lifted out exactly the command nix runs with all the associated --lazy and --tag flags. Works fine when run directly outside of the nix build system.
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkdDO
<Wulfsta>
I'm trying to test a derivation that requires a specific numpy and scipy version using nix-shell. Is there any way for me to specify that numpy/scipy should be that particular version for every derivation input in the shell? I'm hitting a "Found duplicated packages in closure for dependency ..." error.
<supersandro2000>
Wulfsta: did you try an overlay?
<Wulfsta>
Oh, that actually makes this easy - thanks
<vanbeast>
Hi, I've created a package for eddie-ui GUI App for AirVPN service. It was mentioned in this issue https://github.com/NixOS/nixpkgs/issues/73233 . It's working on my machine (NixOS) after nix-build. But this is my first package, so I have some doubts. Who should I put as a maintainer? Also, I didn't test other platforms
<{^_^}>
[nix] @kquick opened pull request #4288 → Disable cache when a flake --update-input is explicitly specified. → https://git.io/JkdyH
<evils>
vanbeast: no harm in creating a PR, the bot will give you some feedback even if no one else does
h0m1 has joined #nixos
orivej has joined #nixos
<evils>
vanbeast: the listed maintainer(s) should be interested parties, you would obviously be an obvious candidate
<rogerr>
why doesn't home manager env get into my $PATH when i rdp in but does when i ssh in? my rdp startwm.sh https://termbin.com/i1gq and .xprofile https://termbin.com/mcxp what is break pls?
<vanbeast>
elvis: thanks. Will create a PR with what I have at the moment
<dhess>
Anyone know why switching python3Packages to use python39 (vs python38) would cause "error: invalid command 'bdist_wheel'" when trying to build Python dependencies?
<dhess>
It's like the `wheel` package went missing
<{^_^}>
[nixpkgs] @vanbeast opened pull request #105195 → eddie-ui: init at 2.18.9 → https://git.io/JkdSP
<evils>
gentauro: i seem to recall there's a way to configure a solid colour wallpaper with X, so if you find that, surely there'll be a place to put it in your config
<evils>
vanbeast: just putting your nickname in maintainers isn't valid unless you have a matching entry in nixpkgs/maintainers/maintainer-list.nix
<zeta_0>
cole-h: ok, so this error is being thrown for all of my shell.nix files, which is not good, the shell.nix file that I am using for javascript is throwing a smaller error message, so I guess that's a good sign: https://dpaste.org/j8JDhttps://dpaste.org/csqS
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/Jkd7G
<zeta_0>
I made a bunch of changes, so i'm not sure how to narrow it down, to see what's causing the error, is there anything else that any of you recommend me troubleshooting, so that I can pinpoint the root cause of this error?
<supersandro2000>
zeta_0: try removing the node packages one by one. One of them causes an infite recursion
<zeta_0>
supersandro2000: but this error is occurring in all of my shell.nix files that worked before, so I don't think that it has anything to do with the contents of the files, 2 big changes that I made were adding an emacs-overlay, and changing my .emacs config, other than that, I have no idea what is causing these errors to be thrown!
<gentauro>
evils: I could just use a small image with the colour I desire and then just use "fill"
<gentauro>
thx
<gentauro>
:)
<gentauro>
evils: do you know if it's possible to add a background image per workspace?
<gentauro>
that would by nifty :)
<evils>
gentauro: that's probably up to your desktop/window manager
<zeta_0>
I've never had to deal with an inifinite recursion error, so that's very weird!
<simpson>
zeta_0: Guessing that you changed something about your system overlay configuration.
ZaraChimera has quit [Ping timeout: 272 seconds]
ece has quit [Read error: Connection reset by peer]
ece has joined #nixos
SomeoneSerge has quit [Ping timeout: 256 seconds]
<zeta_0>
simpson: ya, I updated the rev/sha, here's the corresponding code in my home.nix file: https://dpaste.org/odeq
tlaxkit has quit [Ping timeout: 256 seconds]
<gentauro>
I created a `~/.background-image` but it doesn't seem to used. Do I need to restart Xserver?
Yasuke has joined #nixos
<zeta_0>
also, for my emacs config, i'm now recursively calling separate files as modules in my .emacs, but I don't think that's what's causing this nix-shell inifinite recursion error that i'm getting.
<evils>
gentauro: i use wayland so i'm probably not the best to make recommendations xD, you may need to rebuild nixos and restart X
<Yasuke>
Hello everyone! I was able to run nixos-infect for a while to get nixos on digital ocean servers, but now when I start a new droplet, and run the nixos-infect script ... I can't ssh in and get: "Resource temporarily unavailable"
<supersandro2000>
Can someone point me to a solution for the following error when building derivations ? collision between `/nix/store/ycql9cr407lc8ws1bvx7b2d1qq7fvlvk-python3.8-jaraco.functools-3.0.1/lib/python3.8/site-packages/jaraco/__pycache__/__init__.cpython-38.pyc' and
<supersandro2000>
builder for '/nix/store/mfxqm4m3qkd44k242h7cj27sfraprkn7-python3-3.8.6-env.drv' failed with exit code 25
<zeta_0>
simpson, cole-h: well I updated my emacs-overlay again, and changed my .emacs config back to where it was, and did another upgrade to my whole system, but that infinite recursion error is still being thrown!
pbb has joined #nixos
<zeta_0>
that error message is not helping, I don't know what to troubleshoot next.
<gentauro>
restarted X and no changes in background image :|
<gentauro>
nevermind
pinecamp has joined #nixos
monokrome has joined #nixos
<zeta_0>
what is this fixed-points.nix file? that's where the inifinite recursion is occurring.
<pinecamp>
is there any NixOS support for declarative management of network namespaces?
aw has quit [Quit: Quitting.]
spacefrogg has quit [Quit: Gone.]
aw has joined #nixos
zeta_0 has quit [Quit: rcirc on GNU Emacs 27.1]
spacefrogg has joined #nixos
<colemickens>
Did something change? I'm getting SSL errors all of the sudden with mercurial? anything regrading CA certs and nix-shells or anything?
<colemickens>
abort: error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1124)
<colemickens>
getting that from mercurial all the sudden and the host is presenting a valid SSL cert as far as I can tell.
<zeta_0>
colemickens: I don't think, it has to do with my shell.nix files, because the error is being thrown for all of my shell.nix files that worked before, anyways here's the javascript shell.nix file that returned the error that I pasted in the reddit post: https://dpaste.org/2QDV
<zeta_0>
maybe the shell.nix files implicitly call the emacs-overlay, I have no idea.
<colemickens>
zeta_0: can you `ls ~/.config/nixpkgs` for me
<colemickens>
... lmao exactly the issue I have just talking about. GO FIGURE.
<colemickens>
But like I said, it tries to load <nixpkgs> while loading overlays, while loading <nixpkgs>... so you can see where that goes.
<colemickens>
An overlay will always return a function final->prev->attrset, so they usually look like (final: prev: { /* bulk in here */ }).
<zeta_0>
colemickens: so how certain are you that it is emacs-overlay that is causing the infinite recursion error to be returned by nix-shell?
<colemickens>
because I know that `nix-build` will try to load overlays from that dir, and I can read the first line of the "overlay" to see that it's going to load nixpkgs...
<colemickens>
do you see the loop?
monokrome has quit [Quit: WeeChat 2.8]
<colemickens>
nix-shell loads your shell.nix, which imports <nixpkgs>, so nix imports your "overlay". When it evaluates it, the very first line is to load <nixpkgs>... so it starts over...
<colemickens>
That, and it's simply not a valid overlay nix expression.
<colemickens>
Also, the usage docs for that emacsWithPackagesFromUsePackage function appear to be for using it a specific individual package, not overlay.
<colemickens>
I would expect that `nix-env -iA nvim` would fail for you, as well, if my hunch is correct.
<zeta_0>
colemickens: so how was it working correctly before, then stop working correctly, does the order of evaluation change or something? i'll execute that command now, one second!
<colemickens>
I can't really speak to prior state, unfortunately.
<colemickens>
Like I said, I believe you that it works from `home.nix`.
<zeta_0>
colemickens: so, what do you recommend that I do to fix this, I don't want to have to put emacs-overlay back in home.nix, i'm trying to break down my home.nix config to separate files, so that it's easier to manage!
<colemickens>
you have emacs-overlay in home.nix right now?
<zeta_0>
and call the separate home.nix files as modules!
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkFLD
<colemickens>
it's possible that is all you need to do to resolve this.
<zeta_0>
colemickens: so delete emacs.nix and place the `entire` emacs-overlay in home.nix?
<colemickens>
what???? no
<colemickens>
move emacs.nix next to home.nix.
<colemickens>
it is not an overlay, it does not belong in overlays/
<colemickens>
"emacs.nix" is a Nix expression that returns a single, customized emacs package.
<colemickens>
It uses a function emacsWithPackagesFromUsePackage that is provided to you by importing the emacs-overlay (lines 15-17 of the one paste)
<{^_^}>
[nix] @abathur opened pull request #4289 → darwin: encrypt nix volume if filevault is enabled → https://git.io/JkFLN
<zeta_0>
colemickens: oh good, I misunderstood you, and that overlays directory is just a name, but ok i'll move emacs.nix out of the overlay directory.
<colemickens>
its not just a name though, that's the key point I'm trying to make :)
<zeta_0>
colemickens: Oh, it makes sense now, I'll make that change and get back to you, one second, and thanks for having patience, nix has these edge cases that confuse me.
<{^_^}>
[nixpkgs] @jtojnar pushed commit from @r-ryantm to master « gnome3.gnome-maps: 3.38.1.1 -> 3.38.2 »: https://git.io/JkFts
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkFtV
<colemickens>
zeta_0: I literally just wrote up a couple of posts recently about how new upcoming Nix features make these problems less likely to happen and more easy to diagnose-via-crowd in the future.
<bbigras>
Are hashes different with flakes? I'm trying to switch the same config to flakes and I need to push 14 GB to my laptop.
<colemickens>
bbigras: shouldn't be, no. I built this as an example to show that if you write a flake.nix correctly (and do a trick to fix version info) the built hash is the same: https://github.com/colemickens/nixos-flake-example
<colemickens>
(The version info only affects a few small store paths at the end, because flakes can get richer info about the input nixpkgs)
<zeta_0>
colemickens: ok, I move emacs.nix out of overlays/ and into nixpkgs/ , and changed the path in home.nix to ./emacs.nix, executed nixos-rebuild switch, and executed nix-shell for my javascript shell.nix file, and finally it works!
<colemickens>
zeta_0: :) excellent! please do me a favor and update the reddit post, you can just link to the IRC conversation if you want.
<bbigras>
colemickens: so there must be another problem in my case? like my flake.nix is not correct? it seems the version info wouldn't make up that much.
KarlJoad has quit [Quit: ERC (IRC client for Emacs 27.1)]
<{^_^}>
[nix] @abathur closed pull request #4181 → darwin: encrypt nix volume if filevault is enabled → https://git.io/JT2WJ
<colemickens>
bbigras: correct, the version info would be a rebuild of a few tiny, tiny paths, not even in the realm of 14 GB.
<colemickens>
If I were making a naive guess, your current nix channel isn't actually where you think it is?
<zeta_0>
colemickens: thanks, for the help, this really frustrated me for a while, and ok i'll update my reddit post!
<zeta_0>
colemickens++
<{^_^}>
colemickens's karma got increased to 45
* abathur
rips a telephone book in half
<abathur>
it's much less impressive these days, though, they're so tiny :(
<colemickens>
bbigras: that seems fine, yes. You can run `nix flake update --update-input nixpkgs` to make it recheck. I'm less worried about your flake, and more about if your `sudo nix-channel` is where you think it is.
codebam has joined #nixos
<bbigras>
colemickens: isn't flakes supposed to not use channels? I do have some outdated channels to make manix work. I'll remove them.
<Graypup_>
if I want nix to build me a rv64i-none- binutils, how would I politely ask it to do that?
<colemickens>
bbigras: sorry, that's not what I'm saying.
<colemickens>
bbigras: you're worried about a 14GB difference. If its the same config, the difference is very likely nixpkgs being on different revisions.
<colemickens>
You can look at flake.lock if you're worried about what rev flakes is going to use...
<colemickens>
but I'm more worried that your current nixpkgs is older than you think. Does that make sense?
<zeta_0>
colemickens: I can write my own shell.nix scripts for my own projects usually without too much struggle, at what point will I know that i'm ready to contribute to the nix community, such as nixpkgs?
<bbigras>
colemickens: gotcha. yeah maybe. I did some tweaks. Like I made sure than when I run `nixpkgs follows input 'nixpkgs', that every nixpkgs were folowing the same updated one. maybe in my previous configuration that wasn't the case. Like maybe home-manager used its own nixpkgs.
<colemickens>
bbigras: something like that? 14GB is big though. I don't know how to check "what nixpkgs rev is my running-system running on" with channels unfortunately, to confirm.
<colemickens>
I just skimmed it fairly quickly but your flake.nix makes sense to me.
<bbigras>
colemickens: yeah. Especially since I see things like mesa-driver being copied. that should be from my system config and not home-manager I thinkk.
<colemickens>
you could try `readlink -f /run/current-system` and see if hte last segment of the path is a short git sha
<colemickens>
that might give you a really rough idea if the system base nixpkgs was off, at the very lesat.
<zeta_0>
colemickens: I think that I'll keep learning nix for a couple more months, and when I feel a little bit more comfortable with nix, I'll try contributing to the nix-community.
<bbigras>
colemickens: like this `/nix/store/yzghpm0bpzyxr4hwlwf1im4wbb6py86g-nixos-system-laptop-21.03pre-git`? I ran it on the target computer.
<colemickens>
hm, were you using a custom nixpkgs for NIX_PATH?
<colemickens>
zeta_0: sorry, didn't mean to ignore you. I think you can contribute now! It just depends on what you're contributing.
<bbigras>
colemickens: I think so. I was using nixus
<colemickens>
zeta_0: imo, updating your Reddit post with information about the solution counts as a Nix contribution. It may help someone some day.
<colemickens>
zeta_0: it seems like a big take-away with the confusion around ~/.nixpkgs/config/overlays being very special. It might be good if you could find somewehre for that to be printed in bolder text, or something like that
<colemickens>
zeta_0: otherwise nixpkgs code contributions can similarly be tiny or huge and still impactful.
<colemickens>
oh weird, I don't know how that works then :)
<bbigras>
I might be wrong. I might be thinking about something else for the overlays.
<colemickens>
bbigras: can you cd /run/current-system/nixpkgs on the target and `git status`? Though I doubt it'd copy the .gi
<colemickens>
anyway, thank god for flakes
<zeta_0>
colemickens: it's fine, and sorry for distracting you, and yeah, documentation here and there helps.
<zeta_0>
speaking of flakes, are they worth investing time to learn? I don't know anything about them!
iH8c0ff33 has joined #nixos
<colemickens>
bbigras: lol do _you_ have any idea what nixpkgs rev the system was on?
<colemickens>
bbigras: how were you updating it for example?
<bbigras>
colemickens: I could run the nix-info thing. I was using niv 3 days a week but I actually pushed it to my laptop about once a week.
<bbigras>
`/run/current-system/nixpkgs` has the new stuff. with flake.nix
<colemickens>
bbigras: well, I guess what I was getting as was to check and see if maybe the nixpkgs that `niv`/`nixus` was maybe not updating as often as you thought, or was pinned to stable with niv? But you have some nixpkgs indirection going on that I don't really understand.
<zeta_0>
oh flakes do look very useful, I already installed flakes, so I guess I'll just experiment with them for now.
<bbigras>
I might have to reboot the target to revert all the shit.
<bbigras>
nix-info was taking a while and my current-system was wrong. maybe I'll have the right rev this time.
iH8c0ff33 has quit [Ping timeout: 240 seconds]
<siraben>
So it looks like /boot/loader/entries has generations 81 and 82, but /boot/grub/grub.cfg has the newer generations, why the desync?
<siraben>
Can I force generation of /boot/loader/entries again?
<colemickens>
siraben: did you change bootloaders?
<colemickens>
siraben: /boot/loader/entries is for systemd-boot?
<siraben>
colemickens: I don't think I changed bootloaders
peelz has joined #nixos
<colemickens>
siraben: I assume you're booting with Grub?
<siraben>
How would I check that? I'm looking through my git history to see if I touched the bootloader settings
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkFst
<bbigras>
colemickens: oh I was wrong about /run/current-system/nixpkgs having the wrong files. It doesn't have `.git` though. I just remembered than I have an old kernel too. It's a couple of months old. I guess maybe I should just do the push and keep an eye when there's updates.
<foooz>
hi... i'm trying to run _tabletop simulator_ via steam on nixos .. the window flashes into existence, and then disappears .. then the menu music plays.. there are no obvious errors in the terminal, and when i do `ldd` on the ELF executable, all the shared libraries seem found ...
<foooz>
it's a unity3d game..
<foooz>
sorry this isn't the normal linux question, but i'm trying to not go to a different platform just for games lol
Rusty1 has quit [Quit: WeeChat 2.3]
<siraben>
Is hardware-configuration.nix something to be kept secret?
<foooz>
siraben, not usually.. it at most exposes a few details like your partition UUIDs and how many cores your processor has .. since the UUIDs are randomly generated, they're unique to your installation.. but they don't contain private information
<siraben>
Ooh, I haven't tried configuring the kernel yet, not sure what many of those options do
<abathur>
if you're the kind of person someone might develop an exploit for or blow a zero day on, you probably want to leak as little about your setup as possible
<abathur>
but it's probably easier to just infiltrate one of your package's sub-deps or something...
<siraben>
Then I wouldn't be uploading my dotfiles in the first place, heh
<siraben>
abathur: Right, depends on the threat model
<siraben>
Is there a risk of malicious code from Nixpkgs? I suppose the fault would lie with upstream for releasing a malicious version
<siraben>
s/upstream/the upstream package in question
<abathur>
shrug, both are technically a risk
<abathur>
if someone astroturfed a compelling fork of some old stale project and convinced someone switching sources for a new release was a good idea, they'd get to play upstream...
<abathur>
wild guess, but I imagine the most-likely vector for most package managers is a compromised or sold upstream/user account
<foooz>
i think that's a risk you run in every open source distro to a cerntain degree
<foooz>
and also, wrt the kernel options and stuff.. that's not in hardware-configuration.nix, which was your original question siraben
<siraben>
foooz: Right
<siraben>
At least in the open source case it's auditable, for macOS and Windows it's completely opaque
<foooz>
yup
foooz has quit [Remote host closed the connection]
kalbasit has quit [Ping timeout: 256 seconds]
cole-h has quit [Ping timeout: 260 seconds]
<jophish>
Is it possible to query if a path is in a cache without fetching it?
<raghavsood>
Is there an established standard for dealing with packages that output binaries with the same names as another package?
<patagonicus>
I'm currently configuring stuff for my HiDPI screen and one thing I noticed is that Urxvt seems to use the default mouse cursor, which is tiny, even though I've overwritten Xcursor.size and Xcursor.theme in .Xresources and it is applied to e.g. Chrome and i3bar. Anyone know how I change the mouse cursor for Urxvt?
<Reventlov>
how do you go with using an overlay for a linuxPackages ?
<Reventlov>
I tried putting that in some overlay.nix and using it in nixpkgs.overlays, but the versions does not seem to change: https://0x0.st/iRhf.txt
schweby has joined #nixos
<bbigras>
Reventlov: did you try setting the version?
<dottedmag>
How do I use writeShellScriptBin in flake.nix? I can't find it in nixpkgs input anywhere.
<mizukota[m]>
where can I read more about SD image, "raw" image and other things in Nixos/Guix that can be deployed? Are those read-only? How to build and use them?
<sphalerite>
mizukota[m]: you can build a variety of images from nixos configs. They're not generally read-only, though some variants like iso images and kexec and netboot initramfses won't persist changes across reboots normally.
<raghavsood>
It is missing the include for the python library - I have no idea why, though - I've tried every possible way of including a python library that I could find
<{^_^}>
[nixpkgs] @maralorn merged pull request #104683 → ghc8102: bootstrap with ghc8102BinaryMinimal on aarch32 → https://git.io/Jki8X
<raghavsood>
Great news, I managed to get it to include python in the command, and it still fails :(
<dhess>
Anyone Python experts around?
malook has joined #nixos
<victorbjelkholm>
trying to figure out how to set extra rules in sudo, docs say default value is a list, example value is a string (security.sudo.extraRules is the option name), setting it to a list gives me the error "The option value `security.sudo.extraRules.[definition 2-entry 1]' in `/etc/nixos/configuration.nix' is not of type `submodule'" which I'm not sure what it means really
<victorbjelkholm>
this is how I'm trying to set the rule: "security.sudo.extraRules = [ "Defaults timestamp_type=global" ];"
<nf>
victorbjelkholm: maybe you want extraConfig instead?
<victorbjelkholm>
nf: looks you're right, that was indeed what I wanted. Thanks a lot!
<victorbjelkholm>
that's cool, would be extra nice if nixos-search also linked there, together with the declaration. Tried to figure out from the declaration alone but my nix understanding is not good enough yet it seems
<victorbjelkholm>
speaking of nix-search, anyone know where the backend is or how I can get the data to run it locally? Seems the repository in NixOS/nixos-search is just the frontend
malook has quit [Quit: malook]
<evils>
victorbjelkholm: there's `man configuration.nix` if you want to search nixos options locally
vsiddharth has quit [Ping timeout: 260 seconds]
<nf>
victorbjelkholm: if you run `nix-build '<nixos/nixos/release.nix>' -A options` you'll get result/share/doc/nixos/options.json containing all options in JSON format
<nf>
the import scripts in nixos-search use that to populate the backend
<nf>
(see import-scripts/import_scripts/channel.py)
<victorbjelkholm>
evils: no, I wanted to try to contribute to nixos/nixos-search, fix some minor issues
<victorbjelkholm>
nf: thanks, that's what I was looking for. Thanks!
<victorbjelkholm>
anyone had any luck using zsh antigen with nixos? Seems its installation is assuming to be able to write to global directories, ending up erroring with "-antigen-cache-generate:zcompile:65: can't write zwc file: /etc/zshrc.zwc" when installing the plugins. Trying to figure out how to override the directory now, not having any luck so far
cosimone has quit [Remote host closed the connection]
cosimone has joined #nixos
Edward- has joined #nixos
zupo_ has joined #nixos
xelxebar has quit [Remote host closed the connection]
<patagonicus>
matthewcroughan_: Potentially a reboot will fix it. AFAIK the access for the video users is set by a udev rule that gets installed by light, so it probably isn't in effect until the rule gets triggered. And my guess is that only happens at boot.
xelxebar has joined #nixos
<patagonicus>
Alternatively: did you make sure to log out and log in again to make sure the new group is active? `newgrp video` will also work, but only for that shell.
<matthewcroughan_>
"installed by light" ?
<matthewcroughan_>
Are you sure about that?
<matthewcroughan_>
udev rules handled by the app? Seems odd
<matthewcroughan_>
patagonicus: seems not to be the case
<matthewcroughan_>
is it not enough to say: home.packages = with pkgs; [ wofi grim slurp wob light ]; ?
<nf>
no, because that doesn't install the udev rule
<patagonicus>
I've not seen home.packages before. But, that will prorably not install the udev rule. The easiest way is setting programs.light.enable = true; in your /etc/nixos/configuration.nix and nixos-rebuild switch.
<matthewcroughan_>
The option `home-manager.users.matthew.programs.light' does not exist. Definition values:
<nf>
it's a NixOS option, not a home-manager option
<matthewcroughan_>
right, so how would you separate this in a nixos structure?
<matthewcroughan_>
Where do you think colemickens would put it?
Yasuke has joined #nixos
<matthewcroughan_>
I think he has me blocked because I was a talkactive noob, so can't ask him :P
<patagonicus>
Just put it so it's included in your /etc/nixos/configuration.nix. So, for example, put it in /etc/nixos/configuration.nix
<matthewcroughan_>
alright, but I have a feeling this is going to bite me later :D
zupo has joined #nixos
<matthewcroughan_>
I'll figure it out. Thanks
<matthewcroughan_>
awesome, that worked.
meh` has joined #nixos
<matthewcroughan_>
nf: how can I learn the difference between programs.thing.enable, and just "installing" the package?
zupo_ has quit [Ping timeout: 264 seconds]
<matthewcroughan_>
is there a manual section on the difference maybe?
<matthewcroughan_>
I have an idea of it. Is it that .enable is an attribute of nixos modules?
<matthewcroughan_>
so if I do not .enable it, then it'll give me it as if I were not using nixos? As just a package via Nix?
<nf>
yes, programs.thing.enable is a NixOS configuration option that once set to true will enable some configuration to take place (in this case, install light globally and install its udev rule)
<matthewcroughan_>
whereas home-manager.programs.thing.enable, is something that will work outside of nixos by design?
<simpson>
An interesting situation. Nix doesn't have ways to install packages. I wonder to what degree the shape of `programs` has confused folks; setting up standard configuration and paths for a program is not the same as some sort of installation process.
<Raito_Bezarius>
matthewcroughan_: programs.thing.enable = true; can also install a suid wrapper
<Raito_Bezarius>
in order to have a SUID binary, you have to wrap a program using security.wrappers iirc
<matthewcroughan_>
so did Xorg need that?
<Raito_Bezarius>
depends on the binary
acairncross has joined #nixos
cr4y1 has joined #nixos
<mizukota[m]>
is there a good non-eletron matrix client?
<{^_^}>
[nixpkgs] @Mic92 opened pull request #105230 → doc/java: convert to markdown → https://git.io/Jkb2N
alp has joined #nixos
iH8c0ff33 has joined #nixos
satok-nixos has joined #nixos
satok-nixos is now known as satoko-nixos
<satoko-nixos>
Hi. I have a problem. I use a 'fcitx' input method and it doesn't work in QT5 apps. Could someone please suggest a way of fixing it?
<victorbjelkholm>
just to check if my understand is correct. I have neovim installed, trying to get my config to work. Wanted to reset from the beginning so removed all mentions of neovim from my configuration.nix and rebuilt. Still the binary seems to be in $PATH and it's working. Isn't it supposed to be removed if it's not in my config? Also tried nix-env --uninstall neovim but somehow it's still available
<Reventlov>
victorbjelkholm: you may have installed it in your user environment
<Reventlov>
$ nix-env --query and $ sudo nix-env --query
<victorbjelkholm>
Reventlov: seems to have been the opposite, I had run `nix-env --uninstall` without root. Running it as root removed neovim. Thanks for the rubber ducking
<Reventlov>
yw
<victorbjelkholm>
still seems strange it wasn't removed when no mention in configure.nix no? Unless I installed it manually before adding it to the config I guess
<Reventlov>
nix-collect-garbage ?
<Reventlov>
maybe ?
<{^_^}>
[nixpkgs] @zimbatm opened pull request #105233 → EXPERIMENTAL: replace bash with oil → https://git.io/JkbrW
<victorbjelkholm>
I'll give that a try next time. Thanks for the help
<Reventlov>
Question: I want to update the version of the linuxHeaders from 5.5 (currently the default in unstable) to the version of my kernel. How should I do that ?
<Reventlov>
I'm searching for an "easy way" to do that
<{^_^}>
[nixpkgs] @roosemberth opened pull request #105234 → [20.09] firejail: fix -overlay and -build functionality on NixOS → https://git.io/JkbrH
<Reiser>
I have a foo-key service from nixops, and an oci-container, and I'm not sure how to get the oci-container to depend on the first service, anyone run into this before?
nf has quit [Client Quit]
<Reiser>
I could createa a new service with an After=foo-key and a WantedBy + Before=docker-bar, but it feels messy
nf has joined #nixos
<sjlnk>
I'm trying to setup a custom keyboard layout. I just updated services.xserver.extraLayouts attribute to be able to do that. nixos-rebuild test started compiling tons of stuff as a result and that seems to take a very long time... Is this normal?
<Yasuke>
Does anyone know why nixos-infect doesn't work anymore on digital ocean? SSHing in after infecting I get "resource is temporarily unavailable"
fendor_ has joined #nixos
mkaito has quit [Quit: WeeChat 2.9-dev]
fendor_ has quit [Read error: Connection reset by peer]
mallox has joined #nixos
cosimone has quit [Remote host closed the connection]
<sjlnk>
How can I quickly try my xkb custom keyboard layout? `xkbcomp layout $DISPLAY` does nothing for some reason. No matter which layout I'm using. I tried the built ins from setxkbmap/share/X11/xkb/symbols as well...
<sjlnk>
When changing the xserver.extraLayouts attribute the rebuilding takes almost an hour
<sjlnk>
Cant really test that way
acairncross has quit [Quit: Leaving]
gerschtli has quit [Quit: WeeChat 2.9]
gerschtli has joined #nixos
alp has quit [Ping timeout: 272 seconds]
Edward_ has quit [Remote host closed the connection]
Edward- has quit [Remote host closed the connection]
<rawtaz>
i started looking into the matter of a graphical installer, like calamares or anything really, and realized there's a ton of different issues and forum posts about this. before i spend two hours looking through all that, can someone possibly sum up the state and where the main discussion is going on currently? just in short, OTTOYH, no need to take much of your time :)
<rogerr>
i have a basic shell.nix working to set up rust but the 2 commented out lines throw errors on https://termbin.com/wnidb. how can i fix it pls?
<victorbjelkholm>
mizukota[m]: if the effort of getting nixos to work over ipfs is still being made, being able to install nixos while offline doesn't seem so far away :)
<victorbjelkholm>
I haven't looked into it myself but I'm guessing nix is using http for fetching packages? Rewriting things to also be able to use the filesystem would be harder than to make it work over IPFS, which exposes a http interface
<victorbjelkholm>
mizukota[m]: huh, you mean there are other things than the packages that needs to be fetched from the internet on install?
omneh has quit [Ping timeout: 272 seconds]
<{^_^}>
[nixpkgs] @prusnak opened pull request #105241 → Electron updates → https://git.io/Jkbdz
<mizukota[m]>
well it's all derivations
<mizukota[m]>
but you cant put all 60k of prebuilt nix packages on single machine, it's too much space
<victorbjelkholm>
yeah, it'll probably need a large USB stick, that's for sure. Lots of them can certainly be deduplicated also, which ipfs does automatically. But hard/big doesn't mean impossible :)
<raghavsood>
On that note, is there a tracker for how much space all derivations would actually take up?
<neiluj>
basically i've got a function which generates a list of imports that i pass to the modules attribute of nixosSystem
<infinisil>
raghavsood: victorbjelkholm: https://nixos.org/governance.html says that the binary cache is 120TB big, though that's probably a bit outdated
<raghavsood>
How can I query all packages that directly depend on a package across the entire tree? `nix-store -q --referrers` seems like a good candidate in the manual, but I'm unsure if it queries all derivations or just what I have in my store (I'm assuming it works on the local store)
laerling has joined #nixos
<srhb>
raghavsood: Only what you have in your store, indeed.
<dutchie>
rogerr: with recent rust versions clippy and rustfmt come with rust. building nixpkgs.latest.rustChannels.stable.rust includes them in there so there aren't attributes for them
malook has quit [Quit: malook]
<rogerr>
ah nice ty
<{^_^}>
[nixpkgs] @Ericson2314 merged pull request #105155 → Python: rename internal parameters related to splicing and fix splicing → https://git.io/Jk5zB
<rogerr>
dutchie i removed clippy-preview and rustfmt-preview from nixpkgs.latest.rustChannels.stable.rust.override extensions. should rust-analysis be kept or is that included too?
<rogerr>
fwiw i separately have nixpkgs.rust-analyzer because the mozilla overlay version is broken
<dutchie>
oh
<dutchie>
i'm not sure
<siraben>
Anyone using NIXOS_LUSTRATE? What kinds of things do you persist?
<rogerr>
i guess i can try
maljub01 has quit [Read error: Connection reset by peer]
<dutchie>
i was about to say that i can see a rust-analyzer in the build output
maljub01 has joined #nixos
Edward- has joined #nixos
<{^_^}>
[nixpkgs] @SuperSandro2000 opened pull request #105253 → vimPlugins: Add prabirshrestha/async.vim to vim-plugin-names → https://git.io/Jkbp8
<rogerr>
why doesn't home manager env get into my $PATH when i rdp in but does when i ssh in? my rdp startwm.sh https://termbin.com/i1gq and .xprofile https://termbin.com/mcxp what is break pls?
<sbock>
hey, does anybody has an example configuration.nix for LUKS on LVM? my efforts resulted in the bootloader waiting for the lvm container to appear :/ i think i am missing something.
<cptMikky>
hey all! I've got problems with 3D acceleration. Regardless of whatever settings I try to change or tune (including BIOS) the discrete GPU performance is ridiculous. It's about half the perfomance of integrated graphics when used in a desktop box and about the same pefromance as integrated graphics when used as TB3-connected eGPU on a laptop.
<cptMikky>
I have yet to try a different OS than NixOS though. I'm at lost with what to debug and how.
<cptMikky>
the GPU is a solid AMD RX 580 (Polaris10) which should be fully supported by the available drivers
<sshow>
NixOS doesn't seem to properly setup cryptodisk in GRUB when boot is inside LVM in LUKS. Is this a known issue? However, it works great when boot is in its own luks partition
<{^_^}>
[nixpkgs] @wirew0rm opened pull request #105277 → vdirsyncer: disable flaky test → https://git.io/JkN3O
<infinisil>
colemickens: Can upload the result of `nix-store --export $(nix-store -qR /nix/store/q56w8697f6xndv1wkkdwlnwrpvfn6gy8-hg-archive.drv) > export`?
<{^_^}>
[nixpkgs] @svanderburg pushed 6 commits to release-20.09: https://git.io/JkN3i
alp has joined #nixos
<cptMikky>
so it seems like a NixOS-related issue after all: glxgears on Ubuntu 20.10 live (i.e. "out-of-the-box" and unoptimized) gives about 3x better results than NixOS. I couldn't identify any significant differences in either dmesg or X logs between Ubuntu and NixOS.
<colemickens>
infinisil: hmmmm. okay. I was going to try to update nss since it seems liek that's where the certs come from? Otherwise I'm not sure how I could've even managed to affect something like "CAs visible to fetchers". I don't even know how those bits works.
<{^_^}>
[nixpkgs] @Chiiruno opened pull request #105280 → vendor-reset: init at 0.0.18 → https://git.io/JkNZ8
pinecamp has joined #nixos
<pinecamp>
anyone here using wireguard in a network namespace? I've spent 8hrs or so trying to get things working in the past couple days, but I think I'm in over my head
<srhb>
TheSirC[m]: I think you may have pared this down a bit too much.
<TheSirC[m]>
What do you mean srhb: ?
<srhb>
TheSirC[m]: I'm worried that your example has too little context. Like, I don't see `options` anywhere :)
whatisRT has joined #nixos
<TheSirC[m]>
You mean the `options` on line 4 of the `default.nix` file ?
<srhb>
TheSirC[m]: I mean the outer one which should enclose your "option"
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkNc2
<srhb>
TheSirC[m]: Now it's perhaps too big (sorry) because I see other errors like server's mkOption being fed things like internalInterface, mkOption etc.. while it probably should be a submodule of some kind :)
<srhb>
TheSirC[m]: I think the right approach for you hear is to cut down until you have something that works, then add in things until it breaks.
<srhb>
s/hear/here
<TheSirC[m]>
<srhb "TheSirC: Now it's perhaps too bi"> Oups, you're right about the server's `mkOption` ; didn't pay attention to that yet
<srhb>
TheSirC[m]: If I cut it down to just peers, which I think is what you're trying to do, it works as expected.
<srhb>
So I think you are being distracted by other things :)
<TheSirC[m]>
That makes no sense though...Where is that list coming from then
<srhb>
TheSirC[m]: Perhaps you can try using --show-trace
<{^_^}>
[nixpkgs] @jtojnar opened pull request #105284 → doc/gnome: Port to Markdown → https://git.io/JkNCL
<srhb>
TheSirC[m]: It might be some module internals, haven't seen the full error yet.
<TheSirC[m]>
srhb: Awfull output is what I see...
<srhb>
It is a bit verbose.
<TheSirC[m]>
<srhb "TheSirC: If I cut it down to jus"> Weird! It does not work for me !
<{^_^}>
[nixpkgs] @jtojnar closed pull request #105284 → doc/gnome: Port to Markdown → https://git.io/JkNCL
<{^_^}>
[nixpkgs] @SuperSandro2000 pushed 2 commits to master: https://git.io/JkNWL
<raboof>
I'm trying to compile an esp32 program from the arduino IDE
<raboof>
this tries to invoke /home/aengelen/.arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-80-g6c4433a-5.2.0/bin/xtensa-esp32-elf-gcc, but that executable produces 'can not execute binary file: Exec format error'
<neiluj>
why does defining a config.modules.<some_option> option yields the error:
<neiluj>
Add configuration attributes immediately on the top level instead, or move all of them (namely: programs) into the explicit `config' attribute.
<raboof>
`file` says it's a `x86-64` executable, and `uname -a` says I'm on `x86_64`. I have `patchelf`'ed the binary. what could be wrong?
<infinisil>
colemickens: Looking at it again, it seems that mercurial uses the `ssl` python library to load certificates, and it can't find any in the build
<srhb>
neiluj: Sounds like you're setting thing both using config and without?
mkaito has quit [Quit: WeeChat 2.9-dev]
<TheSirC[m]>
srhb: I will stare at it for a bit. Thank you for your insight
<neiluj>
raboof: patchelf is tricky, i once had a problem with an executable and ended up launching it in a FHS environment
<neiluj>
here is an example of fhs nix environment that i used to make it execute: https://tpaste.us/zx5W
veleiro has joined #nixos
<infinisil>
colemickens: In the source code there's the `mercurial/sslutil.py` file which throws the "an attempt was made" error. It probably needs a patch to call e.g. `sslcontext.load_verify_locations` https://docs.python.org/3/library/ssl.html#ssl.SSLContext.load_verify_locations
<infinisil>
colemickens: "Alternatively the SSL_CERT_FILE environment variable can be defined to override this location."
<rogerr>
why doesn't `home.sessionPath = ["~/.local/share/foo/"];` work (echo $PATH doesn't show it in list) when i rdp into the system but it does when i ssh in? my rdp startwm.sh https://termbin.com/i1gq and .xprofile https://termbin.com/mcxp how can i debug this pls?
<simpson>
There shouldn't be any problem with creating symlinks under $out or other outputs, although it's not often that you'll want to manually do that.
<bourbon>
I'm trying to hit /var/lib/kubernetes
<bourbon>
and it's getting a "no, stupid, that's not real"
<simpson>
Ah. Yes, Nix is protecting you from yourself; derivations can't do that.
<bourbon>
what can, then?
<rogerr>
pls i so desperate
<bourbon>
I know nix is doing something screwy to keep me off the paths
<simpson>
bourbon: You'd write a NixOS module (or put a snippet into configuration.nix, which itself is a NixOS module) which adds an activation script to systemd's startup; the script would copy/symlink into /var as needed. I think that you can look at our Pg support for inspiration.
<Wulfsta>
Anyone have a guess at what's causing this?
<kyren>
so I just updated my nixos 20.09 install from uhh, 0bbqmip233mqvk2q46pbhjw3djr68p9m120kl37kw2758a5kggay to 147d4nsq0334skyr9rghcfnizasvba1pr2rq72axwdldlma0qli1, this upgraded gitlab from 13.0.something to I think 13.6.something
<kyren>
I now get a giant WARNING in the gitlab log file about the postgres install (which is the internal install inside the gitlab module? being version 9, and the WARNING is telling me that version 11 is required, seemingly related to this, the rake job for upgrading gitlab fails and gitlab goes into a startup loop
<Wulfsta>
I'm going to add it to the python environment the derivation sets up for the bazel build
<kyren>
okay so somehow postgres 9 is getting pulled in rather than 11, even though I haven't actually picked a version of postgres on that machine? I wonder if this is due somehow to system.stateVersion?
<Wulfsta>
but this is a long build, so I won't know if that fixes it for a while
werner292 has joined #nixos
<{^_^}>
[nixpkgs] @r-burns opened pull request #105292 → munkres: fix tests on 32-bit systems → https://git.io/JkNuk
werner291 has quit [Ping timeout: 272 seconds]
werner292 is now known as werner291
<infinisil>
kyren: What's your system.stateVersion set to?
<kyren>
infinisil: I think I figured out what happened, I've been using postgresql 9 and the upgrade to 20.09 didn't require it, but then the upgrade from gitlab 13.0 to 13.6 does require it, so I got caught off guard
<kyren>
now I'm reading about how to properly upgrade postgresql from 9 to 11
<matthewcroughan_>
Does anyone know why I can't start sway with the home-manager session variables on gdm?
<kyren>
okay yeah that's more reassuring, I think gitlab is really at fault here for requiring a new database from two 13.x versions
SomeoneSerge has quit [Ping timeout: 246 seconds]
neiluj has quit [Quit: leaving]
<infinisil>
kyren: Can you complain loudly about this having broken gitlab for you in that issue?
<kyren>
infinisil: will do!
<infinisil>
Nice :D
<{^_^}>
[nixpkgs] @stigtsp merged pull request #105271 → perlPackages.LaTeXML: patch shebangs to use full path to perl on darwin → https://git.io/JkNIa
<simpson>
(TIL that vile is still alive! We don't have it packaged, but that could be an adventure for somebody: https://invisible-island.net/vile/)
<simpson>
rogerr: In all seriousness, if you need a lightweight vi within the next hour, and you can't figure out hexa-++'s incantation, then elvis builds for me and works fine. (There's also vim, but you've indicated that it might be too much even when most features are disabled.)
<kyren>
what the hell, now gitaly is complaining that git is too old, it says unsupported version 2.28, apparently gitaly 13.6.0 requires git >= 2.29, which is not in 20.09
<shapr>
that's why I put my packages in my configuration.nix, so I can rebuild my system easily
<infinisil>
codebam: You could enable `system.copySystemConfiguration`, which will "backup" /etc/nixos/configuration.nix into each system build, therefore ending up in /run/current-system/configuration.nix
FareTower has joined #nixos
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
<bbigras>
Any way to use git modules with flakes? I can't "git add" those files and they are ignored.
werner292 has joined #nixos
sigmundv has quit [Read error: Connection reset by peer]
sigmundv has joined #nixos
<V>
bbigras: uh... do you mean the lockfiles?
werner291 has quit [Ping timeout: 272 seconds]
werner292 is now known as werner291
acarrico has quit [Ping timeout: 240 seconds]
<bbigras>
V: no. I mean I have a secrets git submodules and I only include it in my config if the files exists. So on github I can build everything except my private stuff. It was working great before I was using flakes. but with flakes, those file are not included. I know that we need the files to be indexed by git (like by using `git add`). but I have no idea what to do for flakes.
<bbigras>
unless maybe I just need to update the git submodule reference or whatever it's called.
<V>
ah. I'm not a flakes expert, sorry. I do know that they prevent you from using anything impure off the filesystem, but I'm not sure what exactly that entails
<V>
it's possible also that your lockfile hasn't been updated to include the secrets?
<V>
if your secrets submodule is a flake itself, that is
<bbigras>
my flake.lock file only includes my inputs.