add qs alias

This commit is contained in:
Damocles 2026-04-10 23:46:10 +02:00
parent d92a46035d
commit e5d32f231b
2 changed files with 15 additions and 7 deletions

View file

@ -47,13 +47,18 @@
packages = forAllSystems (
{ pkgs, ... }:
rec {
nova-shell = pkgs.callPackage ./nix/package.nix {
quickshell = quickshell.packages.${pkgs.stdenv.hostPlatform.system}.default.override {
withX11 = false;
withI3 = false;
};
let
qs = quickshell.packages.${pkgs.stdenv.hostPlatform.system}.default.override {
withX11 = false;
withI3 = false;
};
in
rec {
nova-shell = pkgs.callPackage ./nix/package.nix { quickshell = qs; };
nova-shell-cli = pkgs.runCommand "nova-shell-cli" { } ''
mkdir -p $out/bin
ln -s ${qs}/bin/quickshell $out/bin/nova-shell
'';
default = nova-shell;
}
);

View file

@ -79,7 +79,10 @@ in
config = lib.mkIf cfg.enable {
programs.nova-shell.theme = lib.mkIf stylixAvailable (lib.mkDefault stylixTheme);
home.packages = [ cfg.package ];
home.packages = [
cfg.package
self.packages.${pkgs.stdenv.hostPlatform.system}.nova-shell-cli
];
xdg.configFile."nova-shell/theme.json".source =
(pkgs.formats.json { }).generate "nova-shell-theme.json"