mod: adjusted hildibrand
This commit is contained in:
@@ -3,12 +3,7 @@
|
||||
userName,
|
||||
nur,
|
||||
...
|
||||
}: let
|
||||
nurPkgs = import "${nur.outPath}/pkgs" {
|
||||
inherit pkgs;
|
||||
hildibrand = nur.inputs.hildibrand.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
||||
};
|
||||
in {
|
||||
}: {
|
||||
imports = [
|
||||
../../pwrMgmt
|
||||
../../networking/core.nix
|
||||
@@ -58,18 +53,18 @@ in {
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
nurPkgs.hildibrand
|
||||
nur.packages.${pkgs.stdenv.hostPlatform.system}.hildibrand
|
||||
];
|
||||
|
||||
systemd.services.vintagestory-server = {
|
||||
description = "Vintage Story Server";
|
||||
systemd.services.hildibrand = {
|
||||
description = "Hildibrand - trivia buzzer bot";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
User = userName;
|
||||
WorkingDirectory = "/home/${userName}";
|
||||
ExecStart = "${nurPkgs.hildibrand}/bin/hildibrand";
|
||||
ExecStart = "${nur.packages.${pkgs.stdenv.hostPlatform.system}.hildibrand}/bin/hildibrand";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "5s";
|
||||
};
|
||||
@@ -77,7 +72,6 @@ in {
|
||||
|
||||
# Add username to groups "wheel" and "video" - more may be added here later
|
||||
users = {
|
||||
groups.hazel = {};
|
||||
users = {
|
||||
${userName} = {
|
||||
extraGroups = [ "wheel" "network" ];
|
||||
|
||||
Reference in New Issue
Block a user