nixos-config/containers/data-access/config.nix
2020-12-23 11:52:39 +01:00

23 lines
496 B
Nix

{ pkgs, ... }: {
imports = [
./config.secret.nix
];
users.users.data = {
isNormalUser = true;
home = "/home/data";
description = "Data Access";
uid = 1000;
group = "users";
};
services.openssh = {
enable = true;
passwordAuthentication = false;
permitRootLogin = "no";
hostKeys = [
{ bits = 4096; path = "/var/secrets/ssh_host_rsa_key"; type = "rsa"; }
{ path = "/var/secrets/ssh_host_ed25519_key"; type = "ed25519"; }
];
};
}