Files
nix-config/programs/wm/hyprland/default.nix

51 lines
1.0 KiB
Nix

{
pkgs,
...
}:
{
imports = [
./hyprland.nix
./hypridle.nix
./hyprlock.nix
];
home.packages = with pkgs; [
grim
slurp
wl-clipboard
];
home.file.".config/hypr" = {
source = ./configs;
# copy the scripts directory recursively
recursive = true;
};
home.file.".config/hypr/avatar" = {
source = ../../../avatar;
recursive = true;
};
home.file = {
"Pictures/Avatar" = {
source = ../../../avatar;
recursive = true;
};
};
home.pointerCursor = {
gtk.enable = true;
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Classic";
size = 16;
};
home.file.".config/hypr/hyprland.conf".enable = false;
# NOTE: this executable is used by greetd to start a wayland session when system boot up
# with such a vendor-no-locking script, we can switch to another wayland compositor without modifying greetd's config in NixOS module
home.file.".wayland-session" = {
source = "${pkgs.hyprland}/bin/Hyprland";
executable = true;
};
}