From 7efce0a4ee407330095bb0ef83cd01f0e104742e Mon Sep 17 00:00:00 2001 From: jasmine Date: Tue, 1 Oct 2024 11:57:53 +0800 Subject: [PATCH 1/2] add biometric key --- home-manager/sajenim/p6p_biometric.pub | 1 + nixos/common/users/sajenim/default.nix | 1 + 2 files changed, 2 insertions(+) create mode 100644 home-manager/sajenim/p6p_biometric.pub diff --git a/home-manager/sajenim/p6p_biometric.pub b/home-manager/sajenim/p6p_biometric.pub new file mode 100644 index 0000000..9d94c9c --- /dev/null +++ b/home-manager/sajenim/p6p_biometric.pub @@ -0,0 +1 @@ +ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJC2zR9w3y+OXEq7qcs8dIdSC2j4LUx2197fyXwR3aSLHwypodiZTdJTJkmklxxaUXmyi7CZUmp1LPx5vdLPgzI= diff --git a/nixos/common/users/sajenim/default.nix b/nixos/common/users/sajenim/default.nix index 2c04c83..8a0d88c 100644 --- a/nixos/common/users/sajenim/default.nix +++ b/nixos/common/users/sajenim/default.nix @@ -15,6 +15,7 @@ shell = pkgs.zsh; openssh.authorizedKeys.keyFiles = [ "${inputs.self}/home-manager/sajenim/sajenim_sk.pub" + "${inputs.self}/home-manager/sajenim/p6p_biometric.pub" ]; hashedPassword = "$y$j9T$qIhW5qL9J9w.w6JWa.bGo/$oddG3HJyOZ1mwHzYnYPJ/MzN38oHEBEvPDc0sB3rAf9"; }; From d5c0320eee4071a24b9cf7861119c62d035ec4b3 Mon Sep 17 00:00:00 2001 From: jasmine Date: Tue, 1 Oct 2024 11:58:33 +0800 Subject: [PATCH 2/2] install sshfs + add zsh alias --- home-manager/sajenim/features/cli/zsh.nix | 1 + nixos/common/global/env.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/home-manager/sajenim/features/cli/zsh.nix b/home-manager/sajenim/features/cli/zsh.nix index 9411919..082a7ff 100644 --- a/home-manager/sajenim/features/cli/zsh.nix +++ b/home-manager/sajenim/features/cli/zsh.nix @@ -30,6 +30,7 @@ ll = "ls -l"; tt = "wezterm cli set-tab-title "; deploy-viridian = "nixos-rebuild switch --flake .#viridian --target-host viridian --use-remote-sudo"; + mount-backup = "sshfs sajenim@viridian.kanto.dev:/srv/shares/sajenim /home/sajenim/.backup -o IdentityFile=/home/sajenim/.ssh/sajenim_sk"; }; # An attribute set that adds to named directory hash table diff --git a/nixos/common/global/env.nix b/nixos/common/global/env.nix index e4dbfc1..30a9f2c 100644 --- a/nixos/common/global/env.nix +++ b/nixos/common/global/env.nix @@ -19,6 +19,7 @@ nmap # network mapper xclip # clipboard ripgrep # searches the current directory for a regex pattern + sshfs # Mount filesystems over SSH # HTTP curl # transfer dato to/from server