nixos-config/modules/flakes.nix
2021-03-31 23:43:23 -04:00

14 lines
282 B
Nix

{ config, pkgs, lib, ... }:
let
cfg = config.sconfig.flakes;
in
{
options.sconfig.flakes = lib.mkEnableOption "Enable Flakes";
config = lib.mkIf cfg {
nix.package = pkgs.nixFlakes;
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
};
}