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

20 lines
459 B
Nix
Raw Normal View History

2021-12-14 05:24:26 +00:00
{ options, config, lib, pkgs, ... }:
let
2021-12-16 01:58:52 +00:00
cfg = config.this.application.waybar;
sway_cfg = config.this.application.sway;
2021-12-14 05:24:26 +00:00
in with lib; {
options = {
2021-12-16 01:58:52 +00:00
this.application.waybar = {
2021-12-14 05:24:26 +00:00
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 ]; };
};
}