nixos-config/modules/flakes.nix

15 lines
282 B
Nix
Raw Normal View History

2021-01-17 22:08:34 +00:00
{ config, pkgs, lib, ... }:
let
cfg = config.sconfig.flakes;
in
{
options.sconfig.flakes = lib.mkEnableOption "Enable Flakes";
config = lib.mkIf cfg {
2021-04-01 03:43:23 +00:00
nix.package = pkgs.nixFlakes;
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
2021-01-17 22:08:34 +00:00
};
}