Added networking

This commit is contained in:
2026-03-13 23:54:28 +01:00
parent a641aee119
commit 8b86bf34d1
67 changed files with 895 additions and 113 deletions
+6 -8
View File
@@ -6,14 +6,13 @@
flakeRoot,
...
}:
let
hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr";
# Dynamically read all files in assets/hyprland/conf/
hyprlandConfs =
lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr"))
lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf"))
(name: {
text = builtins.readFile "${flakeRoot}/assets/hyprland/conf/hypr/${name}";
text = builtins.readFile "${flakeRoot}/assets/hyprland/conf/${name}";
});
in
{
@@ -34,11 +33,10 @@ in
enable = true;
};
# Ensure the Hyprland config directory exists
# Merge dynamic Hyprland configs with existing xdg.configFile
xdg.configFile = {
"hypr/.keep" = {
text = "";
};
} // hyprlandConfs;
# Your existing manual configs (if any)
}
// hyprlandConfs;
};
}