Skip to content

Instantly share code, notes, and snippets.

@archseer
Last active January 29, 2021 02:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save archseer/fda9eb9fa5db1f83a60b131c688c045e to your computer and use it in GitHub Desktop.
Save archseer/fda9eb9fa5db1f83a60b131c688c045e to your computer and use it in GitHub Desktop.
{
inputs = {
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
mobile-nixos.url = "github:archseer/mobile-nixos/flake";
};
description = "A very basic mobile config flake";
outputs = inputs@{ self, nixpkgs, mobile-nixos, ... }: {
nixosConfigurations = {
pine = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit mobile-nixos; };
modules = [
mobile-nixos.nixosModules.pine64-pinephone
];
};
};
};
}
{
inputs = {
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
mobile-nixos.url = "github:archseer/mobile-nixos/flake";
};
description = "A very basic mobile config flake";
outputs = inputs@{ self, nixpkgs, mobile-nixos, ... }:
let
pkgs = import nixpkgs { system = "x86_64-linux"; };
in
{
nixosConfigurations = {
pine = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { _mobile-nixos = {
evalConfig = args:
import "${toString pkgs.path}/nixos/lib/eval-config.nix" (args // { system = "x86_64-linux"; });
}; };
modules = [
mobile-nixos.nixosModules.pine64-pinephone
];
};
};
};
}
@archseer
Copy link
Author

nix build ".#nixosConfigurations.pine.config.system.build.disk-image" --show-trace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment