Skip to content

Commit

Permalink
Add fonts.nix configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
yousiki committed Mar 11, 2024
1 parent af9b27d commit 7c229e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/configurations/nixos/mai/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
./_hardware-configuration.nix

# Host-specific profiles
commonProfiles.fonts
commonProfiles.nix
commonProfiles.packages
nixosProfiles.fonts

# Home-manager module
globals.inputs.home-manager.nixosModules.home-manager
Expand Down
16 changes: 4 additions & 12 deletions src/profiles/common/fonts.nix → src/profiles/nixos/fonts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,7 @@ with lib; let
wqy_microhei
wqy_zenhei
];
in
mkMerge [
{
fonts.fontDir.enable = true;
}
(mkIf pkgs.stdenv.isLinux {
fonts.packages = fontPackages;
})
(mkIf pkgs.stdenv.isDarwin {
fonts.fonts = fontPackages;
})
]
in {
fonts.fontDir.enable = true;
fonts.packages = fontPackages;
}

0 comments on commit 7c229e6

Please sign in to comment.