pointfichiers/hosts/Pi4/default.nix

30 lines
572 B
Nix
Raw Normal View History

2024-11-04 14:39:20 +01:00
{
pkgs,
lib,
...
}: {
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
# Nix
nix.settings.experimental-features = ["nix-command" "flakes"];
# Set your time zone.
time.timeZone = "Europe/Paris";
services.openssh = {
enable = true;
ports = [22];
settings = {
PasswordAuthentication = false;
};
};
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHQyRXFQ6iA5p0vDuoGSHZfajiVZPAGIyqhTziM7QgBV gaspard@nixos"
];
environment.systemPackages = with pkgs; [
helix
git
];
}