Ver 1.0
This commit is contained in:
parent
b6b87d5aed
commit
9c72a71585
3546 changed files with 18655 additions and 0 deletions
49
nixosVista/homeManager/eww/main.nix
Normal file
49
nixosVista/homeManager/eww/main.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
nixosVista,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = nixosVista.eww;
|
||||
in {
|
||||
#
|
||||
#
|
||||
# Definetly not done yet the Widgets don't really work
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
options.nixosVista.eww.enable =
|
||||
mkEnableOption "Modular EWW system";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.eww.enable = true;
|
||||
|
||||
home.packages = [
|
||||
pkgs.jq
|
||||
pkgs.curl
|
||||
];
|
||||
|
||||
home.file = {
|
||||
".config/eww/eww.scss".source = ./base/eww.scss;
|
||||
|
||||
".config/eww/eww.yuck".text = ''
|
||||
;; Base EWW file
|
||||
(include "eww_vars.yuck")
|
||||
'';
|
||||
|
||||
".config/eww/eww_vars.yuck".text = ''
|
||||
(defpoll DATE :interval "1s" '~/.config/eww/date_format.sh')
|
||||
(defpoll uptime :interval "25s" "uptime -p | sed -e 's/up //;s/ hours,/h/;s/ minutes/m/'")
|
||||
'';
|
||||
|
||||
".config/eww/date_format.sh".source =
|
||||
./base/date_format.sh;
|
||||
|
||||
".config/eww/start.sh".source =
|
||||
./base/start.sh;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue