feat(flake): add initial nix-on-droid configuration
This commit is contained in:
parent
e07a71f46b
commit
efd944cfef
2 changed files with 62 additions and 1 deletions
17
flake.nix
17
flake.nix
|
|
@ -6,6 +6,12 @@
|
|||
|
||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
nix-on-droid = {
|
||||
url = "github:nix-community/nix-on-droid/release-23.11";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.home-manager.follows = "home-manager";
|
||||
};
|
||||
|
||||
hardware.url = "github:nixos/nixos-hardware";
|
||||
|
||||
nix-colors.url = "github:misterio77/nix-colors";
|
||||
|
|
@ -83,7 +89,7 @@
|
|||
};
|
||||
|
||||
|
||||
outputs = { self, nixpkgs, home-manager, ... }@inputs:
|
||||
outputs = { self, nixpkgs, home-manager, nix-on-droid, ... }@inputs:
|
||||
let
|
||||
inherit (self) outputs;
|
||||
lib = nixpkgs.lib // home-manager.lib;
|
||||
|
|
@ -151,5 +157,14 @@
|
|||
extraSpecialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
};
|
||||
nixOnDroidConfigurations.default = nix-on-droid.lib.nixOnDroidConfiguration {
|
||||
modules = [ ./system/hosts/ooksphone ];
|
||||
extraSpecialArgs = { inherit inputs outputs; };
|
||||
pkgs = import nixpkgs {
|
||||
system = "aarch64-linux";
|
||||
overlays = [ nix-on-droid.overlays.default ];
|
||||
};
|
||||
home-manager-path = home-manager.outPath;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue