| 12 Sep 2021 |
emily | that's quitter talk | 20:25:39 |
emily | I spend too much time hacking uncooperative programs to work with XDG directories... | 20:25:56 |
Las | It is quitter talk, but eventually you realize that the XDG model doesn't even work well with Nix | 20:28:49 |
Las | If possible, I wrap the commands using writeShellScriptBin to pass the path to the configuration directly. | 20:29:05 |
Las | Otherwise I use systemd.tmpfiles to symlink from the default configuration location to the nix store. | 20:29:21 |
balsoft | 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 |
emily | yeah 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 |
emily | .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 |
emily | 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 | Well yeah, I'm ok with .ssh | 20:46:29 |
| 13 Sep 2021 |
emily | I wish nix edit .#foo did something useful instead of the incredibly useless thing it does. | 02:46:30 |
emily | one of the few things I need to resort to -f/impure evaluation mode for | 02:46:56 |
| Florian | 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 | using 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 |
emily | I don't know how profiles work, but can't you do something like github:NixOS/nixpkgs/commit-ref#pkg? | 20:21:15 |
emily | or just github:NixOS/nixpkgs/commit-ref if you're pinning the flake itself | 20:21:27 |
edrex | 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 | 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 |
emily | 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 |
emily | otherwise it's more nix view :) | 07:11:28 |
emily | I use nix edit to get around nixpkgs a lot | 07:11:39 |
emily | 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 |
emily | I also wish nix edit worked in the presence of evaluation failures but that's a bigger ask... | 07:13:11 |
balsoft | 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 |
emily | it 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 |
emily | (and you really want to do that anyway so that backtraces give actually useful source locations) | 07:16:57 |
niksnut | 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 left the room. | 19:27:19 |
| paultrial joined the room. | 19:27:45 |
| 17 Sep 2021 |
| cleverca22 joined the room. | 06:03:50 |