From cf4478d72229a3e8923cc828f79d90f10dad17b9 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Tue, 5 Mar 2024 19:05:28 +0530 Subject: [PATCH] [feat] Search nixpkgs unstable by default --- config/nix/common/tmux.nix | 3 +-- config/nix/linux/anyrun.nix | 48 ++++++++++++++++++------------------- 2 files changed, 24 insertions(+), 27 deletions(-) diff --git a/config/nix/common/tmux.nix b/config/nix/common/tmux.nix index bb154b91..dd8d78e1 100644 --- a/config/nix/common/tmux.nix +++ b/config/nix/common/tmux.nix @@ -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" fi ''; -in -{ +in { programs.tmux = { enable = true; shell = "${pkgs.nushellFull}/bin/nu"; diff --git a/config/nix/linux/anyrun.nix b/config/nix/linux/anyrun.nix index e13751ee..d90e4ece 100644 --- a/config/nix/linux/anyrun.nix +++ b/config/nix/linux/anyrun.nix @@ -25,32 +25,30 @@ }; extraConfigFiles = { - "nixos-options.ron".text = - let - nixos-options = pkgs.lib.optionalString device.isNix - osConfig.system.build.manual.optionsJSON + "nixos-options.ron".text = let + 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 - + "/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 - # hm-options = inputs.home-manager.packages.${pkgs.system}.docs-json + "/share/doc/home-manager/options.json"; - # options = builtins.toJSON { - # ":nix" = [nixos-options]; - # ":hm" = [hm-options]; - # ":something-else" = [some-other-option]; - # ":nall" = [nixos-options hm-options some-other-option]; - # }; - options = builtins.toJSON ({ - ":hm" = [ hm-options ]; - } // (if device.isNix then { ":nix" = [ nixos-options ]; } else { })); - in - '' - Config( - options: ${options}, - max_entries: Some(10), - ) - ''; + 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 + # hm-options = inputs.home-manager.packages.${pkgs.system}.docs-json + "/share/doc/home-manager/options.json"; + # options = builtins.toJSON { + # ":nix" = [nixos-options]; + # ":hm" = [hm-options]; + # ":something-else" = [some-other-option]; + # ":nall" = [nixos-options hm-options some-other-option]; + # }; + options = builtins.toJSON ({ + ":hm" = [ hm-options ]; + } // (if device.isNix then { ":nix" = [ nixos-options ]; } else { })); + in '' + Config( + options: ${options}, + max_entries: Some(10), + ) + ''; "shell.ron".text = '' Config( prefix: "",