lemonbar and poly bar
This commit is contained in:
parent
1a5d331416
commit
d7306aba7c
5 changed files with 56 additions and 6 deletions
0
config/lemonbar/.gitkeep
Normal file
0
config/lemonbar/.gitkeep
Normal file
|
@ -15,7 +15,10 @@
|
|||
modules = {
|
||||
desktop = {
|
||||
kitty.enable = true;
|
||||
bspwm.enable = true;
|
||||
bspwm = {
|
||||
enable = true;
|
||||
polybar.enable = true;
|
||||
};
|
||||
dunst.enable = true;
|
||||
browsers = {
|
||||
qutebrowser.enable = true;
|
||||
|
|
|
@ -4,6 +4,10 @@ let
|
|||
cfg = config.modules.desktop.bspwm;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./polybar
|
||||
./lemonbar
|
||||
];
|
||||
options.modules.desktop.bspwm = {
|
||||
enable = mkEnableOption false;
|
||||
};
|
||||
|
@ -48,7 +52,6 @@ in
|
|||
};
|
||||
};
|
||||
users.users.sako.packages = with pkgs; [
|
||||
polybar
|
||||
rofi
|
||||
# network
|
||||
networkmanagerapplet
|
||||
|
@ -74,10 +77,6 @@ in
|
|||
sxhkd = {
|
||||
source = ../../../config/sxhkd;
|
||||
};
|
||||
polybar = {
|
||||
source = ../../../config/polybar;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
24
modules/desktop/bspwm/lemonbar/default.nix
Normal file
24
modules/desktop/bspwm/lemonbar/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ outputs, options, config, lib, pkgs, ...}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.desktop.bspwm.lemonbar;
|
||||
in
|
||||
{
|
||||
options.modules.desktop.bspwm.lemonbar = {
|
||||
enable = mkEnableOption false;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
users.users.sako.packages = with pkgs; [
|
||||
lemonbar-xft
|
||||
];
|
||||
home-manager.users.sako = { pkgs, ...}: {
|
||||
xdg.configFile = {
|
||||
lemonbar = {
|
||||
source = ../../../config/lemonbar;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
24
modules/desktop/bspwm/polybar/default.nix
Normal file
24
modules/desktop/bspwm/polybar/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ outputs, options, config, lib, pkgs, ...}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.desktop.bspwm.polybar;
|
||||
in
|
||||
{
|
||||
options.modules.desktop.bspwm.polybar = {
|
||||
enable = mkEnableOption false;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
users.users.sako.packages = with pkgs; [
|
||||
polybar
|
||||
];
|
||||
home-manager.users.sako = { pkgs, ...}: {
|
||||
xdg.configFile = {
|
||||
polybar = {
|
||||
source = ../../../config/polybar;
|
||||
recursive = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue