waybar config, add calufrax (laptop), etc

This commit is contained in:
alyx 2026-02-23 17:32:32 +00:00
parent e4e1bea480
commit b6e449dd48
Signed by: alyx
SSH key fingerprint: SHA256:jnVDhAlcSXL67FEpIYmr80+FnLv93q3S2MtZ92ohQeA
7 changed files with 160 additions and 5 deletions

View file

@ -0,0 +1,72 @@
{ config, pkgs, lib, inputs, ...}:{
imports = [
./hardware-configuration.nix
../generic.nix
];
hardware.bluetooth.enable = true;
services.blueman.enable = true;
boot.initrd.luks.devices = {
crypted = {
device = "/dev/disk/by-partuuid/5c614ca4-71bc-4ba7-a603-bf168f671533";
allowDiscards = true;
preLVM = true;
};
};
services.upower.enable = true;
services.power-profiles-daemon.enable = true;
services.xserver.xkb = {
layout = lib.mkForce "gb";
variant = lib.mkForce "colemak";
};
console.useXkbConfig = true;
console.earlySetup = true;
programs.bash.shellAliases = {
nano = "nvim";
};
services.displayManager.ly = {
enable = true;
settings.animation = "colormix";
};
boot.kernelModules = [ "kvm-intel" "vhost_vsock" "vfio_virqfd" "vhost-net" "vfio_pci" "vfio_iommu_type1" "vfio"];
boot.kernelParams = [ "intel_iommu=on" "iommu=pt" "i915.force_probe=!7d51" "xe.force_probe=7d51" ];
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;
};
boot.kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_latest;
hardware.graphics.extraPackages = with pkgs; [vpl-gpu-rt mesa.opencl libvdpau-va-gl intel-media-driver intel-vaapi-driver libva-vdpau-driver vulkan-validation-layers];
hardware.graphics.extraPackages32 = with pkgs; [driversi686Linux.mesa.opencl];
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,33 @@
# 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")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/mapper/vg-nixos";
fsType = "xfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/C0F5-6023";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices =
[ { device = "/dev/mapper/vg-swap"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}