lorri: check for nix.enable

This commit is contained in:
Emily
2025-02-11 20:10:55 +00:00
parent 57c93ffe6c
commit aba0c60eba
+9 -1
View File
@@ -29,6 +29,14 @@ in
};
config = mkIf cfg.enable {
# TODO: Upstream this to NixOS.
assertions = [
{
assertion = config.nix.enable;
message = ''`services.lorri.enable` requires `nix.enable`'';
}
];
environment.systemPackages = [ pkgs.lorri ];
launchd.user.agents.lorri = {
command = with pkgs; "${lorri}/bin/lorri daemon";
@@ -43,4 +51,4 @@ in
};
};
};
}
}