Files
nixos/common/modules/services.nix

88 lines
1.6 KiB
Nix
Raw Normal View History

2025-10-30 18:26:18 +01:00
{
config,
pkgs,
lib,
...
2026-03-23 21:24:20 +01:00
}: {
2025-10-30 18:26:18 +01:00
services = {
sshd.enable = true;
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
2025-11-03 14:44:57 +01:00
2026-02-25 18:12:17 +01:00
geoclue2.enable = true;
2025-10-30 18:26:18 +01:00
xserver = {
enable = true;
excludePackages = with pkgs; [
xterm
];
xkb = {
layout = "cz";
variant = "";
};
};
2025-11-03 14:44:57 +01:00
2025-10-30 18:26:18 +01:00
pulseaudio.enable = false;
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
};
2026-02-01 20:55:16 +01:00
2025-11-04 07:50:55 +01:00
printing = {
enable = true;
drivers = [
pkgs.brlaser
];
};
avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
2025-10-30 22:02:55 +01:00
journald.extraConfig = ''
SystemMaxUse=2G
RuntimeMaxUse=1G
SystemMaxFiles=100
'';
2025-11-03 14:44:57 +01:00
2025-10-30 22:02:55 +01:00
zram-generator = {
enable = true;
settings = {
"zram0" = {
"zram-size" = "ram*1.5";
"compression-algorithm" = "zstd";
};
};
};
2025-11-03 14:44:57 +01:00
btrfs = {
autoScrub = {
enable = lib.any (fs: fs.fsType == "btrfs") (lib.attrValues config.fileSystems);
2025-11-03 14:44:57 +01:00
interval = "monthly";
2025-10-30 22:02:55 +01:00
};
};
2025-11-03 14:44:57 +01:00
fstrim = {
enable = true;
interval = "weekly";
2025-10-30 22:02:55 +01:00
};
2025-12-26 14:47:54 +01:00
fwupd.enable = true;
2026-03-05 16:16:23 +01:00
udev.packages = with pkgs; [
platformio-core.udev
openocd
];
2025-11-03 14:44:57 +01:00
};
2025-10-30 18:26:18 +01:00
}