From 92a3d884c99bece1f9850bc9630a2b558f224dac Mon Sep 17 00:00:00 2001 From: iFargle Date: Mon, 18 Dec 2023 19:26:37 +0900 Subject: [PATCH] Testing to replace Docker with Podman --- nixos/hosts/framework-server/default.nix | 2 +- nixos/hosts/framework-server/podman.nix | 25 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 nixos/hosts/framework-server/podman.nix diff --git a/nixos/hosts/framework-server/default.nix b/nixos/hosts/framework-server/default.nix index e606d087..63fe356b 100644 --- a/nixos/hosts/framework-server/default.nix +++ b/nixos/hosts/framework-server/default.nix @@ -8,7 +8,7 @@ ../../common/services/fwupd.nix ../../common/modules/ssh-luks.nix ./builder.nix - ./docker.nix + ./podman.nix ./wireguard.nix ./cron.nix ]; diff --git a/nixos/hosts/framework-server/podman.nix b/nixos/hosts/framework-server/podman.nix new file mode 100644 index 00000000..f9659545 --- /dev/null +++ b/nixos/hosts/framework-server/podman.nix @@ -0,0 +1,25 @@ +{ inputs, pkgs, ... }: { + # Need to increase this because the number of + # containers I have drive the defaults over the max + boot.kernel.sysctl = { + "fs.inotify.max_user_watches" = 10485760; + "fs.inotify.max_user_instances" = 1024; + }; + + virtualisation.podman = { + enable = true; + dockerSocket.enable = true; + docketCompat = true; + autoPrune = { + enable = true; + dates = "weekly"; + flags = [ "--all" ]; + }; + }; + + environment.systemPackages = with pkgs; [ + podman-compose + podman-tui + inputs.compose2nix.packages.x86_64-linux.default + ]; +} \ No newline at end of file