Testing to replace Docker with Podman
Some checks failed
build-linode-img / build-linode-img (push) Has been cancelled
Some checks failed
build-linode-img / build-linode-img (push) Has been cancelled
This commit is contained in:
parent
8eced1a4ab
commit
92a3d884c9
2 changed files with 26 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
../../common/services/fwupd.nix
|
||||
../../common/modules/ssh-luks.nix
|
||||
./builder.nix
|
||||
./docker.nix
|
||||
./podman.nix
|
||||
./wireguard.nix
|
||||
./cron.nix
|
||||
];
|
||||
|
|
25
nixos/hosts/framework-server/podman.nix
Normal file
25
nixos/hosts/framework-server/podman.nix
Normal 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
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue