Working on hyprland config
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
hyprlandFiles = builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr");
|
hyprlandFiles = builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr");
|
||||||
# Filter out hyprland.conf from the list of files to copy directly
|
# Filter out hyprland.conf from the list of files to symlink
|
||||||
otherHyprlandFiles = lib.filter (name: name != "hyprland.conf") hyprlandFiles;
|
otherHyprlandFiles = lib.filter (name: name != "hyprland.conf") hyprlandFiles;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@@ -27,10 +27,11 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Copy all files except hyprland.conf
|
# Symlink all files except hyprland.conf
|
||||||
home.file = lib.genAttrs otherHyprlandFiles (name: {
|
home.file = lib.genAttrs otherHyprlandFiles (name: {
|
||||||
target = "/.config/hypr/${name}";
|
target = "/.config/hypr/${name}";
|
||||||
source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
|
source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
|
||||||
|
createSymlink = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
# Append the base config to hyprland.conf, preserving manual changes
|
# Append the base config to hyprland.conf, preserving manual changes
|
||||||
|
|||||||
Reference in New Issue
Block a user