···
./hardware-configuration.nix
+
systemd-boot.enable = true;
+
efi.canTouchEfiVariables = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
environment.systemPackages = with pkgs; [
vim # for editing config files
+
# TODO add any other programs you want to install here
+
programs.bash.promptInit = ''
+
# TODO set hashed password from `nix run nixpkgs#mkpasswd`
+
root.initialHashedPassword = "";
+
# TODO change username, if desired
+
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
+
initialHashedPassword = root.initialHashedPassword;
+
# TODO define SSH keys if accessing remotely
+
openssh.authorizedKeys.keys = [
+
# "ssh-ed25519 <key> <name>"
+
settings.passwordAuthentication = false;
# TODO replace this with domain
networking.domain = "example.org";
security.acme.acceptTerms = true;
+
# TODO select internationalisation properties
+
i18n.defaultLocale = "en_GB.UTF-8";
+
time.timeZone = "Europe/London";
# TODO replace these values
···
serverIpv6 = "2001:DB8::/64";
publicInterface = "eth0";
+
# TODO enable desired services
# mailserver.enable = 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?