feat(katbox): add machine

This commit is contained in:
Kat Inskip 2024-02-22 14:46:08 -08:00
parent 5c73439cad
commit 0baa66c520
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
4 changed files with 110 additions and 0 deletions

View file

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

7
systems/katbox/lxc.json Normal file
View file

@ -0,0 +1,7 @@
{
"lxc": {
"lxc.mount.entry": [
"/dev/net/tun dev/net/tun none bind,optional,create=file"
]
}
}

26
systems/katbox/nixos.nix Normal file
View file

@ -0,0 +1,26 @@
{
meta,
...
}: {
imports = let
inherit (meta) nixos;
in [
#nixos.sops
nixos.base
nixos.reisen-ct
nixos.tailscale
];
#sops.defaultSopsFile = ./secrets.yaml;
systemd.network.networks.eth0 = {
name = "eth0";
matchConfig = {
MACAddress = "BC:24:11:34:F4:AB";
Type = "ether";
};
DHCP = "yes";
};
system.stateVersion = "23.11";
}