2021-10-13 00:47:43 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
2023-07-18 20:10:07 +02:00
|
|
|
imports = [../default.nix];
|
2021-10-13 00:47:43 +02:00
|
|
|
|
|
|
|
# boot
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
# zfs
|
|
|
|
boot.initrd.supportedFilesystems = ["zfs"]; # boot from zfs
|
|
|
|
boot.supportedFilesystems = [ "zfs" ];
|
|
|
|
#boot.kernelParams = [ "nohibernate" ];
|
|
|
|
services.zfs.autoScrub.enable = true;
|
2021-10-15 01:52:30 +02:00
|
|
|
networking.firewall.allowedTCPPorts = [ 9091 ];
|
2021-10-13 17:32:28 +02:00
|
|
|
services.zrepl = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
global.monitoring = [{
|
|
|
|
type = "prometheus";
|
|
|
|
listen = ":9091";
|
|
|
|
}];
|
|
|
|
jobs = [{
|
|
|
|
name = "fireStore";
|
|
|
|
type = "source";
|
|
|
|
serve = {
|
|
|
|
type = "stdinserver";
|
|
|
|
client_identities = [ "fireStore" ];
|
|
|
|
};
|
|
|
|
snapshotting = {
|
|
|
|
type = "periodic";
|
|
|
|
interval = "24h";
|
|
|
|
prefix = "zrepl_fireStore_";
|
|
|
|
};
|
|
|
|
send.encrypted = false;
|
|
|
|
filesystems = {
|
|
|
|
"zroot/ROOT<" = true;
|
|
|
|
"zroot/ROOT" = false;
|
|
|
|
"zroot/local<" = false;
|
|
|
|
"zroot/local/nix" = false;
|
|
|
|
"zroot/data<" = true;
|
|
|
|
"zroot/data" = false;
|
|
|
|
"zroot/home<" = true;
|
|
|
|
"zroot/home" = false;
|
|
|
|
};
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-10-13 00:47:43 +02:00
|
|
|
|
|
|
|
networking.useNetworkd = true;
|
|
|
|
networking.useDHCP = false;
|
2021-10-14 16:32:06 +02:00
|
|
|
|
2023-08-01 23:54:21 +02:00
|
|
|
services.udev.packages = with pkgs; [
|
|
|
|
android-udev-rules
|
|
|
|
];
|
|
|
|
|
2021-10-14 16:32:06 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
pciutils
|
|
|
|
wireguard-tools
|
|
|
|
];
|
2021-10-13 00:47:43 +02:00
|
|
|
}
|
|
|
|
|