nixos/home/hyprland/default.nix

73 lines
1.8 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, catppuccin-themes, ... }:
{
imports = [
./wlogout/default.nix
./waybar/default.nix
./swaync/default.nix
./rofi/default.nix
./anyrun.nix
./swaylock.nix
./gtk.nix
];
home.packages = with pkgs; [
libsForQt5.polkit-kde-agent
mc
signal-desktop
ferdium
libreoffice
zotero
minesweep-rs
];
programs = {
firefox.package = pkgs.firefox-wayland;
rofi = {
package = pkgs.rofi-wayland;
terminal = "${pkgs.alacritty}/bin/alacritty";
2023-09-05 18:44:29 +01:00
pass.extraConfig = ''
backend=wtype
clibpoard_backend=wl-clipboard
'';
};
};
services.kanshi = {
enable = true;
systemdTarget = "hyprland-session.target";
};
stylix.targets.hyprland.enable = true;
wayland.windowManager.hyprland = {
enable = true;
2023-09-11 23:04:29 +01:00
xwayland.enable = true;
systemdIntegration = true;
extraConfig = import ./config.nix {
inherit config pkgs;
2023-09-07 09:26:16 +01:00
theme = catppuccin-themes.hyprland;
};
};
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/macchiato.conf".source = ./macchiato.conf;
"hypr/extra.conf" = lib.mkDefault { text = ""; };
};
mimeApps = let
associations = {
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" ];
"application/pdf" = [ "zathura.desktop" "emacs.desktop" ];
"application/json" = [ "emacs.desktop" "firefox.desktop" ];
"application/x-yaml" = [ "emacs.desktop" ];
"text/csv" = [ "calc.desktop" "emacs.desktop" ];
2023-09-13 17:43:20 +01:00
};
in {
enable = true;
defaultApplications = associations;
associations.added = associations;
2023-09-13 17:43:20 +01:00
};
};
}