diff options
Diffstat (limited to 'system/virt')
| -rw-r--r-- | system/virt/docker.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/system/virt/docker.nix b/system/virt/docker.nix index 9dcb7e2..2376574 100644 --- a/system/virt/docker.nix +++ b/system/virt/docker.nix @@ -5,13 +5,17 @@ }: let inherit (lib) mkIf; cfg = config.virt.docker; + rootfs = config.fileSystems."/".fsType; in { config = mkIf cfg.enable { - virtualisation.docker = { - enable = true; - enableOnBoot = false; - storageDriver = "btrfs"; - }; + virtualisation.docker = + { + enable = true; + enableOnBoot = false; + } + // mkIf (rootfs == "btrfs") { + storageDriver = "btrfs"; + }; users.groups.docker.members = [config.user]; }; } |