finding hyprland.conf error
This commit is contained in:
@@ -8,12 +8,18 @@
|
||||
}:
|
||||
|
||||
let
|
||||
hyprlandFiles = builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr");
|
||||
hyprlandFiles = builtins.attrNames (
|
||||
builtins.filter (name: name != "hyprland.conf") (
|
||||
builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr"
|
||||
)
|
||||
);
|
||||
in
|
||||
{
|
||||
# Basic Hyprland configuration
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
# Disable the default config to avoid conflicts
|
||||
extraConfig = "";
|
||||
};
|
||||
|
||||
# Home Manager configuration
|
||||
@@ -25,16 +31,20 @@ in
|
||||
|
||||
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
|
||||
# Create config directory and all other files
|
||||
xdg.configFile = {
|
||||
"hypr/.keep" = {
|
||||
text = "";
|
||||
};
|
||||
};
|
||||
|
||||
# Create each file from assets
|
||||
# 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}";
|
||||
|
||||
Reference in New Issue
Block a user