From 7b33d8bf251cc32b800b11c41c00d5d29ee220e5 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Sun, 10 Aug 2025 22:33:38 -0400 Subject: [PATCH] Add build app --- .gitignore | 3 ++- flake.nix | 26 +++++++++++++++++++------- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 1af4b5d..ad203f2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .direnv/ -node_modules/ \ No newline at end of file +node_modules/ +auto-rotate@henryhiles.com.zip \ No newline at end of file diff --git a/flake.nix b/flake.nix index c458e4c..095da82 100644 --- a/flake.nix +++ b/flake.nix @@ -50,16 +50,28 @@ }; }); - apps.default = { - type = "app"; - program = let - file = "/tmp/${uuid}.zip"; - in - pkgs.writeShellScriptBin "build" '' - env -C ${self'.packages.default}/${extDir} ${lib.getExe pkgs.zip} ${file} -FS9r . + apps = let + file = "/tmp/${uuid}.zip"; + zip = "env -C ${self'.packages.default}/${extDir} ${lib.getExe pkgs.zip} ${file} -FS9r ."; + in { + default = { + type = "app"; + program = pkgs.writeShellScriptBin "build" '' + ${zip} gnome-extensions install --force ${file} dbus-run-session -- gnome-shell --nested --wayland ''; + }; + build = { + type = "app"; + program = let + file = "/tmp/${uuid}.zip"; + in + pkgs.writeShellScriptBin "build" '' + ${zip} + cp ${file} . + ''; + }; }; }; };