mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-10 17:34:05 -05:00
test nixondroid
This commit is contained in:
parent
89d72b3941
commit
9bcf7688b1
4 changed files with 221 additions and 1 deletions
19
flake.nix
19
flake.nix
|
|
@ -4,6 +4,7 @@
|
|||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
nix-on-droid,
|
||||
...
|
||||
} @ inputs: let
|
||||
inherit (self) outputs;
|
||||
|
|
@ -11,6 +12,7 @@
|
|||
# Architectures
|
||||
forAllSystems = nixpkgs.lib.genAttrs [
|
||||
"x86_64-linux"
|
||||
"aarch64-linux"
|
||||
];
|
||||
# Extend lib with lib.custom
|
||||
lib = nixpkgs.lib.extend (self: super: {custom = import ./lib {inherit (nixpkgs) lib;};});
|
||||
|
|
@ -75,6 +77,18 @@
|
|||
}) (builtins.attrNames (builtins.readDir ./devshells))
|
||||
)
|
||||
);
|
||||
|
||||
nixOnDroidConfigurations = builtins.listToAttrs (
|
||||
map (host: {
|
||||
name = host;
|
||||
value = nix-on-droid.lib.nixOnDroidConfiguration {
|
||||
pkgs = import nixpkgs {
|
||||
system = "aarch64-linux";
|
||||
};
|
||||
modules = [./hosts/droid/${host}];
|
||||
};
|
||||
}) (builtins.attrNames (builtins.readDir ./hosts/droid))
|
||||
);
|
||||
};
|
||||
|
||||
inputs = {
|
||||
|
|
@ -96,6 +110,11 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
nix-on-droid = {
|
||||
url = "github:nix-community/nix-on-droid/release-24.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
# 3rd party inputs
|
||||
disko = {
|
||||
# Declarative partitioning
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue