add vf2 install image

This commit is contained in:
Charlotte 🦝 Delenk 2024-07-01 17:51:11 +02:00
parent 9bdbfc4389
commit dbbbfa9720
2 changed files with 24 additions and 7 deletions

View file

@ -3,18 +3,21 @@
config,
pkgs,
nixpkgs,
nixos-hardware,
...
} @ args: {
networking.hostName = "vf2";
networking.hostId = "ad325df9";
#networking.hostName = "vf2";
#networking.hostId = "ad325df9";
imports = [
./services/caddy
./services/acme.nix
./users/remote-build.nix
./systemd-boot.nix
#./services/caddy
#./services/acme.nix
#./users/remote-build.nix
#./systemd-boot.nix
"${nixos-hardware}/starfive/visionfive/v2/sd-image-installer.nix"
];
environment.noXlibs = true;
/*
environment.noXlibs = true;
nixpkgs.config.allowUnsupportedSystem = true;
nixpkgs.overlays = [
@ -121,4 +124,14 @@
boot.loader.efi.canTouchEfiVariables = lib.mkForce false;
system.requiredKernelConfig = lib.mkForce [];
system.autoUpgrade.allowReboot = true;
*/
sdImage.compressImage = false;
nixpkgs.crossSystem = {
config = "riscv64-unknown-linux-gnu";
system = "riscv64-linux";
};
system.stateVersion = "24.05";
}

View file

@ -191,6 +191,10 @@ rec {
name = "rainbow-resort"; # PC
system = "x86_64-linux";
}
{
name = "vf2"; # vision five 2
system = "x86_64-linux"; # not a typo!
}
];
mkPackages = system: let
pkgs = import nixpkgs {