55 lines
985 B
Nix
55 lines
985 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./disko.nix
|
|
|
|
# Modules
|
|
../../modules/virtualization
|
|
../../modules/core
|
|
../../modules/networking
|
|
../../modules/development
|
|
];
|
|
|
|
boot = {
|
|
supportedFilesystems = [ "zfs" ];
|
|
loader = {
|
|
initrd = {
|
|
systemd.enable = true;
|
|
|
|
luks.devices."cryptroot" = {
|
|
device = "/dev/disk/by-partlabel/luks";
|
|
allowDiscards = true;
|
|
};
|
|
|
|
initrd.availableKernelModules = [
|
|
"tpm_tis"
|
|
"tpm_crb"
|
|
];
|
|
};
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
kernelModules = [
|
|
"tpm_tis"
|
|
"tpm_crb"
|
|
];
|
|
};
|
|
|
|
security = {
|
|
tpm2.enable = true;
|
|
sudo.wheelNeedsPassword = false;
|
|
};
|
|
|
|
services.zfs.autoScrub.enable = true;
|
|
services.zfs.autoSnapshot.enable = true;
|
|
|
|
networking.hostId = "8425e349";
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
tpm2-tools
|
|
];
|
|
|
|
system.stateVersion = "26.05";
|
|
}
|