2024-03-25 19:20:52 +00:00
|
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports =
|
|
|
|
|
[ # Include the results of the hardware scan.
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Use the systemd-boot EFI boot loader.
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
|
time.timeZone = "Europe/Warsaw";
|
|
|
|
|
|
|
|
|
|
# Select internationalisation properties.
|
|
|
|
|
# i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
# console = {
|
|
|
|
|
# font = "Lat2-Terminus16";
|
|
|
|
|
# keyMap = "us";
|
|
|
|
|
# useXkbConfig = true; # use xkb.options in tty.
|
|
|
|
|
# };
|
|
|
|
|
|
|
|
|
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
|
|
|
users.users.pgrondek = {
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
|
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj1W8hNeieD3mWKyzJ47RX5lxZDiQdt5+wcUuRaYe+3Q4LdI+SBPiAg31FD7COY4OBqOGTqc0XvOtyU6tqL3rgfHne5Uu98X7g5XdI8EJ6aAKqp+n1SWgcvHZefMWBXyVyKsF3fyw8Uj+Ho2zNVCQexQmBIsd/Vp9KLbA+g47BofTykKsB/ZHoJVv/zFfMlV7z10ky1hSoBBaIv/7YsyMLbpzuguhPlmVOJxL5c1w/7josio3Kt8Q+seIGEizFXeqU89Hci4U0Atndb1GOx/EHoWy+XKbC4v2abrSHok9HHQ7CQnIosdGorN6mnetHlqi9Mkwn0zH8nuOlV48itiesPL4iB7b8zpXB4AKPEgKvOOr9TdQxkKGltI8Q1sS+QQIWFXAoIaMfZGCCw4Zvb+RRay49+86JVJwQZyYa7HUTuxpjzbxLtiADXZKPrZeMCBxBFxzeUvH325qqQFw8N0vsuwKDVf5f0L83KUt23UIVUfNGjLI7rpMC2WKK8yozQr8= pgrondek@hawkeye"
|
|
|
|
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDwTqV2idle6AQj179tAuAxZzodtTb2aMJKIEnL+tXfdsKsoc8kfQV3JMtq53hk6jRcH/9+FamCBqP/2s1xT4elKAZ7GWYBMi4HqGr8Qr7I1sK2m9dydrmW+iepmhGNDdKlYkEFc8aM9blbCTEN9RqqJiSomzDAIZQWiV2E/18MIxu3WYKJ561uzILkmB9o7UJbdAgOGbk6+GkBIwGCX5CwlX4Ro8wLv/i55/bg03N1lAbsCeDqaZX7ikiy2hnxAFH/EuY2g2WK4x9yUjhUe1MnCZy5SealSP76b9BHyJVYrxGVyAZOtlnewEXzbJXnyHGQg00hXeT8YtTlMSXaQVih pgrondek@hulk"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
2024-03-25 19:23:04 +00:00
|
|
|
|
vim
|
2024-03-25 19:20:52 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Enable the OpenSSH daemon.
|
|
|
|
|
services.openssh = {
|
|
|
|
|
enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
|
hostName = "bastion";
|
|
|
|
|
interfaces = {
|
|
|
|
|
ens18.ipv4.addresses = [ {
|
|
|
|
|
address = "192.168.50.152";
|
|
|
|
|
prefixLength = 24;
|
|
|
|
|
} ];
|
|
|
|
|
};
|
|
|
|
|
defaultGateway = "192.168.50.2";
|
|
|
|
|
nameservers = [ "192.168.50.100" ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
system.stateVersion = "23.11"; # Did you read the comment?
|
|
|
|
|
}
|
|
|
|
|
|