mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
- restructure module from `podman-linux` to platform-agnostic `podman` - move linux-specific implementation to `modules/services/podman/linux/` - add darwin module with declarative machine management - implement launchd-based watchdog for auto-starting machines - maintains backward compatibility with existing linux functionality
21 lines
564 B
Nix
21 lines
564 B
Nix
{
|
|
services.podman = {
|
|
enable = true;
|
|
useDefaultMachine = false;
|
|
machines = { };
|
|
};
|
|
|
|
nmt.script = ''
|
|
serviceDir=LaunchAgents
|
|
|
|
# Check that the default machine watchdog launchd service does not exists
|
|
agentFile=$serviceDir/org.nix-community.home.podman-machine-podman-machine-default.plist
|
|
assertPathNotExists $agentFile
|
|
|
|
# Verify home activation script doesn't create default machine
|
|
activationScript=activate
|
|
assertFileExists $activationScript
|
|
assertFileNotRegex $activationScript 'podman-machine-default'
|
|
'';
|
|
}
|