Formatting
This commit is contained in:
parent
8e6eb554cc
commit
001440e32b
|
@ -11,8 +11,7 @@
|
|||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[{ device = "/dev/disk/by-label/swap"; }];
|
||||
swapDevices = [{ device = "/dev/disk/by-label/swap"; }];
|
||||
|
||||
hardware.cpu.amd.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
|
|
@ -8,7 +8,8 @@ let
|
|||
fetchTime = "*-*-* 03:00:00";
|
||||
clearTime = "Mon *-*-* 04:00:00";
|
||||
|
||||
insertResetNoteCmd = with pkgs; pkgs.writeScriptBin "insert-reset-note" ''
|
||||
insertResetNoteCmd = with pkgs;
|
||||
pkgs.writeScriptBin "insert-reset-note" ''
|
||||
#!${stdenv.shell}
|
||||
DATE=$(${coreutils}/bin/date +backup_%Y-%m-%d_%H:%M:%S%z.reset)
|
||||
touch ./''${DATE}
|
||||
|
@ -46,8 +47,7 @@ in {
|
|||
WorkingDirectory = "/srv/hnd/ccqcraft-backups";
|
||||
ExecStart =
|
||||
[ ''${pkgs.openssh}/bin/ssh "${user}@${host}" rm ${path}/*'' ];
|
||||
ExecStartPost =
|
||||
[ "${insertResetNoteCmd}/bin/insert-reset-note" ];
|
||||
ExecStartPost = [ "${insertResetNoteCmd}/bin/insert-reset-note" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -18,12 +18,15 @@ in {
|
|||
"$6$D69mzkGZAitfCQOL$oL/7SmSqGwRhZgyiOEgp6N5NkZ/NpdzggomtPFa4XB33Kb3aZMBiLWQS3VSHZhRo2y9mPgXy3mFPSvtvCzoKz/";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [ git docker-compose megatools unzip ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
docker-compose
|
||||
megatools
|
||||
unzip
|
||||
];
|
||||
|
||||
networking.firewall = {
|
||||
allowedTCPPorts = [
|
||||
ports.minecraft ports.rcon
|
||||
];
|
||||
allowedTCPPorts = [ ports.minecraft ports.rcon ];
|
||||
allowedUDPPorts = [
|
||||
# Port used for Voicechat plugin
|
||||
ports.voicechat
|
||||
|
|
Loading…
Reference in a new issue