diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-03-19 10:59:12 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-03-19 10:59:12 -0500 |
| commit | 2bc17b5cfd65a9537a9c56e74c9e7918156015e0 (patch) | |
| tree | a8a323c6571556d3f1b5e8f197e17ed447f8daa4 /modules/nix | |
| parent | a97c10944e382cc7c439339c88a007401b67beeb (diff) | |
changes (idk)
Diffstat (limited to 'modules/nix')
| -rw-r--r-- | modules/nix/nixos/default.nix | 22 |
1 files changed, 17 insertions, 5 deletions
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]; |
