pointfichiers/de/hypr/default.nix

99 lines
2.1 KiB
Nix
Raw Normal View History

2024-09-16 14:59:29 +02:00
{
inputs,
2024-09-16 14:59:29 +02:00
pkgs,
...
}: {
2024-09-16 14:59:29 +02:00
home.file = {
".config/hypr/hyprland.conf.d".source = ./hyprland.conf.d;
# Gamemode script
".config/hypr/gamemode.sh" = {
source = ./gamemode.sh;
executable = true;
};
# Hyprland launch wrapper
".local/bin/Hyprland-wrapper" = {
source = ../../bin/Hyprland-wrapper;
executable = true;
};
# UWU launcher script
".local/bin/uwu-launcher" = {
source = ../../bin/uwu-launcher;
executable = true;
};
# Togglescreen script
".local/bin/togglescreen" = {
source = ../../bin/togglescreen;
executable = true;
};
# Wallpaperctl script
".local/bin/wallpaperctl" = {
source = ../../bin/wallpaperctl;
executable = true;
};
# Lock script
".local/bin/swaylock-hyprland" = {
source = ../../bin/swaylock-hyprland;
executable = true;
};
2024-09-16 14:59:29 +02:00
};
home.packages = with pkgs; [
egl-wayland # For NVIDIA compatibility
xdg-utils
xdg-desktop-portal-hyprland
# Common DE packages required in config
wl-clipboard
grim
slurp
hyprpicker
udiskie
swww
swaylock-effects
brightnessctl
2024-10-12 19:08:57 +02:00
networkmanagerapplet
# Apps launchable from bindings
kitty
yazi
# Yazi requirements
ffmpegthumbnailer
poppler
imagemagick
# Other apps
vlc
qbittorrent
webcord
# Firefox PWA
firefoxpwa
];
home.pointerCursor = {
gtk.enable = true;
# x11.enable = true;
package = pkgs.bibata-cursors;
name = "Bibata-Modern-Classic";
size = 24;
};
2024-09-16 14:59:29 +02:00
wayland.windowManager.hyprland = {
enable = true;
package = inputs.hyprland.packages.${pkgs.system}.hyprland;
2024-09-16 14:59:29 +02:00
extraConfig = builtins.readFile ./hyprland.conf;
plugins = [inputs.hy3.packages.${pkgs.system}.hy3];
2024-09-16 14:59:29 +02:00
};
home.sessionVariables.NIXOS_OZONE_WL = "1";
2024-09-18 14:55:52 +02:00
2024-11-14 12:22:27 +01:00
programs.firefox = {
enable = true;
nativeMessagingHosts = [pkgs.firefoxpwa];
};
2024-09-18 14:55:52 +02:00
# bar is required
2024-09-18 15:00:31 +02:00
imports = [
2024-09-18 14:55:52 +02:00
../../bar
../../term/alacritty
../../misc/swayosd
../../misc/anyrun
../../misc/end-rs
2024-09-18 15:00:31 +02:00
];
2024-09-16 14:59:29 +02:00
}