blob: 0077090f857f182251a4408846a24baa8b56e143 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# compatability files for `nixos-option` and other legacy
# nix tools.
#
# `nixos-option` does not support flakes (as of yet),
# so we need to give it the path to `<nixpkgs>` (this file)
# and to `<nixos-config>` (in `./nixos/default.nix`) which
# then both return the correct outputs from the system flake.
#
# can also be useful for running out-of-tree `shell.nix` and `default.nix`
# files, without creating a custom flake for them and still having them
# get the correct package sets from the system flake configuration.
#
# see here: https://github.com/NixOS/nixpkgs/issues/97855#issuecomment-799925924
{ ... }:
let
flake = import ./flake-compat.nix { src = ./..; };
in
flake.defaultNix.legacyPackages.${builtins.currentSystem}
|