Limit nix build
This commit is contained in:
parent
1def0a3c18
commit
3333ed62b6
1 changed files with 17 additions and 10 deletions
|
@ -9,14 +9,23 @@ with lib; {
|
|||
# NixOS version.
|
||||
system.stateVersion = "25.05";
|
||||
|
||||
# nix config.
|
||||
nix = {
|
||||
# Set $NIX_PATH.
|
||||
nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
||||
|
||||
settings = {
|
||||
# Enable flakes.
|
||||
nix.settings.experimental-features = [
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
|
||||
# Set $NIX_PATH.
|
||||
nix.nixPath = ["nixpkgs=${inputs.nixpkgs}"];
|
||||
# Limit nix build.
|
||||
cores = 2;
|
||||
max-jobs = 2;
|
||||
};
|
||||
};
|
||||
|
||||
# Enable redistributable firmware.
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
@ -60,9 +69,7 @@ with lib; {
|
|||
isNormalUser = true;
|
||||
uid = 1000;
|
||||
description = "Fern Garden";
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
];
|
||||
extraGroups = ["wheel"];
|
||||
};
|
||||
|
||||
# Use fish shell
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue