mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
podman: add darwin support with machine management
- 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
This commit is contained in:
committed by
Austin Horstman
parent
297a085108
commit
f4bcc1ae1c
24
tests/modules/services/podman/linux/image.nix
Normal file
24
tests/modules/services/podman/linux/image.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
imports = [ ./podman-stubs.nix ];
|
||||
config = lib.mkIf config.test.enableLegacyIfd {
|
||||
services.podman = {
|
||||
enable = true;
|
||||
images = {
|
||||
"my-img" = {
|
||||
image = "docker.io/alpine:latest";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
configPath=home-files/.config/systemd/user
|
||||
imageFile=$configPath/podman-my-img-image.service
|
||||
assertFileExists $imageFile
|
||||
|
||||
imageFile=$(normalizeStorePaths $imageFile)
|
||||
|
||||
assertFileContent $imageFile ${./image-expected.service}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user