podman
This commit is contained in:
parent
73e81298d3
commit
221750d875
|
@ -11,6 +11,7 @@
|
||||||
./network.nix
|
./network.nix
|
||||||
./nix.nix
|
./nix.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
|
./podman.nix
|
||||||
./ripgrep.nix
|
./ripgrep.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./sudo.nix
|
./sudo.nix
|
||||||
|
|
30
modules/base/podman.nix
Normal file
30
modules/base/podman.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{...}: {
|
||||||
|
# Podman can run rootless containers and be a drop-in replacement for Docker.
|
||||||
|
# It is used for systemd services containers defined using
|
||||||
|
# `virtualisation.oci-containers`.
|
||||||
|
# https://wiki.nixos.org/wiki/Podman
|
||||||
|
virtualisation.containers.enable = true;
|
||||||
|
virtualisation.podman = {
|
||||||
|
enable = true;
|
||||||
|
# Automatically `podman system prune` weekly
|
||||||
|
autoPrune.enable = true;
|
||||||
|
# Required for containers under podman-compose to be able to talk to each
|
||||||
|
# other.
|
||||||
|
defaultNetwork.settings = {
|
||||||
|
dns_enabled = true;
|
||||||
|
ipv6_enabled = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Persist docker volumes
|
||||||
|
environment.persistence."/nix/persist" = {
|
||||||
|
directories = [
|
||||||
|
{
|
||||||
|
directory = "/var/lib/containers";
|
||||||
|
user = "root";
|
||||||
|
group = "root";
|
||||||
|
mode = "0700";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -90,15 +90,17 @@
|
||||||
"! /**/found.000/*"
|
"! /**/found.000/*"
|
||||||
|
|
||||||
"! /**/.cache"
|
"! /**/.cache"
|
||||||
"! /**/Cache"
|
|
||||||
"! /**/cache"
|
"! /**/cache"
|
||||||
|
"! /**/Cache"
|
||||||
"! /srv/torrents"
|
"! /srv/torrents"
|
||||||
|
"! /var/lib/containers/overlay*"
|
||||||
"! /var/lib/docker/overlay2"
|
"! /var/lib/docker/overlay2"
|
||||||
"- *.tmp"
|
"- *.tmp"
|
||||||
|
|
||||||
"! /home/*/Android/Sdk"
|
"! /home/*/Android/Sdk"
|
||||||
"! /home/*/Downloads"
|
"! /home/*/Downloads"
|
||||||
"! /home/*/GOG Games"
|
"! /home/*/GOG Games"
|
||||||
|
"! /home/*/.local/share/containers/storage/overlay*"
|
||||||
"! /home/*/.steam"
|
"! /home/*/.steam"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue