nixconf/modules/nixos/containers/default.nix

27 lines
456 B
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
2024-01-15 22:30:41 +00:00
}:
{
config = lib.mkIf (!config.mtxyz.minimal) {
2024-01-15 22:30:41 +00:00
environment.systemPackages = with pkgs; [
podman-compose
];
virtualisation.podman = {
enable = true;
dockerSocket.enable = true;
dockerCompat = true;
defaultNetwork.settings = {
dns_enabled = true;
};
};
systemd.services."user@".serviceConfig = {
Delegate= "cpu cpuset io memory pids";
};
};
}