2023-06-24 04:59:54 -04:00
|
|
|
{ pkgs, ... }: let
|
2023-06-27 10:13:14 -04:00
|
|
|
|
|
|
|
configDir = "/home/matt/.nix/configs";
|
|
|
|
|
2023-06-24 04:59:54 -04:00
|
|
|
flake-compat = builtins.fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz";
|
|
|
|
|
|
|
|
hyprland = (import flake-compat {
|
|
|
|
# I use release version for plugin support
|
|
|
|
src = builtins.fetchTarball "https://github.com/hyprwm/Hyprland/archive/master.tar.gz";
|
|
|
|
}).defaultNix;
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
home.packages = [
|
|
|
|
(builtins.getFlake "github:hyprwm/Hyprland").packages.x86_64-linux.default
|
|
|
|
(builtins.getFlake "path:/home/matt/git/hyprland-touch-gestures").packages.x86_64-linux.default
|
|
|
|
];
|
|
|
|
|
|
|
|
home.sessionVariables = {
|
|
|
|
XDG_DATA_DIRS = "${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:\$XDG_DATA_DIRS";
|
|
|
|
};
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
hyprland.homeManagerModules.default
|
|
|
|
];
|
|
|
|
|
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
|
|
|
package = (builtins.getFlake "github:hyprwm/Hyprland").packages.x86_64-linux.default; # to be able to get the right ver from hyprctl version
|
|
|
|
|
|
|
|
plugins = [
|
|
|
|
"${(builtins.getFlake "path:/home/matt/git/hyprland-touch-gestures").packages.x86_64-linux.default}/lib/libtouch-gestures.so"
|
|
|
|
];
|
|
|
|
|
|
|
|
extraConfig = ''
|
2023-06-27 10:13:14 -04:00
|
|
|
env = XDG_DATA_DIRS, ${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:$XDG_DATA_DIRS
|
|
|
|
|
|
|
|
env = EWW_PATH, $HOME/.nix/configs/eww/scripts
|
|
|
|
env = HYPR_PATH, $HOME/.nix/configs/hypr/scripts
|
|
|
|
|
2023-06-24 04:59:54 -04:00
|
|
|
exec-once = ${pkgs.plasma5Packages.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1
|
|
|
|
source = ~/.config/hypr/main.conf
|
|
|
|
'';
|
|
|
|
};
|
2023-06-27 10:13:14 -04:00
|
|
|
|
|
|
|
xdg.configFile = {
|
|
|
|
"hypr/main.conf".source = "${configDir}/hypr/main.conf";
|
|
|
|
"hypr/hyprpaper.conf".source = "${configDir}/hypr/hyprpaper.conf";
|
|
|
|
};
|
2023-06-24 04:59:54 -04:00
|
|
|
}
|