NOflake/systems/NOlaptop.nix

48 lines
1.4 KiB
Nix
Raw Normal View History

2024-02-24 02:30:17 -08:00
{pkgs, ...}: {
2023-07-17 16:41:11 -07:00
environment.systemPackages = with pkgs; [
2023-11-01 18:58:21 -07:00
# prescurve
2023-09-28 23:33:56 -07:00
powertop
2024-01-30 09:32:08 -08:00
fw-ectool
2023-07-17 16:41:11 -07:00
];
2023-07-27 09:45:05 -07:00
powerManagement.powertop.enable = true;
2024-03-18 14:50:43 -07:00
services.fwupd.enable = true;
services.fprintd.enable = true;
2023-07-18 11:12:40 -07:00
2024-03-18 14:50:43 -07:00
services.xserver.displayManager.defaultSession = "plasma";
services.xserver.displayManager.sddm.wayland.enable = true;
fileSystems."/home" = {
2024-03-18 22:45:19 -07:00
device = "/dev/disk/by-uuid/2e1ba9af-4224-48a3-b935-519947da97db";
2024-03-18 14:50:43 -07:00
fsType = "btrfs";
2024-03-18 22:45:19 -07:00
options = ["subvol=home" "noatime" "compress-force=zstd:3" "discard=async"];
2024-03-18 14:50:43 -07:00
};
2024-03-18 22:45:19 -07:00
# fileSystems."/home/tao/Games" = {
# device = "/dev/disk/by-uuid/e4244a97-9b48-49f0-8093-782163045020";
# fsType = "btrfs";
# options = ["subvol=games" "nosuid" "nodev" "noatime" "compress-force=zstd:3" "users" "rw" "exec" "discard=async"];
# };
2024-03-18 14:50:43 -07:00
fileSystems."/" = {
2024-03-18 22:45:19 -07:00
device = "/dev/disk/by-uuid/2e1ba0af-4224-48a3-b935-519947da97db";
2024-03-18 14:50:43 -07:00
fsType = "btrfs";
options = ["subvol=nixos" "noatime" "compress-force=zstd:3" "discard=async"];
};
2024-03-18 22:45:19 -07:00
swapDevices = [{device = "/dev/disk/by-uuid/36216521-db46-4bb0-8994-38a36d5c4528";}];
2024-03-18 14:50:43 -07:00
boot.kernelPackages = pkgs.linuxPackages_latest;
2023-07-17 16:41:11 -07:00
boot.initrd.availableKernelModules = [
"nvme"
"sd_mod"
"thunderbolt"
"usb_storage"
"xhci_pci"
2024-03-18 22:45:19 -07:00
"usbhid"
"uas"
2023-07-17 16:41:11 -07:00
];
2024-03-18 22:45:19 -07:00
boot.kernelModules = ["kvm-amd"];
2023-07-18 11:12:40 -07:00
powerManagement.cpuFreqGovernor = "powersave";
2024-01-07 13:32:33 -08:00
systemd.sleep.extraConfig = "HibernateDelaySec=180m";
2023-07-17 16:41:11 -07:00
networking.hostName = "NOlaptop";
2023-07-11 00:38:39 -07:00
}