Update go2rtc.nix
This commit is contained in:
parent
1ecc22e03f
commit
2007cfa7ac
1 changed files with 21 additions and 22 deletions
|
|
@ -4,28 +4,27 @@
|
||||||
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
|
config = lib.mkIf (config.networking.hostName == "FredOS-Mediaserver") {
|
||||||
|
|
||||||
virtualisation.oci-containers = {
|
virtualisation.oci-containers = {
|
||||||
backend = "docker";
|
backend = "docker";
|
||||||
|
|
||||||
# Authelia
|
# Authelia
|
||||||
containers."authelia" = {
|
containers."authelia" = {
|
||||||
image = "authelia/authelia:latest";
|
image = "authelia/authelia:latest";
|
||||||
volumes = [
|
volumes = [
|
||||||
"/home/fred/docker/authelia/config.yml:/config/config.yml:ro"
|
"/home/fred/docker/authelia/config.yml:/config/config.yml:ro"
|
||||||
"/home/fred/docker/authelia/secrets:/secrets:ro"
|
"/home/fred/docker/authelia/secrets:/secrets:ro"
|
||||||
];
|
];
|
||||||
ports = [ "9091:9091" ];
|
ports = [ "9091:9091" ];
|
||||||
extraOptions = "--restart unless-stopped";
|
extraOptions = [ "--restart" "unless-stopped" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Go2RTC
|
containers."go2rtc" = {
|
||||||
containers."go2rtc" = {
|
image = "blakeblackshear/go2rtc:latest";
|
||||||
image = "blakeblackshear/go2rtc:latest";
|
volumes = [
|
||||||
volumes = [
|
"/home/fred/docker/go2rtc/config.yml:/config/config.yml:ro"
|
||||||
"/home/fred/docker/go2rtc/config.yml:/config/config.yml:ro"
|
];
|
||||||
];
|
ports = [ "1984:1984" ];
|
||||||
ports = [ "1984:1984" ];
|
extraOptions = [ "--restart" "unless-stopped" ];
|
||||||
extraOptions = "--restart unless-stopped";
|
};
|
||||||
};
|
|
||||||
};
|
};
|
||||||
# Create directories for local secrets
|
# Create directories for local secrets
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue