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

41 lines
792 B
Nix

{
config,
pkgs,
lib,
user,
flakeRoot,
...
}:
let
hyprlandFiles = builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr");
in
{
programs.hyprland = {
enable = true;
};
home-manager.users.${user.username} = {
home.stateVersion = "25.11";
home.username = user.username;
home.homeDirectory =
config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}";
wayland.windowManager.hyprland = {
enable = true;
};
# First create the directory structure
xdg.configFile = {
"hypr/.keep" = {
text = "";
};
}
// lib.genAttrs hyprlandFiles (name: {
"hypr/${name}" = {
source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
};
});
};
}