1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-01 04:23:34 +02:00
home-manager/modules/services/podman-linux/options.nix
Nicholas Hassan de53c7ccfb
podman: add new module 'podman'
Adds a new Podman module for creating user containers and networks as
systemd services. These are installed to the user's XDG_CONFIG/systemd/user directory.
2024-04-30 16:53:38 +09:30

36 lines
924 B
Nix

{lib, ...}:
let
# Define the systemd service type
quadletInternalType = lib.types.submodule {
options = {
serviceName = lib.mkOption {
type = lib.types.str;
description = "The name of the systemd service.";
};
unitType = lib.mkOption {
type = lib.types.str;
default = "";
description = "The type of the systemd unit.";
};
source = lib.mkOption {
type = lib.types.str;
description = "The quadlet source file content.";
};
assertions = lib.mkOption {
type = with lib.types; listOf unspecified;
default = [];
description = "List of Nix type assertions.";
};
};
};
in {
options.internal.podman-quadlet-definitions = lib.mkOption {
type = lib.types.listOf quadletInternalType;
default = {};
description = "List of quadlet source file content and service names.";
};
}