From 7e7c8947fc2ff5598124c4a4c18bd28432fa017e Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Mon, 8 Sep 2025 14:01:35 -0500 Subject: rework most of config; probably broke jupiter again; working to add ganymede (non-nixos) to this repo --- modules/nix/nixos/default.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 modules/nix/nixos/default.nix (limited to 'modules/nix/nixos/default.nix') diff --git a/modules/nix/nixos/default.nix b/modules/nix/nixos/default.nix new file mode 100644 index 0000000..9c5c51e --- /dev/null +++ b/modules/nix/nixos/default.nix @@ -0,0 +1,30 @@ +{config, pkgs, ...}: { + nix = { + gc.automatic = false; # use nh cleaner instead + + # Make builds run with low priority so my system stays responsive + daemonCPUSchedPolicy = "idle"; + daemonIOSchedClass = "idle"; + + settings = { + extra-experimental-features = ["nix-command" "flakes" "pipe-operators"]; + auto-optimise-store = true; + use-xdg-base-directories = true; + }; + }; + + # Disable channels + nix.channel.enable = false; + + nixpkgs = { + config.allowUnfree = true; + }; + + programs.nh = { + enable = true; + flake = "/home/collin/nixos"; + clean.enable = true; + }; + + hjem.users."${config.collinux.user.name}".packages = [pkgs.cached-nix-shell]; +} -- cgit v1.3.1