mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 19:46:17 +01:00
21 lines
365 B
Nix
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
|
||
|
'';
|
||
|
};
|
||
|
};
|
||
|
}
|