2024-03-24 20:44:15 +05:30
|
|
|
{ pkgs, lib, userSettings, storageDriver ? null, ... }:
|
2023-06-21 20:22:25 +05:30
|
|
|
|
|
|
|
assert lib.asserts.assertOneOf "storageDriver" storageDriver [
|
|
|
|
null
|
|
|
|
"aufs"
|
|
|
|
"btrfs"
|
|
|
|
"devicemapper"
|
|
|
|
"overlay"
|
|
|
|
"overlay2"
|
|
|
|
"zfs"
|
|
|
|
];
|
|
|
|
|
|
|
|
{
|
|
|
|
virtualisation.docker = {
|
|
|
|
enable = true;
|
|
|
|
enableOnBoot = true;
|
|
|
|
storageDriver = storageDriver;
|
|
|
|
autoPrune.enable = true;
|
|
|
|
};
|
2024-01-19 03:06:52 +05:30
|
|
|
users.users.${userSettings.username}.extraGroups = [ "docker" ];
|
2024-03-24 20:44:15 +05:30
|
|
|
environment.systemPackages = with pkgs; [
|
2024-04-06 19:02:34 +05:30
|
|
|
docker
|
2024-03-24 20:44:15 +05:30
|
|
|
docker-compose
|
|
|
|
lazydocker
|
|
|
|
];
|
2023-06-21 20:22:25 +05:30
|
|
|
}
|