home/natto/eww: init

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-01-27 21:38:53 +05:30
parent c87410b1aa
commit 8899dbdaee
13 changed files with 678 additions and 5 deletions

View File

@@ -0,0 +1,36 @@
{ 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";
};
Service =
let
deps = [
config.programs.eww.package
config.wayland.windowManager.hyprland.package
] ++ (import ./bar pkgs);
in
{
Environment = "PATH=${lib.makeBinPath deps}";
Type = "simple";
Restart = "on-failure";
ExecStart = "${config.programs.eww.package}/bin/eww daemon --no-daemonize";
};
Install.WantedBy = [ "graphical-session.target" ];
};
}