Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Core NixOS Module

Everything configured by _nixos.nix, imported automatically by mkHost for Linux platforms.

Nixpkgs

SettingValue
allowUnfreetrue
allowBrokenfalse
allowInsecurefalse
allowUnsupportedSystemtrue

Nix settings

SettingValue
nixPath[] (mkDefault)
allowed-users[<userName>]
trusted-users["@admin"] + <userName> (unless the server role is active)
substituters["https://nix-community.cachix.org" "https://cache.nixos.org"]
trusted-public-keysnix-community + cache.nixos.org keys
auto-optimise-storetrue
experimental-featuresnix-command flakes
gc.automatictrue
gc.datesweekly
gc.options--delete-older-than 7d

Boot

SettingValue
loader.systemd-boot.enabletrue
loader.systemd-boot.configurationLimit42
loader.efi.canTouchEfiVariablestrue
initrd.availableKernelModulesxhci_pci, ahci, nvme, usbhid, usb_storage, sd_mod
kernelPackageslinuxPackages_latest
kernelModules["uinput"]

Localization

SettingSource
time.timeZonehostSpec.timeZone
i18n.defaultLocalehostSpec.locale
console.keyMaphostSpec.keyboardLayout (mkDefault)

Networking

SettingValue
hostNamehostSpec.hostName
useDHCPfalse
networkmanager.enabletrue
firewall.enabletrue
Interface DHCPEnabled for hostSpec.networking.interface when set

Programs

ProgramSetting
gnupg.agentEnabled with SSH support
dconfEnabled
gitEnabled
zshEnabled, completion disabled (managed by HM)

Security

SettingValue
polkit.enabletrue
sudo.enabletrue
Sudo NOPASSWDreboot for wheel group

Users

Primary user (hostSpec.userName)

SettingValue
isNormalUsertrue
extraGroupswheel + audio, video, docker, git, networkmanager (if groups exist)
shellzsh
openssh.authorizedKeys.keyshostSpec.sshAuthorizedKeys
hashedPasswordFilehostSpec.hashedPasswordFile (when non-null)

Root

SettingValue
openssh.authorizedKeys.keyshostSpec.sshAuthorizedKeys
hashedPasswordFilehostSpec.rootHashedPasswordFile (when non-null)

SSH hardening

SettingValue
services.openssh.enabletrue
PermitRootLoginprohibit-password
PasswordAuthenticationfalse
KbdInteractiveAuthenticationfalse

Other services

SettingValue
services.printing.enablefalse
services.xserver.xkb.layouthostSpec.keyboardLayout (mkDefault)
hardware.ledger.enabletrue

System packages

  • git
  • inetutils

State version

system.stateVersion = "24.11" (mkDefault)