32 lines
607 B
Nix
32 lines
607 B
Nix
{
|
|
user ? throw "user argument is required",
|
|
home ? throw "home argument is required",
|
|
}:
|
|
{
|
|
lib,
|
|
pkgs,
|
|
inputs,
|
|
...
|
|
}:
|
|
{
|
|
environment.persistence."/persist/state"."${home}/.local/share/containers" = { };
|
|
|
|
home-manager.users.${user} = {
|
|
imports = [ inputs.quadlet-nix.homeManagerModules.quadlet ];
|
|
|
|
services.podman = {
|
|
enable = true;
|
|
settings.storage.storage.driver = "btrfs";
|
|
};
|
|
|
|
home = {
|
|
packages = with pkgs; [
|
|
podman-compose
|
|
kompose
|
|
];
|
|
|
|
sessionVariables.REGISTRY_AUTH_FILE = "${home}/.config/containers/auth.json";
|
|
};
|
|
};
|
|
}
|