summaryrefslogtreecommitdiffstats
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2019-03-20 23:38:04 +0000
committerGitHub <noreply@github.com>2019-03-20 23:38:04 +0000
commit0cd7f32a4cd62c068641dfbffb48e428888a65bc (patch)
treeca31844e9e4bbb90a684eabd4d3342acc29f7619 /nixos/modules/programs
parent33860cb9f3c6e7cc81e04f40d72a18598e5bd328 (diff)
parent52d0db7e73904d9e06cc5b7ba2fae8b442b69e98 (diff)
Merge pull request #54627 from FlorianFranzen/waybar
waybar: init at 0.4.0
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r--nixos/modules/programs/waybar.nix20
1 files changed, 20 insertions, 0 deletions
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 ];
+}