mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 07:28:12 +09:00
87 lines
1.5 KiB
Nix
87 lines
1.5 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";
|
|
};
|
|
};
|
|
|
|
tailscale = {
|
|
enable = true;
|
|
extraUpFlags = [
|
|
"--accept-dns=false"
|
|
"--accept-routes"
|
|
];
|
|
};
|
|
|
|
pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
jack.enable = true;
|
|
wireplumber.enable = true;
|
|
};
|
|
|
|
logind = {
|
|
settings.Login = {
|
|
HandleLidSwitch = "suspend";
|
|
HandleLidSwitchDocked = "ignore";
|
|
HandleLidSwitchExternalPower = "ignore";
|
|
LidSwitchIgnoreInhibited = "no";
|
|
};
|
|
};
|
|
|
|
rpcbind.enable = true;
|
|
};
|
|
|
|
|
|
virtualisation.docker = {
|
|
enable = true;
|
|
autoPrune = {
|
|
enable = true;
|
|
dates = "weekly";
|
|
};
|
|
daemon.settings = {
|
|
ipv6 = true;
|
|
"fixed-cidr-v6" = "fd00:30::/64";
|
|
ip6tables = true;
|
|
};
|
|
};
|
|
|
|
programs.nix-ld.enable = true;
|
|
security.rtkit.enable = true;
|
|
|
|
xdg.portal = {
|
|
enable = true;
|
|
wlr.enable = true;
|
|
extraPortals = [
|
|
pkgs.xdg-desktop-portal-wlr
|
|
pkgs.xdg-desktop-portal-gtk
|
|
];
|
|
xdgOpenUsePortal = true;
|
|
config = {
|
|
common.default = [
|
|
"wlr"
|
|
"gtk"
|
|
];
|
|
niri.default = [
|
|
"wlr"
|
|
"gtk"
|
|
];
|
|
};
|
|
};
|
|
}
|