i3 draft
This commit is contained in:
parent
41ea974e49
commit
e77dec2d94
6 changed files with 319 additions and 0 deletions
27
common/desktop_environment/i3/home_manager/polybar.nix
Normal file
27
common/desktop_environment/i3/home_manager/polybar.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue