feat(pkgs): docker -> podman

This commit is contained in:
winston 2023-08-25 23:23:54 +02:00
parent 087f8c3fd6
commit f7468fde59
Signed by: winston
GPG key ID: 3786770EDBC2B481
4 changed files with 7 additions and 9 deletions

View file

@ -150,6 +150,9 @@ in {
# switch between yubikeys for the same GPG key # switch between yubikeys for the same GPG key
switch_yubikeys = ''gpg-connect-agent "scd serialno" "learn --force" "/bye"''; switch_yubikeys = ''gpg-connect-agent "scd serialno" "learn --force" "/bye"'';
tree = "lsd --tree"; tree = "lsd --tree";
# podman
docker = "podman";
docker-compose = "podman-compose";
}; };
history.path = "${config.xdg.configHome}/zsh/history"; history.path = "${config.xdg.configHome}/zsh/history";
}; };

View file

@ -28,6 +28,5 @@
pcscd.enable = true; pcscd.enable = true;
}; };
virtualisation.docker.enable = true; virtualisation.podman.enable = true;
users.users."${config.dotfiles.username}".extraGroups = ["docker"];
} }

View file

@ -1,9 +1,4 @@
{ {
# add the traefik user to the docker group for socket access
users = {
users.traefik.extraGroups = ["docker"];
};
services = { services = {
traefik = { traefik = {
enable = true; enable = true;
@ -21,6 +16,7 @@
https.address = ":443"; https.address = ":443";
}; };
providers = { providers = {
# TODO: adjust for podman
docker = { docker = {
endpoint = "unix:///var/run/docker.sock"; endpoint = "unix:///var/run/docker.sock";
exposedByDefault = false; exposedByDefault = false;

View file

@ -21,10 +21,10 @@
transmission.openFirewall = true; transmission.openFirewall = true;
}; };
virtualisation.docker.enable = true; virtualisation.podman.enable = true;
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
users.users."${config.dotfiles.username}".extraGroups = ["docker" "libvirtd" "transmission"]; users.users."${config.dotfiles.username}".extraGroups = ["libvirtd" "transmission"];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
cabextract cabextract