nixos-config/system/rainbowdash/default.nix

94 lines
2.6 KiB
Nix

{ config, pkgs, inputs, ... }:
{
imports = [
./boot-config.nix
./hardware-configuration.nix
../../sets/buildMachines.nix
../../sets/hacking.nix
../../sets/hardware.nix
../../sets/laptop.nix
../../sets/secureBoot.nix
../../sets/tpm.nix
../../sets/virtualization.nix
../../sets/workstation.nix
inputs.nixos-hardware.nixosModules.common-cpu-intel
inputs.nixos-hardware.nixosModules.common-gpu-intel
inputs.nixos-hardware.nixosModules.common-pc-laptop
inputs.nixos-hardware.nixosModules.common-pc-laptop-acpi_call
inputs.nixos-hardware.nixosModules.common-pc-ssd
];
boot.supportedFilesystems = [ "nfs4" ];
# Home
home-manager.users.artemis = {
wayland.windowManager.sway.config = {
output."eDP-1" = {
mode = "3840x2400@59.994Hz";
scale = "2";
};
input."1386:18753:Wacom_HID_4941_Finger".map_to_output = "eDP-1";
input."1739:52710:DLL096D:01_06CB:CDE6_Touchpad" = {
middle_emulation = "enabled";
click_method = "clickfinger";
};
startup = [{
command = "swayidle -w before-sleep 'light -O' after-resume 'light -I'";
always = true;
}];
};
xdg.configFile."rustybar/config.toml".text = ''
[[tile]]
type = "load"
[[tile]]
type = "memory"
[[tile]]
type = "hostname"
[[tile]]
type = "battery"
[[tile]]
format = "internet_time"
[[tile]]
type = "local_time"
format = "%Y-%m-%d %H:%M:%S %Z"
geoip_path = "${config.artemist.geoip}"
[[tile]]
type = "utc_time"
format = "%Y-%m-%d %H:%M:%S UTC"
'';
};
services.printing.drivers = with pkgs; [ cups-dymo ];
# Not in nixos-hardware for some reason
hardware.opengl.extraPackages = with pkgs; [ intel-compute-runtime ];
boot.blacklistedKernelModules = [ "psmouse" ];
hardware.enableRedistributableFirmware = true;
services = {
fwupd.enable = true;
thermald.enable = true;
tlp.enable = true;
tlp.settings = {
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
PLATFORM_PROFILE_ON_AC = "performance";
PLATFORM_PROFILE_ON_BAT = "low-power";
CPU_BOOST_ON_AC = 1;
CPU_BOOST_ON_BAT = 0;
RUNTIME_ASPM_ON_AC = "default";
RUNTIME_ASPM_ON_BAT = "powersave";
CPU_DRIVER_OPMODE_ON_AC = "passive";
CPU_DRIVER_OPMODE_ON_BAT = "passive";
CPU_SCALING_GOVERNOR_ON_AC = "schedutil";
CPU_SCALING_GOVERNOR_ON_BAT = "schedutil";
};
};
networking.domain = "manehattan.artem.ist";
networking.hostName = "rainbowdash";
system.stateVersion = "20.03";
}