From 6be5927c618324e70e75179216860c82201c0e18 Mon Sep 17 00:00:00 2001 From: Paul-Henri Froidmont Date: Fri, 2 Jul 2021 00:15:06 +0200 Subject: [PATCH] Add Nix Flakes support --- configs/system.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configs/system.nix b/configs/system.nix index 4a59ef6..9d8e49f 100644 --- a/configs/system.nix +++ b/configs/system.nix @@ -1,6 +1,18 @@ { config, lib, pkgs, ... }: { + + nix = { + package = pkgs.nixUnstable; + extraOptions = '' + experimental-features = nix-command flakes + ''; + }; + environment.systemPackages = with pkgs; [ + (pkgs.writeShellScriptBin "nixFlakes" '' + exec ${pkgs.nixUnstable}/bin/nix --experimental-features "nix-command flakes" "$@" + '') + wget inetutils openvpn