{ pkgs, lib, config, userName, False, ... }: with lib; let cfg = config.module.misc.nix; in { options = { module.misc.nix = { enable = mkEnableOption ""; }; }; config = mkIf cfg.enable { nix = { package = pkgs.nix; settings = { warn-dirty = false; extra-experimental-features = [ "nix-command" "flakes" ]; builders-use-substitutes = true; auto-optimise-store = true; extra-substituters = [ "https://nix-gaming.cachix.org" # NIX GAMING "https://hyprland.cachix.org" # HYPRLAND ]; extra-trusted-public-keys = [ "nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4=" # NIX GAMING "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" # HYPRLAND ]; trusted-users = [ "${userName}" "@wheel" ]; }; }; nixpkgs.config.allowUnfree = true; news.display = "silent"; manual = { manpages = False; json = False; html = False; }; }; }