warwick | Key /root/.config/sops/age/root-sops-age does not exist. Skipping chown. #42

Open
opened 2025-06-08 10:08:58 +00:00 by pim · 1 comment
Owner

I think this is a bug in Colmena if we change the location. It still tries to chown the original file.

Specifically:

          name = "${user}-sops-age";
          value = {
            keyCommand = ["nix" "run" "nixpkgs#sops" "--" "--extract" "[\"sops_nix_keys\"][\"${user}\"]" "-d" (builtins.toString sopsFile)];
            name = "keys.txt";
            destDir = "${homeDirectory}/.config/sops/age";
            inherit user;
            group = "users";
          };

We change the name here, Colmena still tries to chown root-sops-age.

I think this is a bug in Colmena if we change the location. It still tries to chown the original file. Specifically: ```nix name = "${user}-sops-age"; value = { keyCommand = ["nix" "run" "nixpkgs#sops" "--" "--extract" "[\"sops_nix_keys\"][\"${user}\"]" "-d" (builtins.toString sopsFile)]; name = "keys.txt"; destDir = "${homeDirectory}/.config/sops/age"; inherit user; group = "users"; }; ``` We change the `name` here, Colmena still tries to chown `root-sops-age`.
Author
Owner
https://github.com/zhaofengli/colmena/pull/291
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: pim/nixos-configs#42
No description provided.