2024-06-12 09:54:11 +07:00
|
|
|
{ config, lib, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.profile.docker;
|
2024-06-15 16:45:52 +07:00
|
|
|
username = config.profile.user.name;
|
2024-06-12 09:54:11 +07:00
|
|
|
in
|
|
|
|
{
|
|
|
|
config = lib.mkIf cfg.enable {
|
2024-06-15 16:45:52 +07:00
|
|
|
users.users.${username}.extraGroups = [ "docker" ];
|
2024-06-12 09:54:11 +07:00
|
|
|
virtualisation.docker.enable = true;
|
2024-06-12 23:37:10 +07:00
|
|
|
virtualisation.docker.autoPrune.enable = true;
|
|
|
|
virtualisation.oci-containers.backend = "docker";
|
2024-06-12 09:54:11 +07:00
|
|
|
};
|
2024-06-12 23:37:10 +07:00
|
|
|
|
|
|
|
imports = [
|
|
|
|
./caddy.nix
|
2024-06-13 00:50:38 +07:00
|
|
|
./kavita.nix
|
2024-06-12 23:37:10 +07:00
|
|
|
];
|
2024-06-12 09:54:11 +07:00
|
|
|
}
|