mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46: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);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Copyright (c) 2019-2020, see AUTHORS. Licensed under MIT License, see LICENSE.
|
||||
|
||||
{ pkgs }:
|
||||
{ pkgs, isFlake }:
|
||||
|
||||
[
|
||||
./build/activation.nix
|
||||
|
|
@ -12,10 +12,9 @@
|
|||
./environment/path.nix
|
||||
./environment/session-init.nix
|
||||
./home-manager.nix
|
||||
./nixpkgs.nix
|
||||
./time.nix
|
||||
./user.nix
|
||||
./version.nix
|
||||
./workaround-make.nix
|
||||
(pkgs.path + "/nixos/modules/misc/assertions.nix")
|
||||
]
|
||||
] ++ pkgs.lib.optionals (!isFlake) [ ./nixpkgs.nix ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue