2024-12-05 14:40:12 -05:00
|
|
|
{ config, lib, ... }:
|
2024-12-03 16:50:23 -05:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./autostart
|
|
|
|
./hotkeys
|
|
|
|
./inputs
|
|
|
|
./outputs
|
2024-12-04 02:54:40 -05:00
|
|
|
./programs
|
2024-12-03 16:50:23 -05:00
|
|
|
./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 = ''
|
2024-12-03 16:50:23 -05:00
|
|
|
${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}
|
|
|
|
'';
|
|
|
|
}
|