nixos-x13s/flake.nix

49 lines
1.3 KiB
Nix
Raw Normal View History

2024-01-22 18:47:25 +01:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs =
2024-02-20 20:06:40 +01:00
inputs@{ flake-parts, self, ... }:
2024-01-22 18:47:25 +01:00
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ ./packages/part.nix ];
systems = [
"x86_64-linux"
"aarch64-linux"
];
perSystem =
{ pkgs, ... }:
{
devShells.default = pkgs.mkShellNoCC { packages = [ pkgs.npins ]; };
};
flake.nixosModules.default = import ./module.nix;
2024-02-20 20:06:40 +01:00
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";
}
];
};
2024-01-22 18:47:25 +01:00
};
}