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
.direnv
doc/index.html
keys
# Result of bud commands
vm

View File

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

View File

@ -15,6 +15,7 @@
keep-derivations = true
fallback = true
extra-experimental-features = nix-command flakes
builders-use-substitutes = true
'';
useSandbox = true;
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
font-awesome
dejavu_fonts
(nerdfonts.override {fonts = ["Monoid"];})
#(nerdfonts.override {fonts = [font.name];})
# Programs
wezterm
cargo-outdated
@ -151,12 +151,9 @@ in {
rust-analyzer
(
lib.hiPrio
(
steam.override
{
(steam.override {
extraLibraries = pkgs: with pkgs; [mimalloc pipewire vulkan-loader wayland wayland-protocols];
}
)
})
)
/*
(multimc.overrideAttrs (old: {
@ -164,7 +161,6 @@ in {
}))
*/
standardnotes
#discord-system-electron
gh
cloudflared
ripcord