From 857d6943f9cd908a08976e376c7cb62d7abb9bf3 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sun, 8 Feb 2026 11:41:56 +0100 Subject: [PATCH] add pubkey --- hosts/nixos/deck/system.nix | 3 +++ modules/media-process.nix | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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"