nixos-configs/nixos/home/hyprland.nix

57 lines
2.1 KiB
Nix
Raw Normal View History

2023-09-29 23:46:34 -04:00
{ pkgs, config, hyprland, hyprgrass, ags, ... }: let
2023-07-19 19:21:38 -04:00
configDir = "/home/matt/.nix/config";
in
{
home.packages = [
2023-08-27 10:31:41 -04:00
pkgs.sassc
pkgs.kora-icon-theme
pkgs.coloryou
];
imports = [
hyprland.homeManagerModules.default
ags.homeManagerModules.default
];
programs.ags = {
enable = true;
2023-09-29 23:46:34 -04:00
package = ags.packages.x86_64-linux.default;
configDir = config.lib.file.mkOutOfStoreSymlink "${configDir}/ags";
};
wayland.windowManager.hyprland = {
enable = true;
2023-09-29 23:46:34 -04:00
package = hyprland.packages.x86_64-linux.default;
2023-09-29 00:34:18 -04:00
plugins = [
2023-09-29 23:46:34 -04:00
"${hyprgrass.packages.x86_64-linux.default}/lib/libhyprgrass.so"
];
extraConfig = ''
env = XDG_DATA_DIRS, ${pkgs.gsettings-desktop-schemas}/share/gsettings-schemas/${pkgs.gsettings-desktop-schemas.name}:${pkgs.gtk3}/share/gsettings-schemas/${pkgs.gtk3.name}:$XDG_DATA_DIRS
$kora = "$HOME/.config/share"
env = AGS_PATH, ${configDir}/ags/bin
2023-07-19 19:21:38 -04:00
env = HYPR_PATH, ${configDir}/hypr/scripts
2023-08-07 21:39:05 -04:00
env = LOCK_PATH, ${configDir}/gtklock/scripts
exec-once = ${pkgs.plasma5Packages.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1
source = ~/.config/hypr/main.conf
'';
};
2023-06-28 16:10:01 -04:00
# https://www.reddit.com/r/NixOS/comments/vc3srj/comment/iccqxw1/?utm_source=share&utm_medium=web2x&context=3
xdg.configFile = {
"share/icons/hicolor".source = "${pkgs.kora-icon-theme}/share/icons/kora-pgrey";
2023-07-09 13:08:30 -04:00
"../.themes/Dracula".source = "${pkgs.dracula-theme}/share/themes/Dracula";
"Kvantum/Dracula".source = "${pkgs.dracula-theme}/share/Kvantum/Dracula";
"Kvantum/Dracula-Solid".source = "${pkgs.dracula-theme}/share/Kvantum/Dracula-Solid";
"Kvantum/Dracula-purple".source = "${pkgs.dracula-theme}/share/Kvantum/Dracula-purple";
"Kvantum/Dracula-purple-solid".source = "${pkgs.dracula-theme}/share/Kvantum/Dracula-purple-solid";
2023-06-28 16:10:01 -04:00
"hypr/main.conf".source = config.lib.file.mkOutOfStoreSymlink "${configDir}/hypr/main.conf";
"hypr/hyprpaper.conf".source = config.lib.file.mkOutOfStoreSymlink "${configDir}/hypr/hyprpaper.conf";
};
}