From eda0fb43763109c6bd8d4fc9901a595470f096d0 Mon Sep 17 00:00:00 2001 From: Damocles Date: Sun, 26 Apr 2026 18:50:36 +0200 Subject: [PATCH 1/2] add desktop entry and app id for portal registration --- nix/package.nix | 2 ++ shell/assets/space.darkest.nova-shell.desktop | 6 ++++++ shell/shell.qml | 1 + 3 files changed, 9 insertions(+) create mode 100644 shell/assets/space.darkest.nova-shell.desktop diff --git a/nix/package.nix b/nix/package.nix index 57314cc..93c9e3d 100644 --- a/nix/package.nix +++ b/nix/package.nix @@ -26,6 +26,8 @@ let runHook preInstall mkdir -p $out/share/nova-shell cp -r shell/shell.qml shell/modules shell/services shell/applets shell/dock shell/lock shell/assets $out/share/nova-shell/ + mkdir -p $out/share/applications + cp shell/assets/space.darkest.nova-shell.desktop $out/share/applications/ runHook postInstall ''; }; diff --git a/shell/assets/space.darkest.nova-shell.desktop b/shell/assets/space.darkest.nova-shell.desktop new file mode 100644 index 0000000..95da1e7 --- /dev/null +++ b/shell/assets/space.darkest.nova-shell.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=nova-shell +Comment=Minimal Quickshell bar for niri +Exec=nova-shell +Type=Application +NoDisplay=true diff --git a/shell/shell.qml b/shell/shell.qml index 5c6411a..6e0122b 100644 --- a/shell/shell.qml +++ b/shell/shell.qml @@ -1,4 +1,5 @@ //@ pragma Env QS_NO_RELOAD_POPUP=1 +//@ pragma AppId space.darkest.nova-shell import "modules" import "services" From dc8344d0af83ba9de5f74a68bee82cdf6364c9a2 Mon Sep 17 00:00:00 2001 From: Damocles Date: Sun, 26 Apr 2026 18:58:13 +0200 Subject: [PATCH 2/2] fix nixos module: inject hm modules unconditionally so options exist --- nix/nixos-module.nix | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/nix/nixos-module.nix b/nix/nixos-module.nix index d687470..5116f91 100644 --- a/nix/nixos-module.nix +++ b/nix/nixos-module.nix @@ -1,22 +1,14 @@ self: { - config, options, lib, ... }: -let - cfg = config.programs.nova-shell; -in { - options.programs.nova-shell.enable = lib.mkEnableOption "nova-shell Quickshell bar"; - - config = lib.mkIf cfg.enable ( - lib.optionalAttrs (options ? home-manager) { - home-manager.sharedModules = [ - self.homeModules.default - ] - ++ lib.optionals (options ? stylix) [ self.homeModules.stylix ]; - } - ); + config = lib.optionalAttrs (options ? home-manager) { + home-manager.sharedModules = [ + self.homeModules.default + ] + ++ lib.optionals (options ? stylix) [ self.homeModules.stylix ]; + }; }