feat(utsuho): new host

This commit is contained in:
arcnmx 2024-03-21 08:19:43 -07:00
parent c37901e4d0
commit 64354376c7
9 changed files with 167 additions and 4 deletions

View file

@ -0,0 +1,7 @@
_: {
arch = "x86_64";
type = "NixOS";
modules = [
./nixos.nix
];
}

21
systems/utsuho/lxc.json Normal file
View file

@ -0,0 +1,21 @@
{
"lxc": {
"lxc.mount.entry": [
"/rpool/shared/unifi mnt/shared/unifi none bind,optional,create=dir",
"/rpool/shared/postgresql mnt/shared/postgresql none bind,optional,create=dir",
"/dev/net/tun dev/net/tun none bind,optional,create=file"
],
"lxc.idmap": [
"u 0 100000 8000",
"g 0 100000 8000",
"u 8000 8000 128",
"g 8000 8000 256",
"u 8128 108128 57406",
"g 8256 108256 57278",
"u 65534 65534 1",
"g 65534 65534 1",
"u 65535 165535 1",
"g 65535 165535 1"
]
}
}

21
systems/utsuho/nixos.nix Normal file
View file

@ -0,0 +1,21 @@
{meta, config, ...}: {
imports = let
inherit (meta) nixos;
in [
nixos.base
nixos.reisen-ct
];
systemd.network.networks.eth0 = {
name = "eth0";
matchConfig = {
MACAddress = "BC:24:11:C4:66:A6";
Type = "ether";
};
address = ["10.1.1.38/24"];
gateway = ["10.1.1.1"];
DHCP = "no";
};
system.stateVersion = "23.11";
}