Add elara sas specialisation
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -62,23 +62,17 @@
|
||||
];
|
||||
};
|
||||
|
||||
nixpkgs = {
|
||||
hostPlatform = "x86_64-linux";
|
||||
|
||||
config = {
|
||||
cudaSupport = true;
|
||||
rocmSupport = true;
|
||||
};
|
||||
nixpkgs.config = {
|
||||
cudaSupport = true;
|
||||
rocmSupport = true;
|
||||
};
|
||||
|
||||
powerManagement.enable = true;
|
||||
|
||||
systemd.services.powertop.postStart = builtins.readFile ./scripts/mouse.sh;
|
||||
|
||||
services = {
|
||||
xserver.videoDrivers = [ "nvidia" ];
|
||||
fstrim.enable = true;
|
||||
tlp.settings.DISK_DEVICES = "nvme0n1 nvme1n1";
|
||||
tlp.settings.DISK_DEVICES = lib.mkDefault "nvme0n1 nvme1n1";
|
||||
};
|
||||
|
||||
programs.gamescope.env = {
|
||||
@@ -100,7 +94,7 @@
|
||||
gestures.workspace_swipe_distance = 600;
|
||||
};
|
||||
|
||||
programs.zsh.loginExtra = lib.mkBefore (builtins.readFile ./scripts/card.sh);
|
||||
programs.zsh.loginExtra = lib.mkBefore (builtins.readFile ./card.sh);
|
||||
}
|
||||
];
|
||||
}
|
||||
|
@@ -1,14 +0,0 @@
|
||||
SEARCH_STRINGS=(
|
||||
"Mouse"
|
||||
"Razer DeathAdder Elite"
|
||||
"Razer DeathAdder V3 HyperSpeed"
|
||||
)
|
||||
|
||||
for search_string in "${SEARCH_STRINGS[@]}"; do
|
||||
echo "Searching for devices matching: $search_string"
|
||||
|
||||
for f in $(grep -l "$search_string" /sys/bus/usb/devices/*/product 2>/dev/null | sed "s/product/power\\/control/"); do
|
||||
echo "Setting power control to 'on' for: $f"
|
||||
echo on >| "$f"
|
||||
done
|
||||
done
|
Reference in New Issue
Block a user