Skip to content

Commit

Permalink
feat(darwin): Add enable option
Browse files Browse the repository at this point in the history
  • Loading branch information
jalil-salame committed May 5, 2024
1 parent 71a9d74 commit 08564c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion stylix/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ in {
};
};

config = lib.mkIf hm.autoImport {
config = lib.mkIf (config.stylix.enable && hm.autoImport) {
home-manager.sharedModules = [ homeManagerModule ];
};
}
4 changes: 2 additions & 2 deletions stylix/darwin/fonts.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{ config, ... }:
{ config, lib, ... }:

let
cfg = config.stylix.fonts;
in {
imports = [ ../fonts.nix ];
config.fonts = {
config.fonts = lib.mkIf config.stylix.enable {
fontDir.enable = true;
fonts = cfg.packages;
};
Expand Down
4 changes: 2 additions & 2 deletions stylix/darwin/palette.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
args:
{ config, ... }:
{ config, lib, ... }:

{
imports = [ (import ../palette.nix args) ];

config = {
config = lib.mkIf config.stylix.enable {
environment.etc = config.stylix.generated.fileTree;
};
}

0 comments on commit 08564c3

Please sign in to comment.