mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
1743615b61
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.
51 lines
2 KiB
Desktop File
51 lines
2 KiB
Desktop File
# Automatically generated by /nix/store/00000000000000000000000000000000-podman/lib/systemd/user-generators/podman-user-generator
|
|
#
|
|
# Automatically generated by home-manager podman container configuration
|
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
#
|
|
# my-container.container
|
|
[X-Container]
|
|
AddDevice=/dev/null:/dev/null
|
|
AutoUpdate=registry
|
|
ContainerName=my-container
|
|
Entrypoint=/sleep.sh
|
|
Environment=VAL_A=A
|
|
Environment=VAL_B=2
|
|
Environment=VAL_C=false
|
|
Image=docker.io/alpine:latest
|
|
Label=nix.home-manager.managed=true
|
|
Network=mynet
|
|
NetworkAlias=test-alias-1
|
|
NetworkAlias=test-alias-2
|
|
PodmanArgs=--security-opt=no-new-privileges
|
|
PublishPort=8080:80
|
|
ReadOnlyTmpfs=true
|
|
Volume=/tmp:/tmp
|
|
|
|
[Install]
|
|
WantedBy=default.target
|
|
WantedBy=multi-user.target
|
|
|
|
[Service]
|
|
Environment=PATH=/run/wrappers/bin:/run/current-system/sw/bin:/home/hm-user/.nix-profile/bin
|
|
Restart=on-failure
|
|
TimeoutStopSec=30
|
|
Environment=PODMAN_SYSTEMD_UNIT=%n
|
|
KillMode=mixed
|
|
ExecStop=/nix/store/00000000000000000000000000000000-podman/bin/podman rm -v -f -i --cidfile=%t/%N.cid
|
|
ExecStopPost=-/nix/store/00000000000000000000000000000000-podman/bin/podman rm -v -f -i --cidfile=%t/%N.cid
|
|
Delegate=yes
|
|
Type=notify
|
|
NotifyAccess=all
|
|
SyslogIdentifier=%N
|
|
ExecStart=/nix/store/00000000000000000000000000000000-podman/bin/podman run --name=my-container --cidfile=%t/%N.cid --replace --rm --cgroups=split --network=mynet --network-alias test-alias-1 --network-alias test-alias-2 --sdnotify=conmon -d --device=/dev/null:/dev/null --entrypoint=/sleep.sh --read-only-tmpfs -v /tmp:/tmp --label io.containers.autoupdate=registry --publish 8080:80 --env VAL_A=A --env VAL_B=2 --env VAL_C=false --label nix.home-manager.managed=true --security-opt=no-new-privileges docker.io/alpine:latest
|
|
|
|
[Unit]
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
After=network.target
|
|
Before=fake.target
|
|
Description=home-manager test
|
|
SourcePath=/nix/store/00000000000000000000000000000000-home-container-podman-my-container/quadlets/podman-my-container.container
|
|
RequiresMountsFor=%t/containers
|
|
RequiresMountsFor=/tmp
|