feat(misc): laptop fixes

This commit is contained in:
Kat Inskip 2024-02-05 19:30:04 -08:00
parent 7f69011deb
commit 8872b78a07
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
9 changed files with 104 additions and 58 deletions

View file

@ -1,7 +1,12 @@
_: let
hostConfig = {tree, ...}: {
hostConfig = {tree, pkgs, ...}: {
imports =
(with tree.nixos.profiles; [
(with tree.nixos.hardware; [
intel_cpu
intel_gpu
uefi
])
++ (with tree.nixos.profiles; [
graphical
wireless
laptop
@ -19,6 +24,10 @@ _: let
kde
]);
environment.systemPackages = with pkgs; [
parsec-bin
];
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/a664de0f-9883-420e-acc5-b9602a23e816";
@ -30,10 +39,6 @@ _: let
};
};
machine = {
cpuVendor = "intel";
};
networking.networkmanager.wifi.backend = "iwd";
swapDevices = [
@ -42,6 +47,7 @@ _: let
boot = {
supportedFilesystems = ["xfs"];
extraModprobeConfig = "options snd_hda_intel power_save=1 power_save_controller=Y";
initrd = {
availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "sd_mod" "sr_mod" "rtsx_usb_sdmmc"];
luks.devices."cryptroot".device = "/dev/disk/by-uuid/f0ea08b4-6af7-4d90-a2ad-edd5672a2105";