dev.fron.io nixrc / c5fe734
hosts(delta): use minecraft-server Tony Olagbaiye 26 days ago
5 changed file(s) with 50 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
14171417 },
14181418 "priv": {
14191419 "locked": {
1420 "narHash": "sha256-x7ut0W7wIJB7aTMnh0E78FYkZaK3R6u8BltAwohEFRw=",
1420 "narHash": "sha256-pAg4HMG63KwaEJKuL5N8fNObzeadI1gcqVXZ1sR6mKs=",
14211421 "ref": "default",
1422 "rev": "270e9e3e37b2c0ad14ed60a305edfe2db641fb24",
1423 "revCount": 16,
1422 "rev": "d3e46e789db44fc84690530c90deadacf727c98d",
1423 "revCount": 17,
14241424 "type": "hg",
14251425 "url": "ssh://bao@delta/../../srv/hg/nixpriv"
14261426 },
197197 xdg.portal.enable = true;
198198 services.searx.enable = true;
199199 services.hydra.enable = false; # disabled because holy wtf
200 services.flake-ci.enable = true;
200201 services.gitfs = {
201202 enable = true;
202203 mounts = {
211212 #};
212213 };
213214 };
214 systemd.services.flake-ci = {
215 services.minecraft-server = {
215216 enable = true;
216 description = "Flake CI";
217 path = [ pkgs.nixUnstable ];
218 serviceConfig.Type = "oneshot";
219 serviceConfig.User = config.users.users.bao.name;
220 serviceConfig.WorkingDirectory = "/srv/git/github.com/bqv/nixrc";
221 serviceConfig.ExecStart = "nix develop -c forecast master small";
222 };
223 systemd.timers.flake-ci = {
224 enable = true;
225 description = "Flake CI timer";
226 timerConfig = {
227 OnCalendar = "hourly";
228 Unit = "flake-ci.service";
229 };
230 wantedBy = [ "timers.target" ];
217 eula = true;
218 declarative = true;
219 serverProperties = {
220 motd = "Kany0 City";
221 server-port = 25565;
222 difficulty = 1;
223 gamemode = "survival";
224 max-players = 16;
225 enable-rcon = true;
226 "rcon.password" = "ihaveafirewalldude";
227 };
231228 };
232229
233230 #security.pam.loginLimits = [
135135 value = 9999;
136136 policy = "accept";
137137 };
138 minecraft = dag.entryBetween ["basic-icmp6" "basic-icmp" "ping6" "ping"] ["default"] {
139 protocol = "tcp"; field = "dport";
140 value = 25565;
141 policy = "accept";
142 };
138143 udpports = dag.entryBetween ["basic-icmp6" "basic-icmp" "ping6" "ping"] ["default"] {
139144 protocol = "udp"; field = "dport";
140145 value = lib.range 32768 65535;
0 { config, pkgs, lib, ... }:
1
2 {
3 options = {
4 services.flake-ci.enable = lib.mkEnableOption "Flake CI";
5 };
6 config = lib.mkIf config.services.flake-ci.enable {
7 systemd.services.flake-ci = {
8 enable = true;
9 description = "Flake CI";
10 path = [ pkgs.nixUnstable ];
11 serviceConfig.Type = "oneshot";
12 serviceConfig.User = config.users.users.bao.name;
13 serviceConfig.WorkingDirectory = "/srv/git/github.com/bqv/nixrc";
14 serviceConfig.ExecStart = "nix develop -c forecast master small";
15 };
16 systemd.timers.flake-ci = {
17 enable = true;
18 description = "Flake CI timer";
19 timerConfig = {
20 OnCalendar = "hourly";
21 Unit = "flake-ci.service";
22 };
23 wantedBy = [ "timers.target" ];
24 };
25 };
26 }
1010 ./networking/wireguard-mesh.nix
1111 ./networking/namespacing.nix
1212 ./wayland/swc-launch.nix
13 ./misc/attrmods.nix
14 ./misc/flake-ci.nix
1315 ./misc/headless.nix
14 ./misc/attrmods.nix
1516 ./misc/platform.nix
1617 ./misc/qemu.nix
1718 ]