finding hyprland.conf error

This commit is contained in:
2026-03-15 12:32:05 +00:00
parent 1b20925abf
commit 7e49450163
+48 -21
View File
@@ -7,19 +7,10 @@
... ...
}: }:
let
hyprlandFiles = builtins.attrNames (
builtins.filter (name: name != "hyprland.conf") (
builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr"
)
);
in
{ {
# Basic Hyprland configuration # Enable Hyprland
programs.hyprland = { programs.hyprland = {
enable = true; enable = true;
# Disable the default config to avoid conflicts
extraConfig = "";
}; };
# Home Manager configuration # Home Manager configuration
@@ -29,25 +20,61 @@ in
home.homeDirectory = home.homeDirectory =
config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}"; config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}";
# Enable Hyprland in Home Manager
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
# Use our custom config file instead of the default
settings = {
configFile = "${flakeRoot}/assets/hyprland/conf/hypr/hyprland.conf";
};
}; };
# Create config directory and all other files # Create all the config files from your assets directory
xdg.configFile = { xdg.configFile = {
# First create the directory
"hypr/.keep" = { "hypr/.keep" = {
text = ""; text = "";
}; };
};
# Create symlinks for all other files except hyprland.conf # Then add all your config files
home.file = lib.genAttrs hyprlandFiles (name: { "hypr/hyprland.conf" = {
target = ".config/hypr/${name}"; source = "${flakeRoot}/assets/hyprland/conf/hypr/hyprland.conf";
source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}"; };
}); "hypr/animations.conf" = {
source = "${flakeRoot}/assets/hyprland/conf/hypr/animations.conf";
};
"hypr/behaviour.conf" = {
source = "${flakeRoot}/assets/hyprland/conf/hypr/behaviour.conf";
};
"hypr/bindings.conf" = {
source = "${flakeRoot}/assets/hyprland/conf/hypr/bindings.conf";
};
"hypr/exec-once.conf" = {
source = "${flakeRoot}/assets/hyprland/conf/hypr/exec-once.conf";
};
"hypr/hypridle.conf" = {
source = "${flakeRoot}/assets/hyprland/conf/hypr/hypridle.conf";
};
"hypr/hyprlock.conf" = {
source = "${flakeRoot}/assets/hyprland/conf/hypr/hyprlock.conf";
};
"hypr/layer-rules.conf" = {
source = "${flakeRoot}/assets/hyprland/conf/hypr/layer-rules.conf";
};
"hypr/layout.conf" = {
source = "${flakeRoot}/assets/hyprland/conf/hypr/layout.conf";
};
"hypr/monitor-rules.conf" = {
source = "${flakeRoot}/assets/hyprland/conf/hypr/monitor-rules.conf";
};
"hypr/theming.conf" = {
source = "${flakeRoot}/assets/hyprland/conf/hypr/theming.conf";
};
"hypr/variables.conf" = {
source = "${flakeRoot}/assets/hyprland/conf/hypr/variables.conf";
};
"hypr/window-rules.conf" = {
source = "${flakeRoot}/assets/hyprland/conf/hypr/window-rules.conf";
};
"hypr/workspace-rules.conf" = {
source = "${flakeRoot}/assets/hyprland/conf/hypr/workspace-rules.conf";
};
};
}; };
} }