diff --git a/hosts/nixos/deck/system.nix b/hosts/nixos/deck/system.nix index 5ed6a45..b3a3939 100644 --- a/hosts/nixos/deck/system.nix +++ b/hosts/nixos/deck/system.nix @@ -35,6 +35,9 @@ users.users.yanlin = { extraGroups = [ "networkmanager" "wheel" "video" "audio" "input" ]; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGmKZ0FbXhYRHVkVTeSmpPrvuG8sC8La3Yx2gWb4ncuc yanlin@imac" + ]; }; environment.systemPackages = with pkgs; [ diff --git a/modules/media-process.nix b/modules/media-process.nix index bb7688c..ec9fb16 100644 --- a/modules/media-process.nix +++ b/modules/media-process.nix @@ -67,7 +67,7 @@ function image2webp() { local dir="''${1:-.}" - find "$dir" -type f \( -iname '*.png' -o -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.gif' \) | while read -r img; do + find "$dir" -type f \( -iname '*.png' -o -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.gif' -o -iname '*.heic' -o -iname '*.heif' \) | while read -r img; do outfile="''${img%.*}.webp" ${pkgs.imagemagick}/bin/magick "$img" -resize '1800>' -quality 82 "$outfile" echo "Converted: $img -> $outfile"