feat(phone): set up 'nix-on-droid'

This commit is contained in:
2026-01-30 18:34:19 +01:00
parent b22c5bc935
commit d3c7912544
3 changed files with 51 additions and 0 deletions

View File

@@ -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,22 @@
};
};
};
# https://github.com/nix-community/nix-on-droid/blob/master/templates/advanced/flake.nix
nixOnDroidConfigurations = {
default = 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

26
phone/default.nix Normal file
View File

@@ -0,0 +1,26 @@
{
pkgs,
...
}:
{
environment.packages = with pkgs; [
inputs.nvim.packages.x86_64-linux.nvim
];
environment.etcBackupExtension = ".bak";
system.stateVersion = "24.05";
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
time.timeZone = "Europe/Brussels";
home-manager = {
config = ./home.nix;
backupFileExtension = "hm-bak";
useGlobalPkgs = true;
};
}

3
phone/home.nix Normal file
View File

@@ -0,0 +1,3 @@
{
home.stateVersion = "24.05";
}