mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-22 22:09:34 +01:00
73 lines
2.3 KiB
Nix
73 lines
2.3 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
imports =
|
|
[ # Include the results of the hardware scan.
|
|
./hardware-configuration.nix
|
|
];
|
|
|
|
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" ];
|
|
|
|
# Delete all files in /tmp during boot.
|
|
tmp.cleanOnBoot = true;
|
|
};
|
|
|
|
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.
|
|
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";
|
|
};
|
|
console = {
|
|
#font = "Lat2-Terminus16";
|
|
keyMap = "de-latin1-nodeadkeys";
|
|
};
|
|
|
|
# Define a user account. Don't forget to set a password with 'passwd'.
|
|
users.users."yoda" = {
|
|
isNormalUser = true;
|
|
description = "Yoda";
|
|
extraGroups = [ "wheel" ]; # Enable 'sudo' for the user.
|
|
};
|
|
|
|
# Enable the OpenSSH daemon.
|
|
services.openssh = {
|
|
enable = true;
|
|
settings.PasswordAuthentication = false;
|
|
};
|
|
users.users.root.openssh.authorizedKeys.keys = [
|
|
(builtins.readFile ./assets/ssh/nitrokey.pub)
|
|
];
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
# 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;
|
|
|
|
# Most users should never change this value after the initial install, for any reason, even if you've upgraded your system to a new NixOS release.
|
|
system.stateVersion = "23.11";
|
|
}
|