Skip to content
Discussion options

You must be logged in to vote

I could finally avoid a root user for deploy-rs deployments after jumping through a couple of hoops (note that the extraRules to limit dbr's capabilities to only the necessary ones for deploy-rs doesn't work yet):

  den.aspects.dbr = {
    nixos = {pkgs, ...}: {
      services.openssh.settings.AllowUsers = ["dbr"];
      security = {
        sudo = {
          wheelNeedsPassword = false;
          # extraRules = [
          #   {
          #     users = ["dbr"];
          #     commands = [
          #       {command = "/nix/store/*-activatable-nixos-system-*/activate-rs";}
          #       {command = "/run/current-system/sw/bin/rm /tmp/deploy-rs-canary-*";}
          #     ];
          …

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@vic
Comment options

vic Nov 19, 2025
Maintainer

@vic
Comment options

vic Nov 19, 2025
Maintainer

@vic
Comment options

vic Nov 19, 2025
Maintainer

@xdbr
Comment options

@xdbr
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by xdbr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help!
Labels
None yet
2 participants