nixos: add ooknode init config

This commit is contained in:
ooks-io 2024-10-18 01:20:59 +13:00
parent b52e3f0ada
commit 45a1dd0a9a
2 changed files with 106 additions and 0 deletions

42
hosts/ooknode/default.nix Normal file
View file

@ -0,0 +1,42 @@
{
pkgs,
lib,
...
}: let
inherit (lib) mkDefault;
in {
imports = [
./hardware-configuration.nix
];
ooknet.host = {
name = "ooksnode";
type = "vm";
role = "server";
profiles = ["console-tools"];
admin = {
name = "ooks";
shell = "fish";
homeManager = true;
};
networking = {
tailscale = {
enable = true;
client = true;
autoconnect = true;
};
};
hardware = {
cpu.type = "intel";
features = [
"ssd"
];
};
};
boot = {
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
};
system.stateVersion = mkDefault "23.11";
}