Working on hyprland config
This commit is contained in:
@@ -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" = {
|
||||
|
||||
@@ -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" ];
|
||||
# };
|
||||
};
|
||||
}
|
||||
|
||||
@@ -8,5 +8,4 @@
|
||||
#./login-lightdm.nix
|
||||
./gtk.nix
|
||||
];
|
||||
# .. put any code here
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user