04:12
<typetetris>
`nix-env -iA nixos.haskellPackages.ghcWithPackages'(p: [p.cabal-install])'` stopped working for me with nix 2.2.2, it now interprets '(p: [p.cabal-install])' as literal part of an attribute key. How can I do that now?

04:57
<hyper_ch2>
Hmmm, in a let statement I try to convert an integer to a string using: notify.intervalString = toString $cfgZED.notify.interval; but it keeps complaining. So, how do I properly do conversion? Google was no help

05:16
<cxx_newb>
Hey guys. I am starting out with nixos and need to adjust my config coming from arch. Some scripts reference stuff from /usr/share of other tools which doesn't work anymore, as all that is now in the nix store. An actual example is that the fzf completion scripts are currently in /nix/store/6dn8jhgymvr9ws7piv4n2zvmcbwijj8v-fzf-0.17.5-bin/share/fzf

05:16
<cxx_newb>
which is a path that will change with update (is that correct?). How can I reliably reference stuff in the nix store across updates?

06:36
<teto>
trying to write a nixos test. I have seen very little of perl. I would like to save the output of a command and echo it in the shell later on. I do " my ($retcode, $output) = $client->execute("tshark -2 -R 'mptcp' -r test.pcap -Tfields -e frame.interface_id"); print $output;" but the display is empty :s can i capture stderr as well ?

12:45
<hyper_ch2>
rnhmjoj: I have no idea what I'm doing as nowhere there's some kind of explanation

12:48
<rnhmjoj>
hyper_ch2: the source of the error in nixos/modules/system/etc/make-etc.sh#33, when you create a symlink with the option environment.etc this script will be called to actually make the link. the script will refuse to create it if a symlink already exists and it's pointing somewhere else

12:51
<rnhmjoj>
if you deleted it and later reappeared i guess it means there's another nixos module making the link

13:09
<rnhmjoj>
hyper_ch2: i think the problem is nix can't touch that directory becase it's inside the nix store and therefore read only. there probably is no other any besides creating the link individually or changing the zfs package.

13:31
<rsa>
i've packaged a library where manually running unpackPhase, patchPhase, configurePhase and buildPhase builds it just fine, but when i try to nix-shell -p it it breaks at the configuring stage with "...setup: ./autogen.sh: /usr/bin/env: bad interpreter: No such file or directory"

13:37
<hyper_ch2>
yes, I'm just used to use -iname and usually with grep I also use -i :)

13:37
<hyper_ch2>
file is generated fine... just one issue.... one option that should be commented out isn't :(

13:39
<hyper_ch2>
yeah.... there's the email addresses list attribute xxx = [ "xxx" "yyy" ]; and then I do check if cfgZED.email.addresses == null then %comment out% ..... but I guess the list attribute is never "null"

13:56
<michaelpj>
what's the general approach for packages with optional unfree dependencies? do something like have them nulled out by default so they can be overridden if someone wants the unfree version? gate on `config.allowUnfree`?

16:42
<Henson>
hello everyone, I want to use a programatically-generated list inside of a mkDerivation buildCommand string. I'm assuming I need to define the list outside of the buildCommand string and then refer to it inside? If so, how can I convert a list of strings to the string representation of it?

16:54
<ambro718>
I want to use ZFS with encryption and two mirrored disks. Since I also want swap/hibernation that rules out ZFS-level encryption. Swap should not be mirrored. So I am thinking cryptsetup directly on each disk, and partitions inside that, one disk has ZFS and swap inside and the other has just ZFS, and the two ZFS partitions are mirrored on ZFS level.

16:55
<ambro718>
But how can I ensure that the two disks have both the same cryptsetup passphrase, and that I only enter it once during boot?

16:55
<ambro718>
Another thing I want is to be able to boot off any disk in case one dies.

17:35
<Henson>
sometimes when I run nixos-rebuild after changing the configuration file it needs to download certain missing dependencies like patchelf, gnumake, or other things. Do these tools belong to a certain suite that can be installed? Every time I garbage collect it has to re-download these things.

17:37
<ivan>
Henson: see if keep-outputs = true in nix.extraOptions keeps them around?

17:50
<iqubic>
I'm in deep trouble. I have somehow run out of space on my harddrive. I tried running nix-collect-garbage, but that failed because there wasn't enough space to set permissions on /nix/var/nix/per-user. What should I do?

18:38
<mkaito>
what would a derivation look like that generates a valid profile? I was looking at Hail, and while I'm not planning to use it, it wants a jobset that generates a user profile which it then pulls. Other than imperatively calling nix-env, how?

18:50
<jD91mZM2>
So toPath isn't what one expects... How does one convert a string to a path in NixOS? `./. + string` misses a leading slash, `./. + ("/" + string)` works for relative paths, but not for absolute ones :|

19:05
<iqubic>
I have verified that the snapshot exists with ZFS list -t snapshot.

19:05
<clever>
iqubic: all snapshots are auto-mounted under /.zfs/snapshot/

19:05
<iqubic>
I don't have wifi right now, so I can't paste any command outplts now.

19:06
<jD91mZM2>
clever: Ok so for some reason I thought it would be a good idea to let a user of some nix expressions override the source using... TOML. I wanted to make it as easy as possible, but eh I can just use nix.

19:06
<clever>
iqubic: you can just poke around in /.zfs/snapshot/ and find your old configuration.nix

20:11
<___laika>
what would people say is the most idiomatic way to pin nixpkgs in a project? i feel like i have seen mixed recommendations between using `nix-prefetch-git/url` in the command line to generate a json file, and having the url and hash in code to pass to `builtins.fetchTarball`, and i cant tell if there's a meaningful difference between the two

20:22
<nervengift>
is there a good example of a package that supports plugins which it expects in a certain directory? I managed to write a derivation that builds the plugin (rofi-blezz) as a shared lib but obviously I can't install it to the original program's directory in the nix store...

20:23
<clever>
nervengift: generally, the package should accept an env var pointing to a dir of plugins, and then you use buildEnv to merge all the plugins together, and then make a shell script wrapper around the original binary, to set that env var

21:25
<kraem>
Ralith: thanks - have been looking into home-manager but thought i'd learn "vanilla" nixos configurations first but cannot seem to solve the ssh-agent/gpg-agent/gnome-keyring situation so think i'll give it a try :)

23:26
<gyroninja___>
clever: Okay, so in the final traffic before I get errors on the nix side, wireshark highlighting in red that I sent fastly a [RST, ACK] tcp packet and then it alternates between the server sending ACK and me sending RST which happens ~50 times

23:59
<utdemir>
Hey. For some reason my Nix commands try to use "https://qfpl.cachix.org" as a substituer. I remember adding it and removing it once, however currently my configuration.nix does not reference it, and neither my /etc/nix.conf. Can anyone tell me where else it can come from?