]> git.scottworley.com Git - warn-nixpkgs/commitdiff
Drop-in replacement support for importing <nixpkgs/nixos>
authorScott Worley <scottworley@scottworley.com>
Mon, 23 Aug 2021 19:51:52 +0000 (12:51 -0700)
committerScott Worley <scottworley@scottworley.com>
Mon, 23 Aug 2021 20:00:31 +0000 (13:00 -0700)
This is part of nixpkgs' public interface.

nixos/default.nix [new file with mode: 0644]

diff --git a/nixos/default.nix b/nixos/default.nix
new file mode 100644 (file)
index 0000000..4300993
--- /dev/null
@@ -0,0 +1,4 @@
+let actualNixpkgs = import <nixpkgs-warned> {};
+in actualNixpkgs.lib.warn
+("Using legacy channel nixos from " + <nixpkgs-warned/nixos>)
+(import <nixpkgs-stable/nixos>)