mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:18:12 +09:00
54 lines
1.0 KiB
Nix
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
|
|
];
|
|
};
|
|
} |