This commit is contained in:
uttarayan21
2024-03-05 19:04:46 +05:30
parent 4b8acdcad7
commit f60e4a5165

View File

@@ -25,7 +25,8 @@
};
extraConfigFiles = {
"nixos-options.ron".text = let
"nixos-options.ron".text =
let
nixos-options = pkgs.lib.optionalString device.isNix
osConfig.system.build.manual.optionsJSON
+ "/share/doc/nixos/options.json";
@@ -43,7 +44,8 @@
options = builtins.toJSON ({
":hm" = [ hm-options ];
} // (if device.isNix then { ":nix" = [ nixos-options ]; } else { }));
in ''
in
''
Config(
options: ${options},
max_entries: Some(10),
@@ -55,20 +57,21 @@
shell: None,
)
'';
"websearch.ron".text = ''
"websearch.ron".text =
/* ron */
''
Config(
prefix: "?",
engines: [
Google,
DuckDuckGo,
Custom (
name: "Nix Packages",
url: "search.nixos.org/packages?channel=unstable&query={}"
),
Custom (
name: "GitHub",
url: "github.com/search?q={}"
),
Custom (
name: "Nix Packages",
url: "search.nixos.org/packages?query={}"
),
Custom (
name: "docs.rs",
url: "docs.rs/releases/search?query={}"
@@ -77,6 +80,7 @@
name: "NixOS options",
url: "search.nixos.org/options?query={}"
),
DuckDuckGo,
]
)
'';