mirror of
https://git.sr.ht/~azikx/wyswort
synced 2024-10-30 09:06:19 +00:00
69 lines
1.7 KiB
Nix
69 lines
1.7 KiB
Nix
{ pkgs, ... }: {
|
|
# SERVICES ANY PROGRAM
|
|
services = {
|
|
getty.autologinUser = "megamozg";
|
|
xserver = { # XORG?
|
|
xkb = {
|
|
layout = "us";
|
|
variant = "qwerty";
|
|
options = "grp:caps_toggle";
|
|
};
|
|
};
|
|
tailscale = { # OWN VPN NETWORK
|
|
enable = true;
|
|
useRoutingFeatures = "both";
|
|
};
|
|
system76-scheduler = { # PERFORMANCEE
|
|
enable = false;
|
|
settings = {
|
|
cfsProfiles.enable = true;
|
|
processScheduler.pipewireBoost.enable = true;
|
|
};
|
|
};
|
|
fprintd = { # FINGER PRINT
|
|
enable = true;
|
|
package = pkgs.fprintd-tod;
|
|
tod = {
|
|
enable = true;
|
|
driver = pkgs.libfprint-2-tod1-vfs0090;
|
|
};
|
|
};
|
|
tlp = { # BATTERY
|
|
enable = true;
|
|
settings = {
|
|
TLP_DEFAULT_MODE = "BAT";
|
|
|
|
# NETWORKING
|
|
WIFI_PWR_ON_AC = "off";
|
|
WIFI_PWR_ON_BAT = "on";
|
|
|
|
# CPU
|
|
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
|
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
|
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
|
CPU_ENERGY_PERF_POLICY_ON_AC = "balance_performance";
|
|
CPU_BOOST_ON_AC = 1;
|
|
CPU_BOOST_ON_BAT = 1;
|
|
|
|
# GRAPHICS
|
|
RADEON_DPM_STATE_ON_AC = "performance";
|
|
RADEON_DPM_STATE_ON_BAT = "battery";
|
|
RADEON_POWER_PROFILE_ON_AC = "default";
|
|
RADEON_POWER_PROFILE_ON_BAT = "default";
|
|
|
|
# IDK
|
|
RUNTIME_PM_ON_AC = "auto";
|
|
RUNTIME_PM_ON_BAT = "auto";
|
|
USB_AUTOSUSPEND = 0;
|
|
};
|
|
};
|
|
resolved = { enable = true; };
|
|
|
|
dbus.implementation = "broker";
|
|
upower.enable = true;
|
|
thermald.enable = true;
|
|
# thinkfan.enable = true;
|
|
gvfs.enable = true;
|
|
};
|
|
}
|