diff options
author | Florian Franzen <Florian.Franzen@gmail.com> | 2019-02-12 12:03:07 +0100 |
---|---|---|
committer | Florian Franzen <Florian.Franzen@gmail.com> | 2019-03-18 09:56:27 +0100 |
commit | 52d0db7e73904d9e06cc5b7ba2fae8b442b69e98 (patch) | |
tree | 91f25d5103f903b235c95f124e6c18db6daed188 | |
parent | b76e608ecc24048e4d3f911d92588e64fdbce1a7 (diff) |
nixos/waybar: init module
-rw-r--r-- | nixos/modules/module-list.nix | 1 | ||||
-rw-r--r-- | nixos/modules/programs/waybar.nix | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index b2f2c1ac8cbc..ceb0a950eb4d 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -136,6 +136,7 @@ ./programs/vim.nix ./programs/wavemon.nix ./programs/way-cooler.nix + ./programs/waybar.nix ./programs/wireshark.nix ./programs/xfs_quota.nix ./programs/xonsh.nix diff --git a/nixos/modules/programs/waybar.nix b/nixos/modules/programs/waybar.nix new file mode 100644 index 000000000000..22530e6c7d4d --- /dev/null +++ b/nixos/modules/programs/waybar.nix @@ -0,0 +1,20 @@ +{ lib, pkgs, config, ... }: + +with lib; + +{ + options.programs.waybar = { + enable = mkEnableOption "waybar"; + }; + + config = mkIf config.programs.waybar.enable { + systemd.user.services.waybar = { + description = "Waybar as systemd service"; + wantedBy = [ "graphical-session.target" ]; + partOf = [ "graphical-session.target" ]; + script = "${pkgs.waybar}/bin/waybar"; + }; + }; + + meta.maintainers = [ maintainers.FlorianFranzen ]; +} |