mirror of
https://github.com/nix-community/home-manager
synced 2024-06-01 04:23:34 +02:00
de53c7ccfb
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.
36 lines
924 B
Nix
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.";
|
|
};
|
|
} |