adds storage box to ssh config
This commit is contained in:
parent
acc751c27a
commit
922a6be0f1
3 changed files with 30 additions and 12 deletions
|
|
@ -3,12 +3,14 @@
|
|||
outputs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
../../modules/ups
|
||||
../../modules/openssh
|
||||
../../modules/ssh
|
||||
../../modules/jellyfin
|
||||
../../modules/syncthing
|
||||
];
|
||||
|
|
@ -67,7 +69,10 @@
|
|||
users.users.dennis = {
|
||||
description = "dennis";
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "networkmanager" ];
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
];
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILvXWZOPOJJDAoF+Sx/ZLoAVu6G/7/MAWoknBgMAzjul dennis@dnsc-mac"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKnmuxDkpDIku5t1Tykz21u78xoQ7LJR8JEcfth32LGu dennis@dnsc-work"
|
||||
|
|
@ -86,7 +91,10 @@
|
|||
};
|
||||
|
||||
# Enable new Nix CLI and flakes
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
|
||||
# Install system wide packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
@ -98,6 +106,7 @@
|
|||
jellyfin-web
|
||||
jellyfin-ffmpeg
|
||||
usbutils
|
||||
restic
|
||||
];
|
||||
|
||||
# Programs
|
||||
|
|
@ -171,4 +180,3 @@
|
|||
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
|
||||
|
|
|
|||
3
modules/restic/default.nix
Normal file
3
modules/restic/default.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
|
||||
}
|
||||
|
|
@ -21,6 +21,13 @@
|
|||
identityFile = "/Users/dennis/.ssh/id_ed25519";
|
||||
identitiesOnly = true;
|
||||
};
|
||||
"dnsc-storage" = {
|
||||
hostname = "u295965.your-storagebox.de";
|
||||
user = "u295965";
|
||||
identityFile = "/Users/dennis/.ssh/id_ed25519";
|
||||
identitiesOnly = true;
|
||||
port = 23;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue