blob: c6ecfb3261786718daff2d1f9b1e50458ed2ad29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{ config, lib, ... }:
{
options.bar =
with lib;
mkOption {
description = "Bar Configuration";
type = types.listOf types.str;
default = [ "default" ];
};
config = {
home-manager.users.n8.programs.waybar.settings.mainBar.output = (
builtins.map (o: if o == "default" then "*" else toString o) config.bar
);
};
}
|