update 2020.3

This commit is contained in:
stubbfel
2020-05-24 17:18:09 +02:00
parent 8becdbf468
commit e5335939c5
9 changed files with 59 additions and 12 deletions

View File

@@ -29,6 +29,12 @@
# should.
system = {
stateVersion = "17.09"; # Did you read the comment?
autoUpgrade.enable = true;
autoUpgrade = {
enable = true;
allowReboot = true;
};
};
security.acme.email = "stubbfel@posteo.de";
security.acme.acceptTerms = true;
}

View File

@@ -2,10 +2,8 @@
{
# Select internationalisation properties.
i18n = {
consoleKeyMap = "de";
defaultLocale = "de_DE.UTF-8";
};
i18n.defaultLocale = "de_DE.UTF-8";
console.keyMap= "de";
# Set your time zone.
time.timeZone = "Europe/Amsterdam";

View File

@@ -71,7 +71,7 @@ calibreWithRecipes = pkgs.calibre.overrideAttrs (oldAttrs: rec {
cp -ravf recipes $out/var/news2kindle
''+ oldAttrs.installPhase ;
buildInputs = (remove pkgs.python2Packages.odfpy oldAttrs.buildInputs) ++ [odfpyNoTest];
buildInputs = (remove pkgs.python2Packages.odfpy oldAttrs.buildInputs) ++ [odfpyNoTest pkgs.python27Packages.feedparser];
# patches = oldAttrs.patches ++ [./calibre-disable_plugins.patch];
# patches = [./calibre-disable_plugins.patch];

View File

@@ -2,7 +2,7 @@
{
environment.systemPackages = with pkgs; [
wget curl vim nano zsh fzf tmux git exa progress tldr
wget curl vim nano zsh fzf tmux git exa progress tldr steamcmd
];
imports =

42
services/7dtd.nix Normal file
View File

@@ -0,0 +1,42 @@
{ config, pkgs, ... }:
let
runEnv = (pkgs.buildFHSUserEnv {
name = "7dtd-env";
targetPkgs = pkgs: (with pkgs;
[
]);
runScript = "bash startserver.sh -configfile=serverconfig.xml";
});
in
{
networking.firewall.allowedTCPPorts = [26900];
networking.firewall.allowedUDPPorts = [26900 26901 26902];
#7DaysToDie.stubbe.rocks
# services.nginx.virtualHosts."7daystodie.stubbe.rocks" = {
# enableACME = true;
# forceSSL = false;
# locations."/".proxyPass = "http://localhost:8085";
# };
systemd.services.sdtd = {
description = "7dtd";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "simple";
User = "sshuser";
Group = "users";
WorkingDirectory = "/home/sshuser/SteamCMD7_Days_to_Die_server";
ExecStart = "${runEnv}/bin/7dtd-env";
Restart = "always";
};
};
}

View File

@@ -3,6 +3,7 @@
{
imports =
[
./7dtd.nix
./sshd.nix
./teamspeak.nix
./nginx.nix

View File

@@ -2,7 +2,7 @@
{
environment.systemPackages = with pkgs; [ nextcloud ];
environment.systemPackages = with pkgs; [ nextcloud18 ];
services.nginx.virtualHosts."cloud.stubbe.rocks" = {
enableACME = true;

View File

@@ -12,9 +12,9 @@ in
9987 # ts port
];
# nixpkgs.config.packageOverrides = pkgs: {
# teamspeak_server = unstable.teamspeak_server;
# };
nixpkgs.config.packageOverrides = pkgs: {
teamspeak_server = unstable.teamspeak_server;
};
services.teamspeak3= {
enable = true;