Compare commits

..

19 Commits

Author SHA1 Message Date
andromeda
4fa6df2cde add ipv6 to openvpn 2026-01-14 05:32:49 +01:00
andromeda
038a82e400 openvpn-init 2026-01-12 09:07:47 +01:00
mtgmonkey
e78f3510af bump blog 2025-12-26 19:02:31 +01:00
mtgmonkey
5d5fff2da9 bump site 2025-12-18 23:30:53 +01:00
mtgmonkey
52df09e7e1 remove js from personal site 2025-12-18 23:16:46 +01:00
mtgmonkey
5200880cd0 add nixwebr.ing 2025-12-18 22:48:05 +01:00
mtgmonkey
f1eeeb5eee bump blog 2025-12-18 14:39:32 +01:00
mtgmonkey
fe1cee54c3 bump blog 2025-12-18 14:16:25 +01:00
mtgmonkey
09d373a5f5 fix issue where Hauptseite served 404 2025-12-18 11:15:36 +01:00
mtgmonkey
2b841f6af5 update Hauptseite 2025-12-18 11:06:04 +01:00
mtgmonkey
a289d3a2ef update flake inputs from git.mtgmonkey.net; blog 2025-12-18 00:15:42 +01:00
mtgmonkey
b0aac26589 not forgejo, rather gitea 2025-12-14 00:02:43 +01:00
mtgmonkey
7ced4dc2fe forgejo, update 2025-12-13 22:36:14 +01:00
mtgmonkey
8e1895f1b1 idek, random commit 2025-12-11 19:40:50 +00:00
mtgmonkey
6e30000ce5 blog ig idfk 2025-08-28 05:09:43 +00:00
mtgmonkey
7cef5d8798 bump best-blog 2025-06-19 09:53:24 -04:00
mtgmonkey
3f5ad1a3df change from Andromeda/blog to Andromeda/best-blog 2025-06-19 06:27:03 -04:00
mtgmonkey
39b987332b fix merge conflicts? 2025-06-18 14:04:49 -04:00
mtgmonkey
3c96c9818c update lockfile, gitiffy 2025-06-18 13:32:49 -04:00
10 changed files with 523 additions and 231 deletions

View File

@@ -12,8 +12,8 @@
networking.domain = "";
networking.firewall = {
enable = true;
allowedTCPPorts = [80 443 9418];
allowedUDPPorts = [80 443 9418];
allowedTCPPorts = [80 443 9418 25565];
allowedUDPPorts = [80 443 9418 25565];
};
boot.loader.grub.devices = ["nodev"];

387
flake.lock generated Executable file → Normal file
View File

@@ -1,57 +1,91 @@
{
"nodes": {
"advisory-db": {
"flake": false,
"locked": {
"lastModified": 1747937073,
"narHash": "sha256-52H8P6jAHEwRvg7rXr4Z7h1KHZivO8T1Z9tN6R0SWJg=",
"owner": "rustsec",
"repo": "advisory-db",
"rev": "bccf313a98c034573ac4170e6271749113343d97",
"type": "github"
},
"original": {
"owner": "rustsec",
"repo": "advisory-db",
"type": "github"
}
},
"crane": {
"locked": {
"lastModified": 1748047550,
"narHash": "sha256-t0qLLqb4C1rdtiY8IFRH5KIapTY/n3Lqt57AmxEv9mk=",
"owner": "ipetkov",
"repo": "crane",
"rev": "b718a78696060df6280196a6f992d04c87a16aef",
"type": "github"
},
"original": {
"owner": "ipetkov",
"repo": "crane",
"type": "github"
}
},
"elmskell-blog": {
"andromeda-nook": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1749494299,
"narHash": "sha256-I6/TSz5ciJTEZNFCyrCXWRYqBkNIh3fZy67UErIw3fk=",
"lastModified": 1766772071,
"narHash": "sha256-PuzrOsLDIWFmmxf/qzCpvZuXjw89TrKXODZ8ORl99rk=",
"ref": "refs/heads/master",
"rev": "596af4a7318d60816ee995526d571643e21744b5",
"revCount": 11,
"rev": "c86d0a733a30e92e835a1a59b9e0f8e629325ad7",
"revCount": 7,
"type": "git",
"url": "file:///var/lib/git-server/blog.git"
"url": "https://git.mtgmonkey.net/Andromeda/nook"
},
"original": {
"type": "git",
"url": "file:///var/lib/git-server/blog.git"
"url": "https://git.mtgmonkey.net/Andromeda/nook"
}
},
"auto-openvpn": {
"locked": {
"lastModified": 1756224566,
"narHash": "sha256-SW/LESixI4cmSCR8uk3ZtLJpv4G4qkzDlP2EAUcp9to=",
"owner": "fin444",
"repo": "auto-openvpn.nix",
"rev": "cbbfdc0b203633f32511d1060c13e4f64c2f0bc5",
"type": "github"
},
"original": {
"owner": "fin444",
"repo": "auto-openvpn.nix",
"type": "github"
}
},
"blobs": {
"flake": false,
"locked": {
"lastModified": 1604995301,
"narHash": "sha256-wcLzgLec6SGJA8fx1OEN1yV/Py5b+U5iyYpksUY/yLw=",
"owner": "simple-nixos-mailserver",
"repo": "blobs",
"rev": "2cccdf1ca48316f2cfd1c9a0017e8de5a7156265",
"type": "gitlab"
},
"original": {
"owner": "simple-nixos-mailserver",
"repo": "blobs",
"type": "gitlab"
}
},
"blog": {
"inputs": {
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1766065119,
"narHash": "sha256-yW5sym1Yjj0u9QhLzfWWDpD50lRmUCpxL9ss9nyONgU=",
"ref": "refs/heads/master",
"rev": "dd5a2fbd3e276ebdd6f6a9fcc380eb56abba2a26",
"revCount": 60,
"type": "git",
"url": "https://git.mtgmonkey.net/Andromeda/blog"
},
"original": {
"type": "git",
"url": "https://git.mtgmonkey.net/Andromeda/blog"
}
},
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1747046372,
"narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems_2"
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
@@ -67,25 +101,57 @@
"type": "github"
}
},
"helix": {
"flake": false,
"git-hooks": {
"inputs": {
"flake-compat": [
"simple-nixos-mailserver",
"flake-compat"
],
"gitignore": "gitignore",
"nixpkgs": [
"simple-nixos-mailserver",
"nixpkgs"
]
},
"locked": {
"lastModified": 1727654850,
"narHash": "sha256-du6Vy5Yxy6aZFP7ad5guz5GOD/8uMY+Pgse1ZM+K2Jo=",
"owner": "JordanForks",
"repo": "helix",
"rev": "1603715cc91bf6fdffb4aedfb5b76fb69fd10e28",
"lastModified": 1758108966,
"narHash": "sha256-ytw7ROXaWZ7OfwHrQ9xvjpUWeGVm86pwnEd1QhzawIo=",
"owner": "cachix",
"repo": "git-hooks.nix",
"rev": "54df955a695a84cd47d4a43e08e1feaf90b1fd9b",
"type": "github"
},
"original": {
"owner": "JordanForks",
"repo": "helix",
"owner": "cachix",
"repo": "git-hooks.nix",
"type": "github"
}
},
"gitignore": {
"inputs": {
"nixpkgs": [
"simple-nixos-mailserver",
"git-hooks",
"nixpkgs"
]
},
"locked": {
"lastModified": 1709087332,
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
"owner": "hercules-ci",
"repo": "gitignore.nix",
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "gitignore.nix",
"type": "github"
}
},
"jank-client": {
"inputs": {
"nixpkgs": "nixpkgs_2"
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1749606892,
@@ -94,16 +160,16 @@
"rev": "0e59a339c813bcf1e9969344d8b50ed380231552",
"revCount": 1179,
"type": "git",
"url": "file:///var/lib/git-server/jank-client-fork.git"
"url": "https://git.mtgmonkey.net/Andromeda/jank-client-fork"
},
"original": {
"type": "git",
"url": "file:///var/lib/git-server/jank-client-fork.git"
"url": "https://git.mtgmonkey.net/Andromeda/jank-client-fork"
}
},
"math-project": {
"inputs": {
"nixpkgs": "nixpkgs_3"
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1750258769,
@@ -112,35 +178,45 @@
"rev": "fa0e8ca47dd5341d24d8aae90a0bc28a689c3d46",
"revCount": 6,
"type": "git",
"url": "file:///var/lib/git-server/math-project.git"
"url": "https://git.mtgmonkey.net/Andromeda/math-project"
},
"original": {
"type": "git",
"url": "file:///var/lib/git-server/math-project.git"
}
},
"nix-github-actions": {
"inputs": {
"nixpkgs": [
"rgit",
"nixpkgs"
]
},
"locked": {
"lastModified": 1737420293,
"narHash": "sha256-F1G5ifvqTpJq7fdkT34e/Jy9VCyzd5XfJ9TO8fHhJWE=",
"owner": "nix-community",
"repo": "nix-github-actions",
"rev": "f4158fa080ef4503c8f4c820967d946c2af31ec9",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-github-actions",
"type": "github"
"url": "https://git.mtgmonkey.net/Andromeda/math-project"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1765934234,
"narHash": "sha256-pJjWUzNnjbIAMIc5gRFUuKCDQ9S1cuh3b2hKgA7Mc4A=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "af84f9d270d404c17699522fab95bbf928a2d92f",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixpkgs-unstable",
"type": "indirect"
}
},
"nixpkgs-25_05": {
"locked": {
"lastModified": 1759143472,
"narHash": "sha256-TvODmeR2W7yX/JmOCmP+lAFNkTT7hAxYcF3Kz8SZV3w=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5ed4e25ab58fd4c028b59d5611e14ea64de51d23",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-25.05",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1749143949,
"narHash": "sha256-QuUtALJpVrPnPeozlUG/y+oIMSLdptHxb3GK6cpSVhA=",
@@ -155,7 +231,7 @@
"type": "indirect"
}
},
"nixpkgs_2": {
"nixpkgs_3": {
"locked": {
"lastModified": 1749285348,
"narHash": "sha256-frdhQvPbmDYaScPFiCnfdh3B/Vh81Uuoo0w5TkWmmjU=",
@@ -170,7 +246,7 @@
"type": "indirect"
}
},
"nixpkgs_3": {
"nixpkgs_4": {
"locked": {
"lastModified": 1748889542,
"narHash": "sha256-Hb4iMhIbjX45GcrgOp3b8xnyli+ysRPqAgZ/LZgyT5k=",
@@ -185,13 +261,13 @@
"type": "indirect"
}
},
"nixpkgs_4": {
"nixpkgs_5": {
"locked": {
"lastModified": 1749794982,
"narHash": "sha256-Kh9K4taXbVuaLC0IL+9HcfvxsSUx8dPB5s5weJcc9pc=",
"lastModified": 1765472234,
"narHash": "sha256-9VvC20PJPsleGMewwcWYKGzDIyjckEz8uWmT0vCDYK0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ee930f9755f58096ac6e8ca94a1887e0534e2d81",
"rev": "2fbfb1d73d239d2402a8fe03963e37aab15abe8b",
"type": "github"
},
"original": {
@@ -200,7 +276,7 @@
"type": "indirect"
}
},
"nixpkgs_5": {
"nixpkgs_6": {
"locked": {
"lastModified": 1714253743,
"narHash": "sha256-mdTQw2XlariysyScCv2tTE45QSU9v/ezLcHJ22f0Nxc=",
@@ -216,44 +292,29 @@
"type": "github"
}
},
"nixpkgs_6": {
"locked": {
"lastModified": 1748159586,
"narHash": "sha256-xeCMAhKjhDjVFsfJcftv+CWcExYo+X8IBUW8L947ww4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "7382d075365a977c4a9c8aa4c5e4abed15f00ee1",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_7": {
"locked": {
"lastModified": 1745377448,
"narHash": "sha256-jhZDfXVKdD7TSEGgzFJQvEEZ2K65UMiqW5YJ2aIqxMA=",
"owner": "nixos",
"lastModified": 1759036355,
"narHash": "sha256-0m27AKv6ka+q270dw48KflE0LwQYrO7Fm4/2//KCVWg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "507b63021ada5fee621b6ca371c4fca9ca46f52c",
"rev": "e9f00bd893984bc8ce46c895c3bf7cac95331127",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_8": {
"locked": {
"lastModified": 1746141548,
"narHash": "sha256-IgBWhX7A2oJmZFIrpRuMnw5RAufVnfvOgHWgIdds+hc=",
"lastModified": 1760524057,
"narHash": "sha256-EVAqOteLBFmd7pKkb0+FIUyzTF61VKi7YmvP1tw4nEw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f02fddb8acef29a8b32f10a335d44828d7825b78",
"rev": "544961dfcce86422ba200ed9a0b00dd4b1486ec5",
"type": "github"
},
"original": {
@@ -265,7 +326,7 @@
},
"noshell": {
"inputs": {
"nixpkgs": "nixpkgs_5"
"nixpkgs": "nixpkgs_6"
},
"locked": {
"lastModified": 1717396029,
@@ -281,52 +342,53 @@
"type": "github"
}
},
"rgit": {
"inputs": {
"advisory-db": "advisory-db",
"crane": "crane",
"helix": "helix",
"nix-github-actions": "nix-github-actions",
"nixpkgs": "nixpkgs_6",
"treefmt-nix": "treefmt-nix",
"utils": "utils"
},
"locked": {
"lastModified": 1748169485,
"narHash": "sha256-JxPNDrvpqgpz6MQp6LKT3cbK4bl7/E9+eST1cEhl/jA=",
"owner": "w4",
"repo": "rgit",
"rev": "9224aa1a006acb6af6da8cfbee82278612bd05d0",
"type": "github"
},
"original": {
"owner": "w4",
"repo": "rgit",
"type": "github"
}
},
"root": {
"inputs": {
"elmskell-blog": "elmskell-blog",
"andromeda-nook": "andromeda-nook",
"auto-openvpn": "auto-openvpn",
"blog": "blog",
"jank-client": "jank-client",
"math-project": "math-project",
"nixpkgs": "nixpkgs_4",
"nixpkgs": "nixpkgs_5",
"noshell": "noshell",
"rgit": "rgit",
"simple-nixos-mailserver": "simple-nixos-mailserver",
"spacebar-server": "spacebar-server"
}
},
"simple-nixos-mailserver": {
"inputs": {
"blobs": "blobs",
"flake-compat": "flake-compat",
"git-hooks": "git-hooks",
"nixpkgs": "nixpkgs_7",
"nixpkgs-25_05": "nixpkgs-25_05"
},
"locked": {
"lastModified": 1759489698,
"narHash": "sha256-2lT2i5ha23I2vrolEaBaAS/63ChgZPh181Awt6q1bDY=",
"owner": "simple-nixos-mailserver",
"repo": "nixos-mailserver",
"rev": "6005d88bed7a5418f9772b4058a73cd0fd1e69a1",
"type": "gitlab"
},
"original": {
"owner": "simple-nixos-mailserver",
"ref": "master",
"repo": "nixos-mailserver",
"type": "gitlab"
}
},
"spacebar-server": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs_8"
},
"locked": {
"lastModified": 1748414795,
"narHash": "sha256-nClmjajuaMVV02Rn7xqZWy5pwLmGw7/MF3RDGkYDuYQ=",
"lastModified": 1761916341,
"narHash": "sha256-NalvODcjJq3MutPu5nyiXqnYmz2m8yiQ6dJ8s/i+9aA=",
"owner": "spacebarchat",
"repo": "server",
"rev": "f03c6209a42ae3e922bdb86954de04f1ae6daaa8",
"rev": "c8fab8e8ff4c689b025c8b140135e9ae406229d9",
"type": "github"
},
"original": {
@@ -349,57 +411,6 @@
"repo": "default",
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"treefmt-nix": {
"inputs": {
"nixpkgs": "nixpkgs_7"
},
"locked": {
"lastModified": 1747912973,
"narHash": "sha256-XgxghfND8TDypxsMTPU2GQdtBEsHTEc3qWE6RVEk8O0=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "020cb423808365fa3f10ff4cb8c0a25df35065a3",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
},
"utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
}
},
"root": "root",

232
flake.lock.bak Normal file
View File

@@ -0,0 +1,232 @@
{
"nodes": {
"blog": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1754950153,
"narHash": "sha256-puOP2m2ixs9nzId8CnxHvteU/iMLRJtveigb2njjrPE=",
"ref": "refs/heads/master",
"rev": "ea162211d17489133552c12cee9ffae2b4c11e5e",
"revCount": 30,
"type": "git",
"url": "https://git.mtgmonkey.net/Andromeda/blog.git"
},
"original": {
"type": "git",
"url": "https://git.mtgmonkey.net/Andromeda/blog.git"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"jank-client": {
"inputs": {
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1749606892,
"narHash": "sha256-ZGUUWNORko3QFy9p/2mc4voJ65/11Joy6Au79+TwxPw=",
"ref": "refs/heads/main",
"rev": "0e59a339c813bcf1e9969344d8b50ed380231552",
"revCount": 1179,
"type": "git",
"url": "https://git.mtgmonkey.net/Andromeda/jank-client-fork.git"
},
"original": {
"type": "git",
"url": "https://git.mtgmonkey.net/Andromeda/jank-client-fork.git"
}
},
"math-project": {
"inputs": {
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1750258769,
"narHash": "sha256-BazJgo04yFqFfp2AA0Tfba+nBAeaNddQJBdLghVJskk=",
"ref": "refs/heads/master",
"rev": "fa0e8ca47dd5341d24d8aae90a0bc28a689c3d46",
"revCount": 6,
"type": "git",
"url": "https://git.mtgmonkey.net/Andromeda/math-project.git"
},
"original": {
"type": "git",
"url": "https://git.mtgmonkey.net/Andromeda/math-project.git"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1749143949,
"narHash": "sha256-QuUtALJpVrPnPeozlUG/y+oIMSLdptHxb3GK6cpSVhA=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d3d2d80a2191a73d1e86456a751b83aa13085d7d",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1749285348,
"narHash": "sha256-frdhQvPbmDYaScPFiCnfdh3B/Vh81Uuoo0w5TkWmmjU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "3e3afe5174c561dee0df6f2c2b2236990146329f",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1748889542,
"narHash": "sha256-Hb4iMhIbjX45GcrgOp3b8xnyli+ysRPqAgZ/LZgyT5k=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "10d7f8d34e5eb9c0f9a0485186c1ca691d2c5922",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-25.05",
"type": "indirect"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1754214453,
"narHash": "sha256-Q/I2xJn/j1wpkGhWkQnm20nShYnG7TI99foDBpXm1SY=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "5b09dc45f24cf32316283e62aec81ffee3c3e376",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
}
},
"nixpkgs_5": {
"locked": {
"lastModified": 1714253743,
"narHash": "sha256-mdTQw2XlariysyScCv2tTE45QSU9v/ezLcHJ22f0Nxc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "58a1abdbae3217ca6b702f03d3b35125d88a2994",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_6": {
"locked": {
"lastModified": 1746141548,
"narHash": "sha256-IgBWhX7A2oJmZFIrpRuMnw5RAufVnfvOgHWgIdds+hc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f02fddb8acef29a8b32f10a335d44828d7825b78",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"noshell": {
"inputs": {
"nixpkgs": "nixpkgs_5"
},
"locked": {
"lastModified": 1717396029,
"narHash": "sha256-NPIhvnTYkJZqTY+aabbZ6CAaMAgG6IISvh7GZo1MTfQ=",
"owner": "viperML",
"repo": "noshell",
"rev": "4d194d838a50ea106cd0e47c024e47afc154ab42",
"type": "github"
},
"original": {
"owner": "viperML",
"repo": "noshell",
"type": "github"
}
},
"root": {
"inputs": {
"blog": "blog",
"jank-client": "jank-client",
"math-project": "math-project",
"nixpkgs": "nixpkgs_4",
"noshell": "noshell",
"spacebar-server": "spacebar-server"
}
},
"spacebar-server": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs_6"
},
"locked": {
"lastModified": 1748414795,
"narHash": "sha256-nClmjajuaMVV02Rn7xqZWy5pwLmGw7/MF3RDGkYDuYQ=",
"owner": "spacebarchat",
"repo": "server",
"rev": "f03c6209a42ae3e922bdb86954de04f1ae6daaa8",
"type": "github"
},
"original": {
"owner": "spacebarchat",
"repo": "server",
"type": "github"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

View File

@@ -4,22 +4,25 @@
nixpkgs.url = "nixpkgs/nixos-unstable";
noshell.url = "github:viperML/noshell";
spacebar-server.url = "github:spacebarchat/server";
rgit.url = "github:w4/rgit";
elmskell-blog.url = "git+file:///var/lib/git-server/blog.git";
jank-client.url = "git+file:///var/lib/git-server/jank-client-fork.git";
math-project.url = "git+file:///var/lib/git-server/math-project.git";
simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/master";
auto-openvpn.url = "github:fin444/auto-openvpn.nix";
andromeda-nook.url = "git+https://git.mtgmonkey.net/Andromeda/nook";
blog.url = "git+https://git.mtgmonkey.net/Andromeda/blog";
jank-client.url = "git+https://git.mtgmonkey.net/Andromeda/jank-client-fork";
math-project.url = "git+https://git.mtgmonkey.net/Andromeda/math-project";
};
outputs = {
self,
nixpkgs,
noshell,
elmskell-blog,
spacebar-server,
simple-nixos-mailserver,
auto-openvpn,
andromeda-nook,
jank-client,
math-project,
rgit,
blog,
...
}: let
system = "x86_64-linux";
@@ -29,33 +32,37 @@
specialArgs = {
inherit self;
inherit system;
inherit elmskell-blog;
inherit spacebar-server;
inherit simple-nixos-mailserver;
inherit auto-openvpn;
inherit math-project;
inherit rgit;
inherit andromeda-nook;
inherit blog;
ssh-pub-keys = import ./ssh-pub-keys.nix;
};
modules = [
./services/ferron.nix
./configuration.nix
./services/elmskell.nix
./services/blog.nix
# ./services/elmskell.nix
./services/ferron.nix
./services/gitea.nix
# ./services/mailserver.nix
# ./services/minecraft-server.nix
# ./services/rgit.nix
./services/math-project.nix
./services/spacebar.nix
./services/translate.nix
./services/vpn.nix
jank-client.nixosModules.x86_64-linux.default
./services/spacebar.nix
# ./services/rgit.nix
./services/gitea.nix
./services/translate.nix
noshell.nixosModules.default
{programs.noshell.enable = true;}
math-project.nixosModules.x86_64-linux.default
{services.math-project.enable = true;}
./services/math-project.nix
./configuration.nix
noshell.nixosModules.default
simple-nixos-mailserver.nixosModule
{
programs.noshell.enable = true;
services.math-project.enable = true;
}
];
};
};

View File

@@ -1,5 +1,5 @@
{
elmskell-blog,
blog,
lib,
pkgs,
...
@@ -18,13 +18,6 @@
}
];
};
ferron-conf-nix = {
global = {
port = 8181;
secure = false;
wwwroot = "${elmskell-blog.packages.x86_64-linux.default}/wwwroot";
};
};
in {
services.anubis = {
instances.blog = {
@@ -36,7 +29,7 @@ in {
METRICS_BIND = "[::1]:9182";
METRICS_BIND_NETWORK = "tcp";
POLICY_FNAME = "/etc/anubis/blog.botPolicies.yaml";
TARGET = "http://localhost:8181";
TARGET = "http://localhost:9345";
};
};
};
@@ -44,10 +37,10 @@ in {
source = (pkgs.formats.yaml {}).generate "" botPolicies-nix;
mode = "644";
};
systemd.services.blog-ferron = {
systemd.services.blog = {
serviceConfig = {
Type = "simple";
ExecStart = "${lib.getExe pkgs.ferron} --config=/etc/blog.ferron.yaml";
ExecStart = "${lib.getExe pkgs.http-server} ${blog.packages.x86_64-linux.default}/wwwroot -p 9345";
RemainAfterExit = true;
Restart = "always";
RestartMaxDelaySec = "1m";
@@ -56,8 +49,4 @@ in {
};
wantedBy = ["multi-user.target"];
};
environment.etc."blog.ferron.yaml" = {
source = (pkgs.formats.yaml {}).generate "" ferron-conf-nix;
mode = "644";
};
}

View File

@@ -1,6 +1,8 @@
{
lib,
pkgs,
system,
andromeda-nook,
...
}: let
ferron-conf-nix = {
@@ -15,7 +17,7 @@
hosts = [
{
domain = "mtgmonkey.net";
proxyTo = "http://localhost:9080/";
wwwroot = "${andromeda-nook.packages.${system}.default}/wwwroot";
}
{
domain = "blog.mtgmonkey.net";
@@ -41,6 +43,10 @@
domain = "translate.mtgmonkey.net";
proxyTo = "http://localhost:9109/";
}
{
domain = "mail.mtgmonkey.net";
proxyTo = "http://localhost:6942/";
}
];
};
in {

View File

@@ -6,7 +6,7 @@
systemd.services.gitea = {
serviceConfig = {
Type = "simple";
ExecStart = "${lib.getExe pkgs.forgejo} -c /etc/gitea/config.ini";
ExecStart = "${lib.getExe pkgs.gitea} -c /etc/gitea/config.ini";
RemainAfterExit = true;
Restart = "always";
RestartMaxDelaySec = "1m";

27
services/mailserver.nix Normal file
View File

@@ -0,0 +1,27 @@
{config, ...}: {
mailserver = {
enable = true;
stateVersion = 3;
fqdn = "mail.mtgmonkey.net";
domains = ["mtgmonkey.net"];
loginAccounts = {
"example@mtgmonkey.net" = {
hashedPasswordFile = "/home/mtgmonkey/secrets/example_passhash";
aliases = ["postmaster@mtgmonkey.net"];
};
};
certificateScheme = "manual";
};
services.roundcube = {
enable = true;
hostName = "localhost:6942";
extraConfig = ''
$config['smtp_server'] = tls://${config.mailserver.fqdn}";
$config['smtp_user'] = "%u";
$config['stmp_pass'] = "%p";
'';
};
}

View File

@@ -0,0 +1,8 @@
{
nixpkgs.config.allowUnfree = true;
services.minecraft-server = {
enable = true;
eula = true;
jvmOpts = "-Xms512M -Xmx1024M";
};
}

12
services/vpn.nix Normal file
View File

@@ -0,0 +1,12 @@
{auto-openvpn, ...}: {
imports = [
auto-openvpn.nixosModules.auto-openvpn
];
services.auto-openvpn = {
enable = true;
enableIPv6 = true;
interface = "ens18";
address = "173.249.5.230";
users = ["handy" "lenovo"];
};
}