substituters, sway mod preference per user, move hosts/absolution to hosts/apalapucia, etc

This commit is contained in:
alyx 2026-02-23 12:17:05 +00:00
parent d0bb2fe776
commit d8d3f43c53
Signed by: alyx
SSH key fingerprint: SHA256:ikXQIBRoakFdxVU/cImm2/V8XxM0gMJU8QybMfU66H0
10 changed files with 275 additions and 279 deletions

View file

@ -0,0 +1,67 @@
{ config, pkgs, lib, inputs, ...}:{
imports = [
./hardware-configuration.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];
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" ];
};
}

View file

@ -0,0 +1,6 @@
{ config, pkgs, ... }:{
imports = [
./apalapucia.nix
../generic.nix
];
}

View file

@ -0,0 +1,77 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General.Experimental = true;
};
input = {
General.ClassicBondedOnly = false;
General.UserspaceHID = true;
};
};
boot.supportedFilesystems = ["exfat" "ntfs" "xfs"];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ "vfio_pci" "vfio" "vfio_iommu_type1" "vendor-reset" ];
boot.kernelModules = [ "kvm-intel" "vfio_virqfd" "vhost-net" "v4l2loopback" "12c-dev" ];
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback vendor-reset hid-t150 ];
boot.extraModprobeConfig = ''
options vfio-pci ids=1002:6fdf,1002:aaf0,,1002:67df,8086:8d26,8086:8d2d
options v4l2loopback devices=2 video_nr=1,2 card_label="Lenovo Camera" exclusive_caps=1
'';
boot.blacklistedKernelModules = ["nouveau"];
boot.kernelParams = [ "amdgpu.ppfeaturemask=0xffffffff" "intel_iommu=on" "iommu=pt" "preempt=voluntary" "module_blacklist=nouveau" ];
#boot.kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_latest;
fileSystems."/" =
{ device = "/dev/mapper/vg-nixos";
fsType = "xfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/243D-443E";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
fileSystems."/mnt/data" =
{ device = "/dev/disk/by-uuid/09c2cf4d-25b8-4a1b-9b7a-904f4a97a20d";
fsType = "xfs";
options = [ "x-gvfs-show" ];
};
fileSystems."/mnt/misc" =
{ device = "/dev/disk/by-uuid/1375e97d-e67b-43b7-827c-c1b984e0f42f";
fsType = "xfs";
options = [ "x-gvfs-show" ];
};
fileSystems."/mnt/nvme" =
{ device = "/dev/disk/by-uuid/d95cde51-6c51-477c-af71-d59f02fe527c";
fsType = "xfs";
options = [ "x-gvfs-show" ];
};
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp7s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}