zaneyos/config/system/services.nix

40 lines
1.1 KiB
Nix

{ pkgs, config, lib, options, ... }:
{
# List services that you want to enable:
services.openssh.enable = true;
services.fstrim.enable = true;
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal
];
configPackages = [ pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-hyprland
pkgs.xdg-desktop-portal
];
};
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
hardware.pulseaudio.enable = false;
sound.enable = true;
security.rtkit.enable = true;
programs.thunar.enable = true;
services.gvfs.enable = true;
services.tumbler.enable = true;
hardware.bluetooth.enable = true; # enables support for Bluetooth
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
services.blueman.enable = true;
security.pam.services.swaylock = {
text = ''
auth include login
'';
};
networking.timeServers = options.networking.timeServers.default ++ [ "pool.ntp.org" ];
}