dotfiles/common/desktop_environment/i3/home_manager/polybar.nix
RingOfStorms (Joshua Bell) e77dec2d94 i3 draft
2025-09-19 17:11:15 -05:00

27 lines
602 B
Nix

{ config, lib, pkgs, ... }:
let
ccfg = import ../../config.nix;
cfg_path = [
ccfg.custom_config_key
"desktopEnvironment"
"i3"
"polybar"
];
cfg = lib.attrsets.getAttrFromPath cfg_path config;
in
{
config = lib.mkIf cfg.enable {
home.file = {
".config/polybar/config" = {
text = builtins.readFile ../polybar/config;
};
".config/polybar/launch.sh" = {
text = builtins.readFile ../polybar/launch.sh;
executable = true;
};
};
home.packages = [ pkgs.polybar ];
services.xserver.windowManager.i3.enable = true;
};
}