feat: add backup config for orion

This commit is contained in:
Dmitriy Kholkin 2025-07-08 19:59:19 +03:00
parent 1ff00246d3
commit 1296c0e998
Signed by: AtaraxiaDev
GPG Key ID: FD266B810DF48DF2
2 changed files with 49 additions and 0 deletions

48
hosts/orion/boot.nix Normal file
View File

@ -0,0 +1,48 @@
{ pkgs, ... }:
{
services.scx.enable = true;
services.scx.scheduler = "scx_bpfland";
networking.hostId = "a9408846";
boot = {
kernelPackages = pkgs.linuxPackages_cachyos-server;
zfs.package = pkgs.zfs_cachyos;
zfs.devNodes = "/dev/disk/by-id";
loader = {
grub = {
enable = true;
device = "nodev";
copyKernels = true;
efiSupport = true;
enableCryptodisk = true;
useOSProber = false;
zfsSupport = true;
};
efi.efiSysMountPoint = "/efi";
efi.canTouchEfiVariables = true;
};
kernelModules = [
"tcp_bbr"
"veth"
"nfsv4"
];
kernelParams = [
"scsi_mod.use_blk_mq=1"
"pti=off"
"spectre_v2=off"
];
kernel.sysctl = {
"kernel.split_lock_mitigate" = 0;
"vm.overcommit_memory" = 1;
};
tmp.useTmpfs = true;
tmp.tmpfsSize = "100%";
tmp.tmpfsHugeMemoryPages = "within_size";
supportedFilesystems = [ "zfs" ];
};
}

View File

@ -11,6 +11,7 @@
./boot.nix
./disk-config.nix
./backups.nix
];
ataraxia.defaults.role = "server";