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

42 lines
840 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;
};
# Create all files using home.file
home.file = lib.genAttrs hyprlandFiles (name: {
target = "/.config/hypr/${name}";
source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
});
# Create the directory structure
xdg.configFile = {
"hypr/.keep" = {
text = "";
};
};
};
}