Skip to content

Commit

Permalink
Merge pull request #52 from azuwis/nixos-option
Browse files Browse the repository at this point in the history
nixos-option: Fix when using flake based setup
  • Loading branch information
SebTM authored Aug 14, 2024
2 parents 57fb88c + 496b2e6 commit 7558fc9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _nixos-option
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ _nixos-option-opts() {
local mods=
if [[ -n "$NIX_PATH" && "$NIX_PATH" =~ "nixos-config=" ]]; then
mods="(import <nixos-config>)"
else
mods="{ nixpkgs.hostPlatform = builtins.currentSystem; }"
fi
local options='
with import <nixpkgs/lib>;
Expand Down

0 comments on commit 7558fc9

Please sign in to comment.