Change writeShellScriptBin
to writeShellApplication
This commit is contained in:
parent
5347c04b3e
commit
9fcce5ad14
2 changed files with 43 additions and 37 deletions
lib
|
@ -6,13 +6,16 @@
|
|||
}:
|
||||
|
||||
let
|
||||
inherit (pkgs) writeShellScriptBin;
|
||||
inherit (pkgs) writeShellApplication;
|
||||
|
||||
script-autostart = writeShellScriptBin "awesome-autostart" ''
|
||||
script-autostart = writeShellApplication {
|
||||
name = "awesome-autostart";
|
||||
text = ''
|
||||
set -o errexit
|
||||
|
||||
${pkgs.nitrogen}/bin/nitrogen --set-zoom-fill --random "''${HOME}/Pictures/Wallpaper"
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
|
@ -3,9 +3,11 @@ let
|
|||
php = pkgs.php82;
|
||||
phpPackages = pkgs.php82Packages;
|
||||
|
||||
inherit (pkgs) writeShellScriptBin;
|
||||
inherit (pkgs) writeShellApplication;
|
||||
|
||||
script-t = writeShellScriptBin "t" ''
|
||||
script-t = writeShellApplication {
|
||||
name = "t";
|
||||
text = ''
|
||||
# Credit to ThePrimeagen.
|
||||
|
||||
set -o nounset
|
||||
|
@ -45,6 +47,7 @@ let
|
|||
|
||||
tmux switch-client -t "''${session_name}" || tmux attach -t "''${session_name}"
|
||||
'';
|
||||
};
|
||||
in
|
||||
with pkgs;
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue