2023-10-24 20:04:49 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
2023-10-24 10:03:57 +02:00
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[ # Include the results of the hardware scan.
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
2023-10-24 20:04:49 +02:00
|
|
|
boot = {
|
|
|
|
# Use the extlinux boot loader. (NixOS wants to enable GRUB by default)
|
|
|
|
loader.grub.enable = false;
|
|
|
|
# Enables the generation of /boot/extlinux/extlinux.conf
|
|
|
|
loader.generic-extlinux-compatible.enable = true;
|
|
|
|
|
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
supportedFilesystems = lib.mkForce [ "btrfs" "reiserfs" "vfat" "f2fs" "xfs" "ntfs" "cifs" ];
|
|
|
|
};
|
2023-10-24 10:03:57 +02:00
|
|
|
|
|
|
|
networking.hostName = "pi3bplus"; # Define your hostname.
|
|
|
|
# Pick only one of the below networking options.
|
|
|
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
|
|
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
|
|
|
|
# Select internationalisation properties.
|
2023-10-24 20:04:49 +02:00
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
i18n.extraLocaleSettings = {
|
|
|
|
LC_ADDRESS = "de_DE.UTF-8";
|
|
|
|
LC_IDENTIFICATION = "de_DE.UTF-8";
|
|
|
|
LC_MEASUREMENT = "de_DE.UTF-8";
|
|
|
|
LC_MONETARY = "de_DE.UTF-8";
|
|
|
|
LC_NAME = "de_DE.UTF-8";
|
|
|
|
LC_NUMERIC = "de_DE.UTF-8";
|
|
|
|
LC_PAPER = "de_DE.UTF-8";
|
|
|
|
LC_TELEPHONE = "de_DE.UTF-8";
|
|
|
|
LC_TIME = "de_DE.UTF-8";
|
|
|
|
};
|
2023-10-24 10:03:57 +02:00
|
|
|
|
2023-10-24 20:04:49 +02:00
|
|
|
console = {
|
|
|
|
#font = "Lat2-Terminus16";
|
|
|
|
keyMap = "de-latin1-nodeadkeys";
|
|
|
|
};
|
2023-10-24 10:03:57 +02:00
|
|
|
|
|
|
|
# Define a user account. Don't forget to set a password with 'passwd'.
|
|
|
|
users.users."yoda" = {
|
|
|
|
isNormalUser = true;
|
2023-10-24 20:04:49 +02:00
|
|
|
description = "Yoda";
|
2023-10-24 10:03:57 +02:00
|
|
|
extraGroups = [ "wheel" ]; # Enable 'sudo' for the user.
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enable the OpenSSH daemon.
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
2023-10-24 20:04:49 +02:00
|
|
|
settings.PasswordAuthentication = false;
|
2023-10-24 10:03:57 +02:00
|
|
|
};
|
|
|
|
users.users.root.openssh.authorizedKeys.keys = [
|
|
|
|
(builtins.readFile ./assets/ssh/nitrokey.pub)
|
|
|
|
];
|
|
|
|
|
2023-10-24 20:04:49 +02:00
|
|
|
hardware.enableRedistributableFirmware = true;
|
2023-10-24 10:03:57 +02:00
|
|
|
|
|
|
|
# Copy the NixOS configuration file and link it from the resulting system
|
|
|
|
# (/run/current-system/configuration.nix). This is useful in case you
|
|
|
|
# accidentally delete configuration.nix.
|
|
|
|
# system.copySystemConfiguration = true;
|
|
|
|
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
# on your system were taken. It's perfectly fine and recommended to leave
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
system.stateVersion = "23.05"; # Did you read the comment?
|
|
|
|
}
|