Merge pull request #307498 from SuperSandro2000/podman-storage-default

nixos/containers: move storage.settings default into config
This commit is contained in:
Leona Maroni 2024-05-03 22:31:06 +02:00 committed by GitHub
commit d9bdb87f7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,13 +53,6 @@ in
storage.settings = mkOption {
type = toml.type;
default = {
storage = {
driver = "overlay";
graphroot = "/var/lib/containers/storage";
runroot = "/run/containers/storage";
};
};
description = "storage.conf configuration";
};
@ -124,6 +117,12 @@ in
};
};
virtualisation.containers.storage.settings.storage = {
driver = "overlay";
graphroot = "/var/lib/containers/storage";
runroot = "/run/containers/storage";
};
environment.etc = {
"containers/containers.conf".source =
toml.generate "containers.conf" cfg.containersConf.settings;