blob: 472359e95d15b1f1c9035c35d7bf9e546022957e (
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/niri.kdl'
output_path = '~/.config/niri/matugen.kdl'
'';
};
}
);
}
|