aboutsummaryrefslogtreecommitdiff
path: root/nixos/nixosModules/stylix.nix
blob: 1c69cb88c0c292d74e84b1df26dbd771fea5927c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ pkgs, config, lib, inputs, outputs, ... }:

{
  imports = [
    inputs.stylix.nixosModules.stylix
  ];
  
  options = {
    stylixConfig.enable = lib.mkEnableOption "enable stylix";
  };
  config = lib.mkIf config.stylixConfig.enable {
    stylix = with outputs.homeConfigurations."jerpo@ltrr-mini".config.stylix; {
      enable = true;
      image = image;
      base16Scheme = base16Scheme;
      autoEnable = false;
      targets.console.enable = true;
      fonts = with fonts; {
        serif = serif;
        sansSerif = sansSerif;
        monospace = monospace;
        emoji = emoji;
      };
    };
  };
}