Compare commits
No commits in common. "598737859c3473fb72e52a303ba72a0438e3ff0b" and "89931de313b72ff38235ea8f82d261cf11cf5a5c" have entirely different histories.
598737859c
...
89931de313
3 changed files with 8 additions and 26 deletions
|
|
@ -7,11 +7,6 @@
|
||||||
- `thinkpad` - Thinkpad T480, i5 8350U, 16GB RAM, 256GB NVME
|
- `thinkpad` - Thinkpad T480, i5 8350U, 16GB RAM, 256GB NVME
|
||||||
- `homelab` - i7 8700T, 32GB RAM, 512GB NVME, 1TB 2.5" SATA
|
- `homelab` - i7 8700T, 32GB RAM, 512GB NVME, 1TB 2.5" SATA
|
||||||
|
|
||||||
## Todo
|
|
||||||
- Automatic backups to external drives.
|
|
||||||
- Better documentation and code structure.
|
|
||||||
- Use NixOS modules system.
|
|
||||||
|
|
||||||
## Credits
|
## Credits
|
||||||
- [orangc's flake](https://git.orangc.net/c/dots)
|
- [orangc's flake](https://git.orangc.net/c/dots)
|
||||||
- [vimjoyer's tutorials](https://www.youtube.com/@vimjoyer)
|
- [vimjoyer's tutorials](https://www.youtube.com/@vimjoyer)
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
url = "http://localhost:5080"; #"https://git.proxy.${homelab.domain}";
|
url = "http://localhost:5080"; #"https://git.proxy.${homelab.domain}";
|
||||||
tokenFile = "/mnt/data/apps/forgejo/token-runner";
|
tokenFile = "/mnt/data/apps/forgejo/token-runner";
|
||||||
labels = [ "self-hosted:host" ];
|
labels = [ "self-hosted:host" ];
|
||||||
hostPackages = with pkgs; [ bash coreutils git nix openssh bun ];
|
hostPackages = with pkgs; [ bash coreutils git nix openssh nodejs ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
{ inputs, lib, pkgs, ... }: let
|
{ inputs, lib, pkgs, ... }: let
|
||||||
production = true;
|
|
||||||
ram-allocation-mb = 12288;
|
ram-allocation-mb = 12288;
|
||||||
rcon-pass = "howdy";
|
rcon-pass = "howdy";
|
||||||
modpack = let
|
modpack = let
|
||||||
commit = "8523f89493ace13087eb68cd9fe3b5eb4f669440";
|
commit = "8523f89493ace13087eb68cd9fe3b5eb4f669440";
|
||||||
path = if production then "commit/${commit}" else "branch/main";
|
|
||||||
in pkgs.fetchPackwizModpack {
|
in pkgs.fetchPackwizModpack {
|
||||||
packHash = "sha256-xB9Oc/aneogSQ9r7L42vyVM6xwq+QkoTaXYNuUzeo6M=";
|
packHash = "sha256-xB9Oc/aneogSQ9r7L42vyVM6xwq+QkoTaXYNuUzeo6M=";
|
||||||
url = "https://git.satr14.my.id/satr14/server-modpack/raw/${path}/pack.toml";
|
url = "https://git.satr14.my.id/satr14/server-modpack/raw/commit/${commit}/pack.toml";
|
||||||
};
|
};
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
|
@ -34,25 +32,14 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
restart = "always";
|
restart = "always";
|
||||||
enableReload = production;
|
enableReload = false;
|
||||||
# extraReload = ''
|
|
||||||
# function rcon() {
|
|
||||||
# ${pkgs.rcon-cli}/bin/rcon-cli -p ${rcon-pass} $@
|
|
||||||
# }
|
|
||||||
|
|
||||||
# rcon "gamerule locator_bar false"
|
operators."satr14" = {
|
||||||
# rcon "gamerule mob_explosion_drop_decay false"
|
|
||||||
# rcon "gamerule reduced_debug_info false"
|
|
||||||
# rcon "gamerule global_sound_events false"
|
|
||||||
# '';
|
|
||||||
|
|
||||||
operators = lib.mkIf (!production) {
|
|
||||||
"satr14" = {
|
|
||||||
uuid = "54441a30-fe73-46e7-adca-c476bd4fc6d2";
|
uuid = "54441a30-fe73-46e7-adca-c476bd4fc6d2";
|
||||||
bypassesPlayerLimit = true;
|
bypassesPlayerLimit = true;
|
||||||
level = 4;
|
level = 4;
|
||||||
};
|
};
|
||||||
};
|
# ^^ DISABLE ON PROD
|
||||||
|
|
||||||
serverProperties = {
|
serverProperties = {
|
||||||
# server-ip = "localhost";
|
# server-ip = "localhost";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue