diff --git a/hosts/lars/default.nix b/hosts/lars/default.nix index d7176b6..0add695 100644 --- a/hosts/lars/default.nix +++ b/hosts/lars/default.nix @@ -16,6 +16,8 @@ }; }; + waybar.enable = true; + programs = { vesktop.enable = true; btop.enable = true; diff --git a/hosts/lars/hyprland.nix b/hosts/lars/hyprland.nix index 0b7f57e..1357dc7 100644 --- a/hosts/lars/hyprland.nix +++ b/hosts/lars/hyprland.nix @@ -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 = [ diff --git a/hosts/lars/waybar.nix b/hosts/lars/waybar.nix new file mode 100644 index 0000000..ac9533c --- /dev/null +++ b/hosts/lars/waybar.nix @@ -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; + }; + }; +}