Files
dotfiles/modules/core/services.nix
T
2025-11-05 13:10:21 +09:00

54 lines
1.0 KiB
Nix

{ pkgs, ... }: {
services = {
blueman.enable = true; # Bluetooth Support
tumbler.enable = true; # Image/video preview
fwupd.enable = true;
gnome.gnome-keyring.enable = true;
upower.enable = true;
tlp = {
enable = true;
settings = {
WIFI_PWR_ON_AC = "off";
WIFI_PWR_ON_BAT = "off";
};
};
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
logind = {
lidSwitch = "suspend"; # Lock when lid is closed
lidSwitchDocked = "ignore"; # Ignore when docked
extraConfig = ''
HandleLidSwitchExternalPower=lock
LidSwitchIgnoreInhibited=no
'';
};
};
virtualisation.docker = {
enable = true;
autoPrune = {
enable = true;
dates = "weekly";
};
};
xdg.portal = {
enable = true;
wlr.enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-wlr
pkgs.xdg-desktop-portal-gtk
];
};
}