Add overlays to mkSystem, init with android-tools
This commit is contained in:
parent
1d62744fce
commit
034c1a3868
16
flake.nix
16
flake.nix
@ -37,6 +37,13 @@
|
|||||||
lib = nixpkgs.lib;
|
lib = nixpkgs.lib;
|
||||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||||
|
|
||||||
|
overlays = [
|
||||||
|
/* android-tools 33.0.3p2 */ (final: prev: {
|
||||||
|
inherit (inputs.pkgs-android-tools.legacyPackages.${final.system})
|
||||||
|
android-tools android-udev-rules;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
# My username
|
# My username
|
||||||
username = "nullbite";
|
username = "nullbite";
|
||||||
@ -93,9 +100,12 @@
|
|||||||
|
|
||||||
# This function produces a nixosSystem which imports configuration.nix and
|
# This function produces a nixosSystem which imports configuration.nix and
|
||||||
# a Home Manager home.nix for the given user from ./hosts/${hostname}/
|
# a Home Manager home.nix for the given user from ./hosts/${hostname}/
|
||||||
mkSystem = let _username=username;
|
mkSystem = let _username=username; _overlays=overlays;
|
||||||
in {system, hostname, username ? _username, stateVersion, extraModules ? [] }:
|
in {system, overlays ? _overlays, hostname, username ? _username, stateVersion, extraModules ? [] }:
|
||||||
lib.nixosSystem {
|
let
|
||||||
|
pkgs = import nixpkgs { inherit system overlays; };
|
||||||
|
inherit (pkgs) lib;
|
||||||
|
in lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
./system
|
./system
|
||||||
|
Loading…
x
Reference in New Issue
Block a user