From 56992b8c945d497a623fe693847c91235be1ae02 Mon Sep 17 00:00:00 2001 From: sefidel Date: Tue, 28 Dec 2021 01:11:25 +0900 Subject: initial commit --- nixos/modules/flake.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 nixos/modules/flake.nix (limited to 'nixos/modules/flake.nix') diff --git a/nixos/modules/flake.nix b/nixos/modules/flake.nix new file mode 100644 index 0000000..a88f9d0 --- /dev/null +++ b/nixos/modules/flake.nix @@ -0,0 +1,12 @@ +{ config, pkgs, lib, ... }: + +{ + options.nix.flakes.enable = lib.mkEnableOption "nix flakes"; + + config = lib.mkIf config.nix.flakes.enable { + nix = { + package = pkgs.nixUnstable; + experimentalFeatures = "nix-command flakes"; + }; + }; +} -- cgit 1.4.1