···3737in
3838lib.mkIf cfg.services.sharkey.enable {
39394040+ # Declare the sharkey user/group statically so sops-nix can resolve the
4141+ # owner at activation time. The nixpkgs sharkey module creates this user
4242+ # during service activation, which is too late for sops secret ownership.
4343+ users.users.sharkey = {
4444+ isSystemUser = true;
4545+ group = "sharkey";
4646+ };
4747+ users.groups.sharkey = { };
4848+4049 sops.secrets."sharkey.env" = {
4150 sopsFile = ../../secrets/sharkey.env;
4251 format = "dotenv";