mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-25 01:33:17 +01:00
containers(wine): simplify
This commit is contained in:
parent
29045a2c55
commit
d0c7374864
@ -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" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user