Docker automatically selects storage driver

This commit is contained in:
Emmet 2024-03-24 10:14:15 -05:00
parent 72b451aec5
commit 7dd2f89c21
3 changed files with 7 additions and 3 deletions

View file

@ -6,7 +6,7 @@
../../system/hardware/time.nix # Network time sync
../../system/security/doas.nix
../../system/security/gpg.nix
( import ../../system/app/docker.nix {storageDriver = "btrfs"; inherit userSettings pkgs lib;} )
( import ../../system/app/docker.nix {storageDriver = null; inherit pkgs userSettings lib;} )
];
# Fix nix path

View file

@ -16,7 +16,7 @@
(./. + "../../../system/wm"+("/"+userSettings.wm)+".nix") # My window manager
#../../system/app/flatpak.nix
../../system/app/virtualization.nix
( import ../../system/app/docker.nix {storageDriver = "btrfs"; inherit userSettings lib;} )
( import ../../system/app/docker.nix {storageDriver = null; inherit pkgs userSettings lib;} )
../../system/security/doas.nix
../../system/security/gpg.nix
../../system/security/blocklist.nix

View file

@ -1,4 +1,4 @@
{ lib, userSettings, storageDriver ? null, ... }:
{ pkgs, lib, userSettings, storageDriver ? null, ... }:
assert lib.asserts.assertOneOf "storageDriver" storageDriver [
null
@ -18,4 +18,8 @@ assert lib.asserts.assertOneOf "storageDriver" storageDriver [
autoPrune.enable = true;
};
users.users.${userSettings.username}.extraGroups = [ "docker" ];
environment.systemPackages = with pkgs; [
docker-compose
lazydocker
];
}