Compare commits
4 Commits
87f30f8ace
...
621e97d8f1
Author | SHA1 | Date |
---|---|---|
Sam | 621e97d8f1 | |
Sam | ae64001bc7 | |
Sam | 9d287792c6 | |
Sam | c448a8c0cd |
|
@ -1,4 +1,4 @@
|
||||||
{ inputs, lib, pkgs, ... }:
|
{ inputs, lib, pkgs, config, ... }:
|
||||||
let
|
let
|
||||||
# Disko setup
|
# Disko setup
|
||||||
fsType = "btrfs"; # one of ext4 or btrfs. Use btrfs if using impermanence
|
fsType = "btrfs"; # one of ext4 or btrfs. Use btrfs if using impermanence
|
||||||
|
@ -32,13 +32,18 @@ in
|
||||||
../common/optional/dwm.nix
|
../common/optional/dwm.nix
|
||||||
../common/optional/nfs-mounts/music.nix
|
../common/optional/nfs-mounts/music.nix
|
||||||
../common/optional/printing.nix
|
../common/optional/printing.nix
|
||||||
|
../common/optional/backlight.nix
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
boot = {
|
boot = {
|
||||||
blacklistedKernelModules = [ "snd_hda_intel" "snd_soc_skl" ];
|
blacklistedKernelModules = [ "snd_hda_intel" "snd_soc_skl" ];
|
||||||
kernelModules = [ "iwlwifi" ];
|
kernelModules = [ "iwlwifi" ];
|
||||||
|
initrd.kernelModules = [ "thinkpad-acpi" "acpi-call" ];
|
||||||
kernelPackages = pkgs.linuxPackagesFor pkgs.linux_latest;
|
kernelPackages = pkgs.linuxPackagesFor pkgs.linux_latest;
|
||||||
|
extraModulePackages = [
|
||||||
|
config.boot.kernelPackages.acpi_call
|
||||||
|
];
|
||||||
loader = {
|
loader = {
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
|
@ -63,7 +68,24 @@ in
|
||||||
XCURSOR_SIZE = "64";
|
XCURSOR_SIZE = "64";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.tlp = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
CPU_SCALING_GOVERNOR_ON_AC = "ondemand";
|
||||||
|
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||||
|
|
||||||
|
START_CHARGE_THRESH_BAT0 = 80;
|
||||||
|
STOP_CHARGE_THRESH_BAT0 = 85;
|
||||||
|
|
||||||
|
USB_BLACKLIST_PHONE = 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
|
bluetooth = {
|
||||||
|
enable = true;
|
||||||
|
powerOnBoot = true;
|
||||||
|
};
|
||||||
enableRedistributableFirmware = true;
|
enableRedistributableFirmware = true;
|
||||||
firmware = [
|
firmware = [
|
||||||
pkgs.sof-firmware
|
pkgs.sof-firmware
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.brightnessctl
|
||||||
|
];
|
||||||
|
services.illum.enable = true;
|
||||||
|
}
|
Loading…
Reference in New Issue