working on eww

This commit is contained in:
2026-03-11 16:02:26 +01:00
parent f33211449f
commit 9e01d35ce4
9 changed files with 1038 additions and 330 deletions
+36
View File
@@ -0,0 +1,36 @@
{ lib, config, pkgs, flakeRoot, user, ... }:
let
ewwConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/eww";
# Dynamically read all files in assets/system/conf/eww/
ewwConfs = lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/system/conf/eww")) (name: {
text = builtins.readFile "${flakeRoot}/assets/system/conf/eww/${name}";
});
in
{
environment.systemPackages = with pkgs; [ eww ];
home-manager.users.${user.username} = {
home.file = {
"${ewwConfigDir}" = {
source = "${flakeRoot}/assets/system/conf/eww";
recursive = true;
};
};
home.sessionVariables = {
EWW_BIN = "${pkgs.eww}/bin/eww";
};
# Start eww with Hyprland/MangoWC
wayland.windowManager.hyprland.settings = lib.mkForce {
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" ];
# };
};
}
+2
View File
@@ -2,6 +2,8 @@
{
imports = [
./wayland.nix
./eww.nix
# ./waybar.nix
./login-tuigreeter.nix
# ./login-lightdm.nix
];
@@ -0,0 +1 @@