02:51
<bdju>
god I hope the new FF update fixes some of these horrific FF issues like the file picker crashing the browser or the file picker getting bigger each time it opens so you have to keep resizing it

03:11
<bdju>
https://chunk.io/bard/e7a5ef0b88534c759a1c0f3fe5b3f331 having trouble updating, can anyone give advice? between the two sections of errors I commented out the epkgs.perl6-mode line because it looked like it was a problem, but still can't update. it's not giving me line numbers but something more confusing.

04:26
<dngray>
I had some questions about NixOS and whether it is right for my usecase. I have a server that is going to be a hypervisor, running LXD/LXC and KVM. It will make extensive use of a ZFS pool

04:26
<dngray>
i wanted to run the system in RAM, ie like Alpine Linux's diskless install

04:27
<dngray>
I'm wondering whether NixOS is the right distribution for this purpose, i am thinking alpinelinux might be simpler as i don't need to run multiple versions of things etc

04:27
<dngray>
I did look at GUIX briefly, but they haven't packaged LXD so gave that a miss

04:27
<gchristensen>
nixos isn't really necessarily about multiple versions, but about being able to go back after you've decided you didn't like the update

04:28
<dngray>
i also require reproducable builds, which both alpine linux and NixOS do

04:28
<dngray>
i like the way Alpine Linux works, for example with the diskless install it boots from USB stick, and just installs the cached packages (into RAM)

04:52
<hyper_ch>
hmmm, not sure what to do... for a PR I did include the patch file... however reviewers said to use the upstream patch files. However using upstream patch files does not work because of offsets I think....

04:52
<lopsided98>
Is is possible to get GTK applications that use wrapGAppsHook to match the system on non-NixOS?

04:52
<dngray>
oh i should also mention this server is in my local network

05:15
<hyper_ch>
my guess would be to replace /dev/xvda with /dev/nvme0n1 but that's just my guess

05:16
<charukiewicz>
so just a question: in order to find that file I just ran 'locate amazon-image.nix' and found one of the ones in nix-store. Where would the location <nixpkgs/nixos/modules/virtualisation/amazon-image.nix> actually resolve to on the machine?

07:51
<DamienCassou>
there is a proprietary app with a linux version that I would like to use on nixos. It downloads and updates .so files (e.g., libusb4java.so). How would you recommend to package it?

10:02
<nschoe>
Hi everyone, what should I install / wha option should I enable in my configuration.nix to be able to ping / reach other devies on same network with hostname?

10:03
<nschoe>
I haven't paid much attention to this since I switched to NixOS, but now I need it: I'm on my mobile phone, connection sharing. There is another device to which I am trying to ssh. I kno wits hostname on the network (the mobile gives me that) but 'ssh' or 'ping' it doesn't work (system error).

10:03
<nschoe>
Is that related to mDNS? nss? I've looked a bit and found these, I'm not much in the know-how.

11:08
<Alexey63>
I have in config https://pastebin.com/2gDhVAS9 php-fpm configured with user and group `nginx`, but it creates `/run/phpfpm/rainloop.sock` with owner root:root, so nginx cannot connect (writes permission denied in logs and return 502). How can it be fixed?

12:17
<b1000101>
c00w: are you here? I've tried your blockbook patch but the build is failing with go/src/blockbook/bchain/coins/dcr/decredrpc.go:367:3: cannot use 0 (type untyped int) as type string in field value

12:54
<unclechu>
hey. can i somehow patch file list of config dir of `nixpkgs.neovim` or `nixpkgs.vim_configurable`? for instance for neovim apart form `init.vim` there's also `ginit.vim` file which is an additional config for GUIs.

13:26
<emilsp>
hrm, it just so happens that the stable kernel version doesn't support my GPU all too well, and the unstable (5.6) isn't much better. The sweet sport seemed to be 5.5.17, what could I do to ensure that I'm using that golden kernel version whilst still upgrading all other packages as normal? Should I import a specific commit of nixpkgs with the kernel I want?

13:42
<jluttine>
emily: not sure if relevant but i'm trying to mount it via SSH while there's another user logged in to the computer in a normal desktop environment. but the disk wasn't mounted when i ran that command.

14:20
<azazel>
kayg04: you have to give to it a repo url that's non local... i.e manually it should work from the same host (where the sshd is running) with borgbackup create borg@localhost:.::your_archive_name

14:42
<ircuser5678>
hi. somehow google is dumb or I am. It's probably me... I'd like to change the configuration.nix file before I invoke the installation and I want it to create some folders automatically. E.g. /mnt/share1, /mnt/share2. So that I don't need to do that manually after I've booted up the newly installed system. Is this possible?

15:27
<Alexey63>
`services.opendkim.socket` is created without group write access, so how can it be used by another user, postfix? It seems the only way is to run opendkim as postfix:postfix (and manually change owner of private keys).

15:33
<{^_^}>
If you're updating a package file in nixpkgs that starts with something like `{ stdenv, cmake }:`, use `nix-build -A the-package-attribute` in the nixpkgs root with the corresponding package attribute to build it. The mapping from package attributes to package files is in pkgs/top-level/all-packages.nix

16:11
<tobi_>
hello, I'm trying to setup a samba server which authenticates against an ldap server (FreeIPA to be precise). In order to do this I've set "services.samba.enable = true;" and "services.samba.extraConfig = ''...passdb backend = ldapsam:ldap://<my-freeipa-instance>...'';. Additionally I've added openldap to environment.systemPackages. When I try to run this config however, nixops can't run the service because

16:11
<tobi_>
winbindd complains that "no builtin nor plugin backend found for ldapsam found". I guess this is because samba was built without ldap support. Furthermore, I can see that in pkgs/servers/samba/4.x.nix, enableLDAP is a method parameter, alas I don't understand how I can pass it.

16:35
<tobi_>
ok, I _think_ I have figured it out: I've defined an overlay in which I did "samba = super.samba.overrideAttrs (oldAttrs: rec { enableLDAP = true; });", now I can see that it is compiling samba from source

17:50
<zeta_0>
when using lorri, do i have to have the mkShell function in my shell.nix file, or can i go without it? my ihaskell `let in` expression is not working inside of mkShell: https://dpaste.org/nneL

17:50
<cole-h>
Only reason I did the nixos-homepage hack was because you said "current stable channel"

17:50
<cole-h>
`curl nixos-unstable/.version` will give you the next version, but there's no way to get the current version

18:06
<zeta_0>
this ihaskell script is supposed to install ghc883, but when i try to set up these environment variables, when i go into a nix-shell, it tells me ghc not found, how strange: https://dpaste.org/M1wE

18:20
<zeta_0>
pie_: agreed, but i don't know why when i go into a nix-shell with this shell.nix no errors are being thrown, also, i thought the `compiler = ghc883;` in that ihaskell expression, ihaskell will install it's own ghc, that's why i had that lib.prio stuff setup in my home.nix, so i'm guessing that i need to install ghc and python/jupyter separately in that ihaskell let in expression

18:31
<zeta_0>
pie_: thanks, i'll try nix-shell --pure first, and if that does not work, i'll try installing ghc and jupyter in that ihaskell let in expression of the shell.nix file to see if that fixes it, oh and that github issue looks very similar to my issue, so i'll try those steps out as well

19:03
<DamienCassou>
hi. On NixOS, I have both `programs.ssh.startAgent = true` and `programs.gnupg.agent.enableSSHSupport = true` (nixos-option confirms) but `/nixos/modules/programs/gnupg.nix` forbids this with an assertion. What's wrong?

19:04
<clever>
WinchellsM: depends on if you want to boot with efi or legacy

19:06
<DamienCassou>
clever: I know this and I want gnupg as my ssh agent. But the SSH_AUTH_SOCK environment variable is not populated so I try to debug. I had hope to crash nixos-rebuild by setting both variables to true but it accepted it. So now I don't understand anything anymore

19:08
<WinchellsM>
clever: Is there a way to determine which way I booted?

19:09
<DamienCassou>
clever: gnupg.nix sets SSH_AUTH_SOCK automatically. I would prefer not repeating that in my configuration. Moreover, I would like to understand why an nixos-rebuild can build a configuration with a failing assertion

19:09
<WinchellsM>
I'm in NixOS doing this now, so if `efibootmgr -v` shows up as "EFI variables are not supported on this system", does that mean I booted in legacy mode?

19:53
<pR3>
I have a problem that sometimes i try to get an env-variable with builtins.getEnv in my configuration.nix it does not work. It is pretty weird: builtins.getEnv "HOSTNAME" does work, but builtins.getEnv "NIXOS" does not work. I did export NIXOS beforehands of course. Does anybody have an idea?

19:54
<prusnak>
yorick: i have nix 2.3.4 and this works for me as expected - builtins.fromJSON "00023"

21:53
<hr[m]>
If I wanted to map a `types.attrsOf types.path` to source each path, how would I do it? I'm looking at using `lib.attrsets.mapAttrs` but that can only map the value of each attr. Given an attrset of `{"bash/source.bash" = ./file-to-source.sh }` I'd like to map it to `xdg.configFile."bash/source.bash".source = ./file-t-source.sh`

22:01
<kuznero>
I am wondering if it is possible to have symlink to current dynamic linker in place instead of patchelf'ing custom binaries? There are a lot of tools and processes that freely download binaries and execute them. E.g. prost in Rust (there is a PR, but that's it).

22:06
<infinisil>
And that's one of the main arguments against using something like above PR

22:06
<infinisil>
Namely that if everybody then used it, nobody would bother making binaries pure anymore

22:06
<simpson>
kuznero: I am not at all a Rust person, but https://github.com/danburkert/prost this library? Should *not* download binaries without letting somebody know. I would expect a PB compiler to do only maybe two things, and neither of those things involve fetching and running code from the Internets.

22:15
<kuznero>
I understand the principle and agree with it completely. Then I would like to ask this: is it possible to somehow catch the moment when binary is about to be executed (outside of /nix/store) and patchelf interpreter on the fly?

22:18
<kuznero>
simpson, it is no different when it comes to IDEs and toolchain. E.g. coc.nvim with coc-rust-analyzer extension downloads rust-analyzer that needs to be patchelfed. That is then simply a manual process.

22:20
<cab404[m]>
nope, I mean like run thing which uses nixpkgs on some nix-trace-build, which would work like gdb

22:20
<simpson>
kuznero: Yikes, but *why*? I'd hope that that all can be built within Nix directly. I wonder to what degree this is a failure of the text editor package managers (especially VSCode's walled garden) vs. failure of packaging.

22:21
<kuznero>
simpson, this is just the design of certain extensions that check for updates and download them when needed. Those updates are coming directly from github or other places, but definitely not out of Nix packager.

22:22
<simpson>
cab404[m]: Have you seen builtins.trace? A full debugger for lazy languages is quite difficult, and unlikely to happen for Nix without a serious plan and support.

22:22
<simpson>
kuznero: Sounds horribly broken to me; I would rather not let various packages update themselves without letting Nix know first.

22:22
<infinisil>
cab404[m]: Yes, very interested! I've thought a bit about how it would work before too (just with some notes)

22:22
<kuznero>
simpson, this is what this part of the industry looks like.

22:23
<numkem>
I've dug a little more about my `go run` problem and it seems like it's 1.14.2 for some reason that causes the issue. I've done it as an override with the same values as the current PR to upgrade Go from 1.14.1 to 1.14.2. It used to work just fine until this morning when I did a full upgrade after the latest channel bump

22:23
<infinisil>
kuznero: With Nix, you either commit to it fully, or you don't. Anything inbetween is nasty

22:23
<kuznero>
infinisil, I understand, but proposing to patch in-flight so to say

22:23
<energizer>
for a while i was using `nix-env` as just another apt, that worked pretty well

22:23
<simpson>
kuznero: Yes, I am aware of the horribly broken state of the industry. I grew up in a Microsoft monoculture, FWIW, so I'm no stranger to this sort of terrible nest of anti-patterns.

22:24
<simpson>
I'm not saying that it's *your* fault that things are this way. No one person could be blamed.

22:24
<kuznero>
I am simply trying to find a way to relatively painlessly work with existing tools

22:25
<cab404[m]>
<simpson "cab404: Have you seen builtins.t"> it's not that difficult, something like firefox debugging tools on js objects would be already worlds better than ":p" in nix repl

22:25
<Ashy>
i'm trying to merge some folders into $out/foo/bar during a mkDerivation installPhase script but `cp -r ${package}/foo/bar $out/foo/bar` errors out with permission errors when that $out/foo/bar directory path exists, so only the first set of files end up there, how should i do this?

22:25
<infinisil>
kuznero: But no, I don't think there's a way to automatically patch things on-the-fly, mainly because the elf interpreter is the entrypoint for a binary, without a correct one, it can't even read the file so to say

22:25
<Ashy>
is there a section of the nixpkgs manual that covers the $out directory and permissions behaviour?

22:27
<simpson>
cab404[m]: It took what, two decades before Haskell got a line-by-line debugger? Lazy languages have some serious issues doing line-by-line debugging. Although it sounds more like you want graphical tools?

22:27
<bpye>
Does it make sense to run stable NixOS with an unstable user channel? And if I added a user channel would I add NixOS or nixpkgs?

22:29
<simpson>
Ashy: Like, you want an environment built from multiple packages, or you want to copy some stuff from $src to $out? It seems curious that you only have $out/foo/bar existing conditionally.

22:29
<cab404[m]>
which would try running each thing in nix repl for a second or two, and showing type it got. in a worst and simplest case

22:29
<Ashy>
simpson: an environment built from multiple packages yes, this is for a language interpreter to include multiple addon packages from different github repos

22:30
<kuznero>
I do not want that at all, infinisil. Essentially in NixOS we have to set right interpreter before executing anything. For properly packaged software it is easy and shoudl be done once when packaging more or less. But for binaries distributed in ad-hoc manner it does not work. One other approach to me perhaps would be to try to persuade upstream devs to build fully statically linked binaries then?

22:30
<infinisil>
kuznero: That doesn't help with the elf interpreter problem

22:31
<infinisil>
Packaging things with Nix is the only "correct" way really

22:31
<Ashy>
simpson: as is that works, but if i add in the package general_dirtrees too the `cp -r ...` fails because $out/share/j/addons/general already exists

22:32
<Ashy>
simpson: the intention is that i end up with: $out/share/j/addons/general/dirutils/... and $out/share/j/addons/general/dirtrees/...

22:32
<simpson>
Ashy: You may want `linkFarm`, a trivial builder which tries to do some of that logic for you. But I don't think that there's a general resolution for conflicts like that; one of the paths is going to get shadowed or ignored.

22:32
<Ashy>
one works but it seems that because the second one also attemps to add files under the "general" directory its' erroring out

23:08
<charukiewicz>
I'm on a NixOS server trying to build a Haskell project, with a local-to-the-project *.nix file that defines which nix channel I should be using. For the development environment, I'm using nix-shell. I can enter the nix-shell as root, but not as a non-root user, even though the non-root user has sudo privileges. Is there any reason why this would be happening?

23:08
<charukiewicz>
This is the error I get as the non-root user when entering nix-shell in the project: error: build of '/nix/store/...-glibc-locales-2.30.drv', '/nix/store/...-stdenv-linux.drv', '/nix/store/...-bash-4.4-p23.drv', '/nix/store/...-ghc-8.6.5-with-packages.drv', '/nix/store/...-hpack-0.33.0.drv' failed

23:35
<charukiewicz>
This was happening both yesterday on a 19.09 installation I had running, and today I deployed a fresh 20.03 installation and it's still ocurring there. Both were deployed as AWS EC2 instances using the community AMIs.

23:37
<charukiewicz>
infinisil: It prints out another path: /nix/store/vxjwm492zk4hq00jhi8vj490lcxc1yp7-bootstrap-tools

23:38
<infinisil>
Okay and doing `nix-store -r /nix/store/vxjwm492zk4hq00jhi8vj490lcxc1yp7-bootstrap-tools` then tells me "don't know how to build these paths", which means that it's not in cache.nixos.org

23:56
<pistache>
I'm going through this as I wish to understand why is the "theme.index" file missing for this icon theme, and I can see that this file is indeed present in the derivation built in my store