diff options
Diffstat (limited to 'modules/desktop/virtualisation/docker.nix')
| -rw-r--r-- | modules/desktop/virtualisation/docker.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/desktop/virtualisation/docker.nix b/modules/desktop/virtualisation/docker.nix new file mode 100644 index 0000000..c35beb6 --- /dev/null +++ b/modules/desktop/virtualisation/docker.nix @@ -0,0 +1,32 @@ +{ lib, ... }: +{ + virtualisation.docker = { + enable = true; + storageDriver = "overlay2"; + enableOnBoot = false; + liveRestore = true; + enableNvidia = lib.mkForce true; + + daemon.settings = { + default-runtime = "nvidia"; + experimental = true; + iptables = false; + }; + + autoPrune = { + enable = true; + dates = "daily"; + }; + + rootless = { + enable = false; + setSocketVariable = true; + + daemon.settings = { + default-runtime = "nvidia"; + experimental = true; + iptables = false; + }; + }; + }; +} |