switched to dentritic pattern and cleaned up config

This commit is contained in:
2026-08-30 13:24:46 +02:00
parent 325f4a0e0c
commit 47325d4031
133 changed files with 565 additions and 1865 deletions
+38
View File
@@ -0,0 +1,38 @@
{ ... }:
let
defaultBrowser = "zen-beta";
in
{
flake.modules.nixos.hyprland = { ... }: {
programs.hyprland = {
enable = true;
withUWSM = true;
xwayland.enable = true;
};
};
flake.modules.homeManager.hyprland = { pkgs, config, ... }: {
home.packages = [
pkgs.hyprpicker
];
xdg.configFile = {
"hypr/hyprland.lua".source = config.lib.file.mkOutOfStoreSymlink ./hyprland/hyprland.lua;
# The stups get linked to the config directory as well in order to use the autocomplete without copying it over in other places.
"hypr/hl.meta.lua".source = config.lib.file.mkOutOfStoreSymlink ./hyprland/hl.meta.lua;
"hypr/hypridle.conf".source = config.lib.file.mkOutOfStoreSymlink ./hyprland/hypridle.conf;
"backgrounds".source = config.lib.file.mkOutOfStoreSymlink ./backgrounds;
"hypr/nix.conf".text = ''
$defaultBrowser=${defaultBrowser}
'';
"hypr/scripts/gpu-screen-recorder/save-replay.sh".source =
config.lib.file.mkOutOfStoreSymlink ./hyprland/scripts/gpu-screen-recorder/save-replay.sh;
"hypr/scripts/gpu-screen-recorder/start-replay.sh".source =
config.lib.file.mkOutOfStoreSymlink ./hyprland/scripts/gpu-screen-recorder/start-replay.sh;
};
};
}