16 Dec 2024 |
starlit | * since an update, pinentryFlavor = "gtk2"; is no more. So I do as suggested pinentryPackage = pkgs.pinentry-gtk2;
programs = {
gnupg = {
agent = {
enable = true;
enableSSHSupport = true;
# TODO: https://discourse.nixos.org/t/cant-get-gnupg-to-work-no-pinentry/15373/33
# programs.gnupg.agent.pinentryFlavor' no longer,
# programs.gnupg.agent.pinentryPackage instead
# pinentryFlavor = "gtk2";
pinentryPackage = pkgs.pinentry-gtk2;
};
dirmngr.enable = true;
};
};
but doesn't work on Emacs magit (as root) anyway. Any insights please?
| 10:18:26 |
@acidbong:envs.net | wdym by "magit as root"? are you running Emacs and git as root? | 11:05:03 |
starlit | Acid Bong: I I'm running magit on a root owned directory (/etc/nixos ) with tramp. See gpg: WARNING: unsafe ownership on homedir '/root/.gnupg' | 11:06:50 |
@acidbong:envs.net | 💀 | 11:07:08 |
@acidbong:envs.net | why won't you host your config in your homedir? | 11:07:20 |
starlit | Acid Bong: which one? root or my normal user? my normal user config is already set | 11:08:10 |
@acidbong:envs.net | /etc/nixos is not a mandatory directory, you can host your system config wherever you need | 11:08:51 |
@acidbong:envs.net | * /etc/nixos is not a mandatory directory, you can host your system config wherever you want | 11:11:11 |
starlit | Acid Bong: you mean I can do that without linking to /etc/nixos? | 11:11:36 |
starlit | But wouldn't that be kinda unsafe anyway? To have a non-privileged user be able to change my system config without root permission? | 11:12:36 |
starlit | brb | 11:13:11 |
@acidbong:envs.net | root permission only matters when you're applying your config with nixos-rebuild switch|test|boot
especially if you're the only owner of the computer, it doesn't matter who owns the config | 11:17:34 |
rczb | Download Screenshot_20241215_215427.png | 11:28:38 |
rczb | Is this normal? | 11:28:46 |
starlit | Acid Bong: well, someone could hack into my unprivileged user change that and i not notice it and then I sudo nixos-rebuild... | 11:34:36 |
starlit | * Acid Bong: well, someone could hack into my unprivileged user change that and i do not notice it and then I sudo nixos-rebuild... | 11:34:48 |
starlit | The thing is that before the pinentry was working fine and now it isn't | 11:35:15 |
@acidbong:envs.net | In reply to @rczb:envs.net sent an image. what is this supposed to be? | 11:38:22 |
@acidbong:envs.net | In reply to @starlit:crossbach.de Acid Bong: well, someone could hack into my unprivileged user change that and i do not notice it and then I sudo nixos-rebuild... you track your config with git, you will see if there are extra changes | 11:39:13 |
starlit | Acid Bong: you have a point, i'll try doing that and see how it goes | 11:42:45 |
@acidbong:envs.net | In reply to @starlit:crossbach.de The thing is that before the pinentry was working fine and now it isn't instead own everything youself and operate on everything without sudo (except nixos-rebuild ), and you won't need those shenanigans | 11:43:38 |
rczb | In reply to @acidbong:envs.net what is this supposed to be? No inkblots | 11:57:10 |
@acidbong:envs.net | what inkblots? what are these lines tho? | 12:00:57 |
antifuchs | In reply to @rczb:envs.net sent an image. What platform is this? I’ve seen similar display corruption on macOS on occasion | 13:00:53 |
rczb | In reply to @antifuchs:asf.computer What platform is this? I’ve seen similar display corruption on macOS on occasion NixOS, The default (lucid) build. It was said that the GTK build has a long-standing severe bug, so I stick to this version. | 13:10:53 |
rczb | In reply to @acidbong:envs.net what inkblots? what are these lines tho? Ink blots are these very lines. Residues of highlights. | 13:13:31 |
starlit | Acid Bong: you're basically telling me to put everything I can on home-manager and just what I can't on nixos | 14:49:40 |
starlit | * Acid Bong: you're basically telling me to put everything I can on home-manager and just what I can't on nixos? | 14:50:18 |
starlit | In reply to @starlit:crossbach.de Acid Bong: you have a point, i'll try doing that and see how it goes also i did this and it worked, thanks | 14:50:40 |
starlit | In reply to @rczb:envs.net Is this normal? i dont have that | 14:52:58 |