adds storage box to ssh config

This commit is contained in:
Dennis Schoepf 2025-06-22 20:29:37 +02:00
parent acc751c27a
commit 922a6be0f1
3 changed files with 30 additions and 12 deletions

View file

@ -3,12 +3,14 @@
outputs, outputs,
pkgs, pkgs,
... ...
}: { }:
{
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
inputs.home-manager.nixosModules.home-manager inputs.home-manager.nixosModules.home-manager
../../modules/ups ../../modules/ups
../../modules/openssh ../../modules/openssh
../../modules/ssh
../../modules/jellyfin ../../modules/jellyfin
../../modules/syncthing ../../modules/syncthing
]; ];
@ -67,7 +69,10 @@
users.users.dennis = { users.users.dennis = {
description = "dennis"; description = "dennis";
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ]; extraGroups = [
"wheel"
"networkmanager"
];
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILvXWZOPOJJDAoF+Sx/ZLoAVu6G/7/MAWoknBgMAzjul dennis@dnsc-mac" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILvXWZOPOJJDAoF+Sx/ZLoAVu6G/7/MAWoknBgMAzjul dennis@dnsc-mac"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKnmuxDkpDIku5t1Tykz21u78xoQ7LJR8JEcfth32LGu dennis@dnsc-work" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKnmuxDkpDIku5t1Tykz21u78xoQ7LJR8JEcfth32LGu dennis@dnsc-work"
@ -86,7 +91,10 @@
}; };
# Enable new Nix CLI and flakes # Enable new Nix CLI and flakes
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [
"nix-command"
"flakes"
];
# Install system wide packages # Install system wide packages
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
@ -98,6 +106,7 @@
jellyfin-web jellyfin-web
jellyfin-ffmpeg jellyfin-ffmpeg
usbutils usbutils
restic
]; ];
# Programs # Programs
@ -171,4 +180,3 @@
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "24.11"; system.stateVersion = "24.11";
} }

View file

@ -0,0 +1,3 @@
{
}

View file

@ -21,6 +21,13 @@
identityFile = "/Users/dennis/.ssh/id_ed25519"; identityFile = "/Users/dennis/.ssh/id_ed25519";
identitiesOnly = true; identitiesOnly = true;
}; };
"dnsc-storage" = {
hostname = "u295965.your-storagebox.de";
user = "u295965";
identityFile = "/Users/dennis/.ssh/id_ed25519";
identitiesOnly = true;
port = 23;
};
}; };
}; };
} }