<charukiewicz>
I have two users on my NixOS machine, both made through my nixos-configuration.nix with the same permissions/user groups. I have a project with a shell.nix that imports and uses packages from a nixpkgs-unstable via builtins.fetchGit (using url=https://github.com/NixOS/nixpkgs, ref="nixos-unstable").
<charukiewicz>
For one user, I'm able to start the nix shell. The other user gets an error when my build inputs include anything from the nixpkgs-unstable import. This is the error I see: Unpacking the bootstrap tools... : not found ....-unpack-bootstrap-tools.sh: line 5:, followed by "build of '...util-1.drv', '...util-2.drv', '...util-3.drv' failed"
<matthewcroughan>
I've been stuck on building rustc-1.51.0 (installPhase): install: installing component 'rust-docs' for ages :D
<charukiewicz>
I've tried removing ~/.cache/nix and running nix-collect-garbage but I don't know why the two of them are getting different behaviors. Does anyone have any ideas or anything I could try to resolve the discrepancy between the two users?
<colemickens>
charukiewicz: does one of them have overlays applied?
<colemickens>
charukiewicz: you might use a more specific reference than `nixos-unstable`, since it moves (but if you're clearing ~/.cache/nix then they'd probably be the same)
beertoagunfight has quit [Ping timeout: 245 seconds]
<matthewcroughan>
Does anybody know how I can stop Firefox-78.8.0esr ending up in my sources? I thought it might be sufficient to disable polkit But no, it keeps ending up in my system and failing to build for armv7l somehow.
luhui has joined #nixos
<matthewcroughan>
`security.polkit.enable = lib.mkForce false;` seems not to do it.
<charukiewicz>
colemickens: nope, didn't have any overlays applied. ended up just working around the issue by using a pinned version of nixpkgs-unstable with a bootstrapped fetchFromGitHub from my <nixpkgs>
<colemickens>
charukiewicz: builtins.fetchTarball is your friend
<colemickens>
charukiewicz: no need to use a nixpkgs just to get a nixpkgs tar ;)
dckc has joined #nixos
<charukiewicz>
colemickens: so you recommend just doing a fetchTarball on github.com/nixos/nixpkgs/<commit>.tar.gz ?
<charukiewicz>
or is there some better host to use? I haven't actually dealt with this much in about a year so I need a bit of a refresher on some details
<colemickens>
uh, there's different URLs. I think the one I use is the legacy one
xkapastel has quit [Quit: Connection closed for inactivity]
ahmedelgabri has joined #nixos
noobstar has joined #nixos
ddellaco_ has joined #nixos
meteo_ has joined #nixos
ahmedelgabri has quit [Ping timeout: 260 seconds]
ddellac__ has joined #nixos
hyper_ch has quit [Remote host closed the connection]
hyper_ch has joined #nixos
meteo__ has quit [Ping timeout: 240 seconds]
<noobstar>
I'm having a lot of trouble getting this autotools project to build with stdenv. I have a super barebones default.nix set up with just pname, version, src (fetchurl tar.xz), and buildInputs. The build fails, giving `configure: error: glib-compile-schemas not found.`. I believe this should be provided under glib.dev (I've tried putting glib and
<noobstar>
glib.dev in buildInputs), and if I navigate to that derivation in the store, bin/glib-compile-schemas *is* there. I looked at my derivation with nix show-derivation and it does show glib.dev's derivation in buildInputs. I'm completely lost on what's going wrong here. Does anyone know anything I can try?
ddellaco_ has quit [Ping timeout: 246 seconds]
<simpson>
noobstar: Did you add pkgconfig? Put it into your buildInputs and your autoconf should be much smarter at finding those libraries.
<redcedar[m]>
hi there! My system is not setting the default shell automatically, not sure what to try. I've got `programs.zsh.enable = true;' and `users.defaultUserShell = pkgs.zsh;` If I open a terminal and type `echo $0` I still get bash. Any ideas on how to troubleshoot this?
<redcedar[m]>
* hi there! My system is not setting the default shell automatically, not sure what to try. I've got `programs.zsh.enable = true;` and `users.defaultUserShell = pkgs.zsh;`If I open a terminal and type`echo $0` I still get bash. Any ideas on how to troubleshoot this?
sophi4c4pozzoli3 has quit [Remote host closed the connection]
<cole-h>
redcedar[m]: What about `users.users.<name>.shell = pkgs.zsh;`
<redcedar[m]>
<cole-h "redcedar: What about `users.user"> Thanks, I tried that too. I now have it working. I needed to reboot, instead of just restarting the terminal. Now trying to get ohMyZsh to work.
<colemickens>
powerlevel10k is somewhat popular around here too (particularly it's git integration handles huge git repos like nixpkgs somewhat well compared to most shell integrations)
<{^_^}>
[nixpkgs] @cdepillabout pushed to haskell-updates « haskell-language-server: disable hydra tests for ghc-9.0 »: https://git.io/JsWWY
<{^_^}>
[nixpkgs] @cdepillabout pushed to haskell-updates « haskellPackages: add cdepillabout as maintainer for password and termonad »: https://git.io/JsWl0
<kini>
Is there somewhere I can put an ssh key so that `nix-daemon` and the build agents will be able to use it when `fetchgit`ing a git repo over ssh?
<tejing>
what exactly is a repository, and how is it different from a channel?
<tejing>
nobody is answering your question because it doesn't make sense
<tejing>
also, what does 'install an option' mean exactly?
ahmedelgabri has joined #nixos
<JoaquinitoFB>
tejing Hello, i can install nginx with additional modules, with options, from repository, or from channel???
<tejing>
also, be patient, things move slowly in chat rooms like this. sometimes it takes time to get an answer, but it helps to be as clear and informative as possible in the question
<JoaquinitoFB>
OK, i can install nginx with additional modules, with options, from repository, or from channel???
<tejing>
'repository' isn't really a term that applies in nixos, except perhaps as a synonym for 'channel' so that's still a wierd question.
turlando has joined #nixos
<JoaquinitoFB>
tejing, but i can install nginx with additional modules, with options, from channel???
<legendofmiracles>
Yes, you can install nginx from the main repository aka nixpkgs
<JoaquinitoFB>
legendofmiracles But i can install nginx with additional modules, with options, from channel???
<JoaquinitoFB>
But i can install nginx with additional modules, with options, from channel???
henrikkarlsson has joined #nixos
HenrikK has joined #nixos
respawn has joined #nixos
ahmedelgabri has quit [Ping timeout: 260 seconds]
HenrikK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<JoaquinitoFB>
I can install nginx with additional modules, with options, from channel???
henrikkarlsson has quit [Ping timeout: 246 seconds]
<{^_^}>
[nixpkgs] @vcunat pushed 3 commits to staging-next: https://git.io/JsWXZ
<evils>
atralheaven: not exactly, but close i think
boredom101 has joined #nixos
<evils>
atralheaven: ah, had to look it up, `nixos-rebuild switch --upgrade` updates the nixos channel for you, so would be equivalent to `apt update && apt upgrade`
HenrikK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ddellacosta has joined #nixos
<{^_^}>
[nixpkgs] @mdevlamynck opened pull request #123211 → nixos/plasma5: also add plasma-pa when using pipewire with pulseaudio support → https://github.com/NixOS/nixpkgs/pull/123211
<ksqsf>
Hi, all. I accidentally deleted some derivation files (of emacs) from /nix/store, now Nix refuses to do anything about emacs (complaining no drv files). How can I fix this?
ahmedelgabri has quit [Ping timeout: 260 seconds]
<ksqsf>
`nix-store --verify` doesn't work either. It too complains missing derivation files and proceeds to remove these paths from the database, resulting in a db constraint violation.
Qwerky has quit [Remote host closed the connection]
<ksqsf>
Since these drv files are from nixpkgs with no modifications, I tried nix repl and :b, but still no luck. :(
<halpme>
this is the plugin I would like to install
<evils>
i'm seeing pkgs.interception-tool-plugins.dual-functions-keys on nixos-unstable, at least in all-packages.nix, really should show up on the search IMO
<halpme>
aaaah
attila_lendvai has quit [Ping timeout: 265 seconds]
<halpme>
so it is probably not available in 20.09?
LilleCarl has joined #nixos
<halpme>
can I still install it somehow?
sophrosyne97 has joined #nixos
<evils>
hmm, the plugins options to the module exists on 20.09, you could try passing it the package from nixos-unstable
<halpme>
are there instructions in the manual to do that?
<Alexey12>
Hi. I have installed gnuradio-with-plugins and gr-osmosdr, started GNU Radio Companion, but osmosdr source didn't appear in the block list. What else should I do to use osmosdr source? Nixos 20.09.
dsrt^ has quit [Ping timeout: 240 seconds]
dsrt^ has joined #nixos
<evils>
b42: i got the manual :) more lookingi for nix specific stuff, how the systemd options compare to security.wrappers, and maybe a full list of all options, which the manual doesn't seem to be
hyper_ch2 has joined #nixos
hyper_ch2 has quit [Remote host closed the connection]
<CodeBitCookie[m]>
Hey everyone
<CodeBitCookie[m]>
I am trying to test my workflow for python
<CodeBitCookie[m]>
can someone link me to a simple python project on github/gitlab
<CodeBitCookie[m]>
any project doesn't matter just needs to be built on python
<Alexey12>
Found similar bug for debian, already closed. I see files like `/nix/store/8vq4l60nqmdaay7ka1y0q7m5rx6fkqhb-system-path/share/gnuradio/grc/blocks/osmosdr_source.xml` in store, but GRC since 3.8 uses yaml blocks, like `/nix/store/8vq4l60nqmdaay7ka1y0q7m5rx6fkqhb-system-path/share/gnuradio/grc/blocks/uhd_usrp_source.block.yml` (which I see and can
<{^_^}>
[nixpkgs] @jtojnar pushed 55 commits to staging-next: https://git.io/JslMW
<superherointj>
Hello. I'm trying build a C++ project with flag, "-std=gnu++03", I have tried NIX_CXXFLAGS_COMPILE, CMAKE_CXX_FLAGS, NIX_CFLAGS_COMPILE. But now I'm considering switching stdenv. Is there a list of stdenv to pick somewhere in nixpkgs? Trying to find it.
<superherointj>
I need to use an older C standard: "-std=gnu++03"
<superherointj>
Maybe I don't need an older stdenv, just I'm not sure of what I need.
<Frosku>
With quick switch between pinyin and English?
JoaquinRufoGutie has joined #nixos
<JoaquinRufoGutie>
Hello, i need a Anope version 2.0.9 in NixOS, but i cannot request it, because i are banned in NixOS organization, my username is heroku-miraheze, please.
<simpson>
JoaquinRufoGutie: What have you tried so far, and what did you expect to have happen?
<melg8>
Hi, can somebody link where i can find full description of what is derivation builtin function do and which attributes are included in it's attribute set?
<JoaquinRufoGutie>
And i am banned from NixOS organization, and i need to request it now.
<mikroskeem>
why did you get banned
<simpson>
JoaquinRufoGutie: You will not be unbanned. Not only do I not have that power, but I don't think that you've provided evidence that you should be unbanned.
<simpson>
JoaquinRufoGutie: That said, you do not need our permission to make a clone of a git repository. It sounds like you want somebody else to write packages for you?
<simpson>
That's not true. Nix is a standalone build sytem which can locally build software without a Hydra or binary cache.
<mikroskeem>
you can build software without hydra just fine... please read the manuals
<mikroskeem>
see: nix-build etc.
<JoaquinRufoGutie>
simpson With Hydra, i can build my own Nixpkgs, from Nixpkgs repository, and also, a binary cache???
<simpson>
Yes. But, as somebody who has administered a Hydra, I insist that this is overkill. Binary caches and Hydra are only worthwhile once bandwidth becomes cheaper than CPU time.
<evils>
what is it with these incorrigible channel visitors this weekend? there seems to be a higher density...
<JoaquinRufoGutie>
simpson OK, from NixPkgs repository i can build Anope locally???
<simpson>
Sure, once you write your own derivation.
njd has quit [Ping timeout: 240 seconds]
<JoaquinRufoGutie>
simpson So, install NixOS 21.05 when its released, and build any software???
<simpson>
Or clone nixpkgs today and write a derivation. Like, if I were to write this for you, I would go to my local cloned nixpkgs repository, mkdir pkgs/applications/networking/irc/anope, and start hacking on pkgs/applications/networking/irc/anope/default.nix.
Miyu-saki has quit [Ping timeout: 250 seconds]
njd has joined #nixos
<JoaquinRufoGutie>
simpson So, i can clone nixpkgs and use nix-build???
<mikroskeem>
yes
<mikroskeem>
read the manuals, they weren't written for skipping
<JoaquinRufoGutie>
mikroskeem Please, unban to me.
<JoaquinRufoGutie>
mikroskeem And i will request the package.
<mikroskeem>
even if i had permissions to do so, i wouldn't do that
<mikroskeem>
heck, i'd personally throw you out from here for constantly asking for unban
Miyu-saki has joined #nixos
<JoaquinRufoGutie>
mikroskeem And, you can request me the package Anope, please???
Miyu-saki is now known as Guest68412
<mikroskeem>
no
<JoaquinRufoGutie>
mikroskeem Why???
<simpson>
Requesting packaging is an anti-pattern at best and deleterious at worst. It's not productive. I recognize that it is a burden to ask users to learn our build system, but I assure you that it's easier than what Debian or Fedora do.
<mikroskeem>
JoaquinRufoGutie: i don't care about Anope, why should i do that from my free time and will?
<JoaquinRufoGutie>
simpson So, i need to package Anope, and install it.
<hexa->
anope isn't packaged, and unless we have a maintainer that uses it it makes no sense for us to package it up
<JoaquinRufoGutie>
hexa- I are a maintainer.
<mikroskeem>
no, you are banned
<JoaquinRufoGutie>
mikroskeem No, banned are you.
<evils>
is someone testing an "incorrigible distro hopper tries NixOS" chat bot?
<hrnz>
probably
<hrnz>
it's the least funny troll I've seen in a long time
<JoaquinRufoGutie>
hexa- Please, package Anope, i are a maintainer.
<evils>
i'm starting to suspect we should autoban anything that submits 3 question marks at the end of a question...
<simpson>
hexa-, evils, hrnz: Please recognize when somebody is suffering.
<mikroskeem>
throwing "no u"-style replies as well, lol
<ma27[m]>
evils++
<{^_^}>
evils's karma got increased to 15
<carter>
For a second I thought it was about some trie data structure
<JoaquinRufoGutie>
I will install an bot.
<mikroskeem>
glad that irc has /ignore
<simpson>
JoaquinRufoGutie: Does your native language have different words for "want" and "need"? You do not *need* for us to do anything for you! The design of Nix ensures that, if you truly *need* something from Nix, then you do not need our permission or cooperation.
<JoaquinRufoGutie>
simpson I want a Anope package, i are a maintainer.
<simpson>
JoaquinRufoGutie: Banned folks cannot be maintainers. (Maintainers don't really do anything.)
<JoaquinRufoGutie>
simpson I are banned, and i need to unban to me, i are a maintainer.
<carter>
More responsibility means less action obviously
<evalexpr[m]>
they do seem to be in maintainer-list.nix and a maintainer of trafficserver somehow, even though the PR initially made by them was closed, looks like they were added here https://github.com/NixOS/nixpkgs/pull/119172 in one of the commits
<evalexpr[m]>
note: I'm just assuming this is the same person based on name in the maintainer list, though judging by the comments on any PR they have made to nixpkgs it certainly seems to be
<hyper_ch>
so, acme in nginx still doesn't work with next-cloud
launchd has joined #nixos
hiro98 has joined #nixos
<ma27[m]>
hyper_ch: what problem do you have? Just deployed a fresh Nextcloud thish week on 20.09 without issues :)
<ma27[m]>
(or is it about 21.05)
evalexpr[m] is now known as evalexpr
MmeQuignon has joined #nixos
meh` has quit [Ping timeout: 240 seconds]
<hyper_ch>
ma27[m]: again nextcloud interferes with redirect for the le renewal
<hyper_ch>
I have to figure out which rule in the nginx config causes the problem
<hyper_ch>
btw, is there a priority on the nginx rules?
<hyper_ch>
e.g. top to bottom
meh` has joined #nixos
<ma27[m]>
nginx matches locations from top to bottom. the nextcoud module has in fact a `priority` setting for (most iirc) locations and in the final nginx.conf the locations will be sorted according to this setting.
<hyper_ch>
well, from how I read the config, it should have worked but it didn't
<ma27[m]>
to be precise, the `priority` setting is part of the nginx module in nixos, but is used quite a lot by the nextcloud module
<ma27[m]>
is there an open issue (I probably have forgotten about or missed)? If not, would you mind opening one and cc me? :)
<ma27[m]>
also, are we talking about master (21.05) or 20.09?
<hyper_ch>
I'll probably have time on wednesday to find the cause
<midchildan>
Apologies, I didn't realize the person I added as a co-maintainer of the Traffic Server package was banned from NixOS org. Please feel free to revert that particular commit adding that person as maintainer, I only added that one because I noticed there was prior PR working on the same package.
<simpson>
It's okay. Maintainers don't do anything. Folks are not automatically unbanned just because they are listed as maintainers.
<midchildan>
Glad to hear.
<gchristensen>
midchildan: maybe you could send a PR removing them, though?
<midchildan>
Right away.
<hexa->
midchildan++
<evils>
midchildan++
<{^_^}>
midchildan's karma got increased to 1
<{^_^}>
midchildan's karma got increased to 2
<Felix[m]6>
does anyone know how to find the `vmlinux` for my currently running kernel?
<Felix[m]6>
`/run/current-system/kernel` links to a `bzImage`, but I don't know which `vmlinux` corresponds to that :/
zakame has quit [Ping timeout: 268 seconds]
sophrosyne97 has quit [Quit: ZNC 1.8.2 - https://znc.in]
<matthewcroughan>
Just letting you know. I'm rebuilding world, it's hot.
<legendofmiracles>
,stateversion
<{^_^}>
Changing stateVersion doesn't upgrade anything and can only break your setup at best. To actually upgrade NixOS see https://nixos.org/nixos/manual/#sec-upgrading. If you need to change stateVersion for some odd reason regardless, Ctrl-F for "stateVersion" in https://nixos.org/nixos/manual/release-notes.html to see things that need to be manually migrated with the new value
sergiopgn has joined #nixos
<matthewcroughan>
If this works, I love it.
sergiopgn has quit [Remote host closed the connection]
<pennae>
ah, the bot answers in queries too. nice :3
<CodeBitCookie[m]>
it even auto corrected
<CodeBitCookie[m]>
<pennae "ah, the bot answers in queries t"> what does this mean?
<cole-h>
To prevent spamming this channel with testing, you can also DM the bot with these commands ;)
<pennae>
that you can open a dm to it and have it respond there
<hrnz>
does the bot also know how to filter its notices in weechat? :>
<CodeBitCookie[m]>
Oh yeah just on last thing
nix has joined #nixos
<CodeBitCookie[m]>
* Oh yeah just one last thing
<CodeBitCookie[m]>
{^_^}++
<{^_^}>
{^_^}'s karma got increased to 231
<cole-h>
hrnz: Pretty sure IRC doesn't show you your own events, so it can't respond to its own messages.
<CodeBitCookie[m]>
WoAh Wasn't expecting that
<hrnz>
cole-h: well, I want to know how _I_ can hide notices from {^_^} :-)
<legendofmiracles>
you can /ignore the bot, no?
<cole-h>
I don't think you can specifically ignore notices from a user, no
<hrnz>
yes, but some of the bots messages are actually interesting
<hrnz>
not counting the notices as acitvity in the hotlist would also be nice
<evils>
,runtimedeps
<{^_^}>
In order of preference: Patch source OR ((if it uses PATH -> wrap with new $PATH) AND (if it uses dlopen, (patchelf --set-rpath in postFixup OR wrap with new LD_LIBRARY_PATH)))
<Kritnich>
fetchFromGitHub appears to ignore owner, repo and rev when the hash is equal to that of a repo that has been pulled before e.g. fetch repos A and B, then enter the hash of repo A to B and both will evaluate to A despite having different owner, repo or rev, is this intended behaviour?
<hramrach>
if you don't then you do have a resolv.conf or no DNS
<clever>
Kritnich: thats normal, you claimed the hash of the output was the same, so it reused the old output
<simpson>
Kritnich: This is typical of fixed-output derivations.
<Kritnich>
I assume assigning name will prevent this?
<simpson>
This is a desirable behavior. What are you trying to do?
<clever>
Kritnich: sorta, if the name+hash have not been seen before, it will download, but once that combination is fetched, it wont re-fetch
<evils>
,tofu Kritnich
<{^_^}>
Kritnich: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000), then replace it with the correct hash Nix expected. The library functions lib.fakeSha256, lib.fakeSha512, lib.fakeHash are available for this.
cfricke has quit [Ping timeout: 260 seconds]
<Kritnich>
I lazily copied the hash of other repo thinking it will alert me to the mismatching hash. Either way, this answers my question and solves my problem, thank you all
<hramrach>
is there a bugtracker where I could report I want to have a services file shipped?
<yurb>
Hi everyone. I'm curious what would be a nix'y idiom for something like Ansible roles, where I could have many instances of the same role? I would like to deploy a couple copies of similar services, where they would differ only in their domain name, database name, docroot, etc, but otherwise identical
<clever>
yurb: you can make a nixos module for that, and then use nixops to deploy it to several machines
<simpson>
More generally, if you'd like to make a lot of copies of a Nix value, differing only in some key parameters, then write a plain old function in Nix.
eoli3n_ has quit [Remote host closed the connection]
meh` has quit [Ping timeout: 268 seconds]
kapil_ has joined #nixos
ahmedelgabri has joined #nixos
neiluj has quit [Ping timeout: 246 seconds]
gustavderdrache has joined #nixos
chenin has left #nixos [#nixos]
fuiltilt has joined #nixos
<Felix[m]6>
btw, to answer my own question on how to find the `vmlinux` of my current kernel: `flake.outputs.nixosConfigurations.nixos-home.config.system.build.kernel.dev.outPath`
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<atralheaven>
where should I put the code that is mentioned here "https://nixos.wiki/wiki/Vscode" for installing extentions on vscode? I wanted to put everything related to vscode in "vscode.nix" file and then import it to "configuration.nix"
<atralheaven>
but with this code I'm getting syntax error
<atralheaven>
I'm a little confused because I'm very new to nixos and I'm still learning how things work here
pyusr has joined #nixos
pyusr has quit [Changing host]
pyusr has joined #nixos
henrikkarlsson has quit [Ping timeout: 265 seconds]
<zeta_0>
hello there, I'm using emacs in a nixos machine installed on a raspberry pi 4, anyways, I'm using the regular emacs package, but, if I were to switch to the emacsGcc package, will emacsGcc work on a raspberry pi 4?
<__monty__>
atralheaven: Going to need more details on exactly what you're doing and where you're getting a syntax error. You cannot put that code into a file as it is and then import it in configuration.nix, fyi.
<sterni>
atralheaven: fixed it in the wiki try reloading :)
stree has joined #nixos
ddellacosta has joined #nixos
<sterni>
at least I hope I caught everything didn't test
<__monty__>
sterni: Maybe add some explanation as to how that's expected to be used. Some people might try to copy that into configuration.nix.
ahmedelgabri has joined #nixos
<atralheaven>
sterni: thank you! it's working now, I'm going to add my extentions
<atralheaven>
__monty__: yep that would be great
<atralheaven>
speaking of edits on wiki, when I installed nixos, I found that I should have set the boot flag for boot partition, and as far as I remember, that wasn't mentioned on the installation guide, so that might be worth adding too
rajivr has quit [Quit: Connection closed for inactivity]
ddellacosta has quit [Ping timeout: 245 seconds]
neiluj has quit [Remote host closed the connection]
<kini>
Anyone know who I should request review from for PR #123272? ofborg didn't automatically assign anyone, and the file has barely been touched for almost five years
<pennae>
huh. just ran a switch --upgrade and got a much older version of everything
turlando has quit [Ping timeout: 240 seconds]
palo1 has joined #nixos
henrikkarlsson has quit [Ping timeout: 252 seconds]
<yurb>
clever: thanks - I'm not sure how to see the resulting configuration values though. Or maybe there is a way to do some kind of "print" debugging (so that I could "print" my `services.*` while nix evaluates it?)
palo1 is now known as palo
<clever>
yurb: nix repl '<nixpkgs/nixos>' and then eval `config.services`
<yurb>
clever: will that show the value of the currently running system configuration?
<clever>
it will show the values of the current config
<{^_^}>
[nixpkgs] @sternenseemann pushed 541 commits to haskell-updates: https://git.io/Js8Sm
<clever>
which take effect the next time you rebuild switch
xcmw has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<yurb>
I see, thanks! Is there a way to "poke around" / print / dump a config before I switch to it?
<clever>
the repl lets you view every config entry
<pennae>
... why does neither rebuild switch --upgrade nor nix-channel --update for root advance the system hash. we haven't pinned anything, why is it stuck
<clever>
pennae: what does nix-channel --list report?
<evalexpr>
clever: how can I accomplish "nix repl '<nixpkgs/nixos>' and then eval `config.services`" like you mentioned earlier while using flakes? the only entry I have in $NIX_PATH is nixpkgs, and $NIXOS_CONFIG is empty, I think it'd be useful so I can debug better in the future
<kini>
How do you run `nixos/tests/all-tests.nix` on the current state of nixos modules and packages code in the repository checkout? I can run some individual tests with e.g. `nix-build nixos/tests/login.nix`, but I guess that's because they have default arguments set up nicely.
<matthewcroughan>
gchristensen: do you happen to know anything at all about cross-compiling golang packages in NixOS?
<gchristensen>
I don't know about both of those things individually :)
<clever>
kini: if you run `nix repl nixos/release.nix` and try to eval the tests attr, what do you find?
<mikroskeem>
matthewcroughan: what do you want to know?
<matthewcroughan>
I mean, Docker doesn't cross-compile for armv7l because of perl. But Podman doesn't compile due to "build constraints exclude all Go files in ...", which implies, I think, that cross-compilation isn't working.
<matthewcroughan>
It's really not that easy to debug it, and I'm not a go expert, but I don't believe it's setting GOARCH or GOOS when you set crossSystem or use pkgsCross.
<kini>
clever: it starts printing out an attrset, then dies with "error: value is a function while a set was expected", after printing out the partial text `shattered-pixel-dungeon = { ..`
<matthewcroughan>
Oh, sorry, yes, it's complaining about L208 as a result of those constraints.
<clever>
kini: sounds like some of the tests are broken, you can maybe do something based on `nix-build nixos/release.nix -A tests`, but using hydra could be simpler
<matthewcroughan>
We are however ignoring the cross-compiling stuff in the podman makefile, in favor of using buildGoModule, is that the right thing to do?
<kini>
clever: I see. I guess people don't usually run all the tests when submitting PRs that change modules?
<clever>
kini: yeah, i usually only run the tests that i think are effected
<mikroskeem>
meanwhile i see docker 20.10.6 is out, i'll open a PR for update soon :)
<kini>
clever: well, my PR is touching cacerts which seems likely to be deeply entangled with a lot of stuff, so I figured I'd try to run all the tests, haha - https://github.com/NixOS/nixpkgs/pull/123272
<{^_^}>
#123272 (by kini, 1 hour ago, open): nixos/security.pki: handle PEMs w/o a final newline
<kini>
not sure which ones are really relevant or not
<clever>
kini: i'm thinking use tab-completion in the repl to find a few random tests, and use :b tests.foo.x86_64-linux to run them
gustavderdrache has quit [Quit: Leaving.]
<mikroskeem>
tho my bet for the podman compilation issue is that CGO_ENABLED gets set to falsy value on cross compilation
<clever>
[clever@amd-nixos:~/apps/rpi/nixpkgs-test]$ nix-build . -A pkgsCross.aarch64-multiplatform.ipfs
<clever>
result/bin/ipfs: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, Go BuildID=tXXpJYAiC1C3XlXx0WKO/miG7PDhKc8yOpLwpzlLJ/i_Rsi4DG9V7QNkxXXHbW/WZKIREpJNQvuWOuTUo5z, not stripped
<mikroskeem>
and as you can see from the file i linked, it requires cgo for linking
<mikroskeem>
...to the libdl
<clever>
matthewcroughan: nixpkgs is capable of cross-compiling go, as i just did
<matthewcroughan>
mikroskeem: yeah, there's no way to enable that specifically in buildGoModule is there?
ddellaco_ has quit [Ping timeout: 240 seconds]
<mikroskeem>
no idea
<matthewcroughan>
I thought runVend = true; would do that.
HenrikK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthewcroughan>
So. If they talk about cross-compilation like it's not an issue, *and* this line "# Podman does not work w/o CGO_ENABLED, except in some very specific cases", then surely it must be possible.
<matthewcroughan>
Just going to guess that buildGoModule and buildGoPackage is not the correct way to build Podman, if we want to support more than x86 or aarch64.
bennofs_ has quit [Read error: Connection reset by peer]
<{^_^}>
To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000), then replace it with the correct hash Nix expected. The library functions lib.fakeSha256, lib.fakeSha512, lib.fakeHash are available for this.
henrikkarlsson has quit [Ping timeout: 265 seconds]
<kini>
clever: While I'm asking - any suggestions as to who to request review re: cacerts? The module hasn't been touched significantly for ~5 years so I'm not sure if git blame is still relevant (eelco, wmertens, fpletz)
cfricke has joined #nixos
<clever>
i'm not sure either
<kini>
hmm... guess I'll ping those three and hope I'm not bothering them too much
<neiluj>
It's been a few months I haven't updated my system using flake. After updating each input flake and rebuilding the system there's this cryptic error:
<thibm>
neiluj: sure, it's the lib used when evaluation the new configuration that matters. It really depends on how you used flakes, which ones you used, etc. Normally, if something used `anything`, you should get the corresponding lib.
<matthewcroughan>
This is what happened to me, trying to make a system image with Nix just now
<matthewcroughan>
It does happen from time to time. I wonder why? Ctrl + C'ing the Nix process during this sdImage process is actually a mixed bag, sometimes it'll freeze the system until the FS sync completes.
<mikroskeem>
are you sure your zfs pool isn't dying?
<matthewcroughan>
Zpool shows that nothing is wrong, I'm not sure what else there can be.
<matthewcroughan>
This system has ECC too.
<JX7P>
simpson: not to a great extent, no
<mikroskeem>
running scrubs regularly etc.?
<matthewcroughan>
I'll run a scrub now.
<matthewcroughan>
it's weekly.
<mikroskeem>
one thing is for sure, something's wrong on fs/disk side
<neiluj>
thibm: thanks, your indications helped me fix it
<mikroskeem>
unless you run your pool on spinning rust?
<neiluj>
I basically used nixos unstable instead of stable
<matthewcroughan>
It's SSDs, mirrored.
<mikroskeem>
i have experience with zfs only on fast nvme drives
<matthewcroughan>
2 mirrored boot SSDs.
<matthewcroughan>
I'm actually legacy booted, because I moved this from a legacy boot setup.
<simpson>
JX7P: NixOS allows us to declare the contents of /boot and /etc. On boot, the typical NixOS installation starts Linux, runs systemd, and starts up into a GNU userland.
<thibm>
neiluj: OK, cool!
<matthewcroughan>
I could be using UEFI, but I am not, it could be that, who knows.
mounty has joined #nixos
<mikroskeem>
boot ssds, you mean using zfs as boot pool as well?
<matthewcroughan>
yeah
<mikroskeem>
that question is irrelevant to the issue, but yeah
<simpson>
The declarative language, for systemd, ends up being a very thin wrapper. There's no abstractions for services or timers or any other units, let alone abstractions for systemd's concept of units.
<mikroskeem>
well personally i would not do zfs as /boot, too many times i've ended up with machine becoming unavailable after system upgrade :(
<matthewcroughan>
well, that's less likely on Nix than anywhere else.
<simpson>
So a central theme in discussions around systemd and alternatives is how much work will inevitably be required in order to rewrite many NixOS modules to use service-management abstractions.
<mikroskeem>
*shrug* happened on me, but that's mainly because i did not disable features what grub doesn't support
<JX7P>
simpson: a common folk understanding of systemd is that it is a "declarative system", and when asked to explain what this means, people talk in the language of constraint-oriented/logic programming systems
<mikroskeem>
silly me enabled zstd support and grub stopped functioning
ashkitten has quit [Quit: WeeChat 3.1]
<matthewcroughan>
oh really? that's unfortunate
ddellacosta has joined #nixos
<mikroskeem>
yeah, since then i just did /boot as ext4 what grub supports without any issues
<mikroskeem>
less such headaches in future; hetzner's kvm really sucks as well
<JX7P>
in fact the dependency specifications between units are not logical constraints. they are directives which either order, include, or exclude other jobs within a transaction
<odiug>
matthewcroughan: I had these 'hung task' errors too. Eventually, it turned out that my hardware became unstable.
<matthewcroughan>
I hope not, I just built this thing :P
<odiug>
Now I consider that system to be broken unless proven otherwise.
<odiug>
Mine was a Ryzen5 1600 with ECC ram too.
<odiug>
and ZFS...
<matthewcroughan>
oh God ;D
<JX7P>
(and a transaction is not ACIDic. it's rather just a grouping of jobs with ordering constraints, and with defined event triggers which will provide a 'status' for this transaction)
<odiug>
I don't know, I wondered about that myself.
<odiug>
But in my case, the ram was not on the qvl list.
Acou_Bass has joined #nixos
<matthewcroughan>
so do you think a bad stick of ram could be the cause?
<odiug>
There was no ram at 16GB/dimm with ECC in that QVL at all.
<odiug>
eiher the ram, or the memory controller, or the mobo, or the cpu...
<odiug>
my box got more unstable over time, with those zfs freezes.
<matthewcroughan>
for shame
<clever>
odiug: i had a windows machine that would randomly bluescreen, and memtest86 confirmed bad ram, but when i started to try to find which stick of ram was bad, the problem always vanished
<tpw_rules>
are you sure it's not jank sd card drivers or someething?
<clever>
odiug: after a few years of it being fine, then going bad again, then being fine, i figured out the cause