Skip to content

Commit

Permalink
nixos-option: move default nixos argument to shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Dec 29, 2024
1 parent 76b3a49 commit 8130873
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkgs/by-name/ni/nixos-option/nixos-option.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
nixos ? import <nixpkgs/nixos> { },
nixos,
# list representing a nixos option path (e.g. ['console' 'enable']), or a
# prefix of such a path (e.g. ['console']), or a string representing the same
# (e.g. 'console.enable')
path,
# whether to recurse down the config attrset and show each set value instead
recursive ? false,
recursive,
}:

let
Expand Down
2 changes: 1 addition & 1 deletion pkgs/by-name/ni/nixos-option/nixos-option.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -eou pipefail
recursive=false
no_flake=false
positional_args=()
nix_args=()
nix_args=(--arg nixos "import <nixpkgs/nixos> { }")
flake=""

while [[ $# -gt 0 ]]; do
Expand Down

0 comments on commit 8130873

Please sign in to comment.