about summary refs log tree commit diff stats
path: root/modules/by-name/ni/nixos-option/module.nix
blob: 0053d35773b6f9e8f26b8e756721c46a04459a1b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  config,
  lib,
  libraries,
  ...
}: let
  cfg = config.soispha.programs.nixos-option;
in {
  options.soispha.programs.nixos-option = {
    enable = libraries.base.options.mkEnable "nixos-option";
  };

  config = lib.mkIf cfg.enable {
    # NOTE: We disable nixos-option here explicitly, because I never used it, and it
    # depends on cppnix. <2025-12-11>
    system.tools.nixos-option.enable = false;
  };
}