{ config, lib, ... }: let cfg = config.vhack.nixconfig; in { options.vhack.nixconfig = { enable = lib.mkEnableOption "sophisticated nix settings"; }; config = lib.mkIf cfg.enable { nix = { # gc = { # automatic = true; # dates = "daily"; # options = "--delete-older-than 3"; # }; settings = { auto-optimise-store = true; experimental-features = ["nix-command" "flakes"]; trusted-users = [ "root" "@wheel" ]; }; }; }; }