added stuff
This commit is contained in:
parent
937f28770d
commit
236b8c2a6b
907 changed files with 70990 additions and 0 deletions
27
nyx/homes/notashelf/services/wayland/waybar/default.nix
Normal file
27
nyx/homes/notashelf/services/wayland/waybar/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
osConfig,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf;
|
||||
inherit (osConfig.modules) device;
|
||||
inherit (osConfig.modules.style.colorScheme) slug colors;
|
||||
|
||||
waybar_config = import ./presets/${slug}/config.nix {inherit osConfig config lib pkgs;};
|
||||
waybar_style = import ./presets/${slug}/style.nix {inherit colors;};
|
||||
|
||||
acceptedTypes = ["desktop" "laptop" "lite" "hybrid"];
|
||||
in {
|
||||
config = mkIf (builtins.elem device.type acceptedTypes) {
|
||||
home.packages = with pkgs.python3Packages; [requests];
|
||||
programs.waybar = {
|
||||
enable = false;
|
||||
systemd.enable = true;
|
||||
package = pkgs.waybar;
|
||||
settings = waybar_config;
|
||||
style = waybar_style;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue