nixos/home/hyprland/default.nix
Evie Litherland-Smith afd5c3c5c7 Add udiskie service, syncthing tray
Add systemd tray target to enable proper tray integration
2023-11-09 11:42:12 +00:00

48 lines
1.2 KiB
Nix

{ config, lib, pkgs, ... }:
{
imports = [ ./waybar/default.nix ./gtk.nix ./mako.nix ./rofi.nix ];
services = {
avizo.enable = true;
udiskie = {
enable = true;
notify = true;
automount = true;
tray = "auto";
};
syncthing = {
enable = true;
tray.enable = true;
};
};
wayland.windowManager.hyprland = {
enable = true;
xwayland.enable = true;
systemd.enable = true;
extraConfig = import ./config.nix { inherit config pkgs; };
};
xdg = {
configFile = {
"hypr/hyprpaper.conf".text = ''
preload = ${config.stylix.image}
wallpaper = ,${config.stylix.image}
'';
"hypr/extra.conf" = lib.mkDefault { text = ""; };
};
mimeApps = rec {
enable = true;
defaultApplications = {
"image/jpeg" = [ "swayimg.desktop" ];
"image/png" = [ "swayimg.desktop" ];
"video/mp4" = [ "mpv.desktop" ];
"application/pdf" = [ "zathura.desktop" ];
"application/json" = [ "emacs.desktop" ];
"application/x-yaml" = [ "emacs.desktop" ];
"text/csv" = [ "calc.desktop" ];
"x-scheme-handler/msteams" = [ "teams-for-linux.desktop" ];
};
associations.added = defaultApplications;
};
};
}