Testing to replace Docker with Podman
Some checks failed
build-linode-img / build-linode-img (push) Has been cancelled

This commit is contained in:
iFargle 2023-12-18 19:26:37 +09:00
parent 8eced1a4ab
commit 92a3d884c9
2 changed files with 26 additions and 1 deletions

View file

@ -8,7 +8,7 @@
../../common/services/fwupd.nix
../../common/modules/ssh-luks.nix
./builder.nix
./docker.nix
./podman.nix
./wireguard.nix
./cron.nix
];

View file

@ -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
];
}