00:03
<{^_^}>
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. See: tofu-vim

00:03
<{^_^}>
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. See: tofu-vim

00:09
<ex-parrot>
hello all. I'm looking at the existing powerdns derivation and I'd like it to run powerdns as a different user. currently it forces it to run as "nobody", what's the most elegant way to change that behaviour?

00:10
<ex-parrot>
I can override systemd.services.pdns.serviceConfig.ExecStart but I don't think I can access the value of the configDir variable that needs to be interpolated in to that

01:04
<exarkun>
I am so so so confused. I have a project where `src = ./.;` and ./. is a git checkout and ... some ... source files that end up in result are not from the git checkout, they're from an older revision of the repo

01:44
<hexa->
spinlock[m]: Packages whose D-Bus configuration files should be included in the configuration of the D-Bus system-wide or session-wide message bus. Specifically, files in the following directories will be included into their respective DBus configuration paths: pkg/etc/dbus-1/system.d pkg/share/dbus-1/system.d pkg/share/dbus-1/system-services pkg/etc/dbus-1/session.d pkg/share/dbus-1/session.d

01:47
<spinlock[m]>
hum hum. probably a newbie error on my part, but it took me ages to get nextcloud to be able to store its secrets in gnome-keyring. I had to explicitly add `services.dbus.packages = [ pkgs.gnome3.gnome-keyring pkgs.gcr ]` to my config

02:50
<eadwu[m]>
The file in `nix-packaging` can already be evaluated without any changes so it should build fine (which doesn't because it doesn't create a bin output but that's a problem originating from morph) while runtime would use <nixpkgs> unless I'm getting something wrong

02:56
<pxc>
simple question about Nix flakes as currently implemented: is there any way to refer directly to paths (not necessarily packages or attributes) in Nix code comparable to the old way with Nix paths?

03:05
<pxc>
what I'm wondering though is if I'm using flakes instead of channels for my local NixOS configuration, how do I refer to whatever copy of Nixpkgs my NixOS configuration does, if I want to just directly run a bit of Nix via like nix-instantiate --eval to count how many things I have in systemPackages, or something like that?

03:24
<bqv>
pxc: each input is just a source derivation, you cat browse into them as you would otherwise. And you can set your system flake registry's nixpkgs to the one used for the system, so you can use that directly or (getFlake "nixpkgs") it

03:26
<cole-h>
bqv: So would `<nixpkgs/pkgs/some/package/path>` be equivalent to `"${getFlake "nixpkgs"}/pkgs/some/package/path"`? If not, is there any equivalent? (A little slow today so apologies if you actually just answered this in your above response)

03:48
<pxc>
hm. I see that adding a flake to root's registry doesn't make it available to all users. Is there any way to add to the global Nix flakes registry, or does it just mean whatever's on the one hosted at nixos.org?

03:49
<pxc>
I used to manage some channels in my NIX_PATH with `sudo -H nix-channel ...`, so they'd be available to all users on the system

04:18
<pxc>
luna: once you do that, you'll want to gracefully shut down your GPG agent and then start the user-level systemd unit that NixOS enables for the GPG agent... or log out and back in again :)

04:21
<colemickens>
I had it jammed up the other day, had to restart things like 3 times, finally in the right sequence, before everything was just right.

04:21
<colemickens>
the gpg-agent daemon that was launching on its own was not configured the same as the user unit

04:21
<pxc>
it's definitely a source of a lot of confusion and frustration when you don't expect it. And I've heard from some people that try to use GPG in automated workflows that the presumption of a running agent can be very annoying there

04:22
<pxc>
colemickens: yep. A friend of mine did that same thing but killed the cli-tools-started agent ungracefully (like I told him not to, lol) and something weird happened with the file descriptors gpg-agent opens and long story short, we couldn't start either gpg-agent anymore after that

04:31
<pxc>
bqv: where's the action for your bqv-flakes branch of home-manager? I want to add home-manager to my config but I don't really wanna have to use a special branch or fork. Are the flake changes required to make use of home-manager as a flake.nix input, or is it just convenience stuff that allow you to refer to flakes inside your home-manager config or something?

04:32
<hyper_ch>
I have pinentry, pinentry-qt and gnupg installed... no special setting

04:32
<bqv>
I'd like if it did fallback to ncurses but something something cake eating

04:33
<pxc>
bqv: ah. my old config gets reused on NixOS and on non-NixOS Linux and on Darwin. So I want to do the same here, and I'd rather the version of home-manager pulled in be the same for all of them

04:36
<pxc>
what does the flake support in the home-manager repo add at this point? why not just use the flake machinery to get a reference I can refer to like with getFlake and then import the module manually?

04:37
<iqubic>
Are there any EXWM users around? I'm trying to set up a compositor on EXWM and I'm not sure how to make that work.

04:48
<iqubic>
I'm just getting these weird graphical issues that should up all some time.

04:48
<pxc>
my favorite fancy effect is built into KWin, and it's 'organize windows'. I like it because it presents all your windows visually and searches as you type. Sometimes it's the nicest way to switch to the desired window

04:48
<monokrome>
like I'd use it if I didn't use a tiled window manager so that I can read text behind terminals

04:48
<pxc>
but for it to be sane, the animation has to include moving windows around and scaling them and so on

04:50
<pxc>
one other useful WM compositing thing is thumbnail view, basically picture-in-picture for arbitrary windows. It can be kinda nice if you want to keep an eye on something (like maybe just to see that there's still new output in a terminal) but you don't need to see the whole thing on your screen

04:51
<pxc>
other than that most uses I've seen compositors put to is pretty cosmetic

05:34
<aditsachde36>
Hey good morning. I'm attempting to build a set of nixos configurations via CI/CD using github actions. I have a couple of questions about nixpkgs and versions and stuff. Since I'm building everything on a single server and using nix-copy-closure to copy the build output to a nixos server, the nixpkgs channel on the nixos server shouldn't matter

05:35
<aditsachde36>
Additionally, I have read that I should be pinning nixpkgs. Do I just choose an arbitrary nixpkgs hash on the channel that I want to track or is there any specific version to select?

06:24
<monokrome>
If your issue is tearing then you should enable vsync

06:24
<monokrome>
tearing is where the rendering pipeline flips your framebuffer mid-render, so you end up with a line through the screen for a frame that has half the old frame on one side of it or similar

06:59
<kaychaks_riot>
so if I launch fresh firefox from rofi then it launches just fine and I could create new window. now I switch workspace and again try to launch firefox via rofi like first time hoping that it will just launch a new window for the existing process, but then I get the error

10:32
<asbachb>
Mhh I'm not there yet: `${import "${toString modulesPath}/../lib/from-env.nix" "NIXOS_CONFIG" <nixos-config>}` basically I want the content of used config. To write it out via `environment.etc."nixos/lxd.nix".text = ''`.

11:05
<Athas>
For the last week or so, trying to install 'steam' fails with a bunch of 404 errors as it tries to download some .deb packages. Is anyone else seeing this? I couldn't find anything on the nixpkgs issue tracker.

11:08
<asbachb>
Basically I generate a system image for lxc, but it needs some configuration to be able to do nixos-rebuild. So I thought about copying the configuration used for generation and link it to the default `/etc/nixos/configuration.nix`.

11:14
<the_pumpkin_man[>
Hello, I am trying to create a nix derivation, I tested it using `nix-shell path/to/nixpkgs -A derivation --pure` and it works. Now I try `nix-build path/to/nixpkgs -A derivation` and it complains with "cannot open git-upload-pack". Why does it work in nix-shell and not in nix-build ?

11:32
<the_pumpkin_man[>
Networking seem to not work, tried with a shitty wget and it can't resolve hostnames ... That's a problem. How can I enable networking while building ?

11:34
<lukego>
Hey does anyone fancy a chat about Common Lisp packaging? I'm using ql2nix - an abandonware (?) out of tree solution to packaging Quicklisp - and it's been good but doesn't support modifications to packages e.g. patches out of the box. I'm wondering whether to hack that or whether the in-tree quicklisp support is actually more suitable. maybe someone works with this stuff?

11:37
<maralorn>
I have an expression which I think is a derivation. I think that because I can build it with nix-build -E '<expr>'. But when I try to coerce it to a string in a bigger expression I get cannot cource set to a string.

11:41
<balsoft>
the_pumpkin_man: I'm not aware of any good way to get your_sha256 other than by building it with a fake sha256 first and replacing with the sha256 nix will spit out in its error message

11:41
<MichaelRaskin>
I mean, Common Lisp is not a high-churn ecosystem, if something works with it, it will probably continue to work

11:45
<lukego>
MichaelRaskin: One other issue I have with ql2nix is having to constantly re-bootstrap it each time I need a new package. Could be nice to just include every package every time. That way I only need to rebootstrap when a new Quicklisp is released.

11:53
<balsoft>
betawaffle: I think that it'd be very hard to keep the secrets you set in secrets.nix from appearing in nix store, though. If you use them in any file/script/whatever, they're automatically there.

11:53
<chaoflow>
I'd like to use a shell.nix file for multiple projects and use the directory basename as derivation name. Is there something like: stdenv.MkDerivation rec { name = basename { ./. }; }?

12:23
<simpson>
maralorn: It's alright, but when reading Haskell I usually have to go look up instance definitions and ensure that the type's defined in the way that I want. TBF I'm usually porting *from* Haskell.

12:45
<ircuser5678>
adisbladis: Thanks but I guess I'm too dumb. A very simple case: blk=abc. I can then use echo $blk. But if I need to use this variable like so (e.g. in a string) echo ${blk}. It fails. The bot said that I need to escape it this way: echo \${blk}. But leads (again) to the undefined variable error when switching the build

13:42
<steevveen>
Hi! I'm learning Perl, version5, and I try to do some little scripts. For one I need a CPAN module. I have a default.nix that includes perl528Packages.CPAN. I launch the command line, but when installing the module install X11::FullScreen, at some moment there is an error. I suspect CPAN is conflicting with the nix way, as it obviously tries to do

13:42
<steevveen>
stuff inside the /nix/store. To perl5 programmers, how do you do with external CPAN module , when doing the nix way ?

14:00
<tobiasBora>
I'm quite curious to know, the version of Ocaml that uses flambda seems pretty common and famous, but I just tried to install it and it compiles everything from scratch (and takes ages). Is there any reason the flambda version of ocaml is not compiled by Hydra?

15:17
<jakobrs>
Could somebody take a look at #86955? It makes it possible to perform a bind mount in initramfs without having to have the file systems ordered alphabetically.

15:17
<{^_^}>
https://github.com/NixOS/nixpkgs/issues/86955 (by jakobrs, 3 days ago, open): fsBefore does not recognise one filesystem as depending on another filesystem in the case of bind mounts where the source of the bind mount is not itself a mount point

17:37
<zeta_0>
hello there, i am finally able to get ihaskell to build in a shell.nix config using ghc883 without any errors, to be used with my (lorr+direnv+emacs-direnv) setup, after initializing everything and running `lorri shell` most of my shell.nix projects work out-of-the-box, but for some reason ihaskell is giving me some problems, when running `M-x ein:run`, emacs throws an error that it can't find jupyter? i'm thinking

17:37
<zeta_0>
it's because the emacs environment is not in sync with nix environment?

17:42
<zeta_0>
i tried placing `use_nix shell.nix` in the .envrc file in the root directory of the project where the shell.nix file is, it opens another emacs application with everything working, but that defeats the purpose of using this lorri setup, any tips on how i can get this working correctly?

18:41
<balsoft>
Oh, RE: OCaml, is there any work on making it cross-compile to windows? I tried to do that with 4.09 and failed miserably because apparently mingw doesn't have enough libraries or something

18:41
<balsoft>
I don't remember the exact issue, just that I couldn't make it work. Maybe another question would be whether anybody else cares about this?

18:43
<emily>
ocaml on windows has historically been flaky, right? I think it's gotten better recently, but "Nix Windows builds are flaky" + "OCaml on Windows has historically been flaky" makes me worry it might be a bit of a mess

19:36
<{^_^}>
[nixpkgs] @tbenst opened pull request #87421 → <!-- Nixpkgs has a lot of new incoming Pull Requests, but not enough people to review this constant stream. Even if you … → https://git.io/JfChe

19:36
<{^_^}>
[nixpkgs] @tbenst closed pull request #87421 → <!-- Nixpkgs has a lot of new incoming Pull Requests, but not enough people to review this constant stream. Even if you … → https://git.io/JfChe

19:57
<c4rc4s>
newb question: I'm on NixOS 20.03 and trying to install (what I believe to be) a package derivation, obs-v4l2sink, but it isn't found when I try to add it to systemPackages. It exists in the nixpkgs repo, under obs-studio, but when I query for it with nix-env I'm notified that "selector 'obs-v4l2sink' matches no derivations"

19:58
<c4rc4s>
Do I need to do something special to make that available..? Other derivations are found OK, e.g. obs-ndi

19:59
<MichaelRaskin>
I think it might be simply newer than the release branch branch-off

20:16
<c4rc4s>
Cool, made the unstable channel available ala https://stackoverflow.com/a/48838322 since I didn't want to switch everything to it and was able to install that package. Thanks for the pointers folks.

21:01
<{^_^}>
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. See: tofu-vim

21:02
<numkem>
cole-h: what if I need to automate it and replace the value?

21:05
<numkem>
cole-h: maybe I'm approaching it the wrong way, still trying to wrap my head around it. I'd like to use Nix to build docker containers. In order to do that i need to do a `default.nix` for my package. It says in the docs you can set it to `null` but if you do it breaks sandboxing and reproducable builds which I'd like to avoid. So I was wondering how I could make a git hook that would just swap the values if my `go.sum` or `go.mod` changes

21:05
<numkem>
trying to make it as transparent as possible for developers to use

21:06
<bdju>
another new firefox issue. after manually quitting with ctrl-q to try out a new about:config setting, it won't relaunch until I pkill the process. I've waited whole minutes. No errors about it being open already either. Just nothing.

21:07
<bdju>
I have an issue with text input boxes being dark background and dark text or light bg/light text so it's unreadable, and I'm trying some suggestions related to overriding gtk theme settings, but here another issue slows me down

21:50
<iqubic>
Ah, yes. That would be the issue: In multiline strings in nix, I don't need to escape quotes. So the config file just has extra backslashes in it causing a parse error. X11 treats that parse error as a fatal error and crashes on me.

21:50
<cole-h>
The `Section` is not indented at all, yet the `EndSection` is, excessively so.

22:05
<qyliss>
So I suppose attrsOf (attrsOf str) is probably what I want

22:05
<balsoft>
qyliss: I think you should go for a simple-minded two-layers-deep merge approach, because otherwise you'll have to write your own type that merges recursively (I don't think there's one OOTB)

22:18
<mpiechotka>
Hi. I want to dual boot NixOS on my machine which has Arch. Is it possible to configure nix to only create loader entries and not to install its own bootloader?

22:18
<iqubic>
So, not only did picom work out of the box, but enabling vsync via picom fixed the screen tearing issues I was having. Well, it was either that, or it was adding that services.xserver.extraConfig options that did it.

22:56
<ldlework>
Is there some cli oneliner to nixpkgs from an arbitrary nixpkgs rev?

22:56
<tobi_>
hello, I have packaged https://github.com/pdbpp/pdbpp. before I can make a pull request I have a few questions: 1. in order to package pdbpp, I had to package a few dependencies as well. is it ok to create a single pull request for all of them? 2. how important are tests? I'm not that familiar with python unittesting and when I tried to make them run I ran into significant problems. 3. In the packaging

22:56
<tobi_>
process, I installed the packages to my machine, however I didn't have "useSandbox" enabled. Is there an easy way to completely remove the packages again, so they have to be rebuilt? I've tried removing them from system packages and running "nix-collect-garbage-d" but it didn't seem to work

23:05
<bdju>
When I click on the output device for a specific program on the playback tab of pavucontrol, the menu doesn't appear, it's like it's invisible. Can't seem to select with arrows either, though.

23:15
<aleph->
Hmm, is there a util to see if all reqs of a python package are in nixpackages?

23:15
<ircuser5678>
hi. the wiki entry for samba states that I shoud be able to e.g. restart the service with systemctl restart samba. Great, unfortunately I'm getting this (as root): Failed to restart samba.service: Unit samba.service not found.

23:24
<bdju>
infinisil: part of the issue template says to check the meta.maintainers list for a package and then mention the maintainer of the package with the bug on github, but I'm not sure how I do this

23:25
<infinisil>
bdju: In the package file you're changing, there should be a meta.maintainers section at the bottom