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