Add nginx,traefik,caddy,docker,podman
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.dov.virtualisation.docker;
|
||||
username = "susano";
|
||||
in {
|
||||
options.dov.virtualisation.docker = { enable = mkEnableOption "docker config"; };
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
users.extraGroups.docker.members = [ username ];
|
||||
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
rootless = {
|
||||
enable = true;
|
||||
setSocketVariable = true;
|
||||
};
|
||||
|
||||
# TODO use if disko is btrfs
|
||||
storageDriver = "btrfs";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user