summaryrefslogtreecommitdiff
path: root/common/modules/window_managers/noctalia.nix
blob: 5a37f687428c03f8e4a78fbe4fa006106d7f7581 (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
{
  homeManager,
  inputs,
  moduleNameSpace,
  ...
}:
{
  config,
  lib,
  pkgs,
  ...
}:
let
  cfg = config.${moduleNameSpace}.windowManagers;
in
{
  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'
        '';
      };
    }
  );
}