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 = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Home Manager: Hyprland-specific configurations
|
# Home Manager configuration
|
||||||
home-manager.users.${user.username} = {
|
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.username = user.username;
|
||||||
home.homeDirectory =
|
home.homeDirectory =
|
||||||
config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}";
|
config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}";
|
||||||
@@ -24,17 +27,17 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Simple symlink creation using xdg.configFile
|
# Create config directory
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
"hypr/hyprland.conf" = {
|
"hypr/.keep" = {
|
||||||
source = "${flakeRoot}/assets/hyprland/conf/hypr/hyprland.conf";
|
text = "";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Manual symlink creation script
|
# Create each file from assets
|
||||||
system.activationScripts.hyprlandSymlinks = ''
|
home.file = lib.genAttrs hyprlandFiles (name: {
|
||||||
mkdir -p ~/.config/hypr/
|
target = ".config/hypr/${name}";
|
||||||
ln -sf ${flakeRoot}/assets/hyprland/conf/hypr/*.conf ~/.config/hypr/
|
source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
|
||||||
'';
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user