71 lines
1.8 KiB
Nix
71 lines
1.8 KiB
Nix
{ config, pkgs, lib, inputs, ...}:{
|
|
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
../generic.nix
|
|
];
|
|
|
|
boot.initrd.luks.devices = {
|
|
crypted = {
|
|
device = "/dev/disk/by-partuuid/79ab4cc0-b596-42ed-ad00-69031b01b09b";
|
|
allowDiscards = true;
|
|
preLVM = true;
|
|
};
|
|
};
|
|
|
|
systemd.packages = with pkgs; [lact];
|
|
|
|
programs.bash.shellAliases = {
|
|
nano = "nvim";
|
|
};
|
|
|
|
services.displayManager.ly = {
|
|
enable = true;
|
|
settings.animation = "colormix";
|
|
};
|
|
|
|
services.monado = {
|
|
enable = true;
|
|
defaultRuntime = true;
|
|
};
|
|
|
|
systemd.user.services.monado.environment = {
|
|
STEAMVR_LH_ENABLE = "1";
|
|
XRT_COMPOSITOR_COMPUTE = "1";
|
|
WMR_HANDTRACKING = "0";
|
|
AMD_VULKAN_ICD = "RADV";
|
|
};
|
|
|
|
services.udev.packages = with pkgs; [xr-hardware];
|
|
|
|
services.power-profiles-daemon.enable = true;
|
|
services.upower.enable = true;
|
|
|
|
boot.kernelModules = [ "kvm-amd" "vhost_vsock" "vfio_virqfd" "vhost-net" "vfio_pci" "vfio_iommu_type1" "vfio"];
|
|
boot.kernelParams = [ "amd_iommu=on" ];
|
|
|
|
services.printing.enable = true;
|
|
services.printing.drivers = [pkgs.gutenprint];
|
|
|
|
programs.virt-manager.enable = true;
|
|
users.groups.libvirtd.members = ["alyx"];
|
|
virtualisation.libvirtd.enable = true;
|
|
virtualisation.libvirtd.onBoot = "ignore";
|
|
virtualisation.libvirtd.onShutdown = "shutdown";
|
|
virtualisation.libvirtd.qemu.package = pkgs.qemu_kvm;
|
|
virtualisation.libvirtd.qemu.swtpm.enable = true;
|
|
virtualisation.libvirtd.qemu.runAsRoot = true;
|
|
virtualisation.spiceUSBRedirection.enable = true;
|
|
|
|
users.users."qemu-libvirtd" = {
|
|
extraGroups = [ "kvm" "input" ];
|
|
isSystemUser = true;
|
|
};
|
|
|
|
users.users.${config.var.username} = {
|
|
description = "Alyx Wren";
|
|
extraGroups = [ "networkmanager" "wheel" "camera" "input" "adbusers" "inputs" "uinput" "pipewire" "kvm" "qemu-libvirt" "qemu-libvirtd" "lxd" "libvirtd" ];
|
|
};
|
|
}
|
|
|
|
|