Add ZFS compatibility

This commit is contained in:
Johannes Rothe 2025-03-19 23:18:03 +01:00
parent 079d115d16
commit 3ed8879fe4

View File

@ -24,20 +24,30 @@
device = lib.mkForce "/dev/disk/by-uuid/26973b85-9c65-488b-93fb-8992ea0f8d50";
crypttabExtraOpts = [ "tpm2-device=auto" ];
};
# Required for ZFS, see https://openzfs.github.io/openzfs-docs/Getting%20Started/NixOS/index.html
supportedFilesystems = [ "zfs" ];
zfs.forceImportRoot = false;
};
networking.hostName = "dalinar";
networking.nftables.enable = true;
networking.firewall = {
enable = true;
allowedUDPPorts = [ 53 ];
allowedTCPPorts = [
config.services.grafana.settings.server.http_port
];
networking = {
hostName = "dalinar";
nftables.enable = true;
firewall = {
enable = true;
allowedUDPPorts = [ 53 ];
allowedTCPPorts = [
config.services.grafana.settings.server.http_port
];
};
# head -c4 /dev/urandom | od -A none -t x4
# Required for ZFS, see https://openzfs.github.io/openzfs-docs/Getting%20Started/NixOS/index.html
hostId = "0c2ce418";
useNetworkd = true;
};
networking.useNetworkd = true;
services.resolved = {
enable = true;
# Unbound is running
extraConfig = ''
DNSStubListener=no
'';
@ -61,6 +71,7 @@
tmux
vim
wget
zfs
];
powerManagement.powertop.enable = true;