feat(phone): set up 'nix-on-droid'
This commit is contained in:
20
flake.nix
20
flake.nix
@@ -22,6 +22,11 @@
|
||||
url = "github:nix-community/home-manager";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
nix-on-droid = {
|
||||
url = "github:nix-community/nix-on-droid/release-24.05";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
inputs.home-manager.follows = "home-manager";
|
||||
};
|
||||
nixgl = {
|
||||
url = "github:nix-community/nixGL";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
@@ -49,6 +54,7 @@
|
||||
sops-nix,
|
||||
nix-secrets,
|
||||
home-manager,
|
||||
nix-on-droid,
|
||||
nixgl,
|
||||
firefox-addons,
|
||||
nvim,
|
||||
@@ -88,6 +94,20 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
# https://github.com/nix-community/nix-on-droid/blob/master/templates/advanced/flake.nix
|
||||
nixOnDroidConfigurations = {
|
||||
pixel = nix-on-droid.lib.nixOnDroidConfiguration {
|
||||
modules = [ ./phone ];
|
||||
extraSpecialArgs = {
|
||||
inherit inputs outputs dotsPath;
|
||||
};
|
||||
pkgs = import nixpkgs {
|
||||
system = "aarch64-linux";
|
||||
overlays = [ nix-on-droid.overlays.default ];
|
||||
};
|
||||
home-manager-path = home-manager.outPath;
|
||||
};
|
||||
};
|
||||
|
||||
colmenaHive = import ./deploy/colmena.nix {
|
||||
inherit
|
||||
|
||||
Reference in New Issue
Block a user