nixos-hardware for nolaptop

This commit is contained in:
Tao Tien 2024-04-25 15:48:29 -07:00
parent 9d368b6b17
commit 2730602b40
3 changed files with 19 additions and 19 deletions

View file

@ -21,23 +21,8 @@
nvtopPackages.amd
];
services.tailscale.useRoutingFeatures = "client";
nix.buildMachines = [
{
hostName = "nocomputer";
systems = ["x86_64-linux" "i686-linux"];
supportedFeatures = ["big-parallel" "kvm" "nixos-test" "benchmark"];
}
];
nix.extraOptions = ''
builders-use-substitutes = true
'';
nix.distributedBuilds = true;
services.power-profiles-daemon.enable = true;
services.fwupd.enable = true;
services.fprintd.enable = true;
services.tailscale.useRoutingFeatures = "client";
systemd.services."backlight@backlight:amdgpu_bl2".enable = false;
@ -79,6 +64,18 @@ AttrKeyboardIntegration=internal";
services.displayManager.defaultSession = "plasma";
services.displayManager.sddm.wayland.enable = true;
nix.buildMachines = [
{
hostName = "nocomputer";
systems = ["x86_64-linux" "i686-linux"];
supportedFeatures = ["big-parallel" "kvm" "nixos-test" "benchmark"];
}
];
nix.extraOptions = ''
builders-use-substitutes = true
'';
nix.distributedBuilds = true;
services.udev.extraRules = ''
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"