description = "Module to watch fo file changes to force restart systemd service";
outputs = { self }: {
nixosModule = { config, lib, pkgs, ... }: let cfg = config.services.filesWatcher; in with lib; {
+ # Necessary for situations where flake gets included multiple times
+ key = builtins.hashString "sha256" (builtins.path { path = self.sourceInfo.outPath; name = "source"; });
options = {
services.filesWatcher = with lib.types; mkOption {
default = {};