mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 11:36:07 +01:00
add flake.nix
Co-authored-by: Tobias Happ <Gerschtli@users.noreply.github.com>
This commit is contained in:
parent
abf7f56cb6
commit
9c7c0a9672
6 changed files with 61 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Copyright (c) 2019-2020, see AUTHORS. Licensed under MIT License, see LICENSE.
|
||||
|
||||
{ pkgs ? import <nixpkgs> { }, home-manager ? import <home-manager> { }, config ? null }:
|
||||
{ pkgs ? import <nixpkgs> { }, home-manager ? import <home-manager> { }, config ? null, isFlake ? false }:
|
||||
|
||||
with pkgs.lib;
|
||||
|
||||
|
|
@ -20,7 +20,7 @@ let
|
|||
_module.args.pkgs = mkDefault pkgs;
|
||||
}
|
||||
configModule
|
||||
] ++ import ./module-list.nix { inherit pkgs; };
|
||||
] ++ import ./module-list.nix { inherit pkgs isFlake; };
|
||||
};
|
||||
|
||||
failedAssertions = map (x: x.message) (filter (x: !x.assertion) rawModule.config.assertions);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue