[feat]
This commit is contained in:
@@ -25,61 +25,65 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
extraConfigFiles = {
|
extraConfigFiles = {
|
||||||
"nixos-options.ron".text = let
|
"nixos-options.ron".text =
|
||||||
nixos-options = pkgs.lib.optionalString device.isNix
|
let
|
||||||
osConfig.system.build.manual.optionsJSON
|
nixos-options = pkgs.lib.optionalString device.isNix
|
||||||
|
osConfig.system.build.manual.optionsJSON
|
||||||
+ "/share/doc/nixos/options.json";
|
+ "/share/doc/nixos/options.json";
|
||||||
hm-options = inputs.home-manager.packages.${pkgs.system}.docs-json
|
hm-options = inputs.home-manager.packages.${pkgs.system}.docs-json
|
||||||
+ "/share/doc/home-manager/options.json";
|
+ "/share/doc/home-manager/options.json";
|
||||||
# or alternatively if you wish to read any other documentation options, such as home-manager
|
# or alternatively if you wish to read any other documentation options, such as home-manager
|
||||||
# get the docs-json package from the home-manager flake
|
# get the docs-json package from the home-manager flake
|
||||||
# hm-options = inputs.home-manager.packages.${pkgs.system}.docs-json + "/share/doc/home-manager/options.json";
|
# hm-options = inputs.home-manager.packages.${pkgs.system}.docs-json + "/share/doc/home-manager/options.json";
|
||||||
# options = builtins.toJSON {
|
# options = builtins.toJSON {
|
||||||
# ":nix" = [nixos-options];
|
# ":nix" = [nixos-options];
|
||||||
# ":hm" = [hm-options];
|
# ":hm" = [hm-options];
|
||||||
# ":something-else" = [some-other-option];
|
# ":something-else" = [some-other-option];
|
||||||
# ":nall" = [nixos-options hm-options some-other-option];
|
# ":nall" = [nixos-options hm-options some-other-option];
|
||||||
# };
|
# };
|
||||||
options = builtins.toJSON ({
|
options = builtins.toJSON ({
|
||||||
":hm" = [ hm-options ];
|
":hm" = [ hm-options ];
|
||||||
} // (if device.isNix then { ":nix" = [ nixos-options ]; } else { }));
|
} // (if device.isNix then { ":nix" = [ nixos-options ]; } else { }));
|
||||||
in ''
|
in
|
||||||
Config(
|
''
|
||||||
options: ${options},
|
Config(
|
||||||
max_entries: Some(10),
|
options: ${options},
|
||||||
)
|
max_entries: Some(10),
|
||||||
'';
|
)
|
||||||
|
'';
|
||||||
"shell.ron".text = ''
|
"shell.ron".text = ''
|
||||||
Config(
|
Config(
|
||||||
prefix: "",
|
prefix: "",
|
||||||
shell: None,
|
shell: None,
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
"websearch.ron".text = ''
|
"websearch.ron".text =
|
||||||
Config(
|
/* ron */
|
||||||
prefix: "?",
|
''
|
||||||
engines: [
|
Config(
|
||||||
Google,
|
prefix: "?",
|
||||||
DuckDuckGo,
|
engines: [
|
||||||
Custom (
|
Google,
|
||||||
name: "GitHub",
|
Custom (
|
||||||
url: "github.com/search?q={}"
|
name: "Nix Packages",
|
||||||
),
|
url: "search.nixos.org/packages?channel=unstable&query={}"
|
||||||
Custom (
|
),
|
||||||
name: "Nix Packages",
|
Custom (
|
||||||
url: "search.nixos.org/packages?query={}"
|
name: "GitHub",
|
||||||
),
|
url: "github.com/search?q={}"
|
||||||
Custom (
|
),
|
||||||
name: "docs.rs",
|
Custom (
|
||||||
url: "docs.rs/releases/search?query={}"
|
name: "docs.rs",
|
||||||
),
|
url: "docs.rs/releases/search?query={}"
|
||||||
Custom (
|
),
|
||||||
name: "NixOS options",
|
Custom (
|
||||||
url: "search.nixos.org/options?query={}"
|
name: "NixOS options",
|
||||||
),
|
url: "search.nixos.org/options?query={}"
|
||||||
]
|
),
|
||||||
)
|
DuckDuckGo,
|
||||||
'';
|
]
|
||||||
|
)
|
||||||
|
'';
|
||||||
"rink.ron".text = ''
|
"rink.ron".text = ''
|
||||||
Config(
|
Config(
|
||||||
currency: Some("${
|
currency: Some("${
|
||||||
|
|||||||
Reference in New Issue
Block a user