Skip to content

Commit

Permalink
Merge pull request #95 from ryan4yin/fix-home-manager
Browse files Browse the repository at this point in the history
fix: macosSystem & colmenaSystem
  • Loading branch information
ryan4yin authored Mar 13, 2024
2 parents 1c65d16 + 31d83e8 commit 532121e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/colmenaSystem.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# colmena - Remote Deployment via SSH
{
lib,
inputs,
nixos-modules,
home-module ? null,
home-modules ? null,
myvars,
system,
tags,
Expand All @@ -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 []
);
}
2 changes: 1 addition & 1 deletion lib/macosSystem.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 532121e

Please sign in to comment.