[feat] Search nixpkgs unstable by default

This commit is contained in:
uttarayan21
2024-03-05 19:05:28 +05:30
parent f60e4a5165
commit cf4478d722
2 changed files with 24 additions and 27 deletions

View File

@@ -9,8 +9,7 @@ let
tmux popup -d '#{pane_current_path}' -xC -yC -w$width -h$height -E "tmux attach -t scratch || tmux new -s scratch" tmux popup -d '#{pane_current_path}' -xC -yC -w$width -h$height -E "tmux attach -t scratch || tmux new -s scratch"
fi fi
''; '';
in in {
{
programs.tmux = { programs.tmux = {
enable = true; enable = true;
shell = "${pkgs.nushellFull}/bin/nu"; shell = "${pkgs.nushellFull}/bin/nu";

View File

@@ -25,32 +25,30 @@
}; };
extraConfigFiles = { extraConfigFiles = {
"nixos-options.ron".text = "nixos-options.ron".text = let
let nixos-options = pkgs.lib.optionalString device.isNix
nixos-options = pkgs.lib.optionalString device.isNix osConfig.system.build.manual.optionsJSON
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(
Config( options: ${options},
options: ${options}, max_entries: Some(10),
max_entries: Some(10), )
) '';
'';
"shell.ron".text = '' "shell.ron".text = ''
Config( Config(
prefix: "", prefix: "",