fix: macosSystem & colmenaSystem

This commit is contained in:
Ryan Yin
2024-03-14 00:58:33 +08:00
parent 1c65d1654a
commit 31d83e8afe
2 changed files with 6 additions and 6 deletions

View File

@@ -1,8 +1,9 @@
# colmena - Remote Deployment via SSH
{
lib,
inputs,
nixos-modules,
home-module ? null,
home-modules ? null,
myvars,
system,
tags,
@@ -23,17 +24,16 @@ in
imports =
nixos-modules
++ (
if (home-module != null)
then [
lib.optionals ((lib.lists.length home-modules) > 0)
[
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = specialArgs;
home-manager.users."${myvars.username}" = home-module;
home-manager.users."${myvars.username}".imports = home-modules;
}
]
else []
);
}

View File

@@ -30,7 +30,7 @@ in
++ (
lib.optionals ((lib.lists.length home-modules) > 0)
[
home-manager.nixosModules.home-manager
home-manager.darwinModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;