~ruther/nixos-config

45688b39804ec8c3482e6f378836b99e44a70847 — Frantisek Bohacek 1 year, 6 months ago 6d2e36d
feat: add podman, remove docker
2 files changed, 6 insertions(+), 14 deletions(-)

M modules/desktop/virtualisation/default.nix
R modules/desktop/virtualisation/{docker.nix => podman.nix}
M modules/desktop/virtualisation/default.nix => modules/desktop/virtualisation/default.nix +1 -3
@@ 12,7 12,5 @@
#

[
  ./docker.nix
  ./qemu.nix
  ./x11vnc.nix
  ./podman.nix
]

R modules/desktop/virtualisation/docker.nix => modules/desktop/virtualisation/podman.nix +5 -11
@@ 5,19 5,13 @@
{ config, pkgs, user, ... }:

{
  virtualisation = {
    docker.enable = true;
  virtualisation.podman = {
    enable = true;
    dockerCompat = true;
    defaultNetwork.settings.dns_enabled = true;
  };

  users.groups.docker.members = [ "${user}" ];

  #environment = {
  #  interactiveShellInit = ''
  #    alias rtmp='docker start nginx-rtmp'
  #  '';                                                           # Alias to easily start container
  #};

  environment.systemPackages = with pkgs; [
    docker-compose
    podman-compose
  ];
}

Do not follow this link