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
+308 -306
View File
File diff suppressed because it is too large Load Diff
+6 -4
View File
@@ -743,17 +743,19 @@ This is top file of this level which contains just an import statement for all r
#+BEGIN_SRC nix :tangle generated/hyprland/keyboard_binds/top.nix :noweb tangle :mkdirp yes :eval never-html #+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 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; configFile = pkgs.writeText "hyprland.conf" bindingsContent;
in in
{ {
# Home Manager configurations must be nested under the user
home-manager.users.${user.username} = {
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; # Enable Hyprland as the window manager enable = true;
config = configFile; # Use the generated configuration file config = configFile;
};
}; };
} }
#+END_SRC #+END_SRC
** =generated/hyprland/notifications/top.nix= ** =generated/hyprland/notifications/top.nix=
@@ -1,13 +1,14 @@
{ config, pkgs, lib, user, inputs, flakeRoot, ... }: { config, pkgs, lib, user, inputs, flakeRoot, ... }:
let 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; configFile = pkgs.writeText "hyprland.conf" bindingsContent;
in in
{ {
# Home Manager configurations must be nested under the user
home-manager.users.${user.username} = {
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; # Enable Hyprland as the window manager enable = true;
config = configFile; # Use the generated configuration file config = configFile;
};
}; };
} }