NixOS-Config/modules/home/wms/niri/default.nix
2024-12-05 14:40:12 -05:00

27 lines
652 B
Nix

{ config, lib, ... }:
{
imports = [
./autostart
./hotkeys
./inputs
./outputs
./programs
./rules
./theme
];
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}
'';
}