Rebuild files to introduce flakeRoot to prevent confudion about deep relative paths like ../../../../../
This commit is contained in:
+8
-6
@@ -741,19 +741,21 @@ This is top file of this level which contains just an import statement for all r
|
||||
** =generated/hyprland/keyboard_binds/top.nix=
|
||||
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
|
||||
#+BEGIN_SRC nix :tangle generated/hyprland/keyboard_binds/top.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
#+END_SRC
|
||||
|
||||
** =generated/hyprland/notifications/top.nix=
|
||||
|
||||
Reference in New Issue
Block a user