summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-03-17 19:37:05 -0600
committerAlejandro Soto <alejandro@34project.org>2022-03-17 19:37:05 -0600
commit1bf3639c5154701b264ca3f95b42c928dd11e345 (patch)
tree9433421a9270b5bfcb5fcde649f22422c3aa3a2b /flake.nix
parent7fd816ba89cb4d924d89b2f7e07028644dce0c7f (diff)
home: support android-dev
Diffstat (limited to '')
-rw-r--r--flake.nix13
1 files changed, 9 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index 65941a9..bbac6ec 100644
--- a/flake.nix
+++ b/flake.nix
@@ -11,22 +11,27 @@
nur.url = "github:nix-community/NUR";
};
- outputs = { self, nixpkgs, home-manager, nur, ... }: with nixpkgs.lib; let
+ outputs = { self, nixpkgs, home-manager, nur, ... }: let
+ pkgs = import nixpkgs {
+ system = "x86_64-linux";
+ config = import ./nixpkgs.nix;
+ };
+ in with pkgs.lib; let
util = import ./util;
- inherit (util nixpkgs.lib) importAll;
+ inherit (util pkgs.lib) importAll;
pkgSet = pkgs: import ./pkgs {
inherit pkgs;
util = util pkgs.lib;
};
in {
- packages."x86_64-linux" = pkgSet nixpkgs.legacyPackages."x86_64-linux";
+ packages."x86_64-linux" = pkgSet pkgs;
overlay = self: super: {
local = pkgSet super;
};
- nixosConfigurations = with nixpkgs.lib; let
+ nixosConfigurations = with pkgs.lib; let
hostConfig = host: (makeOverridable nixosSystem) {
system = "x86_64-linux";
modules = [ (import ./sys self) host ];