mirror of
https://github.com/blahai/nyx.git
synced 2025-06-09 04:13:02 -04:00
a lot of shit also baibai home manager, hello hjem
This commit is contained in:
parent
bc82345beb
commit
2c8f822b83
37 changed files with 1277 additions and 168 deletions
|
@ -1,10 +1,9 @@
|
|||
{
|
||||
self,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
# inherit (self) lib;
|
||||
inherit (self) lib;
|
||||
inherit (lib.lists) optionals;
|
||||
|
||||
profilesPath = ../modules/profiles;
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
./networking.nix
|
||||
./overrides.nix
|
||||
./services.nix
|
||||
./users.nix
|
||||
];
|
||||
|
||||
olympus = {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1 +1,6 @@
|
|||
{}
|
||||
{
|
||||
olympus.services = {
|
||||
caddy.enable = true;
|
||||
forgejo.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
5
systems/theia/users.nix
Normal file
5
systems/theia/users.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
olympus.system = {
|
||||
mainUser = "pingu";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue