From d386ac8407b330c296daeef75bf957c4c42d8cbc Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Wed, 7 Feb 2024 11:08:33 +0100 Subject: [PATCH] Add phone public SSH key to server --- nixos-configurations/pc/default.nix | 6 +++--- nixos-configurations/server/default.nix | 1 + nixos-configurations/shared-desktop.nix | 6 ++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/nixos-configurations/pc/default.nix b/nixos-configurations/pc/default.nix index af68b69..a88d843 100644 --- a/nixos-configurations/pc/default.nix +++ b/nixos-configurations/pc/default.nix @@ -12,8 +12,8 @@ networking = { hostName = "pc"; firewall = { - allowedTCPPorts = [ 5173 8081 53317 ]; - allowedUDPPorts = [ 5173 8081 53317 ]; + allowedTCPPorts = [ 5173 8081 ]; + allowedUDPPorts = [ 5173 8081 ]; }; }; @@ -49,7 +49,7 @@ home-manager.users.thiloho = { pkgs, lib, ... }: { programs.git.signing.key = "5ECD00BDC15A987E"; home = { - packages = with pkgs; [ blender inkscape localsend ]; + packages = with pkgs; [ blender inkscape ]; stateVersion = "23.05"; }; }; diff --git a/nixos-configurations/server/default.nix b/nixos-configurations/server/default.nix index 7cb7305..7546d23 100644 --- a/nixos-configurations/server/default.nix +++ b/nixos-configurations/server/default.nix @@ -284,6 +284,7 @@ users.users.thiloho.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMkvr+vT7Ik0fjquxb9xQBfVVWJPgrfC+vJZsyG2V+/G thiloho@pc" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ5jOELdhQ85uKV8l2QkbLhjdPr142p1AmPzpawaJ7ws thiloho@laptop" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA2jCxyYIisj7/tFdFewdCvxMHk3fNDkL8cFjowub7wV thiloho@pixelphone" ]; home-manager.users.thiloho = { pkgs, lib, ... }: { diff --git a/nixos-configurations/shared-desktop.nix b/nixos-configurations/shared-desktop.nix index eb938ce..057b105 100644 --- a/nixos-configurations/shared-desktop.nix +++ b/nixos-configurations/shared-desktop.nix @@ -22,6 +22,11 @@ }; }; + networking.firewall = { + allowedTCPPorts = [ 53317 ]; + allowedUDPPorts = [ 53317 ]; + }; + programs = { steam.enable = true; gnupg.agent = { @@ -93,6 +98,7 @@ neofetch godot_4 backblaze-b2 + localsend ]; }; };