{ pkgs, inputs, ... }: { imports = [ inputs.quadlet-nix.nixosModules.quadlet ]; # FIXME: https://github.com/containers/crun/pull/1807 nixpkgs.overlays = [ (final: prev: { crun = prev.crun.overrideAttrs (oldAttrs: { patches = oldAttrs.patches or [ ] ++ [ (builtins.fetchurl { url = "https://patch-diff.githubusercontent.com/raw/containers/crun/pull/1807.patch"; sha256 = "sha256:13ax2scvd27s341wy0b9gpfyn47gjvg9fvbl8al3905dblqhdlr0"; }) ]; }); }) ]; virtualisation = { podman.enable = true; containers = { enable = true; storage.settings.storage.driver = "btrfs"; }; quadlet = { enable = true; autoEscape = true; }; }; environment = { persistence."/persist/state"."/var/lib/containers".create = "directory"; systemPackages = with pkgs; [ podman-compose kompose ]; }; }