add example nios configurations

This commit is contained in:
Adam Stephens 2024-02-20 14:06:40 -05:00
parent 0653faf396
commit adf1dd9e91
No known key found for this signature in database

View file

@ -5,7 +5,7 @@
}; };
outputs = outputs =
inputs@{ flake-parts, ... }: inputs@{ flake-parts, self, ... }:
flake-parts.lib.mkFlake { inherit inputs; } { flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ ./packages/part.nix ]; imports = [ ./packages/part.nix ];
@ -21,5 +21,28 @@
}; };
flake.nixosModules.default = import ./module.nix; flake.nixosModules.default = import ./module.nix;
flake.nixosConfigurations.example = inputs.nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
self.nixosModules.default
{
nixos-x13s.enable = true;
nixos-x13s.kernel = "jhovold"; # jhovold is default, but steev and mainline supported
# install multiple kernels! note this increases eval time for each specialization
specialisation = {
mainline.configuration.nixos-x13s.kernel = "mainline";
steev.configuration.nixos-x13s.kernel = "steev";
};
# allow unfree firmware
nixpkgs.config.allowUnfree = true;
# define your fileSystems
fileSystems."/".device = "/dev/notreal";
}
];
};
}; };
} }