Fixes
This commit is contained in:
parent
0714cff4ce
commit
a25a6a1d06
@ -78,7 +78,6 @@ with import ../support.nix { inherit lib config; }; {
|
||||
"x-scheme-handler/https" = browser;
|
||||
"x-scheme-handler/about" = browser;
|
||||
"x-scheme-handler/unknown" = browser;
|
||||
"x-scheme-handler/viewtube" = viewtube;
|
||||
# "x-scheme-handler/mailto" = mail;
|
||||
# "application/pdf" = { desktop = "org.kde.okular"; };
|
||||
# "application/vnd.openxmlformats-officedocument.wordprocessingml.document" =
|
||||
|
@ -1,4 +1,8 @@
|
||||
{ pkgs, config, lib, ... }: {
|
||||
{ pkgs, config, lib, ... }:
|
||||
with rec {
|
||||
inherit (config) deviceSpecific;
|
||||
};
|
||||
with deviceSpecific; {
|
||||
# programs.adb.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
@ -19,7 +23,7 @@
|
||||
libva-utils
|
||||
lm_sensors
|
||||
libnotify
|
||||
youtube-to-mpv
|
||||
(youtube-to-mpv.override { isLaptop = isLaptop; })
|
||||
# Other
|
||||
(vivaldi.override { proprietaryCodecs = true; })
|
||||
wget
|
||||
@ -32,7 +36,7 @@
|
||||
tdesktop
|
||||
spotifywm
|
||||
youtube-dl
|
||||
] ++ lib.optionals config.deviceSpecific.isLaptop [
|
||||
] ++ lib.optionals isLaptop [
|
||||
# Important
|
||||
acpi
|
||||
light
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
{ stdenv, pkgs }:
|
||||
{ stdenv, pkgs, isLaptop ? false }:
|
||||
let
|
||||
myScript = if config.deviceSpecific.isLaptop then
|
||||
myScript = if isLaptop then
|
||||
pkgs.writeShellScriptBin "yt-mpv" ''
|
||||
BATTERY="`${pkgs.acpi}/bin/acpi -b | grep --invert-match unavailable | head -1`"
|
||||
STATUS=`awk -F'[,:] ' '{print $2}' <<< "$BATTERY"`
|
||||
|
@ -9,11 +9,18 @@ with deviceSpecific; {
|
||||
extraConfig = ''
|
||||
# To avoid filesystem corruption on btrfs formatted partitions
|
||||
SATA_LINKPWR_ON_BAT=max_performance
|
||||
# Recommended
|
||||
CPU_SCALING_GOVERNOR_ON_AC=powersave
|
||||
CPU_SCALING_GOVERNOR_ON_BAT=powersave
|
||||
CPU_HWP_ON_AC=balance_performance
|
||||
CPU_HWP_ON_BAT=balance_power
|
||||
CPU_BOOST_ON_AC=1
|
||||
CPU_BOOST_ON_BAT=0
|
||||
'';
|
||||
};
|
||||
services.undervolt = {
|
||||
enable = (device == "Dell-Laptop");
|
||||
coreOffset = "-120";
|
||||
gpuOffset = "-54";
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -11,6 +11,6 @@ with deviceSpecific; {
|
||||
else
|
||||
"bestvideo+bestaudio/best";
|
||||
# cache-default = 4000000;
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user