Compare commits

..
Author SHA1 Message Date
Damocles
dc8344d0af fix nixos module: inject hm modules unconditionally so options exist 2026-04-26 18:58:13 +02:00
Damocles
eda0fb4376 add desktop entry and app id for portal registration 2026-04-26 18:50:36 +02:00
4 changed files with 15 additions and 14 deletions

View file

@ -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 ];
};
}

View file

@ -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
'';
};

View file

@ -0,0 +1,6 @@
[Desktop Entry]
Name=nova-shell
Comment=Minimal Quickshell bar for niri
Exec=nova-shell
Type=Application
NoDisplay=true

View file

@ -1,4 +1,5 @@
//@ pragma Env QS_NO_RELOAD_POPUP=1
//@ pragma AppId space.darkest.nova-shell
import "modules"
import "services"