nixos-config/config/vf2.nix
Charlotte 🦝 Delenk 147eef2f66
All checks were successful
Hydra packages.x86_64-linux.python-mautrix Hydra build #17598 of nixos-config:pr593:packages.x86_64-linux.python-mautrix
Hydra packages.aarch64-linux.plover-plugin-python-dictionary Hydra build #17536 of nixos-config:pr593:packages.aarch64-linux.plover-plugin-python-dictionary
Hydra packages.aarch64-linux.plover-plugin-dotool-output Hydra build #17530 of nixos-config:pr593:packages.aarch64-linux.plover-plugin-dotool-output
Hydra packages.x86_64-linux.plover-plugins-manager Hydra build #17597 of nixos-config:pr593:packages.x86_64-linux.plover-plugins-manager
Hydra packages.x86_64-linux.emoji-volpeon-neocat Hydra build #17565 of nixos-config:pr593:packages.x86_64-linux.emoji-volpeon-neocat
Hydra packages.x86_64-linux.plover-plugin-dotool-output Hydra build #17585 of nixos-config:pr593:packages.x86_64-linux.plover-plugin-dotool-output
Hydra rainbow-resort.x86_64-linux Hydra build #17604 of nixos-config:pr593:rainbow-resort.x86_64-linux
Hydra packages.x86_64-linux.emoji-volpeon-raccoon Hydra build #17567 of nixos-config:pr593:packages.x86_64-linux.emoji-volpeon-raccoon
Hydra packages.x86_64-linux.plover-plugin-machine-hid Hydra build #17589 of nixos-config:pr593:packages.x86_64-linux.plover-plugin-machine-hid
Hydra packages.aarch64-linux.fairfax-hd Hydra build #17515 of nixos-config:pr593:packages.aarch64-linux.fairfax-hd
Hydra packages.x86_64-linux.python-simplefuzzyset Hydra build #17601 of nixos-config:pr593:packages.x86_64-linux.python-simplefuzzyset
Hydra packages.aarch64-linux.emoji-rosaflags Hydra build #17501 of nixos-config:pr593:packages.aarch64-linux.emoji-rosaflags
Hydra packages.aarch64-linux.python-rtf-tokenize Hydra build #17545 of nixos-config:pr593:packages.aarch64-linux.python-rtf-tokenize
Hydra packages.aarch64-linux.emoji-caro Hydra build #17498 of nixos-config:pr593:packages.aarch64-linux.emoji-caro
Hydra packages.aarch64-linux.plover-plugin-dict-commands Hydra build #17529 of nixos-config:pr593:packages.aarch64-linux.plover-plugin-dict-commands
Hydra packages.aarch64-linux.emoji-volpeon-gphn Hydra build #17509 of nixos-config:pr593:packages.aarch64-linux.emoji-volpeon-gphn
Hydra packages.aarch64-linux.lotte-art Hydra build #17517 of nixos-config:pr593:packages.aarch64-linux.lotte-art
Hydra packages.x86_64-linux.python-tulir-telethon Hydra build #17602 of nixos-config:pr593:packages.x86_64-linux.python-tulir-telethon
Hydra packages.aarch64-linux.plover-plugin-modal-dictionary Hydra build #17535 of nixos-config:pr593:packages.aarch64-linux.plover-plugin-modal-dictionary
Hydra packages.x86_64-linux.emoji-volpeon-blobfox Hydra build #17557 of nixos-config:pr593:packages.x86_64-linux.emoji-volpeon-blobfox
Hydra packages.aarch64-linux.nasin-nanpa Hydra build #17524 of nixos-config:pr593:packages.aarch64-linux.nasin-nanpa
Hydra packages.x86_64-linux.kreative-square Hydra build #17571 of nixos-config:pr593:packages.x86_64-linux.kreative-square
Hydra packages.x86_64-linux.nasin-nanpa Hydra build #17579 of nixos-config:pr593:packages.x86_64-linux.nasin-nanpa
Hydra packages.aarch64-linux.matrix-media-repo Hydra build #17518 of nixos-config:pr593:packages.aarch64-linux.matrix-media-repo
Hydra packages.aarch64-linux.plover-plugin-machine-hid Hydra build #17534 of nixos-config:pr593:packages.aarch64-linux.plover-plugin-machine-hid
Hydra instance-20221213-1915.aarch64-linux Hydra build #17491 of nixos-config:pr593:instance-20221213-1915.aarch64-linux
Hydra packages.aarch64-linux.miifox-net Hydra build #17523 of nixos-config:pr593:packages.aarch64-linux.miifox-net
Hydra packages.aarch64-linux.emoji-volpeon-blobfox-flip Hydra build #17503 of nixos-config:pr593:packages.aarch64-linux.emoji-volpeon-blobfox-flip
Hydra packages.aarch64-linux.emoji-volpeon-raccoon Hydra build #17512 of nixos-config:pr593:packages.aarch64-linux.emoji-volpeon-raccoon
Hydra packages.x86_64-linux.emoji-volpeon-floof Hydra build #17562 of nixos-config:pr593:packages.x86_64-linux.emoji-volpeon-floof
Hydra packages.x86_64-linux.emoji-volpeon-bunhd-flip Hydra build #17560 of nixos-config:pr593:packages.x86_64-linux.emoji-volpeon-bunhd-flip
Hydra packages.aarch64-linux.plover-plugin-lapwing-aio Hydra build #17532 of nixos-config:pr593:packages.aarch64-linux.plover-plugin-lapwing-aio
Hydra packages.aarch64-linux.mautrix-whatsapp Hydra build #17522 of nixos-config:pr593:packages.aarch64-linux.mautrix-whatsapp
Hydra packages.x86_64-linux.plover-dict-didoesdigital Hydra build #17583 of nixos-config:pr593:packages.x86_64-linux.plover-dict-didoesdigital
Hydra packages.x86_64-linux.emoji-volpeon-gphn Hydra build #17564 of nixos-config:pr593:packages.x86_64-linux.emoji-volpeon-gphn
Hydra packages.aarch64-linux.plover-plugin-emoji Hydra build #17531 of nixos-config:pr593:packages.aarch64-linux.plover-plugin-emoji
Hydra packages.aarch64-linux.plover-plugin-yaml-dictionary Hydra build #17541 of nixos-config:pr593:packages.aarch64-linux.plover-plugin-yaml-dictionary
Hydra packages.aarch64-linux.constructium Hydra build #17497 of nixos-config:pr593:packages.aarch64-linux.constructium
Hydra packages.aarch64-linux.fairfax Hydra build #17514 of nixos-config:pr593:packages.aarch64-linux.fairfax
Hydra packages.x86_64-linux.plover-plugin-last-translation Hydra build #17588 of nixos-config:pr593:packages.x86_64-linux.plover-plugin-last-translation
Hydra packages.x86_64-linux.mautrix-whatsapp Hydra build #17577 of nixos-config:pr593:packages.x86_64-linux.mautrix-whatsapp
Hydra packages.x86_64-linux.python-plover-stroke Hydra build #17599 of nixos-config:pr593:packages.x86_64-linux.python-plover-stroke
Hydra packages.x86_64-linux.fairfax-hd Hydra build #17570 of nixos-config:pr593:packages.x86_64-linux.fairfax-hd
Hydra packages.aarch64-linux.plover Hydra build #17527 of nixos-config:pr593:packages.aarch64-linux.plover
Hydra packages.x86_64-linux.asar-asm Hydra build #17550 of nixos-config:pr593:packages.x86_64-linux.asar-asm
Hydra packages.aarch64-linux.mautrix-telegram Hydra build #17521 of nixos-config:pr593:packages.aarch64-linux.mautrix-telegram
Hydra packages.x86_64-linux.plover-plugin-dict-commands Hydra build #17584 of nixos-config:pr593:packages.x86_64-linux.plover-plugin-dict-commands
Hydra packages.aarch64-linux.bsnes-plus Hydra build #17496 of nixos-config:pr593:packages.aarch64-linux.bsnes-plus
Hydra packages.x86_64-linux.python-rtf-tokenize Hydra build #17600 of nixos-config:pr593:packages.x86_64-linux.python-rtf-tokenize
Hydra packages.x86_64-linux.emoji-caro Hydra build #17553 of nixos-config:pr593:packages.x86_64-linux.emoji-caro
Hydra packages.x86_64-linux.mautrix-telegram Hydra build #17576 of nixos-config:pr593:packages.x86_64-linux.mautrix-telegram
Hydra packages.aarch64-linux.emoji-volpeon-bunhd-flip Hydra build #17505 of nixos-config:pr593:packages.aarch64-linux.emoji-volpeon-bunhd-flip
Hydra packages.x86_64-linux.matrix-media-repo Hydra build #17573 of nixos-config:pr593:packages.x86_64-linux.matrix-media-repo
Hydra packages.aarch64-linux.old-homepage Hydra build #17525 of nixos-config:pr593:packages.aarch64-linux.old-homepage
Hydra nas.x86_64-linux Hydra build #17492 of nixos-config:pr593:nas.x86_64-linux
Hydra packages.x86_64-linux.emoji-volpeon-blobfox-flip Hydra build #17558 of nixos-config:pr593:packages.x86_64-linux.emoji-volpeon-blobfox-flip
Hydra packages.aarch64-linux.python-tulir-telethon Hydra build #17547 of nixos-config:pr593:packages.aarch64-linux.python-tulir-telethon
Hydra packages.x86_64-linux.papermc Hydra build #17581 of nixos-config:pr593:packages.x86_64-linux.papermc
Hydra packages.aarch64-linux.plover-plugin-stenotype-extended Hydra build #17538 of nixos-config:pr593:packages.aarch64-linux.plover-plugin-stenotype-extended
Hydra packages.x86_64-linux.mautrix-slack Hydra build #17575 of nixos-config:pr593:packages.x86_64-linux.mautrix-slack
Hydra packages.aarch64-linux.plover-plugin-rkb1-hid Hydra build #17537 of nixos-config:pr593:packages.aarch64-linux.plover-plugin-rkb1-hid
Hydra packages.aarch64-linux.asar-asm Hydra build #17495 of nixos-config:pr593:packages.aarch64-linux.asar-asm
Hydra packages.aarch64-linux.plover-plugin-tapey-tape Hydra build #17540 of nixos-config:pr593:packages.aarch64-linux.plover-plugin-tapey-tape
Hydra packages.aarch64-linux.python-simplefuzzyset Hydra build #17546 of nixos-config:pr593:packages.aarch64-linux.python-simplefuzzyset
Hydra packages.aarch64-linux.plover-plugin-stitching Hydra build #17539 of nixos-config:pr593:packages.aarch64-linux.plover-plugin-stitching
Hydra packages.aarch64-linux.papermc Hydra build #17526 of nixos-config:pr593:packages.aarch64-linux.papermc
Hydra packages.x86_64-linux.bsnes-plus Hydra build #17551 of nixos-config:pr593:packages.x86_64-linux.bsnes-plus
Hydra packages.x86_64-linux.old-homepage Hydra build #17580 of nixos-config:pr593:packages.x86_64-linux.old-homepage
Hydra nixos-8gb-fsn1-1.x86_64-linux Hydra build #17493 of nixos-config:pr593:nixos-8gb-fsn1-1.x86_64-linux
Hydra packages.x86_64-linux.plover-plugin-lapwing-aio Hydra build #17587 of nixos-config:pr593:packages.x86_64-linux.plover-plugin-lapwing-aio
Hydra packages.aarch64-linux.python-mautrix Hydra build #17543 of nixos-config:pr593:packages.aarch64-linux.python-mautrix
Hydra packages.x86_64-linux.plover-plugin-modal-dictionary Hydra build #17590 of nixos-config:pr593:packages.x86_64-linux.plover-plugin-modal-dictionary
Hydra packages.aarch64-linux.python-plover-stroke Hydra build #17544 of nixos-config:pr593:packages.aarch64-linux.python-plover-stroke
Hydra packages.x86_64-linux.plover-plugin-stenotype-extended Hydra build #17593 of nixos-config:pr593:packages.x86_64-linux.plover-plugin-stenotype-extended
Hydra packages.x86_64-linux.emoji-volpeon-vlpn Hydra build #17568 of nixos-config:pr593:packages.x86_64-linux.emoji-volpeon-vlpn
Hydra packages.x86_64-linux.emoji-volpeon-fox Hydra build #17563 of nixos-config:pr593:packages.x86_64-linux.emoji-volpeon-fox
Hydra packages.x86_64-linux.emoji-volpeon-drgn Hydra build #17561 of nixos-config:pr593:packages.x86_64-linux.emoji-volpeon-drgn
Hydra packages.aarch64-linux.emoji-volpeon-floof Hydra build #17507 of nixos-config:pr593:packages.aarch64-linux.emoji-volpeon-floof
Hydra packages.aarch64-linux.plover-dict-didoesdigital Hydra build #17528 of nixos-config:pr593:packages.aarch64-linux.plover-dict-didoesdigital
Hydra packages.aarch64-linux.emoji-volpeon-fox Hydra build #17508 of nixos-config:pr593:packages.aarch64-linux.emoji-volpeon-fox
Hydra packages.x86_64-linux.emoji-lotte Hydra build #17554 of nixos-config:pr593:packages.x86_64-linux.emoji-lotte
Hydra packages.x86_64-linux.plover-plugin-stitching Hydra build #17594 of nixos-config:pr593:packages.x86_64-linux.plover-plugin-stitching
Hydra packages.x86_64-linux.plover-plugin-tapey-tape Hydra build #17595 of nixos-config:pr593:packages.x86_64-linux.plover-plugin-tapey-tape
Hydra packages.aarch64-linux.emoji-volpeon-drgn Hydra build #17506 of nixos-config:pr593:packages.aarch64-linux.emoji-volpeon-drgn
Hydra packages.aarch64-linux.mautrix-slack Hydra build #17520 of nixos-config:pr593:packages.aarch64-linux.mautrix-slack
Hydra packages.aarch64-linux.yiffstash Hydra build #17548 of nixos-config:pr593:packages.aarch64-linux.yiffstash
Hydra packages.aarch64-linux.kreative-square Hydra build #17516 of nixos-config:pr593:packages.aarch64-linux.kreative-square
Hydra packages.x86_64-linux.alco-sans Hydra build #17549 of nixos-config:pr593:packages.x86_64-linux.alco-sans
Hydra packages.aarch64-linux.emoji-raccoon Hydra build #17500 of nixos-config:pr593:packages.aarch64-linux.emoji-raccoon
Hydra packages.x86_64-linux.constructium Hydra build #17552 of nixos-config:pr593:packages.x86_64-linux.constructium
Hydra packages.x86_64-linux.plover-plugin-emoji Hydra build #17586 of nixos-config:pr593:packages.x86_64-linux.plover-plugin-emoji
Hydra packages.x86_64-linux.plover-plugin-yaml-dictionary Hydra build #17596 of nixos-config:pr593:packages.x86_64-linux.plover-plugin-yaml-dictionary
Hydra packages.aarch64-linux.emoji-volpeon-neocat Hydra build #17510 of nixos-config:pr593:packages.aarch64-linux.emoji-volpeon-neocat
Hydra packages.aarch64-linux.alco-sans Hydra build #17494 of nixos-config:pr593:packages.aarch64-linux.alco-sans
Hydra packages.aarch64-linux.emoji-volpeon-neofox Hydra build #17511 of nixos-config:pr593:packages.aarch64-linux.emoji-volpeon-neofox
Hydra installer.x86_64-linux Hydra build #17490 of nixos-config:pr593:installer.x86_64-linux
Hydra packages.x86_64-linux.emoji-volpeon-neofox Hydra build #17566 of nixos-config:pr593:packages.x86_64-linux.emoji-volpeon-neofox
Hydra packages.x86_64-linux.miifox-net Hydra build #17578 of nixos-config:pr593:packages.x86_64-linux.miifox-net
Hydra packages.x86_64-linux.emoji-volpeon-bunhd Hydra build #17559 of nixos-config:pr593:packages.x86_64-linux.emoji-volpeon-bunhd
Hydra packages.aarch64-linux.emoji-volpeon-vlpn Hydra build #17513 of nixos-config:pr593:packages.aarch64-linux.emoji-volpeon-vlpn
Hydra packages.x86_64-linux.fairfax Hydra build #17569 of nixos-config:pr593:packages.x86_64-linux.fairfax
Hydra packages.aarch64-linux.mautrix-discord Hydra build #17519 of nixos-config:pr593:packages.aarch64-linux.mautrix-discord
Hydra packages.x86_64-linux.plover Hydra build #17582 of nixos-config:pr593:packages.x86_64-linux.plover
Hydra packages.aarch64-linux.plover-plugin-last-translation Hydra build #17533 of nixos-config:pr593:packages.aarch64-linux.plover-plugin-last-translation
Hydra packages.x86_64-linux.emoji-rosaflags Hydra build #17556 of nixos-config:pr593:packages.x86_64-linux.emoji-rosaflags
Hydra packages.x86_64-linux.plover-plugin-rkb1-hid Hydra build #17592 of nixos-config:pr593:packages.x86_64-linux.plover-plugin-rkb1-hid
Hydra packages.aarch64-linux.emoji-volpeon-blobfox Hydra build #17502 of nixos-config:pr593:packages.aarch64-linux.emoji-volpeon-blobfox
Hydra packages.x86_64-linux.lotte-art Hydra build #17572 of nixos-config:pr593:packages.x86_64-linux.lotte-art
Hydra packages.x86_64-linux.plover-plugin-python-dictionary Hydra build #17591 of nixos-config:pr593:packages.x86_64-linux.plover-plugin-python-dictionary
Hydra packages.x86_64-linux.emoji-raccoon Hydra build #17555 of nixos-config:pr593:packages.x86_64-linux.emoji-raccoon
Hydra packages.aarch64-linux.emoji-volpeon-bunhd Hydra build #17504 of nixos-config:pr593:packages.aarch64-linux.emoji-volpeon-bunhd
Hydra packages.aarch64-linux.plover-plugins-manager Hydra build #17542 of nixos-config:pr593:packages.aarch64-linux.plover-plugins-manager
Hydra thinkrac.x86_64-linux Hydra build #17605 of nixos-config:pr593:thinkrac.x86_64-linux
Hydra packages.x86_64-linux.yiffstash Hydra build #17603 of nixos-config:pr593:packages.x86_64-linux.yiffstash
Hydra devShell.x86_64-linux Hydra build #17489 of nixos-config:pr593:devShell.x86_64-linux
Hydra packages.aarch64-linux.emoji-lotte Hydra build #17499 of nixos-config:pr593:packages.aarch64-linux.emoji-lotte
Hydra packages.x86_64-linux.mautrix-discord Hydra build #17574 of nixos-config:pr593:packages.x86_64-linux.mautrix-discord
Hydra vf2.riscv64-linux Hydra build #17606 of nixos-config:pr593:vf2.riscv64-linux
fuck it, cross compile nixos-option
2024-10-19 07:26:54 +02:00

