1
0
Fork 0
mirror of https://git.sr.ht/~azikx/wyswort synced 2024-10-30 09:26:19 +00:00
wyswort/host/system/services.nix

69 lines
1.7 KiB
Nix
Raw Permalink Normal View History

2024-10-15 13:18:01 +00:00
{ 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";
2024-10-12 09:43:57 +00:00
2024-10-15 13:18:01 +00:00
# NETWORKING
WIFI_PWR_ON_AC = "off";
WIFI_PWR_ON_BAT = "on";
2024-10-12 09:43:57 +00:00
2024-10-15 13:18:01 +00:00
# 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;
2024-10-12 09:43:57 +00:00
2024-10-15 13:18:01 +00:00
# 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";
2024-10-12 09:43:57 +00:00
2024-10-15 13:18:01 +00:00
# IDK
RUNTIME_PM_ON_AC = "auto";
RUNTIME_PM_ON_BAT = "auto";
USB_AUTOSUSPEND = 0;
};
};
resolved = { enable = true; };
2024-10-12 09:43:57 +00:00
2024-10-15 13:18:01 +00:00
dbus.implementation = "broker";
upower.enable = true;
thermald.enable = true;
# thinkfan.enable = true;
gvfs.enable = true;
};
2024-10-12 09:43:57 +00:00
}