Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activation fails with userborn enabled #289

Open
Scrumplex opened this issue Sep 16, 2024 · 1 comment
Open

Activation fails with userborn enabled #289

Scrumplex opened this issue Sep 16, 2024 · 1 comment

Comments

@Scrumplex
Copy link
Contributor

When enabling the new experimental user activation program using services.userborn.enable = true; agenix fails to activate.

I am not quite sure what's going on here. A notable quirk of userborn is that it is not a traditional activation script, but rather a systemd unit that is wanted by/required by the nixos activation targets.

Activation log:

Sep 16 17:37:50 andromeda systemd[1]: Starting NixOS Activation...
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[378]: booting system configuration /nix/store/xa6pi703jc9j427cls5qnhvd051vk6yv-nixos-system-andromeda-24.11.20240911.4f807e8
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[378]: running activation script...
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[405]: [agenix] chowning...
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[406]: chown: cannot access '/run/agenix.d': No such file or directory
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[406]: chown: cannot access '/run/agenix.d/': No such file or directory
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[407]: chown: cannot access '/run/agenix.d//beets-secrets.yaml': No such file or directory
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[408]: chown: cannot access '/run/agenix.d//borgbase-repokey': No such file or directory
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[409]: chown: cannot access '/run/agenix.d//id_borgbase': No such file or directory
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[410]: chown: cannot access '/run/agenix.d//listenbrainz-token': No such file or directory
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[411]: chown: cannot access '/run/agenix.d//passwd': No such file or directory
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[412]: chown: cannot access '/run/agenix.d//screenshot-bash': No such file or directory
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[413]: chown: cannot access '/run/agenix.d//wg-scrumplex': No such file or directory
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[405]: Activation script snippet 'agenixChown' failed (1)
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[405]: [agenix] creating new generation in /run/agenix.d/1
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[405]: [agenix] decrypting secrets...
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[405]: decrypting '/nix/store/pmqhzhx7zxyfdnqrgc91gzd0ad2avm73-beets-secrets.yaml.age' to '/run/agenix.d/1/beets-secrets.yaml'...
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[405]: decrypting '/nix/store/27i83hs8hiqq2wa4b48c7zh3smrzl7xr-borgbase-repokey.age' to '/run/agenix.d/1/borgbase-repokey'...
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[405]: decrypting '/nix/store/37620by3rjhq98vvyc622326h38b1p88-id_borgbase.age' to '/run/agenix.d/1/id_borgbase'...
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[405]: decrypting '/nix/store/i9kx61s4mr3gawafm3gaynpim6kb07d5-listenbrainz-token.age' to '/run/agenix.d/1/listenbrainz-token'...
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[405]: decrypting '/nix/store/xwgyj3l8zwix8rzfxg5llm7l4klvhlzh-passwd.age' to '/run/agenix.d/1/passwd'...
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[405]: decrypting '/nix/store/wjwmxc7bkicx28hg94sbk9bba97c6g0s-screenshot-bash.age' to '/run/agenix.d/1/screenshot-bash'...
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[405]: decrypting '/nix/store/11amxy03cwxbmrab26b3caa1xd60v911-wg.age' to '/run/agenix.d/1/wg-scrumplex'...
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[405]: [agenix] symlinking new secrets to /run/agenix (generation 1)...
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[405]: setting up /etc...
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[523]: Path does not exist: /run/current-system
Sep 16 17:37:50 andromeda initrd-nixos-activation-start[405]: Activation script snippet 'nixClosureDiff' failed (1)
Sep 16 17:37:50 andromeda systemd[1]: initrd-nixos-activation.service: Deactivated successfully.
Scrumplex added a commit to Scrumplex/flake that referenced this issue Sep 16, 2024
@Kranzes
Copy link

Kranzes commented Oct 4, 2024

Should be solved by #255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants