This repository has been archived on 2023-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
nil/modules/applications/sway/waybar.nix
2021-12-15 20:59:15 -05:00

20 lines
459 B
Nix

{ options, config, lib, pkgs, ... }:
let
cfg = config.this.application.waybar;
sway_cfg = config.this.application.sway;
in with lib; {
options = {
this.application.waybar = {
enable = mkOption {
default = sway_cfg.enable;
type = with types; bool;
description = "testing one two three";
};
};
};
config = mkIf cfg.enable {
home-manager.users.james = { home.packages = with pkgs; [ waybar ]; };
};
}