Files
nixos/Droidnix/generated/hyprland/hyprland.nix
T
2026-03-15 12:27:22 +00:00

41 lines
946 B
Nix

{
config,
pkgs,
lib,
user,
flakeRoot,
...
}:
{
# NixOS: Enable Hyprland
programs.hyprland = {
enable = true;
};
# Home Manager: Hyprland-specific configurations
home-manager.users.${user.username} = {
home.stateVersion = config.home-manager.users.${user.username}.stateVersion or "25.11";
home.username = user.username;
home.homeDirectory =
config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}";
wayland.windowManager.hyprland = {
enable = true;
};
# Simple symlink creation using xdg.configFile
xdg.configFile = {
"hypr/hyprland.conf" = {
source = "${flakeRoot}/assets/hyprland/conf/hypr/hyprland.conf";
};
};
# Manual symlink creation script
system.activationScripts.hyprlandSymlinks = ''
mkdir -p ~/.config/hypr/
ln -sf ${flakeRoot}/assets/hyprland/conf/hypr/*.conf ~/.config/hypr/
'';
};
}