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

This commit is contained in:
2026-03-07 16:04:32 +01:00
parent f0f8fc55cc
commit 1665a76374
4 changed files with 306 additions and 306 deletions
+2 -2
View File
@@ -729,7 +729,7 @@ This is top file of this level which contains just an import statement for all r
** =generated/hyprland/decorations/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/decorations/top.nix :noweb tangle :mkdirp yes :eval never-html
{ config, pkgs, lib, user, inputs, __flakeRoot,... }:
{ config, pkgs, lib, user, inputs, flakeRoot,... }:
{
imports = [
# No subfolders to import
@@ -744,7 +744,7 @@ This is top file of this level which contains just an import statement for all r
{ config, pkgs, lib, user, inputs, ... }:
let
# Read the contents of the bindings.conf file
bindingsContent = builtins.readFile (__flakeRoot + "/assets/hyprland/conf/bindings.conf");
bindingsContent = builtins.readFile (flakeRoot + "/assets/hyprland/conf/bindings.conf");
# Create a configuration file from the bindings content
configFile = pkgs.writeText "hyprland.conf" bindingsContent;
in