[feat] Alejandra formatting
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
{ inputs, pkgs, device, osConfig, ... }: {
|
||||
imports = [ inputs.anyrun.nixosModules.home-manager ];
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
device,
|
||||
osConfig,
|
||||
...
|
||||
}: {
|
||||
imports = [inputs.anyrun.nixosModules.home-manager];
|
||||
programs.anyrun = {
|
||||
enable = true;
|
||||
config = {
|
||||
@@ -15,10 +21,10 @@
|
||||
symbols
|
||||
kidex
|
||||
];
|
||||
x = { fraction = 0.5; };
|
||||
y = { fraction = 0.3; };
|
||||
height = { absolute = 0; };
|
||||
width = { absolute = 1000; };
|
||||
x = {fraction = 0.5;};
|
||||
y = {fraction = 0.3;};
|
||||
height = {absolute = 0;};
|
||||
width = {absolute = 1000;};
|
||||
showResultsImmediately = true;
|
||||
maxEntries = 10;
|
||||
layer = "overlay";
|
||||
@@ -26,10 +32,12 @@
|
||||
|
||||
extraConfigFiles = {
|
||||
"nixos-options.ron".text = let
|
||||
nixos-options = pkgs.lib.optionalString device.isNix
|
||||
nixos-options =
|
||||
pkgs.lib.optionalString device.isNix
|
||||
osConfig.system.build.manual.optionsJSON
|
||||
+ "/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";
|
||||
# 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
|
||||
@@ -41,8 +49,13 @@
|
||||
# ":nall" = [nixos-options hm-options some-other-option];
|
||||
# };
|
||||
options = builtins.toJSON ({
|
||||
":hm" = [ hm-options ];
|
||||
} // (if device.isNix then { ":nix" = [ nixos-options ]; } else { }));
|
||||
":hm" = [hm-options];
|
||||
}
|
||||
// (
|
||||
if device.isNix
|
||||
then {":nix" = [nixos-options];}
|
||||
else {}
|
||||
));
|
||||
in ''
|
||||
Config(
|
||||
options: ${options},
|
||||
@@ -56,7 +69,9 @@
|
||||
)
|
||||
'';
|
||||
"websearch.ron".text =
|
||||
/* ron */
|
||||
/*
|
||||
ron
|
||||
*/
|
||||
''
|
||||
Config(
|
||||
prefix: "?",
|
||||
@@ -85,12 +100,12 @@
|
||||
"rink.ron".text = ''
|
||||
Config(
|
||||
currency: Some("${
|
||||
builtins.toFile "currency.units" ''
|
||||
!category currencies "Currencies"
|
||||
usd USD
|
||||
inr INR
|
||||
''
|
||||
}"),
|
||||
builtins.toFile "currency.units" ''
|
||||
!category currencies "Currencies"
|
||||
usd USD
|
||||
inr INR
|
||||
''
|
||||
}"),
|
||||
)
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user