2023-01-10 02:38:06 +01:00
|
|
|
{ pkgs, lib, paths, config, ... }:
|
|
|
|
let
|
|
|
|
base16-polybar = pkgs.fetchFromGitHub {
|
|
|
|
owner = "tinted-theming";
|
|
|
|
repo = "base16-polybar";
|
2023-01-10 02:58:59 +01:00
|
|
|
sha256 = "1jcr9mmy6y2g06w1b8211lc1y419hqg55v3ly0a27cjgvg89774c";
|
|
|
|
rev = "47b7cc1cde79df5dc5e3cf8f9be607283eb5eb6e";
|
2023-01-10 02:38:06 +01:00
|
|
|
};
|
2023-01-10 02:58:59 +01:00
|
|
|
|
|
|
|
script = ''
|
|
|
|
polybar main &
|
|
|
|
'';
|
2023-01-10 02:38:06 +01:00
|
|
|
in
|
|
|
|
{
|
|
|
|
services.polybar = {
|
2023-01-10 02:58:59 +01:00
|
|
|
inherit script;
|
2023-01-10 02:38:06 +01:00
|
|
|
enable = true;
|
|
|
|
extraConfig = ''
|
|
|
|
; Generated theme
|
2023-01-10 02:58:59 +01:00
|
|
|
include-file = ${config.scheme base16-polybar}
|
2023-01-10 02:38:06 +01:00
|
|
|
|
|
|
|
; Actual config
|
2023-01-10 02:58:59 +01:00
|
|
|
include-file = ${./polybar.ini}
|
2023-01-10 02:38:06 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
xsession = {
|
|
|
|
enable = true;
|
2023-01-10 02:58:59 +01:00
|
|
|
initExtra = script;
|
2023-01-10 02:38:06 +01:00
|
|
|
};
|
|
|
|
}
|