agate: added
This commit is contained in:
parent
37c29252a3
commit
6f1ae9dcba
10 changed files with 284 additions and 56 deletions
67
machines/agate/default.nix
Normal file
67
machines/agate/default.nix
Normal file
|
@ -0,0 +1,67 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./disk-config.nix
|
||||
./services
|
||||
];
|
||||
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
efiSupport = true;
|
||||
efiInstallAsRemovable = true;
|
||||
devices = lib.mkForce [ ];
|
||||
mirroredBoots = [
|
||||
{
|
||||
devices = [
|
||||
"/dev/disk/by-partlabel/disk-ssd1-system_p1"
|
||||
];
|
||||
path = "/boot0";
|
||||
}
|
||||
{
|
||||
devices = [
|
||||
"/dev/disk/by-partlabel/disk-ssd2-system_p2"
|
||||
];
|
||||
path = "/boot1";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
users.users.root.hashedPassword = "$y$j9T$vgLUF3/R0RJpDu7e22fSW.$CPomHsuRziERtNGUnnMZZDQG.Vj7LCe5PUOSbvkwSV3";
|
||||
|
||||
commonSettings = {
|
||||
auth.enable = true;
|
||||
nix = {
|
||||
enable = true;
|
||||
};
|
||||
comin.enable = true;
|
||||
network.localdns.enable = true;
|
||||
};
|
||||
system.stateVersion = "25.05";
|
||||
time.timeZone = "Asia/Shanghai";
|
||||
|
||||
nix.settings = {
|
||||
max-jobs = 8;
|
||||
cores = 16;
|
||||
};
|
||||
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
permitCertUid = "caddy";
|
||||
};
|
||||
|
||||
custom.prometheus.exporters = {
|
||||
enable = true;
|
||||
blackbox = {
|
||||
enable = true;
|
||||
};
|
||||
node = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
custom.monitoring = {
|
||||
promtail.enable = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue