Trying to use brew-nix - still to much broken
This commit is contained in:
@@ -11,21 +11,42 @@ let
|
||||
shared-programs = import ../shared/home-manager.nix { inherit config pkgs lib; };
|
||||
shared-files = import ../shared/files.nix { inherit config pkgs; };
|
||||
|
||||
polybar-user_modules = builtins.readFile (
|
||||
pkgs.replaceVars {
|
||||
src = ./config/polybar/user_modules.ini;
|
||||
packages = "${xdg_configHome}/polybar/bin/check-nixos-updates.sh";
|
||||
searchpkgs = "${xdg_configHome}/polybar/bin/search-nixos-updates.sh";
|
||||
launcher = "${xdg_configHome}/polybar/bin/launcher.sh";
|
||||
powermenu = "${xdg_configHome}/rofi/bin/powermenu.sh";
|
||||
calendar = "${xdg_configHome}/polybar/bin/popup-calendar.sh";
|
||||
}
|
||||
);
|
||||
polybar-user_modules = builtins.replaceStrings
|
||||
[
|
||||
"@packages@"
|
||||
"@searchpkgs@"
|
||||
"@launcher@"
|
||||
"@powermenu@"
|
||||
"@calendar@"
|
||||
]
|
||||
[
|
||||
"${xdg_configHome}/polybar/bin/check-nixos-updates.sh"
|
||||
"${xdg_configHome}/polybar/bin/search-nixos-updates.sh"
|
||||
"${xdg_configHome}/polybar/bin/launcher.sh"
|
||||
"${xdg_configHome}/rofi/bin/powermenu.sh"
|
||||
"${xdg_configHome}/polybar/bin/popup-calendar.sh"
|
||||
]
|
||||
(builtins.readFile ./config/polybar/user_modules.ini);
|
||||
|
||||
polybar-config = pkgs.replaceVars {
|
||||
src = ./config/polybar/config.ini;
|
||||
font0 = "DejaVu Sans:size=12;3";
|
||||
font1 = "feather:size=12;3"; # from overlay
|
||||
polybar-config = {
|
||||
"global/wm" = {
|
||||
margin-bottom = 0;
|
||||
margin-top = 0;
|
||||
};
|
||||
"bar/main" = {
|
||||
width = "98%";
|
||||
height = 40;
|
||||
background = "#000000";
|
||||
foreground = "#ffffff";
|
||||
font-0 = "DejaVu Sans:size=12;3";
|
||||
font-1 = "feather:size=12;3";
|
||||
modules-left = "launcher workspaces";
|
||||
modules-center = "date popup-calendar";
|
||||
modules-right = "pulseaudio memory cpu updates sysmenu";
|
||||
};
|
||||
settings = {
|
||||
screenchange-reload = false;
|
||||
};
|
||||
};
|
||||
|
||||
polybar-modules = builtins.readFile ./config/polybar/modules.ini;
|
||||
|
||||
Reference in New Issue
Block a user