Better folder structure
This commit is contained in:
parent
8778fa8ccb
commit
c4e5ccf6bf
75 changed files with 174 additions and 172 deletions
27
hm_modules/nix-index.nix
Normal file
27
hm_modules/nix-index.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
programs.nix-index = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
|
||||
systemd.user = {
|
||||
services."nix-index" = {
|
||||
Unit = {
|
||||
Description = "Update the nix-locate database";
|
||||
After = [ "network.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.nix-index}/bin/nix-index";
|
||||
};
|
||||
};
|
||||
|
||||
timers."nix-index" = {
|
||||
Unit.Description = "Daily update the nix-locate database";
|
||||
Timer = { OnCalendar = "daily"; Persistent = true; Unit = "nix-index.service"; };
|
||||
Install.WantedBy = [ "timers.target" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue