Malte Tammena
6625cf58e0
• Updated input 'devshell': 'github:numtide/devshell/1ebbe68d57457c8cae98145410b164b5477761f4' (2024-06-03) → 'github:numtide/devshell/67cce7359e4cd3c45296fb4aaf6a19e2a9c757ae' (2024-07-27) • Removed input 'devshell/flake-utils' • Removed input 'devshell/flake-utils/systems' • Updated input 'devshell/nixpkgs': 'github:NixOS/nixpkgs/63143ac2c9186be6d9da6035fa22620018c85932' (2024-01-02) → 'github:NixOS/nixpkgs/e36e9f57337d0ff0cf77aceb58af4c805472bfae' (2024-07-27) • Updated input 'flake-parts': 'github:hercules-ci/flake-parts/2a55567fcf15b1b1c7ed712a2c6fadaec7412ea8' (2024-06-01) → 'github:hercules-ci/flake-parts/8471fe90ad337a8074e957b69ca4d0089218391d' (2024-08-01) • Updated input 'flake-parts/nixpkgs-lib': 'eb9ceca17d
.tar.gz?narHash=sha256-lIbdfCsf8LMFloheeE6N31%2BBMIeixqyQWbSr2vk79EQ%3D' (2024-06-01) → 'a5d394176e
.tar.gz?narHash=sha256-uFf2QeW7eAHlYXuDktm9c25OxOyCoUOQmh5SZ9amE5Q%3D' (2024-08-01) • Updated input 'home-manager': 'github:nix-community/home-manager/0a7ffb28e5df5844d0e8039c9833d7075cdee792' (2024-06-16) → 'github:nix-community/home-manager/afc892db74d65042031a093adb6010c4c3378422' (2024-08-02) • Updated input 'hydra': 'github:NixOS/hydra/b3e0d9a8b78d55e5fea394839524f5a24d694230' (2024-05-23) → 'github:NixOS/hydra/7de71224795804b3f5e6aa5a038d8143ba6fc415' (2024-08-01) • Updated input 'hyprland': 'git+https://github.com/hyprwm/Hyprland?ref=refs/heads/main&rev=b15be9c77de593581007de53b2bbca97d121900a' (2024-06-16) → 'git+https://github.com/hyprwm/Hyprland?ref=refs/heads/main&rev=0e86808e5912823f1c6bea1b6d5fcae297fc9f57' (2024-08-05) • Added input 'hyprland/aquamarine': 'github:hyprwm/aquamarine/7c3565f9bedc7cb601cc0baa14792247e4dc1d5a' (2024-07-30) • Added input 'hyprland/aquamarine/hyprutils': follows 'hyprland/hyprutils' • Added input 'hyprland/aquamarine/hyprwayland-scanner': follows 'hyprland/hyprwayland-scanner' • Added input 'hyprland/aquamarine/nixpkgs': follows 'hyprland/nixpkgs' • Added input 'hyprland/aquamarine/systems': follows 'hyprland/systems' • Updated input 'hyprland/hyprcursor': 'github:hyprwm/hyprcursor/dd3a853c8239d1c3f3f37de7d2b8ae4b4f3840df' (2024-06-14) → 'github:hyprwm/hyprcursor/4493a972b48f9c3014befbbf381ed5fff91a65dc' (2024-07-18) • Updated input 'hyprland/hyprlang': 'github:hyprwm/hyprlang/ec6938c66253429192274d612912649a0cfe4d28' (2024-06-08) → 'github:hyprwm/hyprlang/adbefbf49664a6c2c8bf36b6487fd31e3eb68086' (2024-07-18) • Updated input 'hyprland/hyprutils': 'github:hyprwm/hyprutils/8e10e0626fb26a14b859b3811b6ed7932400c86e' (2024-06-13) → 'github:hyprwm/hyprutils/5dcbbc1e3de40b2cecfd2007434d86e924468f1f' (2024-07-27) • Updated input 'hyprland/hyprwayland-scanner': 'github:hyprwm/hyprwayland-scanner/1419520d5f7f38d35e05504da5c1b38212a38525' (2024-06-11) → 'github:hyprwm/hyprwayland-scanner/a048a6cb015340bd82f97c1f40a4b595ca85cc30' (2024-07-18) • Updated input 'hyprland/xdph': 'github:hyprwm/xdg-desktop-portal-hyprland/24be4a26f0706e456fca1b61b8c79f7486a9e86d' (2024-06-13) → 'github:hyprwm/xdg-desktop-portal-hyprland/7f2a77ddf60390248e2a3de2261d7102a13e5341' (2024-07-30) • Updated input 'hyprland/xdph/hyprland-protocols': 'github:hyprwm/hyprland-protocols/0c2ce70625cb30aef199cb388f99e19a61a6ce03' (2023-08-11) → 'github:hyprwm/hyprland-protocols/5a11232266bf1a1f5952d5b179c3f4b2facaaa84' (2024-07-18) • Updated input 'hyprland-contrib': 'github:hyprwm/contrib/29a8374f4b9206d5c4af84aceb7fb5dff441ea60' (2024-06-15) → 'github:hyprwm/contrib/9d67858b437d4a1299be496d371b66fc0d3e01f6' (2024-08-02) • Updated input 'jovian-nixos': 'github:Jovian-Experiments/Jovian-NixOS/f02a01aab60c68b7898043c2e7f5bc97c93fb07b' (2024-06-15) → 'github:Jovian-Experiments/Jovian-NixOS/bcfe9dc708c92590fec676692b3ed79443eda819' (2024-08-03) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/cde8f7e11f036160b0fd6a9e07dc4c8e4061cf06' (2024-06-16) → 'github:NixOS/nixos-hardware/14c333162ba53c02853add87a0000cbd7aa230c2' (2024-07-30) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/e9ee548d90ff586a6471b4ae80ae9cfcbceb3420' (2024-06-13) → 'github:NixOS/nixpkgs/cb9a96f23c491c081b38eab96d22fa958043c9fa' (2024-08-04) • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland/937cdd5ba09099b20d665cba048959f505fd0880' (2024-06-16) → 'github:nix-community/nixpkgs-wayland/cff1e4eced9f42dab81ef9ce89fdae6cc014a3eb' (2024-08-06) • Updated input 'nixpkgs-wayland/lib-aggregate': 'github:nix-community/lib-aggregate/17a1c1bfca963a2776969866aaa07744d7ac9135' (2024-06-16) → 'github:nix-community/lib-aggregate/04a4b4d84e02590715e753da3d35fb03cddc6425' (2024-08-04) • Updated input 'nixpkgs-wayland/lib-aggregate/nixpkgs-lib': 'github:nix-community/nixpkgs.lib/6fba0c5a27b984914794ffdab8d7bb5c29ab11b6' (2024-06-16) → 'github:nix-community/nixpkgs.lib/8bebd4c74f368aacb047f0141db09ec6b339733c' (2024-08-04) • Updated input 'nixpkgs-wayland/nix-eval-jobs': 'github:nix-community/nix-eval-jobs/b6169e08e76e10b673d1b54f944cddb1e7cbea97' (2024-06-06) → 'github:nix-community/nix-eval-jobs/2e522fb78d7613cecaf683875ab27b6c90e8a84f' (2024-07-20) • Updated input 'nixpkgs-wayland/nix-eval-jobs/flake-parts': 'github:hercules-ci/flake-parts/9126214d0a59633752a136528f5f3b9aa8565b7d' (2024-04-01) → 'github:hercules-ci/flake-parts/9227223f6d922fee3c7b190b2cc238a99527bbb7' (2024-07-03) • Updated input 'nixpkgs-wayland/nix-eval-jobs/nix-github-actions': 'github:nix-community/nix-github-actions/5163432afc817cf8bd1f031418d1869e4c9d5547' (2023-12-29) → 'github:nix-community/nix-github-actions/622f829f5fe69310a866c8a6cd07e747c44ef820' (2024-07-04) • Updated input 'nixpkgs-wayland/nix-eval-jobs/nixpkgs': 'github:NixOS/nixpkgs/ad7efee13e0d216bf29992311536fce1d3eefbef' (2024-05-06) → 'github:NixOS/nixpkgs/8b5a3d5a1d951344d683b442c0739010b80039db' (2024-07-12) • Updated input 'nixpkgs-wayland/nix-eval-jobs/treefmt-nix': 'github:numtide/treefmt-nix/49dc4a92b02b8e68798abd99184f228243b6e3ac' (2024-04-01) → 'github:numtide/treefmt-nix/b92afa1501ac73f1d745526adc4f89b527595f14' (2024-07-14) • Updated input 'nixpkgs-wayland/nixpkgs': 'github:nixos/nixpkgs/e9ee548d90ff586a6471b4ae80ae9cfcbceb3420' (2024-06-13) → 'github:nixos/nixpkgs/cb9a96f23c491c081b38eab96d22fa958043c9fa' (2024-08-04) • Updated input 'pre-commit-hooks-nix': 'github:cachix/pre-commit-hooks.nix/cc4d466cb1254af050ff7bdf47f6d404a7c646d1' (2024-06-06) → 'github:cachix/pre-commit-hooks.nix/06939f6b7ec4d4f465bf3132a05367cccbbf64da' (2024-08-05) • Updated input 'pre-commit-hooks-nix/nixpkgs': 'github:NixOS/nixpkgs/e367f7a1fb93137af22a3908f00b9a35e2d286a7' (2024-03-18) → 'github:NixOS/nixpkgs/9693852a2070b398ee123a329e68f0dab5526681' (2024-06-22) • Updated input 'pre-commit-hooks-nix/nixpkgs-stable': 'github:NixOS/nixpkgs/614b4613980a522ba49f0d194531beddbb7220d3' (2024-03-17) → 'github:NixOS/nixpkgs/194846768975b7ad2c4988bdb82572c00222c0d7' (2024-07-07) • Updated input 'qmk-udev-rules': 'github:qmk/qmk_firmware/4864d5afca09cbd4b0bfc7e7cef505ad602b0c9c' (2024-06-17) → 'github:qmk/qmk_firmware/75402109e9a3d0d0ec129bb7132aae1367c8bf9d' (2024-08-03) • Updated input 'sops-nix': 'github:Mic92/sops-nix/797ce4c1f45a85df6dd3d9abdc53f2691bea9251' (2024-06-16) → 'github:Mic92/sops-nix/8ae477955dfd9cbf5fa4eb82a8db8ddbb94e79d9' (2024-08-05) • Updated input 'sops-nix/nixpkgs-stable': 'github:NixOS/nixpkgs/c884223af91820615a6146af1ae1fea25c107005' (2024-06-15) → 'github:NixOS/nixpkgs/556533a23879fc7e5f98dd2e0b31a6911a213171' (2024-07-21) • Updated input 'treefmt-nix': 'github:numtide/treefmt-nix/68eb1dc333ce82d0ab0c0357363ea17c31ea1f81' (2024-06-16) → 'github:numtide/treefmt-nix/768acdb06968e53aa1ee8de207fd955335c754b7' (2024-07-30) • Updated input 'treefmt-nix/nixpkgs': 'github:nixos/nixpkgs/0e74ca98a74bc7270d28838369593635a5db3260' (2024-02-21) → 'github:nixos/nixpkgs/693bc46d169f5af9c992095736e82c3488bf7dbb' (2024-07-14)
116 lines
2.8 KiB
Nix
116 lines
2.8 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.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";}];
|
|
}
|