From d0c7374864fd8f8c852684c730ce42d52c78f7b0 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Tue, 22 Oct 2024 01:40:08 -0400 Subject: [PATCH] containers(wine): simplify --- modules/containers.nix | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/modules/containers.nix b/modules/containers.nix index d1d01727..2d295ca2 100644 --- a/modules/containers.nix +++ b/modules/containers.nix @@ -72,8 +72,6 @@ in inherit (nix-config.inputs.sakaya.packages.${pkgs.system}) sakaya; inherit (config.modules.system) username; inherit (lib) getExe; - - sakayaPort = 39493; in { imports = with nix-config.nixosModules; [ @@ -128,22 +126,14 @@ in hardware.graphics.enable = true; - networking.firewall.allowedTCPPorts = [ sakayaPort ]; + networking.firewall.allowedTCPPorts = [ 39493 ]; systemd.services.sakaya = { enable = true; description = "sakaya server"; - - unitConfig = { - Type = "simple"; - }; - + unitConfig.Type = "simple"; 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" ]; }; };