diff options
-rw-r--r-- | accounts/gkleen@sif/utils/pdf2pdf.nix | 8 | ||||
-rw-r--r-- | hosts/sif/default.nix | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/accounts/gkleen@sif/utils/pdf2pdf.nix b/accounts/gkleen@sif/utils/pdf2pdf.nix new file mode 100644 index 00000000..aba897f0 --- /dev/null +++ b/accounts/gkleen@sif/utils/pdf2pdf.nix | |||
@@ -0,0 +1,8 @@ | |||
1 | pkgs@{ lib, resholve, zsh, ghostscript, ... }: | ||
2 | |||
3 | resholve.writeScriptBin "pdf2pdf" { | ||
4 | inputs = with pkgs; [ghostscript]; | ||
5 | interpreter = lib.getExe zsh; | ||
6 | } '' | ||
7 | exec gs -dPDFSETTINGS=/prepress -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dSAFER "-sOutputFile=''${2}" "''${1}" | ||
8 | '' | ||
diff --git a/hosts/sif/default.nix b/hosts/sif/default.nix index 62f1fa3b..570c5df1 100644 --- a/hosts/sif/default.nix +++ b/hosts/sif/default.nix | |||
@@ -82,6 +82,7 @@ in { | |||
82 | "boot.shell_on_fail" | 82 | "boot.shell_on_fail" |
83 | "udev.log_priority=3" | 83 | "udev.log_priority=3" |
84 | "rd.systemd.show_status=auto" | 84 | "rd.systemd.show_status=auto" |
85 | "plymouth.use-simpledrm" | ||
85 | ]; | 86 | ]; |
86 | 87 | ||
87 | tmp.useTmpfs = true; | 88 | tmp.useTmpfs = true; |