allow unfree

This commit is contained in:
Prunebutt 2025-09-25 18:01:34 +02:00
parent d961bab798
commit e1a7632b40
3 changed files with 30 additions and 3 deletions

27
flake.lock generated Normal file
View file

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1758427187,
"narHash": "sha256-pHpxZ/IyCwoTQPtFIAG2QaxuSm8jWzrzBGjwQZIttJc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "554be6495561ff07b6c724047bdd7e0716aa7b46",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

View file

@ -7,7 +7,7 @@
nixpkgs,
} @ inputs: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages."${system}";
pkgs = import nixpkgs { inherit system; config.allowUnfree = true;};
in {
packages."${system}".default = pkgs.writeShellApplication {
name = "hello_world";

View file

@ -103,9 +103,9 @@ case "$1" in
"${PAPERLESS_URL}/api/documents/post_document/") || FAILED=1
if [ -v FAILED ]; then
echo "Paperless failed with message:\n$PAPERLESS_STATUS"
printf "Paperless failed with message:\n%s" "$PAPERLESS_STATUS"
else
echo "Paperless consumption job: '$PAPERLESS_STATUS'"
printf "Paperless consumption job: %s\n" "$PAPERLESS_STATUS"
fi
;;
*)