Playing around with window managers. Trying out niri and hyprland. Getting some gnome settings in the config. adding my hardware nix config. moving mac-specific ghostty settings to the mac file
This commit is contained in:
54
hardware-configuration.pc.nix
Normal file
54
hardware-configuration.pc.nix
Normal file
@@ -0,0 +1,54 @@
|
||||
# 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" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
# Trying to get suspend working..
|
||||
# boot.kernelParams = [ "processor.max_cstate=1" ];
|
||||
boot.kernelParams = [
|
||||
# "mem_sleep_default=deep" # forces S3 suspend instead of s2idle
|
||||
# "processor.max_cstate=5" # prevents CPU from going into deep C-states that break resume
|
||||
# "amd_iommu=off" # optional, can help on some ASUS boards
|
||||
"btusb.enable_autosuspend=0"
|
||||
"usbcore.autosuspend=-1"
|
||||
"btmtk.disable_sco_esco=Y"
|
||||
];
|
||||
boot.kernelModules = [ "kvm-amd" "btusb" "btmtk" ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/mapper/luks-78910c3e-3aec-4122-af7b-8a6e55005f1b";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."luks-78910c3e-3aec-4122-af7b-8a6e55005f1b".device = "/dev/disk/by-uuid/78910c3e-3aec-4122-af7b-8a6e55005f1b";
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/B0C0-690A";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
# Trying to get Bluetooth working..
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
hardware.firmware = with pkgs; [
|
||||
linux-firmware
|
||||
];
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth.powerOnBoot = true;
|
||||
# services.blueman.enable = true;
|
||||
}
|
||||
Reference in New Issue
Block a user