41 lines
1.1 KiB
Nix
Executable file
41 lines
1.1 KiB
Nix
Executable file
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
gnome-mobile.url = "github:chuangzhu/nixpkgs-gnome-mobile";
|
|
disko = {
|
|
url = "github:nix-community/disko";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
conf2nix = {
|
|
url = "github:linyinfeng/conf2nix";
|
|
nixpkgs.follows = "nixpkgs";
|
|
};
|
|
pmaports = {
|
|
url = "gitlab:postmarketOS/pmaports?host=gitlab.postmarketos.org";
|
|
flake = false;
|
|
};
|
|
};
|
|
|
|
outputs = inputs:
|
|
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
|
|
systems = ["x86_64-linux" "aarch64-linux"];
|
|
perSystem = {
|
|
lib,
|
|
self',
|
|
pkgs,
|
|
system,
|
|
...
|
|
}: {
|
|
_module.args.pkgs = import inputs.nixpkgs {inherit system;};
|
|
packages = import inputs.nixpkgs {
|
|
hostPlatform = system;
|
|
localSystem = system;
|
|
buildPlatform = "x86_64-linux";
|
|
|
|
overlays = [inputs.gnome-mobile.overlays.default];
|
|
};
|
|
};
|
|
flake.nixosModules.default = import ./module.nix;
|
|
};
|
|
}
|