diff options
author | Alyssa Ross <hi@alyssa.is> | 2019-03-20 23:38:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-20 23:38:04 +0000 |
commit | 0cd7f32a4cd62c068641dfbffb48e428888a65bc (patch) | |
tree | ca31844e9e4bbb90a684eabd4d3342acc29f7619 /nixos/modules | |
parent | 33860cb9f3c6e7cc81e04f40d72a18598e5bd328 (diff) | |
parent | 52d0db7e73904d9e06cc5b7ba2fae8b442b69e98 (diff) |
Merge pull request #54627 from FlorianFranzen/waybar
waybar: init at 0.4.0
Diffstat (limited to 'nixos/modules')
-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 845b3adaac8a..91645a57b496 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -137,6 +137,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 ]; +} |