refactor(hosts): use modules/ssh with sensible defaults
This commit is contained in:
@@ -12,7 +12,7 @@ let
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
../modules/ssh/hardened-openssh.nix
|
||||
../modules/ssh
|
||||
];
|
||||
|
||||
ssh.username = username;
|
||||
@@ -37,21 +37,5 @@ in
|
||||
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
harden = true;
|
||||
};
|
||||
|
||||
# sdImage.postBuildCommands =
|
||||
# let
|
||||
# bootloaderPackage = pkgs.ubootOrangePiZero2;
|
||||
# bootloaderSubpath = "/u-boot-sunxi-with-spl.bin";
|
||||
# in
|
||||
# ''
|
||||
# dd if=${bootloaderPackage}${bootloaderSubpath} of=$img \
|
||||
# bs=8 seek=1024 \
|
||||
# conv=notrunc
|
||||
# '';
|
||||
|
||||
system.stateVersion = "26.05";
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ let
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
../modules/ssh/hardened-openssh.nix
|
||||
../modules/ssh
|
||||
];
|
||||
|
||||
ssh.username = username;
|
||||
@@ -60,11 +60,6 @@ in
|
||||
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
harden = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
libraspberrypi
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user