nixos/hardware/thinkpad-p1-gen3.nix
Malte Tammena eb76e892d7 chore: update
• Updated input 'devshell':
    'github:numtide/devshell/67cce7359e4cd3c45296fb4aaf6a19e2a9c757ae' (2024-07-27)
  → 'github:numtide/devshell/dd6b80932022cea34a019e2bb32f6fa9e494dfef' (2024-10-07)
• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/8471fe90ad337a8074e957b69ca4d0089218391d' (2024-08-01)
  → 'github:hercules-ci/flake-parts/3d04084d54bedc3d6b8b736c70ef449225c361b1' (2024-10-01)
• Updated input 'flake-parts/nixpkgs-lib':
    'a5d394176e.tar.gz?narHash=sha256-uFf2QeW7eAHlYXuDktm9c25OxOyCoUOQmh5SZ9amE5Q%3D' (2024-08-01)
  → 'fb192fec7c.tar.gz?narHash=sha256-0xHYkMkeLVQAMa7gvkddbPqpxph%2BhDzdu1XdGPJR%2BOs%3D' (2024-10-01)
• Updated input 'home-manager':
    'github:nix-community/home-manager/afc892db74d65042031a093adb6010c4c3378422' (2024-08-02)
  → 'github:nix-community/home-manager/e1aec543f5caf643ca0d94b6a633101942fd065f' (2024-10-14)
• Updated input 'hydra':
    'github:NixOS/hydra/7de71224795804b3f5e6aa5a038d8143ba6fc415' (2024-08-01)
  → 'github:NixOS/hydra/c69e30122bf7e7a7d3de70dc2418263c6e44159b' (2024-10-08)
• Updated input 'hydra/nix':
    'github:NixOS/nix/1c8150ac312b5f9ba1b3f6768ff43b09867e5883' (2024-04-23)
  → 'github:NixOS/nix/a7fdef6858dd45b9d7bda7c92324c63faee7f509' (2024-09-19)
• Added input 'hydra/nix/git-hooks-nix':
    'github:cachix/git-hooks.nix/4e743a6920eab45e8ba0fbe49dc459f1423a4b74' (2024-09-19)
• Added input 'hydra/nix/git-hooks-nix/flake-compat':
    follows 'hydra/nix'
• Added input 'hydra/nix/git-hooks-nix/gitignore':
    follows 'hydra/nix'
• Added input 'hydra/nix/git-hooks-nix/nixpkgs':
    follows 'hydra/nix/nixpkgs'
• Added input 'hydra/nix/git-hooks-nix/nixpkgs-stable':
    follows 'hydra/nix/nixpkgs'
• Updated input 'hydra/nix/libgit2':
    'github:libgit2/libgit2/45fd9ed7ae1a9b74b957ef4f337bc3c8b3df01b5' (2023-10-18)
  → 'github:libgit2/libgit2/36f7e21ad757a3dacc58cf7944329da6bc1d6e96' (2024-05-16)
• Added input 'hydra/nix/nixpkgs-23-11':
    'github:NixOS/nixpkgs/a62e6edd6d5e1fa0329b8653c801147986f8d446' (2024-05-31)
• Removed input 'hydra/nix/pre-commit-hooks'
• Removed input 'hydra/nix/pre-commit-hooks/flake-compat'
• Removed input 'hydra/nix/pre-commit-hooks/flake-utils'
• Removed input 'hydra/nix/pre-commit-hooks/gitignore'
• Removed input 'hydra/nix/pre-commit-hooks/nixpkgs'
• Removed input 'hydra/nix/pre-commit-hooks/nixpkgs-stable'
• Updated input 'hydra/nixpkgs':
    'github:NixOS/nixpkgs/1d6a23f11e44d0fb64b3237569b87658a9eb5643' (2024-04-11)
  → 'github:NixOS/nixpkgs/dbebdd67a6006bb145d98c8debf9140ac7e651d0' (2024-09-18)
• Updated input 'hyprland':
    'git+https://github.com/hyprwm/Hyprland?ref=refs/heads/main&rev=0e86808e5912823f1c6bea1b6d5fcae297fc9f57' (2024-08-05)
  → 'git+https://github.com/hyprwm/Hyprland?ref=refs/heads/main&rev=ce62521883e217aab4da305d71e40e4a50567dfb' (2024-10-14)
• Updated input 'hyprland/aquamarine':
    'github:hyprwm/aquamarine/7c3565f9bedc7cb601cc0baa14792247e4dc1d5a' (2024-07-30)
  → 'github:hyprwm/aquamarine/65dd97b5d21e917295159bbef1d52e06963f4eb0' (2024-10-07)
• Updated input 'hyprland/hyprcursor':
    'github:hyprwm/hyprcursor/4493a972b48f9c3014befbbf381ed5fff91a65dc' (2024-07-18)
  → 'github:hyprwm/hyprcursor/d60e1e01e6e6633ef1c87148b9137cc1dd39263d' (2024-10-01)
• Added input 'hyprland/hyprland-protocols':
    'github:hyprwm/hyprland-protocols/a7c183800e74f337753de186522b9017a07a8cee' (2024-10-07)
• Added input 'hyprland/hyprland-protocols/nixpkgs':
    follows 'hyprland/nixpkgs'
• Added input 'hyprland/hyprland-protocols/systems':
    follows 'hyprland/systems'
• Updated input 'hyprland/hyprlang':
    'github:hyprwm/hyprlang/adbefbf49664a6c2c8bf36b6487fd31e3eb68086' (2024-07-18)
  → 'github:hyprwm/hyprlang/f054f2e44d6a0b74607a6bc0f52dba337a3db38e' (2024-10-05)
• Updated input 'hyprland/hyprutils':
    'github:hyprwm/hyprutils/5dcbbc1e3de40b2cecfd2007434d86e924468f1f' (2024-07-27)
  → 'github:hyprwm/hyprutils/3f5293432b6dc6a99f26aca2eba3876d2660665c' (2024-09-25)
• Updated input 'hyprland/hyprwayland-scanner':
    'github:hyprwm/hyprwayland-scanner/a048a6cb015340bd82f97c1f40a4b595ca85cc30' (2024-07-18)
  → 'github:hyprwm/hyprwayland-scanner/500c81a9e1a76760371049a8d99e008ea77aa59e' (2024-09-20)
• Added input 'hyprland/pre-commit-hooks':
    'github:cachix/git-hooks.nix/1211305a5b237771e13fcca0c51e60ad47326a9a' (2024-10-05)
• Added input 'hyprland/pre-commit-hooks/flake-compat':
    'github:edolstra/flake-compat/0f9255e01c2351cc7d116c072cb317785dd33b33' (2023-10-04)
• Added input 'hyprland/pre-commit-hooks/gitignore':
    'github:hercules-ci/gitignore.nix/637db329424fd7e46cf4185293b9cc8c88c95394' (2024-02-28)
• Added input 'hyprland/pre-commit-hooks/gitignore/nixpkgs':
    follows 'hyprland/pre-commit-hooks/nixpkgs'
• Added input 'hyprland/pre-commit-hooks/nixpkgs':
    follows 'hyprland/nixpkgs'
• Added input 'hyprland/pre-commit-hooks/nixpkgs-stable':
    'github:NixOS/nixpkgs/194846768975b7ad2c4988bdb82572c00222c0d7' (2024-07-07)
• Updated input 'hyprland/xdph':
    'github:hyprwm/xdg-desktop-portal-hyprland/7f2a77ddf60390248e2a3de2261d7102a13e5341' (2024-07-30)
  → 'github:hyprwm/xdg-desktop-portal-hyprland/fb9c8d665af0588bb087f97d0f673ddf0d501787' (2024-10-05)
• Updated input 'hyprland/xdph/hyprland-protocols':
    'github:hyprwm/hyprland-protocols/5a11232266bf1a1f5952d5b179c3f4b2facaaa84' (2024-07-18)
  → follows 'hyprland/hyprland-protocols'
• Removed input 'hyprland/xdph/hyprland-protocols/nixpkgs'
• Removed input 'hyprland/xdph/hyprland-protocols/systems'
• Added input 'hyprland/xdph/hyprutils':
    follows 'hyprland/hyprutils'
• Added input 'hyprland/xdph/hyprwayland-scanner':
    follows 'hyprland/hyprwayland-scanner'
• Updated input 'hyprland-contrib':
    'github:hyprwm/contrib/9d67858b437d4a1299be496d371b66fc0d3e01f6' (2024-08-02)
  → 'github:hyprwm/contrib/1e531dc49ad36c88b45bf836081a7a2c8927e072' (2024-09-05)
• Updated input 'jovian-nixos':
    'github:Jovian-Experiments/Jovian-NixOS/bcfe9dc708c92590fec676692b3ed79443eda819' (2024-08-03)
  → 'github:Jovian-Experiments/Jovian-NixOS/e4f4d7832cc559389b93798c1f0d615e3816f4ef' (2024-10-11)
• Updated input 'nix-topology':
    'github:oddlama/nix-topology/870dcc9074077a327220b36597098c295944a47d' (2024-07-30)
  → 'github:oddlama/nix-topology/8738d94670265beb166954c4e3a26e432f79f68c' (2024-09-04)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/14c333162ba53c02853add87a0000cbd7aa230c2' (2024-07-30)
  → 'github:NixOS/nixos-hardware/a8dd1b21995964b115b1e3ec639dd6ce24ab9806' (2024-10-12)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/cb9a96f23c491c081b38eab96d22fa958043c9fa' (2024-08-04)
  → 'github:NixOS/nixpkgs/5633bcff0c6162b9e4b5f1264264611e950c8ec7' (2024-10-09)
• Updated input 'nixpkgs-wayland':
    'github:nix-community/nixpkgs-wayland/cff1e4eced9f42dab81ef9ce89fdae6cc014a3eb' (2024-08-06)
  → 'github:nix-community/nixpkgs-wayland/3ed05c6cf039f11e966963a23ca9d02f7115113b' (2024-10-14)
• Updated input 'nixpkgs-wayland/lib-aggregate':
    'github:nix-community/lib-aggregate/04a4b4d84e02590715e753da3d35fb03cddc6425' (2024-08-04)
  → 'github:nix-community/lib-aggregate/8921856c37862428741a29cfd4c98c4893ca407d' (2024-10-13)
• Updated input 'nixpkgs-wayland/lib-aggregate/flake-utils':
    'github:numtide/flake-utils/b1d9ab70662946ef0850d488da1c9019f3a9752a' (2024-03-11)
  → 'github:numtide/flake-utils/c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a' (2024-09-17)
• Updated input 'nixpkgs-wayland/lib-aggregate/nixpkgs-lib':
    'github:nix-community/nixpkgs.lib/8bebd4c74f368aacb047f0141db09ec6b339733c' (2024-08-04)
  → 'github:nix-community/nixpkgs.lib/16340f605f4e8e5cf07fd74dcbe692eee2d4f51b' (2024-10-13)
• Updated input 'nixpkgs-wayland/nix-eval-jobs':
    'github:nix-community/nix-eval-jobs/2e522fb78d7613cecaf683875ab27b6c90e8a84f' (2024-07-20)
  → 'github:nix-community/nix-eval-jobs/a3307ac4b38b6dae769f771c877a6f2c236ee238' (2024-10-10)
• Updated input 'nixpkgs-wayland/nix-eval-jobs/flake-parts':
    'github:hercules-ci/flake-parts/9227223f6d922fee3c7b190b2cc238a99527bbb7' (2024-07-03)
  → 'github:hercules-ci/flake-parts/8471fe90ad337a8074e957b69ca4d0089218391d' (2024-08-01)
• Updated input 'nixpkgs-wayland/nix-eval-jobs/nixpkgs':
    'github:NixOS/nixpkgs/8b5a3d5a1d951344d683b442c0739010b80039db' (2024-07-12)
  → 'github:NixOS/nixpkgs/154bcb95ad51bc257c2ce4043a725de6ca700ef6' (2024-08-09)
• Updated input 'nixpkgs-wayland/nix-eval-jobs/treefmt-nix':
    'github:numtide/treefmt-nix/b92afa1501ac73f1d745526adc4f89b527595f14' (2024-07-14)
  → 'github:numtide/treefmt-nix/14c092e0326de759e16b37535161b3cb9770cea3' (2024-08-10)
• Updated input 'nixpkgs-wayland/nixpkgs':
    'github:nixos/nixpkgs/cb9a96f23c491c081b38eab96d22fa958043c9fa' (2024-08-04)
  → 'github:nixos/nixpkgs/5633bcff0c6162b9e4b5f1264264611e950c8ec7' (2024-10-09)
• Updated input 'pre-commit-hooks-nix':
    'github:cachix/pre-commit-hooks.nix/06939f6b7ec4d4f465bf3132a05367cccbbf64da' (2024-08-05)
  → 'github:cachix/pre-commit-hooks.nix/ff68f91754be6f3427e4986d7949e6273659be1d' (2024-10-13)
• Updated input 'qmk-udev-rules':
    'github:qmk/qmk_firmware/75402109e9a3d0d0ec129bb7132aae1367c8bf9d' (2024-08-03)
  → 'github:qmk/qmk_firmware/11daef82e0c710d7bdacc7c78fe21fae864be191' (2024-10-11)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/8ae477955dfd9cbf5fa4eb82a8db8ddbb94e79d9' (2024-08-05)
  → 'github:Mic92/sops-nix/06535d0e3d0201e6a8080dd32dbfde339b94f01b' (2024-10-08)
• Updated input 'sops-nix/nixpkgs-stable':
    'github:NixOS/nixpkgs/556533a23879fc7e5f98dd2e0b31a6911a213171' (2024-07-21)
  → 'github:NixOS/nixpkgs/17ae88b569bb15590549ff478bab6494dde4a907' (2024-10-05)
• Updated input 'treefmt-nix':
    'github:numtide/treefmt-nix/768acdb06968e53aa1ee8de207fd955335c754b7' (2024-07-30)
  → 'github:numtide/treefmt-nix/4446c7a6fc0775df028c5a3f6727945ba8400e64' (2024-10-03)
• Updated input 'treefmt-nix/nixpkgs':
    'github:nixos/nixpkgs/693bc46d169f5af9c992095736e82c3488bf7dbb' (2024-07-14)
  → 'github:nixos/nixpkgs/a1d92660c6b3b7c26fb883500a80ea9d33321be2' (2024-09-20)
2024-10-14 13:51:45 +02:00

117 lines
2.9 KiB
Nix

{
config,
lib,
pkgs,
...
}: {
boot = {
initrd = {
availableKernelModules = ["xhci_pci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc"];
luks.devices."enc".device = "/dev/disk/by-uuid/1f1e51d6-3084-4f4d-9b4b-6caa0352f542";
};
kernelModules = ["kvm-intel" "acpi_call" "nvidia" "nvidia_modeset" "nvidia_umv" "nvidia_drm"];
extraModulePackages = with config.boot.kernelPackages; [acpi_call];
supportedFilesystems = ["btrfs"];
kernelParams = ["acpi_backlight=native"];
};
powerManagement = {
enable = true;
cpuFreqGovernor = "powersafe";
powertop.enable = true;
};
services.tlp = {
enable = true;
};
services.tp-auto-kbbl = {
enable = true;
device = "/dev/input/by-path/platform-i8042-serio-0-event-kbd";
};
services.upower.enable = true;
settings.nvidiaUsed = true;
hardware = {
# Enable bluetooth
bluetooth.enable = true;
nvidia.open = true;
nvidia.modesetting.enable = true;
# nvidia.dynamicBoost.enable = true;
nvidia.nvidiaSettings = true;
nvidia.powerManagement.enable = true;
nvidia.prime = {
offload.enable = true;
nvidiaBusId = "PCI:1:0:0";
intelBusId = "PCI:0:2:0";
};
graphics = {
enable = true;
enable32Bit = true;
extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
nvidia-vaapi-driver
vaapiVdpau
libvdpau-va-gl
libva
];
};
trackpoint.enable = true;
trackpoint.emulateWheel = lib.mkDefault config.hardware.trackpoint.enable;
};
services.blueman.enable = true;
services.xserver.videoDrivers = ["nvidia"];
nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;};
};
services.hardware.bolt.enable = true;
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/d9fd201a-f9f5-4d6f-9706-cc698699704d";
fsType = "btrfs";
options = ["subvol=root" "compress=zstd"];
};
"/boot" = {
device = "/dev/disk/by-uuid/B767-2B7C";
fsType = "vfat";
};
"/home" = {
device = "/dev/disk/by-uuid/d9fd201a-f9f5-4d6f-9706-cc698699704d";
fsType = "btrfs";
options = ["subvol=home" "compress=zstd"];
};
"/nix" = {
device = "/dev/disk/by-uuid/d9fd201a-f9f5-4d6f-9706-cc698699704d";
fsType = "btrfs";
options = ["subvol=nix" "compress=zstd"];
};
"/persist" = {
device = "/dev/disk/by-uuid/d9fd201a-f9f5-4d6f-9706-cc698699704d";
fsType = "btrfs";
options = ["subvol=persist" "compress=zstd"];
};
"/var/log" = {
device = "/dev/disk/by-uuid/d9fd201a-f9f5-4d6f-9706-cc698699704d";
fsType = "btrfs";
options = ["subvol=log" "compress=zstd"];
neededForBoot = true;
};
};
swapDevices = [{device = "/dev/disk/by-uuid/6948f567-03b3-4a38-b3c4-e05e0bbfbf55";}];
}