mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 01:19:32 +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
25 lines
555 B
Nix
25 lines
555 B
Nix
{ 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}
|
|
'';
|
|
};
|
|
}
|