Change writeShellScriptBin to writeShellApplication

This commit is contained in:
Oliver Davies 2024-06-15 13:26:38 +01:00
parent 5347c04b3e
commit 9fcce5ad14
2 changed files with 43 additions and 37 deletions
lib/nixos/modules

View file

@ -6,13 +6,16 @@
}:
let
inherit (pkgs) writeShellScriptBin;
inherit (pkgs) writeShellApplication;
script-autostart = writeShellScriptBin "awesome-autostart" ''
set -o errexit
script-autostart = writeShellApplication {
name = "awesome-autostart";
text = ''
set -o errexit
${pkgs.nitrogen}/bin/nitrogen --set-zoom-fill --random "''${HOME}/Pictures/Wallpaper"
'';
${pkgs.nitrogen}/bin/nitrogen --set-zoom-fill --random "''${HOME}/Pictures/Wallpaper"
'';
};
in
{
environment.systemPackages = with pkgs; [