From fe0e613928323f9dc538f1bdea8138456abffc4b Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Tue, 17 Sep 2024 18:14:22 +0200 Subject: create nix configuration --- modules/waybar/default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 modules/waybar/default.nix (limited to 'modules/waybar') diff --git a/modules/waybar/default.nix b/modules/waybar/default.nix new file mode 100644 index 0000000..c6ecfb3 --- /dev/null +++ b/modules/waybar/default.nix @@ -0,0 +1,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 + ); + }; +} -- cgit v1.2.3-70-g09d2