waybar feature
This commit is contained in:
42
modules/features/waybar/default.nix
Normal file
42
modules/features/waybar/default.nix
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
moduleWithSystem,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
flake.nixosModules.waybar = moduleWithSystem ({self', ...}: {
|
||||
environment.systemPackages = with self'.packages; [
|
||||
waybar
|
||||
];
|
||||
});
|
||||
perSystem = {pkgs, ...}: {
|
||||
packages.waybar = inputs.wrappers.wrappers.waybar.wrap {
|
||||
inherit pkgs;
|
||||
"style.css".path = ./style.css;
|
||||
configFile.content = ''
|
||||
{
|
||||
"include": [
|
||||
"${./modules.jsonc}"
|
||||
],
|
||||
"height": 20,
|
||||
"margin": "3 6",
|
||||
"reload_style_on_change": true,
|
||||
"position": "top",
|
||||
"modules-left": [
|
||||
"custom/logo",
|
||||
"hyprland/workspaces"
|
||||
],
|
||||
"modules-center": [
|
||||
"mpris"
|
||||
],
|
||||
"modules-right": [
|
||||
"network",
|
||||
"bluetooth",
|
||||
"custom/notifs",
|
||||
"battery",
|
||||
"clock"
|
||||
]
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user