mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 03:29:45 +01:00
podman: drop extra settings attr
This commit is contained in:
parent
c6e927e632
commit
ed779421fd
2 changed files with 7 additions and 7 deletions
|
@ -12,13 +12,13 @@ in {
|
|||
enable = lib.mkEnableOption "Podman, a daemonless container engine";
|
||||
|
||||
config = {
|
||||
containers.settings = lib.mkOption {
|
||||
containers = lib.mkOption {
|
||||
type = toml.type;
|
||||
default = { };
|
||||
description = "containers.conf configuration";
|
||||
};
|
||||
|
||||
storage.settings = lib.mkOption {
|
||||
storage = lib.mkOption {
|
||||
type = toml.type;
|
||||
description = "storage.conf configuration";
|
||||
};
|
||||
|
@ -77,7 +77,7 @@ in {
|
|||
|
||||
home.packages = [ cfg.package ];
|
||||
|
||||
services.podman.config.storage.settings = {
|
||||
services.podman.config.storage = {
|
||||
storage.driver = lib.mkDefault "overlay";
|
||||
};
|
||||
|
||||
|
@ -91,9 +91,9 @@ in {
|
|||
lib.mapAttrs (n: v: { registries = v; }) cfg.config.registries;
|
||||
};
|
||||
"containers/storage.conf".source =
|
||||
toml.generate "storage.conf" cfg.config.storage.settings;
|
||||
toml.generate "storage.conf" cfg.config.storage;
|
||||
"containers/containers.conf".source =
|
||||
toml.generate "containers.conf" cfg.config.containers.settings;
|
||||
toml.generate "containers.conf" cfg.config.containers;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
services.podman = {
|
||||
enable = true;
|
||||
config = {
|
||||
containers.settings = {
|
||||
containers = {
|
||||
network = {
|
||||
default_subnet = "172.16.10.0/24";
|
||||
default_subnet_pools = [
|
||||
|
@ -19,7 +19,7 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
storage.settings = {
|
||||
storage = {
|
||||
storage = {
|
||||
runroot = "$HOME/.containers/runroot";
|
||||
graphroot = "$HOME/.containers/graphroot";
|
||||
|
|
Loading…
Reference in a new issue