Skip to content

Instantly share code, notes, and snippets.

@archseer

archseer/flake.nix Secret

Last active Jan 29, 2021
Embed
What would you like to do?
{
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

This comment has been minimized.

Copy link
Owner Author

@archseer archseer commented Jan 26, 2021

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