From 82c16fc5e9a93797bb889647c0474b79aa216b39 Mon Sep 17 00:00:00 2001 From: William Date: Tue, 3 Dec 2024 15:13:26 -0300 Subject: [PATCH] speed up nixos-rebuild --- hosts/common/nix.nix | 7 +++++++ hosts/common/packages.nix | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/hosts/common/nix.nix b/hosts/common/nix.nix index d4b5bbc..4253f7b 100644 --- a/hosts/common/nix.nix +++ b/hosts/common/nix.nix @@ -17,5 +17,12 @@ }; }; + nixpkgs.config = { + allowUnfree = true; + enableParallelBuilding = true; + buildManPages = false; + buildDocs = false; + }; + system.stateVersion = "22.11"; } diff --git a/hosts/common/packages.nix b/hosts/common/packages.nix index f2ac801..c1a064a 100644 --- a/hosts/common/packages.nix +++ b/hosts/common/packages.nix @@ -1,8 +1,6 @@ { pkgs, ... }: { - nixpkgs.config.allowUnfree = true; - environment.systemPackages = with pkgs; [ agenix bind