summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-03-29 15:44:15 -0400
committerFreya Murphy <freya@freyacat.org>2026-03-29 15:44:15 -0400
commit14b608a5c742f567480dc059f38cb5893809feea (patch)
treeb11957f63b03c2f6aac0ac9e944a48cf024505fa /system
parentinstall more man pages (diff)
downloaddotfiles-nix-14b608a5c742f567480dc059f38cb5893809feea.tar.gz
dotfiles-nix-14b608a5c742f567480dc059f38cb5893809feea.tar.bz2
dotfiles-nix-14b608a5c742f567480dc059f38cb5893809feea.zip
fix docker module
Diffstat (limited to 'system')
-rw-r--r--system/virt/docker.nix16
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];
};
}