NixOS-Config/modules/home/wms/niri/default.nix

27 lines
652 B
Nix
Raw Normal View History

2024-12-05 14:40:12 -05:00
{ config, lib, ... }:
{
imports = [
./autostart
./hotkeys
./inputs
./outputs
./programs
./rules
./theme
];
2024-12-05 14:40:12 -05:00
options.home.niri.settings = lib.mkOption {
type = lib.types.attrs;
default = {};
};
config.home.file.".config/niri/config.kdl".text = ''
${builtins.readFile config.home.niri.settings.autostart}
${builtins.readFile config.home.niri.settings.hotkeys}
${builtins.readFile config.home.niri.settings.inputs}
${builtins.readFile config.home.niri.settings.outputs}
${builtins.readFile config.home.niri.settings.rules}
${builtins.readFile config.home.niri.settings.theme}
'';
}