add nixbuild config

This commit is contained in:
dusk 2022-05-03 21:12:47 +03:00
parent 3755356391
commit 259b830c5d
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
5 changed files with 33 additions and 8 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
result result
.direnv .direnv
doc/index.html doc/index.html
keys
# Result of bud commands # Result of bud commands
vm vm

View File

@ -47,6 +47,7 @@ in {
common-gpu-amd common-gpu-amd
common-cpu-amd common-cpu-amd
../../modules/network/dns ../../modules/network/dns
../../modules/develop/nixbuild
../../users/root ../../users/root
../../users/patriot ../../users/patriot
]; ];

View File

@ -15,6 +15,7 @@
keep-derivations = true keep-derivations = true
fallback = true fallback = true
extra-experimental-features = nix-command flakes extra-experimental-features = nix-command flakes
builders-use-substitutes = true
''; '';
useSandbox = true; useSandbox = true;
allowedUsers = ["@wheel"]; allowedUsers = ["@wheel"];

View File

@ -0,0 +1,26 @@
{...}: {
programs.ssh.extraConfig = ''
Host eu.nixbuild.net
PubkeyAcceptedKeyTypes ssh-ed25519
IdentityFile /etc/nixos/keys/nixbuild.key
'';
programs.ssh.knownHosts = {
nixbuild = {
hostNames = ["eu.nixbuild.net"];
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPIQCZc54poJ8vqawd8TraNryQeJnvH1eLpIDgbiqymM";
};
};
nix = {
distributedBuilds = true;
buildMachines = [
{
hostName = "eu.nixbuild.net";
system = "x86_64-linux";
maxJobs = 100;
supportedFeatures = ["benchmark" "big-parallel"];
}
];
};
}

View File

@ -123,7 +123,7 @@ in {
noto-fonts-cjk noto-fonts-cjk
font-awesome font-awesome
dejavu_fonts dejavu_fonts
(nerdfonts.override {fonts = ["Monoid"];}) #(nerdfonts.override {fonts = [font.name];})
# Programs # Programs
wezterm wezterm
cargo-outdated cargo-outdated
@ -151,12 +151,9 @@ in {
rust-analyzer rust-analyzer
( (
lib.hiPrio lib.hiPrio
( (steam.override {
steam.override extraLibraries = pkgs: with pkgs; [mimalloc pipewire vulkan-loader wayland wayland-protocols];
{ })
extraLibraries = pkgs: with pkgs; [mimalloc pipewire vulkan-loader wayland wayland-protocols];
}
)
) )
/* /*
(multimc.overrideAttrs (old: { (multimc.overrideAttrs (old: {
@ -164,7 +161,6 @@ in {
})) }))
*/ */
standardnotes standardnotes
#discord-system-electron
gh gh
cloudflared cloudflared
ripcord ripcord