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