dotfiles/nix/nixos-modules/nix-flakes.nix

21 lines
365 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.magic_rb.flakes;
in
{
options.magic_rb.flakes = {
enable = mkEnableOption "Enable flake support";
};
config = {
nix = let
nix = pkgs.nixFlakes;
in {
package = nix;
extraOptions = ''
experimental-features = nix-command flakes ca-references
'';
};
};
}