containers(wine): Add sakaya systemd service

This combined with su makes it possible to automatically start a user
environment with sakaya-server running, thus eliminating the need to
spawn a shell with machinectl.
This commit is contained in:
Donovan Glover 2023-08-01 22:55:21 -04:00
parent f1ba5fac74
commit 6d390eb938
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -60,6 +60,25 @@
allowedTCPPorts = [ 39493 ];
};
systemd.services.sakaya = {
enable = true;
description = "sakaya server";
unitConfig = {
Type = "simple";
};
path = with pkgs; [
su
];
serviceConfig = {
ExecStart = "/usr/bin/env su user --command=${sakaya.packages.${pkgs.system}.sakaya}/bin/sakaya-server";
};
wantedBy = [ "multi-user.target" ];
};
environment.systemPackages = with pkgs; [
wineWowPackages.stagingFull
winetricks