Rebuild files to introduce flakeRoot to prevent confudion about deep relative paths like ../../../../../
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user