new line
This commit is contained in:
Tasia Iso 2024-04-26 15:26:18 +02:00
parent 7f8dc48a30
commit 35941a67c9
Signed by: tasiaiso
SSH key fingerprint: SHA256:KiRjUay5C9i6objsEOIycygBHn54pDBB3Lj7fyJ0Elw
8 changed files with 29 additions and 9 deletions

View file

@ -16,9 +16,10 @@
./locales/paris.nix
./programs/git.nix
./programs/neovim.nix
./programs/zsh.nix
./programs/git.nix
./programs/ssh.nix
./services/sshd.nix
];

11
common/programs/ssh.nix Normal file
View file

@ -0,0 +1,11 @@
let
sshKeys = import ../../crypto/ssh-keys.nix;
in {
programs.ssh = {
knownHosts = {
"enry".publicKey = sshKeys.host.enry;
"phoenix".publicKey = sshKeys.host.phoenix;
"new-new-phoenix".publicKey = sshKeys.host.new-new-phoenix;
};
};
}

View file

@ -9,7 +9,6 @@
ll = "ls -al";
done = "curl -d 'Done' ntfy.sh/tasiaiso_done";
rebuild = "sudo nixos-rebuild switch -flake -I nixos-config=/home/tasia/Desktop/nixos-config"; # .#hostname
"git ap" = "git add -p";
};
ohMyZsh = {

View file

@ -37,7 +37,7 @@
AllowTcpForwarding no
# wip
AllowTcpForwarding yes
# AllowTcpForwarding yes
X11Forwarding no
AllowAgentForwarding no
AllowStreamLocalForwarding no

View file

@ -14,7 +14,3 @@ rec {
new-new-phoenix = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFXu/iFf6yhi6A0f6Lvp+wyltMHq1YgxZan5OdCKP9gE root@new-new-phoenix";
};
}
programs.ssh.knownHosts = {
"new-new-phoenix".publicKey = sshKeys.new-new-phoenix.host;
};

View file

@ -4,3 +4,6 @@
format = ssh
[commit]
gpgsign = true
[alias]
st = status
ap = add -p

10
dotfiles/.shellrc Normal file
View file

@ -0,0 +1,10 @@
export XDG_DATA_HOME="$HOME/.local/share"
if [[ -n $SSH_CONNECTION ]] ; then
curl \
-H "Title: New SSH session" \
-H "Priority: urgent" \
-H "Tags: urgent" \
-d "$(cat /etc/hostname ): ssh session ($SSH_CONNECTION)" \
ntfy.sh/tasiaiso_alerts &> /dev/null
fi

View file

@ -88,8 +88,8 @@ in {
osu-lazer-bin
inputs.nixos-conf-editor.packages.${system}.nixos-conf-editor
inputs.nix-software-center.packages.${system}.nix-software-center
# inputs.nixos-conf-editor.packages.${system}.nixos-conf-editor
# inputs.nix-software-center.packages.${system}.nix-software-center
];
services.blueman.enable = true;