nixos/modules/nix-settings.nix

51 lines
1.1 KiB
Nix
Raw Normal View History

2024-04-07 15:35:51 -08:00
{ config, lib, pkgs, inputs, nur, ... }:
2024-03-26 20:46:24 -08:00
{
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.extra-experimental-features = [ "nix-command" "flakes" ];
2024-04-28 14:48:55 -08:00
nix.settings.cores = 2;
nix.settings.max-jobs = 4;
2024-05-05 21:28:20 -08:00
nix.settings.extra-substituters = [
"https://cache.lix.systems"
];
nix.settings.trusted-public-keys = [
"cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
];
nix.buildMachines = [{
hostName = "unicron";
system = "x86_64-linux";
2024-04-28 14:48:55 -08:00
protocol = "ssh";
maxJobs = 0;
}];
nix.distributedBuilds = true;
nix.settings.builders = " ssh://unicron.local x86_64-linux " ;
nix.extraOptions = ''
builders-use-substitutes = true
'';
# dynamic linker
2024-09-13 12:30:08 -08:00
programs.nix-ld.dev.enable = true;
programs.nix-ld.dev.libraries = with pkgs; [
cmake
fontconfig
harfbuzz
freetype
expat
glib
atk
gtk3
pango
cairo
gdk-pixbuf
zlib
2024-09-13 12:30:08 -08:00
libz
xorg.libxcb
libxkbcommon
libGL
wayland
vulkan-headers
vulkan-loader
];
2024-03-26 20:46:24 -08:00
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [ inputs.nur.overlay ];
2024-03-26 20:46:24 -08:00
}