sisyphus/nixos/modules/nix/flakes/default.nix

15 lines
300 B
Nix
Raw Normal View History

2023-11-10 13:07:42 +01:00
{ config, lib, pkgs, ... }:
let
cfg = config.sisyphus.nix.flakes;
in {
options.sisyphus.nix.flakes.enable = lib.mkEnableOption "Nix Flakes";
config.nix = lib.mkIf cfg.enable {
extraOptions = ''
experimental-features = nix-command flakes
'';
package = pkgs.nixFlakes;
};
}