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

This file handles the basic configuration for settings like language, timezone, input, cpu etc.

conf.additionalBootKernalParams

additional kernelParams passed to bootloader

Type: list of string

Default: [ ]

Example: [ ]

conf.bootParams

Boot params

Type: list of string

Default: [ ]

Example:

[
  "resume=something"
]

conf.cpu

cpu microcode.

Type: one of “amd”, “intel”

Default: "amd"

Example: "intel"

conf.homeStateVersion

Home state version

Type: string

Default: "24.11"

Example: "23.05"

conf.kernelOverride

kernel to be used Has no examples as doc complains… #example = pkgs.linuxPackages_xanmod_latest;

Type: null or package

Default: null

conf.locale

The locale.

Type: string

Default: "en_US.UTF-8"

Example: "de_DE.UTF-8"

conf.nixosConfigPath

The path for your build command, you can then simply type rebuild to switch to a new configuration.

Type: string

Default: "/home/YOURNAME/gits/nixos/."

Example: "yourpath/."

conf.secureBoot

enables secure boot. Note: Secure boot is NOT reproducible Here are the necessary steps:

  • create your keys with sbctl -> sudo sbctl create-keys
  • build with systemd once -> set this to false and build once
  • build with secureBoot true
  • verify that your keys are signed (note, only systemd and your generations should now be signed): sudo sbtcl verify
  • enroll your keys (microsoft is necessary for windows dualboot support, leave it there): sudo sbctl enroll-keys --microsoft
  • reboot with secureboot enabled Note: Some motherboards have vendor specific keys for secure boot, this may not necessarily work with our self signed keys You likely have to disable these vendor specific keys (example HP: sure boot)

Type: unspecified value

Default: false

Example: true

conf.system

System architecture.

Type: one of “x86_64-linux”, “aarch64-linux”, “aarch64-linux-android”

Default: "x86_64-linux"

Example: "aarch64-linux"

conf.systemLocalTime

System time for dualbooting

Type: unspecified value

Default: false

Example: true

conf.systemStateVersion

System state version

Type: string

Default: "23.05"

Example: "24.11"

conf.timezone

The timezone.

Type: string

Default: "Europe/Zurich"

Example: "Europe/Berlin"

conf.useSystemdBootloader

use systemd bootloader.

Type: unspecified value

Default: true

Example: false

conf.username

The username.

Type: string

Default: "DashNix"

Example: "pingpang"

conf.wsl

Runs Nix in wsl

Type: unspecified value

Default: false

Example: true