aboutsummaryrefslogtreecommitdiff
path: root/nixos/nixosModules/stylix.nix
blob: 5969c4d04d767057bafcdd924d68c6e5261cc914 (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
{ 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;
      };
    };
  };
}