This commit is contained in:
RingOfStorms (Joshua Bell) 2025-09-19 17:11:15 -05:00
parent 41ea974e49
commit e77dec2d94
6 changed files with 319 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{ 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;
};
}