flake / flake (push) Successful in 2m30s
nix-builder (aarch64-linux) Build completed successfully
nix-builder (x86_64-linux) Build completed successfully
27 lines
610 B
Nix
27 lines
610 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./disko.nix
|
|
];
|
|
|
|
config = {
|
|
## Systemd-boot
|
|
boot.loader.systemd-boot.enable = true;
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
## Setup but don't enable tang, that depends on the device's location
|
|
custom.tang = {
|
|
networkingModule = "e1000e"; # Intel Gigabit Ethernet typically used in QNAP devices
|
|
secretFile = "/data/disk_encryption.jwe";
|
|
devices = [ "disk0-crypt" "disk1-crypt" ];
|
|
};
|
|
|
|
# Delegation
|
|
custom.impermanence.enable = true;
|
|
|
|
# QNAP LCD Display
|
|
custom.qnap-display.enable = true;
|
|
};
|
|
}
|