use lib.optional
This commit is contained in:
parent
8f7eb8ff3f
commit
43f5c8581e
1 changed files with 2 additions and 5 deletions
|
|
@ -13,6 +13,7 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
{
|
{
|
||||||
root,
|
root,
|
||||||
|
lib,
|
||||||
system,
|
system,
|
||||||
_cerulean,
|
_cerulean,
|
||||||
...
|
...
|
||||||
|
|
@ -24,11 +25,7 @@
|
||||||
# options declarations
|
# options declarations
|
||||||
(import ./nixpkgs.nix (args // {contextName = "hosts";}))
|
(import ./nixpkgs.nix (args // {contextName = "hosts";}))
|
||||||
]
|
]
|
||||||
++ (
|
++ lib.optional (_cerulean.homeManager != null) [./home-manager.nix];
|
||||||
if _cerulean.homeManager != null
|
|
||||||
then [./home-manager.nix]
|
|
||||||
else []
|
|
||||||
);
|
|
||||||
|
|
||||||
environment.systemPackages = with _cerulean.inputs; [
|
environment.systemPackages = with _cerulean.inputs; [
|
||||||
deploy-rs.packages.${system}.default
|
deploy-rs.packages.${system}.default
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue