50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{ profile, ... }: {
|
|
services = {
|
|
libinput.enable = true;
|
|
fstrim.enable = true;
|
|
gvfs.enable = true;
|
|
openssh = {
|
|
enable = true;
|
|
settings = {
|
|
PermitRootLogin = "no";
|
|
PasswordAuthentication = true;
|
|
KbdInteractiveAuthentication = true;
|
|
};
|
|
ports = [ 22 ];
|
|
};
|
|
blueman.enable = true;
|
|
tumbler.enable = true;
|
|
gnome.gnome-keyring.enable = true;
|
|
tailscale.enable = true;
|
|
|
|
smartd = {
|
|
enable =
|
|
if profile == "vm"
|
|
then false
|
|
else true;
|
|
autodetect = true;
|
|
};
|
|
pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
jack.enable = true;
|
|
};
|
|
|
|
# TLP for laptop power management
|
|
tlp = {
|
|
enable = true;
|
|
settings = {
|
|
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
|
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
|
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
|
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
|
START_CHARGE_THRESH_BAT0 = 40;
|
|
STOP_CHARGE_THRESH_BAT0 = 80;
|
|
};
|
|
};
|
|
thermald.enable = true;
|
|
};
|
|
}
|