20 lines
333 B
Nix
20 lines
333 B
Nix
{ 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;
|
|
};
|
|
}
|