containers(wine): simplify

This commit is contained in:
Donovan Glover 2024-10-22 01:40:08 -04:00
parent 29045a2c55
commit d0c7374864
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -72,8 +72,6 @@ in
inherit (nix-config.inputs.sakaya.packages.${pkgs.system}) sakaya; inherit (nix-config.inputs.sakaya.packages.${pkgs.system}) sakaya;
inherit (config.modules.system) username; inherit (config.modules.system) username;
inherit (lib) getExe; inherit (lib) getExe;
sakayaPort = 39493;
in in
{ {
imports = with nix-config.nixosModules; [ imports = with nix-config.nixosModules; [
@ -128,22 +126,14 @@ in
hardware.graphics.enable = true; hardware.graphics.enable = true;
networking.firewall.allowedTCPPorts = [ sakayaPort ]; networking.firewall.allowedTCPPorts = [ 39493 ];
systemd.services.sakaya = { systemd.services.sakaya = {
enable = true; enable = true;
description = "sakaya server"; description = "sakaya server";
unitConfig.Type = "simple";
unitConfig = {
Type = "simple";
};
path = with pkgs; [ su ]; path = with pkgs; [ su ];
serviceConfig.ExecStart = "/usr/bin/env su ${username} --command=${getExe sakaya}";
serviceConfig = {
ExecStart = "/usr/bin/env su ${username} --command=${getExe sakaya}";
};
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
}; };
}; };