2021-02-01 17:33:29 +01:00
|
|
|
{ config, lib, pkgs, modulesPath, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
(modulesPath + "/profiles/qemu-guest.nix")
|
|
|
|
];
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
kernelParams = [ "ip=dhcp" ];
|
|
|
|
initrd = {
|
2023-04-27 21:08:38 +02:00
|
|
|
availableKernelModules = [ "aes_neon_bs" "aes_neon_blk" "xhci_pci" "virtio_pci" "usbhid" "sr_mod" ];
|
2021-02-01 17:33:29 +01:00
|
|
|
network.enable = true; # remote unlocking
|
2023-04-27 21:08:38 +02:00
|
|
|
luks.devices."root".device = "/dev/disk/by-uuid/98d0762c-4a87-45e5-8e99-5147f929fa1b";
|
|
|
|
};
|
|
|
|
loader = {
|
|
|
|
grub.enable = false;
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
efi.canTouchEfiVariables = true;
|
2021-02-01 17:33:29 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
2023-04-27 21:08:38 +02:00
|
|
|
device = "/dev/disk/by-uuid/330f15f5-84f9-446a-a77d-c788fd4b898b";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [ "compress=zstd" ];
|
2021-02-01 17:33:29 +01:00
|
|
|
};
|
|
|
|
"/boot" = {
|
2023-04-27 21:08:38 +02:00
|
|
|
device = "/dev/disk/by-uuid/7F59-E838";
|
|
|
|
fsType = "vfat";
|
2021-02-01 17:33:29 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.useDHCP = false;
|
|
|
|
networking.usePredictableInterfaceNames = false;
|
|
|
|
systemd.network = {
|
|
|
|
enable = true;
|
|
|
|
networks = {
|
|
|
|
eth0 = {
|
|
|
|
name = "eth0";
|
|
|
|
DHCP = "yes";
|
|
|
|
domains = [ "sbruder.de" ];
|
2023-08-12 01:00:37 +02:00
|
|
|
address = [ "2a01:4f8:c012:2f4::1/64" ];
|
2021-02-01 17:33:29 +01:00
|
|
|
gateway = [ "fe80::1" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# no smart on qemu disk
|
|
|
|
services.smartd.enable = false;
|
|
|
|
}
|