nixos/home/hyprland/default.nix

51 lines
1.7 KiB
Nix
Raw Normal View History

2023-12-04 06:42:34 +00:00
{ config, lib, pkgs, ... }: {
home.packages = with pkgs; [ grim slurp signal-desktop ];
imports = [ ./waybar/default.nix ./rofi/default.nix ./gtk.nix ./mako.nix ];
services = {
avizo.enable = true;
2023-11-09 11:54:55 +00:00
syncthing.enable = true;
udiskie = {
enable = true;
notify = true;
automount = true;
2023-11-09 11:54:55 +00:00
tray = "never";
};
};
wayland.windowManager.hyprland = {
enable = true;
2023-09-11 23:04:29 +01:00
xwayland.enable = true;
2023-10-16 13:19:38 +01:00
systemd.enable = true;
extraConfig = import ./config.nix { inherit config pkgs; };
};
2023-09-13 17:43:20 +01:00
xdg = {
configFile = {
"hypr/hyprpaper.conf".text = ''
preload = ${config.stylix.image}
wallpaper = ,${config.stylix.image}
2023-09-13 17:43:20 +01:00
'';
"hypr/extra.conf" = lib.mkDefault { text = ""; };
};
mimeApps = rec {
enable = true;
defaultApplications = {
2023-09-13 17:43:20 +01:00
"image/jpeg" = [ "swayimg.desktop" ];
"image/png" = [ "swayimg.desktop" ];
2023-09-14 05:57:45 +01:00
"video/mp4" = [ "mpv.desktop" ];
2023-10-11 16:09:34 +01:00
"text/csv" = [ "calc.desktop" ];
"text/html" = [ "firefox.desktop" ];
"x-scheme-handler/http" = [ "firefox.desktop" ];
"x-scheme-handler/https" = [ "firefox.desktop" ];
"x-scheme-handler/about" = [ "firefox.desktop" ];
"x-scheme-handler/chrome" = [ "firefox.desktop" ];
"application/x-extension-htm" = [ "firefox.desktop" ];
"application/x-extension-html" = [ "firefox.desktop" ];
"application/x-extension-shtml" = [ "firefox.desktop" ];
"application/xhtml+xml" = [ "firefox.desktop" ];
"application/x-extension-xhtml" = [ "firefox.desktop" ];
"application/x-extension-xht" = [ "firefox.desktop" ];
2023-09-13 17:43:20 +01:00
};
associations.added = defaultApplications;
2023-09-13 17:43:20 +01:00
};
};
}