feat(hypr): add stuff to make development easier
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
22267e6c2e
commit
a793ff8a13
6 changed files with 29 additions and 4 deletions
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
BIN
flake.nix
BIN
flake.nix
Binary file not shown.
|
@ -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";
|
||||
|
|
|
@ -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
18
modules/hyprland/dev.nix
Normal 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
|
||||
)
|
||||
'')
|
||||
];
|
||||
}
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue