From 81e38593360b27d77f1c8726562e89201b4d788e Mon Sep 17 00:00:00 2001 From: James Patrick Date: Sat, 13 Aug 2022 23:12:46 -0400 Subject: [PATCH] Split off nix related configuration --- modules/system/nix.nix | 18 ++++++++++++++++++ profiles/minimal.nix | 16 ---------------- 2 files changed, 18 insertions(+), 16 deletions(-) create mode 100644 modules/system/nix.nix diff --git a/modules/system/nix.nix b/modules/system/nix.nix new file mode 100644 index 0000000..d0c6bfa --- /dev/null +++ b/modules/system/nix.nix @@ -0,0 +1,18 @@ +{ config, lib, pkgs, ... }: { + nix = { + settings = { + auto-optimise-store = true; + allowed-users = [ "@wheel" ]; + }; + gc = { + automatic = true; + dates = "daily"; + }; + package = pkgs.nixUnstable; + extraOptions = '' + experimental-features = nix-command flakes + ''; + }; + + nixpkgs.config.allowUnfree = true; +} diff --git a/profiles/minimal.nix b/profiles/minimal.nix index 03fc5e5..cb72f3e 100644 --- a/profiles/minimal.nix +++ b/profiles/minimal.nix @@ -8,22 +8,6 @@ in { #../modules/system/xdg.nix ]; # Allow Cleanup, nix, & flakes - nix = { - settings = { - auto-optimise-store = true; - allowed-users = [ "@wheel" ]; - }; - gc = { - automatic = true; - dates = "daily"; - }; - package = pkgs.nixUnstable; - extraOptions = '' - experimental-features = nix-command flakes - ''; - }; - - nixpkgs.config.allowUnfree = true; # Locale time.timeZone = "America/New_York";