finding hyprland.conf error
This commit is contained in:
@@ -7,10 +7,6 @@
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr";
|
||||
files = builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr");
|
||||
in
|
||||
{
|
||||
# NixOS: Enable Hyprland
|
||||
programs.hyprland = {
|
||||
@@ -28,18 +24,17 @@ in
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# Create the config directory
|
||||
# Simple symlink creation using xdg.configFile
|
||||
xdg.configFile = {
|
||||
"hypr/.keep" = {
|
||||
text = "";
|
||||
"hypr/hyprland.conf" = {
|
||||
source = "${flakeRoot}/assets/hyprland/conf/hypr/hyprland.conf";
|
||||
};
|
||||
};
|
||||
|
||||
# Use home.file to create each file as a symlink
|
||||
home.file = lib.genAttrs files (name: {
|
||||
target = "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
|
||||
source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
|
||||
path = "/.config/hypr/${name}";
|
||||
});
|
||||
# Manual symlink creation script
|
||||
system.activationScripts.hyprlandSymlinks = ''
|
||||
mkdir -p ~/.config/hypr/
|
||||
ln -sf ${flakeRoot}/assets/hyprland/conf/hypr/*.conf ~/.config/hypr/
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user