Basic waybar setup
This commit is contained in:
parent
830aa0961d
commit
ccdb33e550
3 changed files with 22 additions and 0 deletions
|
@ -16,6 +16,8 @@
|
|||
};
|
||||
};
|
||||
|
||||
waybar.enable = true;
|
||||
|
||||
programs = {
|
||||
vesktop.enable = true;
|
||||
btop.enable = true;
|
||||
|
|
|
@ -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
15
hosts/lars/waybar.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue