21 Jul 2024 |
arbel | i didn't use it yet because i couldn't get it to decrypt. it needs to be symlinked to the keepassxc config folder. | 16:24:27 |
arbel | is that an issue? | 16:24:42 |
arbel | In reply to @tim92:matrix.org But how do you reference the file in your nix config? You only show the agenix configuration and secret file setup and not how you use it AHHHHHH i found the issue. the secret needs to have the `.file` or it wont work... obviously... somehow i totally missed that and the error made it seem like the file was getting loaded | 16:46:03 |
arbel | Download image.png | 18:24:45 |
arbel | it works for the nixOS configuration now including my hardware keys, but home-manager doesn't like them. it just doesn't do anything. i will do some more testing tomorrow. | 20:29:03 |
22 Jul 2024 |
tim | I would need more information to help you here.. | 07:36:20 |
arbel | i found at least a part of the issue.
the systemd service agenix installs (for the user) never runs itself.
after adding a start command to home.activation it works, except for decryption on login but i can script that too | 07:41:28 |
23 Jul 2024 |
| Ezzobir Bezziou joined the room. | 08:20:15 |
| Secirian changed their profile picture. | 11:47:00 |
| Secirian changed their profile picture. | 11:50:29 |
24 Jul 2024 |
| Redstone changed their display name from redstone-menace to Redstone. | 10:17:11 |
25 Jul 2024 |
| @fadenb:utzutzutz.net left the room. | 07:56:04 |
28 Jul 2024 |
| Different joined the room. | 23:50:14 |
Different | Hi! I'm trying to use the following:
passwordFile = config.age.secrets.user-password.path;
But I can't login with my password
| 23:52:33 |
Different | I don't get any errors when rebuilding | 23:53:01 |
Different | I didn't see any in the boot log:
Jul 29 09:41:38 localhost systemd[1]: Starting NixOS Activation...
Jul 29 09:41:39 localhost initrd-nixos-activation-start[695]: booting system configuration /nix/store/rj97h5dxl0jjwvd3scrv8xxjfydprg3y-nixos-sy>
Jul 29 09:41:39 localhost initrd-nixos-activation-start[695]: running activation script...
Jul 29 09:41:39 localhost initrd-nixos-activation-start[722]: [agenix] creating new generation in /run/agenix.d/1
Jul 29 09:41:39 localhost initrd-nixos-activation-start[722]: [agenix] decrypting secrets...
Jul 29 09:41:39 localhost initrd-nixos-activation-start[722]: decrypting '/nix/store/djdcr224dm9dikhsd0kg3mflnzfkkm5b-password.age' to '/run/ag>
Jul 29 09:41:39 localhost initrd-nixos-activation-start[722]: decrypting '/nix/store/43kvbaidx2h9xvg7a21vbw3pni07l2dq-rclone.conf.age' to '/run>
Jul 29 09:41:39 localhost initrd-nixos-activation-start[722]: decrypting '/nix/store/awgdp7a0g6n5s78lz961p9jj7inxbvhc-password.age' to '/run/ag>
Jul 29 09:41:39 localhost initrd-nixos-activation-start[722]: [agenix] symlinking new secrets to /run/agenix (generation 1)...
Jul 29 09:41:39 localhost initrd-nixos-activation-start[785]: reviving group 'fwupd-refresh' with GID 999
Jul 29 09:41:39 localhost initrd-nixos-activation-start[785]: reviving group 'nscd' with GID 997
Jul 29 09:41:39 localhost initrd-nixos-activation-start[785]: reviving group 'polkituser' with GID 996
Jul 29 09:41:39 localhost initrd-nixos-activation-start[785]: reviving group 'rtkit' with GID 995
Jul 29 09:41:39 localhost initrd-nixos-activation-start[785]: reviving group 'sshd' with GID 994
Jul 29 09:41:39 localhost initrd-nixos-activation-start[785]: reviving group 'systemd-coredump' with GID 993
Jul 29 09:41:39 localhost initrd-nixos-activation-start[785]: reviving group 'systemd-oom' with GID 992
Jul 29 09:41:39 localhost initrd-nixos-activation-start[785]: reviving group 'uinput' with GID 990
Jul 29 09:41:39 localhost initrd-nixos-activation-start[785]: reviving user 'different' with UID 1000
Jul 29 09:41:39 localhost initrd-nixos-activation-start[785]: reviving user 'fwupd-refresh' with UID 999
Jul 29 09:41:39 localhost initrd-nixos-activation-start[785]: reviving user 'nm-iodine' with UID 998
Jul 29 09:41:39 localhost initrd-nixos-activation-start[785]: reviving user 'nscd' with UID 997
Jul 29 09:41:39 localhost initrd-nixos-activation-start[785]: reviving user 'rtkit' with UID 996
Jul 29 09:41:39 localhost initrd-nixos-activation-start[785]: reviving user 'sshd' with UID 995
Jul 29 09:41:39 localhost initrd-nixos-activation-start[785]: reviving user 'systemd-oom' with UID 994
Jul 29 09:41:39 localhost initrd-nixos-activation-start[722]: [agenix] chowning...
Jul 29 09:41:39 localhost initrd-nixos-activation-start[722]: setting up /etc...
Jul 29 09:41:39 localhost systemd[1]: initrd-nixos-activation.service: Deactivated successfully.
| 23:54:51 |
Different | I tried copy pasting the password from the decrypted age file just in case i was typing it wrong | 23:55:29 |
Different | With no errors, i'm not sure where to go | 23:57:20 |
29 Jul 2024 |
hexa | hm, best to check the activation script | 00:15:52 |
hexa | not sure when exactly /etc/shadow gets rendered | 00:16:03 |
hexa | you could try using hashedPassword instead 🤔 | 00:16:59 |
Different | I'd rather use agenix | 10:37:49 |
Different | How might I check the activation script? | 10:38:16 |
| ポポロ joined the room. | 21:21:51 |
ポポロ | Download 屏幕截图_20240730_004402.png | 22:44:21 |
ポポロ | why is faild to create symbolic ? | 22:45:46 |
ポポロ | Download 屏幕截图_20240730_012432.png | 23:24:45 |
ポポロ | i don't know what i do wrong | 23:24:58 |
ポポロ | why don't have premonition with nix-rebuild ?, Manual linking is no problem at all. | 23:28:07 |
1 Aug 2024 |
| Vika (she/her) changed their profile picture. | 11:51:56 |