Podman / quadlet : how to manage arguments?

Hello everyone !
I used to run some of my containers very basically, with a run command like this one :

sudo podman run -d --name navidrome --restart=unless-stopped --user 1000:1000 -v /path/to/navidrome/musik:/music -v /path/to/navidrome/data:/data -p 4687:4687 -e ND_LOGLEVEL=info -e ND_ENABLEGRAVATAR=true deluan/navidrome:latest

Then I would run podman generate systemd to generate the associated systemd service file. But doing so today, I got a warning (still worked) that the command is deprecated, use quadlet to handle systemd.

This seems quite interesting so I’ve started looking into it, and while I’ve got this working (see .container file below), there are some things I’m still unsure, especially the options I was running from the run command :

-e ND_LOGLEVEL=info -e ND_ENABLEGRAVATAR=true

Here’s my current navidrome.container file :

[Unit]
Description=navidrome
After=local-fs.target

[Container]
ContainerName=navidrome
Image=docker.io/deluan/navidrome:latest
PublishPort=4687:4687
Volume=/path/to/navidrome/data:/data
Volume=/path/to/navidrome/musik:/music

[Service]
Restart=unless-stopped

[Install]
WantedBy=default.target

I suppose it may be related to PodmanArgs ? What is the syntax please ?
Thank you for your help

I think I have it somewhat working. I was making 2 mistakes : trying to put environnement options in [Container] section while it was in the [Service] section and thinking that it was just some podman args.
Working file (I think) :

[Unit]
Description=navidrome
After=local-fs.target

[Container]
ContainerName=navidrome
Image=docker.io/deluan/navidrome:latest
PublishPort=4533:4533
Volume=/path/to/navidrome/data:/data
Volume=/path/to/navidrome/musik:/music

[Service]
Restart=unless-stopped
Environment=ND_LOGLEVEL=info
Environment=ND_ENABLEGRAVATAR=true

[Install]
WantedBy=default.target

At the very least, the service starts without any issue, even if I’m not too sure if the env options were taken into account.

Container environment variables should be added in the container section. Beside, the restart policy shoud be always and the service enable.

[Unit]
Description=navidrome
After=local-fs.target

[Container]
ContainerName=navidrome
Image=docker.io/deluan/navidrome:latest
PublishPort=4533:4533
Volume=/path/to/navidrome/data:/data
Volume=/path/to/navidrome/musik:/music
Environment=ND_LOGLEVEL=info
Environment=ND_ENABLEGRAVATAR=true

[Service]
Restart=always

[Install]
WantedBy=default.target

There is the option User=1000:1000 although I think it is not necessary if it is already a user service.

Also, After=local-fs.target may not be necessary.

For more information: Quadlet documentation

Thank you @cimat-jr ! This clarifies things. It seems I was getting confused even though I was making the right changes because my service would stopped working (while it was in fact because I restarted it too quickly).
I can see the environnement variables are now being used as expected.
Thank you.