NOflake/systems/NOlaptop.nix

104 lines
2.7 KiB
Nix
Raw Normal View History

2024-04-12 13:18:23 -07:00
{
2024-04-29 16:25:28 -07:00
lib,
2024-04-12 13:18:23 -07:00
config,
pkgs,
...
}: {
2025-03-10 23:10:36 -07:00
# services.pipewire.wireplumber.extraConfig = {
# "wireplumber.settings" = {
# "device.routes.default-source-volume" = 0.42;
# };
# };
2025-03-09 00:17:24 -08:00
services.rsyslogd = {
enable = true;
extraConfig = ''
module(load="imudp")
input(type="imudp" port="514")
THENAS.* -/var/log/THENAS
'';
};
2024-07-22 13:44:57 -07:00
# boot.kernelPatches = [
# (lib.mkIf (lib.versionOlder config.boot.kernelPackages.kernel.version "6.11")
# {
# name = "cros_ec_lpc";
# patch = pkgs.fetchpatch {
# url = "https://patchwork.kernel.org/series/840830/mbox/";
# sha256 = "sha256-7jSEAGInFC+a+ozCyD4dFz3Qgh2JrHskwz7UfswizFw=";
# };
# })
# ];
2024-04-20 18:47:52 -07:00
# nixpkgs.overlays = [
# (final: prev: {
# libinput = prev.libinput.overrideAttrs (old: {
# patches =
# (old.patches or [])
# ++ [
# ../extras/libinput-delay.patch
# ];
# });
# })
# ];
2024-04-19 00:07:50 -07:00
2023-07-17 16:41:11 -07:00
environment.systemPackages = with pkgs; [
2024-07-20 19:57:50 -07:00
fw-ectool
2024-04-09 10:51:12 -07:00
framework-tool
2024-04-04 02:50:30 -07:00
nvtopPackages.amd
2023-07-17 16:41:11 -07:00
];
2024-03-18 14:50:43 -07:00
services.fwupd.enable = true;
2024-04-25 15:48:29 -07:00
services.tailscale.useRoutingFeatures = "client";
2024-04-22 12:38:23 -07:00
systemd.services."backlight@backlight:amdgpu_bl2".enable = false;
2024-04-25 15:48:29 -07:00
nix.buildMachines = [
{
hostName = "nocomputer";
systems = ["x86_64-linux" "i686-linux"];
2024-07-17 15:25:57 -07:00
supportedFeatures = [
"benchmark"
"big-parallel"
"gccarch-znver4"
"kvm"
"nixos-test"
];
2024-04-25 15:48:29 -07:00
}
];
nix.extraOptions = ''
builders-use-substitutes = true
'';
nix.distributedBuilds = true;
2024-04-01 16:36:43 -07:00
services.udev.extraRules = ''
2024-09-17 00:20:17 -07:00
# ACTION=="add", SUBSYSTEM=="backlight", RUN+="${pkgs.coreutils}/bin/chgrp video /sys/class/backlight/%k/brightness"
# ACTION=="add", SUBSYSTEM=="backlight", RUN+="${pkgs.coreutils}/bin/chmod g+w /sys/class/backlight/%k/brightness"
2025-01-21 13:18:55 -08:00
2025-02-25 17:29:04 -08:00
# ACTION=="add|change", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="32ac", ATTRS{idProduct}=="0012", ATTR{power/wakeup}="disabled"
# ACTION=="add|change", KERNEL=="i2c", SUBSYSTEM=="i2c", DEVPATH=="/sys/devices/platform/AMDI0010:03/i2c-1/i2c-PIXA3854:00", ATTR{power/wakeup}="disabled"
2024-04-01 16:36:43 -07:00
'';
2024-10-14 01:03:54 -07:00
services.fprintd.enable = true;
2024-03-24 16:39:32 -07:00
boot.kernelPackages = pkgs.linuxPackages_latest;
2024-10-13 21:17:25 -07:00
# boot.initrd.availableKernelModules = [
# "nvme"
# "sd_mod"
# "thunderbolt"
# "usb_storage"
# "xhci_pci"
# "usbhid"
# "uas"
# ];
2024-03-24 16:39:32 -07:00
boot.kernelParams = [
2024-04-04 02:50:30 -07:00
"amdgpu.abmlevel=1"
2025-01-05 23:59:35 -08:00
"amdgpu.dcdebugmask=0x400"
2025-03-12 16:39:24 -07:00
"mem_sleep_default=deep"
2024-03-24 16:39:32 -07:00
];
2024-10-13 21:17:25 -07:00
# boot.kernelModules = ["kvm-amd"];
2024-03-24 16:39:32 -07:00
powerManagement.cpuFreqGovernor = "powersave";
2024-07-17 15:25:57 -07:00
systemd.sleep.extraConfig = "HibernateDelaySec=360m";
2024-03-24 16:39:32 -07:00
2023-07-17 16:41:11 -07:00
networking.hostName = "NOlaptop";
2023-07-11 00:38:39 -07:00
}