123 lines
3.1 KiB
Nix

{
lib,
config,
pkgs,
nixpkgs,
nixos-hardware,
riscv-overlay,
lix,
...
} @ args: let
pkgs_x86_64 = import nixpkgs {
system = "x86_64-linux";
crossSystem.system = "riscv64-linux";
overlays = [lix.overlays.default];
};
in {
networking.hostName = "vf2";
networking.hostId = "ad325df9";
imports = [
./services/caddy
./services/acme.nix
./users/remote-build.nix
./systemd-boot.nix
"${nixos-hardware}/starfive/visionfive/v2/default.nix"
];
nixpkgs.config.allowUnsupportedSystem = true;
nixpkgs.overlays = [
riscv-overlay.overlays.default
(self: super: {
inherit (pkgs_x86_64) lix nixos-option;
})
];
nix.settings.substituters = lib.mkForce [
"https://beam.attic.rs/riscv"
"https://cache.ztier.in"
"https://hydra.int.chir.rs"
];
fileSystems = {
"/boot" = {
device = "/dev/nvme0n1p1";
fsType = "vfat";
options = ["nofail"];
};
"/" = {
device = "/dev/nvme0n1p2";
fsType = "btrfs";
options = ["compress=zstd"];
};
};
swapDevices = [
{
device = "/dev/nvme0n1p3";
}
];
# hardware.deviceTree.name = "starfive/jh7110-starfive-visionfive-2-v1.3b.dtb";
home-manager.users.darkkirb = import ./home-manager/darkkirb.nix {
desktop = false;
inherit args;
};
nix.settings.cores = 4;
nix.settings.max-jobs = 4;
nix.settings.system-features = [
"nixos-test"
"big-parallel"
"benchmark"
"ca-derivations"
# There are many more combinations but i simply do not care lol
"gccarch-rv64gc_zba_zbb"
"gccarch-rv64gc_zba"
"gccarch-rv64gc_zbb"
"gccarch-rv64gc"
"gccarch-rv32gc_zba_zbb"
"gccarch-rv32gc_zba"
"gccarch-rv32gc_zbb"
"gccarch-rv32gc"
"native-riscv"
];
nix.daemonCPUSchedPolicy = "idle";
nix.daemonIOSchedClass = "idle";
services.tailscale.useRoutingFeatures = "server";
boot.binfmt.emulatedSystems = [
"x86_64-linux"
];
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.generic-extlinux-compatible.enable = false;
#system.requiredKernelConfig = lib.mkForce [];
system.stateVersion = "24.05";
boot.loader.systemd-boot.extraInstallCommands = ''
set -euo pipefail
${pkgs.coreutils}/bin/cp --no-preserve=mode -r ${config.hardware.deviceTree.package} ${config.boot.loader.efi.efiSysMountPoint}/
for filename in ${config.boot.loader.efi.efiSysMountPoint}/loader/entries/nixos*-generation-[1-9]*.conf; do
if ! ${pkgs.gnugrep}/bin/grep -q 'devicetree' $filename; then
${pkgs.coreutils}/bin/echo "devicetree /dtbs/${config.hardware.deviceTree.name}" >> $filename
fi
done
'';
hardware.deviceTree.name = "starfive/jh7110-starfive-visionfive-2-v1.3b.dtb";
boot.initrd.kernelModules = [
"dw_mmc-starfive"
"motorcomm"
"dwmac-starfive"
"cdns3-starfive"
"jh7110-trng"
"phy-jh7110-usb"
"clk-starfive-jh7110-aon"
"clk-starfive-jh7110-stg"
"clk-starfive-jh7110-vout"
"clk-starfive-jh7110-isp"
"clk-starfive-jh7100-audio"
"phy-jh7110-pcie"
"pcie-starfive"
"nvme"
];
systemd.network.enable = true;
networking.useNetworkd = true;
}