about summary refs log tree commit diff
path: root/nixos/modules/flake.nix
blob: a88f9d03e1a44237c14951e7915f800dbacbbcd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
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";
    };
  };
}