From d714d14fcd0628287cc2825956b9f6ba3f07506c Mon Sep 17 00:00:00 2001 From: Kenryu Shibata Date: Sat, 31 Aug 2024 21:11:44 +0900 Subject: [PATCH] migrated to podman --- machines/workstation/configuration.nix | 4 +--- system/services/podman.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 system/services/podman.nix diff --git a/machines/workstation/configuration.nix b/machines/workstation/configuration.nix index 5210cbb..cd44192 100644 --- a/machines/workstation/configuration.nix +++ b/machines/workstation/configuration.nix @@ -12,7 +12,7 @@ ../../system/services/steam.nix ../../system/services/tailscale.nix ../../system/services/libvirtd.nix - ../../system/services/docker.nix + ../../system/services/podman.nix ../../system/hardware/kernel.nix ../../system/hardware/nvidia.nix ../../system/hardware/opengl.nix @@ -26,8 +26,6 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - systemd.enableUnifiedCgroupHierarchy = false; - programs.appimage = { enable = true; binfmt = true; diff --git a/system/services/podman.nix b/system/services/podman.nix new file mode 100644 index 0000000..a655640 --- /dev/null +++ b/system/services/podman.nix @@ -0,0 +1,19 @@ +{ config, pkgs, lib, ... }: +{ + virtualisation.containers.enable = true; + + virtualisation.podman = { + enable = true; + dockerCompat = true; + defaultNetwork.settings.dns_enabled = true; + }; + + environment.systemPackages = with pkgs; [ + dive + podman-tui + podman-compose + podman-desktop + ]; + + hardware.nvidia-container-toolkit.enable = lib.lists.elem "nvidia" config.services.xserver.videoDrivers; +}