Simon Bruder
80ee98058e
This configures the home profile for kanshi for an Acer B277K monitor. Since it is both larger than my previous monitor and has a higher resolution, a few things change with this. For one, my preferred setup is now to just have one monitor instead of having my laptop screen as a secondary display device. Therefore, logind should not suspend if the lid is closed. Since it fails to accurately detect when a dock is connected, it is configured to never suspend on lid switch when external power is connected. Another thing is that the high resolution makes it necessary to use a scaling factor, which is quite easy to configure with sway and kanshi. It does, however, not work for Xwayland clients (they render at a lower resolution and are scaled up with nearest-neighbor interpolation). That requires me to no longer force the qt backend to xcb for qutebrowser, because that significantly lowers the browsing experience. The setup for sayuri is still to be done.
65 lines
1.5 KiB
Nix
65 lines
1.5 KiB
Nix
{ config, lib, modulesPath, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
];
|
|
|
|
boot = {
|
|
kernelModules = [ "kvm-amd" ];
|
|
loader = {
|
|
grub.enable = false;
|
|
systemd-boot.enable = true;
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
initrd = {
|
|
availableKernelModules = [ "aesni_intel" "cryptd" "nvme" "sd_mod" "sdhci_pci" "usb_storage" "xhci_pci" ];
|
|
luks.devices = {
|
|
root = {
|
|
name = "root";
|
|
device = "/dev/disk/by-uuid/16d97095-34d2-4422-819c-d1ddc9c3ce1e";
|
|
preLVM = true;
|
|
allowDiscards = true;
|
|
};
|
|
};
|
|
};
|
|
extraModprobeConfig = ''
|
|
options thinkpad_acpi fan_control=1
|
|
'';
|
|
};
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/disk/by-uuid/cd7ed921-4b59-4de4-b39e-9679571ce034";
|
|
fsType = "btrfs";
|
|
options = [ "discard=async" "noatime" "compress=zstd" ];
|
|
};
|
|
|
|
"/boot" = {
|
|
device = "/dev/disk/by-uuid/861A-D1A2";
|
|
fsType = "vfat";
|
|
};
|
|
};
|
|
|
|
powerManagement = {
|
|
cpuFreqGovernor = "schedutil";
|
|
};
|
|
services.tlp = {
|
|
enable = true;
|
|
settings = {
|
|
START_CHARGE_THRESH_BAT0 = 75;
|
|
STOP_CHARGE_THRESH_BAT0 = 92;
|
|
USB_DENYLIST = lib.concatStringsSep " " [
|
|
];
|
|
};
|
|
};
|
|
|
|
# logind fails to detect that the system is still docked when the external
|
|
# monitor is switched off via dpms
|
|
services.logind.lidSwitchExternalPower = "ignore";
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
radeontop
|
|
];
|
|
}
|