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.
|
||||
{
|
||||
root,
|
||||
lib,
|
||||
system,
|
||||
_cerulean,
|
||||
...
|
||||
|
|
@ -24,11 +25,7 @@
|
|||
# options declarations
|
||||
(import ./nixpkgs.nix (args // {contextName = "hosts";}))
|
||||
]
|
||||
++ (
|
||||
if _cerulean.homeManager != null
|
||||
then [./home-manager.nix]
|
||||
else []
|
||||
);
|
||||
++ lib.optional (_cerulean.homeManager != null) [./home-manager.nix];
|
||||
|
||||
environment.systemPackages = with _cerulean.inputs; [
|
||||
deploy-rs.packages.${system}.default
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue