2023-06-27 17:41:01 -04:00
|
|
|
{ pkgs, config, ... }: let
|
2023-06-27 10:13:14 -04:00
|
|
|
|
2023-07-19 19:21:38 -04:00
|
|
|
configDir = "/home/matt/.nix/config";
|
2023-06-27 10:13:14 -04:00
|
|
|
|
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 {
|
|
|
|
src = builtins.fetchTarball "https://github.com/hyprwm/Hyprland/archive/master.tar.gz";
|
|
|
|
}).defaultNix;
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
|
|
|
home.packages = [
|
2023-09-18 17:39:10 -04:00
|
|
|
(builtins.getFlake "github:Aylur/ags").packages.x86_64-linux.default
|
2023-08-27 10:31:41 -04:00
|
|
|
pkgs.sassc
|
2023-07-06 16:13:25 -04:00
|
|
|
pkgs.kora-icon-theme
|
2023-08-16 23:28:58 -04:00
|
|
|
pkgs.coloryou
|
2023-06-24 04:59:54 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
hyprland.homeManagerModules.default
|
|
|
|
];
|
|
|
|
|
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
2023-09-13 16:48:45 -04:00
|
|
|
package = (builtins.getFlake "github:hyprwm/Hyprland").packages.x86_64-linux.default;
|
2023-06-24 04:59:54 -04:00
|
|
|
|
|
|
|
plugins = [
|
2023-09-06 17:34:42 -04:00
|
|
|
"${(builtins.getFlake "github:horriblename/hyprgrass").packages.x86_64-linux.default}/lib/libhyprgrass.so"
|
2023-06-24 04:59:54 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
extraConfig = ''
|
2023-07-05 21:59:23 -04:00
|
|
|
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
|
2023-07-06 16:13:25 -04:00
|
|
|
$kora = "$HOME/.config/share"
|
2023-06-27 10:13:14 -04:00
|
|
|
|
2023-09-07 23:18:39 -04:00
|
|
|
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
|
2023-06-27 10:13:14 -04:00
|
|
|
|
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
|
|
|
|
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 = {
|
2023-07-06 16:13:25 -04:00
|
|
|
"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";
|
2023-06-27 10:13:14 -04:00
|
|
|
};
|
2023-06-24 04:59:54 -04:00
|
|
|
}
|