nix/nixos/default-hardware.nix

57 lines
1.2 KiB
Nix
Raw Normal View History

2021-10-13 00:47:43 +02:00
{ config, pkgs, ... }:
{
imports = [./default.nix];
# 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-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
environment.systemPackages = with pkgs; [
pciutils
wireguard-tools
];
2021-10-13 00:47:43 +02:00
}