nixfiles/home-manager/modules/gui.nix

25 lines
475 B
Nix
Raw Normal View History

2022-02-15 01:08:00 +00:00
{ lib, pkgs, config, ... }:
let
2022-02-16 01:38:17 +00:00
inherit (lib) mkIf mkDefault mkMerge;
2022-02-15 01:08:00 +00:00
inherit (lib.my) mkBoolOpt';
cfg = config.my.gui;
in
{
options.my.gui = {
enable = mkBoolOpt' true "Enable settings and packages meant for graphical systems";
};
2022-02-16 01:38:17 +00:00
config = mkMerge [
(mkIf cfg.enable {
home = {
packages = with pkgs; [
(nerdfonts.override {
fonts = [ "DroidSansMono" "SourceCodePro" ];
})
];
2022-02-15 01:08:00 +00:00
};
2022-02-16 01:38:17 +00:00
})
];
2022-02-15 01:08:00 +00:00
}