feat(hypr): add stuff to make development easier
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-06-24 11:46:08 -04:00
parent 22267e6c2e
commit a793ff8a13
6 changed files with 29 additions and 4 deletions

Binary file not shown.

BIN
flake.nix

Binary file not shown.

View file

@ -133,9 +133,12 @@ let
submodules = true;
};
hypr-official-plugins = mkHyprDep {
hyprland-plugins = mkHyprDep {
owner = "hyprwm";
repo = "hyprland-plugins";
# type = "path";
# path = "/home/matt/git/hyprland-plugins";
};
Hyprspace = mkHyprDep {
@ -264,7 +267,7 @@ let
{
owner = "Godiesc";
repo = "firefox-gx";
rev = "dde9941d4bf78b94d76bf06cccb2d1dce5372c56";
ref = "v.9.2";
}
{
name = "git-theme-src";

View file

@ -65,9 +65,13 @@ in {
# HOME-MANAGER CONFIG
home-manager.users.${mainUser} = {
imports = [
./dev.nix
# Plugins
./hyprgrass.nix
./hyprexpo.nix
# ./Hyprspace.nix
./inputs.nix
./style.nix
];

18
modules/hyprland/dev.nix Normal file
View file

@ -0,0 +1,18 @@
{pkgs, ...}: {
programs.bash.shellAliases = {
# https://wiki.hyprland.org/Contributing-and-Debugging/#lsp-and-formatting
"mkCMakeFiles" = "cmake -S . -B build/ -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON";
};
home.packages = [
(pkgs.writeShellScriptBin "testChanges" ''
rm -r /home/matt/git/$1/$2/{.cache,build}
nix flake update "$1"
nh os switch
(
cd "/home/matt/git/$1/$2"
nix develop /home/matt/git/$1 -c cmake -S . -B build/ -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
)
'')
];
}

View file

@ -1,10 +1,10 @@
{
hypr-official-plugins,
hyprland-plugins,
pkgs,
...
}: {
wayland.windowManager.hyprland = {
plugins = [hypr-official-plugins.packages.${pkgs.system}.hyprexpo];
plugins = [hyprland-plugins.packages.${pkgs.system}.hyprexpo];
settings = {
plugin = {