mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
17 lines
354 B
Nix
17 lines
354 B
Nix
{ config, pkgs, lib, ... }:
|
|
let
|
|
cfg = config.sconfig.flakes;
|
|
in
|
|
{
|
|
options.sconfig.flakes = lib.mkEnableOption "Enable Flakes";
|
|
|
|
config = lib.mkIf cfg {
|
|
environment.systemPackages = [ pkgs.nixFlakes ];
|
|
nix = {
|
|
package = pkgs.nixFlakes;
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
'';
|
|
};
|
|
};
|
|
}
|