{
  config,
  lib,
  ...
}: let
  inherit (builtins) elemAt;
  inherit (lib.options) mkOption mkEnableOption;
  inherit (lib.types) enum listOf str nullOr bool package;
in {
  imports = [
    # configuration options for nixos activation scripts
    #  ./activation.nix

    # boot/impermanence mounts
    #  ./boot.nix
    #  ./impermanence.nix

    # network and overall hardening
    ./networking
    #  ./security.nix
    #  ./encryption.nix

    # filesystems
    #  ./fs.nix

    # package and program related options
    #  ./services
    ./programs

    # monitor configuration
    ./monitors.nix

    ./hardware.nix
  ];

  options.modules.system = {
    mainUser = mkOption {
      type = enum config.modules.system.users;
      default = elemAt config.modules.system.users 0;
      description = ''
        The username of the main user for your system.

        In case of a multiple systems, this will be the user with priority in ordered lists and enabled options.
      '';
    };

    users = mkOption {
      type = listOf str;
      default = ["charlie"];
      description = "A list of home-manager users on the system.";
    };

    autoLogin = mkOption {
      type = bool;
      default = false;
      description = ''
        Whether to enable passwordless login. This is generally useful on systems with
        FDE (Full Disk Encryption) enabled. It is a security risk for systems without FDE.
      '';
    };

    yubikeySupport = {
      enable = mkEnableOption "yubikey support";
      deviceType = mkOption {
        type = nullOr (enum ["NFC5" "nano"]);
        default = null;
        description = "A list of device models to enable Yubikey support for";
      };
    };

    sound = {
      enable = mkEnableOption "sound related programs and audio-dependent programs";
    };
    impermanence = {
      enable = mkEnableOption "Enable Impermanence";
    };
    video = {
      enable = mkEnableOption "video drivers and programs that require a graphical user interface";
      nvidia = mkEnableOption "Nvidia graphics drivers";
      amd = mkEnableOption "AMD graphics drivers";
    };

    hardware.bluetooth = {
      enable = mkEnableOption "bluetooth modules, drivers and configuration program(s)";
      powerOnBoot = mkEnableOption "Enable bluetooth on boot";
    };

    # should the device enable printing module and try to load common printer modules
    # you might need to add more drivers to the printing module for your printer to work
    printing = {
      enable = mkEnableOption "printing";
      extraDrivers = mkOption {
        type = listOf str;
        default = [];
        description = "A list of extra drivers to enable for printing";
      };

      "3d" = {
        enable = mkEnableOption "3D printing suite";
        extraPrograms = mkOption {
          type = listOf package;
          default = [];
          description = "A list of extra programs to enable for 3D printing";
        };
      };
    };
  };
}
