From 2bc17b5cfd65a9537a9c56e74c9e7918156015e0 Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Thu, 19 Mar 2026 10:59:12 -0500 Subject: changes (idk) --- modules/nix/nixos/default.nix | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) (limited to 'modules/nix/nixos/default.nix') diff --git a/modules/nix/nixos/default.nix b/modules/nix/nixos/default.nix index 3aa8930..7441236 100644 --- a/modules/nix/nixos/default.nix +++ b/modules/nix/nixos/default.nix @@ -2,9 +2,16 @@ config, lib, pkgs, + inputs, ... }: { + imports = [ + inputs.nix-index-database.nixosModules.default + ]; + nix = { + # package = inputs.determinate.packages.${pkgs.system}.default; + gc.automatic = false; # use nh cleaner instead # Make builds run with low priority so my system stays responsive @@ -15,18 +22,23 @@ extra-experimental-features = ["nix-command" "flakes" "pipe-operators"]; auto-optimise-store = true; use-xdg-base-directories = true; + + # lazy-trees = true; + # eval-cores = 0; }; # Disable channels channel.enable = false; }; - nixpkgs.config.allowUnfree = true; - programs.nh = lib.mkIf config.collinux.terminal.programs.nh.enable { - enable = true; - flake = "/home/${config.collinux.user.name}/nixos"; - clean.enable = true; + programs = { + nh = lib.mkIf config.collinux.terminal.programs.nh.enable { + enable = true; + flake = "/home/${config.collinux.user.name}/nixos"; + clean.enable = true; + }; + nix-index-database.comma.enable = true; }; environment.systemPackages = [pkgs.cached-nix-shell]; -- cgit v1.3.1