configuration.nix.md

configuration.nix

NixOS moduleA NixOS module, checked against real NixOS options and evaluated by the NixOS module system.Project filesNearby files from the example project are mounted, so relative paths and imports are real.
{ pkgs, lib, ... }:

{
  imports = [
    ./hardware-configuration.nix
  ];

  environment.systemPackages = with pkgs; [
    firefox
    vim
  ];
}

This is a basic configuration.nix file with a several set options and an import.

configuration.nix is a NixOS module

Share your thoughts