Skip to content

Commit a1da134

Browse files
committed
Working on titles/descriptions for attrs/extensions
1 parent 98087f6 commit a1da134

21 files changed

+101
-59
lines changed

modules/kernels/clojure/default.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
, settingsSchema
1111
}:
1212

13-
with { inherit (settings) attrs extensions; };
13+
with { inherit (settings.interface) attrs extensions; };
1414

1515
let
1616
common = callPackage ../common.nix {};

modules/kernels/clojure/module.nix

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ config, options, lib, pkgs, nixosOptionsToSettingsSchema, ... }:
1+
{ config, options, lib, pkgs, nixosOptionsToSettingsSchema, boilerplate, ... }:
22

33
with lib;
44

@@ -12,12 +12,15 @@ with lib;
1212
visible = false;
1313
};
1414

15-
attrs = mkOption {
15+
interface.attrs = mkOption {
16+
example = boilerplate.attrsTitle;
17+
description = boilerplate.attrsDescription;
1618
type = types.listOf types.str;
1719
default = ["clojure"];
1820
};
19-
20-
extensions = mkOption {
21+
interface.extensions = mkOption {
22+
example = boilerplate.extensionsTitle;
23+
description = boilerplate.extensionsDescription;
2124
type = types.listOf types.str;
2225
default = ["clj"];
2326
};

modules/kernels/coq/default.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
, settingsSchema
1111
}:
1212

13-
with { inherit (settings) packages attrs extensions; };
13+
with { inherit (settings) packages; };
14+
with { inherit (settings.interface) attrs extensions; };
1415

1516
let
1617
common = callPackage ../common.nix {};

modules/kernels/coq/module.nix

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
{ config, options, lib, pkgs, nixosOptionsToSettingsSchema, ... }:
1+
{ config, options, lib, pkgs, nixosOptionsToSettingsSchema, boilerplate, ... }:
22

33
with lib;
44

55
{
66
options = {
77
kernels.coq = {
88
enable = mkOption {
9-
description = "Enable Coq kernel";
9+
example = "Enable Coq kernel";
1010
type = types.bool;
1111
default = false;
1212
visible = false;
1313
};
1414

1515
packages = mkOption {
16+
example = "List of Coq packages to use";
1617
type = types.listOf (types.either types.str types.attrs);
1718
default = [];
1819
};
19-
2020
coqPackages = mkOption {
21+
example = "Coq packages set";
2122
type = types.enum (
2223
["coqPackages"]
2324
++ (builtins.filter (name: builtins.substring 0 (builtins.stringLength "coqPackages_") name == "coqPackages_")
@@ -26,12 +27,15 @@ with lib;
2627
default = "coqPackages";
2728
};
2829

29-
attrs = mkOption {
30+
interface.attrs = mkOption {
31+
example = boilerplate.attrsTitle;
32+
description = boilerplate.attrsDescription;
3033
type = types.listOf types.str;
3134
default = ["coq"];
3235
};
33-
34-
extensions = mkOption {
36+
interface.extensions = mkOption {
37+
example = boilerplate.extensionsTitle;
38+
description = boilerplate.extensionsDescription;
3539
type = types.listOf types.str;
3640
default = ["v"];
3741
};

modules/kernels/cpp/module.nix

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ config, options, lib, pkgs, nixosOptionsToSettingsSchema, ... }:
1+
{ config, options, lib, pkgs, nixosOptionsToSettingsSchema, boilerplate, ... }:
22

33
with lib;
44

@@ -35,12 +35,15 @@ with lib;
3535
default = "c++20";
3636
};
3737

38-
attrs = mkOption {
38+
interface.attrs = mkOption {
39+
example = boilerplate.attrsTitle;
40+
description = boilerplate.attrsDescription;
3941
type = types.listOf types.str;
4042
default = ["cpp"];
4143
};
42-
43-
extensions = mkOption {
44+
interface.extensions = mkOption {
45+
example = boilerplate.extensionsTitle;
46+
description = boilerplate.extensionsDescription;
4447
type = types.listOf types.str;
4548
default = ["cpp" "hpp" "cxx" "hxx" "c" "h"];
4649
};

modules/kernels/go/default.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
, settingsSchema
1111
}:
1212

13-
with { inherit (settings) packages attrs extensions; };
13+
with { inherit (settings) packages; };
14+
with { inherit (settings.interface) attrs extensions; };
1415

1516
with lib;
1617

modules/kernels/go/module.nix

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ config, options, lib, pkgs, nixosOptionsToSettingsSchema, ... }:
1+
{ config, options, lib, pkgs, nixosOptionsToSettingsSchema, boilerplate, ... }:
22

33
with lib;
44

@@ -26,12 +26,15 @@ with lib;
2626
default = "go";
2727
};
2828

29-
attrs = mkOption {
29+
interface.attrs = mkOption {
30+
example = boilerplate.attrsTitle;
31+
description = boilerplate.attrsDescription;
3032
type = types.listOf types.str;
3133
default = ["go"];
3234
};
33-
34-
extensions = mkOption {
35+
interface.extensions = mkOption {
36+
example = boilerplate.extensionsTitle;
37+
description = boilerplate.extensionsDescription;
3538
type = types.listOf types.str;
3639
default = ["go"];
3740
};

modules/kernels/haskell/default.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
, settingsSchema
1414
}:
1515

16-
with { inherit (settings) packages attrs extensions; };
16+
with { inherit (settings) packages; };
17+
with { inherit (settings.interface) attrs extensions; };
1718

1819
with lib;
1920

modules/kernels/haskell/module.nix

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ config, options, lib, pkgs, nixosOptionsToSettingsSchema, ... }:
1+
{ config, options, lib, pkgs, nixosOptionsToSettingsSchema, boilerplate, ... }:
22

33
with lib;
44

@@ -16,18 +16,20 @@ with lib;
1616
type = types.listOf (types.either types.str types.attrs);
1717
default = [];
1818
};
19-
2019
ghcPackage = mkOption {
2120
type = types.enum ["ghc92" "ghc94" "ghc96" "ghc98"];
2221
default = "ghc92";
2322
};
2423

25-
attrs = mkOption {
24+
interface.attrs = mkOption {
25+
example = boilerplate.attrsTitle;
26+
description = boilerplate.attrsDescription;
2627
type = types.listOf types.str;
2728
default = ["haskell"];
2829
};
29-
30-
extensions = mkOption {
30+
interface.extensions = mkOption {
31+
example = boilerplate.extensionsTitle;
32+
description = boilerplate.extensionsDescription;
3133
type = types.listOf types.str;
3234
default = ["hs"];
3335
};

modules/kernels/julia/default.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
, settingsSchema
1414
}:
1515

16-
with { inherit (settings) packages attrs extensions; };
16+
with { inherit (settings) packages; };
17+
with { inherit (settings.interface) attrs extensions; };
1718

1819
with lib;
1920

modules/kernels/julia/module.nix

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ config, options, lib, pkgs, nixosOptionsToSettingsSchema, ... }:
1+
{ config, options, lib, pkgs, nixosOptionsToSettingsSchema, boilerplate, ... }:
22

33
with lib;
44

@@ -29,12 +29,15 @@ with lib;
2929
default = "julia";
3030
};
3131

32-
attrs = mkOption {
32+
interface.attrs = mkOption {
33+
example = boilerplate.attrsTitle;
34+
description = boilerplate.attrsDescription;
3335
type = types.listOf types.str;
3436
default = ["julia"];
3537
};
36-
37-
extensions = mkOption {
38+
interface.extensions = mkOption {
39+
example = boilerplate.extensionsTitle;
40+
description = boilerplate.extensionsDescription;
3841
type = types.listOf types.str;
3942
default = ["jl"];
4043
};

modules/kernels/octave/default.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
, settingsSchema
1515
}:
1616

17-
with { inherit (settings) packages attrs extensions; };
17+
with { inherit (settings) packages; };
18+
with { inherit (settings.interface) attrs extensions; };
1819

1920
with lib;
2021

modules/kernels/octave/module.nix

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ config, options, lib, pkgs, nixosOptionsToSettingsSchema, ... }:
1+
{ config, options, lib, pkgs, nixosOptionsToSettingsSchema, boilerplate, ... }:
22

33
with lib;
44

@@ -17,12 +17,15 @@ with lib;
1717
default = [];
1818
};
1919

20-
attrs = mkOption {
20+
interface.attrs = mkOption {
21+
example = boilerplate.attrsTitle;
22+
description = boilerplate.attrsDescription;
2123
type = types.listOf types.str;
2224
default = ["octave"];
2325
};
24-
25-
extensions = mkOption {
26+
interface.extensions = mkOption {
27+
example = boilerplate.extensionsTitle;
28+
description = boilerplate.extensionsDescription;
2629
type = types.listOf types.str;
2730
default = ["m"];
2831
};

modules/kernels/postgres/default.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
, settingsSchema
99
}:
1010

11-
with { inherit (settings) packages attrs extensions; };
11+
with { inherit (settings) packages; };
12+
with { inherit (settings.interface) attrs extensions; };
1213

1314
let
1415
common = callPackage ../common.nix {};

modules/kernels/postgres/module.nix

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ config, options, lib, pkgs, nixosOptionsToSettingsSchema, ... }:
1+
{ config, options, lib, pkgs, nixosOptionsToSettingsSchema, boilerplate, ... }:
22

33
with lib;
44

@@ -15,12 +15,15 @@ with lib;
1515
default = [];
1616
};
1717

18-
attrs = mkOption {
18+
interface.attrs = mkOption {
19+
example = boilerplate.attrsTitle;
20+
description = boilerplate.attrsDescription;
1921
type = types.listOf types.str;
2022
default = ["postgres"];
2123
};
22-
23-
extensions = mkOption {
24+
interface.extensions = mkOption {
25+
example = boilerplate.extensionsTitle;
26+
description = boilerplate.extensionsDescription;
2427
type = types.listOf types.str;
2528
default = ["sql"];
2629
};

modules/kernels/r/default.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
, settingsSchema
1212
}:
1313

14-
with { inherit (settings) packages attrs extensions; };
14+
with { inherit (settings) packages; };
15+
with { inherit (settings.interface) attrs extensions; };
1516

1617
with lib;
1718

modules/kernels/r/module.nix

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ config, options, lib, pkgs, nixosOptionsToSettingsSchema, ... }:
1+
{ config, options, lib, pkgs, nixosOptionsToSettingsSchema, boilerplate, ... }:
22

33
with lib;
44

@@ -17,12 +17,15 @@ with lib;
1717
default = [];
1818
};
1919

20-
attrs = mkOption {
20+
interface.attrs = mkOption {
21+
example = boilerplate.attrsTitle;
22+
description = boilerplate.attrsDescription;
2123
type = types.listOf types.str;
2224
default = ["r" "R"];
2325
};
24-
25-
extensions = mkOption {
26+
interface.extensions = mkOption {
27+
example = boilerplate.extensionsTitle;
28+
description = boilerplate.extensionsDescription;
2629
type = types.listOf types.str;
2730
default = ["r"];
2831
};

modules/kernels/ruby/default.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
, settingsSchema
1313
}:
1414

15-
with { inherit (settings) packages attrs extensions; };
15+
with { inherit (settings) packages; };
16+
with { inherit (settings.interface) attrs extensions; };
1617

1718
with lib;
1819

modules/kernels/ruby/module.nix

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ config, options, lib, nixosOptionsToSettingsSchema, ... }:
1+
{ config, options, lib, nixosOptionsToSettingsSchema, boilerplate, ... }:
22

33
with lib;
44

@@ -31,20 +31,23 @@ in
3131
default = "ruby";
3232
};
3333

34-
attrs = mkOption {
34+
interface.attrs = mkOption {
35+
example = boilerplate.attrsTitle;
36+
description = boilerplate.attrsDescription;
3537
type = types.listOf types.str;
3638
default = ["ruby"];
3739
};
38-
39-
extensions = mkOption {
40+
interface.extensions = mkOption {
41+
example = boilerplate.extensionsTitle;
42+
description = boilerplate.extensionsDescription;
4043
type = types.listOf types.str;
4144
default = ["rb"];
4245
};
4346

4447
lsp.solargraph.enable = mkOption {
48+
example = "Enable Solargraph language server";
4549
type = types.bool;
4650
default = true;
47-
description = "Enable Solargraph language server";
4851
};
4952
};
5053
};

modules/kernels/rust/default.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
, settingsSchema
1414
}:
1515

16-
with { inherit (settings) packages attrs extensions; };
16+
with { inherit (settings) packages; };
17+
with { inherit (settings.interface) attrs extensions; };
1718

1819
with lib;
1920

0 commit comments

Comments
 (0)