Add oci-container template
This commit is contained in:
24
ServeNix/services/TEMPLATE.nix
Normal file
24
ServeNix/services/TEMPLATE.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{config, lib, pkgs, ...}:
|
||||
|
||||
{
|
||||
virtualisation.oci-containers.containers.NAME = {
|
||||
image = "";
|
||||
autoStart = true;
|
||||
|
||||
dependsOn = [];
|
||||
|
||||
ports = [];
|
||||
|
||||
volumes = [];
|
||||
|
||||
environment = {
|
||||
PUID = "1000";
|
||||
PGID = "1000";
|
||||
TZ = "Europe/Berlin";
|
||||
};
|
||||
|
||||
extraOptions = [
|
||||
# "--restart=always" # Conflicts with NixOS' default of using --rm
|
||||
];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user