mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-10 06:23:04 -04:00
add rootless docker
This commit is contained in:
parent
0d53e615d4
commit
e3e465dc8d
2 changed files with 16 additions and 0 deletions
15
common/systemModules/docker.nix
Normal file
15
common/systemModules/docker.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ NAME }: { ... }: {
|
||||
virtualisation = {
|
||||
docker = {
|
||||
rootless = {
|
||||
enable = true;
|
||||
};
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
environment = {
|
||||
sessionVariables = {
|
||||
DOCKER_HOST = "unix://$XDG_RUNTIME_DIR/docker.sock";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue