mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-03 20:19:19 +00:00
Add a service module for Elephant with package installation, provider selection, TOML config generation, and a systemd user service. This gives Elephant its own configuration surface instead of wiring it through Walker.
26 lines
555 B
Nix
26 lines
555 B
Nix
{
|
|
services.elephant = {
|
|
enable = true;
|
|
settings = {
|
|
providers = {
|
|
default = [
|
|
"desktopapplications"
|
|
"runner"
|
|
];
|
|
max_results = 50;
|
|
};
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/elephant/config.toml
|
|
assertFileExists home-files/.config/systemd/user/elephant.service
|
|
|
|
assertFileContent home-files/.config/elephant/config.toml \
|
|
${./config.toml}
|
|
|
|
assertFileContent home-files/.config/systemd/user/elephant.service \
|
|
${./elephant.service}
|
|
'';
|
|
}
|