summaryrefslogtreecommitdiff
path: root/common/modules/window_managers/noctalia.nix
blob: fabe3e4e3b3f88cab2f34561a309a0bcc202e6b2 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
  homeManager,
  inputs,
  moduleNameSpace,
  ...
}:
{
  config,
  lib,
  pkgs,
  ...
}:
let
  cfg = config.${moduleNameSpace}.windowManagers;
in
{
  imports = lib.optionals homeManager [
    inputs.noctalia.homeModules.default
  ];

  config = lib.mkIf cfg.noctalia (
    lib.optionalAttrs homeManager {
      programs.noctalia = {
        enable = true;
        systemd.enable = true;
      };

      xdg.configFile."noctalia/template.toml" = {
        text = ''
          [theme.templates.user.nvim_base46]
          input_path = '~/.config/matugen/templates/neovim.json'
          output_path = '~/.config/neovim/nvim-colors.json'

          [theme.templates.user.niri]
          input_path = '~/.config/matugen/templates/matugen.kdl'
          output_path = '~/.config/niri/matugen.kdl'
        '';
      };
    }
  );
}