50 lines
1.4 KiB
Nix
50 lines
1.4 KiB
Nix
{ inputs, lib, config, pkgs, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.modules.eww;
|
|
in {
|
|
options.modules.eww = { enable = mkEnableOption "eww"; };
|
|
|
|
config = mkIf cfg.enable {
|
|
# theres no programs.eww.enable here because eww looks for files in .config
|
|
# thats why we have all the home.files
|
|
|
|
# eww package
|
|
home.packages = with pkgs; [
|
|
eww
|
|
pamixer
|
|
brightnessctl
|
|
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
|
];
|
|
|
|
# configuration
|
|
home.file.".config/eww/eww.scss".source = ./eww.scss;
|
|
home.file.".config/eww/eww.yuck".source = ./eww.yuck;
|
|
|
|
# scripts
|
|
home.file.".config/eww/scripts/battery.sh" = {
|
|
source = ./scripts/battery.sh;
|
|
executable = true;
|
|
};
|
|
|
|
home.file.".config/eww/scripts/wifi.sh" = {
|
|
source = ./scripts/wifi.sh;
|
|
executable = true;
|
|
};
|
|
|
|
home.file.".config/eww/scripts/brightness.sh" = {
|
|
source = ./scripts/brightness.sh;
|
|
executable = true;
|
|
};
|
|
|
|
home.file.".config/eww/scripts/workspaces.sh" = {
|
|
source = ./scripts/workspaces.sh;
|
|
executable = true;
|
|
};
|
|
|
|
home.file.".config/eww/scripts/workspaces.lua" = {
|
|
source = ./scripts/workspaces.lua;
|
|
executable = true;
|
|
};
|
|
};
|
|
}
|