diff --git a/flake.nix b/flake.nix index c91c193..9b0ee3d 100644 --- a/flake.nix +++ b/flake.nix @@ -148,7 +148,7 @@ forAllSystems = forSystems [ "x86_64-linux" "aarch64-linux" - #"riscv64-linux" + "riscv64-linux" ]; mkModule = extra-modules: domain: system: inputs: stateVersion: modules: hostname: ({ lib, ... }: { @@ -273,6 +273,8 @@ }; in builtins.mapAttrs (hostname: curried: curried hostname) { #hostname "domain" "system" inputs "state" [ modules ... ] + /* asgaut = mk "pbsds.net" "riscv64-linux" inputs-2405 "24.05" [ hw.starfive-visionfive-2 ]; */ + asgaut = mk "pbsds.net" "riscv64-linux" inputs-2405 "24.05" [ "${nixos-hardware}/starfive/visionfive/v2/default.nix" ]; noximilien = mk "pbsds.net" "x86_64-linux" inputs-2405 "23.11" [ au tse intel ]; brumlebasse = mk "pbsds.net" "x86_64-linux" inputs-2405 "24.05" [ au amd nspawn ]; nord = mk "pbsds.net" "x86_64-linux" inputs-2405 "24.05" [ au ts intel-novga hw.common-gpu-intel-sandy-bridge rocm hidpi ]; @@ -332,6 +334,13 @@ (pkgs.callPackage ./pkgs/mk-nspawn-setup {}) (mkHosts (mkConfig [ "${nixos-nspawn}/nspawn-tarball.nix" ])).${hostname}; in { + asgaut-sd = (mkHosts (mkConfig [ + "${nixos-hardware}/starfive/visionfive/v2/sd-image.nix" + { + nixpkgs.buildPlatform.system = system; # cross + sdImage.compressImage = false; + } + ])).asgaut.config.system.build.sdImage; brumlebasse-nspawn-setup = mk-nspawn-setup "brumlebasse"; brumlebasse-openstack = nixos-generators-2405.nixosGenerate { system = "x86_64-linux"; diff --git a/hosts/nixos/asgaut/configuration.nix b/hosts/nixos/asgaut/configuration.nix index 9ef2d30..4180ae9 100644 --- a/hosts/nixos/asgaut/configuration.nix +++ b/hosts/nixos/asgaut/configuration.nix @@ -1,2 +1,10 @@ -{} -# TODO: visionfive 2 +{ config, lib, pkgs, ...}: + +{ + environment.systemPackages = [ + pkgs.fastfetch + ]; + + networking.interfaces.end0.useDHCP = true; + networking.interfaces.end1.useDHCP = true; +}