mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-25 01:33:17 +01:00
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:
parent
f1ba5fac74
commit
6d390eb938
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user