From e5d32f231b15d60ac5cd5f02c000eef00a1c3c9d Mon Sep 17 00:00:00 2001 From: Damocles Date: Fri, 10 Apr 2026 23:46:10 +0200 Subject: [PATCH] add qs alias --- flake.nix | 17 +++++++++++------ nix/hm-module.nix | 5 ++++- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index a7240ca..9d3b452 100644 --- a/flake.nix +++ b/flake.nix @@ -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; } ); diff --git a/nix/hm-module.nix b/nix/hm-module.nix index 99222ec..93c7224 100644 --- a/nix/hm-module.nix +++ b/nix/hm-module.nix @@ -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"