[feat] Nixfmt all

This commit is contained in:
uttarayan21
2024-03-01 01:52:23 +05:30
parent 50cd5e549b
commit d26ef52267
10 changed files with 213 additions and 238 deletions

View File

@@ -1,11 +1,5 @@
{
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 = {
@@ -21,10 +15,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";
@@ -32,12 +26,10 @@
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
@@ -49,15 +41,8 @@
# ":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},
@@ -98,12 +83,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
''
}"),
)
'';
};