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} . + ''; + }; }; }; };