nixos/home/hyprland/default.nix

51 lines
1.7 KiB
Nix

{ config, lib, pkgs, ... }: {
home.packages = with pkgs; [ grim slurp signal-desktop webcord ];
imports = [ ./waybar/default.nix ./rofi/default.nix ./gtk.nix ./mako.nix ];
services = {
avizo.enable = true;
syncthing.enable = true;
udiskie = {
enable = true;
notify = true;
automount = true;
tray = "never";
};
};
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" ];
"text/csv" = [ "calc.desktop" ];
"text/html" = [ "nyxt.desktop" ];
"x-scheme-handler/http" = [ "nyxt.desktop" ];
"x-scheme-handler/https" = [ "nyxt.desktop" ];
"x-scheme-handler/about" = [ "nyxt.desktop" ];
"x-scheme-handler/chrome" = [ "nyxt.desktop" ];
"application/x-extension-htm" = [ "nyxt.desktop" ];
"application/x-extension-html" = [ "nyxt.desktop" ];
"application/x-extension-shtml" = [ "nyxt.desktop" ];
"application/xhtml+xml" = [ "nyxt.desktop" ];
"application/x-extension-xhtml" = [ "nyxt.desktop" ];
"application/x-extension-xht" = [ "nyxt.desktop" ];
};
associations.added = defaultApplications;
};
};
}