From f2c4760d55f6246d3737ec3be88b9a94b34a7df9 Mon Sep 17 00:00:00 2001 From: kat witch Date: Sun, 25 Apr 2021 21:59:27 +0100 Subject: [PATCH] nixos: Evaluation fixes --- nixos.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos.nix b/nixos.nix index 0ca980fc..710b951a 100644 --- a/nixos.nix +++ b/nixos.nix @@ -4,10 +4,10 @@ imports = [ (import (./hosts + "/${hostName}/nixos")) - (import (./private/hosts + "/${hostName}/nixos")) ./profiles/common/nixos.nix - ./private/profile/nixos - ]; + ] ++ lib.optional (builtins.pathExists ./private/hosts) (import (./private/hosts + "/${hostName}/nixos")) + ++ lib.optional (builtins.pathExists ./private/profile) ./private/profile/nixos; + options = { deploy.profile.kat = lib.mkEnableOption "uhh meow";