Files
dotfiles/home/natto/eww/default.nix
Amneesh Singh 1626936630 random eww changes
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2023-01-27 22:49:05 +05:30

38 lines
892 B
Nix

{ config, pkgs, lib, ... }:
{
programs.eww = {
enable = true;
package = pkgs.eww-wayland;
configDir = lib.cleanSourceWith {
src = ./.;
filter = name: _:
let
baseName = baseNameOf (toString name);
in
!(lib.hasSuffix ".nix" baseName);
};
};
systemd.user.services.eww = {
Unit = {
Description = "EWW Daemon";
PartOf = ["graphical-session.target"];
};
Service =
let
deps = [
config.programs.eww.package
config.wayland.windowManager.hyprland.package
] ++ (import ./bar pkgs);
in
{
Type = "simple";
Environment = "PATH=${lib.makeBinPath deps}";
Restart = "on-failure";
ExecStart = "${config.programs.eww.package}/bin/eww daemon --no-daemonize";
};
Install.WantedBy = [ "graphical-session.target" ];
};
}