about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2023-06-19 18:43:44 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2023-06-19 18:43:44 +0200
commit39117fbbea84ee1700d99851e43041c73904faa2 (patch)
tree2276021db4142ac74b3f4c581dda5a004d172040
parentUpdate (diff)
downloadnixos-config-39117fbbea84ee1700d99851e43041c73904faa2.tar.gz
nixos-config-39117fbbea84ee1700d99851e43041c73904faa2.tar.bz2
nixos-config-39117fbbea84ee1700d99851e43041c73904faa2.zip
Modules: Virtualisation: Switch from podman back to docker
-rw-r--r--modules/virtualisation/default.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/modules/virtualisation/default.nix b/modules/virtualisation/default.nix
index c816490..1aa4cb2 100644
--- a/modules/virtualisation/default.nix
+++ b/modules/virtualisation/default.nix
@@ -2,9 +2,13 @@
 
 {
   virtualisation = {
-    podman = {
+    docker = {
       enable = true;
-      dockerCompat = true;
+      storageDriver = "btrfs";
+      rootless = {
+        enable = true;
+        setSocketVariable = true;
+      };
     };
     libvirtd.enable = true;
     virtualbox.host.enable = true;
@@ -12,9 +16,8 @@
 
   environment.systemPackages = with pkgs; [
     docker-compose
-    podman-compose
   ];
 
-  users.users.${user}.extraGroups = [ "libvirtd" ];
+  users.users.${user}.extraGroups = [ "libvirtd" "docker" ];
   users.extraGroups.vboxusers.members = [ "user-with-access-to-virtualbox" ];
 }