fix(genie): set up audio integration
This commit is contained in:
parent
2624592c15
commit
dfdfe7708a
|
@ -14,6 +14,7 @@ in with builtins; {
|
||||||
./hardware/gpu-intel.nix
|
./hardware/gpu-intel.nix
|
||||||
./desktop/x11.nix
|
./desktop/x11.nix
|
||||||
./system/server.nix
|
./system/server.nix
|
||||||
|
./system/sound.nix
|
||||||
./modules/emailNotify.nix
|
./modules/emailNotify.nix
|
||||||
./services/mail.nix
|
./services/mail.nix
|
||||||
./services/restic/home-server.nix
|
./services/restic/home-server.nix
|
||||||
|
|
|
@ -15,12 +15,22 @@ in {
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.oci-containers.containers = {
|
virtualisation.oci-containers.containers.genie = {
|
||||||
genie = {
|
image = "stanfordoval/almond-server";
|
||||||
image = "stanfordoval/almond-server";
|
ports = [ "${toString port}:3000" ];
|
||||||
ports = [ "${toString port}:3000" ];
|
environment = {
|
||||||
environment.THINGENGINE_HOST_BASED_AUTHENTICATION = "insecure";
|
PULSE_SERVER = "unix:/run/pulse/native";
|
||||||
volumes = [ "/dev/shm:/dev/shm" "${dataDir}:/var/lib/genie-server" ];
|
THINGENGINE_HOST_BASED_AUTHENTICATION = "insecure";
|
||||||
};
|
};
|
||||||
|
volumes = [
|
||||||
|
"/dev/shm:/dev/shm"
|
||||||
|
"/run/user/1000/pulse:/run/pulse"
|
||||||
|
"${dataDir}:/var/lib/genie-server"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.services."${ociBackend}-genie" = {
|
||||||
|
requires = [ "sound.target" ];
|
||||||
|
after = [ "sound.target" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue