Working on hyprland config

This commit is contained in:
2026-03-15 17:42:00 +00:00
parent 7cc6b58014
commit 808d1eccd6
6 changed files with 11 additions and 2799 deletions
+10 -2
View File
@@ -9,6 +9,8 @@
let
hyprlandFiles = builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr");
# Filter out hyprland.conf from the list of files to copy directly
otherHyprlandFiles = lib.filter (name: name != "hyprland.conf") hyprlandFiles;
in
{
programs.hyprland = {
@@ -25,12 +27,18 @@ in
enable = true;
};
# Create all files using home.file
home.file = lib.genAttrs hyprlandFiles (name: {
# Copy all files except hyprland.conf
home.file = lib.genAttrs otherHyprlandFiles (name: {
target = "/.config/hypr/${name}";
source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
});
# Append the base config to hyprland.conf, preserving manual changes
xdg.configFile."hypr/hyprland.conf".text = ''
${builtins.readFile "${flakeRoot}/assets/hyprland/conf/hypr/hyprland.conf"}
# Your manual settings will go below this line and will not be overwritten
'';
# Create the directory structure
xdg.configFile = {
"hypr/.keep" = {
-5
View File
@@ -26,10 +26,5 @@ in
exec-once = [ "eww daemon" ];
exec = [ "eww open-many ${ewwConfigDir}/widgets" ]; # Adjust as needed
};
# For MangoWC, use:
# wayland.windowManager.mangowc.config = {
# exec = [ "eww daemon" ];
# exec-once = [ "eww open-many ${ewwConfigDir}/widgets" ];
# };
};
}
-1
View File
@@ -8,5 +8,4 @@
#./login-lightdm.nix
./gtk.nix
];
# .. put any code here
}