27 lines
600 B
Nix
27 lines
600 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;
|
|
};
|
|
}
|