Add elara sas specialisation
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
{ inputs, ... }:
|
||||
{ inputs, system, ... }:
|
||||
{
|
||||
imports = [ inputs.nur.modules.nixos.default ];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
nixpkgs = {
|
||||
hostPlatform = system;
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
}
|
||||
|
@@ -2,4 +2,5 @@
|
||||
{
|
||||
environment.systemPackages = with pkgs; [ powertop ];
|
||||
powerManagement.powertop.enable = true;
|
||||
systemd.services.powertop.postStart = builtins.readFile ./mouse.sh;
|
||||
}
|
||||
|
13
hosts/common/configs/system/powertop/mouse.sh
Normal file
13
hosts/common/configs/system/powertop/mouse.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
SEARCH_STRINGS=(
|
||||
"Mouse"
|
||||
"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
|
@@ -8,11 +8,13 @@
|
||||
x = mkOption {
|
||||
type = int;
|
||||
description = "Base resolution width.";
|
||||
default = 1920;
|
||||
};
|
||||
|
||||
y = mkOption {
|
||||
type = int;
|
||||
description = "Base resolution height.";
|
||||
default = 1080;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -20,11 +22,13 @@
|
||||
x = mkOption {
|
||||
type = int;
|
||||
description = "Output resolution width.";
|
||||
default = 1920;
|
||||
};
|
||||
|
||||
y = mkOption {
|
||||
type = int;
|
||||
description = "Output resolution height.";
|
||||
default = 1080;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user