nixos/modules/env.nix

18 lines
293 B
Nix
Raw Permalink Normal View History

2024-06-30 09:11:01 +00:00
{ lib, config, ... }:
let
cfg = config.snowhawk.env;
in
{
options.snowhawk.env = {
enable = lib.mkEnableOption "env";
};
config = lib.mkIf cfg.enable {
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};
};
}