pub-solar-os/profiles/laptop/default.nix

63 lines
1.5 KiB
Nix
Raw Normal View History

{ config, pkgs, lib, ... }: {
2020-06-13 00:42:23 +00:00
environment.systemPackages = with pkgs; [
acpi
lm_sensors
wirelesstools
pciutils
2020-06-17 02:52:52 +00:00
usbutils
2020-06-13 00:42:23 +00:00
];
2020-06-09 16:38:51 +00:00
2020-06-14 18:30:24 +00:00
hardware.bluetooth.enable = true;
2020-06-09 16:38:51 +00:00
# to enable brightness keys 'keys' value may need updating per device
programs.light.enable = true;
services.actkbd = {
enable = true;
bindings = [
{
keys = [ 225 ];
events = [ "key" ];
command = "/run/current-system/sw/bin/light -A 5";
}
{
keys = [ 224 ];
events = [ "key" ];
command = "/run/current-system/sw/bin/light -U 5";
}
];
};
sound.mediaKeys = lib.mkIf (!config.hardware.pulseaudio.enable) {
2020-06-09 16:38:51 +00:00
enable = true;
volumeStep = "1dB";
};
# better timesync for unstable internet connections
services.chrony.enable = true;
services.timesyncd.enable = false;
# power management features
services.tlp.enable = true;
services.tlp.extraConfig = ''
CPU_SCALING_GOVERNOR_ON_AC=performance
CPU_SCALING_GOVERNOR_ON_BAT=powersave
CPU_HWP_ON_AC=performance
'';
services.logind.lidSwitch = "suspend";
2020-07-31 04:17:28 +00:00
nixpkgs.overlays =
let
light_ov = self: super: {
light = super.light.overrideAttrs (o: {
src = self.fetchFromGitHub {
owner = "haikarainen";
repo = "light";
rev = "ae7a6ebb45a712e5293c7961eed8cceaa4ebf0b6";
sha256 = "00z9bxrkjpfmfhz9fbf6mjbfqvixx6857mvgmiv01fvvs0lr371n";
};
});
};
in
[ light_ov ];
2020-06-09 16:38:51 +00:00
}