aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorJohannes Horner <45998879+johanneshorner@users.noreply.github.com>2025-03-17 15:16:39 +0100
committerGitHub <noreply@github.com>2025-03-17 17:16:39 +0300
commite11af089aaf43ff6f1d4036dbbddccc342c3bc29 (patch)
tree7dc4841aed3a600a7cb0a0dc88961925fea0bb7e /flake.nix
parent5e549e13238a853f8860e29621ab6b31ee1b9ee4 (diff)
downloadniri-e11af089aaf43ff6f1d4036dbbddccc342c3bc29.tar.gz
niri-e11af089aaf43ff6f1d4036dbbddccc342c3bc29.tar.bz2
niri-e11af089aaf43ff6f1d4036dbbddccc342c3bc29.zip
nix: Install shell completions (#1280)
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index ebb2a05d..8649e5cc 100644
--- a/flake.nix
+++ b/flake.nix
@@ -39,6 +39,7 @@
rustPlatform,
systemd,
wayland,
+ installShellFiles,
withDbus ? true,
withSystemd ? true,
withScreencastSupport ? true,
@@ -79,6 +80,7 @@
nativeBuildInputs = [
rustPlatform.bindgenHook
pkg-config
+ installShellFiles
];
buildInputs =
@@ -117,6 +119,11 @@
postInstall =
''
+ installShellCompletion --cmd niri \
+ --bash <($out/bin/niri completions bash) \
+ --fish <($out/bin/niri completions fish) \
+ --zsh <($out/bin/niri completions zsh)
+
install -Dm644 resources/niri.desktop -t $out/share/wayland-sessions
install -Dm644 resources/niri-portals.conf -t $out/share/xdg-desktop-portal
''