finding hyprland.conf error
This commit is contained in:
@@ -10,10 +10,6 @@
|
|||||||
let
|
let
|
||||||
hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr";
|
hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr";
|
||||||
files = builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr");
|
files = builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr");
|
||||||
hyprlandFileSymlinks = lib.genAttrs files (name: {
|
|
||||||
target = "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
|
|
||||||
isExecutable = name == "exec-once.conf"; # Mark exec-once.conf as executable if needed
|
|
||||||
});
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# NixOS: Enable Hyprland
|
# NixOS: Enable Hyprland
|
||||||
@@ -32,26 +28,17 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Create symlinks for each file in assets/hyprland/conf/hypr
|
# Create symlinks for all files in assets/hyprland/conf/hypr
|
||||||
home.file = {
|
xdg.configFile = {
|
||||||
".config/hypr/.keep" = {
|
"hypr/.keep" = {
|
||||||
text = "";
|
text = "";
|
||||||
};
|
};
|
||||||
}
|
|
||||||
// lib.genAttrs files (name: {
|
|
||||||
".config/hypr/${name}" = {
|
|
||||||
source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
|
|
||||||
executable = name == "exec-once.conf"; # Mark exec-once.conf as executable if needed
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
# Debug statements
|
|
||||||
home.file.".config/hypr/hyprland-debug.txt" = {
|
|
||||||
text = ''
|
|
||||||
hyprlandConfigDir: ${hyprlandConfigDir}
|
|
||||||
flakeRoot: ${flakeRoot}
|
|
||||||
files: ${toString files}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Add activation script to create symlinks
|
||||||
|
system.activationScripts.hyprlandLinks = ''
|
||||||
|
mkdir -p ~/.config/hypr/
|
||||||
|
ln -sf ${flakeRoot}/assets/hyprland/conf/hypr/* ~/.config/hypr/
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user