hell n back
This commit is contained in:
parent
3ee6761b45
commit
cac7203033
45 changed files with 2988 additions and 177 deletions
50
modules/eww/default.nix
Normal file
50
modules/eww/default.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue