eww: init module
This commit is contained in:
parent
13c1ee999f
commit
37ea9456b6
1 changed files with 35 additions and 0 deletions
35
home-manager/modules/eww/default.nix
Normal file
35
home-manager/modules/eww/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ pkgs, config, lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.eboskma.programs.eww;
|
||||
in
|
||||
{
|
||||
options.eboskma.programs.eww = {
|
||||
enable = mkEnableOption "eww";
|
||||
package = mkPackageOption pkgs "eww" { };
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.eww = {
|
||||
enable = true;
|
||||
configDir = ./config;
|
||||
package = cfg.package;
|
||||
};
|
||||
|
||||
systemd.user.services.eww-daemon = {
|
||||
Unit = {
|
||||
Description = "eww";
|
||||
};
|
||||
|
||||
Service = {
|
||||
ExecStart = "${cfg.package}/bin/eww --no-daemonize daemon";
|
||||
Environment.PATH = makeBinPath [ pkgs.ha-now-playing pkgs.jaq pkgs.pamedia ];
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = [ "default.target" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in a new issue