a lot of shit also baibai home manager, hello hjem

This commit is contained in:
blahai 2025-01-26 20:11:01 +02:00
parent bc82345beb
commit 2c8f822b83
No known key found for this signature in database
37 changed files with 1277 additions and 168 deletions

View file

@ -1,10 +1,9 @@
{
self,
inputs,
lib,
...
}: let
# inherit (self) lib;
inherit (self) lib;
inherit (lib.lists) optionals;
profilesPath = ../modules/profiles;

View file

@ -4,6 +4,7 @@
./networking.nix
./overrides.nix
./services.nix
./users.nix
];
olympus = {

View file

@ -1 +1,68 @@
{}
{lib, ...}: let
inherit (lib.modules) mkForce;
in {
networking = {
enableIPv6 = true;
firewall = {
allowedTCPPorts = [
80 # HTTP
443 # HTTPS
25565 # minecraft
25566 # minecraft
25567 # minecraft
];
allowedUDPPorts = [
25565 # minecraft
25566 # minecraft
25567 # minecraft
];
};
hostName = "theia";
nameservers = ["1.1.1.1" "8.8.8.8" "9.9.9.9"];
domain = "blahai.gay";
useDHCP = mkForce false;
defaultGateway = {
address = "178.63.247.183";
interface = "ens3";
};
defaultGateway6 = {
address = " 2a01:4f8:2201:f900:2::2";
interface = "ens3";
};
interfaces = {
ens3 = {
ipv4 = {
addresses = [
{
address = "178.63.118.252";
prefixLength = 32;
}
];
routes = [
{
address = "178.63.247.183";
prefixLength = 32;
}
];
};
ipv6 = {
addresses = [
{
address = "2a01:4f8:2201:f912::a";
prefixLength = 64;
}
];
routes = [
{
address = "fe80::1";
prefixLength = 128;
}
];
};
};
};
};
}

View file

@ -1 +1,6 @@
{}
{
olympus.services = {
caddy.enable = true;
forgejo.enable = true;
};
}

5
systems/theia/users.nix Normal file
View file

@ -0,0 +1,5 @@
{
olympus.system = {
mainUser = "pingu";
};
}