NOflake/systems/NOlaptop.nix

48 lines
1.3 KiB
Nix
Raw Normal View History

2023-07-17 16:41:11 -07:00
{ lib, modulesPath, pkgs, ... }: {
environment.systemPackages = with pkgs; [
];
fileSystems."/home" = {
device = "/dev/disk/by-uuid/e4244a97-9b48-49f0-8093-782163045020";
fsType = "btrfs";
options = [ "subvol=home-snaps/0/snapshot" "noatime" "compress-force=zstd:3" ];
};
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" ];
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/e4244a97-9b48-49f0-8093-782163045020";
fsType = "btrfs";
options = [ "subvol=nixos" "noatime" "compress-force=zstd:3" ];
};
swapDevices = [{ device = "/dev/disk/by-uuid/ca55d0ea-c0db-44c5-af3a-e38eec803929"; }];
2023-07-18 11:12:40 -07:00
services.fprintd.enable = true;
services.fwupd.enable = true;
2023-07-17 16:41:11 -07:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2023-07-18 11:12:40 -07:00
nixpkgs.hostPlatform = "x86_64-linux";
2023-07-17 16:41:11 -07:00
boot.initrd.availableKernelModules = [
"nvme"
"sd_mod"
"thunderbolt"
"usb_storage"
"xhci_pci"
];
2023-07-11 00:38:39 -07:00
boot.kernelParams = [
"mem_sleep_default=deep"
"nvme.noacpi=1"
];
2023-07-17 16:41:11 -07:00
boot.kernelModules = [ "kvm-intel" ];
2023-07-18 11:12:40 -07:00
powerManagement.cpuFreqGovernor = "powersave";
hardware.sensor.iio.enable = true;
2023-07-17 16:41:11 -07:00
networking.hostName = "NOlaptop";
2023-07-11 00:38:39 -07:00
}