dotfiles/nix/nixos-modules/nix-flakes.nix
Magic_RB d3e46e5413
Complete module rework
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2021-08-19 18:24:36 +02:00

21 lines
365 B
Nix

{ 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
'';
};
};
}