From 8df171890d74b2c0b8e4456d419dd68a9b33d09a Mon Sep 17 00:00:00 2001 From: uku Date: Sun, 1 Sep 2024 15:36:04 +0200 Subject: [PATCH 1/2] feat: small adjustements to nix config --- configs/common.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configs/common.nix b/configs/common.nix index 550ca27..f55341c 100644 --- a/configs/common.nix +++ b/configs/common.nix @@ -91,6 +91,7 @@ in { nix = { package = pkgs.lix; + channel.enable = false; gc = { automatic = true; @@ -104,10 +105,18 @@ in { u.flake = camasca; }; + # give nix daemon lower priority + daemonCPUSchedPolicy = "batch"; + daemonIOSchedClass = "idle"; + settings = { auto-optimise-store = true; experimental-features = ["nix-command" "flakes"]; trusted-users = ["root" "@wheel"]; + connect-timeout = 5; # fail fast if substituters are not available + builders-use-substitutes = true; + log-lines = 25; + min-free = 512 * 1024 * 1024; # if free space drops under min, gc substituters = [ "https://uku3lig.cachix.org" From 3751997d334e8181bb9736cd10cd0dac95713c6a Mon Sep 17 00:00:00 2001 From: uku Date: Sun, 1 Sep 2024 15:37:35 +0200 Subject: [PATCH 2/2] chore: move agenix to devshell --- configs/common.nix | 1 - flake.nix | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configs/common.nix b/configs/common.nix index f55341c..8a5d687 100644 --- a/configs/common.nix +++ b/configs/common.nix @@ -51,7 +51,6 @@ in { environment = { systemPackages = with pkgs; [ - agenix.packages.${pkgs.system}.default neovim git curl diff --git a/flake.nix b/flake.nix index f8e157a..2c8bb2c 100644 --- a/flake.nix +++ b/flake.nix @@ -5,6 +5,7 @@ self, flake-parts, nixinate, + agenix, ... } @ inputs: flake-parts.lib.mkFlake {inherit inputs;} { @@ -23,7 +24,11 @@ devShells.default = with pkgs; mkShellNoCC { - packages = [just statix]; + packages = [ + just + statix + agenix.packages.${system}.default + ]; }; formatter = pkgs.alejandra;