finding hyprland.conf error
This commit is contained in:
@@ -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 = {
|
||||
enable = true;
|
||||
# Disable the default config to avoid conflicts
|
||||
extraConfig = "";
|
||||
};
|
||||
|
||||
# Home Manager configuration
|
||||
@@ -29,25 +20,61 @@ in
|
||||
home.homeDirectory =
|
||||
config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}";
|
||||
|
||||
# Enable Hyprland in Home Manager
|
||||
wayland.windowManager.hyprland = {
|
||||
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 = {
|
||||
# First create the directory
|
||||
"hypr/.keep" = {
|
||||
text = "";
|
||||
};
|
||||
};
|
||||
|
||||
# Create symlinks for all other files except hyprland.conf
|
||||
home.file = lib.genAttrs hyprlandFiles (name: {
|
||||
target = ".config/hypr/${name}";
|
||||
source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
|
||||
});
|
||||
# Then add all your config files
|
||||
"hypr/hyprland.conf" = {
|
||||
source = "${flakeRoot}/assets/hyprland/conf/hypr/hyprland.conf";
|
||||
};
|
||||
"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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user