<sterni>
maralorn: you can't override stuff inside haskellPackages using overlays because it has its own fixed point and extend only fixes it to the top-level pkgs fix point
<sterni>
maralorn: so what you have to do is write an overlay for nixpkgs which swaps out haskellPackages for an overriden version of haskellPackages
<sterni>
I think passing overrides is similar to using overrideScope'
<sterni>
but would have to check how it's implemented exactly
supersandro2000 has quit [Disconnected by services]
supersandro2000 has joined #nixos
apache801 has joined #nixos
delan_ has joined #nixos
vk3wtf has quit [Ping timeout: 260 seconds]
puffnfresh has quit [Ping timeout: 260 seconds]
delan has quit [Ping timeout: 260 seconds]
<sterni>
maralorn: I actually am the same person :p
<sterni>
very related
<sterni>
our relation is the identity relation
apache8080 has quit [Ping timeout: 276 seconds]
seku has quit [Quit: Connection closed]
<redmp>
i'm not really understanding how overlays work for what i need ... they require changing how i import nixpkgs, but i already have the nixpkgs i need and a haskellPackages with my package attached to it.. i just want to overlay the nixpkgs to have my haskellPackages, heh.
<sterni>
redmp: you can also just have the changed haskellPackages set in some random let binding if that works
<redmp>
this worked: `elsewhere.nixpkgs // { haskellPackages = elsewhere.haskellPackages; }`
<sterni>
redmp: better to use pkgs.extend for that
evanjs has quit [Read error: Connection reset by peer]
<redmp>
sterni: i can't put the haskellPackages in a let binding because i'm returning the nixpkgs for use by nixops
<sterni>
redmp: because if you happen to use a package from nixpkgs which depends on haskellPackages it will pull in the old unchanged one
<redmp>
quick question: are flakes replacing or complementing overlays?
<colemickens>
neither.
<redmp>
totally orthogonal then?
<colemickens>
Basically. You might use flakes to reference/pull in overlays, though.
<redmp>
so flakes are a pattern for pinning dependencies, and overlays are a pattern for combining .. stuff?
<colemickens>
that's a pretty good take, yeah
puffnfresh has joined #nixos
vk3wtf has joined #nixos
orivej has joined #nixos
<redmp>
sterni: "if you happen to use a package from nixpkgs which depends on haskellPackages it will pull in the old unchanged one" ... how can i tell when that happens, aside from longer build times and bigger nix stores?
<{^_^}>
[nixpkgs] @mweinelt pushed 53 commits to staging-next: https://git.io/JqvPM
<redmp>
i have maybe 5 or 6 projects that are all interrelated and pinned against eachother with ad-hoc fetchGit and whatnot .. it's starting to become unmaintainable, so i need to look into flakes and overlays soon
<redmp>
but i had no idea it might be pulling in multiple generations of things incorrectly :/
<sterni>
redmp: no easy way to detect it, you'll have to check the expression pretty much
<sterni>
if you build machines from it you could check the closure of the resulting store path if the same package with the same version occurs multiple times with different hashes in the store path I think
<sterni>
but that might happen naturally as well
<{^_^}>
[nixpkgs] @ralph-amissah opened pull request #115028 → ldc: 1.24.0 -> 1.25.1 update (fixes broken) ldc and enable dub to build with alternative D compilers → https://github.com/NixOS/nixpkgs/pull/115028
<redmp>
ok, but what i'm hearing is that there are correct ways of achieving overrides and incorrect ways, and the incorrect ways are prone to problems which could balloon the nix store
<sterni>
redmp: and also not achieving what you want
<redmp>
but it sounds like if i learn about overlays and reorganize my projects to combine using overlays, it should put me back on a better path w.r.t. nix store sizes and build times?
rajivr has joined #nixos
<sterni>
redmp: say nixpkgs has packages a and b and a depends on b; you want to use a special flag for b so you override b
<sterni>
redmp: if you do something like newNixpkgs = nixpkgs // { b = nixpkgs.b.override { … }; } a will not pick up on the change (how would it, you are just changing a set)
<sterni>
with overlays you can basically inject stuff into the evaluation of nixpkgs where the dependencies are resolved etc. which makes a use the overriden b as an input like you'd want
<redmp>
right, that makes sense
<redmp>
instead of providing a tree, i'm providing a function which says "i'm part of a tree with holes"
<sterni>
more or less, but the holes are just lazily evaluated :)
<sterni>
it makes use of a concept from functional programming called fixed-point combinator
<sterni>
but you don't need to necessarily understand it to write overlays
<redmp>
ok, the extend didn't work either... the nixpkgs has the correct nixpkgs.haskellPackages.my-lib on it, but when that goes into the environment as `NIX_PATH = "nixpkgs=${pkgs.path}";` it seems that the extension is lost
<redmp>
(typo; `pkgs` is an alias of `nixpkgs` in the expression)
<redmp>
i'll have to ro rearchitect this whole thing i guess; thanks anyhow
<prsteele>
hello, and apologies if there is a better channel --- I'm just getting started with Nix packaging, and I want to rebuild my local copy of Nixpkgs. The README points to good documentation on how I might contribute my changes, but I'd like to test them first. Any pointers to a doc on the build process?
puffnfresh has joined #nixos
<tpw_rules>
nixpkgs-review is probably the most straightforward way
<prsteele>
is there a way to point to the derivation of a package? Take something like irrsi that can be installed --- can I ask nix for the expressions that built it? (I'm trying to reverse engineer how something is built)
mcornick has quit [Remote host closed the connection]
<clever>
prsteele: it will run builder, with args, everything in env is an env var, and the things under inputDrvs will be build, and placed in the sandbox, the things in inputSrcs are raw source files
<clever>
prsteele: you can also `nix edit nixpkgs#irssi` to view the nix expr that created those directions
<prsteele>
that's probably even closer to what I want, thanks
<prsteele>
to avoid the X|Y problem, I have a functioning derivation and I'm trying to figure out how to get the arguments it expects
Gohla has joined #nixos
<prsteele>
but `nix edit` was *exactly* what I was asking for, thanks
<RyuKurisu[m]>
<levels "I kind of missed that setting on"> And did it work? Maybe a great addition to the NixOS wiki if it did? (I haven't finished reading the backlog)
slack1256 has quit [Ping timeout: 256 seconds]
gustavderdrache has quit [Quit: Leaving.]
sb0 has joined #nixos
<sb0>
hi. i bricked a headless raspberry pi with incorrect network settings, and I don't have a suitable hdmi monitor to fix it. how can I edit the sd card to make it boot an older generation?
<sb0>
I tried changing the init= string in cmdline.txt to an older init, but that did not work
<DigitalKiwi>
can you attach a keyboard?
orivej has joined #nixos
<DigitalKiwi>
might be able to do it without a monitor if you just up arrow the right amount of times
<{^_^}>
cleverca22/not-os#12 (by Mic92, 2 days ago, open): add MIT license
<clever>
dang, a ~3 year old issue!
ddellacosta has joined #nixos
<clever>
Mic92: checking the git history, the only change paumr did was http -> https in the readme, and matthewbauer just changed `rm` -> `rm -f` in linux-build-slave.nix
<clever>
do such minor changes really need them to agree to the new license?
apache801 has quit [Ping timeout: 245 seconds]
Dotz0cat has quit [Ping timeout: 245 seconds]
<Mic92>
clever: A lawyer would probably say yes, but I don't think they would sue you for this.
<clever>
and its kind of hard to re-write the http -> https change, without it being an identical copy, lol
<Mic92>
clever: I can also send both an email an email if you want.
ddellacosta has quit [Ping timeout: 245 seconds]
<clever>
sure
tomberek has joined #nixos
<Mic92>
clever: I am using your project now in my research for full integration tests
<eyJhb>
abathur: If I run the script you provided with resholve, then `/usr/sbin/smartctl` will be converted to `/usr/sbin//nix/store/..../` even with the fix. Is there anything I can do?
<eyJhb>
Atm. I have just done `substituteInPlace smartmon.sh --replace '/usr/sbin/smartctl' 'smartctl'`
o1lo01ol1o has quit [Remote host closed the connection]
seanparsons has quit [Ping timeout: 264 seconds]
<mananamenos_>
hi, I'm using configuration.nix. When some package does not build from the unstable channel im subscribed to, I can do something like `(let stablePkgs = import <stable> { }; in [ stablePkgs.some-package ])` and concat these to unstable packages. Now, can I solve in a similar way the issue that the combination of `boot.kernelPackages = pkgs.linuxPackages_latest;` and `virtualisation.virtualbox.host.enable = true;` does not
<mananamenos_>
work. Can I make virtualbox work with linuxPackages_latest?
blahblah441 has quit [Read error: Connection reset by peer]
primeos has joined #nixos
<mananamenos_>
xdej, when doing nixos-rebuild it fails with virtualbox errors. I suppose there's no easy way..https://github.com/NixOS/nixpkgs/issues/107648 just found this post which might be relevant
<{^_^}>
#107648 (by asbachb, 9 weeks ago, closed): virtualbox: Unable to compile VirtualBox kernel modules with kernel 5.10
<xdej>
mananamenos_: I mean, please bpaste the last working version of configuration.nix
<mananamenos_>
it's the one i've pasted with either `boot.kernelPackages = pkgs.linuxPackages_latest;` or `virtualisation.virtualbox.host.enable = true;` commented
<xdej>
mananamenos_: I tried to reproduce but got: error: file 'stable' was not found in the Nix search path (add it using $NIX_PATH or -I), at /etc/nixos/configuration.
<Hurttila>
Is it mandatory to define the used shell when configuring a user in configuration.nix? For some reason when I leave the line declaring the shell out of the configuration I can't use the konsole at all. I only get a flashing konsole window with "~:nologin - konsole" at the top.
ddellacosta has joined #nixos
<Hurttila>
Meaning that I cant open the konsole on desktop. I then have to switch user to root to be able to modify the configuration.nix and put the shell configuration of the user back in
<Dr_Facepalm>
Hey, looking at nixpkgs, i can see the `wine` package but I can't find `wine64` . Are they one and the same? and if not why is `wine64` not in nixpkgs?
noudle has joined #nixos
<sterni>
tad-lispy[m]: I think it says in the home manager readme it doesn't support flakes, but check again, I'm not sure anymore
<clever>
Dr_Facepalm: i think you want wineWowPackages.base
<leo60228>
to be clear, i do want the config to stay declarative
Dr8128 has joined #nixos
<leo60228>
what i'm looking for is, like, a mostly-automated way to go from "i `git push` a flake on my workstation" to "my server's config has been rebuilt against the new version, with my workstation building the flake itself"
<leo60228>
(i'd prefer to build the configuration as a whole on the server, since its network is much faster and there's no point in doing remote builds of the vast majority of things in my config, but the applications in question are very slow to build so i'd prefer to do them on my workstation)
<maralorn>
I am trying to build a haskell package out of tree and I need to overwrite haskeline. But no matter what I do my build always uses the core haskeline from the ghc package. Does anyone have any clue what to do about that?
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/Jqf2O
<Hurttila>
Is it mandatory to define the used shell when configuring a user in configuration.nix? For some reason when I leave the line declaring the shell out of the configuration, I can't use the konsole at all from desktop. I only get a flashing konsole window with "~:nologin - konsole" at the top and have to switch the user to root to be able to open the
<Hurttila>
konsole and but the user's shell line back in the configuration.nix
LilleCarl has quit [Ping timeout: 246 seconds]
davidv7 has joined #nixos
graf_blu` has joined #nixos
<installnixos[m]>
<Hurttila "Is it mandatory to define the us"> I think there should be some default value there if you do not set it.
<installnixos[m]>
That's super weird
graf_blutwurst has quit [Remote host closed the connection]
mrcorp has joined #nixos
mrcorp has quit [Client Quit]
chisui has joined #nixos
clime has quit [Ping timeout: 265 seconds]
<chisui>
Hey, how do I disable tests when using callCabal2nix?
<Mic92>
ma27[m]: I am currently on d774b423 and for some weird reason php extension specific by nextcloud php-fpm are not loaded. This break at the point where it tries to load apcu
mkaito__ has joined #nixos
<Mic92>
etu: I can point fingers in your direction, but you were the last person that modified something in php. Any ideas?
<ma27[m]>
will take a look. Something similar was reported in the nextcloud21 PR IIRC
clime has joined #nixos
oida has quit [Ping timeout: 268 seconds]
oida has joined #nixos
i1l has joined #nixos
ddellacosta has joined #nixos
i1l has left #nixos ["Leaving"]
i1l has joined #nixos
<Hurttila>
installnixos[m] I also tought there would be a default option if I don't define the shell for the user. Could the home.nix file of home manager mess that up somehow?
<ma27[m]>
ok seems as the PHP extensions thing is broken on master
<etu>
ma27[m]: I'm still not sure why it broke nextcloud though, and I don't see how that change of the tests would check for that in the future... 🤔
<ma27[m]>
etu: updated the PR :)
turlando has quit [Ping timeout: 245 seconds]
neiluj has quit [Quit: leaving]
<ma27[m]>
etu: we could make the test failable by adding `apcu` and checking if it exists. (just confirmed that this one is actually missing in php -m with my buidEnv test-expr on master)
<ma27[m]>
I guess this broke nextcloud because some other extensions that were needed couldn't be loaded
<{^_^}>
[nixpkgs] @globin pushed 1000 commits to structured-attrs: https://git.io/Jqf6s
selfsymmetric-mu has joined #nixos
griff_ has joined #nixos
<selfsymmetric-mu>
I'm noticing an exceptionally long or stuck build for chromium-unwrapped-89.0.4389.72.drv-0. Anyone else experiencing this? I don't see a relevant issue reported yet.
<gchristensen>
how long is that? 8h isn't uncommon afaik
YoDawg has joined #nixos
<selfsymmetric-mu>
gchristensen: Goodness I had no idea. Guess I'll wait.
<exarkun>
services.matomo doesn't seem very configurable. am I missing anything?
<selfsymmetric-mu>
gchristensen: About 2h so far.
<gchristensen>
yeah ...
philr has quit [Ping timeout: 264 seconds]
<YoDawg>
Hey, what's up, I was trying to build a dev environment for a go lang project using Bazel, so far I'm having no luck. I keep hitting this `/external/go_sdk/bin/go’: No such file or directory` issue. Any ideas on how I can get this to work?
<gchristensen>
I got it down to 20 minutes one on all NVMe with 64G ram and 24 physical cores (48 threads) and some tuning to the build process which made it impossible to build on anything smaller
<selfsymmetric-mu>
I'm using the default binary cache configuration. Still, 8h to install a browser on stable?
<gchristensen>
only if you have to build it yourself, I guess it probably failed in the build farm if you're on the stable channel
<selfsymmetric-mu>
I see…yeah, it's not making any more output either. It's stuck on [8629/44237].
YoDawg has quit [Client Quit]
YoDawg has joined #nixos
turlando has joined #nixos
zceejkr has joined #nixos
sangoma has quit [Read error: Connection reset by peer]
<pisquo[m]>
the plugin directory but I'm a bit lost. Has anyone managed to run it? Otherwise have you got any advices on how to run it (as of now I'm thinking virtualbox/dualboot)
<pisquo[m]>
java binary (that I think they have hardcoded) and I'm a bit lost. Has anyone managed to run it? Otherwise have you got any advices on how to run it (as of now I'm thinking virtualbox/dualboot)
<abathur>
eyJhb: d'oh! just a bug I think; I'll see if I can track it down and get a fix out
<ar>
evils: somehow, I'm unable to pickup the working version. https://dpaste.com/AY7DLE2TU.txt and even trying to build freecad with git master nixpkgs gives me a non-working version. oh well
<etu>
ma27[m]: Hmm, that's not a bad itea, that would probably mean that this would run for every combination that people make. And if we then look at the output to see that no extension failed to load we get a package -- otherwise not.
cosimone has quit [Quit: cosimone]
griff_ has quit [Ping timeout: 264 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<unclechu>
hey, is there a way to get a link to tarball used as a source for a derivation from nix repl?
<selfsymmetric-mu>
gchristensen: Just closing the loop…I discovered that the eternal chromium-unwrapped build was coming from mermaid-cli, and not from the chromium package itself. nix-top doesn't show dependencies, if it had shown the relationship to mermaid-cli I would have realized more quickly. I queries the dependency of the derivation source in store from the regular nixos-update output.
<selfsymmetric-mu>
I've disabled the mermaid build for now and now my configuration builds in a finite amount of time.
<chisui>
selfsymmetric-mu: that's part of the expression language though. I use it like this: `mkDerivation { name = "a@b" ...` unless the name is evaluated as an expression that shouldn't be a problem
<simpson>
ar: numa numa iei, numa iei! That's a lot of CPUs. Are you wondering why they're not all at the same frequency? They might scale independently due to fluctuating heat across such a large package.
<ar>
simpson: that's a single socket system (ryzen 5950x), and i'm aware of boost clocks, it's just i wouldn't expect it to report anything above 5000MHz
<Ke>
there was a recent bug like that
<Ke>
I guess you genuinely do not read phoronix
<ar>
i'm pretty sure that something went wrong between linux reading the cpu clocks, and cpu reporting its frequency
<Ke>
not even late at night without telling anyone
<tex39>
Hello people! I have NixOS on my Laptop, trying VLC to play movies from minidlna on my media server. If firewall on Laptop is disabled everything works, but if default firewall is enabled on Laptop then VLC cannot find the minidlna server. I expected that firewall blocks incoming packets, not the out packets.... It doesn't work even if I enable UDP
<tex39>
and TCP port 1900 on Laptop. Any idea what to do? I want to keep firewall enabled...
<portal_narlish>
I have a general question -- what are the basic URLs the nix package manager will hit when loading a package for the first time?
<portal_narlish>
For example, if I run `nix-shell --packages wireshark` I see that the cache.nixos.org URL is being requested. But is there more to this?
Jackneill has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @ralph-amissah opened pull request #115133 → ldc: 1.24.0 -> 1.25.1 update (fixes broken) ldc and enable dub to build with alternative D compilers #115028 → https://github.com/NixOS/nixpkgs/pull/115133
<gchristensen>
ajs124: everything after the "formatting" commit is the interesting changes: https://github.com/NixOS/nixpkgs/compare/master...grahamc:iscsi (my editor always autoformats, and usually I do my work, and then re-apply it to nixpkgs without the autoformatting enabled once I've got it working.)
<gchristensen>
ajs124: I noticed the VM was trying to connect to the 10.0.2.x IP address instead of the 192.168.x.x IP, and I futzed around with that ... but
<clime>
I am trying to run Steam (and Steam game in particular) under NixOS but getting: Could not connect to X session manager: None of the authentication protocols specified are supported
<clime>
[0304/201438.595679:INFO:crash_reporting.cc(270)] Crash reporting enabled for process: renderer
<gchristensen>
ajs124: I'm not sure what your "sooo" means :P can you clarify? :)
slack1256 has quit [Remote host closed the connection]
<tad-lispy[m]>
From the installation USB is there a way to only reinstall bootloader? My dual boot Ubuntu broke grub so i just want to fix it. But nixos-install tries to rebuild the whole system.
<tad-lispy[m]>
Thanks lordcirth_ . In the end chroot and the `switch-to-configuration boot` command mentioned in https://nixos.wiki/wiki/Bootloader helped.
<{^_^}>
[rfc39-record] @grahamc pushed commit from rfc39 to main « Automated team sync results. »: https://git.io/JqJL4
kaliumxyz has quit [Ping timeout: 260 seconds]
kaliumxyz has joined #nixos
ahmed_elgabri has quit [Ping timeout: 245 seconds]
<{^_^}>
[nixpkgs] @jtojnar pushed 151 commits to staging-next: https://git.io/JqJLH
<belgacem>
Hi there! Can I install a package without declaring it in tnfiguration file located at /etc/nixos?
bahamas has joined #nixos
<selfsymmetric-mu>
belgacem: Yes. You may invoke `nix-env -i <pkgname>`.
<belgacem>
thank you
<selfsymmetric-mu>
belgacem: My pleasure, good luck.
ztrawhcse has quit [Ping timeout: 272 seconds]
<belgacem>
But with 'nix-env -i <package> : it will be installed to the wide system or only for the user?
<sterni>
user only
dev_mohe has joined #nixos
clerie has joined #nixos
<cransom>
as long as you don't do it as root
<dev_mohe>
What's with https://hydra.nixos.org/build/138131052 and the strange "possible dns spoofing detected"? And will the nixos-unstable build be restarted soon?
dev_mohe has quit [Remote host closed the connection]
dirkx_ has joined #nixos
davidv7 has quit [Remote host closed the connection]
davidv7 has joined #nixos
gurmble has joined #nixos
dirkx has quit [Quit: Bye and thanks for all the fish]
grumble has quit [Quit: K-Lined]
gurmble is now known as grumble
zupo has quit [Ping timeout: 260 seconds]
zupo has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 27.1)]
<avn>
Folks! Are anyone live on nixpkgs' master? Is (or was) rxvt-unicode broken? After rebuild/switch from last weekend my urxvt spawns with broken fonts.
griff_ has joined #nixos
<Yaniel>
with nixpkgs master any breakage is well within the realm of possibility
tomberek has quit [Quit: Connection closed]
<ar>
avn: you always have the option to go down the rabbit hole of git bisect good/bad, nix-build ./ -A rxvt-unicode, and ./result/bin/whatever ;)
<ar>
avn: also, by chance, was the font you were using a bitmap font?
Rainy has quit [Remote host closed the connection]
<drozdziak1>
What's the best piece of documentation for remote builders? I have a non-nixos server that already works with `nix ping-store ssh://my-alias`, but calling `nix build --builders 'ssh://my-alias` fails with nix claiming it doesn't know the hostname
<clever>
drozdziak1: the ssh is done by root, so it has a diff ~/.ssh/config
<avn>
I can go back to old good bitmap cronyx ;) They look's ugly but familiar
<drozdziak1>
oh okay, can I point it at mine somehow?
cript0nauta has joined #nixos
<clever>
drozdziak1: with the right combination of sudo flags, yes
<clever>
drozdziak1: if nix is ran as root via sudo, it wont talk to nix-daemon, and then you can control its env vars
<clever>
drozdziak1: and sudo has a flag to leave $HOME "wrong" (pointing to your user, not root)
<drozdziak1>
clever I see, I think I'll just edit root's SSH config then
griff_ has quit [Quit: griff_]
<drozdziak1>
clever Do you happen to know how to add an SSH key to gpg-agent? I have `enableSSHSupport` but `ssh-add` complains with no such file or directory (I specify the key as full path)
<clever>
drozdziak1: `ssh-add -l` will list keys already in the agent, and $SSH_AUTH_SOCK must point to a socket made by gpg, like /run/user/1000/gnupg/S.gpg-agent.ssh
<clever>
gpg is special, in that adding a key puts it into the gpg keyring, and it will persist after a reboot, which is why i also prefer it
mcornick has joined #nixos
Jackneill has joined #nixos
<sshow>
What functions should I use to override a package's output files without having to recompile the package? I'm trying with an overlay with overrideAttrs postInstall, but it forces recompilation
<cole-h>
You can't easily do that.
<sshow>
is there some crazy work-around I can do, then? :P
<clever>
sshow: buildEnv will merge 2 packages using symlinks
<cole-h>
could also make a new derivation that takes that derivation as input and do the changes there
marcusr has quit [Remote host closed the connection]
<selfsymmetric-mu>
Interesting, xfce4 would not start on my new build unless I installed xorg.xinit. I wonder why it's not just a dependency of the desktop manager.