feat: add backup config for orion
This commit is contained in:
parent
1ff00246d3
commit
1296c0e998
48
hosts/orion/boot.nix
Normal file
48
hosts/orion/boot.nix
Normal 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" ];
|
||||
};
|
||||
}
|
@ -11,6 +11,7 @@
|
||||
|
||||
./boot.nix
|
||||
./disk-config.nix
|
||||
./backups.nix
|
||||
];
|
||||
|
||||
ataraxia.defaults.role = "server";
|
||||
|
Loading…
x
Reference in New Issue
Block a user