refactor(viridian): improve remote deployment security
- Remove passwordless sudo for wheel group - Update deploy command to use -S flag for sudo password prompt - Maintain secure remote access while enabling deployments
This commit is contained in:
parent
efbbfecb2c
commit
1a931b76bd
2 changed files with 1 additions and 5 deletions
3
justfile
3
justfile
|
|
@ -8,5 +8,4 @@ switch *ARGS:
|
|||
sudo nixos-rebuild switch --flake .#{{ARGS}}
|
||||
|
||||
deploy *ARGS:
|
||||
nixos-rebuild switch --flake .#{{ARGS}} --target-host {{ARGS}} --use-remote-sudo
|
||||
|
||||
nixos-rebuild switch -S --flake .#{{ARGS}} --target-host {{ARGS}}
|
||||
|
|
|
|||
|
|
@ -49,9 +49,6 @@
|
|||
oci-containers.backend = "docker";
|
||||
};
|
||||
|
||||
# Required for smooth remote deployments
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||
system.stateVersion = "24.05";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue