pointfichiers/hosts/pi4/default.nix

39 lines
779 B
Nix
Raw Normal View History

2024-11-05 22:52:56 +01:00
{pkgs, ...}: {
imports = [
./hardware-configuration.nix
];
2024-11-04 14:39:20 +01:00
# Nix
nix.settings.experimental-features = ["nix-command" "flakes"];
# Set your time zone.
time.timeZone = "Europe/Paris";
2024-11-05 22:52:56 +01:00
environment.systemPackages = with pkgs; [
helix
git
];
2024-11-04 14:39:20 +01:00
services.openssh = {
enable = true;
ports = [22];
settings = {
PasswordAuthentication = false;
};
};
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHQyRXFQ6iA5p0vDuoGSHZfajiVZPAGIyqhTziM7QgBV gaspard@nixos"
];
2024-11-05 23:06:13 +01:00
networking = {
interfaces."wlan0".useDHCP = true;
wireless = {
interfaces = ["wlan0"];
enable = true;
networks = {
"TestNetwork".psk = "not_an_actual_password_leak";
};
};
};
2024-11-04 14:39:20 +01:00
}