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 ++++++++++++++++++++++++++++++ modules/nix/system/default.nix | 30 ------------------------------ 2 files changed, 30 insertions(+), 30 deletions(-) create mode 100644 modules/nix/nixos/default.nix delete mode 100644 modules/nix/system/default.nix (limited to 'modules/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]; +} diff --git a/modules/nix/system/default.nix b/modules/nix/system/default.nix deleted file mode 100644 index 9c5c51e..0000000 --- a/modules/nix/system/default.nix +++ /dev/null @@ -1,30 +0,0 @@ -{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