Basic waybar setup

This commit is contained in:
LarsZauberer 2024-04-14 09:49:41 +02:00
commit e258d6417b
3 changed files with 22 additions and 0 deletions

View file

@ -16,6 +16,8 @@
};
};
waybar.enable = true;
programs = {
vesktop.enable = true;
btop.enable = true;

View file

@ -3,6 +3,10 @@ with lib; let
username = config.modules.other.system.username;
cfg = config.modules.hyprland;
in {
imports = [
./waybar.nix
];
options.modules.hyprland.nvidia.enable = mkEnableOption "nvidia";
options.modules.hyprland = {
enable = mkEnableOption "hyprland";
@ -74,6 +78,7 @@ in {
];
exec-once = [
"waybar"
];
bind = [

15
hosts/lars/waybar.nix Normal file
View file

@ -0,0 +1,15 @@
{ config, lib, inputs, pkgs, ... }:
with lib; let
username = config.modules.other.system.username;
cfg = config.modules.waybar;
in {
options.modules.waybar = {
enable = mkEnableOption "hyprland";
};
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.waybar.enable = true;
};
};
}