01:05
<simpson>
Kyndig: I don't think that there's a formal policy for backports; it seems that it's up to the reviewer or committer to determine whether a backport would be appropriate. I may be totally wrong though.

01:12
<Kyndig>
i guess i was wondering if this is more likely to happen when the stable version of the package still uses the patch (or whatever URL resource), but the unstable version has moved on and no longer uses the patch

01:47
<foineoi>
I'm trying to use nix-shell to develop a derivation for a package. My postPatch does some substitutions. But when I enter nix-shell and run patchPhase, I'm not able to modify the source because it's a read-only file system. How am I supposed to use nix-shell in this case?

03:40
<bdju>
someone told me a way to find emacs packages in a nix search, but I can't seem to find it in my shell history easily. anyone know what I'm thinking of? it put me into some repl where I could tab-complete stuff, I think, then I'd know the name to put in my home.nix

04:44
<cole-h>
hyper_ch: Sorry I can't help more. But I think your next step is to increase the verbosity of your kernel logs, to get more information out of dmesg

04:46
<hyper_ch>
cole-h: I'm not sure kernel is even running anymore. last notification i get is powering off point reached.. then screen turns of.. there is no further indication except some notebook leds are running and fan starts to run at full power

05:23
<energizer>
Wulfsta: i dont dont understand why it's not working. it seems weird to have setuptools in the propagatedBuildInputs but i dont see that mattering. out of curiosity i might try adding a patch/build step that just adds a setup.py containing "from setuptools import setup; setup()", which is what new setuptools versions do automatically

05:25
<energizer>
that's as deep as i can go atm. the nix experts may have better advice

06:11
<makefu>
mamo: not sure i understand, but enabling services is fundamentally different. you will not have config files of the service lingering in /etc or /opt or wherever, but you will write asingle file which defines your whole service including service configuraiton

06:19
<makefu>
regarding service files, nixos does not normally rely on upstream configuration. in the configuration nixos cobbles together a whole new configuration because normally a lot of assumptions and bias is inside the config

06:25
<makefu>
mamo: due to different paradigms nixos pursues a lot of things are vastly different from other distros, this solves many problems such as reproducibility (imagine dotfiles but for your whole system) but it also creates some overhead because we need to fix stuff which assumes that specific software resides in pre-defined places (say /usr)

07:43
<srk>
yasu: not really, I've started working on it because it was listed on NixOS Discourse as nice to have package, someone pointed me to older PR afterwards, was only able to find few references to IRC logs but not the older PR for some reason :)

08:15
<Avaq>
Good day! I have recently updated to 20.03 from 20.03-pre and I noticed this morning my external monitor is no longer detected. This happened after I disconnected my monitor and my laptop ran out of battery over the night.

08:15
<Avaq>
After trying some basic things, and verifying the monitor does work on other devices, I decided to boot an older generation. I tried several generations all the way to a month back, and none detect the screen.

08:15
<Avaq>
Does that mean I've reliably excluded the possibility that it's related to the update? Like, the xf86-video-intel driver version is also reverted when I reboot to an older generation, right?

09:00
<Avaq>
In here: `if xorg ? ${"xf86video" + name}`? That would mean that the xorg.xf86videoxf86-video-intel attribute doesn't exist. My config has had the value `[ "xf86-video-intel" "intel" ]` for the longest time based on some ancient tutorial I followed like 6 years ago when first installing NixOS.

09:00
<Avaq>
It kind of makes sense for xorg.xf86videoxf86-video-intel not to exist, but xorg.xf86videointel to exist.

09:17
<dramforever>
Context: I maintain the TUNA Nix mirror (more info at [1]), and I'm looking to keep track of how the mirror's keeping up with (basically making a howoldis for the mirror). I found out that the time there can't be UTC, because then it means I have updates from 2 hours in the future

09:17
<hyper_ch>
and in the default.nix you have to indicate the license

10:01
<dxtr>
How would I add custom patches to the kernel? I'm trying to do that but the information I find seem pretty outdated and doesn't seem to quite work - and I can't find any good examples of using boot.kernelPatches

10:32
<jakobrs>
I've got this problem here where some containers refuse to die

10:32
<srk>
sure there's a way how to do it, not sure if it's worth it tho :) my kernel build for armv7l is like 10h and I can cross compile it in much less time but haven't tried actually using the output of cc

11:32
<Setzer22_2>
Hi! I'm finally decided to go out of the VM and try nixOS on the bare metal :) I'd like to set up dual booting with windows, but my current setup is a bit weird, and I was wondering if os-prober would work out of the box. What I currently have is a 128GB ssd with a Windows install, and a 1TB hdd, with a 250GB partition where nixos will go. I'm

11:32
<Setzer22_2>
not sure if installing nixOS on this 250GB partition will properly install boot so that I can also boot windows (which is on a different hard drive). Any tips on that?

11:50
<clever>
jakobrs: NIX_REMOTE=local?root=/home/clever/rootfs then prepends that to the paths, so the store ACTUALLY winds up at /home/clever/rootfs/home/example/nix, and the internal strings expect it to be at /home/example/nix

11:58
<clever>
jakobrs: ive not found any proper documentation, so i just searched my irc logs for every single use of it, gathered them into one gist (linked above), and then began figuring out what they do

11:58
<jakobrs>
Not completely related, but can you set the path with remote builds?

12:22
<thomassgn>
Hi! I'm trying to understand what INSTALL_ROOT is. It is used in several nixpkgs but can't find docs or definition of it by grepping the nix + nixos + nixpkgs sources. Anyone know what this is?

12:23
<gchristensen>
thomassgn: it looks like a variable used by various packages' source

12:41
<tokudan>
emily, my feeling is that the warning in master is warranted and we should just try to fix possible CVEs in p7zip until 20.03 is dead. at least there are no *known* vulnerabilities in p7zip once the two patches are in

13:16
<elux>
im trying to use `docker` command as my wheel user without having to use sudo .. i've added the user to the "docker" group and restarted docker but I still can't `docker ps` as the user, any suggestions? (thank you)

13:30
<wagnerf>
adisbladis: to be fair, there is a dependency on libGL

13:30
<freeman42x[m]>
in the past there used to be some type of Nix cache provided by IOHK. Does that still need to be configured or is Nix using some cache by default now? I seen cachix references when intalling stuff recently

14:50
<Setzer22_2>
hi! I'm trying to install the nvidia propietary driver following the guide at the wiki (https://nixos.wiki/wiki/Nvidia). Unfortunately, I'm forced to use sync mode due to a hardwired HDMI to the dedicated gpu, so I added hardware.nvidia.prime.sync.enable = true; as suggested, but nixos-install complained about that option not being supported.

14:50
<Setzer22_2>
Instead, by looking at the options list I see that there's "hardware.nvidia.optimus_prime.enable", which I could use instead. Does anyone know about this differences?

14:51
<Setzer22_2>
If I didn't know any better, I'd think the wiki is just outdated, but the wiki is clearly referencing the new method, with "official" prime offloading being relatively new, and bumblebee deprecated. Instead, the nixos options page lists bumblebee alongside this optimus_prime flag, which suggests the older situation

15:11
<betaboon>
anyone found a solution how to pass SWAYSOCK to waybar when both are started as systemd-user-unit

15:13
<ToxicFrog>
Is there an equivalent to symlinkJoin that uses hardlinks instead? I'm trying to symlinkJoin [read-only program code, generated config file that the program expects to find in the same directory as $0], but it resolves symlinks when finding $0, so it ends up looking in /nix/store/program rather than /nix/store/program-with-config

15:13
<ToxicFrog>
(the program in question is Kanboard, written in PHP and using __DIR__ -- I'm trying to write a nixos settings module for it)

15:14
<clever>
ToxicFrog: `nix-store --optimize` will create the hardlinks after the build has finished

15:14
<clever>
ToxicFrog: so you can just copy normally, then have nix dedup the whole store

15:16
<ToxicFrog>
Ok, so is there an equivalent to `symlinkJoin` that uses `cp` instead of `ln -s`? Because if not, and I have to write it myself, I might as well use `ln` and save space during the build.

16:35
<hakujin>
hi folks, we use haskell + hydra on a growing project, with growing compilation times. I'd like to cache as much as possible and ideally allow hydra to reuse unchanged build products between builds. Is there a way to share module-level caching of haskell projects between builds? If not, is my best bet to factor heavy code out into a separate package?

16:44
<turlando>
clever: yes, I'd like to sandbox running services. For example I have to run Icecast and being a huge pile of old C code I'd rather give it as little privileges as possible. Unless I am really keen to reinvent the wheel I should stick with docker?

17:29
<azazel>
fps: it's nix, so if you have the packages, you have the paths ;-)

17:30
<cp9>
I've used kitty and alacritty in the past and liked both, but they both require GPU acceleration that doesn't work easily in VM

17:30
<hlolli>
Looking for advice on how to best package a nested directory. In newer graalvm versions, there's included a bundled clang. This is mostly for internal use, but is also needed for graalvm packages which use Sulong. To create a wrapCCWith, I have to refer to a derivation and not store path. Should I call stdenv.mkDerivation and just symlink the the nested directories?

18:25
<MichaelRaskin>
If upstream does not support Darwin, just set linux-only meta.platforms. If they do but ofborg fails, check if the error is easily searchable, and whether the package is high-impact enough (or already supported on Darwin in the current version) to ping some random Darwin people.

18:31
<MichaelRaskin>
Well, we have less Darwin contributors than Linux contributors, and even the Linux work is always more than can be done, so just give people time to react if they want to, and notify about regressions

19:26
<cole-h>
mr_sm1th: IMO those are two different things. Pills is for basic use of the language (and relatively outdated, at that), while the PhD thesis is for Nix's rationale in its entirety, AFAIK

21:13
<codygman__>
hm, I have another complication. home-manager is still alive and can't be deleted and my environment is what's keeping it alive. There is no previous generation to roll back to: http://dpaste.com/03JJNXT

21:49
<nh2>
fresheyeball: `builtins.trace` the path, check on the server that it actually exists, check that nginx can read it (e.g. error logs), if still in doubt, use `strace` to check that it does try to ready it

21:57
<Henson>
hi everyone, I have a system that has some caches defined in nix.binaryCaches but they are no longer accessible. I am unable to use nixos-rebuild to rebuild the configuration to remove them, because it's trying to access them to do the rebuild. How do I get out of this problem?

21:58
<Fare>
aha I had a ''; leftover at the end of the invocation... so I presume it was trying to call the *result of calling the function* with an empty string.

22:18
<Raito_Bezarius>
and I can see them in effect in "route -6 -n" and "ip addr"

22:18
<armin>
so i'm building custom iso's, everything works like expected, i even get a fully working kde desktop and whatnot, but the fonts in my terminal windows (both konsole and xfce4-terminal) look weird (no monospace fonts available there, too). i have zero idea how to debug this.

22:27
<Avaq>
Hi! Is it possible to "query" my nixo(p)s configuration for info on a derivation it *would* use? Eg. `nix show-derivation nixpkgs.hello` but using the nixpkgs as they are after evaluating a configuration.nix (applying overlays etc). The command `nix show-derivation -f ./configuration.nix pkgs.hello` produces "error: cannot auto-call a function .." of course.

22:39
<Avaq>
infinisil: hm, maybe take a step back. Is it possible for `nix-instantiate --eval` to show be the info I want from a regular /etc/nixos/configuration.nix file? I'm working towards just finding what package version would be installed by a specific configuration file.

22:39
<Avaq>
So I tried `nix-instantiate --eval -A 'pkgs.hello' ./configuration.nix` but that also tells me it can't call the function it encounters automatically.

23:21
<Fare>
actually, on a mac, the path to gcc is almost certainly wrong for gambit and gerbil: gcc on a mac is usually an alias to clang, but gambit will be confused by that, and even if you unconfuse it will run 10x slower with clang than with gcc.