Rebuild files to introduce flakeRoot to prevent confudion about deep relative paths like ../../../../../

This commit is contained in:
2026-03-07 16:15:58 +01:00
parent c887936ea3
commit dee654cbf4
3 changed files with 325 additions and 320 deletions
@@ -1,13 +1,14 @@
{ config, pkgs, lib, user, inputs, flakeRoot,... }:
{ config, pkgs, lib, user, inputs, flakeRoot, ... }:
let
# Read the contents of the bindings.conf file
bindingsContent = builtins.readFile (flakeRoot + "/assets/hyprland/conf/bindings.conf");
# Create a configuration file from the bindings content
configFile = pkgs.writeText "hyprland.conf" bindingsContent;
in
{
wayland.windowManager.hyprland = {
enable = true; # Enable Hyprland as the window manager
config = configFile; # Use the generated configuration file
# Home Manager configurations must be nested under the user
home-manager.users.${user.username} = {
wayland.windowManager.hyprland = {
enable = true;
config = configFile;
};
};
}