Skip to content

Commit

Permalink
chore: setup nix-on-android configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
r17x committed Oct 25, 2024
1 parent 21307ed commit 8a81124
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 0 deletions.
140 changes: 140 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";

#### ---- Android
nix-on-droid.url = "github:nix-community/nix-on-droid";
nix-on-droid.inputs.nixpkgs.follows = "nixpkgs";
nix-on-droid.inputs.home-manager.follows = "home-manager";

#### ---- nixvim
nixvim.url = "github:nix-community/nixvim";
nixvim.inputs.nixpkgs.follows = "nixpkgs";
Expand Down
21 changes: 21 additions & 0 deletions nix/hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,30 @@ in
};
};
};

# nix-darwin configurations
flake.darwinConfigurations = mkDarwinConfigurations {
eR17 = { };
eR17x = { };
};

flake.nixOnDroidConfigurations.default = inputs.nix-on-droid.lib.nixOnDroidConfiguration {
pkgs = import inputs.nixpkgs { system = "aarch64-linux"; };
modules = [
{
system.stateVersion = "24.05";
# Set up nix for flakes
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
home-manager.useGlobalPkgs = true;
home-manager.config = {
imports = [
self.homeManagerModules.r17-shell
self.homeManagerModules.r17-packages
];
};
}
];
};
}

0 comments on commit 8a81124

Please sign in to comment.