2023-07-30 16:18:49 +00:00
|
|
|
{ self, config, lib, nixpkgs, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
# Bootloader.
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
|
|
|
|
|
|
|
# Setup keyfile
|
|
|
|
boot.initrd.secrets = {
|
|
|
|
"/crypto_keyfile.bin" = null;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.hostName = "mira";
|
|
|
|
# Enable swap on luks
|
|
|
|
boot.initrd.luks.devices."luks-8aa0584a-df60-42c3-adc2-d88b85544c85".device = "/dev/disk/by-uuid/8aa0584a-df60-42c3-adc2-d88b85544c85";
|
|
|
|
boot.initrd.luks.devices."luks-8aa0584a-df60-42c3-adc2-d88b85544c85".keyFile = "/crypto_keyfile.bin";
|
|
|
|
|
2023-10-25 23:31:53 +00:00
|
|
|
hardware.opengl = {
|
|
|
|
enable = true;
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
vaapiVdpau
|
|
|
|
libvdpau-va-gl
|
|
|
|
];
|
|
|
|
};
|
2023-07-30 16:18:49 +00:00
|
|
|
}
|