nixos/modules/nix-settings.nix

42 lines
910 B
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" ];
nix.buildMachines = [{
hostName = "unicron";
system = "x86_64-linux";
protocol = "ssh-ng";
maxJobs = 0;
}];
nix.distributedBuilds = true;
nix.settings.builders = " ssh://unicron.local x86_64-linux " ;
nix.extraOptions = ''
builders-use-substitutes = true
'';
# dynamic linker
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [
cmake
fontconfig
harfbuzz
freetype
expat
glib
atk
gtk3
pango
cairo
gdk-pixbuf
zlib
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
}