nixos/modules/env.nix

20 lines
333 B
Nix
Raw 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;
};
nixpkgs.config.allowUnfree = true;
};
}