finding hyprland.conf error
This commit is contained in:
@@ -7,15 +7,18 @@
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
hyprlandFiles = builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr");
|
||||
in
|
||||
{
|
||||
# NixOS: Enable Hyprland
|
||||
# Basic Hyprland configuration
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# Home Manager: Hyprland-specific configurations
|
||||
# Home Manager configuration
|
||||
home-manager.users.${user.username} = {
|
||||
home.stateVersion = config.home-manager.users.${user.username}.stateVersion or "25.11";
|
||||
home.stateVersion = "25.11";
|
||||
home.username = user.username;
|
||||
home.homeDirectory =
|
||||
config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}";
|
||||
@@ -24,17 +27,17 @@
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# Simple symlink creation using xdg.configFile
|
||||
# Create config directory
|
||||
xdg.configFile = {
|
||||
"hypr/hyprland.conf" = {
|
||||
source = "${flakeRoot}/assets/hyprland/conf/hypr/hyprland.conf";
|
||||
"hypr/.keep" = {
|
||||
text = "";
|
||||
};
|
||||
};
|
||||
|
||||
# Manual symlink creation script
|
||||
system.activationScripts.hyprlandSymlinks = ''
|
||||
mkdir -p ~/.config/hypr/
|
||||
ln -sf ${flakeRoot}/assets/hyprland/conf/hypr/*.conf ~/.config/hypr/
|
||||
'';
|
||||
# Create each file from assets
|
||||
home.file = lib.genAttrs hyprlandFiles (name: {
|
||||
target = ".config/hypr/${name}";
|
||||
source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user