2023-07-30 16:18:49 +00:00
|
|
|
{ self, config, lib, nixpkgs, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
2024-11-23 23:27:47 +00:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
./../../configuration.nix
|
|
|
|
];
|
|
|
|
|
2023-07-30 16:18:49 +00:00
|
|
|
# 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";
|
|
|
|
|
2024-09-08 23:38:16 +00:00
|
|
|
hardware.graphics = {
|
2023-10-25 23:31:53 +00:00
|
|
|
enable = true;
|
2024-09-20 02:22:42 +00:00
|
|
|
|
2023-10-25 23:31:53 +00:00
|
|
|
extraPackages = with pkgs; [
|
2024-09-20 02:22:42 +00:00
|
|
|
## amdvlk: an open-source Vulkan driver from AMD
|
|
|
|
amdvlk
|
2023-10-25 23:31:53 +00:00
|
|
|
vaapiVdpau
|
|
|
|
libvdpau-va-gl
|
|
|
|
];
|
2024-09-20 02:22:42 +00:00
|
|
|
|
|
|
|
extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
|
2023-10-25 23:31:53 +00:00
|
|
|
};
|
2024-10-30 21:49:16 +00:00
|
|
|
|
|
|
|
hardware.bluetooth.enable = true;
|
2023-07-30 16:18:49 +00:00
|
|
|
}
|