Adding networking

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