diff options
Diffstat (limited to 'modules/nixos/common.nix')
| -rw-r--r-- | modules/nixos/common.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/nixos/common.nix b/modules/nixos/common.nix index a219850..10f48c6 100644 --- a/modules/nixos/common.nix +++ b/modules/nixos/common.nix | |||
| @@ -68,4 +68,10 @@ | |||
| 68 | nssmdns4 = true; | 68 | nssmdns4 = true; |
| 69 | openFirewall = true; | 69 | openFirewall = true; |
| 70 | }; | 70 | }; |
| 71 | |||
| 72 | # Rootless: runs as the user's own systemd user service, not as root, and | ||
| 73 | # has no docker-group privilege-escalation path. setSocketVariable exports | ||
| 74 | # DOCKER_HOST automatically so the docker CLI (dev-tools.nix) just works. | ||
| 75 | virtualisation.docker.rootless.enable = true; | ||
| 76 | virtualisation.docker.rootless.setSocketVariable = true; | ||
| 71 | } | 77 | } |
