!SgYlXivkogarTVcnZO:nixos.org

Nix Flakes

884 Members
180 Servers

Load older messages


SenderMessageTime
12 Sep 2021
@emilazy:matrix.orgemilythat's quitter talk20:25:39
@emilazy:matrix.orgemilyI spend too much time hacking uncooperative programs to work with XDG directories...20:25:56
@Las:matrix.orgLasIt is quitter talk, but eventually you realize that the XDG model doesn't even work well with Nix20:28:49
@Las:matrix.orgLas If possible, I wrap the commands using writeShellScriptBin to pass the path to the configuration directly. 20:29:05
@Las:matrix.orgLas Otherwise I use systemd.tmpfiles to symlink from the default configuration location to the nix store. 20:29:21
@balsoft:balsoft.rubalsoft
In reply to @emilazy:matrix.org
I spend too much time hacking uncooperative programs to work with XDG directories...
Do you have some advice for .mozilla ?
20:30:12
@emilazy:matrix.orgemilyyeah I would like to have a more static configuration management paradigm... but as-is I use home-manager and that kinda expects a mutable XDG-style tree to splat stuff into anyway, so eh.20:45:11
@emilazy:matrix.orgemily .mozilla I think maybe you can work around with command-line arguments? but it's one of the ones I just gave up on and symlinked into iirc .local/share 20:45:52
@emilazy:matrix.orgemily mozilla uses nss which hard-depends on .pki anyway, so not much you can do there... .ssh is a lost cause too of course 20:46:11
@balsoft:balsoft.rubalsoft Well yeah, I'm ok with .ssh 20:46:29
13 Sep 2021
@emilazy:matrix.orgemily I wish nix edit .#foo did something useful instead of the incredibly useless thing it does. 02:46:30
@emilazy:matrix.orgemily one of the few things I need to resort to -f/impure evaluation mode for 02:46:56
@florian:web3.foundationFlorian | W3F - OoO Mon/Tue changed their display name from Florian | W3F - OoO to Florian | W3F - OoO Mon/Tue.11:56:56
14 Sep 2021
@edrex:matrix.orgedrexusing nix profile install on non-nixos system, i want to try to revert a nixpkgs change to see if it fixes a bug. Recommended workflow for that? can I use a local checkout of nixpkgs or should I push my own branch somewhere and ref that?18:34:19
@emilazy:matrix.orgemily I don't know how profiles work, but can't you do something like github:NixOS/nixpkgs/commit-ref#pkg? 20:21:15
@emilazy:matrix.orgemily or just github:NixOS/nixpkgs/commit-ref if you're pinning the flake itself 20:21:27
@edrex:matrix.orgedrex i was able to just revert a local working copy and then nix shell .#.... Idk why i felt unsure, i've actually done that before :/ I think all this linker hacking stuff is just a bit baffling for my high level language brain and I start to feel very stupid :) 20:29:27
15 Sep 2021
@balsoft:balsoft.rubalsoft
In reply to @emilazy:matrix.org
I wish nix edit .#foo did something useful instead of the incredibly useless thing it does.
What would you wish it did?
07:10:42
@emilazy:matrix.orgemily like nix edit -f . foo (in e.g. nixpkgs or similar), edit the actual source file rather than a frozen /nix/store copy 07:11:16
@emilazy:matrix.orgemily otherwise it's more nix view :) 07:11:28
@emilazy:matrix.orgemily I use nix edit to get around nixpkgs a lot 07:11:39
@emilazy:matrix.orgemily that said I wouldn't switch to .# even if it worked because it seems quite slow with a repo as big as nixpkgs too :/ 07:11:56
@emilazy:matrix.orgemily I also wish nix edit worked in the presence of evaluation failures but that's a bigger ask... 07:13:11
@balsoft:balsoft.rubalsoft
In reply to @emilazy:matrix.org
like nix edit -f . foo (in e.g. nixpkgs or similar), edit the actual source file rather than a frozen /nix/store copy
How would it edit the actual source file for e.g. nixpkgs ? It points to github:nixos/nixpkgs
07:15:52
@emilazy:matrix.orgemilyit can't work for that case of course, but it can (and I think already does?) track original location for path-based flakes etc.07:16:41
@emilazy:matrix.orgemily(and you really want to do that anyway so that backtraces give actually useful source locations)07:16:57
@niksnut:matrix.orgniksnut
In reply to @emilazy:matrix.org
like nix edit -f . foo (in e.g. nixpkgs or similar), edit the actual source file rather than a frozen /nix/store copy
https://github.com/NixOS/nix/issues/3347
18:41:28
@paultrial:banditlair.compaultrial left the room.19:27:19
@paultrial:banditlair.compaultrial joined the room.19:27:45
17 Sep 2021
@cleverca22:matrix.orgcleverca22 joined the room.06:03:50

There are no newer messages yet.


Back to Room ListRoom Version: 6