Files
nix-config/common/flakes.nix
Zuckerberg 23c8076e4d
All checks were successful
Check Flake / check-flake (push) Successful in 1m50s
Pinning system nixpkgs is not needed anymore. nixpkgs already does this automatically for flakes.
2025-03-28 21:45:46 -07:00

19 lines
291 B
Nix

{ lib, pkgs, config, ... }:
with lib;
let
cfg = config.nix.flakes;
in
{
options.nix.flakes = {
enable = mkEnableOption "use nix flakes";
};
config = mkIf cfg.enable {
nix = {
extraOptions = ''
experimental-features = nix-command flakes
'';
};
};
}