diff options
Diffstat (limited to 'system/virt')
| -rw-r--r-- | system/virt/docker.nix | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/system/virt/docker.nix b/system/virt/docker.nix index 2376574..8f7c5ba 100644 --- a/system/virt/docker.nix +++ b/system/virt/docker.nix @@ -8,14 +8,14 @@ rootfs = config.fileSystems."/".fsType; in { config = mkIf cfg.enable { - virtualisation.docker = - { - enable = true; - enableOnBoot = false; - } - // mkIf (rootfs == "btrfs") { - storageDriver = "btrfs"; - }; + virtualisation.docker = { + enable = true; + enableOnBoot = false; + storageDriver = + if rootfs == "btrfs" + then "btrfs" + else null; + }; users.groups.docker.members = [config.user]; }; } |