feat: add riscv64-linux image
Some checks are pending
Build / images (nscloud-ubuntu-22.04-arm64-4x16, nixos-24.05) (push) Waiting to run
Build / images (nscloud-ubuntu-22.04-arm64-4x16, nixos-unstable) (push) Waiting to run
Build / images (ubuntu-latest, nixos-24.05) (push) Waiting to run
Build / images (ubuntu-latest, nixos-unstable) (push) Waiting to run
Some checks are pending
Build / images (nscloud-ubuntu-22.04-arm64-4x16, nixos-24.05) (push) Waiting to run
Build / images (nscloud-ubuntu-22.04-arm64-4x16, nixos-unstable) (push) Waiting to run
Build / images (ubuntu-latest, nixos-24.05) (push) Waiting to run
Build / images (ubuntu-latest, nixos-unstable) (push) Waiting to run
This commit is contained in:
parent
a5fbf34b25
commit
d10f94fc93
3 changed files with 5 additions and 11 deletions
10
flake.nix
10
flake.nix
|
@ -9,10 +9,11 @@
|
||||||
|
|
||||||
outputs = { self, nixos-unstable, nixos-stable }:
|
outputs = { self, nixos-unstable, nixos-stable }:
|
||||||
let
|
let
|
||||||
supportedSystems = [ "aarch64-linux" "x86_64-linux" ];
|
supportedSystems = [ "riscv64-linux" ];
|
||||||
forAllSystems = nixos-unstable.lib.genAttrs supportedSystems;
|
forAllSystems = nixos-unstable.lib.genAttrs supportedSystems;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
hydraJobs = { inherit (self) checks; };
|
||||||
packages = forAllSystems (system:
|
packages = forAllSystems (system:
|
||||||
let
|
let
|
||||||
netboot = nixpkgs: (import (nixpkgs + "/nixos/release.nix") { }).netboot.${system};
|
netboot = nixpkgs: (import (nixpkgs + "/nixos/release.nix") { }).netboot.${system};
|
||||||
|
@ -76,13 +77,6 @@
|
||||||
kexec-installer-stable = nixos-stable.legacyPackages.x86_64-linux.callPackage ./nix/kexec-installer/test.nix {
|
kexec-installer-stable = nixos-stable.legacyPackages.x86_64-linux.callPackage ./nix/kexec-installer/test.nix {
|
||||||
kexecTarball = self.packages.x86_64-linux.kexec-installer-nixos-stable-noninteractive;
|
kexecTarball = self.packages.x86_64-linux.kexec-installer-nixos-stable-noninteractive;
|
||||||
};
|
};
|
||||||
shellcheck = pkgsUnstable.runCommand "shellcheck"
|
|
||||||
{
|
|
||||||
nativeBuildInputs = [ pkgsUnstable.shellcheck ];
|
|
||||||
} ''
|
|
||||||
shellcheck ${(pkgsUnstable.nixos [self.nixosModules.kexec-installer]).config.system.build.kexecRun}
|
|
||||||
touch $out
|
|
||||||
'';
|
|
||||||
} // (bootTests pkgsUnstable nixos-unstable "-nixos-unstable")
|
} // (bootTests pkgsUnstable nixos-unstable "-nixos-unstable")
|
||||||
// (bootTests pkgsStable nixos-stable "-nixos-stable");
|
// (bootTests pkgsStable nixos-stable "-nixos-stable");
|
||||||
in
|
in
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./latest-zfs-kernel.nix
|
# ./latest-zfs-kernel.nix
|
||||||
./nix-settings.nix
|
./nix-settings.nix
|
||||||
];
|
];
|
||||||
# more descriptive hostname than just "nixos"
|
# more descriptive hostname than just "nixos"
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
boot.supportedFilesystems.bcachefs = lib.mkDefault true;
|
boot.supportedFilesystems.bcachefs = lib.mkDefault true;
|
||||||
|
|
||||||
# use latest kernel we can support to get more hardware support
|
# use latest kernel we can support to get more hardware support
|
||||||
boot.zfs.package = pkgs.zfsUnstable;
|
# boot.zfs.package = pkgs.zfsUnstable;
|
||||||
|
|
||||||
documentation.enable = false;
|
documentation.enable = false;
|
||||||
documentation.man.man-db.enable = false;
|
documentation.man.man-db.enable = false;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./zfs-minimal.nix
|
# ./zfs-minimal.nix
|
||||||
./no-bootloaders.nix
|
./no-bootloaders.nix
|
||||||
./python-minimal.nix
|
./python-minimal.nix
|
||||||
./noveau-workaround.nix
|
./noveau-workaround.nix
|
||||||
|
|
Loading…
Reference in a new issue