• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

nixos-option: Command Examples in Linux

by Deepika

“nixos-option” is a command-line tool for inspecting and viewing information about NixOS configuration options. NixOS is a Linux distribution that uses the Nix package manager, and “nixos-option” allows users to view information about various configuration options and settings in the NixOS system.

The tool provides a simple and intuitive interface for accessing information about NixOS configuration options, including descriptions, default values, and allowed values. This information can be useful for understanding how the system is configured, and for making changes to the configuration.

“nixos-option” allows users to inspect the configuration of a NixOS system, including options for system services, networking, security, and other settings. The tool is a valuable resource for NixOS users, and it provides a convenient way to access information about the configuration of the system.

nixos-option Command Examples

1. List all subkeys of a given option key:

# nixos-option {{option_key}}

2. List current boot kernel modules:

# nixos-option boot.kernelModules

3. List authorized keys for a specific user:

# nixos-option users.users.{{username}}.openssh.authorizedKeys.{{keyFiles|keys}}

4. List all remote builders:

# nixos-option nix.buildMachines

5. List all subkeys of a given key on another NixOS configuration:

# NIXOS_CONFIG={{path_to_configuration.nix}} nixos-option{{option_key}}

6. Show recursively all values of a user:

# nixos-option -r users.users.{{user}}

Filed Under: Linux

Some more articles you might also be interested in …

  1. OpenLDAP Server and Client Utilities list
  2. lvresize command examples in Linux
  3. How to disable auto completion (tab completion) in bash shell
  4. What are different Samba Server Types
  5. Linux OS Service ‘irqbalance’
  6. nice Command Examples in Linux
  7. How to Extend allowed number of loopback devices
  8. How to Disable the ‘lvm2-lvmetad.socket/service’ on CentOS/RHEL 7
  9. a2disconf: command not found
  10. imagemagick for image optimization

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright