dotfiles/modules/services/default.nix

39 lines
764 B
Nix
Raw Normal View History

2021-09-14 20:55:50 +02:00
{ config, lib, pkgs, ... }:
{
2021-11-22 11:09:21 +01:00
imports = [
./agenix.nix
./diskstation
2022-03-23 12:33:54 +01:00
./dunst.nix
2022-01-24 12:40:44 +01:00
./gpg.nix
2021-11-22 11:09:21 +01:00
./kdeconnect.nix
2022-01-21 22:03:23 +01:00
./keyring.nix
2022-03-07 12:02:20 +01:00
./openvpn.nix
2021-11-22 11:09:21 +01:00
./picom.nix
];
2021-09-29 13:06:28 +02:00
services = {
2022-01-09 14:07:54 +01:00
printing = {
enable = true;
drivers = with pkgs; [ epson-escpr2 epson-escpr ];
};
avahi = lib.mkIf config.services.printing.enable {
2021-11-08 14:28:35 +01:00
enable = true;
nssmdns = true;
};
2021-09-29 13:06:28 +02:00
pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
};
2022-01-09 14:07:54 +01:00
redshift.enable = true;
2022-01-09 14:11:24 +01:00
btrfs.autoScrub.enable = lib.mkDefault
(builtins.any (filesystem: filesystem.fsType == "btrfs")
(builtins.attrValues config.fileSystems));
2021-12-24 12:44:39 +01:00
};
location = {
latitude = 52.3;
longitude = 12.4;
2021-09-29 13:06:28 +02:00
};
2021-09-14 20:55:50 +02:00
}